@djb25/digit-ui-module-ws 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +696 -266
- 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, useEffect, useRef, useMemo, Fragment as Fragment$1, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { Link, useLocation, Switch, Route,
|
|
4
|
-
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header,
|
|
3
|
+
import { Link, useHistory, useLocation, Switch, Route, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
+
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, Banner, CardText, ActionBar, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CollapsibleCardPage, ViewsIcon, Modal, DeleteIcon, CardLabelError, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, VerticalTimeline, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, Menu, ButtonSelector, GenericFileIcon, 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 } from 'react-query';
|
|
@@ -441,10 +441,9 @@ const getFiles = async (filesArray, tenant) => {
|
|
|
441
441
|
response !== null && response !== void 0 && (_response$data = response.data) !== null && _response$data !== void 0 && (_response$data$fileSt = _response$data.fileStoreIds) !== null && _response$data$fileSt !== void 0 && (_response$data$fileSt2 = _response$data$fileSt[0]) !== null && _response$data$fileSt2 !== void 0 && _response$data$fileSt2.url ? window.open(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$fileS = _response$data2.fileStoreIds) === null || _response$data2$fileS === void 0 ? void 0 : (_response$data2$fileS2 = _response$data2$fileS[0]) === null || _response$data2$fileS2 === void 0 ? void 0 : _response$data2$fileS2.url) : null;
|
|
442
442
|
};
|
|
443
443
|
const createPayloadOfWS = async data => {
|
|
444
|
-
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$ConnectionHolde,
|
|
445
|
-
console.log(Digit.UserService.getType(), "rtyuhgh");
|
|
444
|
+
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$ConnectionHolde, _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$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$documents, _data$documents2, _data$documents3, _data$documents4, _data$documents5, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
|
|
446
445
|
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
447
|
-
const isCitizen = 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");
|
|
446
|
+
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"));
|
|
448
447
|
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 => {
|
|
449
448
|
if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
450
449
|
});
|
|
@@ -460,10 +459,6 @@ const createPayloadOfWS = async data => {
|
|
|
460
459
|
let payload = {
|
|
461
460
|
water: !!isWater,
|
|
462
461
|
sewerage: !!isSewerage,
|
|
463
|
-
proposedTaps: ((data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : _data$useDetails.noOfTaps) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.proposedTaps)) && Number((data === null || data === void 0 ? void 0 : (_data$useDetails2 = data.useDetails) === null || _data$useDetails2 === void 0 ? void 0 : _data$useDetails2.noOfTaps) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.proposedTaps)),
|
|
464
|
-
proposedPipeSize: ((data === null || data === void 0 ? void 0 : (_data$useDetails3 = data.useDetails) === null || _data$useDetails3 === void 0 ? void 0 : (_data$useDetails3$pro = _data$useDetails3.proposedPipeSize) === null || _data$useDetails3$pro === void 0 ? void 0 : _data$useDetails3$pro.size) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : (_connectionDetailsObj = connectionDetailsObject.proposedPipeSize) === null || _connectionDetailsObj === void 0 ? void 0 : _connectionDetailsObj.size) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : (_connectionDetailsObj2 = connectionDetailsObject.proposedPipeSize) === null || _connectionDetailsObj2 === void 0 ? void 0 : _connectionDetailsObj2.code)) && Number((data === null || data === void 0 ? void 0 : (_data$useDetails4 = data.useDetails) === null || _data$useDetails4 === void 0 ? void 0 : (_data$useDetails4$pro = _data$useDetails4.proposedPipeSize) === null || _data$useDetails4$pro === void 0 ? void 0 : _data$useDetails4$pro.size) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : (_connectionDetailsObj3 = connectionDetailsObject.proposedPipeSize) === null || _connectionDetailsObj3 === void 0 ? void 0 : _connectionDetailsObj3.size) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : (_connectionDetailsObj4 = connectionDetailsObject.proposedPipeSize) === null || _connectionDetailsObj4 === void 0 ? void 0 : _connectionDetailsObj4.code)),
|
|
465
|
-
proposedWaterClosets: ((data === null || data === void 0 ? void 0 : (_data$useDetails5 = data.useDetails) === null || _data$useDetails5 === void 0 ? void 0 : _data$useDetails5.proposedWaterClosets) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.proposedWaterClosets)) && Number((data === null || data === void 0 ? void 0 : (_data$useDetails6 = data.useDetails) === null || _data$useDetails6 === void 0 ? void 0 : _data$useDetails6.proposedWaterClosets) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.proposedWaterClosets)),
|
|
466
|
-
proposedToilets: ((data === null || data === void 0 ? void 0 : (_data$useDetails7 = data.useDetails) === null || _data$useDetails7 === void 0 ? void 0 : _data$useDetails7.proposedToilets) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.proposedToilets)) && Number((data === null || data === void 0 ? void 0 : (_data$useDetails8 = data.useDetails) === null || _data$useDetails8 === void 0 ? void 0 : _data$useDetails8.proposedToilets) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.proposedToilets)),
|
|
467
462
|
connectionHolders: connectionHolder ? [{
|
|
468
463
|
correspondenceAddress: (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.address) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.correspondenceAddress) || "",
|
|
469
464
|
fatherOrHusbandName: (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.guardian) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.fatherOrHusbandName) || "",
|
|
@@ -481,7 +476,7 @@ const createPayloadOfWS = async data => {
|
|
|
481
476
|
}] : [{
|
|
482
477
|
correspondenceAddress: (data === null || data === void 0 ? void 0 : (_data$propertyAddress = data.propertyAddress) === null || _data$propertyAddress === void 0 ? void 0 : _data$propertyAddress.address) || "",
|
|
483
478
|
fatherOrHusbandName: (data === null || data === void 0 ? void 0 : (_data$applicant = data.applicant) === null || _data$applicant === void 0 ? void 0 : _data$applicant.ParentorSpouse) || "",
|
|
484
|
-
gender: (data === null || data === void 0 ? void 0 : (_data$
|
|
479
|
+
gender: (data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : (_data$useDetails$gend = _data$useDetails.gender) === null || _data$useDetails$gend === void 0 ? void 0 : _data$useDetails$gend.code) || "",
|
|
485
480
|
mobileNumber: (data === null || data === void 0 ? void 0 : (_data$contact = data.contact) === null || _data$contact === void 0 ? void 0 : _data$contact.mobileNumber) || "",
|
|
486
481
|
name: `${data === null || data === void 0 ? void 0 : (_data$applicant2 = data.applicant) === null || _data$applicant2 === void 0 ? void 0 : _data$applicant2.firstName} ${(data === null || data === void 0 ? void 0 : (_data$applicant3 = data.applicant) === null || _data$applicant3 === void 0 ? void 0 : _data$applicant3.middleName) || ""} ${data === null || data === void 0 ? void 0 : (_data$applicant4 = data.applicant) === null || _data$applicant4 === void 0 ? void 0 : _data$applicant4.lastName}`.replace(/\s+/g, " ").trim(),
|
|
487
482
|
watsAppMobileNumber: (data === null || data === void 0 ? void 0 : (_data$contact2 = data.contact) === null || _data$contact2 === void 0 ? void 0 : _data$contact2.watsAppMobileNumber) || "",
|
|
@@ -551,31 +546,38 @@ const createPayloadOfWS = async data => {
|
|
|
551
546
|
locality: (data === null || data === void 0 ? void 0 : (_data$propertyAddress14 = data.propertyAddress) === null || _data$propertyAddress14 === void 0 ? void 0 : (_data$propertyAddress15 = _data$propertyAddress14.locality) === null || _data$propertyAddress15 === void 0 ? void 0 : _data$propertyAddress15.code) || (data === null || data === void 0 ? void 0 : (_data$cpt17 = data.cpt) === null || _data$cpt17 === void 0 ? void 0 : (_data$cpt17$details = _data$cpt17.details) === null || _data$cpt17$details === void 0 ? void 0 : (_data$cpt17$details$a = _data$cpt17$details.address) === null || _data$cpt17$details$a === void 0 ? void 0 : (_data$cpt17$details$a2 = _data$cpt17$details$a.locality) === null || _data$cpt17$details$a2 === void 0 ? void 0 : _data$cpt17$details$a2.code),
|
|
552
547
|
detailsProvidedBy: (data === null || data === void 0 ? void 0 : (_data$plumberDetails2 = data.plumberDetails) === null || _data$plumberDetails2 === void 0 ? void 0 : (_data$plumberDetails3 = _data$plumberDetails2[0]) === null || _data$plumberDetails3 === void 0 ? void 0 : (_data$plumberDetails4 = _data$plumberDetails3.detailsProvidedBy) === null || _data$plumberDetails4 === void 0 ? void 0 : _data$plumberDetails4.code) || (data === null || data === void 0 ? void 0 : (_data$plumberDetails5 = data.plumberDetails) === null || _data$plumberDetails5 === void 0 ? void 0 : (_data$plumberDetails6 = _data$plumberDetails5[0]) === null || _data$plumberDetails6 === void 0 ? void 0 : _data$plumberDetails6.detailsProvidedBy) || "",
|
|
553
548
|
applicantType: data === null || data === void 0 ? void 0 : (_data$applicationSele4 = data.applicationSelection) === null || _data$applicationSele4 === void 0 ? void 0 : (_data$applicationSele5 = _data$applicationSele4.applicantType) === null || _data$applicationSele5 === void 0 ? void 0 : _data$applicationSele5.code,
|
|
554
|
-
connectionType: (data === null || data === void 0 ? void 0 : (_data$applicationSele6 = data.applicationSelection) === null || _data$applicationSele6 === void 0 ? void 0 : (_data$applicationSele7 = _data$applicationSele6.connectionType) === null || _data$applicationSele7 === void 0 ? void 0 : _data$applicationSele7.code) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : (
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
549
|
+
connectionType: (data === null || data === void 0 ? void 0 : (_data$applicationSele6 = data.applicationSelection) === null || _data$applicationSele6 === void 0 ? void 0 : (_data$applicationSele7 = _data$applicationSele6.connectionType) === null || _data$applicationSele7 === void 0 ? void 0 : _data$applicationSele7.code) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : (_connectionDetailsObj = connectionDetailsObject.connectionType) === null || _connectionDetailsObj === void 0 ? void 0 : _connectionDetailsObj.code) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.connectionType) || "Metered",
|
|
550
|
+
categoryType: (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : (_useDetailsObject$cat = useDetailsObject.categoryType) === null || _useDetailsObject$cat === void 0 ? void 0 : _useDetailsObject$cat.code) || (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : useDetailsObject.categoryType) || (data === null || data === void 0 ? void 0 : (_data$applicationSele8 = data.applicationSelection) === null || _data$applicationSele8 === void 0 ? void 0 : (_data$applicationSele9 = _data$applicationSele8.categoryType) === null || _data$applicationSele9 === void 0 ? void 0 : _data$applicationSele9.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : (_connectionHolder$own2 = connectionHolder.ownerType) === null || _connectionHolder$own2 === void 0 ? void 0 : _connectionHolder$own2.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.ownerType),
|
|
551
|
+
noOfFloors: (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : (_useDetailsObject$noO = useDetailsObject.noOfFloors) === null || _useDetailsObject$noO === void 0 ? void 0 : _useDetailsObject$noO.code) || (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : useDetailsObject.noOfFloors),
|
|
552
|
+
subCategory: data === null || data === void 0 ? void 0 : (_data$applicationSele0 = data.applicationSelection) === null || _data$applicationSele0 === void 0 ? void 0 : (_data$applicationSele1 = _data$applicationSele0.subCategory) === null || _data$applicationSele1 === void 0 ? void 0 : _data$applicationSele1.code,
|
|
553
|
+
domesticType: data === null || data === void 0 ? void 0 : (_data$applicationSele10 = data.applicationSelection) === null || _data$applicationSele10 === void 0 ? void 0 : (_data$applicationSele11 = _data$applicationSele10.domesticType) === null || _data$applicationSele11 === void 0 ? void 0 : _data$applicationSele11.code,
|
|
554
|
+
temporaryConnection: data === null || data === void 0 ? void 0 : (_data$applicationSele12 = data.applicationSelection) === null || _data$applicationSele12 === void 0 ? void 0 : (_data$applicationSele13 = _data$applicationSele12.temporaryConnection) === null || _data$applicationSele13 === void 0 ? void 0 : _data$applicationSele13.code,
|
|
555
|
+
ownerAuthorizationDoc: data === null || data === void 0 ? void 0 : (_data$applicationSele14 = data.applicationSelection) === null || _data$applicationSele14 === void 0 ? void 0 : (_data$applicationSele15 = _data$applicationSele14.ownerAuthorizationDoc) === null || _data$applicationSele15 === void 0 ? void 0 : (_data$applicationSele16 = _data$applicationSele15[0]) === null || _data$applicationSele16 === void 0 ? void 0 : (_data$applicationSele17 = _data$applicationSele16[1]) === null || _data$applicationSele17 === void 0 ? void 0 : _data$applicationSele17.fileStoreId,
|
|
556
|
+
ownerContactNumber: data === null || data === void 0 ? void 0 : (_data$applicationSele18 = data.applicationSelection) === null || _data$applicationSele18 === void 0 ? void 0 : _data$applicationSele18.ownerContactNumber,
|
|
557
|
+
isOwnerVerified: data === null || data === void 0 ? void 0 : (_data$applicationSele19 = data.applicationSelection) === null || _data$applicationSele19 === void 0 ? void 0 : _data$applicationSele19.isOwnerVerified,
|
|
558
|
+
commercialType: data === null || data === void 0 ? void 0 : (_data$applicationSele20 = data.applicationSelection) === null || _data$applicationSele20 === void 0 ? void 0 : (_data$applicationSele21 = _data$applicationSele20.commercialType) === null || _data$applicationSele21 === void 0 ? void 0 : _data$applicationSele21.code,
|
|
559
|
+
govtOrganization: data === null || data === void 0 ? void 0 : (_data$applicationSele22 = data.applicationSelection) === null || _data$applicationSele22 === void 0 ? void 0 : _data$applicationSele22.govtOrganization,
|
|
560
|
+
departmentType: data === null || data === void 0 ? void 0 : (_data$applicationSele23 = data.applicationSelection) === null || _data$applicationSele23 === void 0 ? void 0 : (_data$applicationSele24 = _data$applicationSele23.departmentType) === null || _data$applicationSele24 === void 0 ? void 0 : _data$applicationSele24.code,
|
|
564
561
|
governmentEmployee: data === null || data === void 0 ? void 0 : data.governmentEmployee,
|
|
565
562
|
whatsAppNumber: data === null || data === void 0 ? void 0 : (_data$contact5 = data.contact) === null || _data$contact5 === void 0 ? void 0 : _data$contact5.whatsAppNumber,
|
|
566
563
|
identityProofNumber: data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.identityProofNumber,
|
|
567
564
|
ownershipDocumentNumber: data === null || data === void 0 ? void 0 : (_data$documents2 = data.documents) === null || _data$documents2 === void 0 ? void 0 : _data$documents2.ownershipDocumentNumber,
|
|
568
565
|
otherDocumentNumber: data === null || data === void 0 ? void 0 : (_data$documents3 = data.documents) === null || _data$documents3 === void 0 ? void 0 : _data$documents3.otherDocumentNumber,
|
|
569
566
|
detailsProvidedBy: "",
|
|
570
|
-
channel:
|
|
567
|
+
channel: isCitizen ? "CITIZEN" : "CFC_COUNTER"
|
|
571
568
|
},
|
|
572
|
-
|
|
569
|
+
documents: (data === null || data === void 0 ? void 0 : (_data$documents4 = data.documents) === null || _data$documents4 === void 0 ? void 0 : _data$documents4.documents) || (data === null || data === void 0 ? void 0 : data.documents) || [],
|
|
570
|
+
tenantId: "dl.djb",
|
|
573
571
|
processInstance: {
|
|
574
572
|
action: "INITIATE"
|
|
575
573
|
},
|
|
576
|
-
channel:
|
|
574
|
+
channel: isCitizen ? "CITIZEN" : "CFC_COUNTER"
|
|
577
575
|
};
|
|
578
|
-
|
|
576
|
+
delete payload.additionalDetails.proposedPipeSize;
|
|
577
|
+
delete payload.additionalDetails.proposedTaps;
|
|
578
|
+
delete payload.additionalDetails.proposedToilets;
|
|
579
|
+
delete payload.additionalDetails.proposedWaterClosets;
|
|
580
|
+
sessionStorage.setItem("WS_DOCUMENTS_INOF", JSON.stringify((data === null || data === void 0 ? void 0 : (_data$documents5 = data.documents) === null || _data$documents5 === void 0 ? void 0 : _data$documents5.documents) || (data === null || data === void 0 ? void 0 : data.documents) || []));
|
|
579
581
|
sessionStorage.setItem("WS_PROPERTY_INOF", JSON.stringify((data === null || data === void 0 ? void 0 : (_data$cpt18 = data.cpt) === null || _data$cpt18 === void 0 ? void 0 : _data$cpt18.details) || {}));
|
|
580
582
|
payload = (_Digit = Digit) !== null && _Digit !== void 0 && (_Digit$Customizations = _Digit.Customizations) !== null && _Digit$Customizations !== void 0 && (_Digit$Customizations2 = _Digit$Customizations.WS) !== null && _Digit$Customizations2 !== void 0 && _Digit$Customizations2.customiseCreatePayloadOfWS ? (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$Customization = _Digit2.Customizations) === null || _Digit2$Customization === void 0 ? void 0 : (_Digit2$Customization2 = _Digit2$Customization.WS) === null || _Digit2$Customization2 === void 0 ? void 0 : _Digit2$Customization2.customiseCreatePayloadOfWS(data, payload) : payload;
|
|
581
583
|
return payload;
|
|
@@ -596,11 +598,11 @@ const updatePayloadOfWS = async (data, type) => {
|
|
|
596
598
|
return payload;
|
|
597
599
|
};
|
|
598
600
|
const convertToWSUpdate = data => {
|
|
599
|
-
var _data$WaterConnection, _data$WaterConnection2, _data$
|
|
601
|
+
var _data$WaterConnection, _data$WaterConnection2, _data$documents6, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
|
|
600
602
|
let formdata = {
|
|
601
603
|
WaterConnection: {
|
|
602
604
|
...(data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnectionResult) === null || _data$WaterConnection === void 0 ? void 0 : (_data$WaterConnection2 = _data$WaterConnection.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]),
|
|
603
|
-
documents: [...(data === null || data === void 0 ? void 0 : (_data$
|
|
605
|
+
documents: [...(data === null || data === void 0 ? void 0 : (_data$documents6 = data.documents) === null || _data$documents6 === void 0 ? void 0 : _data$documents6.documents)],
|
|
604
606
|
processInstance: {
|
|
605
607
|
action: "SUBMIT_APPLICATION"
|
|
606
608
|
}
|
|
@@ -610,7 +612,7 @@ const convertToWSUpdate = data => {
|
|
|
610
612
|
return formdata;
|
|
611
613
|
};
|
|
612
614
|
const convertToEditWSUpdate = data => {
|
|
613
|
-
var _data$WaterConnection3, _data$WaterConnection4, _data$
|
|
615
|
+
var _data$WaterConnection3, _data$WaterConnection4, _data$documents7, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$documents8, _data$sewerageConnect, _data$sewerageConnect2, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
|
|
614
616
|
let waterResult = data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnectionResult) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3.WaterConnection) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4[0];
|
|
615
617
|
let formdata = {
|
|
616
618
|
WaterConnection: {
|
|
@@ -622,7 +624,7 @@ const convertToEditWSUpdate = data => {
|
|
|
622
624
|
status: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.status : waterResult === null || waterResult === void 0 ? void 0 : waterResult.status,
|
|
623
625
|
connectionNo: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.connectionNo : waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionNo) || null,
|
|
624
626
|
oldConnectionNo: null,
|
|
625
|
-
documents: [...(data === null || data === void 0 ? void 0 : (_data$
|
|
627
|
+
documents: [...(data === null || data === void 0 ? void 0 : (_data$documents7 = data.documents) === null || _data$documents7 === void 0 ? void 0 : _data$documents7.documents)],
|
|
626
628
|
plumberInfo: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.plumberInfo : (waterResult === null || waterResult === void 0 ? void 0 : waterResult.plumberInfo) || [],
|
|
627
629
|
roadType: null,
|
|
628
630
|
roadCuttingArea: null,
|
|
@@ -660,7 +662,7 @@ const convertToEditWSUpdate = data => {
|
|
|
660
662
|
sameAsPropertyAddress: data === null || data === void 0 ? void 0 : (_data$ConnectionHolde15 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde15 === void 0 ? void 0 : _data$ConnectionHolde15.sameAsOwnerDetails
|
|
661
663
|
}] : null : waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionHolders,
|
|
662
664
|
oldApplication: false,
|
|
663
|
-
channel: ((_Digit$UserService$ge2 = Digit.UserService.
|
|
665
|
+
channel: ((_Digit$UserService$ge2 = Digit.UserService.getUser()) === null || _Digit$UserService$ge2 === void 0 ? void 0 : (_Digit$UserService$ge3 = _Digit$UserService$ge2.info) === null || _Digit$UserService$ge3 === void 0 ? void 0 : (_Digit$UserService$ge4 = _Digit$UserService$ge3.type) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER",
|
|
664
666
|
waterSource: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.waterSource : waterResult === null || waterResult === void 0 ? void 0 : waterResult.waterSource) || null,
|
|
665
667
|
meterId: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.meterId : waterResult === null || waterResult === void 0 ? void 0 : waterResult.meterId) || null,
|
|
666
668
|
meterInstallationDate: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.meterInstallationDate : waterResult === null || waterResult === void 0 ? void 0 : waterResult.meterInstallationDate) || null,
|
|
@@ -678,7 +680,7 @@ const convertToEditWSUpdate = data => {
|
|
|
678
680
|
water: data !== null && data !== void 0 && (_data$applicationType = data.applicationType) !== null && _data$applicationType !== void 0 && _data$applicationType.includes("WATER") ? true : false,
|
|
679
681
|
sewerage: data !== null && data !== void 0 && (_data$applicationType2 = data.applicationType) !== null && _data$applicationType2 !== void 0 && _data$applicationType2.includes("WATER") ? true : false,
|
|
680
682
|
service: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$serviceName = data.serviceName) === null || _data$serviceName === void 0 ? void 0 : _data$serviceName.code : waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$serviceN = waterResult.serviceName) === null || _waterResult$serviceN === void 0 ? void 0 : _waterResult$serviceN.code,
|
|
681
|
-
reviewDocData: [...(data === null || data === void 0 ? void 0 : (_data$
|
|
683
|
+
reviewDocData: [...(data === null || data === void 0 ? void 0 : (_data$documents8 = data.documents) === null || _data$documents8 === void 0 ? void 0 : _data$documents8.documents)],
|
|
682
684
|
proposedWaterClosets: data === null || data === void 0 ? void 0 : (_data$sewerageConnect = data.sewerageConnectionDetails) === null || _data$sewerageConnect === void 0 ? void 0 : _data$sewerageConnect.proposedWaterClosets,
|
|
683
685
|
proposedToilets: data === null || data === void 0 ? void 0 : (_data$sewerageConnect2 = data.sewerageConnectionDetails) === null || _data$sewerageConnect2 === void 0 ? void 0 : _data$sewerageConnect2.proposedToilets,
|
|
684
686
|
comment: "",
|
|
@@ -692,7 +694,7 @@ const convertToEditWSUpdate = data => {
|
|
|
692
694
|
return formdata;
|
|
693
695
|
};
|
|
694
696
|
const convertToEditSWUpdate = data => {
|
|
695
|
-
var _data$SewerageConnect, _data$SewerageConnect2, _data$
|
|
697
|
+
var _data$SewerageConnect, _data$SewerageConnect2, _data$documents9, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$documents0, _data$sewerageConnect3, _data$sewerageConnect4, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
|
|
696
698
|
let SewerageResult = data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnectionResult) === null || _data$SewerageConnect === void 0 ? void 0 : (_data$SewerageConnect2 = _data$SewerageConnect.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0];
|
|
697
699
|
let formdata = {
|
|
698
700
|
SewerageConnection: {
|
|
@@ -704,7 +706,7 @@ const convertToEditSWUpdate = data => {
|
|
|
704
706
|
status: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.status : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.status,
|
|
705
707
|
connectionNo: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.connectionNo : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.connectionNo) || null,
|
|
706
708
|
oldConnectionNo: null,
|
|
707
|
-
documents: [...(data === null || data === void 0 ? void 0 : (_data$
|
|
709
|
+
documents: [...(data === null || data === void 0 ? void 0 : (_data$documents9 = data.documents) === null || _data$documents9 === void 0 ? void 0 : _data$documents9.documents)],
|
|
708
710
|
plumberInfo: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.plumberInfo : (SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.plumberInfo) || [],
|
|
709
711
|
roadType: null,
|
|
710
712
|
roadCuttingArea: null,
|
|
@@ -742,7 +744,7 @@ const convertToEditSWUpdate = data => {
|
|
|
742
744
|
sameAsPropertyAddress: data === null || data === void 0 ? void 0 : (_data$ConnectionHolde31 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde31 === void 0 ? void 0 : _data$ConnectionHolde31.sameAsOwnerDetails
|
|
743
745
|
}] : null : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.connectionHolders,
|
|
744
746
|
oldApplication: false,
|
|
745
|
-
channel: ((_Digit$UserService$
|
|
747
|
+
channel: ((_Digit$UserService$ge5 = Digit.UserService.getUser()) === null || _Digit$UserService$ge5 === void 0 ? void 0 : (_Digit$UserService$ge6 = _Digit$UserService$ge5.info) === null || _Digit$UserService$ge6 === void 0 ? void 0 : (_Digit$UserService$ge7 = _Digit$UserService$ge6.type) === null || _Digit$UserService$ge7 === void 0 ? void 0 : _Digit$UserService$ge7.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER",
|
|
746
748
|
waterSource: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.waterSource : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.waterSource) || null,
|
|
747
749
|
meterId: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.meterId : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.meterId) || null,
|
|
748
750
|
meterInstallationDate: (data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : data.meterInstallationDate : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.meterInstallationDate) || null,
|
|
@@ -760,7 +762,7 @@ const convertToEditSWUpdate = data => {
|
|
|
760
762
|
water: data !== null && data !== void 0 && (_data$applicationType3 = data.applicationType) !== null && _data$applicationType3 !== void 0 && _data$applicationType3.includes("WATER") ? true : false,
|
|
761
763
|
sewerage: data !== null && data !== void 0 && (_data$applicationType4 = data.applicationType) !== null && _data$applicationType4 !== void 0 && _data$applicationType4.includes("WATER") ? true : false,
|
|
762
764
|
service: data !== null && data !== void 0 && data.isEditApplication ? data === null || data === void 0 ? void 0 : (_data$serviceName2 = data.serviceName) === null || _data$serviceName2 === void 0 ? void 0 : _data$serviceName2.code : SewerageResult === null || SewerageResult === void 0 ? void 0 : (_SewerageResult$servi = SewerageResult.serviceName) === null || _SewerageResult$servi === void 0 ? void 0 : _SewerageResult$servi.code,
|
|
763
|
-
reviewDocData: [...(data === null || data === void 0 ? void 0 : (_data$
|
|
765
|
+
reviewDocData: [...(data === null || data === void 0 ? void 0 : (_data$documents0 = data.documents) === null || _data$documents0 === void 0 ? void 0 : _data$documents0.documents)],
|
|
764
766
|
proposedWaterClosets: data === null || data === void 0 ? void 0 : (_data$sewerageConnect3 = data.sewerageConnectionDetails) === null || _data$sewerageConnect3 === void 0 ? void 0 : _data$sewerageConnect3.proposedWaterClosets,
|
|
765
767
|
proposedToilets: data === null || data === void 0 ? void 0 : (_data$sewerageConnect4 = data.sewerageConnectionDetails) === null || _data$sewerageConnect4 === void 0 ? void 0 : _data$sewerageConnect4.proposedToilets,
|
|
766
768
|
comment: "",
|
|
@@ -774,12 +776,12 @@ const convertToEditSWUpdate = data => {
|
|
|
774
776
|
return formdata;
|
|
775
777
|
};
|
|
776
778
|
const convertToSWUpdate = data => {
|
|
777
|
-
var _data$SewerageConnect3, _data$SewerageConnect4, _data$
|
|
779
|
+
var _data$SewerageConnect3, _data$SewerageConnect4, _data$documents1, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
|
|
778
780
|
let formdata = {
|
|
779
781
|
SewerageConnection: {
|
|
780
782
|
...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnectionResult) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3.SewerageConnections) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4[0]),
|
|
781
783
|
connectionType: "Non Metered",
|
|
782
|
-
documents: [...(data === null || data === void 0 ? void 0 : (_data$
|
|
784
|
+
documents: [...(data === null || data === void 0 ? void 0 : (_data$documents1 = data.documents) === null || _data$documents1 === void 0 ? void 0 : _data$documents1.documents)],
|
|
783
785
|
processInstance: {
|
|
784
786
|
action: "SUBMIT_APPLICATION"
|
|
785
787
|
}
|
|
@@ -789,8 +791,8 @@ const convertToSWUpdate = data => {
|
|
|
789
791
|
return formdata;
|
|
790
792
|
};
|
|
791
793
|
const createPayloadOfWSDisconnection = async (data, storeData, service) => {
|
|
792
|
-
var _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason$value, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _plumberInfo, _storeData$applicatio39, _storeData$applicatio40, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio50, _data$type3, _data$type3$value, _data$reason$value2, _storeData$applicatio51, _storeData$applicatio52, _storeData$applicatio53, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _plumberInfo2, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
|
|
793
|
-
const user = Digit.UserService.
|
|
794
|
+
var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason$value, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _plumberInfo, _storeData$applicatio39, _storeData$applicatio40, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio50, _data$type3, _data$type3$value, _data$reason$value2, _storeData$applicatio51, _storeData$applicatio52, _storeData$applicatio53, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _plumberInfo2, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
|
|
795
|
+
const user = (_Digit$UserService$ge8 = Digit.UserService.getUser()) === null || _Digit$UserService$ge8 === void 0 ? void 0 : (_Digit$UserService$ge9 = _Digit$UserService$ge8.info) === null || _Digit$UserService$ge9 === void 0 ? void 0 : _Digit$UserService$ge9.type;
|
|
794
796
|
let plumberInfo = [];
|
|
795
797
|
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio = storeData.applicationData) === null || _storeData$applicatio === void 0 ? void 0 : (_storeData$applicatio2 = _storeData$applicatio.plumberInfo) === null || _storeData$applicatio2 === void 0 ? void 0 : _storeData$applicatio2.length) > 0) {
|
|
796
798
|
var _storeData$applicatio3, _storeData$applicatio4, _storeData$applicatio5, _storeData$applicatio6, _storeData$applicatio7, _storeData$applicatio8, _storeData$applicatio9, _storeData$applicatio0, _storeData$applicatio1, _storeData$applicatio10, _storeData$applicatio11, _storeData$applicatio12, _storeData$applicatio13, _storeData$applicatio14, _storeData$applicatio15, _storeData$applicatio16, _storeData$applicatio17, _storeData$applicatio18, _storeData$applicatio19, _storeData$applicatio20, _storeData$applicatio21, _storeData$applicatio22, _storeData$applicatio23, _storeData$applicatio24;
|
|
@@ -891,8 +893,8 @@ const createPayloadOfWSDisconnection = async (data, storeData, service) => {
|
|
|
891
893
|
return returnObject;
|
|
892
894
|
};
|
|
893
895
|
const createPayloadOfWSReconnection = async (data, storeData, service) => {
|
|
894
|
-
var _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio90, _storeData$applicatio91, _storeData$applicatio92, _storeData$applicatio93, _storeData$applicatio94, _storeData$applicatio95, _data$type4, _data$type4$value, _data$type5, _data$type5$value, _data$reason$value3, _storeData$applicatio96, _storeData$applicatio97, _storeData$applicatio98, _storeData$applicatio99, _storeData$applicatio100, _storeData$applicatio101, _storeData$applicatio102, _storeData$applicatio103, _plumberInfo3, _storeData$applicatio104, _storeData$applicatio105, _storeData$applicatio106, _storeData$applicatio107, _storeData$applicatio108, _storeData$applicatio109, _storeData$applicatio110, _storeData$applicatio111, _storeData$applicatio112, _storeData$applicatio113, _storeData$applicatio114, _storeData$applicatio115, _data$type6, _data$type6$value, _data$reason$value4, _storeData$applicatio116, _storeData$applicatio117, _storeData$applicatio118, _storeData$applicatio119, _storeData$applicatio120, _storeData$applicatio121, _plumberInfo4, _storeData$applicatio122, _storeData$applicatio123, _storeData$applicatio124, _storeData$applicatio125, _storeData$applicatio126, _storeData$applicatio127, _storeData$applicatio128;
|
|
895
|
-
const user = Digit.UserService.
|
|
896
|
+
var _Digit$UserService$ge0, _Digit$UserService$ge1, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio90, _storeData$applicatio91, _storeData$applicatio92, _storeData$applicatio93, _storeData$applicatio94, _storeData$applicatio95, _data$type4, _data$type4$value, _data$type5, _data$type5$value, _data$reason$value3, _storeData$applicatio96, _storeData$applicatio97, _storeData$applicatio98, _storeData$applicatio99, _storeData$applicatio100, _storeData$applicatio101, _storeData$applicatio102, _storeData$applicatio103, _plumberInfo3, _storeData$applicatio104, _storeData$applicatio105, _storeData$applicatio106, _storeData$applicatio107, _storeData$applicatio108, _storeData$applicatio109, _storeData$applicatio110, _storeData$applicatio111, _storeData$applicatio112, _storeData$applicatio113, _storeData$applicatio114, _storeData$applicatio115, _data$type6, _data$type6$value, _data$reason$value4, _storeData$applicatio116, _storeData$applicatio117, _storeData$applicatio118, _storeData$applicatio119, _storeData$applicatio120, _storeData$applicatio121, _plumberInfo4, _storeData$applicatio122, _storeData$applicatio123, _storeData$applicatio124, _storeData$applicatio125, _storeData$applicatio126, _storeData$applicatio127, _storeData$applicatio128;
|
|
897
|
+
const user = (_Digit$UserService$ge0 = Digit.UserService.getUser()) === null || _Digit$UserService$ge0 === void 0 ? void 0 : (_Digit$UserService$ge1 = _Digit$UserService$ge0.info) === null || _Digit$UserService$ge1 === void 0 ? void 0 : _Digit$UserService$ge1.type;
|
|
896
898
|
let plumberInfo = [];
|
|
897
899
|
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio64 = storeData.applicationData) === null || _storeData$applicatio64 === void 0 ? void 0 : (_storeData$applicatio65 = _storeData$applicatio64.plumberInfo) === null || _storeData$applicatio65 === void 0 ? void 0 : _storeData$applicatio65.length) > 0) {
|
|
898
900
|
var _storeData$applicatio66, _storeData$applicatio67, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _storeData$applicatio76, _storeData$applicatio77, _storeData$applicatio78, _storeData$applicatio79, _storeData$applicatio80, _storeData$applicatio81, _storeData$applicatio82, _storeData$applicatio83, _storeData$applicatio84, _storeData$applicatio85, _storeData$applicatio86, _storeData$applicatio87, _storeData$applicatio88, _storeData$applicatio89;
|
|
@@ -994,8 +996,8 @@ const createPayloadOfWSReconnection = async (data, storeData, service) => {
|
|
|
994
996
|
return returnObject;
|
|
995
997
|
};
|
|
996
998
|
const createPayloadOfWSReSubmitDisconnection = async (data, storeData, service) => {
|
|
997
|
-
var _data$type7, _data$type7$value, _data$reason$value5, _storeData$applicatio129, _data$type8, _data$type8$value, _data$reason$value6, _storeData$applicatio130, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
|
|
998
|
-
const user = Digit.UserService.
|
|
999
|
+
var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type7, _data$type7$value, _data$reason$value5, _storeData$applicatio129, _data$type8, _data$type8$value, _data$reason$value6, _storeData$applicatio130, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
|
|
1000
|
+
const user = (_Digit$UserService$ge10 = Digit.UserService.getUser()) === null || _Digit$UserService$ge10 === void 0 ? void 0 : (_Digit$UserService$ge11 = _Digit$UserService$ge10.info) === null || _Digit$UserService$ge11 === void 0 ? void 0 : _Digit$UserService$ge11.type;
|
|
999
1001
|
let wsPayload = {
|
|
1000
1002
|
WaterConnection: {
|
|
1001
1003
|
...(storeData === null || storeData === void 0 ? void 0 : storeData.applicationData),
|
|
@@ -1658,7 +1660,7 @@ const getConvertedDate = async dateOfTime => {
|
|
|
1658
1660
|
return convertedDate;
|
|
1659
1661
|
};
|
|
1660
1662
|
const convertModifyApplicationDetails = async (data, appData, actionData = "INITIATE") => {
|
|
1661
|
-
var _data$cpt33, _data$cpt33$details, _data$cpt33$details$o, _data$cpt34, _data$cpt34$details, _data$cpt35, _data$cpt35$details, _data$connectionDetai, _data$connectionDetai2, _data$connectionDetai3, _data$connectionDetai4, _data$connectionDetai5, _data$connectionDetai6, _data$connectionDetai7, _data$connectionDetai8, _data$connectionDetai9, _data$connectionDetai0, _data$connectionDetai1, _data$connectionDetai10, _data$connectionDetai11, _data$connectionDetai12, _data$connectionDetai13, _data$connectionDetai14, _data$connectionDetai15, _data$connectionDetai16, _data$connectionDetai17, _data$connectionDetai18, _data$connectionDetai19, _data$connectionDetai20, _data$connectionDetai21, _data$connectionDetai22, _data$connectionDetai23, _data$connectionDetai24, _data$connectionDetai25, _data$connectionDetai26, _data$connectionDetai27, _data$connectionDetai28, _data$activationDetai, _data$activationDetai2, _data$activationDetai3, _data$activationDetai4, _data$activationDetai5, _data$activationDetai6, _data$activationDetai7, _data$activationDetai8, _data$activationDetai9, _data$activationDetai0, _data$activationDetai1, _data$activationDetai10, _data$activationDetai11, _data$activationDetai12, _data$activationDetai13, _data$activationDetai14, _data$activationDetai15, _data$activationDetai16, _data$activationDetai17, _data$activationDetai18, _data$DocumentsRequir3, _data$DocumentsRequir4, _data$DocumentsRequir5, _data$ConnectionHolde61, _data$ConnectionHolde62, _Digit$UserService$
|
|
1663
|
+
var _data$cpt33, _data$cpt33$details, _data$cpt33$details$o, _data$cpt34, _data$cpt34$details, _data$cpt35, _data$cpt35$details, _data$connectionDetai, _data$connectionDetai2, _data$connectionDetai3, _data$connectionDetai4, _data$connectionDetai5, _data$connectionDetai6, _data$connectionDetai7, _data$connectionDetai8, _data$connectionDetai9, _data$connectionDetai0, _data$connectionDetai1, _data$connectionDetai10, _data$connectionDetai11, _data$connectionDetai12, _data$connectionDetai13, _data$connectionDetai14, _data$connectionDetai15, _data$connectionDetai16, _data$connectionDetai17, _data$connectionDetai18, _data$connectionDetai19, _data$connectionDetai20, _data$connectionDetai21, _data$connectionDetai22, _data$connectionDetai23, _data$connectionDetai24, _data$connectionDetai25, _data$connectionDetai26, _data$connectionDetai27, _data$connectionDetai28, _data$activationDetai, _data$activationDetai2, _data$activationDetai3, _data$activationDetai4, _data$activationDetai5, _data$activationDetai6, _data$activationDetai7, _data$activationDetai8, _data$activationDetai9, _data$activationDetai0, _data$activationDetai1, _data$activationDetai10, _data$activationDetai11, _data$activationDetai12, _data$activationDetai13, _data$activationDetai14, _data$activationDetai15, _data$activationDetai16, _data$activationDetai17, _data$activationDetai18, _data$DocumentsRequir3, _data$DocumentsRequir4, _data$DocumentsRequir5, _data$ConnectionHolde61, _data$ConnectionHolde62, _Digit$UserService$ge12, _Digit$UserService$ge13, _Digit$UserService$ge14, _data$DocumentsRequir6, _data$cpt36;
|
|
1662
1664
|
data === null || data === void 0 ? void 0 : (_data$cpt33 = data.cpt) === null || _data$cpt33 === void 0 ? void 0 : (_data$cpt33$details = _data$cpt33.details) === null || _data$cpt33$details === void 0 ? void 0 : (_data$cpt33$details$o = _data$cpt33$details.owners) === null || _data$cpt33$details$o === void 0 ? void 0 : _data$cpt33$details$o.forEach(owner => {
|
|
1663
1665
|
if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
1664
1666
|
});
|
|
@@ -1700,7 +1702,7 @@ const convertModifyApplicationDetails = async (data, appData, actionData = "INIT
|
|
|
1700
1702
|
action: actionData
|
|
1701
1703
|
};
|
|
1702
1704
|
formData.action = actionData;
|
|
1703
|
-
formData.channel = ((_Digit$UserService$
|
|
1705
|
+
formData.channel = ((_Digit$UserService$ge12 = Digit.UserService.getUser()) === null || _Digit$UserService$ge12 === void 0 ? void 0 : (_Digit$UserService$ge13 = _Digit$UserService$ge12.info) === null || _Digit$UserService$ge13 === void 0 ? void 0 : (_Digit$UserService$ge14 = _Digit$UserService$ge13.type) === null || _Digit$UserService$ge14 === void 0 ? void 0 : _Digit$UserService$ge14.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER";
|
|
1704
1706
|
sessionStorage.setItem("WS_DOCUMENTS_INOF", JSON.stringify((data === null || data === void 0 ? void 0 : (_data$DocumentsRequir6 = data.DocumentsRequired) === null || _data$DocumentsRequir6 === void 0 ? void 0 : _data$DocumentsRequir6.documents) || []));
|
|
1705
1707
|
sessionStorage.setItem("WS_PROPERTY_INOF", JSON.stringify(data === null || data === void 0 ? void 0 : (_data$cpt36 = data.cpt) === null || _data$cpt36 === void 0 ? void 0 : _data$cpt36.details));
|
|
1706
1708
|
return formData;
|
|
@@ -1744,6 +1746,12 @@ const ifUserRoleExists = role => {
|
|
|
1744
1746
|
return true;
|
|
1745
1747
|
} else return false;
|
|
1746
1748
|
};
|
|
1749
|
+
const checkForNotNull = (value = "") => {
|
|
1750
|
+
return value && value != null && value != undefined && value != "" ? true : false;
|
|
1751
|
+
};
|
|
1752
|
+
const checkForNA = (value = "") => {
|
|
1753
|
+
return checkForNotNull(value) ? value : "CS_NA";
|
|
1754
|
+
};
|
|
1747
1755
|
|
|
1748
1756
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1749
1757
|
|
|
@@ -7855,144 +7863,6 @@ const WSMyApplications = () => {
|
|
|
7855
7863
|
}, t("WS_NO_APPLICATION_FOUND_MSG"))));
|
|
7856
7864
|
};
|
|
7857
7865
|
|
|
7858
|
-
const App = ({
|
|
7859
|
-
path
|
|
7860
|
-
}) => {
|
|
7861
|
-
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg;
|
|
7862
|
-
const location = useLocation();
|
|
7863
|
-
const {
|
|
7864
|
-
t
|
|
7865
|
-
} = useTranslation();
|
|
7866
|
-
let isCommonPTPropertyScreen = window.location.href.includes("/ws/create-application/property-details");
|
|
7867
|
-
let isAcknowledgement = window.location.href.includes("/acknowledgement") || window.location.href.includes("/disconnect-acknowledge");
|
|
7868
|
-
const WSDisconnectAcknowledgement = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSDisconnectAcknowledgement");
|
|
7869
|
-
const WSRestorationAcknowledgement = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WSRestorationAcknowledgement");
|
|
7870
|
-
const crumbs = [{
|
|
7871
|
-
path: "/digit-ui/citizen",
|
|
7872
|
-
content: t("CS_COMMON_HOME"),
|
|
7873
|
-
show: true
|
|
7874
|
-
}, {
|
|
7875
|
-
path: "/digit-ui/citizen/ws/create-application",
|
|
7876
|
-
content: t("CS_WS_CREATE_APPLICATION"),
|
|
7877
|
-
show: location.pathname.includes("/create-application")
|
|
7878
|
-
}, {
|
|
7879
|
-
path: "/digit-ui/citizen/ws/search",
|
|
7880
|
-
content: t("CS_WS_SEARCH_CONNECTION"),
|
|
7881
|
-
show: location.pathname.includes("/search")
|
|
7882
|
-
}, {
|
|
7883
|
-
path: "/digit-ui/citizen/ws/my-applications",
|
|
7884
|
-
content: t("CS_WS_MY_APPLICATIONS"),
|
|
7885
|
-
show: location.pathname.includes("/my-applications")
|
|
7886
|
-
}, {
|
|
7887
|
-
path: "/digit-ui/citizen/ws/my-connections",
|
|
7888
|
-
content: t("CS_WS_MY_CONNECTIONS"),
|
|
7889
|
-
show: location.pathname.includes("/my-connections")
|
|
7890
|
-
}, {
|
|
7891
|
-
path: "/digit-ui/citizen/ws/my-bills",
|
|
7892
|
-
content: t("CS_WS_MY_BILLS"),
|
|
7893
|
-
show: location.pathname.includes("/my-bills")
|
|
7894
|
-
}, {
|
|
7895
|
-
path: "/digit-ui/citizen/ws/my-payments",
|
|
7896
|
-
content: t("CS_WS_MY_PAYMENTS"),
|
|
7897
|
-
show: location.pathname.includes("/my-payments")
|
|
7898
|
-
}, {
|
|
7899
|
-
path: "/digit-ui/citizen/ws/old-application",
|
|
7900
|
-
content: t("WS_OLD_APPLICATION"),
|
|
7901
|
-
show: location.pathname.includes("/old-application")
|
|
7902
|
-
}];
|
|
7903
|
-
const getDynamicBreadcrumbs = () => {
|
|
7904
|
-
return crumbs.filter(crumb => crumb.show);
|
|
7905
|
-
};
|
|
7906
|
-
const WSCreate = (_Digit3 = Digit) === null || _Digit3 === void 0 ? void 0 : (_Digit3$ComponentRegi = _Digit3.ComponentRegistryService) === null || _Digit3$ComponentRegi === void 0 ? void 0 : _Digit3$ComponentRegi.getComponent("WSCreate");
|
|
7907
|
-
const WSDisconnection = (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$ComponentRegi = _Digit4.ComponentRegistryService) === null || _Digit4$ComponentRegi === void 0 ? void 0 : _Digit4$ComponentRegi.getComponent("WSDisconnection");
|
|
7908
|
-
const WSRestoration = (_Digit5 = Digit) === null || _Digit5 === void 0 ? void 0 : (_Digit5$ComponentRegi = _Digit5.ComponentRegistryService) === null || _Digit5$ComponentRegi === void 0 ? void 0 : _Digit5$ComponentRegi.getComponent("WSRestoration");
|
|
7909
|
-
const WSSearchConnectionComponent = (_Digit6 = Digit) === null || _Digit6 === void 0 ? void 0 : (_Digit6$ComponentRegi = _Digit6.ComponentRegistryService) === null || _Digit6$ComponentRegi === void 0 ? void 0 : _Digit6$ComponentRegi.getComponent("WSSearchConnectionComponent");
|
|
7910
|
-
const WSSearchResultsComponent = (_Digit7 = Digit) === null || _Digit7 === void 0 ? void 0 : (_Digit7$ComponentRegi = _Digit7.ComponentRegistryService) === null || _Digit7$ComponentRegi === void 0 ? void 0 : _Digit7$ComponentRegi.getComponent("WSSearchResultsComponent");
|
|
7911
|
-
const WSCitizenApplicationDetails = (_Digit8 = Digit) === null || _Digit8 === void 0 ? void 0 : (_Digit8$ComponentRegi = _Digit8.ComponentRegistryService) === null || _Digit8$ComponentRegi === void 0 ? void 0 : _Digit8$ComponentRegi.getComponent("WSCitizenApplicationDetails");
|
|
7912
|
-
const WSAdditionalDetails = (_Digit9 = Digit) === null || _Digit9 === void 0 ? void 0 : (_Digit9$ComponentRegi = _Digit9.ComponentRegistryService) === null || _Digit9$ComponentRegi === void 0 ? void 0 : _Digit9$ComponentRegi.getComponent("WSAdditionalDetails");
|
|
7913
|
-
const WSCitizenConnectionDetails = (_Digit0 = Digit) === null || _Digit0 === void 0 ? void 0 : (_Digit0$ComponentRegi = _Digit0.ComponentRegistryService) === null || _Digit0$ComponentRegi === void 0 ? void 0 : _Digit0$ComponentRegi.getComponent("WSCitizenConnectionDetails");
|
|
7914
|
-
const WSCitizenConsumptionDetails = (_Digit1 = Digit) === null || _Digit1 === void 0 ? void 0 : (_Digit1$ComponentRegi = _Digit1.ComponentRegistryService) === null || _Digit1$ComponentRegi === void 0 ? void 0 : _Digit1$ComponentRegi.getComponent("WSCitizenConsumptionDetails");
|
|
7915
|
-
const WSMyPayments = (_Digit10 = Digit) === null || _Digit10 === void 0 ? void 0 : (_Digit10$ComponentReg = _Digit10.ComponentRegistryService) === null || _Digit10$ComponentReg === void 0 ? void 0 : _Digit10$ComponentReg.getComponent("WSMyPayments");
|
|
7916
|
-
const WSCitizenEditApplication = (_Digit11 = Digit) === null || _Digit11 === void 0 ? void 0 : (_Digit11$ComponentReg = _Digit11.ComponentRegistryService) === null || _Digit11$ComponentReg === void 0 ? void 0 : _Digit11$ComponentReg.getComponent("WSCitizenEditApplication");
|
|
7917
|
-
const WSReSubmitDisconnectionApplication = (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$ComponentReg = _Digit12.ComponentRegistryService) === null || _Digit12$ComponentReg === void 0 ? void 0 : _Digit12$ComponentReg.getComponent("WSReSubmitDisconnectionApplication");
|
|
7918
|
-
const WSMyConnections = (_Digit13 = Digit) === null || _Digit13 === void 0 ? void 0 : (_Digit13$ComponentReg = _Digit13.ComponentRegistryService) === null || _Digit13$ComponentReg === void 0 ? void 0 : _Digit13$ComponentReg.getComponent("WSMyConnections");
|
|
7919
|
-
const WNSMyBillsComponent = (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$ComponentReg = _Digit14.ComponentRegistryService) === null || _Digit14$ComponentReg === void 0 ? void 0 : _Digit14$ComponentReg.getComponent("WNSMyBillsComponent");
|
|
7920
|
-
const WSOLDApplication = (_Digit15 = Digit) === null || _Digit15 === void 0 ? void 0 : (_Digit15$ComponentReg = _Digit15.ComponentRegistryService) === null || _Digit15$ComponentReg === void 0 ? void 0 : _Digit15$ComponentReg.getComponent("WSOLDApplication");
|
|
7921
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
7922
|
-
className: "ground-container employee-app-container form-container"
|
|
7923
|
-
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
7924
|
-
leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
|
|
7925
|
-
className: "icon"
|
|
7926
|
-
}), "Back"),
|
|
7927
|
-
onLeftClick: () => window.history.back(),
|
|
7928
|
-
breadcrumbs: getDynamicBreadcrumbs()
|
|
7929
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
7930
|
-
className: "employee-form"
|
|
7931
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
7932
|
-
className: "employee-form-content"
|
|
7933
|
-
}, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7934
|
-
path: `${path}/create-application`,
|
|
7935
|
-
component: WSCreate
|
|
7936
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7937
|
-
path: `${path}/disconnect-application`,
|
|
7938
|
-
component: WSDisconnection
|
|
7939
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7940
|
-
path: `${path}/restore-application`,
|
|
7941
|
-
component: WSRestoration
|
|
7942
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7943
|
-
path: `${path}/disconnect-acknowledge`,
|
|
7944
|
-
component: WSDisconnectAcknowledgement
|
|
7945
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7946
|
-
path: `${path}/restoration-acknowledge`,
|
|
7947
|
-
component: WSRestorationAcknowledgement
|
|
7948
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7949
|
-
path: `${path}/resubmit-disconnect-application`,
|
|
7950
|
-
component: WSReSubmitDisconnectionApplication
|
|
7951
|
-
}), /*#__PURE__*/React.createElement(Route, {
|
|
7952
|
-
path: `${path}/search`,
|
|
7953
|
-
component: WSSearchConnectionComponent
|
|
7954
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7955
|
-
path: `${path}/my-bills`,
|
|
7956
|
-
component: WNSMyBillsComponent
|
|
7957
|
-
}), /*#__PURE__*/React.createElement(Route, {
|
|
7958
|
-
path: `${path}/search-results`,
|
|
7959
|
-
component: WSSearchResultsComponent
|
|
7960
|
-
}), /*#__PURE__*/React.createElement(Route, {
|
|
7961
|
-
path: `${path}/test-acknowledgment`,
|
|
7962
|
-
component: TestAcknowledgment
|
|
7963
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7964
|
-
path: `${path}/my-payments`,
|
|
7965
|
-
component: WSMyPayments
|
|
7966
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7967
|
-
path: `${path}/my-applications`,
|
|
7968
|
-
component: WSMyApplications
|
|
7969
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7970
|
-
path: `${path}/my-connections`,
|
|
7971
|
-
component: WSMyConnections
|
|
7972
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7973
|
-
path: `${path}/connection/application/:acknowledgementIds`,
|
|
7974
|
-
component: WSCitizenApplicationDetails
|
|
7975
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7976
|
-
path: `${path}/connection/additional/:acknowledgementIds`,
|
|
7977
|
-
component: WSAdditionalDetails
|
|
7978
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7979
|
-
path: `${path}/connection/details/:acknowledgementIds`,
|
|
7980
|
-
component: WSCitizenConnectionDetails
|
|
7981
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7982
|
-
path: `${path}/consumption/details`,
|
|
7983
|
-
component: WSCitizenConsumptionDetails
|
|
7984
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7985
|
-
path: `${path}/edit-application/:tenantId`,
|
|
7986
|
-
component: WSCitizenEditApplication
|
|
7987
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7988
|
-
path: `${path}/modify-connection/:tenantId`,
|
|
7989
|
-
component: WSCitizenEditApplication
|
|
7990
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7991
|
-
path: `${path}/old-application`,
|
|
7992
|
-
component: WSOLDApplication
|
|
7993
|
-
})))))));
|
|
7994
|
-
};
|
|
7995
|
-
|
|
7996
7866
|
const getPropertyAddress = property => {
|
|
7997
7867
|
var _property$locality;
|
|
7998
7868
|
const doorNo = property === null || property === void 0 ? void 0 : property.doorNo;
|
|
@@ -8469,7 +8339,8 @@ const WSResponse = props => {
|
|
|
8469
8339
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
8470
8340
|
};
|
|
8471
8341
|
const onSubmit = () => {
|
|
8472
|
-
|
|
8342
|
+
let isEmployee = window.location.href.includes("/employee");
|
|
8343
|
+
history.push(isEmployee ? `/digit-ui/employee` : `/digit-ui/citizen`);
|
|
8473
8344
|
};
|
|
8474
8345
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
|
|
8475
8346
|
message: t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL"),
|
|
@@ -8545,6 +8416,147 @@ const WSResponse = props => {
|
|
|
8545
8416
|
}))));
|
|
8546
8417
|
};
|
|
8547
8418
|
|
|
8419
|
+
const App = ({
|
|
8420
|
+
path
|
|
8421
|
+
}) => {
|
|
8422
|
+
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg;
|
|
8423
|
+
const location = useLocation();
|
|
8424
|
+
const {
|
|
8425
|
+
t
|
|
8426
|
+
} = useTranslation();
|
|
8427
|
+
let isCommonPTPropertyScreen = window.location.href.includes("/ws/create-application/property-details");
|
|
8428
|
+
let isAcknowledgement = window.location.href.includes("/acknowledgement") || window.location.href.includes("/disconnect-acknowledge");
|
|
8429
|
+
const WSDisconnectAcknowledgement = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSDisconnectAcknowledgement");
|
|
8430
|
+
const WSRestorationAcknowledgement = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WSRestorationAcknowledgement");
|
|
8431
|
+
const crumbs = [{
|
|
8432
|
+
path: "/digit-ui/citizen",
|
|
8433
|
+
label: t("CS_COMMON_HOME"),
|
|
8434
|
+
show: true
|
|
8435
|
+
}, {
|
|
8436
|
+
path: "/digit-ui/citizen/ws/create-application",
|
|
8437
|
+
label: t("CS_WS_CREATE_APPLICATION"),
|
|
8438
|
+
show: location.pathname.includes("/create-application")
|
|
8439
|
+
}, {
|
|
8440
|
+
path: "/digit-ui/citizen/ws/search",
|
|
8441
|
+
label: t("CS_WS_SEARCH_CONNECTION"),
|
|
8442
|
+
show: location.pathname.includes("/search")
|
|
8443
|
+
}, {
|
|
8444
|
+
path: "/digit-ui/citizen/ws/my-applications",
|
|
8445
|
+
label: t("CS_WS_MY_APPLICATIONS"),
|
|
8446
|
+
show: location.pathname.includes("/my-applications")
|
|
8447
|
+
}, {
|
|
8448
|
+
path: "/digit-ui/citizen/ws/my-connections",
|
|
8449
|
+
label: t("CS_WS_MY_CONNECTIONS"),
|
|
8450
|
+
show: location.pathname.includes("/my-connections")
|
|
8451
|
+
}, {
|
|
8452
|
+
path: "/digit-ui/citizen/ws/my-bills",
|
|
8453
|
+
label: t("CS_WS_MY_BILLS"),
|
|
8454
|
+
show: location.pathname.includes("/my-bills")
|
|
8455
|
+
}, {
|
|
8456
|
+
path: "/digit-ui/citizen/ws/my-payments",
|
|
8457
|
+
label: t("CS_WS_MY_PAYMENTS"),
|
|
8458
|
+
show: location.pathname.includes("/my-payments")
|
|
8459
|
+
}, {
|
|
8460
|
+
path: "/digit-ui/citizen/ws/old-application",
|
|
8461
|
+
label: t("WS_OLD_APPLICATION"),
|
|
8462
|
+
show: location.pathname.includes("/old-application")
|
|
8463
|
+
}];
|
|
8464
|
+
const getDynamicBreadcrumbs = () => {
|
|
8465
|
+
return crumbs.filter(crumb => crumb.show);
|
|
8466
|
+
};
|
|
8467
|
+
const WSCreate = (_Digit3 = Digit) === null || _Digit3 === void 0 ? void 0 : (_Digit3$ComponentRegi = _Digit3.ComponentRegistryService) === null || _Digit3$ComponentRegi === void 0 ? void 0 : _Digit3$ComponentRegi.getComponent("WSCreate");
|
|
8468
|
+
const WSDisconnection = (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$ComponentRegi = _Digit4.ComponentRegistryService) === null || _Digit4$ComponentRegi === void 0 ? void 0 : _Digit4$ComponentRegi.getComponent("WSDisconnection");
|
|
8469
|
+
const WSRestoration = (_Digit5 = Digit) === null || _Digit5 === void 0 ? void 0 : (_Digit5$ComponentRegi = _Digit5.ComponentRegistryService) === null || _Digit5$ComponentRegi === void 0 ? void 0 : _Digit5$ComponentRegi.getComponent("WSRestoration");
|
|
8470
|
+
const WSSearchConnectionComponent = (_Digit6 = Digit) === null || _Digit6 === void 0 ? void 0 : (_Digit6$ComponentRegi = _Digit6.ComponentRegistryService) === null || _Digit6$ComponentRegi === void 0 ? void 0 : _Digit6$ComponentRegi.getComponent("WSSearchConnectionComponent");
|
|
8471
|
+
const WSSearchResultsComponent = (_Digit7 = Digit) === null || _Digit7 === void 0 ? void 0 : (_Digit7$ComponentRegi = _Digit7.ComponentRegistryService) === null || _Digit7$ComponentRegi === void 0 ? void 0 : _Digit7$ComponentRegi.getComponent("WSSearchResultsComponent");
|
|
8472
|
+
const WSCitizenApplicationDetails = (_Digit8 = Digit) === null || _Digit8 === void 0 ? void 0 : (_Digit8$ComponentRegi = _Digit8.ComponentRegistryService) === null || _Digit8$ComponentRegi === void 0 ? void 0 : _Digit8$ComponentRegi.getComponent("WSCitizenApplicationDetails");
|
|
8473
|
+
const WSAdditionalDetails = (_Digit9 = Digit) === null || _Digit9 === void 0 ? void 0 : (_Digit9$ComponentRegi = _Digit9.ComponentRegistryService) === null || _Digit9$ComponentRegi === void 0 ? void 0 : _Digit9$ComponentRegi.getComponent("WSAdditionalDetails");
|
|
8474
|
+
const WSCitizenConnectionDetails = (_Digit0 = Digit) === null || _Digit0 === void 0 ? void 0 : (_Digit0$ComponentRegi = _Digit0.ComponentRegistryService) === null || _Digit0$ComponentRegi === void 0 ? void 0 : _Digit0$ComponentRegi.getComponent("WSCitizenConnectionDetails");
|
|
8475
|
+
const WSCitizenConsumptionDetails = (_Digit1 = Digit) === null || _Digit1 === void 0 ? void 0 : (_Digit1$ComponentRegi = _Digit1.ComponentRegistryService) === null || _Digit1$ComponentRegi === void 0 ? void 0 : _Digit1$ComponentRegi.getComponent("WSCitizenConsumptionDetails");
|
|
8476
|
+
const WSMyPayments = (_Digit10 = Digit) === null || _Digit10 === void 0 ? void 0 : (_Digit10$ComponentReg = _Digit10.ComponentRegistryService) === null || _Digit10$ComponentReg === void 0 ? void 0 : _Digit10$ComponentReg.getComponent("WSMyPayments");
|
|
8477
|
+
const WSCitizenEditApplication = (_Digit11 = Digit) === null || _Digit11 === void 0 ? void 0 : (_Digit11$ComponentReg = _Digit11.ComponentRegistryService) === null || _Digit11$ComponentReg === void 0 ? void 0 : _Digit11$ComponentReg.getComponent("WSCitizenEditApplication");
|
|
8478
|
+
const WSReSubmitDisconnectionApplication = (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$ComponentReg = _Digit12.ComponentRegistryService) === null || _Digit12$ComponentReg === void 0 ? void 0 : _Digit12$ComponentReg.getComponent("WSReSubmitDisconnectionApplication");
|
|
8479
|
+
const WSMyConnections = (_Digit13 = Digit) === null || _Digit13 === void 0 ? void 0 : (_Digit13$ComponentReg = _Digit13.ComponentRegistryService) === null || _Digit13$ComponentReg === void 0 ? void 0 : _Digit13$ComponentReg.getComponent("WSMyConnections");
|
|
8480
|
+
const WNSMyBillsComponent = (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$ComponentReg = _Digit14.ComponentRegistryService) === null || _Digit14$ComponentReg === void 0 ? void 0 : _Digit14$ComponentReg.getComponent("WNSMyBillsComponent");
|
|
8481
|
+
const WSOLDApplication = (_Digit15 = Digit) === null || _Digit15 === void 0 ? void 0 : (_Digit15$ComponentReg = _Digit15.ComponentRegistryService) === null || _Digit15$ComponentReg === void 0 ? void 0 : _Digit15$ComponentReg.getComponent("WSOLDApplication");
|
|
8482
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
8483
|
+
className: "ground-container employee-app-container form-container"
|
|
8484
|
+
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
8485
|
+
leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
|
|
8486
|
+
className: "icon"
|
|
8487
|
+
}), "Back"),
|
|
8488
|
+
onLeftClick: () => window.history.back(),
|
|
8489
|
+
breadcrumbs: getDynamicBreadcrumbs()
|
|
8490
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
8491
|
+
className: "employee-form"
|
|
8492
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8493
|
+
className: "employee-form-content"
|
|
8494
|
+
}, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8495
|
+
path: `${path}/create-application`,
|
|
8496
|
+
component: WSCreate
|
|
8497
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8498
|
+
path: `${path}/disconnect-application`,
|
|
8499
|
+
component: WSDisconnection
|
|
8500
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8501
|
+
path: `${path}/restore-application`,
|
|
8502
|
+
component: WSRestoration
|
|
8503
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8504
|
+
path: `${path}/disconnect-acknowledge`,
|
|
8505
|
+
component: WSDisconnectAcknowledgement
|
|
8506
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8507
|
+
path: `${path}/restoration-acknowledge`,
|
|
8508
|
+
component: WSRestorationAcknowledgement
|
|
8509
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8510
|
+
path: `${path}/resubmit-disconnect-application`,
|
|
8511
|
+
component: WSReSubmitDisconnectionApplication
|
|
8512
|
+
}), /*#__PURE__*/React.createElement(Route, {
|
|
8513
|
+
path: `${path}/search`,
|
|
8514
|
+
component: WSSearchConnectionComponent
|
|
8515
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8516
|
+
path: `${path}/my-bills`,
|
|
8517
|
+
component: WNSMyBillsComponent
|
|
8518
|
+
}), /*#__PURE__*/React.createElement(Route, {
|
|
8519
|
+
path: `${path}/search-results`,
|
|
8520
|
+
component: WSSearchResultsComponent
|
|
8521
|
+
}), /*#__PURE__*/React.createElement(Route, {
|
|
8522
|
+
path: `${path}/test-acknowledgment`,
|
|
8523
|
+
component: TestAcknowledgment
|
|
8524
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8525
|
+
path: `${path}/my-payments`,
|
|
8526
|
+
component: WSMyPayments
|
|
8527
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8528
|
+
path: `${path}/my-applications`,
|
|
8529
|
+
component: WSMyApplications
|
|
8530
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8531
|
+
path: `${path}/my-connections`,
|
|
8532
|
+
component: WSMyConnections
|
|
8533
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8534
|
+
path: `${path}/connection/application/:acknowledgementIds`,
|
|
8535
|
+
component: WSCitizenApplicationDetails
|
|
8536
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8537
|
+
path: `${path}/connection/additional/:acknowledgementIds`,
|
|
8538
|
+
component: WSAdditionalDetails
|
|
8539
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8540
|
+
path: `${path}/connection/details/:acknowledgementIds`,
|
|
8541
|
+
component: WSCitizenConnectionDetails
|
|
8542
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8543
|
+
path: `${path}/consumption/details`,
|
|
8544
|
+
component: WSCitizenConsumptionDetails
|
|
8545
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8546
|
+
path: `${path}/edit-application/:tenantId`,
|
|
8547
|
+
component: WSCitizenEditApplication
|
|
8548
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8549
|
+
path: `${path}/modify-connection/:tenantId`,
|
|
8550
|
+
component: WSCitizenEditApplication
|
|
8551
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8552
|
+
path: `${path}/old-application`,
|
|
8553
|
+
component: WSOLDApplication
|
|
8554
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8555
|
+
path: `${path}/ws-response`,
|
|
8556
|
+
component: WSResponse
|
|
8557
|
+
})))))));
|
|
8558
|
+
};
|
|
8559
|
+
|
|
8548
8560
|
function getReasonDocNoHeader(amendmentReason) {
|
|
8549
8561
|
if (amendmentReason === "COURT_CASE_SETTLEMENT") return "WS_COURT_ORDER_NO";else if (amendmentReason === "ARREAR_WRITE_OFF" || amendmentReason === "ONE_TIME_SETTLEMENT") return "WS_GOVERNMENT_NOTIFICATION_NUMBER";else return "WS_DOCUMENT_NO";
|
|
8550
8562
|
}
|
|
@@ -11166,8 +11178,13 @@ const WSConnectionDetails = ({
|
|
|
11166
11178
|
const data = connectionDetails.map(e => {
|
|
11167
11179
|
return e;
|
|
11168
11180
|
});
|
|
11169
|
-
|
|
11170
|
-
|
|
11181
|
+
if (!lodash.isEqual(formData === null || formData === void 0 ? void 0 : formData[config.key], data)) {
|
|
11182
|
+
const timer = setTimeout(() => {
|
|
11183
|
+
onSelect(config === null || config === void 0 ? void 0 : config.key, data);
|
|
11184
|
+
}, 200);
|
|
11185
|
+
return () => clearTimeout(timer);
|
|
11186
|
+
}
|
|
11187
|
+
}, [connectionDetails, formData, config.key]);
|
|
11171
11188
|
useEffect(() => {
|
|
11172
11189
|
var _wsServicesMastersDat, _list, _wsServicesMastersDat2, _wsServicesMastersDat3, _wsServicesMastersDat4, _wsServicesMastersDat5, _wsServicesMastersDat6;
|
|
11173
11190
|
let list = (wsServicesMastersData === null || wsServicesMastersData === void 0 ? void 0 : (_wsServicesMastersDat = wsServicesMastersData["ws-services-masters"]) === null || _wsServicesMastersDat === void 0 ? void 0 : _wsServicesMastersDat.ApplicationType) || [];
|
|
@@ -11409,15 +11426,19 @@ const ConnectionDetails = _props => {
|
|
|
11409
11426
|
}
|
|
11410
11427
|
}, [formValue, connectionDetails]);
|
|
11411
11428
|
useEffect(() => {
|
|
11412
|
-
var _Object$keys, _Object$keys2, _connectionDetails$
|
|
11429
|
+
var _Object$keys, _Object$keys2, _connectionDetails$4, _connectionDetails$5;
|
|
11413
11430
|
let isClear = true;
|
|
11414
11431
|
connectionDetails && ((_Object$keys = Object.keys(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails[0])) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(data => {
|
|
11432
|
+
var _connectionDetails$3, _connectionDetails$3$;
|
|
11433
|
+
if (((_connectionDetails$3 = connectionDetails[0]) === null || _connectionDetails$3 === void 0 ? void 0 : (_connectionDetails$3$ = _connectionDetails$3.domesticType) === null || _connectionDetails$3$ === void 0 ? void 0 : _connectionDetails$3$.code) === "INDIVIDUAL" && ["institutionName", "natureOfWork", "orgDeptDocument", "departmentType"].includes(data)) {
|
|
11434
|
+
return;
|
|
11435
|
+
}
|
|
11415
11436
|
if (!connectionDetails[0][data] && connectionDetails[0][data] != false && isClear) isClear = false;
|
|
11416
11437
|
}));
|
|
11417
11438
|
if (isClear && ((_Object$keys2 = Object.keys(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails[0])) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.length) > 1) {
|
|
11418
11439
|
clearErrors("ConnectionDetails");
|
|
11419
11440
|
}
|
|
11420
|
-
if (!(connectionDetails !== null && connectionDetails !== void 0 && (_connectionDetails$
|
|
11441
|
+
if (!(connectionDetails !== null && connectionDetails !== void 0 && (_connectionDetails$4 = connectionDetails[0]) !== null && _connectionDetails$4 !== void 0 && _connectionDetails$4.sewerage)) {
|
|
11421
11442
|
clearErrors(config.key, {
|
|
11422
11443
|
type: "proposedToilets"
|
|
11423
11444
|
});
|
|
@@ -11425,7 +11446,7 @@ const ConnectionDetails = _props => {
|
|
|
11425
11446
|
type: "proposedWaterClosets"
|
|
11426
11447
|
});
|
|
11427
11448
|
}
|
|
11428
|
-
if (!(connectionDetails !== null && connectionDetails !== void 0 && (_connectionDetails$
|
|
11449
|
+
if (!(connectionDetails !== null && connectionDetails !== void 0 && (_connectionDetails$5 = connectionDetails[0]) !== null && _connectionDetails$5 !== void 0 && _connectionDetails$5.water)) {
|
|
11429
11450
|
clearErrors(config.key, {
|
|
11430
11451
|
type: "proposedPipeSize"
|
|
11431
11452
|
});
|
|
@@ -11441,10 +11462,10 @@ const ConnectionDetails = _props => {
|
|
|
11441
11462
|
setError(config.key, {
|
|
11442
11463
|
type: errors
|
|
11443
11464
|
});
|
|
11444
|
-
} else if (!Object.keys(errors).length && formState.errors[config.key]
|
|
11465
|
+
} else if (!Object.keys(errors).length && formState.errors[config.key]) {
|
|
11445
11466
|
clearErrors(config.key);
|
|
11446
11467
|
}
|
|
11447
|
-
}, [errors]);
|
|
11468
|
+
}, [errors, formState.errors]);
|
|
11448
11469
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
11449
11470
|
const isEmployee = window.location.href.includes("/employee");
|
|
11450
11471
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
@@ -12445,7 +12466,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
12445
12466
|
const [emailId, setEmailId] = useState(connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.emailId);
|
|
12446
12467
|
const [watsAppMobileNumber, setWatsAppMobileNumber] = useState(connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.watsAppMobileNumber);
|
|
12447
12468
|
const [isWatsappSameAsMobile, setIsWatsappSameAsMobile] = useState((connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.isWatsappSameAsMobile) || false);
|
|
12448
|
-
const formValue = {
|
|
12469
|
+
const formValue = React.useMemo(() => ({
|
|
12449
12470
|
name,
|
|
12450
12471
|
middleName,
|
|
12451
12472
|
lastName,
|
|
@@ -12460,7 +12481,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
12460
12481
|
emailId,
|
|
12461
12482
|
watsAppMobileNumber,
|
|
12462
12483
|
isWatsappSameAsMobile
|
|
12463
|
-
};
|
|
12484
|
+
}), [name, middleName, lastName, gender, mobileNumber, guardian, relationship, ownerType, sameAsOwnerDetails, address, uuid, emailId, watsAppMobileNumber, isWatsappSameAsMobile]);
|
|
12464
12485
|
const {
|
|
12465
12486
|
errors
|
|
12466
12487
|
} = localFormState;
|
|
@@ -12595,7 +12616,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
12595
12616
|
render: props => {
|
|
12596
12617
|
var _errors$name, _getValues, _formData$ConnectionD, _formData$ConnectionD2, _formData$cpt, _formData$cpt$details, _formData$ConnectionD3, _formData$ConnectionD4, _formData$ConnectionD5, _formData$ConnectionD6;
|
|
12597
12618
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
12598
|
-
value: getValues("name"),
|
|
12619
|
+
value: getValues("name") || "",
|
|
12599
12620
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "name",
|
|
12600
12621
|
errorStyle: localFormState.touched.name && errors !== null && errors !== void 0 && (_errors$name = errors.name) !== null && _errors$name !== void 0 && _errors$name.message ? true : false,
|
|
12601
12622
|
onChange: e => {
|
|
@@ -12642,7 +12663,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
12642
12663
|
render: props => {
|
|
12643
12664
|
var _errors$middleName;
|
|
12644
12665
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
12645
|
-
value: getValues("middleName"),
|
|
12666
|
+
value: getValues("middleName") || "",
|
|
12646
12667
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "middleName",
|
|
12647
12668
|
errorStyle: localFormState.touched.middleName && errors !== null && errors !== void 0 && (_errors$middleName = errors.middleName) !== null && _errors$middleName !== void 0 && _errors$middleName.message ? true : false,
|
|
12648
12669
|
onChange: e => {
|
|
@@ -12668,7 +12689,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
12668
12689
|
render: props => {
|
|
12669
12690
|
var _errors$lastName;
|
|
12670
12691
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
12671
|
-
value: getValues("lastName"),
|
|
12692
|
+
value: getValues("lastName") || "",
|
|
12672
12693
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "lastName",
|
|
12673
12694
|
errorStyle: localFormState.touched.lastName && errors !== null && errors !== void 0 && (_errors$lastName = errors.lastName) !== null && _errors$lastName !== void 0 && _errors$lastName.message ? true : false,
|
|
12674
12695
|
onChange: e => {
|
|
@@ -12756,7 +12777,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
12756
12777
|
render: props => {
|
|
12757
12778
|
var _errors$guardian, _getValues2, _formData$ConnectionD11, _formData$ConnectionD12, _formData$cpt3, _formData$cpt3$detail, _formData$ConnectionD13, _formData$ConnectionD14, _formData$ConnectionD15, _formData$ConnectionD16;
|
|
12758
12779
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
12759
|
-
value: getValues("guardian"),
|
|
12780
|
+
value: getValues("guardian") || "",
|
|
12760
12781
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "guardian",
|
|
12761
12782
|
errorStyle: localFormState.touched.guardian && errors !== null && errors !== void 0 && (_errors$guardian = errors.guardian) !== null && _errors$guardian !== void 0 && _errors$guardian.message ? true : false,
|
|
12762
12783
|
onChange: e => {
|
|
@@ -12867,7 +12888,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
12867
12888
|
const mobileValue = getValues("mobileNumber");
|
|
12868
12889
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
|
|
12869
12890
|
name: "mobileNumber",
|
|
12870
|
-
value: mobileValue,
|
|
12891
|
+
value: mobileValue || "",
|
|
12871
12892
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "mobileNumber",
|
|
12872
12893
|
errorStyle: localFormState.touched.mobileNumber && (errors === null || errors === void 0 ? void 0 : (_errors$mobileNumber = errors.mobileNumber) === null || _errors$mobileNumber === void 0 ? void 0 : _errors$mobileNumber.message),
|
|
12873
12894
|
onChange: val => {
|
|
@@ -12912,39 +12933,6 @@ const ConnectionDetails$1 = _props => {
|
|
|
12912
12933
|
}, errors === null || errors === void 0 ? void 0 : (_errors$mobileNumber3 = errors.mobileNumber) === null || _errors$mobileNumber3 === void 0 ? void 0 : _errors$mobileNumber3.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER")}`), /*#__PURE__*/React.createElement("div", {
|
|
12913
12934
|
className: "field"
|
|
12914
12935
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
12915
|
-
control: control,
|
|
12916
|
-
name: "isWatsappSameAsMobile",
|
|
12917
|
-
defaultValue: isWatsappSameAsMobile,
|
|
12918
|
-
render: props => {
|
|
12919
|
-
var _errors$isWatsappSame;
|
|
12920
|
-
return /*#__PURE__*/React.createElement(CheckBox, {
|
|
12921
|
-
label: t("WS_SAME_AS_MOBILE_NUMBER"),
|
|
12922
|
-
name: "isWatsappSameAsMobile",
|
|
12923
|
-
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "isWatsappSameAsMobile",
|
|
12924
|
-
errorStyle: localFormState.touched.isWatsappSameAsMobile && errors !== null && errors !== void 0 && (_errors$isWatsappSame = errors.isWatsappSameAsMobile) !== null && _errors$isWatsappSame !== void 0 && _errors$isWatsappSame.message ? true : false,
|
|
12925
|
-
onChange: e => {
|
|
12926
|
-
setIsWatsappSameAsMobile(e.target.checked);
|
|
12927
|
-
props.onChange(e.target.checked);
|
|
12928
|
-
setFocusIndex({
|
|
12929
|
-
index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
|
|
12930
|
-
type: "isWatsappSameAsMobile"
|
|
12931
|
-
});
|
|
12932
|
-
if (e.target.checked) {
|
|
12933
|
-
setWatsAppMobileNumber(mobileNumber);
|
|
12934
|
-
setValue("watsAppMobileNumber", mobileNumber);
|
|
12935
|
-
} else {
|
|
12936
|
-
setWatsAppMobileNumber("");
|
|
12937
|
-
setValue("watsAppMobileNumber", "");
|
|
12938
|
-
}
|
|
12939
|
-
},
|
|
12940
|
-
checked: isWatsappSameAsMobile,
|
|
12941
|
-
onBlur: props.onBlur,
|
|
12942
|
-
style: {
|
|
12943
|
-
paddingBottom: "10px"
|
|
12944
|
-
}
|
|
12945
|
-
});
|
|
12946
|
-
}
|
|
12947
|
-
}), /*#__PURE__*/React.createElement(Controller, {
|
|
12948
12936
|
control: control,
|
|
12949
12937
|
name: "watsAppMobileNumber",
|
|
12950
12938
|
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.watsAppMobileNumber,
|
|
@@ -12958,7 +12946,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
12958
12946
|
const watsAppmobileValue = getValues("watsAppMobileNumber");
|
|
12959
12947
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
|
|
12960
12948
|
name: "watsAppMobileNumber",
|
|
12961
|
-
value: watsAppmobileValue,
|
|
12949
|
+
value: watsAppmobileValue || "",
|
|
12962
12950
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "watsAppMobileNumber",
|
|
12963
12951
|
errorStyle: localFormState.touched.watsAppMobileNumber && (errors === null || errors === void 0 ? void 0 : (_errors$watsAppMobile = errors.watsAppMobileNumber) === null || _errors$watsAppMobile === void 0 ? void 0 : _errors$watsAppMobile.message),
|
|
12964
12952
|
onChange: val => {
|
|
@@ -12995,7 +12983,41 @@ const ConnectionDetails$1 = _props => {
|
|
|
12995
12983
|
}
|
|
12996
12984
|
})));
|
|
12997
12985
|
}
|
|
12998
|
-
})
|
|
12986
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
12987
|
+
style: {
|
|
12988
|
+
marginTop: "5px"
|
|
12989
|
+
}
|
|
12990
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
12991
|
+
control: control,
|
|
12992
|
+
name: "isWatsappSameAsMobile",
|
|
12993
|
+
defaultValue: isWatsappSameAsMobile,
|
|
12994
|
+
render: props => {
|
|
12995
|
+
var _errors$isWatsappSame;
|
|
12996
|
+
return /*#__PURE__*/React.createElement(CheckBox, {
|
|
12997
|
+
label: t("WS_SAME_AS_MOBILE_NUMBER"),
|
|
12998
|
+
name: "isWatsappSameAsMobile",
|
|
12999
|
+
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "isWatsappSameAsMobile",
|
|
13000
|
+
errorStyle: localFormState.touched.isWatsappSameAsMobile && errors !== null && errors !== void 0 && (_errors$isWatsappSame = errors.isWatsappSameAsMobile) !== null && _errors$isWatsappSame !== void 0 && _errors$isWatsappSame.message ? true : false,
|
|
13001
|
+
onChange: e => {
|
|
13002
|
+
setIsWatsappSameAsMobile(e.target.checked);
|
|
13003
|
+
props.onChange(e.target.checked);
|
|
13004
|
+
setFocusIndex({
|
|
13005
|
+
index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
|
|
13006
|
+
type: "isWatsappSameAsMobile"
|
|
13007
|
+
});
|
|
13008
|
+
if (e.target.checked) {
|
|
13009
|
+
setWatsAppMobileNumber(mobileNumber);
|
|
13010
|
+
setValue("watsAppMobileNumber", mobileNumber);
|
|
13011
|
+
} else {
|
|
13012
|
+
setWatsAppMobileNumber("");
|
|
13013
|
+
setValue("watsAppMobileNumber", "");
|
|
13014
|
+
}
|
|
13015
|
+
},
|
|
13016
|
+
checked: isWatsappSameAsMobile,
|
|
13017
|
+
onBlur: props.onBlur
|
|
13018
|
+
});
|
|
13019
|
+
}
|
|
13020
|
+
})))), localFormState.touched.watsAppMobileNumber && (errors === null || errors === void 0 ? void 0 : (_errors$watsAppMobile2 = errors.watsAppMobileNumber) === null || _errors$watsAppMobile2 === void 0 ? void 0 : _errors$watsAppMobile2.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
12999
13021
|
style: errorStyle
|
|
13000
13022
|
}, errors === null || errors === void 0 ? void 0 : (_errors$watsAppMobile3 = errors.watsAppMobileNumber) === null || _errors$watsAppMobile3 === void 0 ? void 0 : _errors$watsAppMobile3.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_EMAIL_ID")}`), /*#__PURE__*/React.createElement("div", {
|
|
13001
13023
|
className: "field"
|
|
@@ -13010,7 +13032,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
13010
13032
|
render: props => {
|
|
13011
13033
|
var _errors$emailId, _getValues3, _formData$ConnectionD35, _formData$ConnectionD36, _formData$cpt7, _formData$cpt7$detail, _formData$ConnectionD37, _formData$ConnectionD38, _formData$ConnectionD39, _formData$ConnectionD40;
|
|
13012
13034
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
13013
|
-
value: getValues("emailId"),
|
|
13035
|
+
value: getValues("emailId") || "",
|
|
13014
13036
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "emailId",
|
|
13015
13037
|
errorStyle: localFormState.touched.emailId && errors !== null && errors !== void 0 && (_errors$emailId = errors.emailId) !== null && _errors$emailId !== void 0 && _errors$emailId.message ? true : false,
|
|
13016
13038
|
onChange: e => {
|
|
@@ -19935,9 +19957,7 @@ const WSBankDetails = ({
|
|
|
19935
19957
|
defaultOpen: true
|
|
19936
19958
|
}, /*#__PURE__*/React.createElement("div", {
|
|
19937
19959
|
className: "formcomposer-section-grid"
|
|
19938
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
19939
|
-
className: "card-label-smaller"
|
|
19940
|
-
}, t("WS_NAME_OF_BANK") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
19960
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NAME_OF_BANK") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
19941
19961
|
className: "field"
|
|
19942
19962
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
19943
19963
|
control: control,
|
|
@@ -19953,9 +19973,7 @@ const WSBankDetails = ({
|
|
|
19953
19973
|
})
|
|
19954
19974
|
}))), (_localFormState$touch = localFormState.touched) !== null && _localFormState$touch !== void 0 && _localFormState$touch.bankName ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19955
19975
|
style: errorStyle
|
|
19956
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$bankName = errors.bankName) === null || _errors$bankName === void 0 ? void 0 : _errors$bankName.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
19957
|
-
className: "card-label-smaller"
|
|
19958
|
-
}, t("WS_NAME_OF_BRANCH") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
19976
|
+
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$bankName = errors.bankName) === null || _errors$bankName === void 0 ? void 0 : _errors$bankName.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NAME_OF_BRANCH") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
19959
19977
|
className: "field"
|
|
19960
19978
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
19961
19979
|
control: control,
|
|
@@ -19971,9 +19989,7 @@ const WSBankDetails = ({
|
|
|
19971
19989
|
})
|
|
19972
19990
|
}))), (_localFormState$touch2 = localFormState.touched) !== null && _localFormState$touch2 !== void 0 && _localFormState$touch2.bankBranchName ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19973
19991
|
style: errorStyle
|
|
19974
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$bankBranchNam = errors.bankBranchName) === null || _errors$bankBranchNam === void 0 ? void 0 : _errors$bankBranchNam.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
19975
|
-
className: "card-label-smaller"
|
|
19976
|
-
}, t("WS_IFSC_CODE") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
19992
|
+
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$bankBranchNam = errors.bankBranchName) === null || _errors$bankBranchNam === void 0 ? void 0 : _errors$bankBranchNam.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_IFSC_CODE") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
19977
19993
|
className: "field"
|
|
19978
19994
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
19979
19995
|
control: control,
|
|
@@ -19993,9 +20009,7 @@ const WSBankDetails = ({
|
|
|
19993
20009
|
})
|
|
19994
20010
|
}))), (_localFormState$touch3 = localFormState.touched) !== null && _localFormState$touch3 !== void 0 && _localFormState$touch3.ifscCode ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
19995
20011
|
style: errorStyle
|
|
19996
|
-
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$ifscCode = errors.ifscCode) === null || _errors$ifscCode === void 0 ? void 0 : _errors$ifscCode.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
19997
|
-
className: "card-label-smaller"
|
|
19998
|
-
}, t("WS_BANK_ACCOUNT_NO") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
20012
|
+
}, " ", errors === null || errors === void 0 ? void 0 : (_errors$ifscCode = errors.ifscCode) === null || _errors$ifscCode === void 0 ? void 0 : _errors$ifscCode.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_BANK_ACCOUNT_NO") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
19999
20013
|
className: "field"
|
|
20000
20014
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
20001
20015
|
control: control,
|
|
@@ -20003,15 +20017,22 @@ const WSBankDetails = ({
|
|
|
20003
20017
|
rules: {
|
|
20004
20018
|
required: t("CORE_COMMON_REQUIRED_ERRMSG"),
|
|
20005
20019
|
pattern: {
|
|
20006
|
-
value: /^[0-9]{
|
|
20020
|
+
value: /^[0-9]{1,18}$/,
|
|
20007
20021
|
message: t("ERR_INVALID_BA_ACCOUNT_NUMBER")
|
|
20008
20022
|
}
|
|
20009
20023
|
},
|
|
20010
20024
|
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
20011
20025
|
value: props.value,
|
|
20012
20026
|
placeholder: t("WS_BANK_ACCOUNT_NO_PLACEHOLDER"),
|
|
20013
|
-
onChange: e =>
|
|
20014
|
-
|
|
20027
|
+
onChange: e => {
|
|
20028
|
+
let value = e.target.value.replace(/\D/g, "");
|
|
20029
|
+
if (value.length > 18) {
|
|
20030
|
+
value = value.slice(0, 18);
|
|
20031
|
+
}
|
|
20032
|
+
props.onChange(value);
|
|
20033
|
+
},
|
|
20034
|
+
onBlur: props.onBlur,
|
|
20035
|
+
maxLength: 18
|
|
20015
20036
|
})
|
|
20016
20037
|
}))), (_localFormState$touch4 = localFormState.touched) !== null && _localFormState$touch4 !== void 0 && _localFormState$touch4.accountNumber ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
20017
20038
|
style: errorStyle
|
|
@@ -20374,7 +20395,7 @@ const WSDjbEmployee = ({
|
|
|
20374
20395
|
required: isDjbEmployee ? t("CORE_COMMON_REQUIRED_ERRMSG") : false
|
|
20375
20396
|
},
|
|
20376
20397
|
render: props => /*#__PURE__*/React.createElement(DatePicker, {
|
|
20377
|
-
|
|
20398
|
+
date: props.value,
|
|
20378
20399
|
onChange: date => props.onChange(date)
|
|
20379
20400
|
})
|
|
20380
20401
|
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_EMPLOYEE_DESIGNATION") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
@@ -46806,6 +46827,390 @@ const BulkBillGeneration = ({
|
|
|
46806
46827
|
}));
|
|
46807
46828
|
};
|
|
46808
46829
|
|
|
46830
|
+
const ActionButton = ({
|
|
46831
|
+
onClick
|
|
46832
|
+
}) => {
|
|
46833
|
+
return /*#__PURE__*/React.createElement(LinkButton, {
|
|
46834
|
+
label: /*#__PURE__*/React.createElement(EditIcon, {
|
|
46835
|
+
style: {
|
|
46836
|
+
marginTop: "-10px",
|
|
46837
|
+
float: "right",
|
|
46838
|
+
position: "relative",
|
|
46839
|
+
bottom: "10px"
|
|
46840
|
+
}
|
|
46841
|
+
}),
|
|
46842
|
+
className: "check-page-link-button",
|
|
46843
|
+
onClick: onClick
|
|
46844
|
+
});
|
|
46845
|
+
};
|
|
46846
|
+
const openFilePDF = fileId => {
|
|
46847
|
+
Digit.UploadServices.Filefetch([fileId], Digit.ULBService.getStateId()).then(res => {
|
|
46848
|
+
var _res$data, _res$data$fileStoreId, _res$data$fileStoreId2;
|
|
46849
|
+
const concatenatedUrls = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$fileStoreId = _res$data.fileStoreIds) === null || _res$data$fileStoreId === void 0 ? void 0 : (_res$data$fileStoreId2 = _res$data$fileStoreId[0]) === null || _res$data$fileStoreId2 === void 0 ? void 0 : _res$data$fileStoreId2.url;
|
|
46850
|
+
if (concatenatedUrls) {
|
|
46851
|
+
const urlArray = concatenatedUrls.split(",");
|
|
46852
|
+
const fileUrl = urlArray[0];
|
|
46853
|
+
if (fileUrl) {
|
|
46854
|
+
window.open(fileUrl, "_blank");
|
|
46855
|
+
}
|
|
46856
|
+
}
|
|
46857
|
+
}).catch(error => console.error("Error fetching file:", error));
|
|
46858
|
+
};
|
|
46859
|
+
const CheckPage$4 = ({
|
|
46860
|
+
data,
|
|
46861
|
+
onSubmit,
|
|
46862
|
+
onEdit
|
|
46863
|
+
}) => {
|
|
46864
|
+
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;
|
|
46865
|
+
const {
|
|
46866
|
+
t
|
|
46867
|
+
} = useTranslation();
|
|
46868
|
+
const [showDocModal, setShowDocModal] = useState(false);
|
|
46869
|
+
const [docFileUrl, setDocFileUrl] = useState("");
|
|
46870
|
+
const [docFileType, setDocFileType] = useState("");
|
|
46871
|
+
const cpt = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : _data$cpt.details) || {};
|
|
46872
|
+
let propertyAddress = (data === null || data === void 0 ? void 0 : data.propertyAddress) || {};
|
|
46873
|
+
if (Object.keys(propertyAddress).length === 0) {
|
|
46874
|
+
propertyAddress = (cpt === null || cpt === void 0 ? void 0 : cpt.address) || {};
|
|
46875
|
+
}
|
|
46876
|
+
const additionalDetails = (cpt === null || cpt === void 0 ? void 0 : cpt.additionalDetails) || {};
|
|
46877
|
+
let connectionDetails = (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai = data.ConnectionDetails) === null || _data$ConnectionDetai === void 0 ? void 0 : _data$ConnectionDetai[0]) || (data === null || data === void 0 ? void 0 : data.ConnectionDetails) || (data === null || data === void 0 ? void 0 : (_data$connectionDetai = data.connectionDetails) === null || _data$connectionDetai === void 0 ? void 0 : _data$connectionDetai[0]) || (data === null || data === void 0 ? void 0 : data.connectionDetails) || {};
|
|
46878
|
+
if (Array.isArray(connectionDetails)) {
|
|
46879
|
+
connectionDetails = connectionDetails[0] || {};
|
|
46880
|
+
}
|
|
46881
|
+
let holderDetails = (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde = data.ConnectionHolderDetails) === null || _data$ConnectionHolde === void 0 ? void 0 : _data$ConnectionHolde[0]) || (data === null || data === void 0 ? void 0 : data.ConnectionHolderDetails) || (data === null || data === void 0 ? void 0 : (_data$connectionHolde = data.connectionHolderDetails) === null || _data$connectionHolde === void 0 ? void 0 : _data$connectionHolde[0]) || (data === null || data === void 0 ? void 0 : data.connectionHolderDetails) || {};
|
|
46882
|
+
if (Array.isArray(holderDetails)) {
|
|
46883
|
+
holderDetails = holderDetails[0] || {};
|
|
46884
|
+
}
|
|
46885
|
+
const useDetails = (data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : _data$useDetails.useDetails) || (data === null || data === void 0 ? void 0 : data.useDetails) || {};
|
|
46886
|
+
const bankDetails = (data === null || data === void 0 ? void 0 : (_data$bankDetails = data.bankDetails) === null || _data$bankDetails === void 0 ? void 0 : _data$bankDetails.bankDetails) || (data === null || data === void 0 ? void 0 : data.bankDetails) || {};
|
|
46887
|
+
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) || [];
|
|
46888
|
+
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) || {};
|
|
46889
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, {
|
|
46890
|
+
className: "overflow-y-scroll"
|
|
46891
|
+
}, /*#__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, {
|
|
46892
|
+
style: {
|
|
46893
|
+
marginTop: "10px",
|
|
46894
|
+
marginBottom: "30px"
|
|
46895
|
+
}
|
|
46896
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
46897
|
+
label: t("WS_PROPERTY_ID_LABEL"),
|
|
46898
|
+
text: `${t(checkForNA(cpt === null || cpt === void 0 ? void 0 : cpt.propertyId))}`,
|
|
46899
|
+
actionButton: /*#__PURE__*/React.createElement(ActionButton, {
|
|
46900
|
+
onClick: onEdit
|
|
46901
|
+
})
|
|
46902
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
46903
|
+
style: {
|
|
46904
|
+
marginTop: "10px",
|
|
46905
|
+
marginBottom: "30px"
|
|
46906
|
+
}
|
|
46907
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
46908
|
+
label: t("WS_SERVICE_TYPE"),
|
|
46909
|
+
text: `${t(checkForNA(((_connectionDetails = connectionDetails) === null || _connectionDetails === void 0 ? void 0 : (_connectionDetails$se = _connectionDetails.serviceType) === null || _connectionDetails$se === void 0 ? void 0 : _connectionDetails$se.i18nKey) || ((_connectionDetails2 = connectionDetails) === null || _connectionDetails2 === void 0 ? void 0 : (_connectionDetails2$s = _connectionDetails2.serviceType) === null || _connectionDetails2$s === void 0 ? void 0 : _connectionDetails2$s.code) || ((_connectionDetails3 = connectionDetails) === null || _connectionDetails3 === void 0 ? void 0 : _connectionDetails3.serviceType)))}`,
|
|
46910
|
+
actionButton: /*#__PURE__*/React.createElement(ActionButton, {
|
|
46911
|
+
onClick: onEdit
|
|
46912
|
+
})
|
|
46913
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46914
|
+
label: t("WS_CONNECTION_TYPE"),
|
|
46915
|
+
text: `${t(checkForNA(((_connectionDetails4 = connectionDetails) === null || _connectionDetails4 === void 0 ? void 0 : (_connectionDetails4$c = _connectionDetails4.connectionType) === null || _connectionDetails4$c === void 0 ? void 0 : _connectionDetails4$c.i18nKey) || ((_connectionDetails5 = connectionDetails) === null || _connectionDetails5 === void 0 ? void 0 : (_connectionDetails5$c = _connectionDetails5.connectionType) === null || _connectionDetails5$c === void 0 ? void 0 : _connectionDetails5$c.code) || ((_connectionDetails6 = connectionDetails) === null || _connectionDetails6 === void 0 ? void 0 : _connectionDetails6.connectionType)))}`
|
|
46916
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46917
|
+
label: t("WS_WATER_DEMAND_TYPE"),
|
|
46918
|
+
text: `${t(checkForNA(((_connectionDetails7 = connectionDetails) === null || _connectionDetails7 === void 0 ? void 0 : (_connectionDetails7$w = _connectionDetails7.waterDemandType) === null || _connectionDetails7$w === void 0 ? void 0 : _connectionDetails7$w.i18nKey) || ((_connectionDetails8 = connectionDetails) === null || _connectionDetails8 === void 0 ? void 0 : (_connectionDetails8$w = _connectionDetails8.waterDemandType) === null || _connectionDetails8$w === void 0 ? void 0 : _connectionDetails8$w.code) || ((_connectionDetails9 = connectionDetails) === null || _connectionDetails9 === void 0 ? void 0 : _connectionDetails9.waterDemandType)))}`
|
|
46919
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46920
|
+
label: t("WS_APPLICANT_TYPE"),
|
|
46921
|
+
text: `${t(checkForNA(((_connectionDetails0 = connectionDetails) === null || _connectionDetails0 === void 0 ? void 0 : (_connectionDetails0$a = _connectionDetails0.applicantType) === null || _connectionDetails0$a === void 0 ? void 0 : _connectionDetails0$a.i18nKey) || ((_connectionDetails1 = connectionDetails) === null || _connectionDetails1 === void 0 ? void 0 : (_connectionDetails1$a = _connectionDetails1.applicantType) === null || _connectionDetails1$a === void 0 ? void 0 : _connectionDetails1$a.code) || ((_connectionDetails10 = connectionDetails) === null || _connectionDetails10 === void 0 ? void 0 : _connectionDetails10.applicantType)))}`
|
|
46922
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46923
|
+
label: t("WS_SERVICE_TYPE"),
|
|
46924
|
+
text: `${t(checkForNA(((_connectionDetails11 = connectionDetails) === null || _connectionDetails11 === void 0 ? void 0 : (_connectionDetails11$ = _connectionDetails11.domesticType) === null || _connectionDetails11$ === void 0 ? void 0 : _connectionDetails11$.i18nKey) || ((_connectionDetails12 = connectionDetails) === null || _connectionDetails12 === void 0 ? void 0 : (_connectionDetails12$ = _connectionDetails12.domesticType) === null || _connectionDetails12$ === void 0 ? void 0 : _connectionDetails12$.code) || ((_connectionDetails13 = connectionDetails) === null || _connectionDetails13 === void 0 ? void 0 : _connectionDetails13.domesticType)))}`
|
|
46925
|
+
}), ((_connectionDetails14 = connectionDetails) === null || _connectionDetails14 === void 0 ? void 0 : (_connectionDetails14$ = _connectionDetails14.domesticType) === null || _connectionDetails14$ === void 0 ? void 0 : _connectionDetails14$.code) === "ORGANIZATION" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
46926
|
+
label: t("WS_DEPARTMENT_TYPE"),
|
|
46927
|
+
text: `${t(checkForNA(((_connectionDetails15 = connectionDetails) === null || _connectionDetails15 === void 0 ? void 0 : (_connectionDetails15$ = _connectionDetails15.departmentType) === null || _connectionDetails15$ === void 0 ? void 0 : _connectionDetails15$.i18nKey) || ((_connectionDetails16 = connectionDetails) === null || _connectionDetails16 === void 0 ? void 0 : (_connectionDetails16$ = _connectionDetails16.departmentType) === null || _connectionDetails16$ === void 0 ? void 0 : _connectionDetails16$.code) || ((_connectionDetails17 = connectionDetails) === null || _connectionDetails17 === void 0 ? void 0 : _connectionDetails17.departmentType)))}`
|
|
46928
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46929
|
+
label: t("WS_ORGANIZATION_DEPARTMENT_NAME"),
|
|
46930
|
+
text: `${t(checkForNA((_connectionDetails18 = connectionDetails) === null || _connectionDetails18 === void 0 ? void 0 : _connectionDetails18.institutionName))}`
|
|
46931
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46932
|
+
label: t("WS_NATURE_OF_WORK"),
|
|
46933
|
+
text: `${t(checkForNA((_connectionDetails19 = connectionDetails) === null || _connectionDetails19 === void 0 ? void 0 : _connectionDetails19.natureOfWork))}`
|
|
46934
|
+
}), ((_connectionDetails20 = connectionDetails) === null || _connectionDetails20 === void 0 ? void 0 : _connectionDetails20.orgDeptDocument) && /*#__PURE__*/React.createElement(Row, {
|
|
46935
|
+
label: t("WS_ORG_DEPT_DOCUMENT"),
|
|
46936
|
+
text: /*#__PURE__*/React.createElement("span", {
|
|
46937
|
+
style: {
|
|
46938
|
+
display: "flex",
|
|
46939
|
+
alignItems: "center",
|
|
46940
|
+
gap: "8px",
|
|
46941
|
+
cursor: "pointer",
|
|
46942
|
+
color: "#f47738"
|
|
46943
|
+
},
|
|
46944
|
+
onClick: () => {
|
|
46945
|
+
var _connectionDetails21;
|
|
46946
|
+
return openFilePDF((_connectionDetails21 = connectionDetails) === null || _connectionDetails21 === void 0 ? void 0 : _connectionDetails21.orgDeptDocument);
|
|
46947
|
+
}
|
|
46948
|
+
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
46949
|
+
}))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
46950
|
+
style: {
|
|
46951
|
+
marginTop: "10px",
|
|
46952
|
+
marginBottom: "30px"
|
|
46953
|
+
}
|
|
46954
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
46955
|
+
label: t("WS_OWN_DETAIL_NAME"),
|
|
46956
|
+
text: `${t(checkForNA((_holderDetails = holderDetails) === null || _holderDetails === void 0 ? void 0 : _holderDetails.name))}`,
|
|
46957
|
+
actionButton: /*#__PURE__*/React.createElement(ActionButton, {
|
|
46958
|
+
onClick: onEdit
|
|
46959
|
+
})
|
|
46960
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46961
|
+
label: t("WS_OWN_DETAIL_MIDDLE_NAME"),
|
|
46962
|
+
text: `${t(checkForNA((_holderDetails2 = holderDetails) === null || _holderDetails2 === void 0 ? void 0 : _holderDetails2.middleName))}`
|
|
46963
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46964
|
+
label: t("WS_OWN_DETAIL_LAST_NAME"),
|
|
46965
|
+
text: `${t(checkForNA((_holderDetails3 = holderDetails) === null || _holderDetails3 === void 0 ? void 0 : _holderDetails3.lastName))}`
|
|
46966
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46967
|
+
label: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL"),
|
|
46968
|
+
text: `${t(checkForNA(((_holderDetails4 = holderDetails) === null || _holderDetails4 === void 0 ? void 0 : (_holderDetails4$gende = _holderDetails4.gender) === null || _holderDetails4$gende === void 0 ? void 0 : _holderDetails4$gende.i18nKey) || ((_holderDetails5 = holderDetails) === null || _holderDetails5 === void 0 ? void 0 : (_holderDetails5$gende = _holderDetails5.gender) === null || _holderDetails5$gende === void 0 ? void 0 : _holderDetails5$gende.code) || ((_holderDetails6 = holderDetails) === null || _holderDetails6 === void 0 ? void 0 : _holderDetails6.gender)))}`
|
|
46969
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46970
|
+
label: t("WS_OWN_DETAIL_GUARDIAN_LABEL"),
|
|
46971
|
+
text: `${t(checkForNA((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.guardian))}`
|
|
46972
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46973
|
+
label: t("WS_CONN_HOLDER_OWN_DETAIL_RELATION_LABEL"),
|
|
46974
|
+
text: `${t(checkForNA(((_holderDetails8 = holderDetails) === null || _holderDetails8 === void 0 ? void 0 : (_holderDetails8$relat = _holderDetails8.relationship) === null || _holderDetails8$relat === void 0 ? void 0 : _holderDetails8$relat.i18nKey) || ((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : (_holderDetails9$relat = _holderDetails9.relationship) === null || _holderDetails9$relat === void 0 ? void 0 : _holderDetails9$relat.code) || ((_holderDetails0 = holderDetails) === null || _holderDetails0 === void 0 ? void 0 : _holderDetails0.relationship)))}`
|
|
46975
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46976
|
+
label: t("CORE_COMMON_MOBILE_NUMBER"),
|
|
46977
|
+
text: `${t(checkForNA((_holderDetails1 = holderDetails) === null || _holderDetails1 === void 0 ? void 0 : _holderDetails1.mobileNumber))}`
|
|
46978
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46979
|
+
label: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
|
|
46980
|
+
text: `${t(checkForNA((_holderDetails10 = holderDetails) === null || _holderDetails10 === void 0 ? void 0 : _holderDetails10.watsAppMobileNumber))}`
|
|
46981
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46982
|
+
label: t("CORE_COMMON_EMAIL_ID"),
|
|
46983
|
+
text: `${t(checkForNA((_holderDetails11 = holderDetails) === null || _holderDetails11 === void 0 ? void 0 : _holderDetails11.emailId))}`
|
|
46984
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_LOCATION_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
46985
|
+
style: {
|
|
46986
|
+
marginTop: "10px",
|
|
46987
|
+
marginBottom: "30px"
|
|
46988
|
+
}
|
|
46989
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
46990
|
+
label: t("WS_ZRO_LOCATION"),
|
|
46991
|
+
text: `${t(checkForNA(((_propertyAddress = propertyAddress) === null || _propertyAddress === void 0 ? void 0 : (_propertyAddress$zro = _propertyAddress.zro) === null || _propertyAddress$zro === void 0 ? void 0 : _propertyAddress$zro.name) || ((_propertyAddress2 = propertyAddress) === null || _propertyAddress2 === void 0 ? void 0 : _propertyAddress2.zro) || ((_propertyAddress3 = propertyAddress) === null || _propertyAddress3 === void 0 ? void 0 : _propertyAddress3.zroLocation) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zroLocation) || ((_propertyAddress4 = propertyAddress) === null || _propertyAddress4 === void 0 ? void 0 : (_propertyAddress4$add = _propertyAddress4.additionalDetails) === null || _propertyAddress4$add === void 0 ? void 0 : _propertyAddress4$add.zroLocation)))}`,
|
|
46992
|
+
actionButton: /*#__PURE__*/React.createElement(ActionButton, {
|
|
46993
|
+
onClick: onEdit
|
|
46994
|
+
})
|
|
46995
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46996
|
+
label: t("COMMON_ADDRESS_TYPE"),
|
|
46997
|
+
text: `${t(checkForNA(((_propertyAddress5 = propertyAddress) === null || _propertyAddress5 === void 0 ? void 0 : (_propertyAddress5$add = _propertyAddress5.addressType) === null || _propertyAddress5$add === void 0 ? void 0 : _propertyAddress5$add.i18nKey) || ((_propertyAddress6 = propertyAddress) === null || _propertyAddress6 === void 0 ? void 0 : (_propertyAddress6$add = _propertyAddress6.addressType) === null || _propertyAddress6$add === void 0 ? void 0 : _propertyAddress6$add.code) || ((_propertyAddress7 = propertyAddress) === null || _propertyAddress7 === void 0 ? void 0 : _propertyAddress7.addressType)))}`
|
|
46998
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
46999
|
+
label: t("CITY"),
|
|
47000
|
+
text: `${t(checkForNA(((_propertyAddress8 = propertyAddress) === null || _propertyAddress8 === void 0 ? void 0 : (_propertyAddress8$cit = _propertyAddress8.city) === null || _propertyAddress8$cit === void 0 ? void 0 : _propertyAddress8$cit.name) || ((_propertyAddress9 = propertyAddress) === null || _propertyAddress9 === void 0 ? void 0 : (_propertyAddress9$cit = _propertyAddress9.city) === null || _propertyAddress9$cit === void 0 ? void 0 : _propertyAddress9$cit.code) || ((_propertyAddress0 = propertyAddress) === null || _propertyAddress0 === void 0 ? void 0 : _propertyAddress0.city)))}`
|
|
47001
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47002
|
+
label: t("PINCODE"),
|
|
47003
|
+
text: `${t(checkForNA(((_propertyAddress1 = propertyAddress) === null || _propertyAddress1 === void 0 ? void 0 : _propertyAddress1.pincode) || ((_propertyAddress10 = propertyAddress) === null || _propertyAddress10 === void 0 ? void 0 : _propertyAddress10.pinCode)))}`
|
|
47004
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47005
|
+
label: t("LOCALITY"),
|
|
47006
|
+
text: `${t(checkForNA(((_propertyAddress11 = propertyAddress) === null || _propertyAddress11 === void 0 ? void 0 : (_propertyAddress11$lo = _propertyAddress11.locality) === null || _propertyAddress11$lo === void 0 ? void 0 : _propertyAddress11$lo.name) || ((_propertyAddress12 = propertyAddress) === null || _propertyAddress12 === void 0 ? void 0 : (_propertyAddress12$lo = _propertyAddress12.locality) === null || _propertyAddress12$lo === void 0 ? void 0 : _propertyAddress12$lo.code) || ((_propertyAddress13 = propertyAddress) === null || _propertyAddress13 === void 0 ? void 0 : _propertyAddress13.locality)))}`
|
|
47007
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47008
|
+
label: t("SubLocality"),
|
|
47009
|
+
text: `${t(checkForNA(((_propertyAddress14 = propertyAddress) === null || _propertyAddress14 === void 0 ? void 0 : (_propertyAddress14$su = _propertyAddress14.subLocality) === null || _propertyAddress14$su === void 0 ? void 0 : _propertyAddress14$su.name) || ((_propertyAddress15 = propertyAddress) === null || _propertyAddress15 === void 0 ? void 0 : (_propertyAddress15$su = _propertyAddress15.subLocality) === null || _propertyAddress15$su === void 0 ? void 0 : _propertyAddress15$su.code) || ((_propertyAddress16 = propertyAddress) === null || _propertyAddress16 === void 0 ? void 0 : _propertyAddress16.subLocality)))}`
|
|
47010
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47011
|
+
label: t("STREET_NAME"),
|
|
47012
|
+
text: `${t(checkForNA(((_propertyAddress17 = propertyAddress) === null || _propertyAddress17 === void 0 ? void 0 : _propertyAddress17.streetName) || ((_propertyAddress18 = propertyAddress) === null || _propertyAddress18 === void 0 ? void 0 : _propertyAddress18.street)))}`
|
|
47013
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47014
|
+
label: t("ADDRESS_LINE1"),
|
|
47015
|
+
text: `${t(checkForNA(((_propertyAddress19 = propertyAddress) === null || _propertyAddress19 === void 0 ? void 0 : _propertyAddress19.addressLine1) || ((_propertyAddress20 = propertyAddress) === null || _propertyAddress20 === void 0 ? void 0 : _propertyAddress20.street)))}`
|
|
47016
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47017
|
+
label: t("ADDRESS_LINE2"),
|
|
47018
|
+
text: `${t(checkForNA((_propertyAddress21 = propertyAddress) === null || _propertyAddress21 === void 0 ? void 0 : _propertyAddress21.addressLine2))}`
|
|
47019
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47020
|
+
label: t("HOUSE_NO"),
|
|
47021
|
+
text: `${t(checkForNA(((_propertyAddress22 = propertyAddress) === null || _propertyAddress22 === void 0 ? void 0 : _propertyAddress22.houseNo) || ((_propertyAddress23 = propertyAddress) === null || _propertyAddress23 === void 0 ? void 0 : _propertyAddress23.doorNo)))}`
|
|
47022
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47023
|
+
label: t("LATITUDE"),
|
|
47024
|
+
text: `${t(checkForNA((_propertyAddress24 = propertyAddress) === null || _propertyAddress24 === void 0 ? void 0 : _propertyAddress24.latitude))}`
|
|
47025
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47026
|
+
label: t("LONGITUDE"),
|
|
47027
|
+
text: `${t(checkForNA((_propertyAddress25 = propertyAddress) === null || _propertyAddress25 === void 0 ? void 0 : _propertyAddress25.longitude))}`
|
|
47028
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47029
|
+
label: t("ASSEMBLY"),
|
|
47030
|
+
text: `${t(checkForNA(((_propertyAddress26 = propertyAddress) === null || _propertyAddress26 === void 0 ? void 0 : (_propertyAddress26$as = _propertyAddress26.assembly) === null || _propertyAddress26$as === void 0 ? void 0 : _propertyAddress26$as.name) || ((_propertyAddress27 = propertyAddress) === null || _propertyAddress27 === void 0 ? void 0 : (_propertyAddress27$as = _propertyAddress27.assembly) === null || _propertyAddress27$as === void 0 ? void 0 : _propertyAddress27$as.code) || ((_propertyAddress28 = propertyAddress) === null || _propertyAddress28 === void 0 ? void 0 : _propertyAddress28.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
|
|
47031
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47032
|
+
label: t("WARD"),
|
|
47033
|
+
text: `${t(checkForNA(((_propertyAddress29 = propertyAddress) === null || _propertyAddress29 === void 0 ? void 0 : (_propertyAddress29$bl = _propertyAddress29.block) === null || _propertyAddress29$bl === void 0 ? void 0 : _propertyAddress29$bl.name) || ((_propertyAddress30 = propertyAddress) === null || _propertyAddress30 === void 0 ? void 0 : (_propertyAddress30$bl = _propertyAddress30.block) === null || _propertyAddress30$bl === void 0 ? void 0 : _propertyAddress30$bl.code) || ((_propertyAddress31 = propertyAddress) === null || _propertyAddress31 === void 0 ? void 0 : _propertyAddress31.block) || ((_propertyAddress32 = propertyAddress) === null || _propertyAddress32 === void 0 ? void 0 : (_propertyAddress32$wa = _propertyAddress32.ward) === null || _propertyAddress32$wa === void 0 ? void 0 : _propertyAddress32$wa.name) || ((_propertyAddress33 = propertyAddress) === null || _propertyAddress33 === void 0 ? void 0 : (_propertyAddress33$wa = _propertyAddress33.ward) === null || _propertyAddress33$wa === void 0 ? void 0 : _propertyAddress33$wa.code) || ((_propertyAddress34 = propertyAddress) === null || _propertyAddress34 === void 0 ? void 0 : _propertyAddress34.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
|
|
47034
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47035
|
+
label: t("ZONE"),
|
|
47036
|
+
text: `${t(checkForNA(((_propertyAddress35 = propertyAddress) === null || _propertyAddress35 === void 0 ? void 0 : (_propertyAddress35$zo = _propertyAddress35.zone) === null || _propertyAddress35$zo === void 0 ? void 0 : _propertyAddress35$zo.name) || ((_propertyAddress36 = propertyAddress) === null || _propertyAddress36 === void 0 ? void 0 : (_propertyAddress36$zo = _propertyAddress36.zone) === null || _propertyAddress36$zo === void 0 ? void 0 : _propertyAddress36$zo.code) || ((_propertyAddress37 = propertyAddress) === null || _propertyAddress37 === void 0 ? void 0 : _propertyAddress37.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
|
|
47037
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47038
|
+
label: t("ACTUAL ASSEMBLY"),
|
|
47039
|
+
text: `${t(checkForNA(((_propertyAddress38 = propertyAddress) === null || _propertyAddress38 === void 0 ? void 0 : _propertyAddress38.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
|
|
47040
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47041
|
+
label: t("ACTUAL WARD"),
|
|
47042
|
+
text: `${t(checkForNA(((_propertyAddress39 = propertyAddress) === null || _propertyAddress39 === void 0 ? void 0 : _propertyAddress39.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
|
|
47043
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47044
|
+
label: t("ACTUAL ZONE"),
|
|
47045
|
+
text: `${t(checkForNA(((_propertyAddress40 = propertyAddress) === null || _propertyAddress40 === void 0 ? void 0 : _propertyAddress40.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
|
|
47046
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47047
|
+
label: t("LANDMARK"),
|
|
47048
|
+
text: `${t(checkForNA((_propertyAddress41 = propertyAddress) === null || _propertyAddress41 === void 0 ? void 0 : _propertyAddress41.landmark))}`
|
|
47049
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
47050
|
+
style: {
|
|
47051
|
+
marginTop: "10px",
|
|
47052
|
+
marginBottom: "30px"
|
|
47053
|
+
}
|
|
47054
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
47055
|
+
label: t("WS_CATEGORY_TYPE"),
|
|
47056
|
+
text: `${t(checkForNA((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)))}`,
|
|
47057
|
+
actionButton: /*#__PURE__*/React.createElement(ActionButton, {
|
|
47058
|
+
onClick: onEdit
|
|
47059
|
+
})
|
|
47060
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47061
|
+
label: t("WS_PROPERTY_CATEGORY"),
|
|
47062
|
+
text: `${t(checkForNA((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)))}`
|
|
47063
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47064
|
+
label: t("WS_PROPERTY_TYPE"),
|
|
47065
|
+
text: `${t(checkForNA((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)))}`
|
|
47066
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47067
|
+
label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
|
|
47068
|
+
text: `${t(checkForNA((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)))}`
|
|
47069
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47070
|
+
label: t("WS_NUMBER_OF_FLOORS"),
|
|
47071
|
+
text: `${t(checkForNA((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)))}`
|
|
47072
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47073
|
+
label: t("WS_PLOT_AREA"),
|
|
47074
|
+
text: `${t(checkForNA(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
|
|
47075
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47076
|
+
label: t("WS_BUILT_UP_AREA"),
|
|
47077
|
+
text: `${t(checkForNA(useDetails === null || useDetails === void 0 ? void 0 : useDetails.builtUpArea))}`
|
|
47078
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47079
|
+
label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
|
|
47080
|
+
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea === void 0 ? void 0 : _useDetails$SelectYea.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea2 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea2 === void 0 ? void 0 : _useDetails$SelectYea2.value) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea3 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea3 === void 0 ? void 0 : _useDetails$SelectYea3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.SelectYearofConstruction) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct = useDetails.constructionYear) === null || _useDetails$construct === void 0 ? void 0 : _useDetails$construct.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct2 = useDetails.constructionYear) === null || _useDetails$construct2 === void 0 ? void 0 : _useDetails$construct2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.constructionYear)))}`
|
|
47081
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47082
|
+
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
47083
|
+
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
|
|
47084
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
47085
|
+
style: {
|
|
47086
|
+
marginTop: "10px",
|
|
47087
|
+
marginBottom: "30px"
|
|
47088
|
+
}
|
|
47089
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
47090
|
+
label: t("WS_DJB_EMPLOYEE"),
|
|
47091
|
+
text: `${djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`,
|
|
47092
|
+
actionButton: /*#__PURE__*/React.createElement(ActionButton, {
|
|
47093
|
+
onClick: onEdit
|
|
47094
|
+
})
|
|
47095
|
+
}), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
47096
|
+
label: t("WS_EMPLOYEE_ID"),
|
|
47097
|
+
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
|
|
47098
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47099
|
+
label: t("WS_DATE_OF_RETIREMENT"),
|
|
47100
|
+
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.dor))}`
|
|
47101
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47102
|
+
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
47103
|
+
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
|
|
47104
|
+
}))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
47105
|
+
style: {
|
|
47106
|
+
marginTop: "10px",
|
|
47107
|
+
marginBottom: "30px"
|
|
47108
|
+
}
|
|
47109
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
47110
|
+
label: t("WS_BANK_NAME"),
|
|
47111
|
+
text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
|
|
47112
|
+
actionButton: /*#__PURE__*/React.createElement(ActionButton, {
|
|
47113
|
+
onClick: onEdit
|
|
47114
|
+
})
|
|
47115
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47116
|
+
label: t("WS_BRANCH_NAME"),
|
|
47117
|
+
text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
|
|
47118
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47119
|
+
label: t("WS_IFSC_CODE"),
|
|
47120
|
+
text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
|
|
47121
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47122
|
+
label: t("WS_ACCOUNT_NUMBER"),
|
|
47123
|
+
text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
|
|
47124
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
47125
|
+
style: {
|
|
47126
|
+
marginTop: "10px",
|
|
47127
|
+
marginBottom: "30px"
|
|
47128
|
+
}
|
|
47129
|
+
}, documents === null || documents === void 0 ? void 0 : documents.map((doc, index) => {
|
|
47130
|
+
var _doc$documentType;
|
|
47131
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
47132
|
+
key: index
|
|
47133
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
47134
|
+
label: t(`${doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll(".", "_")}`),
|
|
47135
|
+
text: checkForNA(doc === null || doc === void 0 ? void 0 : doc.documentUid),
|
|
47136
|
+
actionButton: index === 0 ? /*#__PURE__*/React.createElement(ActionButton, {
|
|
47137
|
+
onClick: onEdit
|
|
47138
|
+
}) : null
|
|
47139
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
47140
|
+
text: /*#__PURE__*/React.createElement("span", {
|
|
47141
|
+
style: {
|
|
47142
|
+
display: "flex",
|
|
47143
|
+
alignItems: "center",
|
|
47144
|
+
gap: "8px",
|
|
47145
|
+
cursor: "pointer",
|
|
47146
|
+
color: "#f47738"
|
|
47147
|
+
},
|
|
47148
|
+
onClick: () => openFilePDF((doc === null || doc === void 0 ? void 0 : doc.fileStoreId) || (doc === null || doc === void 0 ? void 0 : doc.documentUid))
|
|
47149
|
+
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
47150
|
+
}));
|
|
47151
|
+
}))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
47152
|
+
label: t("CS_COMMON_SUBMIT"),
|
|
47153
|
+
onSubmit: onSubmit,
|
|
47154
|
+
style: {
|
|
47155
|
+
width: "150px"
|
|
47156
|
+
}
|
|
47157
|
+
}))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
47158
|
+
open: showDocModal,
|
|
47159
|
+
headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
47160
|
+
headerBarEnd: /*#__PURE__*/React.createElement("div", {
|
|
47161
|
+
className: "icon-bg-secondary",
|
|
47162
|
+
onClick: () => setShowDocModal(false),
|
|
47163
|
+
style: {
|
|
47164
|
+
cursor: "pointer",
|
|
47165
|
+
padding: "5px"
|
|
47166
|
+
}
|
|
47167
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
47168
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
47169
|
+
viewBox: "0 0 24 24",
|
|
47170
|
+
fill: "#FFFFFF",
|
|
47171
|
+
width: "24",
|
|
47172
|
+
height: "24"
|
|
47173
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
47174
|
+
d: "M0 0h24v24H0V0z",
|
|
47175
|
+
fill: "none"
|
|
47176
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
47177
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
47178
|
+
}))),
|
|
47179
|
+
center: true,
|
|
47180
|
+
actionCancelOnSubmit: () => setShowDocModal(false),
|
|
47181
|
+
actionCancelLabel: t("CS_COMMON_CLOSE") || "Close",
|
|
47182
|
+
popupStyles: {
|
|
47183
|
+
width: "80%",
|
|
47184
|
+
maxWidth: "800px"
|
|
47185
|
+
}
|
|
47186
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
47187
|
+
style: {
|
|
47188
|
+
display: "flex",
|
|
47189
|
+
justifyContent: "center",
|
|
47190
|
+
alignItems: "center",
|
|
47191
|
+
padding: "20px",
|
|
47192
|
+
minHeight: "300px"
|
|
47193
|
+
}
|
|
47194
|
+
}, docFileType === "pdf" ? /*#__PURE__*/React.createElement("iframe", {
|
|
47195
|
+
src: docFileUrl,
|
|
47196
|
+
title: "Document Preview",
|
|
47197
|
+
width: "100%",
|
|
47198
|
+
height: "500px",
|
|
47199
|
+
style: {
|
|
47200
|
+
border: "none"
|
|
47201
|
+
}
|
|
47202
|
+
}) : /*#__PURE__*/React.createElement("img", {
|
|
47203
|
+
src: docFileUrl,
|
|
47204
|
+
alt: "Document Preview",
|
|
47205
|
+
style: {
|
|
47206
|
+
maxWidth: "100%",
|
|
47207
|
+
maxHeight: "500px",
|
|
47208
|
+
objectFit: "contain",
|
|
47209
|
+
borderRadius: "4px"
|
|
47210
|
+
}
|
|
47211
|
+
}))));
|
|
47212
|
+
};
|
|
47213
|
+
|
|
46809
47214
|
const OLDApplication = () => {
|
|
46810
47215
|
const {
|
|
46811
47216
|
t
|
|
@@ -46822,6 +47227,7 @@ const OLDApplication = () => {
|
|
|
46822
47227
|
body: []
|
|
46823
47228
|
});
|
|
46824
47229
|
const [currentStep, setCurrentStep] = useState(1);
|
|
47230
|
+
const [showCheckPage, setShowCheckPage] = useState(false);
|
|
46825
47231
|
const timelineConfig = [{
|
|
46826
47232
|
label: "WS_COMMON_PROPERTY_DETAILS"
|
|
46827
47233
|
}, {
|
|
@@ -46957,13 +47363,19 @@ const OLDApplication = () => {
|
|
|
46957
47363
|
}, [sessionFormData === null || sessionFormData === void 0 ? void 0 : sessionFormData.cpt]);
|
|
46958
47364
|
useEffect(() => {
|
|
46959
47365
|
var _propertyDetails$Prop;
|
|
46960
|
-
|
|
46961
|
-
|
|
46962
|
-
|
|
46963
|
-
|
|
47366
|
+
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0]) {
|
|
47367
|
+
var _propertyDetails$Prop2, _sessionFormData$cpt4;
|
|
47368
|
+
const newCptDetails = propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop2 = propertyDetails.Properties) === null || _propertyDetails$Prop2 === void 0 ? void 0 : _propertyDetails$Prop2[0];
|
|
47369
|
+
if (!lodash.isEqual(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$cpt4 = sessionFormData.cpt) === null || _sessionFormData$cpt4 === void 0 ? void 0 : _sessionFormData$cpt4.details, newCptDetails)) {
|
|
47370
|
+
setSessionFormData({
|
|
47371
|
+
...sessionFormData,
|
|
47372
|
+
cpt: {
|
|
47373
|
+
details: newCptDetails
|
|
47374
|
+
}
|
|
47375
|
+
});
|
|
46964
47376
|
}
|
|
46965
|
-
}
|
|
46966
|
-
}, [propertyDetails]);
|
|
47377
|
+
}
|
|
47378
|
+
}, [propertyDetails, sessionFormData]);
|
|
46967
47379
|
const {
|
|
46968
47380
|
isLoading: creatingWaterApplicationLoading,
|
|
46969
47381
|
isError: createWaterApplicationError,
|
|
@@ -47010,9 +47422,9 @@ const OLDApplication = () => {
|
|
|
47010
47422
|
const closeToastOfError = () => {
|
|
47011
47423
|
setShowToast(null);
|
|
47012
47424
|
};
|
|
47013
|
-
const
|
|
47014
|
-
var _data$cpt, _propertyDetails$
|
|
47015
|
-
if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$
|
|
47425
|
+
const onFormSubmit = data => {
|
|
47426
|
+
var _data$cpt, _propertyDetails$Prop3, _formStateErros$Conne, _Object$keys2, _formStateErros$Conne2;
|
|
47427
|
+
if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop3 = propertyDetails.Properties) !== null && _propertyDetails$Prop3 !== void 0 && _propertyDetails$Prop3[0])) {
|
|
47016
47428
|
var _data$cpt2;
|
|
47017
47429
|
if (!(data !== null && data !== void 0 && (_data$cpt2 = data.cpt) !== null && _data$cpt2 !== void 0 && _data$cpt2.details) || !propertyDetails) {
|
|
47018
47430
|
console.warn("[WS] onSubmit EXIT: invalid property", {
|
|
@@ -47039,6 +47451,11 @@ const OLDApplication = () => {
|
|
|
47039
47451
|
});
|
|
47040
47452
|
return;
|
|
47041
47453
|
}
|
|
47454
|
+
setShowCheckPage(true);
|
|
47455
|
+
};
|
|
47456
|
+
const processSubmission = async data => {
|
|
47457
|
+
var _data$useDetails, _data$ConnectionDetai, _data$ConnectionDetai2, _data$DocumentsRequir, _data$cpt3, _Digit$UserService$ge, _data$ConnectionHolde, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _propertyDetails$Prop5, _propertyDetails$Prop6, _propertyDetails$Prop7, _propertyDetails$Prop8, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$cpt4, _data$cpt4$details, _data$cpt4$details$ow, _data$cpt4$details$ow2;
|
|
47458
|
+
const basePath = window.location.href.includes("/employee") ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
|
|
47042
47459
|
if (data !== null && data !== void 0 && (_data$useDetails = data.useDetails) !== null && _data$useDetails !== void 0 && _data$useDetails.useDetails) {
|
|
47043
47460
|
data.useDetails = {
|
|
47044
47461
|
...data.useDetails,
|
|
@@ -47133,9 +47550,9 @@ const OLDApplication = () => {
|
|
|
47133
47550
|
data.declarationData.declarations = data.declaration.declarations;
|
|
47134
47551
|
}
|
|
47135
47552
|
if (!(data !== null && data !== void 0 && (_data$cpt3 = data.cpt) !== null && _data$cpt3 !== void 0 && _data$cpt3.details)) {
|
|
47136
|
-
var _propertyDetails$
|
|
47553
|
+
var _propertyDetails$Prop4;
|
|
47137
47554
|
data.cpt = {
|
|
47138
|
-
details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
47555
|
+
details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop4 = propertyDetails.Properties) === null || _propertyDetails$Prop4 === void 0 ? void 0 : _propertyDetails$Prop4[0]
|
|
47139
47556
|
};
|
|
47140
47557
|
}
|
|
47141
47558
|
data.channel = ((_Digit$UserService$ge = Digit.UserService.getType()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER";
|
|
@@ -47150,7 +47567,7 @@ const OLDApplication = () => {
|
|
|
47150
47567
|
code: "NONPTPRESSURE"
|
|
47151
47568
|
},
|
|
47152
47569
|
categoryType: (connDetail === null || connDetail === void 0 ? void 0 : connDetail.categoryType) || {
|
|
47153
|
-
code: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde = data.ConnectionHolderDetails) === null || _data$ConnectionHolde === void 0 ? void 0 : (_data$ConnectionHolde2 = _data$ConnectionHolde[0]) === null || _data$ConnectionHolde2 === void 0 ? void 0 : (_data$ConnectionHolde3 = _data$ConnectionHolde2.ownerType) === null || _data$ConnectionHolde3 === void 0 ? void 0 : _data$ConnectionHolde3.code) || (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde4 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde4 === void 0 ? void 0 : (_data$ConnectionHolde5 = _data$ConnectionHolde4[0]) === null || _data$ConnectionHolde5 === void 0 ? void 0 : _data$ConnectionHolde5.ownerType) || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
47570
|
+
code: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde = data.ConnectionHolderDetails) === null || _data$ConnectionHolde === void 0 ? void 0 : (_data$ConnectionHolde2 = _data$ConnectionHolde[0]) === null || _data$ConnectionHolde2 === void 0 ? void 0 : (_data$ConnectionHolde3 = _data$ConnectionHolde2.ownerType) === null || _data$ConnectionHolde3 === void 0 ? void 0 : _data$ConnectionHolde3.code) || (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde4 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde4 === void 0 ? void 0 : (_data$ConnectionHolde5 = _data$ConnectionHolde4[0]) === null || _data$ConnectionHolde5 === void 0 ? void 0 : _data$ConnectionHolde5.ownerType) || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop5 = propertyDetails.Properties) === null || _propertyDetails$Prop5 === void 0 ? void 0 : (_propertyDetails$Prop6 = _propertyDetails$Prop5[0]) === null || _propertyDetails$Prop6 === void 0 ? void 0 : (_propertyDetails$Prop7 = _propertyDetails$Prop6.owners) === null || _propertyDetails$Prop7 === void 0 ? void 0 : (_propertyDetails$Prop8 = _propertyDetails$Prop7[0]) === null || _propertyDetails$Prop8 === void 0 ? void 0 : _propertyDetails$Prop8.ownerType) || "NONE"
|
|
47154
47571
|
},
|
|
47155
47572
|
domesticType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.domesticType,
|
|
47156
47573
|
departmentType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.departmentType,
|
|
@@ -47263,7 +47680,7 @@ const OLDApplication = () => {
|
|
|
47263
47680
|
};
|
|
47264
47681
|
});
|
|
47265
47682
|
clearSessionFormData();
|
|
47266
|
-
history.push(
|
|
47683
|
+
history.push(`${basePath}/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate2 = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : (_waterUpdateData$Wate3 = _waterUpdateData$Wate2[0]) === null || _waterUpdateData$Wate3 === void 0 ? void 0 : _waterUpdateData$Wate3.applicationNo}&applicationNumber1=${sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S2 = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : (_sewerageUpdateData$S3 = _sewerageUpdateData$S2[0]) === null || _sewerageUpdateData$S3 === void 0 ? void 0 : _sewerageUpdateData$S3.applicationNo}`);
|
|
47267
47684
|
}
|
|
47268
47685
|
});
|
|
47269
47686
|
}
|
|
@@ -47314,7 +47731,7 @@ const OLDApplication = () => {
|
|
|
47314
47731
|
};
|
|
47315
47732
|
});
|
|
47316
47733
|
clearSessionFormData();
|
|
47317
|
-
history.push(
|
|
47734
|
+
history.push(`${basePath}/ws-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnection) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3[0]) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4.applicationNo}`);
|
|
47318
47735
|
}
|
|
47319
47736
|
});
|
|
47320
47737
|
}
|
|
@@ -47361,7 +47778,7 @@ const OLDApplication = () => {
|
|
|
47361
47778
|
};
|
|
47362
47779
|
});
|
|
47363
47780
|
clearSessionFormData();
|
|
47364
|
-
history.push(
|
|
47781
|
+
history.push(`${basePath}/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.applicationNo}`);
|
|
47365
47782
|
}
|
|
47366
47783
|
});
|
|
47367
47784
|
}
|
|
@@ -47375,6 +47792,19 @@ const OLDApplication = () => {
|
|
|
47375
47792
|
if (isEnableLoader || isLoading) {
|
|
47376
47793
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
47377
47794
|
}
|
|
47795
|
+
if (showCheckPage) {
|
|
47796
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
47797
|
+
className: "employee-form-section-wrapper"
|
|
47798
|
+
}, /*#__PURE__*/React.createElement(VerticalTimeline, {
|
|
47799
|
+
config: timelineConfig,
|
|
47800
|
+
currentActiveIndex: 4,
|
|
47801
|
+
showFinalStep: false
|
|
47802
|
+
}), /*#__PURE__*/React.createElement(CheckPage$4, {
|
|
47803
|
+
data: sessionFormData,
|
|
47804
|
+
onSubmit: () => processSubmission(sessionFormData),
|
|
47805
|
+
onEdit: () => setShowCheckPage(false)
|
|
47806
|
+
})));
|
|
47807
|
+
}
|
|
47378
47808
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
47379
47809
|
className: "employee-form-section-wrapper"
|
|
47380
47810
|
}, /*#__PURE__*/React.createElement(VerticalTimeline, {
|
|
@@ -47385,8 +47815,8 @@ const OLDApplication = () => {
|
|
|
47385
47815
|
config: config.body,
|
|
47386
47816
|
userType: "employee",
|
|
47387
47817
|
onFormValueChange: onFormValueChange,
|
|
47388
|
-
label: creatingWaterApplicationLoading || creatingSewerageApplicationLoading || updatingWaterApplicationLoading || updatingSewerageApplicationLoading ? t("CS_COMMON_SUBMITTING") : t("
|
|
47389
|
-
onSubmit:
|
|
47818
|
+
label: creatingWaterApplicationLoading || creatingSewerageApplicationLoading || updatingWaterApplicationLoading || updatingSewerageApplicationLoading ? t("CS_COMMON_SUBMITTING") : t("CS_COMMON_NEXT"),
|
|
47819
|
+
onSubmit: onFormSubmit,
|
|
47390
47820
|
defaultValues: sessionFormData,
|
|
47391
47821
|
noCard: true,
|
|
47392
47822
|
noBreakLine: true,
|