@djb25/digit-ui-module-ws 1.0.27 → 1.0.29
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 +248 -101
- 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
3
|
import { Link, useLocation, Switch, Route, useHistory, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header,
|
|
4
|
+
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, Banner, CardText, ActionBar, 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, 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,7 +441,10 @@ 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 _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$ConnectionHolde, _data$useDetails, _data$useDetails2, _data$useDetails3, _data$useDetails3$pro, _connectionDetailsObj, _connectionDetailsObj2, _data$useDetails4, _data$useDetails4$pro, _connectionDetailsObj3, _connectionDetailsObj4, _data$useDetails5, _data$useDetails6, _data$useDetails7, _data$useDetails8, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails9, _data$useDetails9$gen, _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, _connectionDetailsObj5, _data$applicationSele8, _data$applicationSele9,
|
|
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, _data$useDetails, _data$useDetails2, _data$useDetails3, _data$useDetails3$pro, _connectionDetailsObj, _connectionDetailsObj2, _data$useDetails4, _data$useDetails4$pro, _connectionDetailsObj3, _connectionDetailsObj4, _data$useDetails5, _data$useDetails6, _data$useDetails7, _data$useDetails8, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails9, _data$useDetails9$gen, _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, _connectionDetailsObj5, _data$applicationSele8, _data$applicationSele9, _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$contact5, _data$documents, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
|
|
445
|
+
console.log(Digit.UserService.getType(), "rtyuhgh");
|
|
446
|
+
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");
|
|
445
448
|
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 => {
|
|
446
449
|
if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
447
450
|
});
|
|
@@ -549,28 +552,28 @@ const createPayloadOfWS = async data => {
|
|
|
549
552
|
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) || "",
|
|
550
553
|
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,
|
|
551
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 : (_connectionDetailsObj5 = connectionDetailsObject.connectionType) === null || _connectionDetailsObj5 === void 0 ? void 0 : _connectionDetailsObj5.code) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.connectionType) || "Metered",
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
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,
|
|
555
|
+
subCategory: data === null || data === void 0 ? void 0 : (_data$applicationSele8 = data.applicationSelection) === null || _data$applicationSele8 === void 0 ? void 0 : (_data$applicationSele9 = _data$applicationSele8.subCategory) === null || _data$applicationSele9 === void 0 ? void 0 : _data$applicationSele9.code,
|
|
556
|
+
domesticType: data === null || data === void 0 ? void 0 : (_data$applicationSele0 = data.applicationSelection) === null || _data$applicationSele0 === void 0 ? void 0 : (_data$applicationSele1 = _data$applicationSele0.domesticType) === null || _data$applicationSele1 === void 0 ? void 0 : _data$applicationSele1.code,
|
|
557
|
+
temporaryConnection: data === null || data === void 0 ? void 0 : (_data$applicationSele10 = data.applicationSelection) === null || _data$applicationSele10 === void 0 ? void 0 : (_data$applicationSele11 = _data$applicationSele10.temporaryConnection) === null || _data$applicationSele11 === void 0 ? void 0 : _data$applicationSele11.code,
|
|
558
|
+
ownerAuthorizationDoc: data === null || data === void 0 ? void 0 : (_data$applicationSele12 = data.applicationSelection) === null || _data$applicationSele12 === void 0 ? void 0 : (_data$applicationSele13 = _data$applicationSele12.ownerAuthorizationDoc) === null || _data$applicationSele13 === void 0 ? void 0 : (_data$applicationSele14 = _data$applicationSele13[0]) === null || _data$applicationSele14 === void 0 ? void 0 : (_data$applicationSele15 = _data$applicationSele14[1]) === null || _data$applicationSele15 === void 0 ? void 0 : _data$applicationSele15.fileStoreId,
|
|
559
|
+
ownerContactNumber: data === null || data === void 0 ? void 0 : (_data$applicationSele16 = data.applicationSelection) === null || _data$applicationSele16 === void 0 ? void 0 : _data$applicationSele16.ownerContactNumber,
|
|
560
|
+
isOwnerVerified: data === null || data === void 0 ? void 0 : (_data$applicationSele17 = data.applicationSelection) === null || _data$applicationSele17 === void 0 ? void 0 : _data$applicationSele17.isOwnerVerified,
|
|
561
|
+
commercialType: data === null || data === void 0 ? void 0 : (_data$applicationSele18 = data.applicationSelection) === null || _data$applicationSele18 === void 0 ? void 0 : (_data$applicationSele19 = _data$applicationSele18.commercialType) === null || _data$applicationSele19 === void 0 ? void 0 : _data$applicationSele19.code,
|
|
562
|
+
govtOrganization: data === null || data === void 0 ? void 0 : (_data$applicationSele20 = data.applicationSelection) === null || _data$applicationSele20 === void 0 ? void 0 : _data$applicationSele20.govtOrganization,
|
|
563
|
+
departmentType: data === null || data === void 0 ? void 0 : (_data$applicationSele21 = data.applicationSelection) === null || _data$applicationSele21 === void 0 ? void 0 : (_data$applicationSele22 = _data$applicationSele21.departmentType) === null || _data$applicationSele22 === void 0 ? void 0 : _data$applicationSele22.code,
|
|
562
564
|
governmentEmployee: data === null || data === void 0 ? void 0 : data.governmentEmployee,
|
|
563
565
|
whatsAppNumber: data === null || data === void 0 ? void 0 : (_data$contact5 = data.contact) === null || _data$contact5 === void 0 ? void 0 : _data$contact5.whatsAppNumber,
|
|
564
566
|
identityProofNumber: data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.identityProofNumber,
|
|
565
567
|
ownershipDocumentNumber: data === null || data === void 0 ? void 0 : (_data$documents2 = data.documents) === null || _data$documents2 === void 0 ? void 0 : _data$documents2.ownershipDocumentNumber,
|
|
566
568
|
otherDocumentNumber: data === null || data === void 0 ? void 0 : (_data$documents3 = data.documents) === null || _data$documents3 === void 0 ? void 0 : _data$documents3.otherDocumentNumber,
|
|
567
|
-
detailsProvidedBy: ""
|
|
569
|
+
detailsProvidedBy: "",
|
|
570
|
+
channel: (data === null || data === void 0 ? void 0 : data.channel) || (isCitizen ? "CITIZEN" : "CFC_COUNTER")
|
|
568
571
|
},
|
|
569
572
|
tenantId: Digit.ULBService.getCurrentTenantId(),
|
|
570
573
|
processInstance: {
|
|
571
574
|
action: "INITIATE"
|
|
572
575
|
},
|
|
573
|
-
channel:
|
|
576
|
+
channel: (data === null || data === void 0 ? void 0 : data.channel) || (isCitizen ? "CITIZEN" : "CFC_COUNTER")
|
|
574
577
|
};
|
|
575
578
|
sessionStorage.setItem("WS_DOCUMENTS_INOF", JSON.stringify((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) || []));
|
|
576
579
|
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) || {}));
|
|
@@ -607,7 +610,7 @@ const convertToWSUpdate = data => {
|
|
|
607
610
|
return formdata;
|
|
608
611
|
};
|
|
609
612
|
const convertToEditWSUpdate = data => {
|
|
610
|
-
var _data$WaterConnection3, _data$WaterConnection4, _data$documents6, _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, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$documents7, _data$sewerageConnect, _data$sewerageConnect2, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
|
|
613
|
+
var _data$WaterConnection3, _data$WaterConnection4, _data$documents6, _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, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$documents7, _data$sewerageConnect, _data$sewerageConnect2, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
|
|
611
614
|
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];
|
|
612
615
|
let formdata = {
|
|
613
616
|
WaterConnection: {
|
|
@@ -657,7 +660,7 @@ const convertToEditWSUpdate = data => {
|
|
|
657
660
|
sameAsPropertyAddress: data === null || data === void 0 ? void 0 : (_data$ConnectionHolde15 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde15 === void 0 ? void 0 : _data$ConnectionHolde15.sameAsOwnerDetails
|
|
658
661
|
}] : null : waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionHolders,
|
|
659
662
|
oldApplication: false,
|
|
660
|
-
channel: Digit.UserService.getType() === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER",
|
|
663
|
+
channel: ((_Digit$UserService$ge2 = Digit.UserService.getType()) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER",
|
|
661
664
|
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,
|
|
662
665
|
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,
|
|
663
666
|
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,
|
|
@@ -689,7 +692,7 @@ const convertToEditWSUpdate = data => {
|
|
|
689
692
|
return formdata;
|
|
690
693
|
};
|
|
691
694
|
const convertToEditSWUpdate = data => {
|
|
692
|
-
var _data$SewerageConnect, _data$SewerageConnect2, _data$documents8, _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, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$documents9, _data$sewerageConnect3, _data$sewerageConnect4, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
|
|
695
|
+
var _data$SewerageConnect, _data$SewerageConnect2, _data$documents8, _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$ge3, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$documents9, _data$sewerageConnect3, _data$sewerageConnect4, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
|
|
693
696
|
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];
|
|
694
697
|
let formdata = {
|
|
695
698
|
SewerageConnection: {
|
|
@@ -739,7 +742,7 @@ const convertToEditSWUpdate = data => {
|
|
|
739
742
|
sameAsPropertyAddress: data === null || data === void 0 ? void 0 : (_data$ConnectionHolde31 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde31 === void 0 ? void 0 : _data$ConnectionHolde31.sameAsOwnerDetails
|
|
740
743
|
}] : null : SewerageResult === null || SewerageResult === void 0 ? void 0 : SewerageResult.connectionHolders,
|
|
741
744
|
oldApplication: false,
|
|
742
|
-
channel: Digit.UserService.getType() === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER",
|
|
745
|
+
channel: ((_Digit$UserService$ge3 = Digit.UserService.getType()) === null || _Digit$UserService$ge3 === void 0 ? void 0 : _Digit$UserService$ge3.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER",
|
|
743
746
|
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,
|
|
744
747
|
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,
|
|
745
748
|
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,
|
|
@@ -834,7 +837,7 @@ const createPayloadOfWSDisconnection = async (data, storeData, service) => {
|
|
|
834
837
|
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio44 = storeData.applicationData) === null || _storeData$applicatio44 === void 0 ? void 0 : _storeData$applicatio44.processInstance),
|
|
835
838
|
action: "INITIATE"
|
|
836
839
|
},
|
|
837
|
-
channel: user === "
|
|
840
|
+
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
838
841
|
},
|
|
839
842
|
disconnectRequest: true
|
|
840
843
|
};
|
|
@@ -879,7 +882,7 @@ const createPayloadOfWSDisconnection = async (data, storeData, service) => {
|
|
|
879
882
|
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio63 = storeData.applicationData) === null || _storeData$applicatio63 === void 0 ? void 0 : _storeData$applicatio63.processInstance),
|
|
880
883
|
action: "INITIATE"
|
|
881
884
|
},
|
|
882
|
-
channel: user === "
|
|
885
|
+
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
883
886
|
},
|
|
884
887
|
disconnectRequest: true
|
|
885
888
|
};
|
|
@@ -937,7 +940,7 @@ const createPayloadOfWSReconnection = async (data, storeData, service) => {
|
|
|
937
940
|
action: "INITIATE",
|
|
938
941
|
businessService: "WSReconnection"
|
|
939
942
|
},
|
|
940
|
-
channel: user === "
|
|
943
|
+
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
941
944
|
},
|
|
942
945
|
disconnectRequest: false
|
|
943
946
|
};
|
|
@@ -983,7 +986,7 @@ const createPayloadOfWSReconnection = async (data, storeData, service) => {
|
|
|
983
986
|
action: "INITIATE",
|
|
984
987
|
businessService: "SWReconnection"
|
|
985
988
|
},
|
|
986
|
-
channel: user === "
|
|
989
|
+
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
987
990
|
},
|
|
988
991
|
disconnectRequest: false
|
|
989
992
|
};
|
|
@@ -1655,7 +1658,7 @@ const getConvertedDate = async dateOfTime => {
|
|
|
1655
1658
|
return convertedDate;
|
|
1656
1659
|
};
|
|
1657
1660
|
const convertModifyApplicationDetails = async (data, appData, actionData = "INITIATE") => {
|
|
1658
|
-
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, _data$DocumentsRequir6, _data$cpt36;
|
|
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$ge4, _data$DocumentsRequir6, _data$cpt36;
|
|
1659
1662
|
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 => {
|
|
1660
1663
|
if (owner !== null && owner !== void 0 && owner.permanentAddress) owner.correspondenceAddress = owner === null || owner === void 0 ? void 0 : owner.permanentAddress;
|
|
1661
1664
|
});
|
|
@@ -1697,7 +1700,7 @@ const convertModifyApplicationDetails = async (data, appData, actionData = "INIT
|
|
|
1697
1700
|
action: actionData
|
|
1698
1701
|
};
|
|
1699
1702
|
formData.action = actionData;
|
|
1700
|
-
formData.channel = "CFC_COUNTER";
|
|
1703
|
+
formData.channel = ((_Digit$UserService$ge4 = Digit.UserService.getType()) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER";
|
|
1701
1704
|
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) || []));
|
|
1702
1705
|
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));
|
|
1703
1706
|
return formData;
|
|
@@ -7855,7 +7858,7 @@ const WSMyApplications = () => {
|
|
|
7855
7858
|
const App = ({
|
|
7856
7859
|
path
|
|
7857
7860
|
}) => {
|
|
7858
|
-
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;
|
|
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;
|
|
7859
7862
|
const location = useLocation();
|
|
7860
7863
|
const {
|
|
7861
7864
|
t
|
|
@@ -7864,13 +7867,41 @@ const App = ({
|
|
|
7864
7867
|
let isAcknowledgement = window.location.href.includes("/acknowledgement") || window.location.href.includes("/disconnect-acknowledge");
|
|
7865
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");
|
|
7866
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");
|
|
7867
|
-
const
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
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);
|
|
7874
7905
|
};
|
|
7875
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");
|
|
7876
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");
|
|
@@ -7886,14 +7917,20 @@ const App = ({
|
|
|
7886
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");
|
|
7887
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");
|
|
7888
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");
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
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, {
|
|
7897
7934
|
path: `${path}/create-application`,
|
|
7898
7935
|
component: WSCreate
|
|
7899
7936
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
@@ -7950,7 +7987,10 @@ const App = ({
|
|
|
7950
7987
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7951
7988
|
path: `${path}/modify-connection/:tenantId`,
|
|
7952
7989
|
component: WSCitizenEditApplication
|
|
7953
|
-
})
|
|
7990
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
7991
|
+
path: `${path}/old-application`,
|
|
7992
|
+
component: WSOLDApplication
|
|
7993
|
+
})))))));
|
|
7954
7994
|
};
|
|
7955
7995
|
|
|
7956
7996
|
const getPropertyAddress = property => {
|
|
@@ -11436,30 +11476,6 @@ const ConnectionDetails = _props => {
|
|
|
11436
11476
|
t: t
|
|
11437
11477
|
});
|
|
11438
11478
|
}
|
|
11439
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_CATEGORY_TYPE")}*`), /*#__PURE__*/React.createElement(Controller, {
|
|
11440
|
-
control: control,
|
|
11441
|
-
name: "categoryType",
|
|
11442
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.categoryType) || "",
|
|
11443
|
-
rules: {
|
|
11444
|
-
required: t("REQUIRED_FIELD")
|
|
11445
|
-
},
|
|
11446
|
-
isMandatory: true,
|
|
11447
|
-
render: props => {
|
|
11448
|
-
var _errors$categoryType;
|
|
11449
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
11450
|
-
className: "form-field",
|
|
11451
|
-
selected: getValues("categoryType"),
|
|
11452
|
-
disable: false,
|
|
11453
|
-
option: categoryTypeList,
|
|
11454
|
-
errorStyle: localFormState.touched.categoryType && errors !== null && errors !== void 0 && (_errors$categoryType = errors.categoryType) !== null && _errors$categoryType !== void 0 && _errors$categoryType.message ? true : false,
|
|
11455
|
-
select: e => {
|
|
11456
|
-
props.onChange(e);
|
|
11457
|
-
},
|
|
11458
|
-
optionKey: "i18nKey",
|
|
11459
|
-
onBlur: props.onBlur,
|
|
11460
|
-
t: t
|
|
11461
|
-
});
|
|
11462
|
-
}
|
|
11463
11479
|
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_CONNECTION_TYPE")}*`), /*#__PURE__*/React.createElement(Controller, {
|
|
11464
11480
|
control: control,
|
|
11465
11481
|
name: "connectionType",
|
|
@@ -20028,7 +20044,7 @@ const WSDeclaration = ({
|
|
|
20028
20044
|
clearErrors,
|
|
20029
20045
|
tenantId
|
|
20030
20046
|
}) => {
|
|
20031
|
-
var _formData$declaration, _formData$declaration2, _formData$declaration3, _formData$declaration4, _formData$declaration5, _formData$declaration6, _formData$declaration7, _formData$declaration8;
|
|
20047
|
+
var _formData$declaration, _formData$declaration2, _formData$declaration3, _formData$declaration4, _formData$declaration5, _formData$declaration6, _formData$declaration7, _formData$declaration8, _formData$declaration0;
|
|
20032
20048
|
const {
|
|
20033
20049
|
t
|
|
20034
20050
|
} = useTranslation();
|
|
@@ -20070,34 +20086,29 @@ const WSDeclaration = ({
|
|
|
20070
20086
|
i18nKey: "WS_SUBMITTED_BY_SELF"
|
|
20071
20087
|
}];
|
|
20072
20088
|
useEffect(() => {
|
|
20073
|
-
var _formData$declaration9
|
|
20074
|
-
|
|
20075
|
-
|
|
20076
|
-
|
|
20089
|
+
var _formData$declaration9;
|
|
20090
|
+
const fsId = (formData === null || formData === void 0 ? void 0 : (_formData$declaration9 = formData.declarationData) === null || _formData$declaration9 === void 0 ? void 0 : _formData$declaration9.signatureFileStoreId) || null;
|
|
20091
|
+
const currentFsId = signatureFileStoreId || null;
|
|
20092
|
+
if (fsId !== currentFsId) {
|
|
20077
20093
|
setSignatureFileStoreId(fsId);
|
|
20078
20094
|
setValue("signatureFileStoreId", fsId);
|
|
20079
20095
|
}
|
|
20080
|
-
|
|
20081
|
-
|
|
20082
|
-
const file = (formData === null || formData === void 0 ? void 0 : (_formData$declaration10 = formData.declarationData) === null || _formData$declaration10 === void 0 ? void 0 : _formData$declaration10.signatureFile) || null;
|
|
20083
|
-
setSignatureFile(file);
|
|
20084
|
-
setValue("signatureFile", file);
|
|
20085
|
-
}
|
|
20086
|
-
}, [formData === null || formData === void 0 ? void 0 : formData.declarationData]);
|
|
20096
|
+
}, [formData === null || formData === void 0 ? void 0 : (_formData$declaration0 = formData.declarationData) === null || _formData$declaration0 === void 0 ? void 0 : _formData$declaration0.signatureFileStoreId]);
|
|
20097
|
+
const lastSentValue = React.useRef((formData === null || formData === void 0 ? void 0 : formData.declarationData) || null);
|
|
20087
20098
|
useEffect(() => {
|
|
20088
20099
|
const currentValues = {
|
|
20089
20100
|
...formValue,
|
|
20090
20101
|
signatureFileStoreId,
|
|
20091
20102
|
signatureFile
|
|
20092
20103
|
};
|
|
20093
|
-
|
|
20094
|
-
|
|
20104
|
+
if (!lodash.isEqual(lastSentValue.current, currentValues)) {
|
|
20105
|
+
lastSentValue.current = currentValues;
|
|
20095
20106
|
const timer = setTimeout(() => {
|
|
20096
20107
|
onSelect(config === null || config === void 0 ? void 0 : config.key, currentValues);
|
|
20097
20108
|
}, 200);
|
|
20098
20109
|
return () => clearTimeout(timer);
|
|
20099
20110
|
}
|
|
20100
|
-
}, [formValue, signatureFileStoreId, signatureFile]);
|
|
20111
|
+
}, [formValue, signatureFileStoreId, signatureFile, config === null || config === void 0 ? void 0 : config.key, onSelect]);
|
|
20101
20112
|
const onUploadSignature = async e => {
|
|
20102
20113
|
var _e$target$files;
|
|
20103
20114
|
const file = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
|
|
@@ -21006,6 +21017,35 @@ const WSInbox = ({
|
|
|
21006
21017
|
...formState
|
|
21007
21018
|
}
|
|
21008
21019
|
});
|
|
21020
|
+
const cards = useMemo(() => {
|
|
21021
|
+
if (!statuses) return [];
|
|
21022
|
+
const statusMap = {};
|
|
21023
|
+
statuses.forEach(status => {
|
|
21024
|
+
const appStatus = status.applicationstatus;
|
|
21025
|
+
const statusId = status.statusid;
|
|
21026
|
+
if (!statusMap[appStatus]) {
|
|
21027
|
+
statusMap[appStatus] = {
|
|
21028
|
+
label: `CS_${appStatus}`,
|
|
21029
|
+
count: 0,
|
|
21030
|
+
filter: []
|
|
21031
|
+
};
|
|
21032
|
+
}
|
|
21033
|
+
statusMap[appStatus].count += status.count;
|
|
21034
|
+
statusMap[appStatus].filter.push(statusId);
|
|
21035
|
+
});
|
|
21036
|
+
const colorMap = {
|
|
21037
|
+
PENDING_FOR_DOCUMENT_VERIFICATION: "#3B82F6",
|
|
21038
|
+
PENDING_FOR_FIELD_INSPECTION: "#F59E0B",
|
|
21039
|
+
PENDING_APPROVAL_FOR_CONNECTION: "#10B981",
|
|
21040
|
+
PAYMENT_FAILED: "#8B5CF6",
|
|
21041
|
+
REJECTED: "#EF4444",
|
|
21042
|
+
INITIATED: "#0ea5e9"
|
|
21043
|
+
};
|
|
21044
|
+
return Object.entries(statusMap).map(([appStatus, card]) => ({
|
|
21045
|
+
...card,
|
|
21046
|
+
color: colorMap[appStatus] || "#3B82F6"
|
|
21047
|
+
}));
|
|
21048
|
+
}, [statuses]);
|
|
21009
21049
|
let links = [{
|
|
21010
21050
|
text: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
21011
21051
|
link: `/digit-ui/employee/ws/create-application`,
|
|
@@ -21119,7 +21159,8 @@ const WSInbox = ({
|
|
|
21119
21159
|
}, propsForSearchForm, propsForFilterForm, propsForMobileSortForm, {
|
|
21120
21160
|
propsForInboxTable,
|
|
21121
21161
|
propsForInboxMobileCards,
|
|
21122
|
-
formState
|
|
21162
|
+
formState,
|
|
21163
|
+
cards
|
|
21123
21164
|
})));
|
|
21124
21165
|
};
|
|
21125
21166
|
|
|
@@ -41367,6 +41408,122 @@ const RenewPopup = ({
|
|
|
41367
41408
|
})))));
|
|
41368
41409
|
};
|
|
41369
41410
|
|
|
41411
|
+
const DueVerification = () => {
|
|
41412
|
+
const {
|
|
41413
|
+
t
|
|
41414
|
+
} = useTranslation();
|
|
41415
|
+
const [kno, setKno] = useState("");
|
|
41416
|
+
const [tableData, setTableData] = useState([]);
|
|
41417
|
+
const columns = useMemo(() => [{
|
|
41418
|
+
Header: t("K No."),
|
|
41419
|
+
accessor: "kno"
|
|
41420
|
+
}, {
|
|
41421
|
+
Header: t("Full Name"),
|
|
41422
|
+
accessor: "fullName"
|
|
41423
|
+
}, {
|
|
41424
|
+
Header: t("Full Address"),
|
|
41425
|
+
accessor: "fullAddress"
|
|
41426
|
+
}, {
|
|
41427
|
+
Header: t("Due Amount"),
|
|
41428
|
+
accessor: "dueAmount"
|
|
41429
|
+
}, {
|
|
41430
|
+
Header: t("Total Amount"),
|
|
41431
|
+
accessor: "totalAmount"
|
|
41432
|
+
}], [t]);
|
|
41433
|
+
const handleAdd = () => {
|
|
41434
|
+
if (kno) {
|
|
41435
|
+
const mockData = {
|
|
41436
|
+
kno: kno,
|
|
41437
|
+
fullName: "John Doe",
|
|
41438
|
+
fullAddress: "123 Main St, New Delhi, Delhi 110001",
|
|
41439
|
+
dueAmount: "1500",
|
|
41440
|
+
totalAmount: "1500"
|
|
41441
|
+
};
|
|
41442
|
+
setTableData([...tableData, mockData]);
|
|
41443
|
+
setKno("");
|
|
41444
|
+
}
|
|
41445
|
+
};
|
|
41446
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
41447
|
+
style: {
|
|
41448
|
+
marginBottom: "20px"
|
|
41449
|
+
}
|
|
41450
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
41451
|
+
style: {
|
|
41452
|
+
fontSize: "24px",
|
|
41453
|
+
fontWeight: "bold",
|
|
41454
|
+
color: "#4f6cfc",
|
|
41455
|
+
marginBottom: "16px"
|
|
41456
|
+
}
|
|
41457
|
+
}, t("Due Verification")), /*#__PURE__*/React.createElement("div", {
|
|
41458
|
+
style: {
|
|
41459
|
+
display: "flex",
|
|
41460
|
+
alignItems: "flex-end",
|
|
41461
|
+
gap: "20px",
|
|
41462
|
+
marginBottom: "20px"
|
|
41463
|
+
}
|
|
41464
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
41465
|
+
style: {
|
|
41466
|
+
flex: 1
|
|
41467
|
+
}
|
|
41468
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
41469
|
+
style: {
|
|
41470
|
+
fontSize: "16px",
|
|
41471
|
+
color: "#0B0C0C",
|
|
41472
|
+
marginBottom: "8px",
|
|
41473
|
+
display: "inline-block"
|
|
41474
|
+
}
|
|
41475
|
+
}, t("K No.(Existing KNo of same property)"), " ", /*#__PURE__*/React.createElement("span", {
|
|
41476
|
+
style: {
|
|
41477
|
+
color: "red"
|
|
41478
|
+
}
|
|
41479
|
+
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
41480
|
+
type: "number",
|
|
41481
|
+
value: kno,
|
|
41482
|
+
onChange: e => setKno(e.target.value),
|
|
41483
|
+
style: {
|
|
41484
|
+
width: "100%",
|
|
41485
|
+
marginBottom: "0"
|
|
41486
|
+
}
|
|
41487
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
41488
|
+
style: {
|
|
41489
|
+
flex: 1,
|
|
41490
|
+
paddingBottom: "2px"
|
|
41491
|
+
}
|
|
41492
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
41493
|
+
type: "button",
|
|
41494
|
+
onClick: handleAdd,
|
|
41495
|
+
style: {
|
|
41496
|
+
backgroundColor: "#4f6cfc",
|
|
41497
|
+
color: "white",
|
|
41498
|
+
padding: "8px 24px",
|
|
41499
|
+
borderRadius: "4px",
|
|
41500
|
+
border: "none",
|
|
41501
|
+
cursor: "pointer"
|
|
41502
|
+
}
|
|
41503
|
+
}, t("Add")))), tableData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
41504
|
+
style: {
|
|
41505
|
+
marginTop: "30px",
|
|
41506
|
+
overflowX: "auto"
|
|
41507
|
+
}
|
|
41508
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
41509
|
+
className: "customTable table-fixed-first-column table-border-style",
|
|
41510
|
+
t: t,
|
|
41511
|
+
disableSort: false,
|
|
41512
|
+
autoSort: true,
|
|
41513
|
+
manualPagination: false,
|
|
41514
|
+
isPaginationRequired: false,
|
|
41515
|
+
data: tableData,
|
|
41516
|
+
columns: columns,
|
|
41517
|
+
getCellProps: cellInfo => {
|
|
41518
|
+
return {
|
|
41519
|
+
style: {
|
|
41520
|
+
padding: "12px"
|
|
41521
|
+
}
|
|
41522
|
+
};
|
|
41523
|
+
}
|
|
41524
|
+
})));
|
|
41525
|
+
};
|
|
41526
|
+
|
|
41370
41527
|
function ApplicationDetailsContent({
|
|
41371
41528
|
applicationDetails,
|
|
41372
41529
|
workflowDetails,
|
|
@@ -41865,7 +42022,7 @@ function ApplicationDetailsContent({
|
|
|
41865
42022
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
41866
42023
|
wsAdditionalDetails: detail,
|
|
41867
42024
|
oldValue: oldValue
|
|
41868
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
42025
|
+
}), (detail === null || detail === void 0 ? void 0 : detail.isDueVerification) && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" && /*#__PURE__*/React.createElement(DueVerification, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
41869
42026
|
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.url
|
|
41870
42027
|
}, /*#__PURE__*/React.createElement("span", {
|
|
41871
42028
|
className: "add-details-link hover-button"
|
|
@@ -46717,7 +46874,7 @@ const OLDApplication = () => {
|
|
|
46717
46874
|
if (config) {
|
|
46718
46875
|
var _config$body;
|
|
46719
46876
|
const allCreateSections = (config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
|
|
46720
|
-
const desiredComponentOrder = ["
|
|
46877
|
+
const desiredComponentOrder = ["WSConnectionDetails", "WSConnectionHolderDetails", "CPTPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
|
|
46721
46878
|
const reorderedBody = [];
|
|
46722
46879
|
desiredComponentOrder.forEach(compName => {
|
|
46723
46880
|
const section = allCreateSections.find(s => {
|
|
@@ -46777,14 +46934,12 @@ const OLDApplication = () => {
|
|
|
46777
46934
|
withoutLabel: true
|
|
46778
46935
|
}]
|
|
46779
46936
|
});
|
|
46780
|
-
} else {
|
|
46781
|
-
console.warn(`[WS] section for component ${compName} not found in allCreateSections`);
|
|
46782
46937
|
}
|
|
46783
46938
|
});
|
|
46784
46939
|
allCreateSections.forEach(section => {
|
|
46785
46940
|
var _section$body, _section$body$;
|
|
46786
46941
|
const bodyComp = (_section$body = section.body) === null || _section$body === void 0 ? void 0 : (_section$body$ = _section$body[0]) === null || _section$body$ === void 0 ? void 0 : _section$body$.component;
|
|
46787
|
-
if (!reorderedBody.find(r => {
|
|
46942
|
+
if (bodyComp !== "CPTPropertySearchNSummary" && !reorderedBody.find(r => {
|
|
46788
46943
|
var _r$body, _r$body$;
|
|
46789
46944
|
return ((_r$body = r.body) === null || _r$body === void 0 ? void 0 : (_r$body$ = _r$body[0]) === null || _r$body$ === void 0 ? void 0 : _r$body$.component) === bodyComp;
|
|
46790
46945
|
})) {
|
|
@@ -46839,11 +46994,12 @@ const OLDApplication = () => {
|
|
|
46839
46994
|
} = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE");
|
|
46840
46995
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
46841
46996
|
var _formState$errors, _formState$errors$Con, _Object$keys, _formState$errors2, _formState$errors2$Co;
|
|
46842
|
-
|
|
46843
|
-
|
|
46844
|
-
|
|
46845
|
-
|
|
46846
|
-
|
|
46997
|
+
const updatedFormData = {
|
|
46998
|
+
...sessionFormData,
|
|
46999
|
+
...formData
|
|
47000
|
+
};
|
|
47001
|
+
if (!lodash.isEqual(sessionFormData, updatedFormData)) {
|
|
47002
|
+
setSessionFormData(updatedFormData);
|
|
46847
47003
|
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
|
|
46848
47004
|
}
|
|
46849
47005
|
if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length == 1 && formState !== null && formState !== void 0 && (_formState$errors = formState.errors) !== null && _formState$errors !== void 0 && (_formState$errors$Con = _formState$errors["ConnectionHolderDetails"]) !== null && _formState$errors$Con !== void 0 && _formState$errors$Con.type && ((_Object$keys = Object.keys(formState === null || formState === void 0 ? void 0 : (_formState$errors2 = formState.errors) === null || _formState$errors2 === void 0 ? void 0 : (_formState$errors2$Co = _formState$errors2["ConnectionHolderDetails"]) === null || _formState$errors2$Co === void 0 ? void 0 : _formState$errors2$Co.type)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) == 1 && formState.errors["ConnectionHolderDetails"] && Object.values(formState.errors["ConnectionHolderDetails"].type).filter(ob => {
|
|
@@ -47291,17 +47447,8 @@ const WSLinks = ({
|
|
|
47291
47447
|
t
|
|
47292
47448
|
} = useTranslation();
|
|
47293
47449
|
const links = [{
|
|
47294
|
-
link: `${matchPath}/
|
|
47295
|
-
i18nKey: t("ACTION_TEST_WNS_MY_BILLS")
|
|
47296
|
-
}, {
|
|
47297
|
-
link: `${matchPath}/my-payments`,
|
|
47298
|
-
i18nKey: t("ACTION_TEST_MY_PAYMENTS")
|
|
47299
|
-
}, {
|
|
47300
|
-
link: `${matchPath}/create-application`,
|
|
47450
|
+
link: `${matchPath}/old-application`,
|
|
47301
47451
|
i18nKey: t("ACTION_TEST_APPLY_NEW_CONNECTION")
|
|
47302
|
-
}, {
|
|
47303
|
-
link: `${matchPath}/search`,
|
|
47304
|
-
i18nKey: t("ACTION_TEXT_WS_SEARCH_AND_PAY")
|
|
47305
47452
|
}, {
|
|
47306
47453
|
link: `${matchPath}/my-applications`,
|
|
47307
47454
|
i18nKey: t("ACTION_TEXT_WS_MY_APPLICATION")
|