@djb25/digit-ui-module-ws 1.0.93 → 1.0.95
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 +1361 -1338
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1362 -1339
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$1, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useHistory, useLocation, Switch, Route, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, CardSubHeader, StatusTable, Row, Menu, Modal, TextArea, Toast, PrintBtnCommon, MultiLink, LinkButton, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, DatePicker,
|
|
4
|
+
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, CardSubHeader, StatusTable, Row, Menu, Modal, TextArea, Toast, PrintBtnCommon, MultiLink, LinkButton, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, DatePicker, DeleteIcon, WrapUnMaskComponent, MobileNumber, UploadFile, ViewsIcon, RemoveIcon, CardSectionHeader, RadioButtons, InfoIcon, Header, FilterFormField, RemoveableTag as RemoveableTag$1, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, PDFSvg, GenericFileIcon, EditIcon, Label, OTPInput, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$g, BreakLine, CheckPoint, ConnectingCheckPoints, ButtonSelector as ButtonSelector$1, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
5
5
|
import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
|
|
6
6
|
import { read, utils as utils$1 } from 'xlsx';
|
|
7
7
|
import { useQueryClient, useQuery } from 'react-query';
|
|
@@ -513,7 +513,7 @@ const getFiles = function (filesArray, tenant) {
|
|
|
513
513
|
};
|
|
514
514
|
const createPayloadOfWS = function (data) {
|
|
515
515
|
try {
|
|
516
|
-
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj, _useDetailsObject$cat, _data$
|
|
516
|
+
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj, _data$applicationSele8, _useDetailsObject$cat, _data$applicationSele9, _data$applicationSele0, _connectionHolder$own2, _useDetailsObject$noO, _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$applicationSele25, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
|
|
517
517
|
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
518
518
|
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"));
|
|
519
519
|
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 => {
|
|
@@ -572,7 +572,7 @@ const createPayloadOfWS = function (data) {
|
|
|
572
572
|
watsAppMobileNumber: (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.watsAppMobileNumber) || "",
|
|
573
573
|
isWatsappSameAsMobile: (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.isWatsappSameAsMobile) || false,
|
|
574
574
|
ownerType: (connectionHolder === null || connectionHolder === void 0 ? void 0 : (_connectionHolder$own = connectionHolder.ownerType) === null || _connectionHolder$own === void 0 ? void 0 : _connectionHolder$own.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.ownerType) || "",
|
|
575
|
-
relationship: (connectionHolder === null || connectionHolder === void 0 ? void 0 : (_connectionHolder$rel = connectionHolder.relationship) === null || _connectionHolder$rel === void 0 ? void 0 : _connectionHolder$rel.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.relationship) || "
|
|
575
|
+
relationship: (connectionHolder === null || connectionHolder === void 0 ? void 0 : (_connectionHolder$rel = connectionHolder.relationship) === null || _connectionHolder$rel === void 0 ? void 0 : _connectionHolder$rel.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.relationship) || "OTHER",
|
|
576
576
|
sameAsPropertyAddress: (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.sameAsOwnerDetails) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.sameAsPropertyAddress) || false
|
|
577
577
|
}] : [{
|
|
578
578
|
correspondenceAddress: (data === null || data === void 0 ? void 0 : (_data$propertyAddress = data.propertyAddress) === null || _data$propertyAddress === void 0 ? void 0 : _data$propertyAddress.address) || "",
|
|
@@ -583,7 +583,7 @@ const createPayloadOfWS = function (data) {
|
|
|
583
583
|
watsAppMobileNumber: (data === null || data === void 0 ? void 0 : (_data$contact2 = data.contact) === null || _data$contact2 === void 0 ? void 0 : _data$contact2.watsAppMobileNumber) || "",
|
|
584
584
|
isWatsappSameAsMobile: (data === null || data === void 0 ? void 0 : (_data$contact3 = data.contact) === null || _data$contact3 === void 0 ? void 0 : _data$contact3.isWatsappSameAsMobile) || false,
|
|
585
585
|
ownerType: (data === null || data === void 0 ? void 0 : (_data$applicationSele2 = data.applicationSelection) === null || _data$applicationSele2 === void 0 ? void 0 : (_data$applicationSele3 = _data$applicationSele2.categoryType) === null || _data$applicationSele3 === void 0 ? void 0 : _data$applicationSele3.code) || "",
|
|
586
|
-
relationship: "
|
|
586
|
+
relationship: "OTHER",
|
|
587
587
|
sameAsPropertyAddress: true,
|
|
588
588
|
emailId: (data === null || data === void 0 ? void 0 : (_data$contact4 = data.contact) === null || _data$contact4 === void 0 ? void 0 : _data$contact4.emailId) || ""
|
|
589
589
|
}],
|
|
@@ -650,18 +650,22 @@ const createPayloadOfWS = function (data) {
|
|
|
650
650
|
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),
|
|
651
651
|
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) || "",
|
|
652
652
|
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,
|
|
653
|
-
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) || "
|
|
654
|
-
|
|
653
|
+
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) || "Permanent",
|
|
654
|
+
waterDemandType: (data === null || data === void 0 ? void 0 : (_data$applicationSele8 = data.applicationSelection) === null || _data$applicationSele8 === void 0 ? void 0 : _data$applicationSele8.waterDemandType) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.waterDemandType) || (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : useDetailsObject.waterDemandType) || {
|
|
655
|
+
code: "NON_BULK",
|
|
656
|
+
i18nKey: "WS_WATER_DEMAND_NON_BULK"
|
|
657
|
+
},
|
|
658
|
+
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$applicationSele9 = data.applicationSelection) === null || _data$applicationSele9 === void 0 ? void 0 : (_data$applicationSele0 = _data$applicationSele9.categoryType) === null || _data$applicationSele0 === void 0 ? void 0 : _data$applicationSele0.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),
|
|
655
659
|
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),
|
|
656
|
-
subCategory: data === null || data === void 0 ? void 0 : (_data$
|
|
657
|
-
domesticType: data === null || data === void 0 ? void 0 : (_data$
|
|
658
|
-
temporaryConnection: data === null || data === void 0 ? void 0 : (_data$
|
|
659
|
-
ownerAuthorizationDoc: data === null || data === void 0 ? void 0 : (_data$
|
|
660
|
-
ownerContactNumber: data === null || data === void 0 ? void 0 : (_data$
|
|
661
|
-
isOwnerVerified: data === null || data === void 0 ? void 0 : (_data$
|
|
662
|
-
commercialType: data === null || data === void 0 ? void 0 : (_data$
|
|
663
|
-
govtOrganization: data === null || data === void 0 ? void 0 : (_data$
|
|
664
|
-
departmentType: data === null || data === void 0 ? void 0 : (_data$
|
|
660
|
+
subCategory: data === null || data === void 0 ? void 0 : (_data$applicationSele1 = data.applicationSelection) === null || _data$applicationSele1 === void 0 ? void 0 : (_data$applicationSele10 = _data$applicationSele1.subCategory) === null || _data$applicationSele10 === void 0 ? void 0 : _data$applicationSele10.code,
|
|
661
|
+
domesticType: data === null || data === void 0 ? void 0 : (_data$applicationSele11 = data.applicationSelection) === null || _data$applicationSele11 === void 0 ? void 0 : (_data$applicationSele12 = _data$applicationSele11.domesticType) === null || _data$applicationSele12 === void 0 ? void 0 : _data$applicationSele12.code,
|
|
662
|
+
temporaryConnection: data === null || data === void 0 ? void 0 : (_data$applicationSele13 = data.applicationSelection) === null || _data$applicationSele13 === void 0 ? void 0 : (_data$applicationSele14 = _data$applicationSele13.temporaryConnection) === null || _data$applicationSele14 === void 0 ? void 0 : _data$applicationSele14.code,
|
|
663
|
+
ownerAuthorizationDoc: data === null || data === void 0 ? void 0 : (_data$applicationSele15 = data.applicationSelection) === null || _data$applicationSele15 === void 0 ? void 0 : (_data$applicationSele16 = _data$applicationSele15.ownerAuthorizationDoc) === null || _data$applicationSele16 === void 0 ? void 0 : (_data$applicationSele17 = _data$applicationSele16[0]) === null || _data$applicationSele17 === void 0 ? void 0 : (_data$applicationSele18 = _data$applicationSele17[1]) === null || _data$applicationSele18 === void 0 ? void 0 : _data$applicationSele18.fileStoreId,
|
|
664
|
+
ownerContactNumber: data === null || data === void 0 ? void 0 : (_data$applicationSele19 = data.applicationSelection) === null || _data$applicationSele19 === void 0 ? void 0 : _data$applicationSele19.ownerContactNumber,
|
|
665
|
+
isOwnerVerified: data === null || data === void 0 ? void 0 : (_data$applicationSele20 = data.applicationSelection) === null || _data$applicationSele20 === void 0 ? void 0 : _data$applicationSele20.isOwnerVerified,
|
|
666
|
+
commercialType: data === null || data === void 0 ? void 0 : (_data$applicationSele21 = data.applicationSelection) === null || _data$applicationSele21 === void 0 ? void 0 : (_data$applicationSele22 = _data$applicationSele21.commercialType) === null || _data$applicationSele22 === void 0 ? void 0 : _data$applicationSele22.code,
|
|
667
|
+
govtOrganization: data === null || data === void 0 ? void 0 : (_data$applicationSele23 = data.applicationSelection) === null || _data$applicationSele23 === void 0 ? void 0 : _data$applicationSele23.govtOrganization,
|
|
668
|
+
departmentType: data === null || data === void 0 ? void 0 : (_data$applicationSele24 = data.applicationSelection) === null || _data$applicationSele24 === void 0 ? void 0 : (_data$applicationSele25 = _data$applicationSele24.departmentType) === null || _data$applicationSele25 === void 0 ? void 0 : _data$applicationSele25.code,
|
|
665
669
|
governmentEmployee: data === null || data === void 0 ? void 0 : data.governmentEmployee,
|
|
666
670
|
whatsAppNumber: data === null || data === void 0 ? void 0 : (_data$contact5 = data.contact) === null || _data$contact5 === void 0 ? void 0 : _data$contact5.whatsAppNumber,
|
|
667
671
|
identityProofNumber: data === null || data === void 0 ? void 0 : (_data$documents2 = data.documents) === null || _data$documents2 === void 0 ? void 0 : _data$documents2.identityProofNumber,
|
|
@@ -691,7 +695,7 @@ const createPayloadOfWS = function (data) {
|
|
|
691
695
|
};
|
|
692
696
|
const updatePayloadOfWS = function (data, type) {
|
|
693
697
|
try {
|
|
694
|
-
var _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
|
|
698
|
+
var _data$additionalDetai, _data$additionalDetai2, _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
|
|
695
699
|
let payload = {
|
|
696
700
|
...data,
|
|
697
701
|
processInstance: {
|
|
@@ -700,7 +704,15 @@ const updatePayloadOfWS = function (data, type) {
|
|
|
700
704
|
},
|
|
701
705
|
documents: JSON.parse(sessionStorage.getItem("WS_DOCUMENTS_INOF") && sessionStorage.getItem("WS_DOCUMENTS_INOF") !== "undefined" ? sessionStorage.getItem("WS_DOCUMENTS_INOF") : "null"),
|
|
702
706
|
property: JSON.parse(sessionStorage.getItem("WS_PROPERTY_INOF") && sessionStorage.getItem("WS_PROPERTY_INOF") !== "undefined" ? sessionStorage.getItem("WS_PROPERTY_INOF") : "null"),
|
|
703
|
-
connectionType: type === "WATER" ? data === null || data === void 0 ? void 0 : data.connectionType : "Non Metered"
|
|
707
|
+
connectionType: type === "WATER" ? (data === null || data === void 0 ? void 0 : data.connectionType) || "Permanent" : "Non Metered",
|
|
708
|
+
additionalDetails: {
|
|
709
|
+
...(data === null || data === void 0 ? void 0 : data.additionalDetails),
|
|
710
|
+
connectionType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai = data.additionalDetails) === null || _data$additionalDetai === void 0 ? void 0 : _data$additionalDetai.connectionType) || "Permanent",
|
|
711
|
+
waterDemandType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai2 = data.additionalDetails) === null || _data$additionalDetai2 === void 0 ? void 0 : _data$additionalDetai2.waterDemandType) || {
|
|
712
|
+
code: "NON_BULK",
|
|
713
|
+
i18nKey: "WS_WATER_DEMAND_NON_BULK"
|
|
714
|
+
}
|
|
715
|
+
}
|
|
704
716
|
};
|
|
705
717
|
payload = (_Digit3 = Digit) !== null && _Digit3 !== void 0 && (_Digit3$Customization = _Digit3.Customizations) !== null && _Digit3$Customization !== void 0 && (_Digit3$Customization2 = _Digit3$Customization.WS) !== null && _Digit3$Customization2 !== void 0 && _Digit3$Customization2.customiseUpdatePayloadOfWS ? (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$Customization = _Digit4.Customizations) === null || _Digit4$Customization === void 0 ? void 0 : (_Digit4$Customization2 = _Digit4$Customization.WS) === null || _Digit4$Customization2 === void 0 ? void 0 : _Digit4$Customization2.customiseUpdatePayloadOfWS(data, payload, type) : payload;
|
|
706
718
|
return Promise.resolve(payload);
|
|
@@ -712,34 +724,72 @@ const getAllDocumentsForUpdate = data => {
|
|
|
712
724
|
var _data$documents5, _data$djbEmployee6, _data$governmentEmplo5;
|
|
713
725
|
let allDocuments = Array.isArray(data === null || data === void 0 ? void 0 : (_data$documents5 = data.documents) === null || _data$documents5 === void 0 ? void 0 : _data$documents5.documents) ? [...data.documents.documents] : Array.isArray(data === null || data === void 0 ? void 0 : data.documents) ? [...data.documents] : [];
|
|
714
726
|
if (data !== null && data !== void 0 && (_data$djbEmployee6 = data.djbEmployee) !== null && _data$djbEmployee6 !== void 0 && _data$djbEmployee6.document) {
|
|
715
|
-
var _data$djbEmployee7
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
727
|
+
var _data$djbEmployee7;
|
|
728
|
+
const isDjbEmp = String(data === null || data === void 0 ? void 0 : (_data$djbEmployee7 = data.djbEmployee) === null || _data$djbEmployee7 === void 0 ? void 0 : _data$djbEmployee7.isDjbEmployee) === "true";
|
|
729
|
+
let existingIndex = allDocuments.findIndex(doc => doc.documentType === "OWNER.DJB_EMPLOYEE_ID");
|
|
730
|
+
if (isDjbEmp) {
|
|
731
|
+
if (existingIndex !== -1) {
|
|
732
|
+
var _data$djbEmployee8, _data$djbEmployee8$do, _data$djbEmployee9;
|
|
733
|
+
allDocuments[existingIndex] = {
|
|
734
|
+
...allDocuments[existingIndex],
|
|
735
|
+
fileStoreId: (data === null || data === void 0 ? void 0 : (_data$djbEmployee8 = data.djbEmployee) === null || _data$djbEmployee8 === void 0 ? void 0 : (_data$djbEmployee8$do = _data$djbEmployee8.document) === null || _data$djbEmployee8$do === void 0 ? void 0 : _data$djbEmployee8$do.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$djbEmployee9 = data.djbEmployee) === null || _data$djbEmployee9 === void 0 ? void 0 : _data$djbEmployee9.document),
|
|
736
|
+
status: "ACTIVE"
|
|
737
|
+
};
|
|
738
|
+
} else {
|
|
739
|
+
var _data$djbEmployee0, _data$djbEmployee0$do, _data$djbEmployee1;
|
|
740
|
+
allDocuments.push({
|
|
741
|
+
documentType: "OWNER.DJB_EMPLOYEE_ID",
|
|
742
|
+
fileStoreId: (data === null || data === void 0 ? void 0 : (_data$djbEmployee0 = data.djbEmployee) === null || _data$djbEmployee0 === void 0 ? void 0 : (_data$djbEmployee0$do = _data$djbEmployee0.document) === null || _data$djbEmployee0$do === void 0 ? void 0 : _data$djbEmployee0$do.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$djbEmployee1 = data.djbEmployee) === null || _data$djbEmployee1 === void 0 ? void 0 : _data$djbEmployee1.document),
|
|
743
|
+
documentUid: "",
|
|
744
|
+
status: "ACTIVE"
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
} else {
|
|
748
|
+
if (existingIndex !== -1) {
|
|
749
|
+
allDocuments[existingIndex].status = "INACTIVE";
|
|
750
|
+
}
|
|
751
|
+
}
|
|
722
752
|
}
|
|
723
753
|
if (data !== null && data !== void 0 && (_data$governmentEmplo5 = data.governmentEmployee) !== null && _data$governmentEmplo5 !== void 0 && _data$governmentEmplo5.organizationDocument) {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
754
|
+
let existingIndex = allDocuments.findIndex(doc => doc.documentType === "OWNER.GOVERNMENT_EMPLOYEE_ID");
|
|
755
|
+
if (existingIndex !== -1) {
|
|
756
|
+
var _data$governmentEmplo6, _data$governmentEmplo7, _data$governmentEmplo8;
|
|
757
|
+
allDocuments[existingIndex] = {
|
|
758
|
+
...allDocuments[existingIndex],
|
|
759
|
+
fileStoreId: (data === null || data === void 0 ? void 0 : (_data$governmentEmplo6 = data.governmentEmployee) === null || _data$governmentEmplo6 === void 0 ? void 0 : (_data$governmentEmplo7 = _data$governmentEmplo6.organizationDocument) === null || _data$governmentEmplo7 === void 0 ? void 0 : _data$governmentEmplo7.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$governmentEmplo8 = data.governmentEmployee) === null || _data$governmentEmplo8 === void 0 ? void 0 : _data$governmentEmplo8.organizationDocument),
|
|
760
|
+
status: "ACTIVE"
|
|
761
|
+
};
|
|
762
|
+
} else {
|
|
763
|
+
var _data$governmentEmplo9, _data$governmentEmplo0, _data$governmentEmplo1;
|
|
764
|
+
allDocuments.push({
|
|
765
|
+
documentType: "OWNER.GOVERNMENT_EMPLOYEE_ID",
|
|
766
|
+
fileStoreId: (data === null || data === void 0 ? void 0 : (_data$governmentEmplo9 = data.governmentEmployee) === null || _data$governmentEmplo9 === void 0 ? void 0 : (_data$governmentEmplo0 = _data$governmentEmplo9.organizationDocument) === null || _data$governmentEmplo0 === void 0 ? void 0 : _data$governmentEmplo0.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$governmentEmplo1 = data.governmentEmployee) === null || _data$governmentEmplo1 === void 0 ? void 0 : _data$governmentEmplo1.organizationDocument),
|
|
767
|
+
documentUid: "",
|
|
768
|
+
status: "ACTIVE"
|
|
769
|
+
});
|
|
770
|
+
}
|
|
731
771
|
}
|
|
732
772
|
const connectionDetailsArray = Array.isArray(data === null || data === void 0 ? void 0 : data.ConnectionDetails) ? data.ConnectionDetails : data !== null && data !== void 0 && data.ConnectionDetails ? Object.values(data.ConnectionDetails).filter(i => typeof i === "object") : [];
|
|
733
773
|
const connectionDetail = (connectionDetailsArray === null || connectionDetailsArray === void 0 ? void 0 : connectionDetailsArray[0]) || (data === null || data === void 0 ? void 0 : data.ConnectionDetails) || {};
|
|
734
774
|
if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
|
|
735
|
-
var _connectionDetail$org2;
|
|
736
775
|
let documentType = "OWNER.ORGANIZATION_DOCUMENT";
|
|
737
|
-
allDocuments.
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
776
|
+
let existingIndex = allDocuments.findIndex(doc => doc.documentType === documentType);
|
|
777
|
+
if (existingIndex !== -1) {
|
|
778
|
+
var _connectionDetail$org2;
|
|
779
|
+
allDocuments[existingIndex] = {
|
|
780
|
+
...allDocuments[existingIndex],
|
|
781
|
+
fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org2 = connectionDetail.orgDeptDocument) === null || _connectionDetail$org2 === void 0 ? void 0 : _connectionDetail$org2.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
|
|
782
|
+
status: "ACTIVE"
|
|
783
|
+
};
|
|
784
|
+
} else {
|
|
785
|
+
var _connectionDetail$org3;
|
|
786
|
+
allDocuments.push({
|
|
787
|
+
documentType: documentType,
|
|
788
|
+
fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org3 = connectionDetail.orgDeptDocument) === null || _connectionDetail$org3 === void 0 ? void 0 : _connectionDetail$org3.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
|
|
789
|
+
documentUid: "",
|
|
790
|
+
status: "ACTIVE"
|
|
791
|
+
});
|
|
792
|
+
}
|
|
743
793
|
}
|
|
744
794
|
return allDocuments;
|
|
745
795
|
};
|
|
@@ -938,7 +988,7 @@ const convertToSWUpdate = data => {
|
|
|
938
988
|
};
|
|
939
989
|
const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
940
990
|
try {
|
|
941
|
-
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$
|
|
991
|
+
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$applicatio50, _storeData$applicatio51, _storeData$applicatio52, _storeData$applicatio53, _storeData$applicatio54, _storeData$applicatio55, _data$type3, _data$type3$value, _data$reason$value2, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _storeData$applicatio60, _storeData$applicatio61, _plumberInfo2, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _storeData$applicatio68, _storeData$applicatio69, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
|
|
942
992
|
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;
|
|
943
993
|
let plumberInfo = [];
|
|
944
994
|
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) {
|
|
@@ -980,10 +1030,10 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
980
1030
|
noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio41 = storeData.applicationData) === null || _storeData$applicatio41 === void 0 ? void 0 : _storeData$applicatio41.noOfTaps,
|
|
981
1031
|
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio42 = storeData.applicationData) === null || _storeData$applicatio42 === void 0 ? void 0 : _storeData$applicatio42.additionalDetails,
|
|
982
1032
|
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio43 = storeData.applicationData) === null || _storeData$applicatio43 === void 0 ? void 0 : _storeData$applicatio43.tenantId,
|
|
983
|
-
connectionType: storeData.applicationData.connectionType || null,
|
|
984
|
-
waterSource: storeData.applicationData.waterSource || null,
|
|
1033
|
+
connectionType: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio44 = storeData.applicationData) === null || _storeData$applicatio44 === void 0 ? void 0 : _storeData$applicatio44.connectionType) || null,
|
|
1034
|
+
waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio45 = storeData.applicationData) === null || _storeData$applicatio45 === void 0 ? void 0 : _storeData$applicatio45.waterSource) || null,
|
|
985
1035
|
processInstance: {
|
|
986
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1036
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio46 = storeData.applicationData) === null || _storeData$applicatio46 === void 0 ? void 0 : _storeData$applicatio46.processInstance),
|
|
987
1037
|
businessService: "DisconnectWSConnection",
|
|
988
1038
|
action: "INITIATE"
|
|
989
1039
|
},
|
|
@@ -991,18 +1041,19 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
991
1041
|
},
|
|
992
1042
|
disconnectRequest: true
|
|
993
1043
|
};
|
|
994
|
-
if (storeData.applicationData.connectionType) {
|
|
995
|
-
|
|
996
|
-
if (storeData.applicationData.
|
|
1044
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio47 = storeData.applicationData) !== null && _storeData$applicatio47 !== void 0 && _storeData$applicatio47.connectionType) {
|
|
1045
|
+
var _storeData$applicatio48, _storeData$applicatio49;
|
|
1046
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio48 = storeData.applicationData) !== null && _storeData$applicatio48 !== void 0 && _storeData$applicatio48.meterInstallationDate) wsPayload.WaterConnection.meterInstallationDate = storeData.applicationData.meterInstallationDate;
|
|
1047
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio49 = storeData.applicationData) !== null && _storeData$applicatio49 !== void 0 && _storeData$applicatio49.meterId) wsPayload.WaterConnection.meterId = storeData.applicationData.meterId;
|
|
997
1048
|
}
|
|
998
1049
|
let swPayload = {
|
|
999
1050
|
SewerageConnection: {
|
|
1000
|
-
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1001
|
-
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1002
|
-
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1003
|
-
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1004
|
-
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1005
|
-
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1051
|
+
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio50 = storeData.applicationData) === null || _storeData$applicatio50 === void 0 ? void 0 : _storeData$applicatio50.id,
|
|
1052
|
+
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio51 = storeData.applicationData) === null || _storeData$applicatio51 === void 0 ? void 0 : _storeData$applicatio51.applicationNo,
|
|
1053
|
+
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio52 = storeData.applicationData) === null || _storeData$applicatio52 === void 0 ? void 0 : _storeData$applicatio52.applicationStatus,
|
|
1054
|
+
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio53 = storeData.applicationData) === null || _storeData$applicatio53 === void 0 ? void 0 : _storeData$applicatio53.status,
|
|
1055
|
+
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio54 = storeData.applicationData) === null || _storeData$applicatio54 === void 0 ? void 0 : _storeData$applicatio54.connectionNo,
|
|
1056
|
+
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio55 = storeData.applicationData) === null || _storeData$applicatio55 === void 0 ? void 0 : _storeData$applicatio55.connectionHolders,
|
|
1006
1057
|
applicationType: "DISCONNECT_SEWERAGE_CONNECTION",
|
|
1007
1058
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1008
1059
|
isdisconnection: true,
|
|
@@ -1011,25 +1062,25 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
1011
1062
|
documents: data === null || data === void 0 ? void 0 : data.documents,
|
|
1012
1063
|
water: false,
|
|
1013
1064
|
sewerage: true,
|
|
1014
|
-
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1015
|
-
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1065
|
+
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio56 = storeData.applicationData) === null || _storeData$applicatio56 === void 0 ? void 0 : _storeData$applicatio56.proposedWaterClosets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio57 = storeData.applicationData) === null || _storeData$applicatio57 === void 0 ? void 0 : _storeData$applicatio57.proposedWaterClosets),
|
|
1066
|
+
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio58 = storeData.applicationData) === null || _storeData$applicatio58 === void 0 ? void 0 : _storeData$applicatio58.proposedToilets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio59 = storeData.applicationData) === null || _storeData$applicatio59 === void 0 ? void 0 : _storeData$applicatio59.proposedToilets),
|
|
1016
1067
|
service: "Sewerage",
|
|
1017
|
-
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1018
|
-
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1068
|
+
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio60 = storeData.applicationData) === null || _storeData$applicatio60 === void 0 ? void 0 : _storeData$applicatio60.property,
|
|
1069
|
+
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio61 = storeData.applicationData) === null || _storeData$applicatio61 === void 0 ? void 0 : _storeData$applicatio61.propertyId,
|
|
1019
1070
|
oldConnectionNo: null,
|
|
1020
1071
|
plumberInfo: ((_plumberInfo2 = plumberInfo) === null || _plumberInfo2 === void 0 ? void 0 : _plumberInfo2.length) > 0 ? plumberInfo : null,
|
|
1021
|
-
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1072
|
+
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio62 = storeData.applicationData) === null || _storeData$applicatio62 === void 0 ? void 0 : _storeData$applicatio62.roadCuttingInfo,
|
|
1022
1073
|
roadCuttingArea: null,
|
|
1023
1074
|
roadType: null,
|
|
1024
|
-
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1025
|
-
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1026
|
-
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1027
|
-
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1028
|
-
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1075
|
+
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio63 = storeData.applicationData) === null || _storeData$applicatio63 === void 0 ? void 0 : _storeData$applicatio63.connectionExecutionDate,
|
|
1076
|
+
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio64 = storeData.applicationData) === null || _storeData$applicatio64 === void 0 ? void 0 : _storeData$applicatio64.noOfWaterClosets,
|
|
1077
|
+
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio65 = storeData.applicationData) === null || _storeData$applicatio65 === void 0 ? void 0 : _storeData$applicatio65.noOfToilets,
|
|
1078
|
+
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio66 = storeData.applicationData) === null || _storeData$applicatio66 === void 0 ? void 0 : _storeData$applicatio66.additionalDetails,
|
|
1079
|
+
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio67 = storeData.applicationData) === null || _storeData$applicatio67 === void 0 ? void 0 : _storeData$applicatio67.tenantId,
|
|
1029
1080
|
connectionType: "Non Metered",
|
|
1030
|
-
waterSource: storeData.applicationData.waterSource || null,
|
|
1081
|
+
waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio68 = storeData.applicationData) === null || _storeData$applicatio68 === void 0 ? void 0 : _storeData$applicatio68.waterSource) || null,
|
|
1031
1082
|
processInstance: {
|
|
1032
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1083
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio69 = storeData.applicationData) === null || _storeData$applicatio69 === void 0 ? void 0 : _storeData$applicatio69.processInstance),
|
|
1033
1084
|
businessService: "DisconnectSWConnection",
|
|
1034
1085
|
action: "INITIATE"
|
|
1035
1086
|
},
|
|
@@ -1046,26 +1097,26 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
1046
1097
|
};
|
|
1047
1098
|
const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
1048
1099
|
try {
|
|
1049
|
-
var _Digit$UserService$ge0, _Digit$UserService$ge1, _storeData$
|
|
1100
|
+
var _Digit$UserService$ge0, _Digit$UserService$ge1, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio96, _storeData$applicatio97, _storeData$applicatio98, _storeData$applicatio99, _storeData$applicatio100, _storeData$applicatio101, _data$type4, _data$type4$value, _data$type5, _data$type5$value, _data$reason$value3, _storeData$applicatio102, _storeData$applicatio103, _storeData$applicatio104, _storeData$applicatio105, _storeData$applicatio106, _storeData$applicatio107, _storeData$applicatio108, _storeData$applicatio109, _plumberInfo3, _storeData$applicatio110, _storeData$applicatio111, _storeData$applicatio112, _storeData$applicatio113, _storeData$applicatio114, _storeData$applicatio115, _storeData$applicatio116, _storeData$applicatio117, _storeData$applicatio118, _storeData$applicatio119, _storeData$applicatio120, _storeData$applicatio121, _data$type6, _data$type6$value, _data$reason$value4, _storeData$applicatio122, _storeData$applicatio123, _storeData$applicatio124, _storeData$applicatio125, _storeData$applicatio126, _storeData$applicatio127, _plumberInfo4, _storeData$applicatio128, _storeData$applicatio129, _storeData$applicatio130, _storeData$applicatio131, _storeData$applicatio132, _storeData$applicatio133, _storeData$applicatio134;
|
|
1050
1101
|
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;
|
|
1051
1102
|
let plumberInfo = [];
|
|
1052
|
-
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1053
|
-
var _storeData$
|
|
1103
|
+
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio70 = storeData.applicationData) === null || _storeData$applicatio70 === void 0 ? void 0 : (_storeData$applicatio71 = _storeData$applicatio70.plumberInfo) === null || _storeData$applicatio71 === void 0 ? void 0 : _storeData$applicatio71.length) > 0) {
|
|
1104
|
+
var _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, _storeData$applicatio90, _storeData$applicatio91, _storeData$applicatio92, _storeData$applicatio93, _storeData$applicatio94, _storeData$applicatio95;
|
|
1054
1105
|
let plumberInfoData = {};
|
|
1055
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1056
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1057
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1058
|
-
if (storeData !== null && storeData !== void 0 && (_storeData$
|
|
1106
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio72 = storeData.applicationData) !== null && _storeData$applicatio72 !== void 0 && (_storeData$applicatio73 = _storeData$applicatio72.plumberInfo) !== null && _storeData$applicatio73 !== void 0 && (_storeData$applicatio74 = _storeData$applicatio73[0]) !== null && _storeData$applicatio74 !== void 0 && _storeData$applicatio74.licenseNo) plumberInfoData.licenseNo = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio75 = storeData.applicationData) === null || _storeData$applicatio75 === void 0 ? void 0 : (_storeData$applicatio76 = _storeData$applicatio75.plumberInfo) === null || _storeData$applicatio76 === void 0 ? void 0 : (_storeData$applicatio77 = _storeData$applicatio76[0]) === null || _storeData$applicatio77 === void 0 ? void 0 : _storeData$applicatio77.licenseNo;
|
|
1107
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio78 = storeData.applicationData) !== null && _storeData$applicatio78 !== void 0 && (_storeData$applicatio79 = _storeData$applicatio78.plumberInfo) !== null && _storeData$applicatio79 !== void 0 && (_storeData$applicatio80 = _storeData$applicatio79[0]) !== null && _storeData$applicatio80 !== void 0 && _storeData$applicatio80.mobileNumber) plumberInfoData.mobileNumber = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio81 = storeData.applicationData) === null || _storeData$applicatio81 === void 0 ? void 0 : (_storeData$applicatio82 = _storeData$applicatio81.plumberInfo) === null || _storeData$applicatio82 === void 0 ? void 0 : (_storeData$applicatio83 = _storeData$applicatio82[0]) === null || _storeData$applicatio83 === void 0 ? void 0 : _storeData$applicatio83.mobileNumber;
|
|
1108
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio84 = storeData.applicationData) !== null && _storeData$applicatio84 !== void 0 && (_storeData$applicatio85 = _storeData$applicatio84.plumberInfo) !== null && _storeData$applicatio85 !== void 0 && (_storeData$applicatio86 = _storeData$applicatio85[0]) !== null && _storeData$applicatio86 !== void 0 && _storeData$applicatio86.id) plumberInfoData.id = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio87 = storeData.applicationData) === null || _storeData$applicatio87 === void 0 ? void 0 : (_storeData$applicatio88 = _storeData$applicatio87.plumberInfo) === null || _storeData$applicatio88 === void 0 ? void 0 : (_storeData$applicatio89 = _storeData$applicatio88[0]) === null || _storeData$applicatio89 === void 0 ? void 0 : _storeData$applicatio89.id;
|
|
1109
|
+
if (storeData !== null && storeData !== void 0 && (_storeData$applicatio90 = storeData.applicationData) !== null && _storeData$applicatio90 !== void 0 && (_storeData$applicatio91 = _storeData$applicatio90.plumberInfo) !== null && _storeData$applicatio91 !== void 0 && (_storeData$applicatio92 = _storeData$applicatio91[0]) !== null && _storeData$applicatio92 !== void 0 && _storeData$applicatio92.name) plumberInfoData.name = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio93 = storeData.applicationData) === null || _storeData$applicatio93 === void 0 ? void 0 : (_storeData$applicatio94 = _storeData$applicatio93.plumberInfo) === null || _storeData$applicatio94 === void 0 ? void 0 : (_storeData$applicatio95 = _storeData$applicatio94[0]) === null || _storeData$applicatio95 === void 0 ? void 0 : _storeData$applicatio95.name;
|
|
1059
1110
|
plumberInfo = [plumberInfoData];
|
|
1060
1111
|
}
|
|
1061
1112
|
let wsPayload = {
|
|
1062
1113
|
WaterConnection: {
|
|
1063
|
-
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1064
|
-
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1065
|
-
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1066
|
-
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1067
|
-
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1068
|
-
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1114
|
+
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio96 = storeData.applicationData) === null || _storeData$applicatio96 === void 0 ? void 0 : _storeData$applicatio96.id,
|
|
1115
|
+
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio97 = storeData.applicationData) === null || _storeData$applicatio97 === void 0 ? void 0 : _storeData$applicatio97.applicationNo,
|
|
1116
|
+
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio98 = storeData.applicationData) === null || _storeData$applicatio98 === void 0 ? void 0 : _storeData$applicatio98.applicationStatus,
|
|
1117
|
+
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio99 = storeData.applicationData) === null || _storeData$applicatio99 === void 0 ? void 0 : _storeData$applicatio99.status,
|
|
1118
|
+
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio100 = storeData.applicationData) === null || _storeData$applicatio100 === void 0 ? void 0 : _storeData$applicatio100.connectionNo,
|
|
1119
|
+
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio101 = storeData.applicationData) === null || _storeData$applicatio101 === void 0 ? void 0 : _storeData$applicatio101.connectionHolders,
|
|
1069
1120
|
applicationType: "WATER_RECONNECTION",
|
|
1070
1121
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1071
1122
|
isdisconnection: true,
|
|
@@ -1074,24 +1125,24 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1074
1125
|
documents: data === null || data === void 0 ? void 0 : data.documents,
|
|
1075
1126
|
water: true,
|
|
1076
1127
|
sewerage: false,
|
|
1077
|
-
proposedTaps: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1078
|
-
proposedPipeSize: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1128
|
+
proposedTaps: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio102 = storeData.applicationData) === null || _storeData$applicatio102 === void 0 ? void 0 : _storeData$applicatio102.proposedTaps) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio103 = storeData.applicationData) === null || _storeData$applicatio103 === void 0 ? void 0 : _storeData$applicatio103.proposedTaps),
|
|
1129
|
+
proposedPipeSize: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio104 = storeData.applicationData) === null || _storeData$applicatio104 === void 0 ? void 0 : (_storeData$applicatio105 = _storeData$applicatio104.proposedPipeSize) === null || _storeData$applicatio105 === void 0 ? void 0 : _storeData$applicatio105.size) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio106 = storeData.applicationData) === null || _storeData$applicatio106 === void 0 ? void 0 : (_storeData$applicatio107 = _storeData$applicatio106.proposedPipeSize) === null || _storeData$applicatio107 === void 0 ? void 0 : _storeData$applicatio107.size),
|
|
1079
1130
|
service: "Water",
|
|
1080
|
-
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1081
|
-
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1131
|
+
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio108 = storeData.applicationData) === null || _storeData$applicatio108 === void 0 ? void 0 : _storeData$applicatio108.property,
|
|
1132
|
+
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio109 = storeData.applicationData) === null || _storeData$applicatio109 === void 0 ? void 0 : _storeData$applicatio109.propertyId,
|
|
1082
1133
|
oldConnectionNo: null,
|
|
1083
1134
|
plumberInfo: ((_plumberInfo3 = plumberInfo) === null || _plumberInfo3 === void 0 ? void 0 : _plumberInfo3.length) > 0 ? plumberInfo : null,
|
|
1084
|
-
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1135
|
+
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio110 = storeData.applicationData) === null || _storeData$applicatio110 === void 0 ? void 0 : _storeData$applicatio110.roadCuttingInfo,
|
|
1085
1136
|
roadCuttingArea: null,
|
|
1086
1137
|
roadType: null,
|
|
1087
|
-
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1088
|
-
noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1089
|
-
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1090
|
-
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1138
|
+
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio111 = storeData.applicationData) === null || _storeData$applicatio111 === void 0 ? void 0 : _storeData$applicatio111.connectionExecutionDate,
|
|
1139
|
+
noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio112 = storeData.applicationData) === null || _storeData$applicatio112 === void 0 ? void 0 : _storeData$applicatio112.noOfTaps,
|
|
1140
|
+
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio113 = storeData.applicationData) === null || _storeData$applicatio113 === void 0 ? void 0 : _storeData$applicatio113.additionalDetails,
|
|
1141
|
+
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio114 = storeData.applicationData) === null || _storeData$applicatio114 === void 0 ? void 0 : _storeData$applicatio114.tenantId,
|
|
1091
1142
|
connectionType: storeData.applicationData.connectionType || null,
|
|
1092
1143
|
waterSource: storeData.applicationData.waterSource || null,
|
|
1093
1144
|
processInstance: {
|
|
1094
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1145
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio115 = storeData.applicationData) === null || _storeData$applicatio115 === void 0 ? void 0 : _storeData$applicatio115.processInstance),
|
|
1095
1146
|
action: "INITIATE",
|
|
1096
1147
|
businessService: "WSReconnection"
|
|
1097
1148
|
},
|
|
@@ -1105,12 +1156,12 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1105
1156
|
}
|
|
1106
1157
|
let swPayload = {
|
|
1107
1158
|
SewerageConnection: {
|
|
1108
|
-
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1109
|
-
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1110
|
-
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1111
|
-
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1112
|
-
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1113
|
-
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1159
|
+
id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio116 = storeData.applicationData) === null || _storeData$applicatio116 === void 0 ? void 0 : _storeData$applicatio116.id,
|
|
1160
|
+
applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio117 = storeData.applicationData) === null || _storeData$applicatio117 === void 0 ? void 0 : _storeData$applicatio117.applicationNo,
|
|
1161
|
+
applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio118 = storeData.applicationData) === null || _storeData$applicatio118 === void 0 ? void 0 : _storeData$applicatio118.applicationStatus,
|
|
1162
|
+
status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio119 = storeData.applicationData) === null || _storeData$applicatio119 === void 0 ? void 0 : _storeData$applicatio119.status,
|
|
1163
|
+
connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio120 = storeData.applicationData) === null || _storeData$applicatio120 === void 0 ? void 0 : _storeData$applicatio120.connectionNo,
|
|
1164
|
+
connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio121 = storeData.applicationData) === null || _storeData$applicatio121 === void 0 ? void 0 : _storeData$applicatio121.connectionHolders,
|
|
1114
1165
|
applicationType: "WATER_RECONNECTION",
|
|
1115
1166
|
dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
|
|
1116
1167
|
isdisconnection: true,
|
|
@@ -1119,25 +1170,25 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1119
1170
|
documents: data === null || data === void 0 ? void 0 : data.documents,
|
|
1120
1171
|
water: false,
|
|
1121
1172
|
sewerage: true,
|
|
1122
|
-
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1123
|
-
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1173
|
+
proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio122 = storeData.applicationData) === null || _storeData$applicatio122 === void 0 ? void 0 : _storeData$applicatio122.proposedWaterClosets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio123 = storeData.applicationData) === null || _storeData$applicatio123 === void 0 ? void 0 : _storeData$applicatio123.proposedWaterClosets),
|
|
1174
|
+
proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio124 = storeData.applicationData) === null || _storeData$applicatio124 === void 0 ? void 0 : _storeData$applicatio124.proposedToilets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio125 = storeData.applicationData) === null || _storeData$applicatio125 === void 0 ? void 0 : _storeData$applicatio125.proposedToilets),
|
|
1124
1175
|
service: "Sewerage",
|
|
1125
|
-
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1126
|
-
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1176
|
+
property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio126 = storeData.applicationData) === null || _storeData$applicatio126 === void 0 ? void 0 : _storeData$applicatio126.property,
|
|
1177
|
+
propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio127 = storeData.applicationData) === null || _storeData$applicatio127 === void 0 ? void 0 : _storeData$applicatio127.propertyId,
|
|
1127
1178
|
oldConnectionNo: null,
|
|
1128
1179
|
plumberInfo: ((_plumberInfo4 = plumberInfo) === null || _plumberInfo4 === void 0 ? void 0 : _plumberInfo4.length) > 0 ? plumberInfo : null,
|
|
1129
|
-
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1180
|
+
roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio128 = storeData.applicationData) === null || _storeData$applicatio128 === void 0 ? void 0 : _storeData$applicatio128.roadCuttingInfo,
|
|
1130
1181
|
roadCuttingArea: null,
|
|
1131
1182
|
roadType: null,
|
|
1132
|
-
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1133
|
-
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1134
|
-
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1135
|
-
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1136
|
-
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1183
|
+
connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio129 = storeData.applicationData) === null || _storeData$applicatio129 === void 0 ? void 0 : _storeData$applicatio129.connectionExecutionDate,
|
|
1184
|
+
noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio130 = storeData.applicationData) === null || _storeData$applicatio130 === void 0 ? void 0 : _storeData$applicatio130.noOfWaterClosets,
|
|
1185
|
+
noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio131 = storeData.applicationData) === null || _storeData$applicatio131 === void 0 ? void 0 : _storeData$applicatio131.noOfToilets,
|
|
1186
|
+
additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio132 = storeData.applicationData) === null || _storeData$applicatio132 === void 0 ? void 0 : _storeData$applicatio132.additionalDetails,
|
|
1187
|
+
tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio133 = storeData.applicationData) === null || _storeData$applicatio133 === void 0 ? void 0 : _storeData$applicatio133.tenantId,
|
|
1137
1188
|
connectionType: "Non Metered",
|
|
1138
1189
|
waterSource: storeData.applicationData.waterSource || null,
|
|
1139
1190
|
processInstance: {
|
|
1140
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1191
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio134 = storeData.applicationData) === null || _storeData$applicatio134 === void 0 ? void 0 : _storeData$applicatio134.processInstance),
|
|
1141
1192
|
action: "INITIATE",
|
|
1142
1193
|
businessService: "SWReconnection"
|
|
1143
1194
|
},
|
|
@@ -1153,7 +1204,7 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1153
1204
|
};
|
|
1154
1205
|
const createPayloadOfWSReSubmitDisconnection = function (data, storeData, service) {
|
|
1155
1206
|
try {
|
|
1156
|
-
var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type7, _data$type7$value, _data$reason$value5, _storeData$
|
|
1207
|
+
var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type7, _data$type7$value, _data$reason$value5, _storeData$applicatio135, _data$type8, _data$type8$value, _data$reason$value6, _storeData$applicatio136, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
|
|
1157
1208
|
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;
|
|
1158
1209
|
let wsPayload = {
|
|
1159
1210
|
WaterConnection: {
|
|
@@ -1166,7 +1217,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1166
1217
|
sewerage: false,
|
|
1167
1218
|
service: "Water",
|
|
1168
1219
|
processInstance: {
|
|
1169
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1220
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio135 = storeData.applicationData) === null || _storeData$applicatio135 === void 0 ? void 0 : _storeData$applicatio135.processInstance),
|
|
1170
1221
|
action: "RESUBMIT_APPLICATION"
|
|
1171
1222
|
},
|
|
1172
1223
|
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
@@ -1189,7 +1240,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1189
1240
|
sewerage: true,
|
|
1190
1241
|
service: "Sewerage",
|
|
1191
1242
|
processInstance: {
|
|
1192
|
-
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$
|
|
1243
|
+
...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio136 = storeData.applicationData) === null || _storeData$applicatio136 === void 0 ? void 0 : _storeData$applicatio136.processInstance),
|
|
1193
1244
|
action: "RESUBMIT_APPLICATION"
|
|
1194
1245
|
},
|
|
1195
1246
|
channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
|
|
@@ -11635,6 +11686,16 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
11635
11686
|
path: `/digit-ui/employee/ws/new-disconnection/docsrequired`,
|
|
11636
11687
|
label: t("WS_NEW_DISCONNECTION_DOCS_REQUIRED"),
|
|
11637
11688
|
show: location.pathname.includes("/new-disconnection/docsrequired") ? true : false
|
|
11689
|
+
}, {
|
|
11690
|
+
path: `/digit-ui/employee/ws/new-disconnection/k-number`,
|
|
11691
|
+
label: `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / K Number Verification`,
|
|
11692
|
+
show: location.pathname.includes("/new-disconnection/k-number") ? true : false,
|
|
11693
|
+
isBack: true
|
|
11694
|
+
}, {
|
|
11695
|
+
path: `/digit-ui/employee/ws/new-disconnection/consumer-details`,
|
|
11696
|
+
label: `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / Consumer Details`,
|
|
11697
|
+
show: location.pathname.includes("/new-disconnection/consumer-details") ? true : false,
|
|
11698
|
+
isBack: true
|
|
11638
11699
|
}, {
|
|
11639
11700
|
path: `/digit-ui/employee/ws/new-disconnection/application-form`,
|
|
11640
11701
|
label: isMobile ? `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / ${t("WS_NEW_DISCONNECTION_APPLICATION")}` : `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / ${t("WS_NEW_DISCONNECTION_APPLICATION")}`,
|
|
@@ -11804,14 +11865,14 @@ const App$1 = _ref2 => {
|
|
|
11804
11865
|
const WSApplicationDetailsBillAmendment = (_Digit1 = Digit) === null || _Digit1 === void 0 ? void 0 : (_Digit1$ComponentRegi = _Digit1.ComponentRegistryService) === null || _Digit1$ComponentRegi === void 0 ? void 0 : _Digit1$ComponentRegi.getComponent("WSApplicationDetailsBillAmendment");
|
|
11805
11866
|
const WSSearch = (_Digit10 = Digit) === null || _Digit10 === void 0 ? void 0 : (_Digit10$ComponentReg = _Digit10.ComponentRegistryService) === null || _Digit10$ComponentReg === void 0 ? void 0 : _Digit10$ComponentReg.getComponent("WSSearch");
|
|
11806
11867
|
const WSSearchWater = (_Digit11 = Digit) === null || _Digit11 === void 0 ? void 0 : (_Digit11$ComponentReg = _Digit11.ComponentRegistryService) === null || _Digit11$ComponentReg === void 0 ? void 0 : _Digit11$ComponentReg.getComponent("WSSearchWater");
|
|
11807
|
-
const WSEditApplication = (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$ComponentReg = _Digit12.ComponentRegistryService) === null || _Digit12$ComponentReg === void 0 ? void 0 : _Digit12$ComponentReg.getComponent("
|
|
11868
|
+
const WSEditApplication = (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$ComponentReg = _Digit12.ComponentRegistryService) === null || _Digit12$ComponentReg === void 0 ? void 0 : _Digit12$ComponentReg.getComponent("WSCitizenEditApplication");
|
|
11808
11869
|
const WSConsumptionDetails = (_Digit13 = Digit) === null || _Digit13 === void 0 ? void 0 : (_Digit13$ComponentReg = _Digit13.ComponentRegistryService) === null || _Digit13$ComponentReg === void 0 ? void 0 : _Digit13$ComponentReg.getComponent("WSConsumptionDetails");
|
|
11809
11870
|
const WSModifyApplication = (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$ComponentReg = _Digit14.ComponentRegistryService) === null || _Digit14$ComponentReg === void 0 ? void 0 : _Digit14$ComponentReg.getComponent("WSModifyApplication");
|
|
11810
11871
|
const WSEditModifyApplication = (_Digit15 = Digit) === null || _Digit15 === void 0 ? void 0 : (_Digit15$ComponentReg = _Digit15.ComponentRegistryService) === null || _Digit15$ComponentReg === void 0 ? void 0 : _Digit15$ComponentReg.getComponent("WSEditModifyApplication");
|
|
11811
11872
|
const WSMutationApplication = (_Digit16 = Digit) === null || _Digit16 === void 0 ? void 0 : (_Digit16$ComponentReg = _Digit16.ComponentRegistryService) === null || _Digit16$ComponentReg === void 0 ? void 0 : _Digit16$ComponentReg.getComponent("WSMutationApplication");
|
|
11812
11873
|
const WSDisconnectionApplication = (_Digit17 = Digit) === null || _Digit17 === void 0 ? void 0 : (_Digit17$ComponentReg = _Digit17.ComponentRegistryService) === null || _Digit17$ComponentReg === void 0 ? void 0 : _Digit17$ComponentReg.getComponent("WSDisconnectionApplication");
|
|
11813
11874
|
const WSRestorationApplication = (_Digit18 = Digit) === null || _Digit18 === void 0 ? void 0 : (_Digit18$ComponentReg = _Digit18.ComponentRegistryService) === null || _Digit18$ComponentReg === void 0 ? void 0 : _Digit18$ComponentReg.getComponent("WSRestorationApplication");
|
|
11814
|
-
const WSEditApplicationByConfig = (_Digit19 = Digit) === null || _Digit19 === void 0 ? void 0 : (_Digit19$ComponentReg = _Digit19.ComponentRegistryService) === null || _Digit19$ComponentReg === void 0 ? void 0 : _Digit19$ComponentReg.getComponent("
|
|
11875
|
+
const WSEditApplicationByConfig = (_Digit19 = Digit) === null || _Digit19 === void 0 ? void 0 : (_Digit19$ComponentReg = _Digit19.ComponentRegistryService) === null || _Digit19$ComponentReg === void 0 ? void 0 : _Digit19$ComponentReg.getComponent("WSCitizenEditApplication");
|
|
11815
11876
|
const WSBillIAmendMentInbox = (_Digit20 = Digit) === null || _Digit20 === void 0 ? void 0 : (_Digit20$ComponentReg = _Digit20.ComponentRegistryService) === null || _Digit20$ComponentReg === void 0 ? void 0 : _Digit20$ComponentReg.getComponent("WSBillIAmendMentInbox");
|
|
11816
11877
|
const WSGetDisconnectionDetails = (_Digit21 = Digit) === null || _Digit21 === void 0 ? void 0 : (_Digit21$ComponentReg = _Digit21.ComponentRegistryService) === null || _Digit21$ComponentReg === void 0 ? void 0 : _Digit21$ComponentReg.getComponent("WSGetDisconnectionDetails");
|
|
11817
11878
|
const WSModifyApplicationDetails = (_Digit22 = Digit) === null || _Digit22 === void 0 ? void 0 : (_Digit22$ComponentReg = _Digit22.ComponentRegistryService) === null || _Digit22$ComponentReg === void 0 ? void 0 : _Digit22$ComponentReg.getComponent("WSModifyApplicationDetails");
|
|
@@ -11823,7 +11884,7 @@ const App$1 = _ref2 => {
|
|
|
11823
11884
|
const CPTCreateProperty = (_Digit28 = Digit) === null || _Digit28 === void 0 ? void 0 : (_Digit28$ComponentReg = _Digit28.ComponentRegistryService) === null || _Digit28$ComponentReg === void 0 ? void 0 : _Digit28$ComponentReg.getComponent("CPTCreateProperty");
|
|
11824
11885
|
const CPTAcknowledgement = (_Digit29 = Digit) === null || _Digit29 === void 0 ? void 0 : (_Digit29$ComponentReg = _Digit29.ComponentRegistryService) === null || _Digit29$ComponentReg === void 0 ? void 0 : _Digit29$ComponentReg.getComponent("CPTAcknowledgement");
|
|
11825
11886
|
const WSInfoPage = (_Digit30 = Digit) === null || _Digit30 === void 0 ? void 0 : (_Digit30$ComponentReg = _Digit30.ComponentRegistryService) === null || _Digit30$ComponentReg === void 0 ? void 0 : _Digit30$ComponentReg.getComponent("WSInfoPage");
|
|
11826
|
-
const locationCheck = window.location.href.includes("/employee/ws/new-application") || window.location.href.includes("/employee/ws/modify-application") || window.location.href.includes("/employee/ws/mutation-application") || window.location.href.includes("/employee/ws/edit-application") || window.location.href.includes("/employee/ws/activate-connection") || window.location.href.includes("/employee/ws/application-details") || window.location.href.includes("/employee/ws/modify-details") || window.location.href.includes("/employee/ws/ws-response") || window.location.href.includes("/employee/ws/new-disconnection/application-form") || window.location.href.includes("/employee/ws/ws-disconnection-response") || window.location.href.includes("/employee/ws/consumption-details") || window.location.href.includes("/employee/ws/edit-disconnection-application") || window.location.href.includes("/employee/ws/config-by-disconnection-application") || window.location.href.includes("/employee/ws/resubmit-disconnection-application") || window.location.href.includes("/employee/ws/water/bulk-bill");
|
|
11887
|
+
const locationCheck = window.location.href.includes("/employee/ws/new-application") || window.location.href.includes("/employee/ws/modify-application") || window.location.href.includes("/employee/ws/mutation-application") || window.location.href.includes("/employee/ws/edit-application") || window.location.href.includes("/employee/ws/activate-connection") || window.location.href.includes("/employee/ws/application-details") || window.location.href.includes("/employee/ws/modify-details") || window.location.href.includes("/employee/ws/ws-response") || window.location.href.includes("/employee/ws/new-disconnection/application-form") || window.location.href.includes("/employee/ws/new-disconnection/k-number") || window.location.href.includes("/employee/ws/new-disconnection/consumer-details") || window.location.href.includes("/employee/ws/ws-disconnection-response") || window.location.href.includes("/employee/ws/consumption-details") || window.location.href.includes("/employee/ws/edit-disconnection-application") || window.location.href.includes("/employee/ws/config-by-disconnection-application") || window.location.href.includes("/employee/ws/resubmit-disconnection-application") || window.location.href.includes("/employee/ws/water/bulk-bill");
|
|
11827
11888
|
const locationCheckReqDocs = window.location.href.includes("/employee/ws/create-application") || window.location.href.includes("/employee/ws/new-disconnection/docsrequired");
|
|
11828
11889
|
return /*#__PURE__*/React.createElement("div", {
|
|
11829
11890
|
className: "app-container"
|
|
@@ -12848,8 +12909,8 @@ const createConnectionDetails = () => ({
|
|
|
12848
12909
|
i18nKey: "Exhibition"
|
|
12849
12910
|
},
|
|
12850
12911
|
waterDemandType: {
|
|
12851
|
-
code: "
|
|
12852
|
-
i18nKey: "
|
|
12912
|
+
code: "NON_BULK",
|
|
12913
|
+
i18nKey: "WS_WATER_DEMAND_NON_BULK"
|
|
12853
12914
|
},
|
|
12854
12915
|
applicantType: {
|
|
12855
12916
|
code: "OWNER",
|
|
@@ -13024,7 +13085,7 @@ const WSConnectionDetails = _ref => {
|
|
|
13024
13085
|
}, commonProps))));
|
|
13025
13086
|
};
|
|
13026
13087
|
const ConnectionDetails = _props => {
|
|
13027
|
-
var _formData$DocumentsRe
|
|
13088
|
+
var _formData$DocumentsRe;
|
|
13028
13089
|
const {
|
|
13029
13090
|
connectionDetail,
|
|
13030
13091
|
focusIndex,
|
|
@@ -13076,8 +13137,8 @@ const ConnectionDetails = _props => {
|
|
|
13076
13137
|
i18nKey: "Exhibition"
|
|
13077
13138
|
},
|
|
13078
13139
|
waterDemandType: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterDemandType) || {
|
|
13079
|
-
code: "
|
|
13080
|
-
i18nKey: "
|
|
13140
|
+
code: "NON_BULK",
|
|
13141
|
+
i18nKey: "WS_WATER_DEMAND_NON_BULK"
|
|
13081
13142
|
},
|
|
13082
13143
|
applicantType: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.applicantType) || {
|
|
13083
13144
|
code: "OWNER",
|
|
@@ -13107,18 +13168,6 @@ const ConnectionDetails = _props => {
|
|
|
13107
13168
|
const [showDocModal, setShowDocModal] = useState(false);
|
|
13108
13169
|
const [docFileUrl, setDocFileUrl] = useState("");
|
|
13109
13170
|
const [docFileType, setDocFileType] = useState("");
|
|
13110
|
-
const handleSelectFile = e => {
|
|
13111
|
-
var _e$target$files;
|
|
13112
|
-
const selectedFile = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
|
|
13113
|
-
if (selectedFile) {
|
|
13114
|
-
if (selectedFile.size >= 5242880) {
|
|
13115
|
-
setFileUploadError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "Maximum file size exceeded (5MB)");
|
|
13116
|
-
} else {
|
|
13117
|
-
setFile(selectedFile);
|
|
13118
|
-
setFileUploadError(null);
|
|
13119
|
-
}
|
|
13120
|
-
}
|
|
13121
|
-
};
|
|
13122
13171
|
useEffect(() => {
|
|
13123
13172
|
(function () {
|
|
13124
13173
|
try {
|
|
@@ -13149,38 +13198,6 @@ const ConnectionDetails = _props => {
|
|
|
13149
13198
|
}
|
|
13150
13199
|
})();
|
|
13151
13200
|
}, [file]);
|
|
13152
|
-
const viewDocument = function () {
|
|
13153
|
-
try {
|
|
13154
|
-
const _temp4 = function () {
|
|
13155
|
-
if (uploadedFile) {
|
|
13156
|
-
const _temp3 = _catch(function () {
|
|
13157
|
-
return Promise.resolve(Digit.UploadServices.FileFetchbyid(uploadedFile, Digit.ULBService.getStateId())).then(function (res) {
|
|
13158
|
-
if (res !== null && res !== void 0 && res.data) {
|
|
13159
|
-
const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
|
|
13160
|
-
type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
|
|
13161
|
-
});
|
|
13162
|
-
const fileURL = URL.createObjectURL(blob);
|
|
13163
|
-
setDocFileUrl(fileURL);
|
|
13164
|
-
const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
|
|
13165
|
-
if (contentType.toLowerCase().includes("pdf")) {
|
|
13166
|
-
setDocFileType("pdf");
|
|
13167
|
-
} else {
|
|
13168
|
-
setDocFileType("image");
|
|
13169
|
-
}
|
|
13170
|
-
setShowDocModal(true);
|
|
13171
|
-
}
|
|
13172
|
-
});
|
|
13173
|
-
}, function (err) {
|
|
13174
|
-
console.error("Failed to fetch file URL via FileFetchbyid", err);
|
|
13175
|
-
});
|
|
13176
|
-
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
13177
|
-
}
|
|
13178
|
-
}();
|
|
13179
|
-
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
|
|
13180
|
-
} catch (e) {
|
|
13181
|
-
return Promise.reject(e);
|
|
13182
|
-
}
|
|
13183
|
-
};
|
|
13184
13201
|
useEffect(() => {
|
|
13185
13202
|
trigger();
|
|
13186
13203
|
}, []);
|
|
@@ -13255,7 +13272,9 @@ const ConnectionDetails = _props => {
|
|
|
13255
13272
|
defaultOpen: true
|
|
13256
13273
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13257
13274
|
className: "formcomposer-section-grid"
|
|
13258
|
-
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_SERVICE_TYPE")}
|
|
13275
|
+
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_SERVICE_TYPE")}`, /*#__PURE__*/React.createElement("span", {
|
|
13276
|
+
className: "check-page-link-button"
|
|
13277
|
+
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
13259
13278
|
control: control,
|
|
13260
13279
|
name: "serviceType",
|
|
13261
13280
|
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceType) || "",
|
|
@@ -13271,81 +13290,12 @@ const ConnectionDetails = _props => {
|
|
|
13271
13290
|
onChange: () => {},
|
|
13272
13291
|
style: {
|
|
13273
13292
|
backgroundColor: "#eee"
|
|
13274
|
-
}
|
|
13293
|
+
},
|
|
13294
|
+
placeholder: t("WS_SERVICE_TYPE_PLACEHOLDER")
|
|
13275
13295
|
})
|
|
13276
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.connectionType) || "",
|
|
13280
|
-
rules: {
|
|
13281
|
-
required: t("REQUIRED_FIELD")
|
|
13282
|
-
},
|
|
13283
|
-
isMandatory: true,
|
|
13284
|
-
render: props => {
|
|
13285
|
-
var _errors$connectionTyp;
|
|
13286
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
13287
|
-
className: "form-field",
|
|
13288
|
-
selected: getValues("connectionType"),
|
|
13289
|
-
disable: false,
|
|
13290
|
-
option: connectionTypeList,
|
|
13291
|
-
errorStyle: localFormState.touched.connectionType && errors !== null && errors !== void 0 && (_errors$connectionTyp = errors.connectionType) !== null && _errors$connectionTyp !== void 0 && _errors$connectionTyp.message ? true : false,
|
|
13292
|
-
select: e => {
|
|
13293
|
-
props.onChange(e);
|
|
13294
|
-
},
|
|
13295
|
-
optionKey: "i18nKey",
|
|
13296
|
-
onBlur: props.onBlur,
|
|
13297
|
-
t: t
|
|
13298
|
-
});
|
|
13299
|
-
}
|
|
13300
|
-
})), (formValue === null || formValue === void 0 ? void 0 : (_formValue$connection = formValue.connectionType) === null || _formValue$connection === void 0 ? void 0 : _formValue$connection.code) === "Temporary" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_TEMPORARY_TYPE")}*`), /*#__PURE__*/React.createElement(Controller, {
|
|
13301
|
-
control: control,
|
|
13302
|
-
name: "temporaryType",
|
|
13303
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.temporaryType) || "",
|
|
13304
|
-
rules: {
|
|
13305
|
-
required: t("REQUIRED_FIELD")
|
|
13306
|
-
},
|
|
13307
|
-
isMandatory: true,
|
|
13308
|
-
render: props => {
|
|
13309
|
-
var _errors$temporaryType;
|
|
13310
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
13311
|
-
className: "form-field",
|
|
13312
|
-
selected: getValues("temporaryType"),
|
|
13313
|
-
disable: false,
|
|
13314
|
-
option: temporaryTypeList,
|
|
13315
|
-
errorStyle: localFormState.touched.temporaryType && errors !== null && errors !== void 0 && (_errors$temporaryType = errors.temporaryType) !== null && _errors$temporaryType !== void 0 && _errors$temporaryType.message ? true : false,
|
|
13316
|
-
select: e => {
|
|
13317
|
-
props.onChange(e);
|
|
13318
|
-
},
|
|
13319
|
-
optionKey: "i18nKey",
|
|
13320
|
-
onBlur: props.onBlur,
|
|
13321
|
-
t: t
|
|
13322
|
-
});
|
|
13323
|
-
}
|
|
13324
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_WATER_DEMAND_TYPE")}*`), /*#__PURE__*/React.createElement(Controller, {
|
|
13325
|
-
control: control,
|
|
13326
|
-
name: "waterDemandType",
|
|
13327
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterDemandType) || "",
|
|
13328
|
-
rules: {
|
|
13329
|
-
required: t("REQUIRED_FIELD")
|
|
13330
|
-
},
|
|
13331
|
-
isMandatory: true,
|
|
13332
|
-
render: props => {
|
|
13333
|
-
var _errors$waterDemandTy;
|
|
13334
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
13335
|
-
className: "form-field",
|
|
13336
|
-
selected: getValues("waterDemandType"),
|
|
13337
|
-
disable: false,
|
|
13338
|
-
option: waterDemandTypeList,
|
|
13339
|
-
errorStyle: localFormState.touched.waterDemandType && errors !== null && errors !== void 0 && (_errors$waterDemandTy = errors.waterDemandType) !== null && _errors$waterDemandTy !== void 0 && _errors$waterDemandTy.message ? true : false,
|
|
13340
|
-
select: e => {
|
|
13341
|
-
props.onChange(e);
|
|
13342
|
-
},
|
|
13343
|
-
optionKey: "i18nKey",
|
|
13344
|
-
onBlur: props.onBlur,
|
|
13345
|
-
t: t
|
|
13346
|
-
});
|
|
13347
|
-
}
|
|
13348
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_APPLICANT_TYPE")}*`), /*#__PURE__*/React.createElement(Controller, {
|
|
13296
|
+
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_APPLICANT_TYPE")}`, /*#__PURE__*/React.createElement("span", {
|
|
13297
|
+
className: "check-page-link-button"
|
|
13298
|
+
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
13349
13299
|
control: control,
|
|
13350
13300
|
name: "applicantType",
|
|
13351
13301
|
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.applicantType) || "",
|
|
@@ -13366,187 +13316,11 @@ const ConnectionDetails = _props => {
|
|
|
13366
13316
|
},
|
|
13367
13317
|
optionKey: "i18nKey",
|
|
13368
13318
|
onBlur: props.onBlur,
|
|
13369
|
-
t: t
|
|
13370
|
-
|
|
13371
|
-
}
|
|
13372
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${(formValue === null || formValue === void 0 ? void 0 : (_formValue$categoryTy = formValue.categoryType) === null || _formValue$categoryTy === void 0 ? void 0 : _formValue$categoryTy.code) === "NON_DOMESTIC" || (formValue === null || formValue === void 0 ? void 0 : (_formValue$categoryTy2 = formValue.categoryType) === null || _formValue$categoryTy2 === void 0 ? void 0 : _formValue$categoryTy2.name) === "Non-Domestic" ? t("WS_NON_DOMESTIC_TYPE") : t("WS_DOMESTIC_TYPE")}*`), /*#__PURE__*/React.createElement("div", {
|
|
13373
|
-
className: "field"
|
|
13374
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13375
|
-
control: control,
|
|
13376
|
-
name: "domesticType",
|
|
13377
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.domesticType) || "",
|
|
13378
|
-
rules: {
|
|
13379
|
-
required: t("REQUIRED_FIELD")
|
|
13380
|
-
},
|
|
13381
|
-
isMandatory: true,
|
|
13382
|
-
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
13383
|
-
className: "form-field",
|
|
13384
|
-
style: {
|
|
13385
|
-
display: "flex",
|
|
13386
|
-
gap: "2rem",
|
|
13387
|
-
alignItems: "center"
|
|
13388
|
-
},
|
|
13389
|
-
options: [{
|
|
13390
|
-
i18nKey: "WS_DOMESTIC_TYPE_DOMESTIC",
|
|
13391
|
-
code: "INDIVIDUAL"
|
|
13392
|
-
}, {
|
|
13393
|
-
i18nKey: "WS_DOMESTIC_TYPE_NON_DOMESTIC",
|
|
13394
|
-
code: "ORGANIZATION"
|
|
13395
|
-
}],
|
|
13396
|
-
optionsKey: "i18nKey",
|
|
13397
|
-
selectedOption: getValues("domesticType"),
|
|
13398
|
-
onSelect: e => {
|
|
13399
|
-
props.onChange(e);
|
|
13400
|
-
},
|
|
13401
|
-
t: t,
|
|
13402
|
-
isDependent: true
|
|
13403
|
-
})
|
|
13404
|
-
}))), (formValue === null || formValue === void 0 ? void 0 : (_formValue$domesticTy = formValue.domesticType) === null || _formValue$domesticTy === void 0 ? void 0 : _formValue$domesticTy.code) === "ORGANIZATION" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_DEPARTMENT_TYPE")}*`), /*#__PURE__*/React.createElement("div", {
|
|
13405
|
-
className: "field"
|
|
13406
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13407
|
-
control: control,
|
|
13408
|
-
name: "departmentType",
|
|
13409
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.departmentType) || {
|
|
13410
|
-
i18nKey: "WS_DEPARTMENT_TYPE_GOVERNMENT",
|
|
13411
|
-
code: "GOVERNMENT"
|
|
13412
|
-
},
|
|
13413
|
-
rules: {
|
|
13414
|
-
required: t("REQUIRED_FIELD")
|
|
13415
|
-
},
|
|
13416
|
-
isMandatory: true,
|
|
13417
|
-
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
13418
|
-
className: "form-field",
|
|
13419
|
-
style: {
|
|
13420
|
-
display: "flex",
|
|
13421
|
-
gap: "2rem",
|
|
13422
|
-
alignItems: "center"
|
|
13423
|
-
},
|
|
13424
|
-
options: [{
|
|
13425
|
-
i18nKey: "WS_DEPARTMENT_TYPE_GOVERNMENT",
|
|
13426
|
-
code: "GOVERNMENT"
|
|
13427
|
-
}, {
|
|
13428
|
-
i18nKey: "WS_DEPARTMENT_TYPE_NON_GOVERNMENT",
|
|
13429
|
-
code: "NON_GOVERNMENT"
|
|
13430
|
-
}],
|
|
13431
|
-
optionsKey: "i18nKey",
|
|
13432
|
-
selectedOption: getValues("departmentType"),
|
|
13433
|
-
onSelect: e => {
|
|
13434
|
-
props.onChange(e);
|
|
13435
|
-
},
|
|
13436
|
-
t: t,
|
|
13437
|
-
isDependent: true
|
|
13438
|
-
})
|
|
13439
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
13440
|
-
style: {
|
|
13441
|
-
color: "#3257F2",
|
|
13442
|
-
fontWeight: "700",
|
|
13443
|
-
fontSize: "1.5rem",
|
|
13444
|
-
gridColumn: "span 2"
|
|
13445
|
-
}
|
|
13446
|
-
}, t("WS_DEPARTMENT_ORGANIZATION_DETAILS")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_ORGANIZATION_DEPARTMENT_NAME")}*`), /*#__PURE__*/React.createElement("div", {
|
|
13447
|
-
className: "field"
|
|
13448
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13449
|
-
control: control,
|
|
13450
|
-
name: "institutionName",
|
|
13451
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.institutionName) || "",
|
|
13452
|
-
rules: {
|
|
13453
|
-
required: t("REQUIRED_FIELD")
|
|
13454
|
-
},
|
|
13455
|
-
isMandatory: true,
|
|
13456
|
-
render: props => {
|
|
13457
|
-
var _errors$institutionNa;
|
|
13458
|
-
return /*#__PURE__*/React.createElement(TextInput, {
|
|
13459
|
-
value: props.value,
|
|
13460
|
-
placeholder: t("WS_ORGANIZATION_DEPARTMENT_NAME_PLACEHOLDER"),
|
|
13461
|
-
autoFocus: focusIndex.index === (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key) && focusIndex.type === "institutionName",
|
|
13462
|
-
errorStyle: localFormState.touched.institutionName && errors !== null && errors !== void 0 && (_errors$institutionNa = errors.institutionName) !== null && _errors$institutionNa !== void 0 && _errors$institutionNa.message ? true : false,
|
|
13463
|
-
onChange: e => {
|
|
13464
|
-
props.onChange(e.target.value);
|
|
13465
|
-
setFocusIndex({
|
|
13466
|
-
index: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key,
|
|
13467
|
-
type: "institutionName"
|
|
13468
|
-
});
|
|
13469
|
-
},
|
|
13470
|
-
onBlur: props.onBlur
|
|
13471
|
-
});
|
|
13472
|
-
}
|
|
13473
|
-
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NATURE_OF_WORK")}*`), /*#__PURE__*/React.createElement("div", {
|
|
13474
|
-
className: "field"
|
|
13475
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13476
|
-
control: control,
|
|
13477
|
-
name: "natureOfWork",
|
|
13478
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.natureOfWork) || "",
|
|
13479
|
-
rules: {
|
|
13480
|
-
required: t("REQUIRED_FIELD")
|
|
13481
|
-
},
|
|
13482
|
-
isMandatory: true,
|
|
13483
|
-
render: props => {
|
|
13484
|
-
var _errors$natureOfWork;
|
|
13485
|
-
return /*#__PURE__*/React.createElement(TextInput, {
|
|
13486
|
-
value: props.value,
|
|
13487
|
-
placeholder: t("WS_NATURE_OF_WORK_PLACEHOLDER"),
|
|
13488
|
-
autoFocus: focusIndex.index === (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key) && focusIndex.type === "natureOfWork",
|
|
13489
|
-
errorStyle: localFormState.touched.natureOfWork && errors !== null && errors !== void 0 && (_errors$natureOfWork = errors.natureOfWork) !== null && _errors$natureOfWork !== void 0 && _errors$natureOfWork.message ? true : false,
|
|
13490
|
-
onChange: e => {
|
|
13491
|
-
props.onChange(e.target.value);
|
|
13492
|
-
setFocusIndex({
|
|
13493
|
-
index: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key,
|
|
13494
|
-
type: "natureOfWork"
|
|
13495
|
-
});
|
|
13496
|
-
},
|
|
13497
|
-
onBlur: props.onBlur
|
|
13319
|
+
t: t,
|
|
13320
|
+
placeholder: t("WS_APPLICANT_TYPE_PLACEHOLDER")
|
|
13498
13321
|
});
|
|
13499
13322
|
}
|
|
13500
|
-
}))),
|
|
13501
|
-
className: "field",
|
|
13502
|
-
style: {
|
|
13503
|
-
display: "flex",
|
|
13504
|
-
gap: "10px",
|
|
13505
|
-
alignItems: "center"
|
|
13506
|
-
}
|
|
13507
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
13508
|
-
style: {
|
|
13509
|
-
flex: 1
|
|
13510
|
-
}
|
|
13511
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13512
|
-
control: control,
|
|
13513
|
-
name: "orgDeptDocument",
|
|
13514
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument) || "",
|
|
13515
|
-
rules: {
|
|
13516
|
-
required: t("REQUIRED_FIELD")
|
|
13517
|
-
},
|
|
13518
|
-
isMandatory: true,
|
|
13519
|
-
render: props => /*#__PURE__*/React.createElement(UploadFile, {
|
|
13520
|
-
id: "orgDeptDocument",
|
|
13521
|
-
onUpload: handleSelectFile,
|
|
13522
|
-
onDelete: () => {
|
|
13523
|
-
setUploadedFile(null);
|
|
13524
|
-
setFile(null);
|
|
13525
|
-
props.onChange(null);
|
|
13526
|
-
},
|
|
13527
|
-
message: uploadedFile ? `1 ${t("WS_ACTION_FILEUPLOADED")}` : t("WS_ACTION_NO_FILEUPLOADED"),
|
|
13528
|
-
accept: "image/*, .pdf",
|
|
13529
|
-
uploadedFiles: uploadedFile && !file ? [[(connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocumentName) || "Document", {
|
|
13530
|
-
fileStoreId: uploadedFile
|
|
13531
|
-
}]] : undefined,
|
|
13532
|
-
removeTargetedFile: () => {
|
|
13533
|
-
setUploadedFile(null);
|
|
13534
|
-
setFile(null);
|
|
13535
|
-
props.onChange(null);
|
|
13536
|
-
}
|
|
13537
|
-
})
|
|
13538
|
-
})), uploadedFile && /*#__PURE__*/React.createElement("div", {
|
|
13539
|
-
onClick: viewDocument,
|
|
13540
|
-
style: {
|
|
13541
|
-
cursor: "pointer"
|
|
13542
|
-
}
|
|
13543
|
-
}, /*#__PURE__*/React.createElement(ViewsIcon, null)))), fileUploadError && /*#__PURE__*/React.createElement("div", {
|
|
13544
|
-
style: {
|
|
13545
|
-
color: "red",
|
|
13546
|
-
fontSize: "12px",
|
|
13547
|
-
marginTop: "4px"
|
|
13548
|
-
}
|
|
13549
|
-
}, fileUploadError))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
13323
|
+
}))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
13550
13324
|
open: showDocModal,
|
|
13551
13325
|
headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
13552
13326
|
headerBarEnd: /*#__PURE__*/React.createElement("div", {
|
|
@@ -14256,7 +14030,7 @@ const WSConnectionHolderDetails = _ref => {
|
|
|
14256
14030
|
}, commonProps))));
|
|
14257
14031
|
};
|
|
14258
14032
|
const ConnectionDetails$1 = _props => {
|
|
14259
|
-
var _errors$name2, _errors$name3, _errors$middleName2, _errors$middleName3, _errors$lastName2, _errors$lastName3, _errors$gender2, _errors$gender3, _errors$
|
|
14033
|
+
var _errors$name2, _errors$name3, _errors$middleName2, _errors$middleName3, _errors$lastName2, _errors$lastName3, _errors$gender2, _errors$gender3, _errors$mobileNumber2, _errors$mobileNumber3, _errors$watsAppMobile2, _errors$watsAppMobile3, _errors$emailId2, _errors$emailId3;
|
|
14260
14034
|
const {
|
|
14261
14035
|
connectionHolderDetail,
|
|
14262
14036
|
focusIndex,
|
|
@@ -14437,7 +14211,9 @@ const ConnectionDetails$1 = _props => {
|
|
|
14437
14211
|
defaultOpen: true
|
|
14438
14212
|
}, !sameAsOwnerDetails ? /*#__PURE__*/React.createElement("div", {
|
|
14439
14213
|
className: "formcomposer-section-grid"
|
|
14440
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_OWN_DETAIL_NAME")}
|
|
14214
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_OWN_DETAIL_NAME")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
14215
|
+
className: "check-page-link-button"
|
|
14216
|
+
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
14441
14217
|
control: control,
|
|
14442
14218
|
name: "name",
|
|
14443
14219
|
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.name,
|
|
@@ -14463,7 +14239,8 @@ const ConnectionDetails$1 = _props => {
|
|
|
14463
14239
|
labelStyle: {
|
|
14464
14240
|
marginTop: "unset"
|
|
14465
14241
|
},
|
|
14466
|
-
onBlur: props.onBlur
|
|
14242
|
+
onBlur: props.onBlur,
|
|
14243
|
+
placeholder: t("WS_OWN_DETAIL_NAME")
|
|
14467
14244
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14468
14245
|
unmaskField: e => {
|
|
14469
14246
|
setName(e);
|
|
@@ -14510,7 +14287,8 @@ const ConnectionDetails$1 = _props => {
|
|
|
14510
14287
|
labelStyle: {
|
|
14511
14288
|
marginTop: "unset"
|
|
14512
14289
|
},
|
|
14513
|
-
onBlur: props.onBlur
|
|
14290
|
+
onBlur: props.onBlur,
|
|
14291
|
+
placeholder: t("WS_OWN_DETAIL_MIDDLE_NAME")
|
|
14514
14292
|
}));
|
|
14515
14293
|
}
|
|
14516
14294
|
})), localFormState.touched.middleName && (errors === null || errors === void 0 ? void 0 : (_errors$middleName2 = errors.middleName) === null || _errors$middleName2 === void 0 ? void 0 : _errors$middleName2.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
@@ -14536,12 +14314,15 @@ const ConnectionDetails$1 = _props => {
|
|
|
14536
14314
|
labelStyle: {
|
|
14537
14315
|
marginTop: "unset"
|
|
14538
14316
|
},
|
|
14539
|
-
onBlur: props.onBlur
|
|
14317
|
+
onBlur: props.onBlur,
|
|
14318
|
+
placeholder: t("WS_OWN_DETAIL_LAST_NAME")
|
|
14540
14319
|
}));
|
|
14541
14320
|
}
|
|
14542
14321
|
})), localFormState.touched.lastName && (errors === null || errors === void 0 ? void 0 : (_errors$lastName2 = errors.lastName) === null || _errors$lastName2 === void 0 ? void 0 : _errors$lastName2.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
14543
14322
|
style: errorStyle
|
|
14544
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$lastName3 = errors.lastName) === null || _errors$lastName3 === void 0 ? void 0 : _errors$lastName3.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")}
|
|
14323
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$lastName3 = errors.lastName) === null || _errors$lastName3 === void 0 ? void 0 : _errors$lastName3.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
14324
|
+
className: "check-page-link-button"
|
|
14325
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
14545
14326
|
className: "field"
|
|
14546
14327
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
14547
14328
|
control: control,
|
|
@@ -14565,7 +14346,8 @@ const ConnectionDetails$1 = _props => {
|
|
|
14565
14346
|
},
|
|
14566
14347
|
optionKey: "i18nKey",
|
|
14567
14348
|
onBlur: props.onBlur,
|
|
14568
|
-
t: t
|
|
14349
|
+
t: t,
|
|
14350
|
+
placeholder: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")
|
|
14569
14351
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14570
14352
|
unmaskField: e => {
|
|
14571
14353
|
const r = {
|
|
@@ -14596,116 +14378,9 @@ const ConnectionDetails$1 = _props => {
|
|
|
14596
14378
|
}
|
|
14597
14379
|
}))), localFormState.touched.gender && (errors === null || errors === void 0 ? void 0 : (_errors$gender2 = errors.gender) === null || _errors$gender2 === void 0 ? void 0 : _errors$gender2.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
14598
14380
|
style: errorStyle
|
|
14599
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$gender3 = errors.gender) === null || _errors$gender3 === void 0 ? void 0 : _errors$gender3.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("
|
|
14600
|
-
className: "
|
|
14601
|
-
}, /*#__PURE__*/React.createElement(
|
|
14602
|
-
control: control,
|
|
14603
|
-
name: "guardian",
|
|
14604
|
-
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.guardian,
|
|
14605
|
-
rules: {
|
|
14606
|
-
validate: e => e && getPattern("Name").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
|
|
14607
|
-
required: t("REQUIRED_FIELD")
|
|
14608
|
-
},
|
|
14609
|
-
isMandatory: true,
|
|
14610
|
-
render: props => {
|
|
14611
|
-
var _errors$guardian, _getValues2, _formData$ConnectionD11, _formData$ConnectionD12, _formData$cpt3, _formData$cpt3$detail, _formData$ConnectionD13, _formData$ConnectionD14, _formData$ConnectionD15, _formData$ConnectionD16;
|
|
14612
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
14613
|
-
value: getValues("guardian") || "",
|
|
14614
|
-
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "guardian",
|
|
14615
|
-
errorStyle: localFormState.touched.guardian && errors !== null && errors !== void 0 && (_errors$guardian = errors.guardian) !== null && _errors$guardian !== void 0 && _errors$guardian.message ? true : false,
|
|
14616
|
-
onChange: e => {
|
|
14617
|
-
setGuardian(e.target.value);
|
|
14618
|
-
props.onChange(e.target.value);
|
|
14619
|
-
setFocusIndex({
|
|
14620
|
-
index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
|
|
14621
|
-
type: "guardian"
|
|
14622
|
-
});
|
|
14623
|
-
},
|
|
14624
|
-
labelStyle: {
|
|
14625
|
-
marginTop: "unset"
|
|
14626
|
-
},
|
|
14627
|
-
onBlur: props.onBlur
|
|
14628
|
-
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14629
|
-
unmaskField: e => {
|
|
14630
|
-
setGuardian(e);
|
|
14631
|
-
props.onChange(e);
|
|
14632
|
-
},
|
|
14633
|
-
iseyevisible: (_getValues2 = getValues("guardian")) !== null && _getValues2 !== void 0 && _getValues2.includes("*") ? true : false,
|
|
14634
|
-
privacy: {
|
|
14635
|
-
uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
|
|
14636
|
-
fieldName: "fatherOrHusbandName",
|
|
14637
|
-
model: "WnSConnectionOwner",
|
|
14638
|
-
loadData: {
|
|
14639
|
-
serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD11 = formData.ConnectionDetails) !== null && _formData$ConnectionD11 !== void 0 && (_formData$ConnectionD12 = _formData$ConnectionD11[0]) !== null && _formData$ConnectionD12 !== void 0 && _formData$ConnectionD12.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
14640
|
-
requestBody: {},
|
|
14641
|
-
requestParam: {
|
|
14642
|
-
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : (_formData$cpt3$detail = _formData$cpt3.details) === null || _formData$cpt3$detail === void 0 ? void 0 : _formData$cpt3$detail.tenantId,
|
|
14643
|
-
applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD13 = formData.ConnectionDetails) === null || _formData$ConnectionD13 === void 0 ? void 0 : (_formData$ConnectionD14 = _formData$ConnectionD13[0]) === null || _formData$ConnectionD14 === void 0 ? void 0 : _formData$ConnectionD14.applicationNo
|
|
14644
|
-
},
|
|
14645
|
-
jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD15 = formData.ConnectionDetails) !== null && _formData$ConnectionD15 !== void 0 && (_formData$ConnectionD16 = _formData$ConnectionD15[0]) !== null && _formData$ConnectionD16 !== void 0 && _formData$ConnectionD16.water ? "WaterConnection[0].connectionHolders[0].fatherOrHusbandName" : "SewerageConnections[0].connectionHolders[0].fatherOrHusbandName",
|
|
14646
|
-
isArray: false
|
|
14647
|
-
}
|
|
14648
|
-
}
|
|
14649
|
-
})));
|
|
14650
|
-
}
|
|
14651
|
-
}))), localFormState.touched.guardian && (errors === null || errors === void 0 ? void 0 : (_errors$guardian2 = errors.guardian) === null || _errors$guardian2 === void 0 ? void 0 : _errors$guardian2.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
14652
|
-
style: errorStyle
|
|
14653
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$guardian3 = errors.guardian) === null || _errors$guardian3 === void 0 ? void 0 : _errors$guardian3.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_CONN_HOLDER_OWN_DETAIL_RELATION_LABEL")}*`), /*#__PURE__*/React.createElement("div", {
|
|
14654
|
-
className: "field"
|
|
14655
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
14656
|
-
control: control,
|
|
14657
|
-
name: "relationship",
|
|
14658
|
-
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.relationship,
|
|
14659
|
-
rules: {
|
|
14660
|
-
required: t("REQUIRED_FIELD")
|
|
14661
|
-
},
|
|
14662
|
-
isMandatory: true,
|
|
14663
|
-
render: props => {
|
|
14664
|
-
var _errors$relationship, _relationship$i18nKey, _formData$ConnectionD17, _formData$ConnectionD18, _formData$cpt4, _formData$cpt4$detail, _formData$ConnectionD19, _formData$ConnectionD20, _formData$ConnectionD21, _formData$ConnectionD22;
|
|
14665
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Dropdown, {
|
|
14666
|
-
className: "form-field",
|
|
14667
|
-
selected: getValues("relationship"),
|
|
14668
|
-
disable: false,
|
|
14669
|
-
option: GuardianOptions,
|
|
14670
|
-
errorStyle: localFormState.touched.relationship && errors !== null && errors !== void 0 && (_errors$relationship = errors.relationship) !== null && _errors$relationship !== void 0 && _errors$relationship.message ? true : false,
|
|
14671
|
-
select: e => {
|
|
14672
|
-
setRelationship(e);
|
|
14673
|
-
props.onChange(e);
|
|
14674
|
-
},
|
|
14675
|
-
optionKey: "i18nKey",
|
|
14676
|
-
onBlur: props.onBlur,
|
|
14677
|
-
t: t
|
|
14678
|
-
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14679
|
-
unmaskField: e => {
|
|
14680
|
-
const r = {
|
|
14681
|
-
code: e,
|
|
14682
|
-
i18nKey: `COMMON_MASTERS_OWNERTYPE_${e}`,
|
|
14683
|
-
name: e
|
|
14684
|
-
};
|
|
14685
|
-
setRelationship(r);
|
|
14686
|
-
props.onChange(r);
|
|
14687
|
-
},
|
|
14688
|
-
iseyevisible: relationship !== null && relationship !== void 0 && (_relationship$i18nKey = relationship.i18nKey) !== null && _relationship$i18nKey !== void 0 && _relationship$i18nKey.includes("*") ? true : false,
|
|
14689
|
-
privacy: {
|
|
14690
|
-
uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
|
|
14691
|
-
fieldName: "relationship",
|
|
14692
|
-
model: "WnSConnection",
|
|
14693
|
-
loadData: {
|
|
14694
|
-
serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD17 = formData.ConnectionDetails) !== null && _formData$ConnectionD17 !== void 0 && (_formData$ConnectionD18 = _formData$ConnectionD17[0]) !== null && _formData$ConnectionD18 !== void 0 && _formData$ConnectionD18.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
14695
|
-
requestBody: {},
|
|
14696
|
-
requestParam: {
|
|
14697
|
-
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt4 = formData.cpt) === null || _formData$cpt4 === void 0 ? void 0 : (_formData$cpt4$detail = _formData$cpt4.details) === null || _formData$cpt4$detail === void 0 ? void 0 : _formData$cpt4$detail.tenantId,
|
|
14698
|
-
applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD19 = formData.ConnectionDetails) === null || _formData$ConnectionD19 === void 0 ? void 0 : (_formData$ConnectionD20 = _formData$ConnectionD19[0]) === null || _formData$ConnectionD20 === void 0 ? void 0 : _formData$ConnectionD20.applicationNo
|
|
14699
|
-
},
|
|
14700
|
-
jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD21 = formData.ConnectionDetails) !== null && _formData$ConnectionD21 !== void 0 && (_formData$ConnectionD22 = _formData$ConnectionD21[0]) !== null && _formData$ConnectionD22 !== void 0 && _formData$ConnectionD22.water ? "WaterConnection[0].connectionHolders[0].relationship" : "SewerageConnections[0].connectionHolders[0].relationship",
|
|
14701
|
-
isArray: false
|
|
14702
|
-
}
|
|
14703
|
-
}
|
|
14704
|
-
})));
|
|
14705
|
-
}
|
|
14706
|
-
}))), localFormState.touched.relationship && (errors === null || errors === void 0 ? void 0 : (_errors$relationship2 = errors.relationship) === null || _errors$relationship2 === void 0 ? void 0 : _errors$relationship2.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
14707
|
-
style: errorStyle
|
|
14708
|
-
}, errors === null || errors === void 0 ? void 0 : (_errors$relationship3 = errors.relationship) === null || _errors$relationship3 === void 0 ? void 0 : _errors$relationship3.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("CORE_COMMON_MOBILE_NUMBER")}*`), /*#__PURE__*/React.createElement("div", {
|
|
14381
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$gender3 = errors.gender) === null || _errors$gender3 === void 0 ? void 0 : _errors$gender3.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("CORE_COMMON_MOBILE_NUMBER")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
14382
|
+
className: "check-page-link-button"
|
|
14383
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
14709
14384
|
className: "field"
|
|
14710
14385
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
14711
14386
|
control: control,
|
|
@@ -14717,7 +14392,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
14717
14392
|
},
|
|
14718
14393
|
isMandatory: true,
|
|
14719
14394
|
render: props => {
|
|
14720
|
-
var _errors$mobileNumber, _formData$
|
|
14395
|
+
var _errors$mobileNumber, _formData$ConnectionD11, _formData$ConnectionD12, _formData$cpt3, _formData$cpt3$detail, _formData$ConnectionD13, _formData$ConnectionD14, _formData$ConnectionD15, _formData$ConnectionD16;
|
|
14721
14396
|
const mobileValue = getValues("mobileNumber");
|
|
14722
14397
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
|
|
14723
14398
|
name: "mobileNumber",
|
|
@@ -14737,7 +14412,8 @@ const ConnectionDetails$1 = _props => {
|
|
|
14737
14412
|
}
|
|
14738
14413
|
},
|
|
14739
14414
|
onBlur: props.onBlur,
|
|
14740
|
-
hideSpan: false
|
|
14415
|
+
hideSpan: false,
|
|
14416
|
+
placeholder: t("CORE_COMMON_MOBILE_NUMBER")
|
|
14741
14417
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14742
14418
|
value: mobileValue,
|
|
14743
14419
|
unmaskField: e => {
|
|
@@ -14749,13 +14425,13 @@ const ConnectionDetails$1 = _props => {
|
|
|
14749
14425
|
fieldName: "connectionHoldersMobileNumber",
|
|
14750
14426
|
model: "WnSConnectionOwner",
|
|
14751
14427
|
loadData: {
|
|
14752
|
-
serviceName: formData !== null && formData !== void 0 && (_formData$
|
|
14428
|
+
serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD11 = formData.ConnectionDetails) !== null && _formData$ConnectionD11 !== void 0 && (_formData$ConnectionD12 = _formData$ConnectionD11[0]) !== null && _formData$ConnectionD12 !== void 0 && _formData$ConnectionD12.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
14753
14429
|
requestBody: {},
|
|
14754
14430
|
requestParam: {
|
|
14755
|
-
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
14756
|
-
applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
14431
|
+
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : (_formData$cpt3$detail = _formData$cpt3.details) === null || _formData$cpt3$detail === void 0 ? void 0 : _formData$cpt3$detail.tenantId,
|
|
14432
|
+
applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD13 = formData.ConnectionDetails) === null || _formData$ConnectionD13 === void 0 ? void 0 : (_formData$ConnectionD14 = _formData$ConnectionD13[0]) === null || _formData$ConnectionD14 === void 0 ? void 0 : _formData$ConnectionD14.applicationNo
|
|
14757
14433
|
},
|
|
14758
|
-
jsonPath: formData !== null && formData !== void 0 && (_formData$
|
|
14434
|
+
jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD15 = formData.ConnectionDetails) !== null && _formData$ConnectionD15 !== void 0 && (_formData$ConnectionD16 = _formData$ConnectionD15[0]) !== null && _formData$ConnectionD16 !== void 0 && _formData$ConnectionD16.water ? "WaterConnection[0].connectionHolders[0].mobileNumber" : "SewerageConnections[0].connectionHolders[0].mobileNumber",
|
|
14759
14435
|
isArray: false
|
|
14760
14436
|
}
|
|
14761
14437
|
}
|
|
@@ -14775,7 +14451,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
14775
14451
|
},
|
|
14776
14452
|
isMandatory: true,
|
|
14777
14453
|
render: props => {
|
|
14778
|
-
var _errors$watsAppMobile, _formData$
|
|
14454
|
+
var _errors$watsAppMobile, _formData$ConnectionD17, _formData$ConnectionD18, _formData$cpt4, _formData$cpt4$detail, _formData$ConnectionD19, _formData$ConnectionD20, _formData$ConnectionD21, _formData$ConnectionD22;
|
|
14779
14455
|
const watsAppmobileValue = getValues("watsAppMobileNumber");
|
|
14780
14456
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
|
|
14781
14457
|
name: "watsAppMobileNumber",
|
|
@@ -14792,6 +14468,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
14792
14468
|
},
|
|
14793
14469
|
onBlur: props.onBlur,
|
|
14794
14470
|
hideSpan: false,
|
|
14471
|
+
placeholder: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
|
|
14795
14472
|
disable: isWatsappSameAsMobile
|
|
14796
14473
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14797
14474
|
value: watsAppmobileValue,
|
|
@@ -14804,13 +14481,13 @@ const ConnectionDetails$1 = _props => {
|
|
|
14804
14481
|
fieldName: "connectionHoldersMobileNumber",
|
|
14805
14482
|
model: "WnSConnectionOwner",
|
|
14806
14483
|
loadData: {
|
|
14807
|
-
serviceName: formData !== null && formData !== void 0 && (_formData$
|
|
14484
|
+
serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD17 = formData.ConnectionDetails) !== null && _formData$ConnectionD17 !== void 0 && (_formData$ConnectionD18 = _formData$ConnectionD17[0]) !== null && _formData$ConnectionD18 !== void 0 && _formData$ConnectionD18.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
14808
14485
|
requestBody: {},
|
|
14809
14486
|
requestParam: {
|
|
14810
|
-
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
14811
|
-
applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
14487
|
+
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt4 = formData.cpt) === null || _formData$cpt4 === void 0 ? void 0 : (_formData$cpt4$detail = _formData$cpt4.details) === null || _formData$cpt4$detail === void 0 ? void 0 : _formData$cpt4$detail.tenantId,
|
|
14488
|
+
applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD19 = formData.ConnectionDetails) === null || _formData$ConnectionD19 === void 0 ? void 0 : (_formData$ConnectionD20 = _formData$ConnectionD19[0]) === null || _formData$ConnectionD20 === void 0 ? void 0 : _formData$ConnectionD20.applicationNo
|
|
14812
14489
|
},
|
|
14813
|
-
jsonPath: formData !== null && formData !== void 0 && (_formData$
|
|
14490
|
+
jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD21 = formData.ConnectionDetails) !== null && _formData$ConnectionD21 !== void 0 && (_formData$ConnectionD22 = _formData$ConnectionD21[0]) !== null && _formData$ConnectionD22 !== void 0 && _formData$ConnectionD22.water ? "WaterConnection[0].connectionHolders[0].mobileNumber" : "SewerageConnections[0].connectionHolders[0].mobileNumber",
|
|
14814
14491
|
isArray: false
|
|
14815
14492
|
}
|
|
14816
14493
|
}
|
|
@@ -14863,7 +14540,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
14863
14540
|
},
|
|
14864
14541
|
isMandatory: false,
|
|
14865
14542
|
render: props => {
|
|
14866
|
-
var _errors$emailId,
|
|
14543
|
+
var _errors$emailId, _getValues2, _formData$ConnectionD23, _formData$ConnectionD24, _formData$cpt5, _formData$cpt5$detail, _formData$ConnectionD25, _formData$ConnectionD26, _formData$ConnectionD27, _formData$ConnectionD28;
|
|
14867
14544
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
14868
14545
|
value: getValues("emailId") || "",
|
|
14869
14546
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "emailId",
|
|
@@ -14880,25 +14557,26 @@ const ConnectionDetails$1 = _props => {
|
|
|
14880
14557
|
labelStyle: {
|
|
14881
14558
|
marginTop: "unset"
|
|
14882
14559
|
},
|
|
14883
|
-
onBlur: props.onBlur
|
|
14560
|
+
onBlur: props.onBlur,
|
|
14561
|
+
placeholder: t("WS_EMAIL_ID")
|
|
14884
14562
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14885
14563
|
unmaskField: e => {
|
|
14886
14564
|
setEmailId(e);
|
|
14887
14565
|
props.onChange(e);
|
|
14888
14566
|
},
|
|
14889
|
-
iseyevisible: (
|
|
14567
|
+
iseyevisible: (_getValues2 = getValues("emailId")) !== null && _getValues2 !== void 0 && _getValues2.includes("*") ? true : false,
|
|
14890
14568
|
privacy: {
|
|
14891
14569
|
uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
|
|
14892
14570
|
fieldName: "emailId",
|
|
14893
14571
|
model: "WnSConnectionOwner",
|
|
14894
14572
|
loadData: {
|
|
14895
|
-
serviceName: formData !== null && formData !== void 0 && (_formData$
|
|
14573
|
+
serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD23 = formData.ConnectionDetails) !== null && _formData$ConnectionD23 !== void 0 && (_formData$ConnectionD24 = _formData$ConnectionD23[0]) !== null && _formData$ConnectionD24 !== void 0 && _formData$ConnectionD24.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
14896
14574
|
requestBody: {},
|
|
14897
14575
|
requestParam: {
|
|
14898
|
-
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
14899
|
-
applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
14576
|
+
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt5 = formData.cpt) === null || _formData$cpt5 === void 0 ? void 0 : (_formData$cpt5$detail = _formData$cpt5.details) === null || _formData$cpt5$detail === void 0 ? void 0 : _formData$cpt5$detail.tenantId,
|
|
14577
|
+
applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD25 = formData.ConnectionDetails) === null || _formData$ConnectionD25 === void 0 ? void 0 : (_formData$ConnectionD26 = _formData$ConnectionD25[0]) === null || _formData$ConnectionD26 === void 0 ? void 0 : _formData$ConnectionD26.applicationNo
|
|
14900
14578
|
},
|
|
14901
|
-
jsonPath: formData !== null && formData !== void 0 && (_formData$
|
|
14579
|
+
jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD27 = formData.ConnectionDetails) !== null && _formData$ConnectionD27 !== void 0 && (_formData$ConnectionD28 = _formData$ConnectionD27[0]) !== null && _formData$ConnectionD28 !== void 0 && _formData$ConnectionD28.water ? "WaterConnection[0].connectionHolders[0].emailId" : "SewerageConnections[0].connectionHolders[0].emailId",
|
|
14902
14580
|
isArray: false
|
|
14903
14581
|
}
|
|
14904
14582
|
}
|
|
@@ -18790,7 +18468,7 @@ const removeDuplicateOtherDocuments = function (documentList) {
|
|
|
18790
18468
|
});
|
|
18791
18469
|
};
|
|
18792
18470
|
const WSDocumentsEmployee = _ref => {
|
|
18793
|
-
var _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData3, _formData$ConnectionD, _formData$ConnectionD2, _formData$ConnectionD3;
|
|
18471
|
+
var _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData3, _wsDocs$wsDocsData3$f, _formData$ConnectionD, _formData$ConnectionD2, _formData$ConnectionD3;
|
|
18794
18472
|
let {
|
|
18795
18473
|
t,
|
|
18796
18474
|
config,
|
|
@@ -18845,9 +18523,9 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18845
18523
|
}
|
|
18846
18524
|
};
|
|
18847
18525
|
useEffect(() => {
|
|
18848
|
-
var _wsDocs$wsDocsData;
|
|
18526
|
+
var _wsDocs$wsDocsData, _wsDocs$wsDocsData$fi;
|
|
18849
18527
|
let count = 0;
|
|
18850
|
-
wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData === void 0 ? void 0 : _wsDocs$wsDocsData.map(doc => {
|
|
18528
|
+
wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData === void 0 ? void 0 : (_wsDocs$wsDocsData$fi = _wsDocs$wsDocsData.filter(doc => doc.code !== "OWNER.APPLICANTPHOTO")) === null || _wsDocs$wsDocsData$fi === void 0 ? void 0 : _wsDocs$wsDocsData$fi.map(doc => {
|
|
18851
18529
|
let isRequired = false;
|
|
18852
18530
|
documents.map(data => {
|
|
18853
18531
|
if (doc.required && data !== null && data !== void 0 && data.documentType.includes(doc.code)) isRequired = true;
|
|
@@ -18867,8 +18545,8 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18867
18545
|
var _applicationDetailsDa3;
|
|
18868
18546
|
const documentsData = (applicationDetailsData === null || applicationDetailsData === void 0 ? void 0 : (_applicationDetailsDa3 = applicationDetailsData.applicationData) === null || _applicationDetailsDa3 === void 0 ? void 0 : _applicationDetailsDa3.documents) || [];
|
|
18869
18547
|
documentsData === null || documentsData === void 0 ? void 0 : documentsData.map(documentData => {
|
|
18870
|
-
var _wsDocs$wsDocsData2;
|
|
18871
|
-
wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData2 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData2 === void 0 ? void 0 : _wsDocs$wsDocsData2.forEach(docData => {
|
|
18548
|
+
var _wsDocs$wsDocsData2, _wsDocs$wsDocsData2$f;
|
|
18549
|
+
wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData2 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData2 === void 0 ? void 0 : (_wsDocs$wsDocsData2$f = _wsDocs$wsDocsData2.filter(doc => doc.code !== "OWNER.APPLICANTPHOTO")) === null || _wsDocs$wsDocsData2$f === void 0 ? void 0 : _wsDocs$wsDocsData2$f.forEach(docData => {
|
|
18872
18550
|
var _docData$code, _docData$code2, _docData$code3, _docData$code4, _documentData$documen, _documentData$documen2, _documentData$documen3, _documentData$documen4;
|
|
18873
18551
|
const docType = docData !== null && docData !== void 0 && (_docData$code = docData.code) !== null && _docData$code !== void 0 && _docData$code.split(".")[1] ? (docData === null || docData === void 0 ? void 0 : (_docData$code2 = docData.code) === null || _docData$code2 === void 0 ? void 0 : _docData$code2.split(".")[0]) + "." + (docData === null || docData === void 0 ? void 0 : (_docData$code3 = docData.code) === null || _docData$code3 === void 0 ? void 0 : _docData$code3.split(".")[1]) : docData === null || docData === void 0 ? void 0 : (_docData$code4 = docData.code) === null || _docData$code4 === void 0 ? void 0 : _docData$code4.split(".")[0];
|
|
18874
18552
|
const dataDocType = documentData !== null && documentData !== void 0 && (_documentData$documen = documentData.documentType) !== null && _documentData$documen !== void 0 && _documentData$documen.split(".")[1] ? (documentData === null || documentData === void 0 ? void 0 : (_documentData$documen2 = documentData.documentType) === null || _documentData$documen2 === void 0 ? void 0 : _documentData$documen2.split(".")[0]) + "." + (documentData === null || documentData === void 0 ? void 0 : (_documentData$documen3 = documentData.documentType) === null || _documentData$documen3 === void 0 ? void 0 : _documentData$documen3.split(".")[1]) : documentData === null || documentData === void 0 ? void 0 : (_documentData$documen4 = documentData.documentType) === null || _documentData$documen4 === void 0 ? void 0 : _documentData$documen4.split(".")[0];
|
|
@@ -18886,7 +18564,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18886
18564
|
}
|
|
18887
18565
|
const innerContent = /*#__PURE__*/React.createElement("div", {
|
|
18888
18566
|
className: "formcomposer-section-grid ws-doc-upload"
|
|
18889
|
-
}, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData3 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData3 === void 0 ? void 0 : _wsDocs$wsDocsData3.map((document, index) => {
|
|
18567
|
+
}, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData3 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData3 === void 0 ? void 0 : (_wsDocs$wsDocsData3$f = _wsDocs$wsDocsData3.filter(doc => doc.code !== "OWNER.APPLICANTPHOTO")) === null || _wsDocs$wsDocsData3$f === void 0 ? void 0 : _wsDocs$wsDocsData3$f.map((document, index) => {
|
|
18890
18568
|
return /*#__PURE__*/React.createElement(SelectDocument, {
|
|
18891
18569
|
key: index,
|
|
18892
18570
|
document: document,
|
|
@@ -19043,11 +18721,6 @@ function SelectDocument(_ref2) {
|
|
|
19043
18721
|
const eligible = isDigiLockerEligible((selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "");
|
|
19044
18722
|
setDigilockerUpload(eligible);
|
|
19045
18723
|
}, [selectedDocument]);
|
|
19046
|
-
const handleCapture = capturedFile => {
|
|
19047
|
-
setFile(capturedFile);
|
|
19048
|
-
setIsCameraFile(true);
|
|
19049
|
-
setShowCamera(false);
|
|
19050
|
-
};
|
|
19051
18724
|
const handleSelectDocument = value => setSelectedDocument(value);
|
|
19052
18725
|
const removeUploadedDocument = fileStoreId => {
|
|
19053
18726
|
setDocuments(previousDocuments => previousDocuments.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== fileStoreId));
|
|
@@ -19152,9 +18825,9 @@ function SelectDocument(_ref2) {
|
|
|
19152
18825
|
useEffect(() => {
|
|
19153
18826
|
if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
|
|
19154
18827
|
setDocuments(prev => {
|
|
19155
|
-
const filteredDocumentsByDocumentType =
|
|
18828
|
+
const filteredDocumentsByDocumentType = prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
|
|
19156
18829
|
if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) {
|
|
19157
|
-
return filteredDocumentsByDocumentType;
|
|
18830
|
+
return isOther ? prev : filteredDocumentsByDocumentType;
|
|
19158
18831
|
}
|
|
19159
18832
|
const filteredDocumentsByFileStoreId = filteredDocumentsByDocumentType === null || filteredDocumentsByDocumentType === void 0 ? void 0 : filteredDocumentsByDocumentType.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== uploadedFile);
|
|
19160
18833
|
const data = [...filteredDocumentsByFileStoreId, {
|
|
@@ -19173,15 +18846,21 @@ function SelectDocument(_ref2) {
|
|
|
19173
18846
|
});
|
|
19174
18847
|
}
|
|
19175
18848
|
const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, doc === null || doc === void 0 ? void 0 : doc.required, !!uploadedFile);
|
|
18849
|
+
const hasOtherUploaded = isOther && (documents === null || documents === void 0 ? void 0 : documents.some(item => {
|
|
18850
|
+
var _item$documentType3;
|
|
18851
|
+
return item === null || item === void 0 ? void 0 : (_item$documentType3 = item.documentType) === null || _item$documentType3 === void 0 ? void 0 : _item$documentType3.includes(doc === null || doc === void 0 ? void 0 : doc.code);
|
|
18852
|
+
}));
|
|
19176
18853
|
if (!isHidden) {
|
|
19177
|
-
if (
|
|
18854
|
+
if (err) {
|
|
19178
18855
|
addError();
|
|
19179
|
-
} else if (
|
|
18856
|
+
} else if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) && doc !== null && doc !== void 0 && doc.required && !hasOtherUploaded) {
|
|
19180
18857
|
addError();
|
|
19181
18858
|
} else if (uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code && !err) {
|
|
19182
18859
|
removeError();
|
|
19183
18860
|
} else if (!(doc !== null && doc !== void 0 && doc.required) && !err) {
|
|
19184
18861
|
removeError();
|
|
18862
|
+
} else if (hasOtherUploaded) {
|
|
18863
|
+
removeError();
|
|
19185
18864
|
}
|
|
19186
18865
|
} else if (isHidden) {
|
|
19187
18866
|
removeError();
|
|
@@ -19272,7 +18951,9 @@ function SelectDocument(_ref2) {
|
|
|
19272
18951
|
style: {
|
|
19273
18952
|
margin: 0
|
|
19274
18953
|
}
|
|
19275
|
-
},
|
|
18954
|
+
}, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey), (doc === null || doc === void 0 ? void 0 : doc.required) && /*#__PURE__*/React.createElement("span", {
|
|
18955
|
+
className: "check-page-link-button"
|
|
18956
|
+
}, "*")), " ", /*#__PURE__*/React.createElement(Dropdown, {
|
|
19276
18957
|
id: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
|
|
19277
18958
|
key: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
|
|
19278
18959
|
className: "form-field",
|
|
@@ -19286,7 +18967,8 @@ function SelectDocument(_ref2) {
|
|
|
19286
18967
|
}),
|
|
19287
18968
|
select: handleSelectDocument,
|
|
19288
18969
|
optionKey: "i18nKey",
|
|
19289
|
-
t: t
|
|
18970
|
+
t: t,
|
|
18971
|
+
placeholder: t("PT_MUTATION_SELECT_DOC_LABEL")
|
|
19290
18972
|
})) : null, (doc === null || doc === void 0 ? void 0 : doc.code) !== "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React.createElement("div", {
|
|
19291
18973
|
style: {
|
|
19292
18974
|
display: "flex",
|
|
@@ -19381,30 +19063,14 @@ function SelectDocument(_ref2) {
|
|
|
19381
19063
|
style: {
|
|
19382
19064
|
margin: 0
|
|
19383
19065
|
}
|
|
19384
|
-
}, t(`${doc === null || doc === void 0 ? void 0 : (_doc$i18nKey2 = doc.i18nKey) === null || _doc$i18nKey2 === void 0 ? void 0 : _doc$i18nKey2.replaceAll(".", "_")}_UPLOAD_DOCUMENT`), doc
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
setUploadedFile(null);
|
|
19388
|
-
setFile(null);
|
|
19389
|
-
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
19390
|
-
setDocumentUid("");
|
|
19391
|
-
setDocNumberError(null);
|
|
19392
|
-
},
|
|
19393
|
-
style: {
|
|
19394
|
-
border: "1px solid #00497e",
|
|
19395
|
-
background: "#fff",
|
|
19396
|
-
color: "#00497e",
|
|
19397
|
-
borderRadius: "4px",
|
|
19398
|
-
padding: "4px 10px",
|
|
19399
|
-
cursor: "pointer",
|
|
19400
|
-
fontWeight: "bold"
|
|
19401
|
-
}
|
|
19402
|
-
}, "+ Add")), /*#__PURE__*/React.createElement("div", {
|
|
19066
|
+
}, t(`${doc === null || doc === void 0 ? void 0 : (_doc$i18nKey2 = doc.i18nKey) === null || _doc$i18nKey2 === void 0 ? void 0 : _doc$i18nKey2.replaceAll(".", "_")}_UPLOAD_DOCUMENT`), (doc === null || doc === void 0 ? void 0 : doc.required) && /*#__PURE__*/React.createElement("span", {
|
|
19067
|
+
className: "check-page-link-button"
|
|
19068
|
+
}, "*"))), /*#__PURE__*/React.createElement("div", {
|
|
19403
19069
|
className: "field",
|
|
19404
19070
|
style: {
|
|
19405
19071
|
display: "flex",
|
|
19406
|
-
gap: "
|
|
19407
|
-
alignItems: "
|
|
19072
|
+
gap: "10px",
|
|
19073
|
+
alignItems: "flex-start",
|
|
19408
19074
|
width: "100%"
|
|
19409
19075
|
}
|
|
19410
19076
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -19432,11 +19098,15 @@ function SelectDocument(_ref2) {
|
|
|
19432
19098
|
fileStoreId: uploadedFile
|
|
19433
19099
|
}]] : undefined,
|
|
19434
19100
|
removeTargetedFile: () => {
|
|
19435
|
-
|
|
19436
|
-
|
|
19437
|
-
|
|
19438
|
-
|
|
19439
|
-
|
|
19101
|
+
if (isOther && uploadedFile) {
|
|
19102
|
+
removeUploadedDocument(uploadedFile);
|
|
19103
|
+
} else {
|
|
19104
|
+
setUploadedFile(null);
|
|
19105
|
+
setFile(null);
|
|
19106
|
+
setIsCameraFile(false);
|
|
19107
|
+
setIsDocumentUidLocked(false);
|
|
19108
|
+
setDocumentUid("");
|
|
19109
|
+
}
|
|
19440
19110
|
},
|
|
19441
19111
|
documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
19442
19112
|
onDocumentNumber: num => {
|
|
@@ -19464,13 +19134,49 @@ function SelectDocument(_ref2) {
|
|
|
19464
19134
|
fileStoreId: uploadedFile
|
|
19465
19135
|
}]] : undefined,
|
|
19466
19136
|
removeTargetedFile: () => {
|
|
19137
|
+
if (isOther && uploadedFile) {
|
|
19138
|
+
removeUploadedDocument(uploadedFile);
|
|
19139
|
+
} else {
|
|
19140
|
+
setUploadedFile(null);
|
|
19141
|
+
setFile(null);
|
|
19142
|
+
setIsCameraFile(false);
|
|
19143
|
+
setIsDocumentUidLocked(false);
|
|
19144
|
+
setDocumentUid("");
|
|
19145
|
+
}
|
|
19146
|
+
}
|
|
19147
|
+
})), isOther && /*#__PURE__*/React.createElement("button", {
|
|
19148
|
+
type: "button",
|
|
19149
|
+
onClick: () => {
|
|
19150
|
+
if (!uploadedFile) {
|
|
19151
|
+
setError(t("WS_PLEASE_UPLOAD_FILE_FIRST") || "Please upload a file first.");
|
|
19152
|
+
return;
|
|
19153
|
+
}
|
|
19154
|
+
if (doc !== null && doc !== void 0 && doc.hasDropdown && !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) {
|
|
19155
|
+
setError(t("WS_PLEASE_SELECT_DOCUMENT_TYPE") || "Please select a document type.");
|
|
19156
|
+
return;
|
|
19157
|
+
}
|
|
19158
|
+
if (docNumberError) {
|
|
19159
|
+
setError(docNumberError);
|
|
19160
|
+
return;
|
|
19161
|
+
}
|
|
19467
19162
|
setUploadedFile(null);
|
|
19468
19163
|
setFile(null);
|
|
19469
|
-
|
|
19470
|
-
setIsDocumentUidLocked(false);
|
|
19164
|
+
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
19471
19165
|
setDocumentUid("");
|
|
19166
|
+
setDocNumberError(null);
|
|
19167
|
+
setIsDocumentUidLocked(false);
|
|
19168
|
+
},
|
|
19169
|
+
style: {
|
|
19170
|
+
border: "1px solid #00497e",
|
|
19171
|
+
background: "#fff",
|
|
19172
|
+
color: "#00497e",
|
|
19173
|
+
borderRadius: "4px",
|
|
19174
|
+
padding: "6px 12px",
|
|
19175
|
+
cursor: "pointer",
|
|
19176
|
+
fontWeight: "bold",
|
|
19177
|
+
marginTop: "2px"
|
|
19472
19178
|
}
|
|
19473
|
-
}))), (isOther ? otherUploadedDocuments : uploadedFile ? [{
|
|
19179
|
+
}, "+ ", t("NEW_DOCUMENT_TEXT") || "Add Document")), (isOther ? otherUploadedDocuments : uploadedFile ? [{
|
|
19474
19180
|
fileStoreId: uploadedFile,
|
|
19475
19181
|
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName),
|
|
19476
19182
|
documentNumber: documentUid
|
|
@@ -19487,7 +19193,7 @@ function SelectDocument(_ref2) {
|
|
|
19487
19193
|
style: {
|
|
19488
19194
|
fontWeight: "bold"
|
|
19489
19195
|
}
|
|
19490
|
-
}, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName ? t((uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName).replaceAll(
|
|
19196
|
+
}, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName ? t((uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName).replaceAll(".", "_")) : t("CS_COMMON_DOCUMENT"), uploadedDocument.fileName ? ` - ${uploadedDocument.fileName}` : ""), uploadedDocument.documentNumber && /*#__PURE__*/React.createElement("span", null, uploadedDocument.documentNumber), /*#__PURE__*/React.createElement("button", {
|
|
19491
19197
|
type: "button",
|
|
19492
19198
|
onClick: () => viewDocument(uploadedDocument.fileStoreId),
|
|
19493
19199
|
title: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
@@ -19510,64 +19216,7 @@ function SelectDocument(_ref2) {
|
|
|
19510
19216
|
padding: 0,
|
|
19511
19217
|
fontSize: "18px"
|
|
19512
19218
|
}
|
|
19513
|
-
}, /*#__PURE__*/React.createElement(RemoveIcon, null))))), /*#__PURE__*/React.createElement(
|
|
19514
|
-
style: {
|
|
19515
|
-
display: "flex",
|
|
19516
|
-
flexDirection: "column",
|
|
19517
|
-
gap: "8px",
|
|
19518
|
-
gridColumn: "span 1"
|
|
19519
|
-
}
|
|
19520
|
-
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
19521
|
-
style: {
|
|
19522
|
-
margin: 0
|
|
19523
|
-
}
|
|
19524
|
-
}, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? t("WS_CLICK_APPLICANT_PHOTO") || "Click Applicant Photo" : "\u00A0"), /*#__PURE__*/React.createElement("div", {
|
|
19525
|
-
style: {
|
|
19526
|
-
display: "flex",
|
|
19527
|
-
alignItems: "center",
|
|
19528
|
-
gap: "20px",
|
|
19529
|
-
height: "100%"
|
|
19530
|
-
}
|
|
19531
|
-
}, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React.createElement("div", {
|
|
19532
|
-
style: {
|
|
19533
|
-
display: "flex",
|
|
19534
|
-
alignItems: "center",
|
|
19535
|
-
gap: "10px"
|
|
19536
|
-
}
|
|
19537
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
19538
|
-
type: "button",
|
|
19539
|
-
style: {
|
|
19540
|
-
display: "flex",
|
|
19541
|
-
alignItems: "center",
|
|
19542
|
-
justifyContent: "center",
|
|
19543
|
-
gap: "8px",
|
|
19544
|
-
padding: "6px 16px",
|
|
19545
|
-
background: "#f0f0f0",
|
|
19546
|
-
border: "1px solid #ccc",
|
|
19547
|
-
borderRadius: "2px",
|
|
19548
|
-
cursor: isUploading ? "not-allowed" : "pointer",
|
|
19549
|
-
width: "fit-content",
|
|
19550
|
-
opacity: isUploading ? 0.5 : 1
|
|
19551
|
-
},
|
|
19552
|
-
onClick: () => !isUploading && setShowCamera(true),
|
|
19553
|
-
disabled: isUploading
|
|
19554
|
-
}, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDCF8"), " ", t("WS_CLICK_PHOTO") || "Click Photo"), isUploading && /*#__PURE__*/React.createElement("span", {
|
|
19555
|
-
style: {
|
|
19556
|
-
color: "#00497e",
|
|
19557
|
-
fontWeight: "bold",
|
|
19558
|
-
fontSize: "14px"
|
|
19559
|
-
}
|
|
19560
|
-
}, t("CS_COMMON_UPLOADING") || "Uploading..."), uploadedFile && !isUploading && /*#__PURE__*/React.createElement("span", {
|
|
19561
|
-
style: {
|
|
19562
|
-
color: "green",
|
|
19563
|
-
fontWeight: "bold",
|
|
19564
|
-
fontSize: "14px"
|
|
19565
|
-
}
|
|
19566
|
-
}, "\u2714 Uploaded")))), showCamera && /*#__PURE__*/React.createElement(CameraCaptureModal, {
|
|
19567
|
-
onCapture: handleCapture,
|
|
19568
|
-
onClose: () => setShowCamera(false),
|
|
19569
|
-
t: t
|
|
19570
|
-
}), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
19219
|
+
}, /*#__PURE__*/React.createElement(RemoveIcon, null))))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
19571
19220
|
open: showDocModal,
|
|
19572
19221
|
headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
19573
19222
|
headerBarEnd: /*#__PURE__*/React.createElement("div", {
|
|
@@ -19624,126 +19273,6 @@ function SelectDocument(_ref2) {
|
|
|
19624
19273
|
}
|
|
19625
19274
|
}))));
|
|
19626
19275
|
}
|
|
19627
|
-
const CameraCaptureModal = _ref3 => {
|
|
19628
|
-
let {
|
|
19629
|
-
onCapture,
|
|
19630
|
-
onClose,
|
|
19631
|
-
t
|
|
19632
|
-
} = _ref3;
|
|
19633
|
-
const videoRef = useRef(null);
|
|
19634
|
-
const canvasRef = useRef(null);
|
|
19635
|
-
const [stream, setStream] = useState(null);
|
|
19636
|
-
const [error, setError] = useState(null);
|
|
19637
|
-
useEffect(() => {
|
|
19638
|
-
const startCamera = function () {
|
|
19639
|
-
try {
|
|
19640
|
-
const _temp8 = _catch(function () {
|
|
19641
|
-
return Promise.resolve(navigator.mediaDevices.getUserMedia({
|
|
19642
|
-
video: true
|
|
19643
|
-
})).then(function (mediaStream) {
|
|
19644
|
-
if (videoRef.current) {
|
|
19645
|
-
videoRef.current.srcObject = mediaStream;
|
|
19646
|
-
}
|
|
19647
|
-
setStream(mediaStream);
|
|
19648
|
-
});
|
|
19649
|
-
}, function (err) {
|
|
19650
|
-
setError(t("WS_CAMERA_ACCESS_ERROR") || "Camera Access Error");
|
|
19651
|
-
console.error("Error accessing camera: ", err);
|
|
19652
|
-
});
|
|
19653
|
-
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
|
|
19654
|
-
} catch (e) {
|
|
19655
|
-
return Promise.reject(e);
|
|
19656
|
-
}
|
|
19657
|
-
};
|
|
19658
|
-
startCamera();
|
|
19659
|
-
return () => {
|
|
19660
|
-
if (stream) {
|
|
19661
|
-
stream.getTracks().forEach(track => track.stop());
|
|
19662
|
-
}
|
|
19663
|
-
};
|
|
19664
|
-
}, []);
|
|
19665
|
-
const capturePhoto = () => {
|
|
19666
|
-
if (videoRef.current && canvasRef.current) {
|
|
19667
|
-
const context = canvasRef.current.getContext("2d");
|
|
19668
|
-
canvasRef.current.width = videoRef.current.videoWidth;
|
|
19669
|
-
canvasRef.current.height = videoRef.current.videoHeight;
|
|
19670
|
-
context.translate(canvasRef.current.width, 0);
|
|
19671
|
-
context.scale(-1, 1);
|
|
19672
|
-
context.drawImage(videoRef.current, 0, 0, canvasRef.current.width, canvasRef.current.height);
|
|
19673
|
-
canvasRef.current.toBlob(blob => {
|
|
19674
|
-
const file = new File([blob], "applicant_photo.jpg", {
|
|
19675
|
-
type: "image/jpeg"
|
|
19676
|
-
});
|
|
19677
|
-
onCapture(file);
|
|
19678
|
-
}, "image/jpeg");
|
|
19679
|
-
}
|
|
19680
|
-
};
|
|
19681
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
19682
|
-
style: {
|
|
19683
|
-
position: "fixed",
|
|
19684
|
-
top: 0,
|
|
19685
|
-
left: 0,
|
|
19686
|
-
width: "100%",
|
|
19687
|
-
height: "100%",
|
|
19688
|
-
backgroundColor: "rgba(0,0,0,0.8)",
|
|
19689
|
-
zIndex: 9999,
|
|
19690
|
-
display: "flex",
|
|
19691
|
-
flexDirection: "column",
|
|
19692
|
-
alignItems: "center",
|
|
19693
|
-
justifyContent: "center"
|
|
19694
|
-
}
|
|
19695
|
-
}, error ? /*#__PURE__*/React.createElement("div", {
|
|
19696
|
-
style: {
|
|
19697
|
-
color: "white",
|
|
19698
|
-
marginBottom: "20px"
|
|
19699
|
-
}
|
|
19700
|
-
}, error) : /*#__PURE__*/React.createElement("video", {
|
|
19701
|
-
ref: videoRef,
|
|
19702
|
-
autoPlay: true,
|
|
19703
|
-
playsInline: true,
|
|
19704
|
-
style: {
|
|
19705
|
-
maxWidth: "100%",
|
|
19706
|
-
maxHeight: "80%",
|
|
19707
|
-
backgroundColor: "black",
|
|
19708
|
-
transform: "scaleX(-1)"
|
|
19709
|
-
}
|
|
19710
|
-
}), /*#__PURE__*/React.createElement("canvas", {
|
|
19711
|
-
ref: canvasRef,
|
|
19712
|
-
style: {
|
|
19713
|
-
display: "none"
|
|
19714
|
-
}
|
|
19715
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
19716
|
-
style: {
|
|
19717
|
-
marginTop: "20px",
|
|
19718
|
-
display: "flex",
|
|
19719
|
-
gap: "20px"
|
|
19720
|
-
}
|
|
19721
|
-
}, !error && /*#__PURE__*/React.createElement("button", {
|
|
19722
|
-
type: "button",
|
|
19723
|
-
onClick: capturePhoto,
|
|
19724
|
-
style: {
|
|
19725
|
-
padding: "10px 20px",
|
|
19726
|
-
background: "#00497e",
|
|
19727
|
-
color: "white",
|
|
19728
|
-
border: "none",
|
|
19729
|
-
borderRadius: "4px",
|
|
19730
|
-
cursor: "pointer",
|
|
19731
|
-
fontWeight: "bold"
|
|
19732
|
-
}
|
|
19733
|
-
}, t("WS_CAPTURE_PHOTO") || "Capture"), /*#__PURE__*/React.createElement("button", {
|
|
19734
|
-
type: "button",
|
|
19735
|
-
onClick: onClose,
|
|
19736
|
-
style: {
|
|
19737
|
-
padding: "10px 20px",
|
|
19738
|
-
background: "white",
|
|
19739
|
-
color: "#00497e",
|
|
19740
|
-
border: "1px solid #00497e",
|
|
19741
|
-
borderRadius: "4px",
|
|
19742
|
-
cursor: "pointer",
|
|
19743
|
-
fontWeight: "bold"
|
|
19744
|
-
}
|
|
19745
|
-
}, t("CS_COMMON_CANCEL") || "Cancel")));
|
|
19746
|
-
};
|
|
19747
19276
|
|
|
19748
19277
|
const createConnectionDetails$2 = () => ({
|
|
19749
19278
|
water: true,
|
|
@@ -20213,6 +19742,7 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
20213
19742
|
t
|
|
20214
19743
|
} = useTranslation();
|
|
20215
19744
|
const history = useHistory();
|
|
19745
|
+
const location = useLocation();
|
|
20216
19746
|
const match = useRouteMatch();
|
|
20217
19747
|
const tenantId = Digit.ULBService.getStateId();
|
|
20218
19748
|
const {
|
|
@@ -20280,7 +19810,8 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
20280
19810
|
})), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20281
19811
|
label: t(`CS_COMMON_NEXT`),
|
|
20282
19812
|
onSubmit: () => {
|
|
20283
|
-
history.push(match.path.replace("docsrequired", "application-form"));
|
|
19813
|
+
history.push(`${match.path.replace("docsrequired", "application-form")}${location.search}`);
|
|
19814
|
+
history.push(`${match.path.replace("docsrequired", "k-number")}${location.search}`);
|
|
20284
19815
|
}
|
|
20285
19816
|
})));
|
|
20286
19817
|
}
|
|
@@ -20329,7 +19860,8 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
20329
19860
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
20330
19861
|
label: t("ACTION_TEST_APPLY"),
|
|
20331
19862
|
onSubmit: () => {
|
|
20332
|
-
history.push(match.path.replace("docsrequired", "application-form"));
|
|
19863
|
+
history.push(`${match.path.replace("docsrequired", "application-form")}${location.search}`);
|
|
19864
|
+
history.push(`${match.path.replace("docsrequired", "k-number")}${location.search}`);
|
|
20333
19865
|
},
|
|
20334
19866
|
style: {
|
|
20335
19867
|
margin: "10px 10px 0px 0px"
|
|
@@ -20338,6 +19870,556 @@ const WSDisconnectionDocsRequired = _ref => {
|
|
|
20338
19870
|
}))));
|
|
20339
19871
|
};
|
|
20340
19872
|
|
|
19873
|
+
const WSDisconnectionKNumber = _ref => {
|
|
19874
|
+
const history = useHistory();
|
|
19875
|
+
const location = useLocation();
|
|
19876
|
+
const match = useRouteMatch();
|
|
19877
|
+
const stored = Digit.SessionStorage.get("WS_DISCONNECTION");
|
|
19878
|
+
const queryParams = new URLSearchParams(location.search);
|
|
19879
|
+
const isFromConnectionDetails = queryParams.get("from") === "connection-details";
|
|
19880
|
+
const connectionNumberFromQuery = queryParams.get("connectionNumber") || "";
|
|
19881
|
+
const [kNumber, setKNumber] = useState(() => {
|
|
19882
|
+
var _stored$applicationDa;
|
|
19883
|
+
return isFromConnectionDetails ? connectionNumberFromQuery || (stored === null || stored === void 0 ? void 0 : (_stored$applicationDa = stored.applicationData) === null || _stored$applicationDa === void 0 ? void 0 : _stored$applicationDa.connectionNo) || (stored === null || stored === void 0 ? void 0 : stored.connectionNo) || "" : "";
|
|
19884
|
+
});
|
|
19885
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
19886
|
+
const [showToast, setShowToast] = useState(null);
|
|
19887
|
+
const isMobileView = window.innerWidth < 768;
|
|
19888
|
+
const handleProceed = function () {
|
|
19889
|
+
try {
|
|
19890
|
+
var _stored$applicationDa2;
|
|
19891
|
+
const connectionNumber = kNumber || connectionNumberFromQuery || (stored === null || stored === void 0 ? void 0 : (_stored$applicationDa2 = stored.applicationData) === null || _stored$applicationDa2 === void 0 ? void 0 : _stored$applicationDa2.connectionNo) || (stored === null || stored === void 0 ? void 0 : stored.connectionNo) || "";
|
|
19892
|
+
const trimmed = connectionNumber.trim();
|
|
19893
|
+
if (!trimmed) {
|
|
19894
|
+
setShowToast({
|
|
19895
|
+
key: "warning",
|
|
19896
|
+
message: "Please enter K Number / Connection ID"
|
|
19897
|
+
});
|
|
19898
|
+
return Promise.resolve();
|
|
19899
|
+
}
|
|
19900
|
+
setIsLoading(true);
|
|
19901
|
+
return Promise.resolve(_catch(function () {
|
|
19902
|
+
const tenantId = Digit.ULBService.getCurrentTenantId() || "dl";
|
|
19903
|
+
const params = {
|
|
19904
|
+
connectionNumber: trimmed,
|
|
19905
|
+
searchType: "CONNECTION",
|
|
19906
|
+
isConnectionSearch: true
|
|
19907
|
+
};
|
|
19908
|
+
let detectedServiceType = "WATER";
|
|
19909
|
+
return Promise.resolve(Digit.WSService.search({
|
|
19910
|
+
tenantId,
|
|
19911
|
+
filters: params,
|
|
19912
|
+
businessService: "WS"
|
|
19913
|
+
}).catch(() => null)).then(function (wsResponse) {
|
|
19914
|
+
var _waterResponse$WaterC;
|
|
19915
|
+
function _temp2() {
|
|
19916
|
+
var _connection, _connection$connectio, _connection$connectio2, _connection2;
|
|
19917
|
+
if (!connection) {
|
|
19918
|
+
setIsLoading(false);
|
|
19919
|
+
setShowToast({
|
|
19920
|
+
key: "error",
|
|
19921
|
+
message: "Active connection not found for the given K Number"
|
|
19922
|
+
});
|
|
19923
|
+
return;
|
|
19924
|
+
}
|
|
19925
|
+
const fetchedMobileNumber = ((_connection = connection) === null || _connection === void 0 ? void 0 : (_connection$connectio = _connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : (_connection$connectio2 = _connection$connectio[0]) === null || _connection$connectio2 === void 0 ? void 0 : _connection$connectio2.mobileNumber) || ((_connection2 = connection) === null || _connection2 === void 0 ? void 0 : _connection2.mobileNumber);
|
|
19926
|
+
if (!fetchedMobileNumber || fetchedMobileNumber.length !== 10) {
|
|
19927
|
+
setIsLoading(false);
|
|
19928
|
+
setShowToast({
|
|
19929
|
+
key: "error",
|
|
19930
|
+
message: "No valid registered mobile number found for this connection"
|
|
19931
|
+
});
|
|
19932
|
+
return;
|
|
19933
|
+
}
|
|
19934
|
+
const userType = Digit.UserService.getType().toUpperCase();
|
|
19935
|
+
const payload = {
|
|
19936
|
+
otp: {
|
|
19937
|
+
mobileNumber: fetchedMobileNumber,
|
|
19938
|
+
tenantId: "dl",
|
|
19939
|
+
type: "register",
|
|
19940
|
+
userType: userType
|
|
19941
|
+
}
|
|
19942
|
+
};
|
|
19943
|
+
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
|
|
19944
|
+
var _connection3;
|
|
19945
|
+
const existingData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
19946
|
+
connection.serviceType = detectedServiceType;
|
|
19947
|
+
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
19948
|
+
...existingData,
|
|
19949
|
+
kNumber: trimmed,
|
|
19950
|
+
serviceType: detectedServiceType,
|
|
19951
|
+
applicationData: connection,
|
|
19952
|
+
connectionNo: (_connection3 = connection) === null || _connection3 === void 0 ? void 0 : _connection3.connectionNo
|
|
19953
|
+
});
|
|
19954
|
+
setIsLoading(false);
|
|
19955
|
+
history.push(match.path.replace("k-number", "consumer-details"), {
|
|
19956
|
+
connection
|
|
19957
|
+
});
|
|
19958
|
+
});
|
|
19959
|
+
}
|
|
19960
|
+
const waterResponse = (wsResponse === null || wsResponse === void 0 ? void 0 : wsResponse.data) || wsResponse;
|
|
19961
|
+
let connection = waterResponse === null || waterResponse === void 0 ? void 0 : (_waterResponse$WaterC = waterResponse.WaterConnection) === null || _waterResponse$WaterC === void 0 ? void 0 : _waterResponse$WaterC.find(c => c.applicationStatus === "CONNECTION_ACTIVATED");
|
|
19962
|
+
const _temp = function () {
|
|
19963
|
+
if (!connection) {
|
|
19964
|
+
return Promise.resolve(Digit.WSService.search({
|
|
19965
|
+
tenantId,
|
|
19966
|
+
filters: params,
|
|
19967
|
+
businessService: "SW"
|
|
19968
|
+
}).catch(() => null)).then(function (swResponse) {
|
|
19969
|
+
var _sewerageResponse$Sew;
|
|
19970
|
+
const sewerageResponse = (swResponse === null || swResponse === void 0 ? void 0 : swResponse.data) || swResponse;
|
|
19971
|
+
connection = sewerageResponse === null || sewerageResponse === void 0 ? void 0 : (_sewerageResponse$Sew = sewerageResponse.SewerageConnections) === null || _sewerageResponse$Sew === void 0 ? void 0 : _sewerageResponse$Sew.find(c => c.applicationStatus === "CONNECTION_ACTIVATED");
|
|
19972
|
+
if (connection) detectedServiceType = "SEWERAGE";
|
|
19973
|
+
});
|
|
19974
|
+
}
|
|
19975
|
+
}();
|
|
19976
|
+
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
19977
|
+
});
|
|
19978
|
+
}, function (err) {
|
|
19979
|
+
var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
|
|
19980
|
+
setIsLoading(false);
|
|
19981
|
+
setShowToast({
|
|
19982
|
+
key: "error",
|
|
19983
|
+
message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || "Failed to search connection"
|
|
19984
|
+
});
|
|
19985
|
+
}));
|
|
19986
|
+
} catch (e) {
|
|
19987
|
+
return Promise.reject(e);
|
|
19988
|
+
}
|
|
19989
|
+
};
|
|
19990
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, {
|
|
19991
|
+
style: {
|
|
19992
|
+
marginBottom: "20px",
|
|
19993
|
+
padding: isMobileView ? "12px" : "24px"
|
|
19994
|
+
}
|
|
19995
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19996
|
+
style: {
|
|
19997
|
+
display: "flex",
|
|
19998
|
+
alignItems: "center",
|
|
19999
|
+
marginBottom: "8px",
|
|
20000
|
+
gap: "10px"
|
|
20001
|
+
}
|
|
20002
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20003
|
+
style: {
|
|
20004
|
+
width: "36px",
|
|
20005
|
+
height: "36px",
|
|
20006
|
+
borderRadius: "50%",
|
|
20007
|
+
backgroundColor: "#00497e",
|
|
20008
|
+
color: "#fff",
|
|
20009
|
+
display: "flex",
|
|
20010
|
+
alignItems: "center",
|
|
20011
|
+
justifyContent: "center",
|
|
20012
|
+
fontWeight: "bold",
|
|
20013
|
+
fontSize: "16px",
|
|
20014
|
+
flexShrink: 0
|
|
20015
|
+
}
|
|
20016
|
+
}, "1"), /*#__PURE__*/React.createElement("h2", {
|
|
20017
|
+
style: {
|
|
20018
|
+
fontSize: isMobileView ? "16px" : "20px",
|
|
20019
|
+
fontWeight: "700",
|
|
20020
|
+
margin: 0,
|
|
20021
|
+
color: "#0B0C0C"
|
|
20022
|
+
}
|
|
20023
|
+
}, "Connection Authentication")), /*#__PURE__*/React.createElement(CardText, {
|
|
20024
|
+
style: {
|
|
20025
|
+
fontSize: isMobileView ? "13px" : "14px",
|
|
20026
|
+
marginBottom: "20px",
|
|
20027
|
+
color: "#6C6C6C"
|
|
20028
|
+
}
|
|
20029
|
+
}, "Please enter your K Number to verify and proceed with the disconnection application."), /*#__PURE__*/React.createElement("div", {
|
|
20030
|
+
style: {
|
|
20031
|
+
padding: isMobileView ? "14px" : "20px",
|
|
20032
|
+
backgroundColor: "#f9f9f9",
|
|
20033
|
+
borderRadius: "8px",
|
|
20034
|
+
borderLeft: "4px solid #00497e",
|
|
20035
|
+
marginBottom: "8px"
|
|
20036
|
+
}
|
|
20037
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20038
|
+
style: {
|
|
20039
|
+
marginBottom: "16px"
|
|
20040
|
+
}
|
|
20041
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20042
|
+
style: {
|
|
20043
|
+
fontWeight: "600",
|
|
20044
|
+
marginBottom: "8px",
|
|
20045
|
+
fontSize: isMobileView ? "13px" : "14px",
|
|
20046
|
+
color: "#0B0C0C"
|
|
20047
|
+
}
|
|
20048
|
+
}, "K Number / Connection ID ", /*#__PURE__*/React.createElement("span", {
|
|
20049
|
+
style: {
|
|
20050
|
+
color: "#d4351c"
|
|
20051
|
+
}
|
|
20052
|
+
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
20053
|
+
value: kNumber,
|
|
20054
|
+
disabled: isFromConnectionDetails,
|
|
20055
|
+
onChange: e => setKNumber(e.target.value),
|
|
20056
|
+
placeholder: "Enter K Number (e.g. WS/105/2020/0001)",
|
|
20057
|
+
style: {
|
|
20058
|
+
width: "100%"
|
|
20059
|
+
}
|
|
20060
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
20061
|
+
style: {
|
|
20062
|
+
display: "flex",
|
|
20063
|
+
justifyContent: isMobileView ? "stretch" : "flex-end"
|
|
20064
|
+
}
|
|
20065
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
20066
|
+
onClick: handleProceed,
|
|
20067
|
+
disabled: isLoading,
|
|
20068
|
+
style: {
|
|
20069
|
+
padding: isMobileView ? "12px 16px" : "10px 28px",
|
|
20070
|
+
backgroundColor: isLoading ? "#6C6C6C" : "#00497e",
|
|
20071
|
+
color: "#fff",
|
|
20072
|
+
border: "none",
|
|
20073
|
+
borderRadius: "4px",
|
|
20074
|
+
cursor: isLoading ? "not-allowed" : "pointer",
|
|
20075
|
+
fontWeight: "bold",
|
|
20076
|
+
fontSize: isMobileView ? "14px" : "15px",
|
|
20077
|
+
width: isMobileView ? "100%" : "auto",
|
|
20078
|
+
transition: "background-color 0.2s"
|
|
20079
|
+
}
|
|
20080
|
+
}, isLoading ? "Searching..." : "Proceed \u2192")))), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
20081
|
+
error: showToast.key === "error",
|
|
20082
|
+
warning: showToast.key === "warning",
|
|
20083
|
+
label: showToast.message,
|
|
20084
|
+
onClose: () => setShowToast(null),
|
|
20085
|
+
isDleteBtn: true
|
|
20086
|
+
}));
|
|
20087
|
+
};
|
|
20088
|
+
|
|
20089
|
+
const WSDisconnectionConsumerDetails = _ref => {
|
|
20090
|
+
var _location$state, _connection$additiona, _connection$connectio, _connection$property, _propertyAddress$loca;
|
|
20091
|
+
const history = useHistory();
|
|
20092
|
+
const location = useLocation();
|
|
20093
|
+
const match = useRouteMatch();
|
|
20094
|
+
const [otp, setOtp] = useState("");
|
|
20095
|
+
const [showToast, setShowToast] = useState(null);
|
|
20096
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
20097
|
+
const applicationData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
20098
|
+
const connection = ((_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.connection) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationData) || {};
|
|
20099
|
+
const isMobileView = window.innerWidth < 768;
|
|
20100
|
+
const getMaskedName = name => {
|
|
20101
|
+
if (!name) return "NA";
|
|
20102
|
+
return name.split("").map((char, i) => i % 2 === 1 && char !== " " ? "*" : char).join("");
|
|
20103
|
+
};
|
|
20104
|
+
const getMaskedPhone = phone => {
|
|
20105
|
+
if (!phone || phone.length < 4) return "NA";
|
|
20106
|
+
return `******${phone.slice(-4)}`;
|
|
20107
|
+
};
|
|
20108
|
+
const connectionNo = (connection === null || connection === void 0 ? void 0 : connection.connectionNo) || "NA";
|
|
20109
|
+
const meterId = (connection === null || connection === void 0 ? void 0 : connection.meterId) || (connection === null || connection === void 0 ? void 0 : (_connection$additiona = connection.additionalDetails) === null || _connection$additiona === void 0 ? void 0 : _connection$additiona.meterId) || "NA";
|
|
20110
|
+
const connectionStatus = (connection === null || connection === void 0 ? void 0 : connection.applicationStatus) || "NA";
|
|
20111
|
+
const holder = (connection === null || connection === void 0 ? void 0 : (_connection$connectio = connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : _connection$connectio[0]) || {};
|
|
20112
|
+
const registeredName = getMaskedName(holder === null || holder === void 0 ? void 0 : holder.name);
|
|
20113
|
+
const mobileNumber = (holder === null || holder === void 0 ? void 0 : holder.mobileNumber) || (connection === null || connection === void 0 ? void 0 : connection.mobileNumber) || "";
|
|
20114
|
+
const registeredPhone = getMaskedPhone(mobileNumber);
|
|
20115
|
+
const propertyAddress = (connection === null || connection === void 0 ? void 0 : (_connection$property = connection.property) === null || _connection$property === void 0 ? void 0 : _connection$property.address) || (connection === null || connection === void 0 ? void 0 : connection.address) || {};
|
|
20116
|
+
const formattedAddress = [(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.houseNo) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.doorNo), propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.buildingName, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.street, propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca = propertyAddress.locality) === null || _propertyAddress$loca === void 0 ? void 0 : _propertyAddress$loca.name, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.pincode].filter(Boolean).join(", ") || "NA";
|
|
20117
|
+
const handleResendOtp = function () {
|
|
20118
|
+
try {
|
|
20119
|
+
const _temp = _catch(function () {
|
|
20120
|
+
const userType = Digit.UserService.getType().toUpperCase();
|
|
20121
|
+
const payload = {
|
|
20122
|
+
otp: {
|
|
20123
|
+
mobileNumber: mobileNumber,
|
|
20124
|
+
tenantId: "dl",
|
|
20125
|
+
type: "register",
|
|
20126
|
+
userType: userType
|
|
20127
|
+
}
|
|
20128
|
+
};
|
|
20129
|
+
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
|
|
20130
|
+
setShowToast({
|
|
20131
|
+
key: "warning",
|
|
20132
|
+
message: "OTP resent to registered mobile number"
|
|
20133
|
+
});
|
|
20134
|
+
});
|
|
20135
|
+
}, function (err) {
|
|
20136
|
+
var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
|
|
20137
|
+
setShowToast({
|
|
20138
|
+
key: "error",
|
|
20139
|
+
message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || "Failed to resend OTP"
|
|
20140
|
+
});
|
|
20141
|
+
});
|
|
20142
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
20143
|
+
} catch (e) {
|
|
20144
|
+
return Promise.reject(e);
|
|
20145
|
+
}
|
|
20146
|
+
};
|
|
20147
|
+
const handleVerify = function () {
|
|
20148
|
+
try {
|
|
20149
|
+
if (!otp || otp.length < 6) {
|
|
20150
|
+
setShowToast({
|
|
20151
|
+
key: "warning",
|
|
20152
|
+
message: "Please enter a valid 6-digit OTP"
|
|
20153
|
+
});
|
|
20154
|
+
return Promise.resolve();
|
|
20155
|
+
}
|
|
20156
|
+
setIsLoading(true);
|
|
20157
|
+
const _temp2 = _catch(function () {
|
|
20158
|
+
const userType = Digit.UserService.getType().toUpperCase();
|
|
20159
|
+
const payload = {
|
|
20160
|
+
otp: {
|
|
20161
|
+
otp: otp,
|
|
20162
|
+
mobileNumber: mobileNumber,
|
|
20163
|
+
tenantId: "dl",
|
|
20164
|
+
userType: userType
|
|
20165
|
+
}
|
|
20166
|
+
};
|
|
20167
|
+
return Promise.resolve(Digit.UserService.validateOtp(payload)).then(function () {
|
|
20168
|
+
var _connection$additiona2, _connection$additiona3;
|
|
20169
|
+
Digit.SessionStorage.set("WS_DISCONNECTION", {
|
|
20170
|
+
...applicationData,
|
|
20171
|
+
applicationData: connection,
|
|
20172
|
+
connectionNo: connection === null || connection === void 0 ? void 0 : connection.connectionNo,
|
|
20173
|
+
serviceType: (connection === null || connection === void 0 ? void 0 : (_connection$additiona2 = connection.additionalDetails) === null || _connection$additiona2 === void 0 ? void 0 : (_connection$additiona3 = _connection$additiona2.serviceType) === null || _connection$additiona3 === void 0 ? void 0 : _connection$additiona3.code) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType)
|
|
20174
|
+
});
|
|
20175
|
+
setIsLoading(false);
|
|
20176
|
+
history.push(match.path.replace("consumer-details", "application-form"), {
|
|
20177
|
+
connection
|
|
20178
|
+
});
|
|
20179
|
+
});
|
|
20180
|
+
}, function (err) {
|
|
20181
|
+
var _err$response2, _err$response2$data, _err$response2$data$E, _err$response2$data$E2;
|
|
20182
|
+
setIsLoading(false);
|
|
20183
|
+
setShowToast({
|
|
20184
|
+
key: "error",
|
|
20185
|
+
message: (err === null || err === void 0 ? void 0 : (_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : (_err$response2$data$E = _err$response2$data.Errors) === null || _err$response2$data$E === void 0 ? void 0 : (_err$response2$data$E2 = _err$response2$data$E[0]) === null || _err$response2$data$E2 === void 0 ? void 0 : _err$response2$data$E2.message) || err.message || "Failed to verify OTP"
|
|
20186
|
+
});
|
|
20187
|
+
});
|
|
20188
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
20189
|
+
} catch (e) {
|
|
20190
|
+
return Promise.reject(e);
|
|
20191
|
+
}
|
|
20192
|
+
};
|
|
20193
|
+
const infoItem = {
|
|
20194
|
+
display: "flex",
|
|
20195
|
+
flexDirection: "column",
|
|
20196
|
+
minWidth: 0
|
|
20197
|
+
};
|
|
20198
|
+
const infoLabel = {
|
|
20199
|
+
color: "#6C6C6C",
|
|
20200
|
+
fontSize: isMobileView ? "11px" : "13px",
|
|
20201
|
+
marginBottom: "4px"
|
|
20202
|
+
};
|
|
20203
|
+
const infoValue = {
|
|
20204
|
+
fontWeight: "bold",
|
|
20205
|
+
wordBreak: "break-word",
|
|
20206
|
+
fontSize: isMobileView ? "13px" : "14px",
|
|
20207
|
+
color: "#0B0C0C"
|
|
20208
|
+
};
|
|
20209
|
+
const statusColor = (connectionStatus === null || connectionStatus === void 0 ? void 0 : connectionStatus.toLowerCase()) === "connection_activated" ? "#28a745" : "#dc3545";
|
|
20210
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, {
|
|
20211
|
+
style: {
|
|
20212
|
+
marginBottom: "20px",
|
|
20213
|
+
padding: isMobileView ? "12px" : "24px"
|
|
20214
|
+
}
|
|
20215
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20216
|
+
style: {
|
|
20217
|
+
padding: isMobileView ? "10px 12px" : "12px 16px",
|
|
20218
|
+
backgroundColor: "#fff3cd",
|
|
20219
|
+
color: "#856404",
|
|
20220
|
+
borderRadius: "8px",
|
|
20221
|
+
border: "1px solid #ffeeba",
|
|
20222
|
+
marginBottom: "20px",
|
|
20223
|
+
display: "flex",
|
|
20224
|
+
alignItems: "flex-start",
|
|
20225
|
+
gap: "10px"
|
|
20226
|
+
}
|
|
20227
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
20228
|
+
style: {
|
|
20229
|
+
fontSize: "18px",
|
|
20230
|
+
flexShrink: 0
|
|
20231
|
+
}
|
|
20232
|
+
}, "\u2139\uFE0F"), /*#__PURE__*/React.createElement("span", {
|
|
20233
|
+
style: {
|
|
20234
|
+
fontWeight: "500",
|
|
20235
|
+
fontSize: isMobileView ? "12px" : "13px",
|
|
20236
|
+
lineHeight: "1.5"
|
|
20237
|
+
}
|
|
20238
|
+
}, "Please verify the connection details below. The OTP has been sent to the registered mobile number on this connection.")), /*#__PURE__*/React.createElement("div", {
|
|
20239
|
+
style: {
|
|
20240
|
+
display: "flex",
|
|
20241
|
+
alignItems: "center",
|
|
20242
|
+
marginBottom: "20px",
|
|
20243
|
+
gap: "10px"
|
|
20244
|
+
}
|
|
20245
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20246
|
+
style: {
|
|
20247
|
+
width: "36px",
|
|
20248
|
+
height: "36px",
|
|
20249
|
+
borderRadius: "50%",
|
|
20250
|
+
backgroundColor: "#00497e",
|
|
20251
|
+
color: "#fff",
|
|
20252
|
+
display: "flex",
|
|
20253
|
+
alignItems: "center",
|
|
20254
|
+
justifyContent: "center",
|
|
20255
|
+
fontWeight: "bold",
|
|
20256
|
+
fontSize: "16px",
|
|
20257
|
+
flexShrink: 0
|
|
20258
|
+
}
|
|
20259
|
+
}, "2"), /*#__PURE__*/React.createElement("h2", {
|
|
20260
|
+
style: {
|
|
20261
|
+
fontSize: isMobileView ? "16px" : "20px",
|
|
20262
|
+
fontWeight: "700",
|
|
20263
|
+
margin: 0,
|
|
20264
|
+
color: "#0B0C0C"
|
|
20265
|
+
}
|
|
20266
|
+
}, "Connection Details")), /*#__PURE__*/React.createElement("div", {
|
|
20267
|
+
style: {
|
|
20268
|
+
padding: isMobileView ? "12px" : "20px",
|
|
20269
|
+
backgroundColor: "#f9f9f9",
|
|
20270
|
+
borderRadius: "8px",
|
|
20271
|
+
borderLeft: "4px solid #00497e",
|
|
20272
|
+
marginBottom: "24px"
|
|
20273
|
+
}
|
|
20274
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20275
|
+
style: {
|
|
20276
|
+
display: "grid",
|
|
20277
|
+
gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(180px, 1fr))",
|
|
20278
|
+
gap: isMobileView ? "14px" : "20px"
|
|
20279
|
+
}
|
|
20280
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20281
|
+
style: infoItem
|
|
20282
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20283
|
+
style: infoLabel
|
|
20284
|
+
}, "Connection Number"), /*#__PURE__*/React.createElement("div", {
|
|
20285
|
+
style: infoValue
|
|
20286
|
+
}, connectionNo)), /*#__PURE__*/React.createElement("div", {
|
|
20287
|
+
style: infoItem
|
|
20288
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20289
|
+
style: infoLabel
|
|
20290
|
+
}, "Current Owner Name"), /*#__PURE__*/React.createElement("div", {
|
|
20291
|
+
style: infoValue
|
|
20292
|
+
}, registeredName)), /*#__PURE__*/React.createElement("div", {
|
|
20293
|
+
style: {
|
|
20294
|
+
...infoItem,
|
|
20295
|
+
gridColumn: isMobileView ? "1 / -1" : undefined
|
|
20296
|
+
}
|
|
20297
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20298
|
+
style: infoLabel
|
|
20299
|
+
}, "Property Address"), /*#__PURE__*/React.createElement("div", {
|
|
20300
|
+
style: infoValue
|
|
20301
|
+
}, formattedAddress)), /*#__PURE__*/React.createElement("div", {
|
|
20302
|
+
style: infoItem
|
|
20303
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20304
|
+
style: infoLabel
|
|
20305
|
+
}, "Connection Status"), /*#__PURE__*/React.createElement("div", {
|
|
20306
|
+
style: {
|
|
20307
|
+
...infoValue,
|
|
20308
|
+
color: statusColor
|
|
20309
|
+
}
|
|
20310
|
+
}, connectionStatus === null || connectionStatus === void 0 ? void 0 : connectionStatus.replace(/_/g, " "))), /*#__PURE__*/React.createElement("div", {
|
|
20311
|
+
style: infoItem
|
|
20312
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20313
|
+
style: infoLabel
|
|
20314
|
+
}, "Meter Number"), /*#__PURE__*/React.createElement("div", {
|
|
20315
|
+
style: infoValue
|
|
20316
|
+
}, meterId)), /*#__PURE__*/React.createElement("div", {
|
|
20317
|
+
style: infoItem
|
|
20318
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20319
|
+
style: infoLabel
|
|
20320
|
+
}, "Registered Mobile"), /*#__PURE__*/React.createElement("div", {
|
|
20321
|
+
style: infoValue
|
|
20322
|
+
}, registeredPhone)))), /*#__PURE__*/React.createElement("div", {
|
|
20323
|
+
style: {
|
|
20324
|
+
borderTop: "1px solid #e0e0e0",
|
|
20325
|
+
paddingTop: "20px"
|
|
20326
|
+
}
|
|
20327
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20328
|
+
style: {
|
|
20329
|
+
display: "flex",
|
|
20330
|
+
alignItems: "center",
|
|
20331
|
+
gap: "10px",
|
|
20332
|
+
marginBottom: "16px"
|
|
20333
|
+
}
|
|
20334
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
20335
|
+
style: {
|
|
20336
|
+
width: "36px",
|
|
20337
|
+
height: "36px",
|
|
20338
|
+
borderRadius: "50%",
|
|
20339
|
+
backgroundColor: "#00497e",
|
|
20340
|
+
color: "#fff",
|
|
20341
|
+
display: "flex",
|
|
20342
|
+
alignItems: "center",
|
|
20343
|
+
justifyContent: "center",
|
|
20344
|
+
fontWeight: "bold",
|
|
20345
|
+
fontSize: "16px",
|
|
20346
|
+
flexShrink: 0
|
|
20347
|
+
}
|
|
20348
|
+
}, "3"), /*#__PURE__*/React.createElement("h3", {
|
|
20349
|
+
style: {
|
|
20350
|
+
fontSize: isMobileView ? "14px" : "16px",
|
|
20351
|
+
fontWeight: "700",
|
|
20352
|
+
margin: 0,
|
|
20353
|
+
color: "#0B0C0C"
|
|
20354
|
+
}
|
|
20355
|
+
}, "OTP Verification")), /*#__PURE__*/React.createElement("div", {
|
|
20356
|
+
style: {
|
|
20357
|
+
marginBottom: "16px"
|
|
20358
|
+
}
|
|
20359
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
20360
|
+
style: {
|
|
20361
|
+
display: "block",
|
|
20362
|
+
fontWeight: "500",
|
|
20363
|
+
fontSize: isMobileView ? "13px" : "14px",
|
|
20364
|
+
marginBottom: "8px",
|
|
20365
|
+
color: "#0B0C0C"
|
|
20366
|
+
}
|
|
20367
|
+
}, "Enter OTP sent to +91 ", getMaskedPhone(mobileNumber), " ", /*#__PURE__*/React.createElement("span", {
|
|
20368
|
+
style: {
|
|
20369
|
+
color: "#d4351c"
|
|
20370
|
+
}
|
|
20371
|
+
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
20372
|
+
value: otp,
|
|
20373
|
+
onChange: e => setOtp(e.target.value.replace(/\D/g, "").slice(0, 6)),
|
|
20374
|
+
placeholder: "Enter 6-digit OTP",
|
|
20375
|
+
maxLength: 6,
|
|
20376
|
+
style: {
|
|
20377
|
+
width: "100%"
|
|
20378
|
+
}
|
|
20379
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
20380
|
+
style: {
|
|
20381
|
+
fontSize: "12px",
|
|
20382
|
+
color: "#6C6C6C",
|
|
20383
|
+
marginTop: "6px"
|
|
20384
|
+
}
|
|
20385
|
+
}, "Didn't receive OTP?", " ", /*#__PURE__*/React.createElement("span", {
|
|
20386
|
+
style: {
|
|
20387
|
+
color: "#00497e",
|
|
20388
|
+
cursor: "pointer",
|
|
20389
|
+
fontWeight: "600",
|
|
20390
|
+
textDecoration: "underline"
|
|
20391
|
+
},
|
|
20392
|
+
onClick: handleResendOtp
|
|
20393
|
+
}, "Resend OTP"))), /*#__PURE__*/React.createElement("div", {
|
|
20394
|
+
style: {
|
|
20395
|
+
display: "flex",
|
|
20396
|
+
justifyContent: isMobileView ? "stretch" : "flex-end"
|
|
20397
|
+
}
|
|
20398
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
20399
|
+
onClick: handleVerify,
|
|
20400
|
+
disabled: isLoading || otp.length < 6,
|
|
20401
|
+
style: {
|
|
20402
|
+
padding: isMobileView ? "12px 16px" : "10px 28px",
|
|
20403
|
+
backgroundColor: isLoading || otp.length < 6 ? "#6c757d" : "#00497e",
|
|
20404
|
+
color: "#fff",
|
|
20405
|
+
border: "none",
|
|
20406
|
+
borderRadius: "4px",
|
|
20407
|
+
cursor: isLoading || otp.length < 6 ? "not-allowed" : "pointer",
|
|
20408
|
+
fontWeight: "bold",
|
|
20409
|
+
fontSize: isMobileView ? "14px" : "15px",
|
|
20410
|
+
width: isMobileView ? "100%" : "auto",
|
|
20411
|
+
transition: "background-color 0.2s",
|
|
20412
|
+
opacity: isLoading || otp.length < 6 ? 0.5 : 1
|
|
20413
|
+
}
|
|
20414
|
+
}, isLoading ? "Verifying..." : "Verify & Proceed \u2192")))), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
20415
|
+
error: showToast.key === "error",
|
|
20416
|
+
warning: showToast.key === "warning",
|
|
20417
|
+
label: showToast.message,
|
|
20418
|
+
onClose: () => setShowToast(null),
|
|
20419
|
+
isDleteBtn: true
|
|
20420
|
+
}));
|
|
20421
|
+
};
|
|
20422
|
+
|
|
20341
20423
|
let actions$1 = [];
|
|
20342
20424
|
const getAction$1 = flow => {
|
|
20343
20425
|
switch (flow) {
|
|
@@ -21865,7 +21947,7 @@ function cleanEscapedString(input) {
|
|
|
21865
21947
|
}
|
|
21866
21948
|
|
|
21867
21949
|
const WSDisconnectionForm = _ref => {
|
|
21868
|
-
var _applicationData$
|
|
21950
|
+
var _location$state, _applicationData$appl, _applicationData$appl2, _applicationData$appl3, _applicationData$appl4, _applicationData$appl5, _applicationData$WSDi, _applicationData$appl6, _disconnectionData$ty8, _disconnectionData$ty9, _disconnectionData$ty0, _disconnectionData$ty1, _disconnectionData$ty10, _disconnectionData$re6, _disconnectionData$re7, _disconnectionData$re8, _wsDocs$Disconnection, _disconnectionData$re9, _disconnectionData$re0, _disconnectionData$ty11, _disconnectionData$ty12, _disconnectionData$ty13, _disconnectionData$ty14;
|
|
21869
21951
|
let {
|
|
21870
21952
|
t,
|
|
21871
21953
|
config,
|
|
@@ -21875,7 +21957,13 @@ const WSDisconnectionForm = _ref => {
|
|
|
21875
21957
|
const stateCode = Digit.ULBService.getStateId();
|
|
21876
21958
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
21877
21959
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
21878
|
-
const
|
|
21960
|
+
const storedApplicationData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
|
|
21961
|
+
const location = useLocation();
|
|
21962
|
+
const applicationData = {
|
|
21963
|
+
...storedApplicationData,
|
|
21964
|
+
applicationData: ((_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.connection) || storedApplicationData.applicationData || {}
|
|
21965
|
+
};
|
|
21966
|
+
const serviceType = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicationData) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.serviceType) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl2 = applicationData.applicationData) === null || _applicationData$appl2 === void 0 ? void 0 : (_applicationData$appl3 = _applicationData$appl2.additionalDetails) === null || _applicationData$appl3 === void 0 ? void 0 : (_applicationData$appl4 = _applicationData$appl3.serviceType) === null || _applicationData$appl4 === void 0 ? void 0 : _applicationData$appl4.code) || (applicationData !== null && applicationData !== void 0 && (_applicationData$appl5 = applicationData.applicationData) !== null && _applicationData$appl5 !== void 0 && _applicationData$appl5.sewerage ? "SEWERAGE" : "WATER");
|
|
21879
21967
|
const history = useHistory();
|
|
21880
21968
|
const match = useRouteMatch();
|
|
21881
21969
|
const [disconnectionData, setDisconnectionData] = useState({
|
|
@@ -21976,14 +22064,6 @@ const WSDisconnectionForm = _ref => {
|
|
|
21976
22064
|
const handleSubmit = () => onSelect(config.key, {
|
|
21977
22065
|
WSDisConnectionForm: disconnectionData
|
|
21978
22066
|
});
|
|
21979
|
-
const handleEmployeeSubmit = () => {
|
|
21980
|
-
onSelect(config.key, {
|
|
21981
|
-
WSDisConnectionForm: {
|
|
21982
|
-
...disconnectionData,
|
|
21983
|
-
documents: documents
|
|
21984
|
-
}
|
|
21985
|
-
});
|
|
21986
|
-
};
|
|
21987
22067
|
const onSkip = () => onSelect();
|
|
21988
22068
|
const filedChange = val => {
|
|
21989
22069
|
const oldData = {
|
|
@@ -22030,8 +22110,7 @@ const WSDisconnectionForm = _ref => {
|
|
|
22030
22110
|
setError(null);
|
|
22031
22111
|
}, 3000);
|
|
22032
22112
|
} else {
|
|
22033
|
-
|
|
22034
|
-
return Promise.resolve(createPayloadOfWSDisconnection(data, applicationData, applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicationData) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.serviceType)).then(function (payload) {
|
|
22113
|
+
return Promise.resolve(createPayloadOfWSDisconnection(data, applicationData, serviceType)).then(function (payload) {
|
|
22035
22114
|
const _temp4 = function (_payload$WaterConnect) {
|
|
22036
22115
|
if (payload !== null && payload !== void 0 && (_payload$WaterConnect = payload.WaterConnection) !== null && _payload$WaterConnect !== void 0 && _payload$WaterConnect.water) {
|
|
22037
22116
|
const _temp = function () {
|
|
@@ -22310,29 +22389,111 @@ const WSDisconnectionForm = _ref => {
|
|
|
22310
22389
|
onClose: () => setError(null)
|
|
22311
22390
|
}))));
|
|
22312
22391
|
}
|
|
22313
|
-
|
|
22314
|
-
|
|
22315
|
-
|
|
22316
|
-
|
|
22317
|
-
|
|
22318
|
-
|
|
22392
|
+
const isMobileForm = window.Digit.Utils.browser.isMobile();
|
|
22393
|
+
const sectionStyle = {
|
|
22394
|
+
padding: isMobileForm ? "12px" : "20px",
|
|
22395
|
+
backgroundColor: "#f9f9f9",
|
|
22396
|
+
borderRadius: "8px",
|
|
22397
|
+
borderLeft: "4px solid #00497e",
|
|
22398
|
+
marginBottom: "24px",
|
|
22399
|
+
width: "100%"
|
|
22400
|
+
};
|
|
22401
|
+
const headerFlexStyle = {
|
|
22402
|
+
display: "flex",
|
|
22403
|
+
alignItems: "center",
|
|
22404
|
+
gap: "10px",
|
|
22405
|
+
marginBottom: "16px"
|
|
22406
|
+
};
|
|
22407
|
+
const numberBadgeStyle = {
|
|
22408
|
+
width: "32px",
|
|
22409
|
+
height: "32px",
|
|
22410
|
+
borderRadius: "50%",
|
|
22411
|
+
backgroundColor: "#00497e",
|
|
22412
|
+
color: "#fff",
|
|
22413
|
+
display: "flex",
|
|
22414
|
+
alignItems: "center",
|
|
22415
|
+
justifyContent: "center",
|
|
22416
|
+
fontWeight: "bold",
|
|
22417
|
+
fontSize: "14px",
|
|
22418
|
+
flexShrink: 0
|
|
22419
|
+
};
|
|
22420
|
+
const fieldStyle = {
|
|
22421
|
+
display: "flex",
|
|
22422
|
+
flexDirection: isMobileForm ? "column" : "row",
|
|
22423
|
+
alignItems: isMobileForm ? "flex-start" : "center",
|
|
22424
|
+
justifyContent: "space-between",
|
|
22425
|
+
gap: "10px",
|
|
22426
|
+
width: "100%",
|
|
22427
|
+
marginBottom: "16px"
|
|
22428
|
+
};
|
|
22429
|
+
const labelStyle = {
|
|
22430
|
+
fontWeight: "700",
|
|
22431
|
+
color: "#0B0C0C",
|
|
22432
|
+
fontSize: "16px",
|
|
22433
|
+
margin: 0,
|
|
22434
|
+
display: "flex",
|
|
22435
|
+
alignItems: "center",
|
|
22436
|
+
width: isMobileForm ? "100%" : "30%"
|
|
22437
|
+
};
|
|
22438
|
+
const inputWrapperStyle = {
|
|
22439
|
+
width: isMobileForm ? "100%" : "65%"
|
|
22440
|
+
};
|
|
22441
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22442
|
+
style: {
|
|
22443
|
+
width: "100%"
|
|
22444
|
+
}
|
|
22445
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
22446
|
+
style: {
|
|
22447
|
+
padding: isMobileForm ? "12px" : "24px"
|
|
22448
|
+
}
|
|
22449
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22450
|
+
style: sectionStyle
|
|
22451
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22452
|
+
style: headerFlexStyle
|
|
22453
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22454
|
+
style: numberBadgeStyle
|
|
22455
|
+
}, "1"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
22456
|
+
style: {
|
|
22457
|
+
margin: 0
|
|
22458
|
+
}
|
|
22459
|
+
}, t("CS_TITLE_APPLICATION_DETAILS"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
22319
22460
|
key: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
|
|
22320
|
-
label:
|
|
22321
|
-
text: applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$
|
|
22461
|
+
label: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
|
|
22462
|
+
text: applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl6 = applicationData.applicationData) === null || _applicationData$appl6 === void 0 ? void 0 : _applicationData$appl6.connectionNo,
|
|
22322
22463
|
className: "border-none"
|
|
22323
|
-
}))
|
|
22324
|
-
|
|
22464
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
22465
|
+
style: sectionStyle
|
|
22466
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22467
|
+
style: headerFlexStyle
|
|
22468
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22469
|
+
style: numberBadgeStyle
|
|
22470
|
+
}, "2"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
22325
22471
|
style: {
|
|
22326
|
-
|
|
22472
|
+
margin: 0
|
|
22473
|
+
}
|
|
22474
|
+
}, t("WS_DISCONNECTION_TYPE"), " *", /*#__PURE__*/React.createElement("div", {
|
|
22475
|
+
className: "tooltip",
|
|
22476
|
+
style: {
|
|
22477
|
+
marginLeft: "8px",
|
|
22478
|
+
position: "relative",
|
|
22479
|
+
top: "2px",
|
|
22480
|
+
display: "inline-block"
|
|
22327
22481
|
}
|
|
22328
22482
|
}, /*#__PURE__*/React.createElement(InfoIcon, null), /*#__PURE__*/React.createElement("span", {
|
|
22329
22483
|
className: "tooltiptext",
|
|
22330
22484
|
style: {
|
|
22331
|
-
whiteSpace:
|
|
22485
|
+
whiteSpace: isMobileForm ? "unset" : "nowrap",
|
|
22332
22486
|
fontSize: "medium",
|
|
22333
|
-
width:
|
|
22487
|
+
width: isMobileForm ? "250px" : "400px"
|
|
22334
22488
|
}
|
|
22335
|
-
},
|
|
22489
|
+
}, t("WS_DISCONNECTION_PERMANENT_TOOLTIP"), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), t("WS_DISCONNECTION_TEMPORARY_TOOLTIP"))))), /*#__PURE__*/React.createElement("div", {
|
|
22490
|
+
style: {
|
|
22491
|
+
display: "flex",
|
|
22492
|
+
flexWrap: "wrap",
|
|
22493
|
+
gap: "16px",
|
|
22494
|
+
paddingLeft: isMobileForm ? "0" : "42px"
|
|
22495
|
+
}
|
|
22496
|
+
}, /*#__PURE__*/React.createElement(RadioButtons, {
|
|
22336
22497
|
t: t,
|
|
22337
22498
|
options: disconnectionTypeList,
|
|
22338
22499
|
optionsKey: "i18nKey",
|
|
@@ -22346,78 +22507,99 @@ const WSDisconnectionForm = _ref => {
|
|
|
22346
22507
|
labelKey: "WS_DISCONNECTION_TYPE",
|
|
22347
22508
|
style: {
|
|
22348
22509
|
display: "flex",
|
|
22349
|
-
|
|
22510
|
+
flexWrap: "wrap",
|
|
22511
|
+
gap: "1rem",
|
|
22512
|
+
margin: 0
|
|
22350
22513
|
},
|
|
22351
|
-
inputStyle:
|
|
22514
|
+
inputStyle: isMobileForm ? {
|
|
22352
22515
|
marginLeft: "unset"
|
|
22353
22516
|
} : {}
|
|
22354
|
-
}), /*#__PURE__*/React.createElement(
|
|
22517
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
22518
|
+
style: sectionStyle
|
|
22519
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22520
|
+
style: headerFlexStyle
|
|
22521
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22522
|
+
style: numberBadgeStyle
|
|
22523
|
+
}, "3"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
22355
22524
|
style: {
|
|
22356
|
-
|
|
22357
|
-
|
|
22358
|
-
|
|
22359
|
-
},
|
|
22360
|
-
className: "card-label-smaller"
|
|
22361
|
-
}, t("WS_DISCONNECTION_PROPOSED_DATE") + "*", /*#__PURE__*/React.createElement("div", {
|
|
22362
|
-
className: `tooltip`,
|
|
22525
|
+
margin: 0
|
|
22526
|
+
}
|
|
22527
|
+
}, t("WS_DISCONNECTION_PROPOSED_DATE"))), /*#__PURE__*/React.createElement("div", {
|
|
22363
22528
|
style: {
|
|
22364
|
-
|
|
22365
|
-
|
|
22529
|
+
paddingLeft: isMobileForm ? "0" : "42px"
|
|
22530
|
+
}
|
|
22531
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22532
|
+
style: fieldStyle
|
|
22533
|
+
}, /*#__PURE__*/React.createElement("h4", {
|
|
22534
|
+
style: labelStyle
|
|
22535
|
+
}, t("WS_DISCONNECTION_PROPOSED_DATE"), " *", /*#__PURE__*/React.createElement("div", {
|
|
22536
|
+
className: "tooltip",
|
|
22537
|
+
style: {
|
|
22538
|
+
marginLeft: "8px",
|
|
22539
|
+
position: "relative",
|
|
22540
|
+
top: "2px"
|
|
22366
22541
|
}
|
|
22367
22542
|
}, /*#__PURE__*/React.createElement(InfoIcon, null), /*#__PURE__*/React.createElement("span", {
|
|
22368
22543
|
className: "tooltiptext",
|
|
22369
22544
|
style: {
|
|
22370
|
-
whiteSpace:
|
|
22371
|
-
fontSize: "medium"
|
|
22545
|
+
whiteSpace: isMobileForm ? "unset" : "nowrap",
|
|
22546
|
+
fontSize: "medium",
|
|
22547
|
+
width: isMobileForm ? "200px" : "300px"
|
|
22372
22548
|
}
|
|
22373
22549
|
}, t("SHOULD_BE_DATE") + " " + (slaData === null || slaData === void 0 ? void 0 : slaData.slaDays) + " " + t("DAYS_OF_APPLICATION_DATE")))), /*#__PURE__*/React.createElement("div", {
|
|
22374
|
-
|
|
22550
|
+
style: inputWrapperStyle
|
|
22375
22551
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
22376
22552
|
date: disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.date,
|
|
22377
|
-
onChange: date => {
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
|
|
22382
|
-
|
|
22383
|
-
}
|
|
22384
|
-
style:
|
|
22385
|
-
|
|
22386
|
-
|
|
22387
|
-
display: "inline"
|
|
22388
|
-
},
|
|
22389
|
-
className: "card-label-smaller"
|
|
22390
|
-
}, t("WS_DISCONNECTION_PROPOSED_END_DATE") + "*", /*#__PURE__*/React.createElement("div", {
|
|
22391
|
-
className: `tooltip`,
|
|
22553
|
+
onChange: date => setDisconnectionData({
|
|
22554
|
+
...disconnectionData,
|
|
22555
|
+
date: date
|
|
22556
|
+
})
|
|
22557
|
+
}))), ((_disconnectionData$ty1 = disconnectionData.type) === null || _disconnectionData$ty1 === void 0 ? void 0 : (_disconnectionData$ty10 = _disconnectionData$ty1.value) === null || _disconnectionData$ty10 === void 0 ? void 0 : _disconnectionData$ty10.code) === "Temporary" && /*#__PURE__*/React.createElement("div", {
|
|
22558
|
+
style: fieldStyle
|
|
22559
|
+
}, /*#__PURE__*/React.createElement("h4", {
|
|
22560
|
+
style: labelStyle
|
|
22561
|
+
}, t("WS_DISCONNECTION_PROPOSED_END_DATE"), " *", /*#__PURE__*/React.createElement("div", {
|
|
22562
|
+
className: "tooltip",
|
|
22392
22563
|
style: {
|
|
22393
|
-
|
|
22394
|
-
|
|
22564
|
+
marginLeft: "8px",
|
|
22565
|
+
position: "relative",
|
|
22566
|
+
top: "2px"
|
|
22395
22567
|
}
|
|
22396
22568
|
}, /*#__PURE__*/React.createElement(InfoIcon, null), /*#__PURE__*/React.createElement("span", {
|
|
22397
22569
|
className: "tooltiptext",
|
|
22398
22570
|
style: {
|
|
22399
|
-
whiteSpace:
|
|
22400
|
-
fontSize: "medium"
|
|
22571
|
+
whiteSpace: isMobileForm ? "unset" : "nowrap",
|
|
22572
|
+
fontSize: "medium",
|
|
22573
|
+
width: isMobileForm ? "200px" : "300px"
|
|
22401
22574
|
}
|
|
22402
|
-
}, t("SHOULD_BE_DATE") + " " +
|
|
22403
|
-
|
|
22575
|
+
}, t("SHOULD_BE_DATE") + " " + t("DAYS_OF_APPLICATION_END_DATE")))), /*#__PURE__*/React.createElement("div", {
|
|
22576
|
+
style: inputWrapperStyle
|
|
22404
22577
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
22405
22578
|
date: disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.endDate,
|
|
22406
|
-
onChange: date => {
|
|
22407
|
-
|
|
22408
|
-
|
|
22409
|
-
|
|
22410
|
-
|
|
22579
|
+
onChange: date => setDisconnectionData({
|
|
22580
|
+
...disconnectionData,
|
|
22581
|
+
endDate: date
|
|
22582
|
+
})
|
|
22583
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
22584
|
+
style: sectionStyle
|
|
22585
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22586
|
+
style: headerFlexStyle
|
|
22587
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22588
|
+
style: numberBadgeStyle
|
|
22589
|
+
}, "4"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
22590
|
+
style: {
|
|
22591
|
+
margin: 0
|
|
22411
22592
|
}
|
|
22412
|
-
}
|
|
22593
|
+
}, t("WS_DISCONNECTION_REASON"), " *")), /*#__PURE__*/React.createElement("div", {
|
|
22413
22594
|
style: {
|
|
22414
|
-
|
|
22415
|
-
|
|
22416
|
-
|
|
22417
|
-
|
|
22418
|
-
|
|
22419
|
-
|
|
22420
|
-
|
|
22595
|
+
paddingLeft: isMobileForm ? "0" : "42px"
|
|
22596
|
+
}
|
|
22597
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22598
|
+
style: fieldStyle
|
|
22599
|
+
}, /*#__PURE__*/React.createElement("h4", {
|
|
22600
|
+
style: labelStyle
|
|
22601
|
+
}, t("WS_DISCONNECTION_REASON"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
22602
|
+
style: inputWrapperStyle
|
|
22421
22603
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
22422
22604
|
option: disconnectionReasonList,
|
|
22423
22605
|
isMandatory: false,
|
|
@@ -22431,32 +22613,41 @@ const WSDisconnectionForm = _ref => {
|
|
|
22431
22613
|
value: e
|
|
22432
22614
|
}),
|
|
22433
22615
|
labelKey: "WS_DISCONNECTION_REASON"
|
|
22434
|
-
}))), /*#__PURE__*/React.createElement(
|
|
22616
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
22617
|
+
style: sectionStyle
|
|
22618
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22619
|
+
style: headerFlexStyle
|
|
22620
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22621
|
+
style: numberBadgeStyle
|
|
22622
|
+
}, "5"), /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
22435
22623
|
style: {
|
|
22436
|
-
|
|
22624
|
+
margin: 0
|
|
22437
22625
|
}
|
|
22438
|
-
}, t("WS_DISCONNECTION_DOCUMENTS")
|
|
22439
|
-
|
|
22440
|
-
|
|
22441
|
-
|
|
22442
|
-
|
|
22443
|
-
|
|
22444
|
-
|
|
22445
|
-
|
|
22446
|
-
|
|
22447
|
-
|
|
22448
|
-
|
|
22449
|
-
|
|
22450
|
-
|
|
22626
|
+
}, t("WS_DISCONNECTION_DOCUMENTS"), " *")), /*#__PURE__*/React.createElement("div", {
|
|
22627
|
+
style: {
|
|
22628
|
+
paddingLeft: isMobileForm ? "0" : "42px"
|
|
22629
|
+
}
|
|
22630
|
+
}, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((document, index) => /*#__PURE__*/React.createElement(SelectDocument$1, {
|
|
22631
|
+
key: index,
|
|
22632
|
+
document: document,
|
|
22633
|
+
t: t,
|
|
22634
|
+
error: docError,
|
|
22635
|
+
setError: setDocError,
|
|
22636
|
+
setDocuments: setDocuments,
|
|
22637
|
+
documents: documents,
|
|
22638
|
+
setCheckRequiredFields: setCheckRequiredFields,
|
|
22639
|
+
isMobileForm: isMobileForm
|
|
22640
|
+
})))), docError && /*#__PURE__*/React.createElement(Toast, {
|
|
22641
|
+
error: (docError === null || docError === void 0 ? void 0 : docError.key) === "error",
|
|
22451
22642
|
label: t(docError === null || docError === void 0 ? void 0 : docError.message),
|
|
22452
22643
|
warning: docError === null || docError === void 0 ? void 0 : docError.warning,
|
|
22453
22644
|
onClose: () => setDocError(null)
|
|
22454
22645
|
}), error && /*#__PURE__*/React.createElement(Toast, {
|
|
22455
|
-
error: (error === null || error === void 0 ? void 0 : error.key) === "error"
|
|
22646
|
+
error: (error === null || error === void 0 ? void 0 : error.key) === "error",
|
|
22456
22647
|
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
22457
22648
|
warning: error === null || error === void 0 ? void 0 : error.warning,
|
|
22458
22649
|
onClose: () => setError(null)
|
|
22459
|
-
})
|
|
22650
|
+
}), /*#__PURE__*/React.createElement(ActionBar, {
|
|
22460
22651
|
style: {
|
|
22461
22652
|
display: "flex",
|
|
22462
22653
|
justifyContent: "flex-end",
|
|
@@ -22465,10 +22656,11 @@ const WSDisconnectionForm = _ref => {
|
|
|
22465
22656
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
22466
22657
|
label: t("ACTION_TEST_SUBMIT"),
|
|
22467
22658
|
onSubmit: () => onSubmit(disconnectionData),
|
|
22659
|
+
disabled: wsDocsLoading || documents.length < 2 || !(disconnectionData !== null && disconnectionData !== void 0 && (_disconnectionData$re9 = disconnectionData.reason) !== null && _disconnectionData$re9 !== void 0 && (_disconnectionData$re0 = _disconnectionData$re9.value) !== null && _disconnectionData$re0 !== void 0 && _disconnectionData$re0.code) || !(disconnectionData !== null && disconnectionData !== void 0 && disconnectionData.date) || !(disconnectionData !== null && disconnectionData !== void 0 && (_disconnectionData$ty11 = disconnectionData.type) !== null && _disconnectionData$ty11 !== void 0 && (_disconnectionData$ty12 = _disconnectionData$ty11.value) !== null && _disconnectionData$ty12 !== void 0 && _disconnectionData$ty12.code) || (disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$ty13 = disconnectionData.type) === null || _disconnectionData$ty13 === void 0 ? void 0 : (_disconnectionData$ty14 = _disconnectionData$ty13.value) === null || _disconnectionData$ty14 === void 0 ? void 0 : _disconnectionData$ty14.code) === "Temporary" && !(disconnectionData !== null && disconnectionData !== void 0 && disconnectionData.endDate),
|
|
22468
22660
|
style: {
|
|
22469
22661
|
margin: "10px 10px 0px 0px"
|
|
22470
22662
|
}
|
|
22471
|
-
})));
|
|
22663
|
+
}))));
|
|
22472
22664
|
};
|
|
22473
22665
|
function SelectDocument$1(_ref2) {
|
|
22474
22666
|
var _doc$dropdownData;
|
|
@@ -22480,7 +22672,8 @@ function SelectDocument$1(_ref2) {
|
|
|
22480
22672
|
error,
|
|
22481
22673
|
setError,
|
|
22482
22674
|
documents,
|
|
22483
|
-
setCheckRequiredFields
|
|
22675
|
+
setCheckRequiredFields,
|
|
22676
|
+
isMobileForm
|
|
22484
22677
|
} = _ref2;
|
|
22485
22678
|
const filteredDocument = documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
22486
22679
|
var _item$documentType;
|
|
@@ -22559,19 +22752,41 @@ function SelectDocument$1(_ref2) {
|
|
|
22559
22752
|
}
|
|
22560
22753
|
})();
|
|
22561
22754
|
}, [file]);
|
|
22755
|
+
const fieldStyle = {
|
|
22756
|
+
display: "flex",
|
|
22757
|
+
flexDirection: isMobileForm ? "column" : "row",
|
|
22758
|
+
alignItems: isMobileForm ? "flex-start" : "flex-start",
|
|
22759
|
+
justifyContent: "space-between",
|
|
22760
|
+
gap: "10px",
|
|
22761
|
+
width: "100%",
|
|
22762
|
+
marginBottom: "16px"
|
|
22763
|
+
};
|
|
22764
|
+
const labelStyle = {
|
|
22765
|
+
fontWeight: "700",
|
|
22766
|
+
color: "#0B0C0C",
|
|
22767
|
+
fontSize: "16px",
|
|
22768
|
+
margin: 0,
|
|
22769
|
+
display: "flex",
|
|
22770
|
+
alignItems: "center",
|
|
22771
|
+
width: isMobileForm ? "100%" : "30%"
|
|
22772
|
+
};
|
|
22773
|
+
const inputWrapperStyle = {
|
|
22774
|
+
width: isMobileForm ? "100%" : "65%"
|
|
22775
|
+
};
|
|
22562
22776
|
return /*#__PURE__*/React.createElement("div", {
|
|
22563
22777
|
style: {
|
|
22564
22778
|
marginBottom: "24px"
|
|
22565
22779
|
}
|
|
22566
|
-
}, /*#__PURE__*/React.createElement(
|
|
22780
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22781
|
+
style: fieldStyle
|
|
22782
|
+
}, /*#__PURE__*/React.createElement("h4", {
|
|
22783
|
+
style: labelStyle
|
|
22784
|
+
}, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey), " *"), /*#__PURE__*/React.createElement("div", {
|
|
22785
|
+
style: inputWrapperStyle
|
|
22786
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22567
22787
|
style: {
|
|
22568
|
-
|
|
22569
|
-
|
|
22570
|
-
display: "inline"
|
|
22571
|
-
},
|
|
22572
|
-
className: "card-label-smaller"
|
|
22573
|
-
}, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey) + "*"), /*#__PURE__*/React.createElement("div", {
|
|
22574
|
-
className: "field"
|
|
22788
|
+
marginBottom: "8px"
|
|
22789
|
+
}
|
|
22575
22790
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
22576
22791
|
t: t,
|
|
22577
22792
|
isMandatory: false,
|
|
@@ -22579,7 +22794,7 @@ function SelectDocument$1(_ref2) {
|
|
|
22579
22794
|
selected: selectedDocument,
|
|
22580
22795
|
optionKey: "i18nKey",
|
|
22581
22796
|
select: handleSelectDocument
|
|
22582
|
-
}), /*#__PURE__*/React.createElement(UploadFile, {
|
|
22797
|
+
})), /*#__PURE__*/React.createElement(UploadFile, {
|
|
22583
22798
|
id: `noc-doc-1-${key}`,
|
|
22584
22799
|
extraStyleName: "propertyCreate",
|
|
22585
22800
|
accept: "image/*, .pdf, .png, .jpeg, .jpg",
|
|
@@ -24054,76 +24269,9 @@ const WSDeclaration = _ref => {
|
|
|
24054
24269
|
return () => clearTimeout(timer);
|
|
24055
24270
|
}
|
|
24056
24271
|
}, [formValue, signatureFileStoreId, signatureFile, config === null || config === void 0 ? void 0 : config.key, onSelect]);
|
|
24057
|
-
const onUploadSignature = function (e) {
|
|
24058
|
-
try {
|
|
24059
|
-
var _e$target$files;
|
|
24060
|
-
const file = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
|
|
24061
|
-
const _temp3 = function () {
|
|
24062
|
-
if (file) {
|
|
24063
|
-
const _temp2 = function () {
|
|
24064
|
-
if (file.size >= 5242880) {} else {
|
|
24065
|
-
const _temp = _catch(function () {
|
|
24066
|
-
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
24067
|
-
var _response$data, _response$data$files;
|
|
24068
|
-
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
24069
|
-
var _response$data2, _response$data2$files;
|
|
24070
|
-
const fsId = response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId;
|
|
24071
|
-
setSignatureFileStoreId(fsId);
|
|
24072
|
-
setSignatureFile(file);
|
|
24073
|
-
setValue("signatureFileStoreId", fsId);
|
|
24074
|
-
setValue("signatureFile", file);
|
|
24075
|
-
setValue("signatureFileName", file.name);
|
|
24076
|
-
}
|
|
24077
|
-
});
|
|
24078
|
-
}, function (err) {
|
|
24079
|
-
console.error("Signature upload failed", err);
|
|
24080
|
-
});
|
|
24081
|
-
if (_temp && _temp.then) return _temp.then(function () {});
|
|
24082
|
-
}
|
|
24083
|
-
}();
|
|
24084
|
-
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
24085
|
-
}
|
|
24086
|
-
}();
|
|
24087
|
-
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
24088
|
-
} catch (e) {
|
|
24089
|
-
return Promise.reject(e);
|
|
24090
|
-
}
|
|
24091
|
-
};
|
|
24092
24272
|
const [showDocModal, setShowDocModal] = useState(false);
|
|
24093
24273
|
const [docFileUrl, setDocFileUrl] = useState("");
|
|
24094
24274
|
const [docFileType, setDocFileType] = useState("");
|
|
24095
|
-
const viewDocument = function () {
|
|
24096
|
-
try {
|
|
24097
|
-
const _temp5 = function () {
|
|
24098
|
-
if (signatureFileStoreId) {
|
|
24099
|
-
const _temp4 = _catch(function () {
|
|
24100
|
-
return Promise.resolve(Digit.UploadServices.FileFetchbyid(signatureFileStoreId, Digit.ULBService.getStateId())).then(function (res) {
|
|
24101
|
-
if (res !== null && res !== void 0 && res.data) {
|
|
24102
|
-
const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
|
|
24103
|
-
type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
|
|
24104
|
-
});
|
|
24105
|
-
const fileURL = URL.createObjectURL(blob);
|
|
24106
|
-
setDocFileUrl(fileURL);
|
|
24107
|
-
const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
|
|
24108
|
-
if (contentType.toLowerCase().includes("pdf")) {
|
|
24109
|
-
setDocFileType("pdf");
|
|
24110
|
-
} else {
|
|
24111
|
-
setDocFileType("image");
|
|
24112
|
-
}
|
|
24113
|
-
setShowDocModal(true);
|
|
24114
|
-
}
|
|
24115
|
-
});
|
|
24116
|
-
}, function (err) {
|
|
24117
|
-
console.error("Failed to fetch file URL via FileFetchbyid", err);
|
|
24118
|
-
});
|
|
24119
|
-
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
24120
|
-
}
|
|
24121
|
-
}();
|
|
24122
|
-
return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(function () {}) : void 0);
|
|
24123
|
-
} catch (e) {
|
|
24124
|
-
return Promise.reject(e);
|
|
24125
|
-
}
|
|
24126
|
-
};
|
|
24127
24275
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
24128
24276
|
title: t("WS_DECLARATION"),
|
|
24129
24277
|
defaultOpen: true
|
|
@@ -24178,102 +24326,7 @@ const WSDeclaration = _ref => {
|
|
|
24178
24326
|
select: props.onChange,
|
|
24179
24327
|
t: t
|
|
24180
24328
|
})
|
|
24181
|
-
}))))
|
|
24182
|
-
className: "field",
|
|
24183
|
-
style: {
|
|
24184
|
-
display: "flex",
|
|
24185
|
-
gap: "10px",
|
|
24186
|
-
alignItems: "center"
|
|
24187
|
-
}
|
|
24188
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
24189
|
-
style: {
|
|
24190
|
-
flex: 1
|
|
24191
|
-
}
|
|
24192
|
-
}, /*#__PURE__*/React.createElement(UploadFile, {
|
|
24193
|
-
onUpload: onUploadSignature,
|
|
24194
|
-
onDelete: () => {
|
|
24195
|
-
setSignatureFile(null);
|
|
24196
|
-
setSignatureFileStoreId(null);
|
|
24197
|
-
setValue("signatureFile", null);
|
|
24198
|
-
setValue("signatureFileStoreId", null);
|
|
24199
|
-
},
|
|
24200
|
-
id: "ws-declaration-signature",
|
|
24201
|
-
message: signatureFileStoreId ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`),
|
|
24202
|
-
textStyles: {
|
|
24203
|
-
width: "100%"
|
|
24204
|
-
},
|
|
24205
|
-
buttonType: "button",
|
|
24206
|
-
accept: "image/*, .pdf, .png, .jpeg, .jpg",
|
|
24207
|
-
uploadedFiles: signatureFileStoreId && !signatureFile ? [[(formValue === null || formValue === void 0 ? void 0 : formValue.signatureFileName) || "Document", {
|
|
24208
|
-
fileStoreId: signatureFileStoreId
|
|
24209
|
-
}]] : undefined,
|
|
24210
|
-
removeTargetedFile: () => {
|
|
24211
|
-
setSignatureFile(null);
|
|
24212
|
-
setSignatureFileStoreId(null);
|
|
24213
|
-
setValue("signatureFile", null);
|
|
24214
|
-
setValue("signatureFileStoreId", null);
|
|
24215
|
-
setValue("signatureFileName", "");
|
|
24216
|
-
}
|
|
24217
|
-
})), signatureFileStoreId && /*#__PURE__*/React.createElement("div", {
|
|
24218
|
-
onClick: viewDocument,
|
|
24219
|
-
style: {
|
|
24220
|
-
cursor: "pointer"
|
|
24221
|
-
}
|
|
24222
|
-
}, /*#__PURE__*/React.createElement(ViewsIcon, null))))))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
24223
|
-
open: showDocModal,
|
|
24224
|
-
headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
24225
|
-
headerBarEnd: /*#__PURE__*/React.createElement("div", {
|
|
24226
|
-
className: "icon-bg-secondary",
|
|
24227
|
-
onClick: () => setShowDocModal(false),
|
|
24228
|
-
style: {
|
|
24229
|
-
cursor: "pointer",
|
|
24230
|
-
padding: "5px"
|
|
24231
|
-
}
|
|
24232
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
24233
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
24234
|
-
viewBox: "0 0 24 24",
|
|
24235
|
-
fill: "#FFFFFF",
|
|
24236
|
-
width: "24",
|
|
24237
|
-
height: "24"
|
|
24238
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
24239
|
-
d: "M0 0h24v24H0V0z",
|
|
24240
|
-
fill: "none"
|
|
24241
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
24242
|
-
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"
|
|
24243
|
-
}))),
|
|
24244
|
-
center: true,
|
|
24245
|
-
actionCancelOnSubmit: () => setShowDocModal(false),
|
|
24246
|
-
actionCancelLabel: t("CS_COMMON_CLOSE") || "Close",
|
|
24247
|
-
popupStyles: {
|
|
24248
|
-
width: "80%",
|
|
24249
|
-
maxWidth: "800px"
|
|
24250
|
-
}
|
|
24251
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
24252
|
-
style: {
|
|
24253
|
-
display: "flex",
|
|
24254
|
-
justifyContent: "center",
|
|
24255
|
-
alignItems: "center",
|
|
24256
|
-
padding: "20px",
|
|
24257
|
-
minHeight: "300px"
|
|
24258
|
-
}
|
|
24259
|
-
}, docFileType === "pdf" ? /*#__PURE__*/React.createElement("iframe", {
|
|
24260
|
-
src: docFileUrl,
|
|
24261
|
-
title: "Document Preview",
|
|
24262
|
-
width: "100%",
|
|
24263
|
-
height: "500px",
|
|
24264
|
-
style: {
|
|
24265
|
-
border: "none"
|
|
24266
|
-
}
|
|
24267
|
-
}) : /*#__PURE__*/React.createElement("img", {
|
|
24268
|
-
src: docFileUrl,
|
|
24269
|
-
alt: "Document Preview",
|
|
24270
|
-
style: {
|
|
24271
|
-
maxWidth: "100%",
|
|
24272
|
-
maxHeight: "500px",
|
|
24273
|
-
objectFit: "contain",
|
|
24274
|
-
borderRadius: "4px"
|
|
24275
|
-
}
|
|
24276
|
-
}))));
|
|
24329
|
+
})))))));
|
|
24277
24330
|
};
|
|
24278
24331
|
|
|
24279
24332
|
const WSDjbEmployee = _ref => {
|
|
@@ -24325,27 +24378,52 @@ const WSDjbEmployee = _ref => {
|
|
|
24325
24378
|
return (formData === null || formData === void 0 ? void 0 : (_formData$djbEmployee1 = formData.djbEmployee) === null || _formData$djbEmployee1 === void 0 ? void 0 : _formData$djbEmployee1.document) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD1 = formData.additionalDetails) === null || _formData$additionalD1 === void 0 ? void 0 : _formData$additionalD1.document) || null;
|
|
24326
24379
|
});
|
|
24327
24380
|
const [errorUpload, setErrorUpload] = useState(null);
|
|
24381
|
+
const handleView = function (fileStoreId, tenantId) {
|
|
24382
|
+
try {
|
|
24383
|
+
const _temp = _catch(function () {
|
|
24384
|
+
return Promise.resolve(Digit.UploadServices.Filefetch([fileStoreId], tenantId)).then(function (response) {
|
|
24385
|
+
var _response$data, _response$data$fileSt, _response$data$fileSt2;
|
|
24386
|
+
const url = response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$fileSt = _response$data.fileStoreIds) === null || _response$data$fileSt === void 0 ? void 0 : (_response$data$fileSt2 = _response$data$fileSt[0]) === null || _response$data$fileSt2 === void 0 ? void 0 : _response$data$fileSt2.url;
|
|
24387
|
+
if (url) {
|
|
24388
|
+
const differentFormats = (url === null || url === void 0 ? void 0 : url.split(",")) || [];
|
|
24389
|
+
let fileURL = "";
|
|
24390
|
+
differentFormats.map(link => {
|
|
24391
|
+
if (!link.includes("large") && !link.includes("medium") && !link.includes("small")) {
|
|
24392
|
+
fileURL = link;
|
|
24393
|
+
}
|
|
24394
|
+
});
|
|
24395
|
+
window.open(fileURL || differentFormats[0], "_blank");
|
|
24396
|
+
}
|
|
24397
|
+
});
|
|
24398
|
+
}, function (error) {
|
|
24399
|
+
console.error("Error fetching file URL:", error);
|
|
24400
|
+
});
|
|
24401
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
|
|
24402
|
+
} catch (e) {
|
|
24403
|
+
return Promise.reject(e);
|
|
24404
|
+
}
|
|
24405
|
+
};
|
|
24328
24406
|
useEffect(() => {
|
|
24329
24407
|
(function () {
|
|
24330
24408
|
try {
|
|
24331
24409
|
setErrorUpload(null);
|
|
24332
|
-
const
|
|
24410
|
+
const _temp4 = function () {
|
|
24333
24411
|
if (file) {
|
|
24334
|
-
const
|
|
24412
|
+
const _temp3 = function () {
|
|
24335
24413
|
if (file.size >= 5242880) {
|
|
24336
24414
|
setErrorUpload({
|
|
24337
24415
|
key: "error",
|
|
24338
24416
|
message: "CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"
|
|
24339
24417
|
});
|
|
24340
24418
|
} else {
|
|
24341
|
-
const
|
|
24419
|
+
const _temp2 = _catch(function () {
|
|
24342
24420
|
setUploadedFile(null);
|
|
24343
24421
|
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0])).then(function (response) {
|
|
24344
|
-
var _response$
|
|
24345
|
-
if ((response === null || response === void 0 ? void 0 : (_response$
|
|
24346
|
-
var _response$
|
|
24347
|
-
setUploadedFile(response === null || response === void 0 ? void 0 : (_response$
|
|
24348
|
-
setValue("document", response === null || response === void 0 ? void 0 : (_response$
|
|
24422
|
+
var _response$data2, _response$data2$files;
|
|
24423
|
+
if ((response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.length) > 0) {
|
|
24424
|
+
var _response$data3, _response$data3$files, _response$data4, _response$data4$files;
|
|
24425
|
+
setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : (_response$data3$files = _response$data3.files[0]) === null || _response$data3$files === void 0 ? void 0 : _response$data3$files.fileStoreId);
|
|
24426
|
+
setValue("document", response === null || response === void 0 ? void 0 : (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : (_response$data4$files = _response$data4.files[0]) === null || _response$data4$files === void 0 ? void 0 : _response$data4$files.fileStoreId);
|
|
24349
24427
|
} else {
|
|
24350
24428
|
setErrorUpload({
|
|
24351
24429
|
key: "error",
|
|
@@ -24359,13 +24437,13 @@ const WSDjbEmployee = _ref => {
|
|
|
24359
24437
|
message: "CS_FILE_UPLOAD_ERROR"
|
|
24360
24438
|
});
|
|
24361
24439
|
});
|
|
24362
|
-
if (
|
|
24440
|
+
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
24363
24441
|
}
|
|
24364
24442
|
}();
|
|
24365
|
-
if (
|
|
24443
|
+
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
24366
24444
|
}
|
|
24367
24445
|
}();
|
|
24368
|
-
return
|
|
24446
|
+
return _temp4 && _temp4.then ? _temp4.then(function () {}) : void 0;
|
|
24369
24447
|
} catch (e) {
|
|
24370
24448
|
Promise.reject(e);
|
|
24371
24449
|
}
|
|
@@ -24418,7 +24496,7 @@ const WSDjbEmployee = _ref => {
|
|
|
24418
24496
|
})
|
|
24419
24497
|
})), isDjbEmployee && /*#__PURE__*/React.createElement("div", {
|
|
24420
24498
|
className: "formcomposer-section-grid"
|
|
24421
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_EMPLOYEE_ID")
|
|
24499
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React.createElement(Controller, {
|
|
24422
24500
|
control: control,
|
|
24423
24501
|
name: "employeeId",
|
|
24424
24502
|
rules: {
|
|
@@ -24427,9 +24505,10 @@ const WSDjbEmployee = _ref => {
|
|
|
24427
24505
|
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
24428
24506
|
value: props.value,
|
|
24429
24507
|
onChange: e => props.onChange(e.target.value),
|
|
24430
|
-
onBlur: props.onBlur
|
|
24508
|
+
onBlur: props.onBlur,
|
|
24509
|
+
placeholder: t("WS_EMPLOYEE_ID")
|
|
24431
24510
|
})
|
|
24432
|
-
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_DATE_OF_RETIREMENT")
|
|
24511
|
+
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React.createElement("div", {
|
|
24433
24512
|
className: "field"
|
|
24434
24513
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
24435
24514
|
control: control,
|
|
@@ -24441,7 +24520,7 @@ const WSDjbEmployee = _ref => {
|
|
|
24441
24520
|
date: props.value,
|
|
24442
24521
|
onChange: date => props.onChange(date)
|
|
24443
24522
|
})
|
|
24444
|
-
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_EMPLOYEE_DESIGNATION")
|
|
24523
|
+
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_EMPLOYEE_DESIGNATION")), /*#__PURE__*/React.createElement("div", {
|
|
24445
24524
|
className: "field"
|
|
24446
24525
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
24447
24526
|
control: control,
|
|
@@ -24452,9 +24531,10 @@ const WSDjbEmployee = _ref => {
|
|
|
24452
24531
|
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
24453
24532
|
value: props.value,
|
|
24454
24533
|
onChange: e => props.onChange(e.target.value),
|
|
24455
|
-
onBlur: props.onBlur
|
|
24534
|
+
onBlur: props.onBlur,
|
|
24535
|
+
placeholder: t("WS_EMPLOYEE_DESIGNATION")
|
|
24456
24536
|
})
|
|
24457
|
-
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_UPLOAD_EMPLOYEE_ID_DOC")
|
|
24537
|
+
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_UPLOAD_EMPLOYEE_ID_DOC")), /*#__PURE__*/React.createElement("div", {
|
|
24458
24538
|
className: "field"
|
|
24459
24539
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
24460
24540
|
control: control,
|
|
@@ -24465,6 +24545,7 @@ const WSDjbEmployee = _ref => {
|
|
|
24465
24545
|
render: props => /*#__PURE__*/React.createElement(UploadFile, {
|
|
24466
24546
|
id: "employee-doc",
|
|
24467
24547
|
extraStyleName: "propertyCreate",
|
|
24548
|
+
placeholder: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
|
|
24468
24549
|
accept: "image/*, .pdf, .png, .jpeg, .jpg",
|
|
24469
24550
|
onUpload: e => {
|
|
24470
24551
|
selectfile(e);
|
|
@@ -24475,9 +24556,62 @@ const WSDjbEmployee = _ref => {
|
|
|
24475
24556
|
props.onChange("");
|
|
24476
24557
|
},
|
|
24477
24558
|
message: uploadedFile ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
|
|
24478
|
-
error: errorUpload
|
|
24559
|
+
error: errorUpload,
|
|
24560
|
+
uploadedFiles: uploadedFile && !file ? [[(file === null || file === void 0 ? void 0 : file.name) || t("WS_UPLOAD_EMPLOYEE_ID_DOC"), {
|
|
24561
|
+
fileStoreId: uploadedFile
|
|
24562
|
+
}]] : undefined
|
|
24479
24563
|
})
|
|
24480
|
-
})
|
|
24564
|
+
}), uploadedFile && /*#__PURE__*/React.createElement("div", {
|
|
24565
|
+
style: {
|
|
24566
|
+
marginTop: "16px",
|
|
24567
|
+
display: "flex",
|
|
24568
|
+
alignItems: "center",
|
|
24569
|
+
gap: "16px",
|
|
24570
|
+
background: "#F3F4F6",
|
|
24571
|
+
padding: "8px 16px",
|
|
24572
|
+
borderRadius: "8px",
|
|
24573
|
+
width: "fit-content",
|
|
24574
|
+
border: "1px solid #E5E7EB"
|
|
24575
|
+
}
|
|
24576
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
24577
|
+
style: {
|
|
24578
|
+
fontSize: "14px",
|
|
24579
|
+
color: "#374151",
|
|
24580
|
+
fontWeight: "600"
|
|
24581
|
+
}
|
|
24582
|
+
}, (file === null || file === void 0 ? void 0 : file.name) || t("WS_UPLOAD_EMPLOYEE_ID_DOC")), /*#__PURE__*/React.createElement("div", {
|
|
24583
|
+
style: {
|
|
24584
|
+
display: "flex",
|
|
24585
|
+
gap: "10px"
|
|
24586
|
+
}
|
|
24587
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
24588
|
+
type: "button",
|
|
24589
|
+
onClick: () => handleView(uploadedFile, tenantId),
|
|
24590
|
+
title: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
24591
|
+
style: {
|
|
24592
|
+
border: "none",
|
|
24593
|
+
background: "transparent",
|
|
24594
|
+
color: "#00497e",
|
|
24595
|
+
cursor: "pointer",
|
|
24596
|
+
padding: 0
|
|
24597
|
+
}
|
|
24598
|
+
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), /*#__PURE__*/React.createElement("button", {
|
|
24599
|
+
type: "button",
|
|
24600
|
+
onClick: () => {
|
|
24601
|
+
setUploadedFile(null);
|
|
24602
|
+
setFile(null);
|
|
24603
|
+
setValue("document", "");
|
|
24604
|
+
},
|
|
24605
|
+
title: "Remove Document",
|
|
24606
|
+
style: {
|
|
24607
|
+
border: "none",
|
|
24608
|
+
background: "transparent",
|
|
24609
|
+
color: "#d32f2f",
|
|
24610
|
+
cursor: "pointer",
|
|
24611
|
+
padding: 0,
|
|
24612
|
+
fontSize: "18px"
|
|
24613
|
+
}
|
|
24614
|
+
}, /*#__PURE__*/React.createElement(RemoveIcon, null)))))))));
|
|
24481
24615
|
if (userType === "citizen") {
|
|
24482
24616
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Timeline, {
|
|
24483
24617
|
currentStep: 2
|
|
@@ -24561,7 +24695,7 @@ const DECIMAL_PATTERN$1 = /^\d+(\.\d{1,2})?$/;
|
|
|
24561
24695
|
const normalizeCode = value => String(value || "").replace(/[._\s-]/g, "").toUpperCase();
|
|
24562
24696
|
const getCode = value => typeof value === "object" ? (value === null || value === void 0 ? void 0 : value.code) || (value === null || value === void 0 ? void 0 : value.value) : value;
|
|
24563
24697
|
const PropertyWaterConnection = _ref => {
|
|
24564
|
-
var _formData$cpt3, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8,
|
|
24698
|
+
var _formData$cpt3, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
|
|
24565
24699
|
let {
|
|
24566
24700
|
t,
|
|
24567
24701
|
config,
|
|
@@ -24614,7 +24748,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
24614
24748
|
categories.forEach(data => data.i18nKey = data.i18nKey || `WS_CATEGORY_${data.code}`);
|
|
24615
24749
|
setCategoryTypeList(categories);
|
|
24616
24750
|
}, [wsServicesMastersData]);
|
|
24617
|
-
const isPropertyFound = window.location.href.includes("ws/old-application") || window.location.href.includes("/edit-application
|
|
24751
|
+
const isPropertyFound = window.location.href.includes("ws/old-application") || window.location.href.includes("/edit-application");
|
|
24618
24752
|
useEffect(() => {
|
|
24619
24753
|
if (props.register) {
|
|
24620
24754
|
props.register({
|
|
@@ -24814,7 +24948,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
24814
24948
|
style: props.style
|
|
24815
24949
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24816
24950
|
className: "formcomposer-section-grid"
|
|
24817
|
-
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_CATEGORY_TYPE")}
|
|
24951
|
+
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_CATEGORY_TYPE")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
24952
|
+
className: "check-page-link-button"
|
|
24953
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24818
24954
|
className: "form-field"
|
|
24819
24955
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
24820
24956
|
control: control,
|
|
@@ -24829,11 +24965,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
24829
24965
|
select: props.onChange,
|
|
24830
24966
|
t: t,
|
|
24831
24967
|
onBlur: props.onBlur,
|
|
24832
|
-
disable: isPropertyFound
|
|
24968
|
+
disable: isPropertyFound,
|
|
24969
|
+
placeholder: t("WS_CATEGORY_TYPE")
|
|
24833
24970
|
})
|
|
24834
24971
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails = errors.useDetails) === null || _errors$useDetails === void 0 ? void 0 : _errors$useDetails.categoryType) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24835
24972
|
style: errorStyle
|
|
24836
|
-
}, errors.useDetails.categoryType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PROPERTY_CATEGORY")}
|
|
24973
|
+
}, errors.useDetails.categoryType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PROPERTY_CATEGORY")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
24974
|
+
className: "check-page-link-button"
|
|
24975
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24837
24976
|
className: "form-field"
|
|
24838
24977
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
24839
24978
|
control: control,
|
|
@@ -24848,11 +24987,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
24848
24987
|
select: props.onChange,
|
|
24849
24988
|
t: t,
|
|
24850
24989
|
onBlur: props.onBlur,
|
|
24851
|
-
disable: isPropertyFound
|
|
24990
|
+
disable: isPropertyFound,
|
|
24991
|
+
placeholder: t("WS_PROPERTY_CATEGORY")
|
|
24852
24992
|
})
|
|
24853
24993
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails2 = errors.useDetails) === null || _errors$useDetails2 === void 0 ? void 0 : _errors$useDetails2.propertyCategory) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24854
24994
|
style: errorStyle
|
|
24855
|
-
}, errors.useDetails.propertyCategory.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PROPERTY_TYPE")}
|
|
24995
|
+
}, errors.useDetails.propertyCategory.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PROPERTY_TYPE")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
24996
|
+
className: "check-page-link-button"
|
|
24997
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24856
24998
|
className: "form-field"
|
|
24857
24999
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
24858
25000
|
control: control,
|
|
@@ -24867,11 +25009,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
24867
25009
|
select: props.onChange,
|
|
24868
25010
|
t: t,
|
|
24869
25011
|
onBlur: props.onBlur,
|
|
24870
|
-
disable: isPropertyFound
|
|
25012
|
+
disable: isPropertyFound,
|
|
25013
|
+
placeholder: t("WS_PROPERTY_TYPE")
|
|
24871
25014
|
})
|
|
24872
25015
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails3 = errors.useDetails) === null || _errors$useDetails3 === void 0 ? void 0 : _errors$useDetails3.propertyType) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24873
25016
|
style: errorStyle
|
|
24874
|
-
}, errors.useDetails.propertyType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_WATER_CONNECTION_USAGE_TYPE")}
|
|
25017
|
+
}, errors.useDetails.propertyType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_WATER_CONNECTION_USAGE_TYPE")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
25018
|
+
className: "check-page-link-button"
|
|
25019
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24875
25020
|
className: "form-field"
|
|
24876
25021
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
24877
25022
|
control: control,
|
|
@@ -24886,15 +25031,21 @@ const PropertyWaterConnection = _ref => {
|
|
|
24886
25031
|
select: props.onChange,
|
|
24887
25032
|
t: t,
|
|
24888
25033
|
onBlur: props.onBlur,
|
|
24889
|
-
disable: isPropertyFound
|
|
25034
|
+
disable: isPropertyFound,
|
|
25035
|
+
placeholder: t("WS_WATER_CONNECTION_USAGE_TYPE")
|
|
24890
25036
|
})
|
|
24891
25037
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails4 = errors.useDetails) === null || _errors$useDetails4 === void 0 ? void 0 : _errors$useDetails4.WaterConnectionUsageType) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24892
25038
|
style: errorStyle
|
|
24893
|
-
}, errors.useDetails.WaterConnectionUsageType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_FLOORS")}
|
|
25039
|
+
}, errors.useDetails.WaterConnectionUsageType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_FLOORS")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
25040
|
+
className: "check-page-link-button"
|
|
25041
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24894
25042
|
className: "form-field"
|
|
24895
25043
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
24896
25044
|
control: control,
|
|
24897
25045
|
name: "useDetails.noOfFloors",
|
|
25046
|
+
rules: {
|
|
25047
|
+
required: t("REQUIRED_FIELD")
|
|
25048
|
+
},
|
|
24898
25049
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
24899
25050
|
option: floorOptions,
|
|
24900
25051
|
optionKey: "name",
|
|
@@ -24902,11 +25053,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
24902
25053
|
select: props.onChange,
|
|
24903
25054
|
t: t,
|
|
24904
25055
|
onBlur: props.onBlur,
|
|
24905
|
-
disable: isPropertyFound
|
|
25056
|
+
disable: isPropertyFound,
|
|
25057
|
+
placeholder: t("WS_NUMBER_OF_FLOORS")
|
|
24906
25058
|
})
|
|
24907
25059
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails5 = errors.useDetails) === null || _errors$useDetails5 === void 0 ? void 0 : _errors$useDetails5.noOfFloors) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24908
25060
|
style: errorStyle
|
|
24909
|
-
}, errors.useDetails.noOfFloors.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PLOT_AREA")}
|
|
25061
|
+
}, errors.useDetails.noOfFloors.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PLOT_AREA")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
25062
|
+
className: "check-page-link-button"
|
|
25063
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24910
25064
|
className: "form-field"
|
|
24911
25065
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
24912
25066
|
t: t,
|
|
@@ -24916,11 +25070,17 @@ const PropertyWaterConnection = _ref => {
|
|
|
24916
25070
|
message: t("ERR_INVALID_DECIMAL")
|
|
24917
25071
|
}
|
|
24918
25072
|
}),
|
|
25073
|
+
rules: {
|
|
25074
|
+
required: t("REQUIRED_FIELD")
|
|
25075
|
+
},
|
|
24919
25076
|
name: "useDetails.plotArea",
|
|
24920
|
-
disabled: isPropertyFound
|
|
25077
|
+
disabled: isPropertyFound,
|
|
25078
|
+
placeholder: t("WS_PLOT_AREA")
|
|
24921
25079
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails6 = errors.useDetails) === null || _errors$useDetails6 === void 0 ? void 0 : _errors$useDetails6.plotArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24922
25080
|
style: errorStyle
|
|
24923
|
-
}, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_BUILT_UP_AREA")}
|
|
25081
|
+
}, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_BUILT_UP_AREA")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
25082
|
+
className: "check-page-link-button"
|
|
25083
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24924
25084
|
className: "form-field"
|
|
24925
25085
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
24926
25086
|
t: t,
|
|
@@ -24931,37 +25091,16 @@ const PropertyWaterConnection = _ref => {
|
|
|
24931
25091
|
}
|
|
24932
25092
|
}),
|
|
24933
25093
|
name: "useDetails.builtUpArea",
|
|
24934
|
-
|
|
25094
|
+
rules: {
|
|
25095
|
+
required: t("REQUIRED_FIELD")
|
|
25096
|
+
},
|
|
25097
|
+
disabled: isPropertyFound,
|
|
25098
|
+
placeholder: t("WS_BUILT_UP_AREA")
|
|
24935
25099
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails7 = errors.useDetails) === null || _errors$useDetails7 === void 0 ? void 0 : _errors$useDetails7.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24936
25100
|
style: errorStyle
|
|
24937
|
-
}, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React.createElement(
|
|
24938
|
-
className: "
|
|
24939
|
-
}, /*#__PURE__*/React.createElement(
|
|
24940
|
-
t: t,
|
|
24941
|
-
inputRef: register({
|
|
24942
|
-
pattern: {
|
|
24943
|
-
value: DECIMAL_PATTERN$1,
|
|
24944
|
-
message: t("ERR_INVALID_DECIMAL")
|
|
24945
|
-
},
|
|
24946
|
-
validate: value => {
|
|
24947
|
-
var _formValue$useDetails, _formValue$useDetails2;
|
|
24948
|
-
if (formValue !== null && formValue !== void 0 && (_formValue$useDetails = formValue.useDetails) !== null && _formValue$useDetails !== void 0 && _formValue$useDetails.builtUpArea && parseFloat(value) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea)) {
|
|
24949
|
-
return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
|
|
24950
|
-
}
|
|
24951
|
-
}
|
|
24952
|
-
}),
|
|
24953
|
-
name: "useDetails.farArea",
|
|
24954
|
-
disabled: isPropertyFound
|
|
24955
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24956
|
-
style: errorStyle
|
|
24957
|
-
}, errors.useDetails.farArea.message), (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.farArea) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.builtUpArea) && parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.farArea) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails6 = formValue.useDetails) === null || _formValue$useDetails6 === void 0 ? void 0 : _formValue$useDetails6.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24958
|
-
style: {
|
|
24959
|
-
width: "70%",
|
|
24960
|
-
marginLeft: "30%",
|
|
24961
|
-
fontSize: "12px",
|
|
24962
|
-
marginTop: "5px"
|
|
24963
|
-
}
|
|
24964
|
-
}, t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA"))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_SELECT_YEAR_OF_CONSTRUCTION")}*`), /*#__PURE__*/React.createElement("div", {
|
|
25101
|
+
}, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_SELECT_YEAR_OF_CONSTRUCTION")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
25102
|
+
className: "check-page-link-button"
|
|
25103
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
24965
25104
|
className: "form-field"
|
|
24966
25105
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
24967
25106
|
control: control,
|
|
@@ -24976,9 +25115,10 @@ const PropertyWaterConnection = _ref => {
|
|
|
24976
25115
|
select: props.onChange,
|
|
24977
25116
|
t: t,
|
|
24978
25117
|
onBlur: props.onBlur,
|
|
24979
|
-
disable: isPropertyFound
|
|
25118
|
+
disable: isPropertyFound,
|
|
25119
|
+
placeholder: t("WS_SELECT_YEAR_OF_CONSTRUCTION")
|
|
24980
25120
|
})
|
|
24981
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$
|
|
25121
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.SelectYearofConstruction) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24982
25122
|
style: errorStyle
|
|
24983
25123
|
}, errors.useDetails.SelectYearofConstruction.message), isDwellingUnit ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_DWELLING_UNITS")}`), /*#__PURE__*/React.createElement("div", {
|
|
24984
25124
|
className: "form-field"
|
|
@@ -24991,8 +25131,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
24991
25131
|
}
|
|
24992
25132
|
}),
|
|
24993
25133
|
name: "useDetails.NumberofDwellingUnits",
|
|
24994
|
-
disabled: isPropertyFound
|
|
24995
|
-
|
|
25134
|
+
disabled: isPropertyFound,
|
|
25135
|
+
placeholder: t("WS_NUMBER_OF_DWELLING_UNITS")
|
|
25136
|
+
}))) : null, isDwellingUnit && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails9 = errors.useDetails) === null || _errors$useDetails9 === void 0 ? void 0 : _errors$useDetails9.NumberofDwellingUnits) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
24996
25137
|
style: errorStyle
|
|
24997
25138
|
}, errors.useDetails.NumberofDwellingUnits.message), isHotelRestaurantProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_ROOMS")}*`), /*#__PURE__*/React.createElement("div", {
|
|
24998
25139
|
className: "form-field"
|
|
@@ -25006,8 +25147,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25006
25147
|
required: isHotelRestaurantProperty ? t("REQUIRED_FIELD") : false
|
|
25007
25148
|
}),
|
|
25008
25149
|
name: "useDetails.NumberofRooms",
|
|
25009
|
-
disabled: isPropertyFound
|
|
25010
|
-
|
|
25150
|
+
disabled: isPropertyFound,
|
|
25151
|
+
placeholder: t("WS_NUMBER_OF_ROOMS")
|
|
25152
|
+
}))) : null, isHotelRestaurantProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails0 = errors.useDetails) === null || _errors$useDetails0 === void 0 ? void 0 : _errors$useDetails0.NumberofRooms) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
25011
25153
|
style: errorStyle
|
|
25012
25154
|
}, errors.useDetails.NumberofRooms.message), isHospitalProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_BEDS")}*`), /*#__PURE__*/React.createElement("div", {
|
|
25013
25155
|
className: "form-field"
|
|
@@ -25021,8 +25163,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25021
25163
|
required: isHospitalProperty ? t("REQUIRED_FIELD") : false
|
|
25022
25164
|
}),
|
|
25023
25165
|
name: "useDetails.numberOfBeds",
|
|
25024
|
-
disabled: isPropertyFound
|
|
25025
|
-
|
|
25166
|
+
disabled: isPropertyFound,
|
|
25167
|
+
placeholder: t("WS_NUMBER_OF_BEDS")
|
|
25168
|
+
}))) : null, isHospitalProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails1 = errors.useDetails) === null || _errors$useDetails1 === void 0 ? void 0 : _errors$useDetails1.numberOfBeds) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
25026
25169
|
style: errorStyle
|
|
25027
25170
|
}, errors.useDetails.numberOfBeds.message), isSchoolCollegeProperty ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_STUDENTS")}`), /*#__PURE__*/React.createElement("div", {
|
|
25028
25171
|
className: "form-field"
|
|
@@ -25035,8 +25178,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25035
25178
|
}
|
|
25036
25179
|
}),
|
|
25037
25180
|
name: "useDetails.numberOfStudents",
|
|
25038
|
-
disabled: isPropertyFound
|
|
25039
|
-
|
|
25181
|
+
disabled: isPropertyFound,
|
|
25182
|
+
placeholder: t("WS_NUMBER_OF_STUDENTS")
|
|
25183
|
+
}))) : null, isSchoolCollegeProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails10 = errors.useDetails) === null || _errors$useDetails10 === void 0 ? void 0 : _errors$useDetails10.numberOfStudents) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
25040
25184
|
style: errorStyle
|
|
25041
25185
|
}, errors.useDetails.numberOfStudents.message), isServentHouse ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_SERVENT_HOUSE")}`), /*#__PURE__*/React.createElement("div", {
|
|
25042
25186
|
className: "form-field"
|
|
@@ -25049,8 +25193,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25049
25193
|
}
|
|
25050
25194
|
}),
|
|
25051
25195
|
name: "useDetails.servantQuarterArea",
|
|
25052
|
-
disabled: isPropertyFound
|
|
25053
|
-
|
|
25196
|
+
disabled: isPropertyFound,
|
|
25197
|
+
placeholder: t("WS_SERVENT_HOUSE")
|
|
25198
|
+
}))) : null, isServentHouse && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails11 = errors.useDetails) === null || _errors$useDetails11 === void 0 ? void 0 : _errors$useDetails11.servantQuarterArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
25054
25199
|
style: errorStyle
|
|
25055
25200
|
}, errors.useDetails.servantQuarterArea.message)));
|
|
25056
25201
|
};
|
|
@@ -27872,6 +28017,7 @@ const WSCard = () => {
|
|
|
27872
28017
|
const [totalCount, setTotalCount] = useState(0);
|
|
27873
28018
|
sessionStorage.removeItem("Digit.PT_CREATE_EMP_WS_NEW_FORM");
|
|
27874
28019
|
sessionStorage.removeItem("IsDetailsExists");
|
|
28020
|
+
sessionStorage.removeItem("Digit.WS_DISCONNECTION");
|
|
27875
28021
|
const filterFormDefaultValues = {
|
|
27876
28022
|
businessService: ["NewWS1", "ModifyWSConnection", "DisconnectWSConnection", "mutationWSConnection"],
|
|
27877
28023
|
moduleName: "ws-services",
|
|
@@ -27952,6 +28098,10 @@ const WSCard = () => {
|
|
|
27952
28098
|
label: t("WS_ZRO_VERIFICATION"),
|
|
27953
28099
|
link: `/digit-ui/employee/ws/zro-application`,
|
|
27954
28100
|
roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
28101
|
+
}, {
|
|
28102
|
+
label: t("WS_DISCONNECTION"),
|
|
28103
|
+
link: `/digit-ui/employee/ws/new-disconnection`,
|
|
28104
|
+
roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
|
|
27955
28105
|
}].filter(link => link.roles ? checkForEmployee(link.roles) : true)
|
|
27956
28106
|
};
|
|
27957
28107
|
return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
|
|
@@ -29426,7 +29576,7 @@ const WSCreate = () => {
|
|
|
29426
29576
|
let {
|
|
29427
29577
|
data: newConfig$1
|
|
29428
29578
|
} = Digit.Hooks.ws.useWSConfigMDMS.getFormConfig(stateId, []);
|
|
29429
|
-
let isModifyEdit = window.location.href.includes("/modify-connection
|
|
29579
|
+
let isModifyEdit = window.location.href.includes("/modify-connection") || window.location.href.includes("/edit-application");
|
|
29430
29580
|
const goNext = skipStep => {
|
|
29431
29581
|
var _params$cptId, _params$cpt, _params$cpt$details, _params$cpt2, _params$cpt2$details;
|
|
29432
29582
|
const currentPath = pathname.split("/").pop();
|
|
@@ -29546,6 +29696,20 @@ const newConfig$1 = [{
|
|
|
29546
29696
|
key: "data",
|
|
29547
29697
|
type: "component",
|
|
29548
29698
|
withoutLabel: true,
|
|
29699
|
+
nextStep: "k-number"
|
|
29700
|
+
}, {
|
|
29701
|
+
route: "k-number",
|
|
29702
|
+
component: "WSDisconnectionKNumber",
|
|
29703
|
+
key: "WSDisconnectionKNumber",
|
|
29704
|
+
type: "component",
|
|
29705
|
+
withoutLabel: true,
|
|
29706
|
+
nextStep: "consumer-details"
|
|
29707
|
+
}, {
|
|
29708
|
+
route: "consumer-details",
|
|
29709
|
+
component: "WSDisconnectionConsumerDetails",
|
|
29710
|
+
key: "WSDisconnectionConsumerDetails",
|
|
29711
|
+
type: "component",
|
|
29712
|
+
withoutLabel: true,
|
|
29549
29713
|
nextStep: "application-form"
|
|
29550
29714
|
}, {
|
|
29551
29715
|
route: "application-form",
|
|
@@ -32601,15 +32765,7 @@ const ViewBreakup = _ref => {
|
|
|
32601
32765
|
label: t("WS_BUILT_UP_AREA"),
|
|
32602
32766
|
value: propertyDetail.superBuiltUpArea,
|
|
32603
32767
|
unit: " (sq. meter.)"
|
|
32604
|
-
}, isValidValue(propertyDetail.
|
|
32605
|
-
label: t("WS_FAR_AREA"),
|
|
32606
|
-
value: propertyDetail.farArea,
|
|
32607
|
-
isText: true
|
|
32608
|
-
} : null, isValidValue(propertyDetail.coveredArea) ? {
|
|
32609
|
-
label: t("WS_COVERED_AREA"),
|
|
32610
|
-
value: propertyDetail.coveredArea,
|
|
32611
|
-
isText: true
|
|
32612
|
-
} : null, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
|
|
32768
|
+
}, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
|
|
32613
32769
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
32614
32770
|
value: propertyDetail.numberOfDwellingUnits,
|
|
32615
32771
|
isText: true
|
|
@@ -32846,7 +33002,7 @@ const checkForNA$1 = value => {
|
|
|
32846
33002
|
return value ? value : "CS_NA";
|
|
32847
33003
|
};
|
|
32848
33004
|
const WSApplicationDetails = () => {
|
|
32849
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$SewerageConnect10, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$WaterConnection14, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect15, _data$SewerageConnect16, _appDetailsData$appli, _data$WaterConnection35, _data$WaterConnection36, _data$SewerageConnect31, _data$SewerageConnect32, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$
|
|
33005
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$SewerageConnect10, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$WaterConnection14, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect15, _data$SewerageConnect16, _appDetailsData$appli, _data$WaterConnection35, _data$WaterConnection36, _data$SewerageConnect31, _data$SewerageConnect32, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection69, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect64, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect127, _data$SewerageConnect128, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$WaterConnection144, _data$WaterConnection145, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect139, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184;
|
|
32850
33006
|
const getDisconnectionNoticeSearch = function () {
|
|
32851
33007
|
try {
|
|
32852
33008
|
var _data$WaterConnection186, _data$WaterConnection187, _data$SewerageConnect180, _data$SewerageConnect181;
|
|
@@ -33237,22 +33393,13 @@ const WSApplicationDetails = () => {
|
|
|
33237
33393
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
33238
33394
|
label: t("WS_SERVICE_TYPE"),
|
|
33239
33395
|
text: `${t(checkForNA$1(connectionDetails !== null && connectionDetails !== void 0 && (_connectionDetails$se = connectionDetails.serviceType) !== null && _connectionDetails$se !== void 0 && _connectionDetails$se.code ? `WS_APPLICATION_TYPE_${connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$se2 = connectionDetails.serviceType) === null || _connectionDetails$se2 === void 0 ? void 0 : _connectionDetails$se2.code}` : connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.serviceType ? `WS_APPLICATION_TYPE_${connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.serviceType}` : applicationData !== null && applicationData !== void 0 && applicationData.applicationType ? `WS_APPLICATION_TYPE_${applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationType}` : "NA"))}`
|
|
33240
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
33241
|
-
label: t("WS_CONNECTION_TYPE"),
|
|
33242
|
-
text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$co = connectionDetails.connectionType) === null || _connectionDetails$co === void 0 ? void 0 : _connectionDetails$co.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$co2 = connectionDetails.connectionType) === null || _connectionDetails$co2 === void 0 ? void 0 : _connectionDetails$co2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.connectionType)))}`
|
|
33243
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
33244
|
-
label: t("WS_WATER_DEMAND_TYPE"),
|
|
33245
|
-
text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$wa = connectionDetails.waterDemandType) === null || _connectionDetails$wa === void 0 ? void 0 : _connectionDetails$wa.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$wa2 = connectionDetails.waterDemandType) === null || _connectionDetails$wa2 === void 0 ? void 0 : _connectionDetails$wa2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.waterDemandType)))}`
|
|
33246
33396
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33247
33397
|
label: t("WS_APPLICANT_TYPE"),
|
|
33248
33398
|
text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap = connectionDetails.applicantType) === null || _connectionDetails$ap === void 0 ? void 0 : _connectionDetails$ap.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap2 = connectionDetails.applicantType) === null || _connectionDetails$ap2 === void 0 ? void 0 : _connectionDetails$ap2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.applicantType)))}`
|
|
33249
33399
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33250
33400
|
label: t("WS_DIVYANGJAN"),
|
|
33251
33401
|
text: `${connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
33252
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
33253
|
-
label: t("WS_SERVICE_TYPE"),
|
|
33254
|
-
text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do = connectionDetails.domesticType) === null || _connectionDetails$do === void 0 ? void 0 : _connectionDetails$do.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do2 = connectionDetails.domesticType) === null || _connectionDetails$do2 === void 0 ? void 0 : _connectionDetails$do2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.domesticType)))}`
|
|
33255
|
-
}), (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do3 = connectionDetails.domesticType) === null || _connectionDetails$do3 === void 0 ? void 0 : _connectionDetails$do3.code) === "ORGANIZATION" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
33402
|
+
}), (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do = connectionDetails.domesticType) === null || _connectionDetails$do === void 0 ? void 0 : _connectionDetails$do.code) === "ORGANIZATION" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
33256
33403
|
label: t("WS_DEPARTMENT_TYPE"),
|
|
33257
33404
|
text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$de = connectionDetails.departmentType) === null || _connectionDetails$de === void 0 ? void 0 : _connectionDetails$de.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$de2 = connectionDetails.departmentType) === null || _connectionDetails$de2 === void 0 ? void 0 : _connectionDetails$de2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.departmentType)))}`
|
|
33258
33405
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
@@ -35696,7 +35843,7 @@ const getPath$3 = (path, params) => {
|
|
|
35696
35843
|
};
|
|
35697
35844
|
const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
35698
35845
|
if (waterResult) {
|
|
35699
|
-
var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$connecti27, _waterResult$connecti28, _waterResult$connecti29, _waterResult$connecti30, _waterResult$connecti31, _waterResult$connecti32, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$addition2, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23;
|
|
35846
|
+
var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$connecti27, _waterResult$connecti28, _waterResult$connecti29, _waterResult$connecti30, _waterResult$connecti31, _waterResult$connecti32, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$addition2, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23, _waterResult$addition24;
|
|
35700
35847
|
waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [{
|
|
35701
35848
|
...(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti = waterResult.connectionHolders) === null || _waterResult$connecti === void 0 ? void 0 : _waterResult$connecti[0]),
|
|
35702
35849
|
address: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti2 = waterResult.connectionHolders) === null || _waterResult$connecti2 === void 0 ? void 0 : (_waterResult$connecti3 = _waterResult$connecti2[0]) === null || _waterResult$connecti3 === void 0 ? void 0 : _waterResult$connecti3.correspondenceAddress,
|
|
@@ -35821,10 +35968,11 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
35821
35968
|
isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition19 = waterResult.additionalDetails) === null || _waterResult$addition19 === void 0 ? void 0 : _waterResult$addition19.isDjbEmployee) === "true",
|
|
35822
35969
|
employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.employeeId) || "",
|
|
35823
35970
|
designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.designation) || "",
|
|
35824
|
-
dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.dorDate) || ""
|
|
35971
|
+
dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.dorDate) || "",
|
|
35972
|
+
document: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition24 = waterResult.additionalDetails) === null || _waterResult$addition24 === void 0 ? void 0 : _waterResult$addition24.document) || ""
|
|
35825
35973
|
};
|
|
35826
35974
|
} else if (sewerageresult) {
|
|
35827
|
-
var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$conne27, _sewerageresult$conne28, _sewerageresult$conne29, _sewerageresult$conne30, _sewerageresult$conne31, _sewerageresult$conne32, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$addit2, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23;
|
|
35975
|
+
var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$conne27, _sewerageresult$conne28, _sewerageresult$conne29, _sewerageresult$conne30, _sewerageresult$conne31, _sewerageresult$conne32, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$addit2, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23, _sewerageresult$addit24;
|
|
35828
35976
|
sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [{
|
|
35829
35977
|
...(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0]),
|
|
35830
35978
|
address: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne2 = sewerageresult.connectionHolders) === null || _sewerageresult$conne2 === void 0 ? void 0 : (_sewerageresult$conne3 = _sewerageresult$conne2[0]) === null || _sewerageresult$conne3 === void 0 ? void 0 : _sewerageresult$conne3.correspondenceAddress,
|
|
@@ -35944,7 +36092,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
35944
36092
|
isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit19 = sewerageresult.additionalDetails) === null || _sewerageresult$addit19 === void 0 ? void 0 : _sewerageresult$addit19.isDjbEmployee) === "true",
|
|
35945
36093
|
employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.employeeId) || "",
|
|
35946
36094
|
designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.designation) || "",
|
|
35947
|
-
dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.dorDate) || ""
|
|
36095
|
+
dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.dorDate) || "",
|
|
36096
|
+
document: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit24 = sewerageresult.additionalDetails) === null || _sewerageresult$addit24 === void 0 ? void 0 : _sewerageresult$addit24.document) || ""
|
|
35948
36097
|
};
|
|
35949
36098
|
}
|
|
35950
36099
|
if (waterResult) return {
|
|
@@ -35961,14 +36110,17 @@ const EditApplication = _ref => {
|
|
|
35961
36110
|
t
|
|
35962
36111
|
} = useTranslation();
|
|
35963
36112
|
let {
|
|
35964
|
-
tenantId
|
|
36113
|
+
tenantId: tenantIdFromUrl
|
|
35965
36114
|
} = useParams();
|
|
36115
|
+
const searchParams = new URLSearchParams(useLocation().search);
|
|
36116
|
+
const applicationNumberParam = searchParams.get("applicationNumber");
|
|
36117
|
+
let tenantId = tenantIdFromUrl || searchParams.get("tenantId") || Digit.ULBService.getCurrentTenantId();
|
|
35966
36118
|
const {
|
|
35967
36119
|
pathname,
|
|
35968
36120
|
state
|
|
35969
36121
|
} = useLocation();
|
|
35970
36122
|
const history = useHistory();
|
|
35971
|
-
let applicationNumber = (state === null || state === void 0 ? void 0 : state.id) || sessionStorage.getItem("ApplicationNoState");
|
|
36123
|
+
let applicationNumber = applicationNumberParam || (state === null || state === void 0 ? void 0 : state.id) || sessionStorage.getItem("ApplicationNoState");
|
|
35972
36124
|
let config = [];
|
|
35973
36125
|
let waterapplication = {};
|
|
35974
36126
|
let sewerageapplication = {};
|
|
@@ -36013,12 +36165,12 @@ const EditApplication = _ref => {
|
|
|
36013
36165
|
}, {
|
|
36014
36166
|
enabled: applicationNumber && applicationNumber.includes("SW") ? true : false
|
|
36015
36167
|
});
|
|
36016
|
-
let isModifyEdit = window.location.href.includes("/modify-connection
|
|
36168
|
+
let isModifyEdit = window.location.href.includes("/modify-connection") || window.location.href.includes("/edit-application");
|
|
36017
36169
|
useEffect(() => {
|
|
36018
36170
|
var _waterapplication, _sewerageapplication;
|
|
36019
36171
|
waterapplication = Waterresult;
|
|
36020
36172
|
sewerageapplication = Sewarageresult;
|
|
36021
|
-
if ((Waterresult && waterapplication || Sewarageresult && sewerageapplication) && (!(Object.keys(params).length > 0) || waterapplication && (params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_waterapplication = waterapplication) === null || _waterapplication === void 0 ? void 0 : _waterapplication.applicationNo) || sewerageapplication && (params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_sewerageapplication = sewerageapplication) === null || _sewerageapplication === void 0 ? void 0 : _sewerageapplication.applicationNo))) {
|
|
36173
|
+
if ((Waterresult && waterapplication || Sewarageresult && sewerageapplication) && (!(Object.keys(params).length > 0) || waterapplication && ((params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_waterapplication = waterapplication) === null || _waterapplication === void 0 ? void 0 : _waterapplication.applicationNo) || !(params !== null && params !== void 0 && params.DocumentsRequired)) || sewerageapplication && ((params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_sewerageapplication = sewerageapplication) === null || _sewerageapplication === void 0 ? void 0 : _sewerageapplication.applicationNo) || !(params !== null && params !== void 0 && params.DocumentsRequired)))) {
|
|
36022
36174
|
waterapplication = Waterresult;
|
|
36023
36175
|
sewerageapplication = Sewarageresult;
|
|
36024
36176
|
if (window.location.href.includes("edit-application")) {
|
|
@@ -36111,7 +36263,7 @@ const EditApplication = _ref => {
|
|
|
36111
36263
|
}]
|
|
36112
36264
|
};
|
|
36113
36265
|
});
|
|
36114
|
-
if ((Waterresult && Object.keys(Waterresult).length > 0 || !Sewarageresult) && Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || configLoading || Object.keys(params).length === 0) {
|
|
36266
|
+
if ((Waterresult && Object.keys(Waterresult).length > 0 || !Sewarageresult) && Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || configLoading || Object.keys(params).length === 0 || !(params !== null && params !== void 0 && params.DocumentsRequired)) {
|
|
36115
36267
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
36116
36268
|
}
|
|
36117
36269
|
const Acknowledgement = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSAcknowledgement");
|
|
@@ -36245,7 +36397,7 @@ const CheckPage = _ref => {
|
|
|
36245
36397
|
cpt
|
|
36246
36398
|
} = value;
|
|
36247
36399
|
let routeLink = `/digit-ui/citizen/ws/create-application`;
|
|
36248
|
-
if (window.location.href.includes("/edit-application
|
|
36400
|
+
if (window.location.href.includes("/edit-application")) routeLink = `/digit-ui/citizen/ws/edit-application/${value === null || value === void 0 ? void 0 : value.tenantId}`;
|
|
36249
36401
|
function routeTo(jumpTo) {
|
|
36250
36402
|
location.href = jumpTo;
|
|
36251
36403
|
}
|
|
@@ -37076,7 +37228,7 @@ const WSAcknowledgement = _ref => {
|
|
|
37076
37228
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
37077
37229
|
const WSmutation = Digit.Hooks.ws.useWSUpdateAPI("WATER");
|
|
37078
37230
|
const SWmutation = Digit.Hooks.ws.useWSUpdateAPI("SEWERAGE");
|
|
37079
|
-
let isEdit = window.location.href.includes("/edit-application
|
|
37231
|
+
let isEdit = window.location.href.includes("/edit-application") || window.location.href.includes("/modify-connection");
|
|
37080
37232
|
const {
|
|
37081
37233
|
data: storeData
|
|
37082
37234
|
} = Digit.Hooks.useStore.getInitData();
|
|
@@ -37187,7 +37339,7 @@ const WSAcknowledgement = _ref => {
|
|
|
37187
37339
|
onClick: handleDownloadPdfSewerage
|
|
37188
37340
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
37189
37341
|
to: {
|
|
37190
|
-
pathname: `/digit-ui
|
|
37342
|
+
pathname: `/digit-ui/${window.location.pathname.includes("employee") ? "employee" : "citizen"}`
|
|
37191
37343
|
}
|
|
37192
37344
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
37193
37345
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
@@ -37203,7 +37355,7 @@ const CheckPage$1 = () => {
|
|
|
37203
37355
|
const value = Digit.SessionStorage.get("WS_DISCONNECTION");
|
|
37204
37356
|
const [documents, setDocuments] = useState(value.WSDisconnectionForm.documents || []);
|
|
37205
37357
|
let routeLink = `/digit-ui/citizen/ws/disconnect-application`;
|
|
37206
|
-
if (window.location.href.includes("/edit-application
|
|
37358
|
+
if (window.location.href.includes("/edit-application")) routeLink = `/digit-ui/citizen/ws/edit-disconnect-application`;
|
|
37207
37359
|
function routeTo(jumpTo) {
|
|
37208
37360
|
location.href = jumpTo;
|
|
37209
37361
|
}
|
|
@@ -38418,7 +38570,7 @@ const WSInfoPage = () => {
|
|
|
38418
38570
|
setOtp("");
|
|
38419
38571
|
setIsMobileVerified(false);
|
|
38420
38572
|
},
|
|
38421
|
-
placeholder: t("
|
|
38573
|
+
placeholder: t("CORE_COMMON_PHONE_NUMBER_PLACEHOLDER") || "Enter mobile number",
|
|
38422
38574
|
maxLength: 10,
|
|
38423
38575
|
disabled: isMobileVerified
|
|
38424
38576
|
})), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && !isMobileVerified && !showOtpVerification && /*#__PURE__*/React.createElement("button", {
|
|
@@ -38620,7 +38772,7 @@ const WSInfoPage = () => {
|
|
|
38620
38772
|
marginBottom: "24px",
|
|
38621
38773
|
lineHeight: "2"
|
|
38622
38774
|
}
|
|
38623
|
-
}, /*#__PURE__*/React.createElement("li", null, t("WS_SERVICE_TYPE")), /*#__PURE__*/React.createElement("li", null, t("
|
|
38775
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_SERVICE_TYPE")), /*#__PURE__*/React.createElement("li", null, t("WS_APPLICANT_TYPE")), /*#__PURE__*/React.createElement("li", null, t("WS_DIVYANGJAN"))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
38624
38776
|
style: {
|
|
38625
38777
|
marginTop: "0",
|
|
38626
38778
|
marginBottom: "0"
|
|
@@ -38632,7 +38784,7 @@ const WSInfoPage = () => {
|
|
|
38632
38784
|
marginBottom: "24px",
|
|
38633
38785
|
lineHeight: "2"
|
|
38634
38786
|
}
|
|
38635
|
-
}, /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_NAME")), /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_MIDDLE_NAME")), /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_LAST_NAME")), /*#__PURE__*/React.createElement("li", null, t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")), /*#__PURE__*/React.createElement("li", null, t("
|
|
38787
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_NAME")), /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_MIDDLE_NAME")), /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_LAST_NAME")), /*#__PURE__*/React.createElement("li", null, t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")), /*#__PURE__*/React.createElement("li", null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React.createElement("li", null, t("WS_EMAIL_ID"))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
38636
38788
|
style: {
|
|
38637
38789
|
marginTop: "0",
|
|
38638
38790
|
marginBottom: "0"
|
|
@@ -38644,7 +38796,7 @@ const WSInfoPage = () => {
|
|
|
38644
38796
|
marginBottom: "24px",
|
|
38645
38797
|
lineHeight: "2"
|
|
38646
38798
|
}
|
|
38647
|
-
}, /*#__PURE__*/React.createElement("li", null, t("
|
|
38799
|
+
}, /*#__PURE__*/React.createElement("li", null, t("COMMON_ADDRESS_TYPE")), /*#__PURE__*/React.createElement("li", null, t("CITY")), /*#__PURE__*/React.createElement("li", null, t("PINCODE")), /*#__PURE__*/React.createElement("li", null, t("LOCALITY")), /*#__PURE__*/React.createElement("li", null, t("SubLocality")), /*#__PURE__*/React.createElement("li", null, t("STREET_NAME")), /*#__PURE__*/React.createElement("li", null, t("ADDRESS_LINE1")), /*#__PURE__*/React.createElement("li", null, t("ADDRESS_LINE2")), /*#__PURE__*/React.createElement("li", null, t("HOUSE_NO")), /*#__PURE__*/React.createElement("li", null, t("LATITUDE")), /*#__PURE__*/React.createElement("li", null, t("LONGITUDE")), /*#__PURE__*/React.createElement("li", null, t("ASSEMBLY")), /*#__PURE__*/React.createElement("li", null, t("WARD")), /*#__PURE__*/React.createElement("li", null, t("ZONE")), /*#__PURE__*/React.createElement("li", null, t("LANDMARK"))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
38648
38800
|
style: {
|
|
38649
38801
|
marginTop: "0",
|
|
38650
38802
|
marginBottom: "0"
|
|
@@ -38688,7 +38840,7 @@ const WSInfoPage = () => {
|
|
|
38688
38840
|
marginBottom: "24px",
|
|
38689
38841
|
lineHeight: "2"
|
|
38690
38842
|
}
|
|
38691
|
-
}, /*#__PURE__*/React.createElement("li", null, t("WS_DOC_IDENTITY_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ADDRESS_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ELECTRICITY_BILL")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PLUMBER_REPORT")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_BUILDING_PLAN")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PROPERTY_TAX_RECEIPT"))
|
|
38843
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_DOC_IDENTITY_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ADDRESS_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ELECTRICITY_BILL")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PLUMBER_REPORT")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_BUILDING_PLAN")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PROPERTY_TAX_RECEIPT")))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement(SubmitBar, {
|
|
38692
38844
|
label: t("CS_COMMON_NEXT"),
|
|
38693
38845
|
onSubmit: () => {},
|
|
38694
38846
|
disabled: true
|
|
@@ -39766,7 +39918,7 @@ const ViewIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
39766
39918
|
cy: "12",
|
|
39767
39919
|
r: "3"
|
|
39768
39920
|
}));
|
|
39769
|
-
const CameraCaptureModal
|
|
39921
|
+
const CameraCaptureModal = _ref => {
|
|
39770
39922
|
let {
|
|
39771
39923
|
onCapture,
|
|
39772
39924
|
onClose,
|
|
@@ -40402,7 +40554,7 @@ const FileUploadField = _ref6 => {
|
|
|
40402
40554
|
})))));
|
|
40403
40555
|
};
|
|
40404
40556
|
const NewApplication = () => {
|
|
40405
|
-
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3,
|
|
40557
|
+
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch4, _watch6, _watch8, _watch0, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
|
|
40406
40558
|
const {
|
|
40407
40559
|
t
|
|
40408
40560
|
} = useTranslation();
|
|
@@ -42266,45 +42418,15 @@ const NewApplication = () => {
|
|
|
42266
42418
|
background: "#F3F4F6",
|
|
42267
42419
|
padding: "4px 12px",
|
|
42268
42420
|
borderRadius: "20px",
|
|
42269
|
-
width: "fit-content"
|
|
42270
|
-
border: "1px solid #E5E7EB"
|
|
42421
|
+
width: "fit-content"
|
|
42271
42422
|
}
|
|
42272
|
-
}, /*#__PURE__*/React.createElement(
|
|
42423
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
42273
42424
|
style: {
|
|
42274
|
-
margin: 0,
|
|
42275
42425
|
fontSize: "14px",
|
|
42276
|
-
|
|
42277
|
-
|
|
42426
|
+
fontWeight: "500",
|
|
42427
|
+
color: "#0B0C0C"
|
|
42278
42428
|
}
|
|
42279
|
-
}, watch("documents.applicantPhoto").fileName), /*#__PURE__*/React.createElement(
|
|
42280
|
-
onClick: () => clearUploadedFile("documents.applicantPhoto", val => setValue("documents.applicantPhoto", val)),
|
|
42281
|
-
style: {
|
|
42282
|
-
cursor: "pointer",
|
|
42283
|
-
display: "flex",
|
|
42284
|
-
alignItems: "center",
|
|
42285
|
-
color: "#6B7280"
|
|
42286
|
-
},
|
|
42287
|
-
title: "Remove Photo"
|
|
42288
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
42289
|
-
width: "16",
|
|
42290
|
-
height: "16",
|
|
42291
|
-
viewBox: "0 0 24 24",
|
|
42292
|
-
fill: "none",
|
|
42293
|
-
stroke: "currentColor",
|
|
42294
|
-
strokeWidth: "3",
|
|
42295
|
-
strokeLinecap: "round",
|
|
42296
|
-
strokeLinejoin: "round"
|
|
42297
|
-
}, /*#__PURE__*/React.createElement("line", {
|
|
42298
|
-
x1: "18",
|
|
42299
|
-
y1: "6",
|
|
42300
|
-
x2: "6",
|
|
42301
|
-
y2: "18"
|
|
42302
|
-
}), /*#__PURE__*/React.createElement("line", {
|
|
42303
|
-
x1: "6",
|
|
42304
|
-
y1: "6",
|
|
42305
|
-
x2: "18",
|
|
42306
|
-
y2: "18"
|
|
42307
|
-
}))))), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
42429
|
+
}, ((_watch4 = watch("documents.applicantPhoto")) === null || _watch4 === void 0 ? void 0 : _watch4.fileName) || "Applicant_Photo.jpg"))), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
42308
42430
|
error: getFieldError("documents.proofOfIdentity"),
|
|
42309
42431
|
label: "Proof of Identity *",
|
|
42310
42432
|
required: true
|
|
@@ -42350,10 +42472,10 @@ const NewApplication = () => {
|
|
|
42350
42472
|
type: "button",
|
|
42351
42473
|
className: "document-action-btn",
|
|
42352
42474
|
onClick: () => {
|
|
42353
|
-
var
|
|
42354
|
-
return handleView((
|
|
42475
|
+
var _watch5;
|
|
42476
|
+
return handleView((_watch5 = watch("documents.identityProofFile")) === null || _watch5 === void 0 ? void 0 : _watch5.fileStoreId, stateId);
|
|
42355
42477
|
},
|
|
42356
|
-
disabled: !((
|
|
42478
|
+
disabled: !((_watch6 = watch("documents.identityProofFile")) !== null && _watch6 !== void 0 && _watch6.fileStoreId)
|
|
42357
42479
|
}, /*#__PURE__*/React.createElement(ViewIcon, null), " View")), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
42358
42480
|
error: getFieldError("documents.ownershipStatus"),
|
|
42359
42481
|
label: "Proof of Ownership *",
|
|
@@ -42400,10 +42522,10 @@ const NewApplication = () => {
|
|
|
42400
42522
|
type: "button",
|
|
42401
42523
|
className: "document-action-btn",
|
|
42402
42524
|
onClick: () => {
|
|
42403
|
-
var
|
|
42404
|
-
return handleView((
|
|
42525
|
+
var _watch7;
|
|
42526
|
+
return handleView((_watch7 = watch("documents.ownershipDocumentFile")) === null || _watch7 === void 0 ? void 0 : _watch7.fileStoreId, stateId);
|
|
42405
42527
|
},
|
|
42406
|
-
disabled: !((
|
|
42528
|
+
disabled: !((_watch8 = watch("documents.ownershipDocumentFile")) !== null && _watch8 !== void 0 && _watch8.fileStoreId)
|
|
42407
42529
|
}, /*#__PURE__*/React.createElement(ViewIcon, null), " View")), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
42408
42530
|
error: getFieldError("documents.otherDocument"),
|
|
42409
42531
|
label: "Other"
|
|
@@ -42446,10 +42568,10 @@ const NewApplication = () => {
|
|
|
42446
42568
|
type: "button",
|
|
42447
42569
|
className: "document-action-btn",
|
|
42448
42570
|
onClick: () => {
|
|
42449
|
-
var
|
|
42450
|
-
return handleView((
|
|
42571
|
+
var _watch9;
|
|
42572
|
+
return handleView((_watch9 = watch("documents.otherDocumentFile")) === null || _watch9 === void 0 ? void 0 : _watch9.fileStoreId, stateId);
|
|
42451
42573
|
},
|
|
42452
|
-
disabled: !((
|
|
42574
|
+
disabled: !((_watch0 = watch("documents.otherDocumentFile")) !== null && _watch0 !== void 0 && _watch0.fileStoreId)
|
|
42453
42575
|
}, /*#__PURE__*/React.createElement(ViewIcon, null), " View"))), /*#__PURE__*/React.createElement(SectionCard, {
|
|
42454
42576
|
description: "Declaration and undertaking to be signed by the applicant.",
|
|
42455
42577
|
isOpen: collapsedSections.declaration,
|
|
@@ -42812,7 +42934,7 @@ const NewApplication = () => {
|
|
|
42812
42934
|
label: showToast === null || showToast === void 0 ? void 0 : showToast.message,
|
|
42813
42935
|
onClose: closeToast,
|
|
42814
42936
|
warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning
|
|
42815
|
-
}) : null, showCamera && /*#__PURE__*/React.createElement(CameraCaptureModal
|
|
42937
|
+
}) : null, showCamera && /*#__PURE__*/React.createElement(CameraCaptureModal, {
|
|
42816
42938
|
onCapture: handleCapture,
|
|
42817
42939
|
onClose: () => setShowCamera(false),
|
|
42818
42940
|
t: t
|
|
@@ -47169,7 +47291,7 @@ function PropertyDocuments(_ref) {
|
|
|
47169
47291
|
});
|
|
47170
47292
|
});
|
|
47171
47293
|
const allChecked = requiredDocsCount === 0 || checkedCount === requiredDocsCount;
|
|
47172
|
-
const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION" || applicationStatus === "PENDING_APPROVAL_FOR_MUTATION" || applicationStatus === "PENDING_FOR_ZRO_APPROVAL";
|
|
47294
|
+
const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION" || applicationStatus === "PENDING_APPROVAL_FOR_MUTATION" || applicationStatus === "PENDING_FOR_ZRO_APPROVAL" || applicationStatus === "PENDING_FOR_CITIZEN_ACTION";
|
|
47173
47295
|
const finalVerified = isDocVerifState ? allChecked : true;
|
|
47174
47296
|
window.isDocumentsVerified = finalVerified;
|
|
47175
47297
|
window.dispatchEvent(new CustomEvent("DOCUMENTS_VERIFIED", {
|
|
@@ -47199,7 +47321,7 @@ function PropertyDocuments(_ref) {
|
|
|
47199
47321
|
const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("/obps") || window.location.href.includes("employee/ws");
|
|
47200
47322
|
const isWSLocation = window.location.href.includes("/ws/") || window.location.href.includes("employee/ws") || window.location.href.includes("citizen/ws");
|
|
47201
47323
|
const isStakeholderApplication = window.location.href.includes("stakeholder");
|
|
47202
|
-
const canVerifyDocuments = ["PENDING_FOR_DOCUMENT_VERIFICATION", "PENDING_APPROVAL_FOR_MUTATION", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationStatus);
|
|
47324
|
+
const canVerifyDocuments = ["PENDING_FOR_DOCUMENT_VERIFICATION", "PENDING_APPROVAL_FOR_MUTATION", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_CITIZEN_ACTION"].includes(applicationStatus);
|
|
47203
47325
|
const getDocSubType = documentType => {
|
|
47204
47326
|
if (!documentType) return "";
|
|
47205
47327
|
const parts = documentType.split(".");
|
|
@@ -48625,7 +48747,7 @@ const DueVerification = _ref => {
|
|
|
48625
48747
|
});
|
|
48626
48748
|
}, [applicationData]);
|
|
48627
48749
|
const isPendingApproval = ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_ZRO_APPROVAL"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
48628
|
-
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
48750
|
+
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED", "PENDING_FOR_CITIZEN_ACTION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
48629
48751
|
const columns = useMemo(() => {
|
|
48630
48752
|
const baseColumns = [{
|
|
48631
48753
|
Header: t("K No."),
|
|
@@ -49520,7 +49642,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
49520
49642
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents) && index === documentsDetailIndex && /*#__PURE__*/React.createElement(PropertyDocuments, {
|
|
49521
49643
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents,
|
|
49522
49644
|
applicationStatus: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.actionState) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.processInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.ProcessInstances) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0[0]) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1.state) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.state) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status)
|
|
49523
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
|
|
49645
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_CITIZEN_ACTION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
|
|
49524
49646
|
applicationData: applicationData
|
|
49525
49647
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
49526
49648
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -50706,16 +50828,16 @@ const ApplicationDetails$1 = () => {
|
|
|
50706
50828
|
};
|
|
50707
50829
|
|
|
50708
50830
|
const GetConnectionDetails = () => {
|
|
50709
|
-
var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$
|
|
50831
|
+
var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$a18, _applicationDetails$f5, _applicationDetails$p2, _applicationDetails$p3, _applicationDetails$a19, _applicationDetails$a20, _applicationDetails$a21, _applicationDetails$f6, _applicationDetails$f7;
|
|
50710
50832
|
const getBillSearch = function () {
|
|
50711
50833
|
try {
|
|
50712
50834
|
const _temp = function (_applicationDetails$f8) {
|
|
50713
50835
|
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f8 = applicationDetails.fetchBillsData) === null || _applicationDetails$f8 === void 0 ? void 0 : _applicationDetails$f8.length) > 0) {
|
|
50714
|
-
var _applicationDetails$
|
|
50836
|
+
var _applicationDetails$a22;
|
|
50715
50837
|
const service = serviceType === "WATER" ? "WS" : "SW";
|
|
50716
50838
|
let wsSearchFilters = {
|
|
50717
50839
|
isConnectionSearch: true,
|
|
50718
|
-
connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
50840
|
+
connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a22 = applicationDetails.applicationData) === null || _applicationDetails$a22 === void 0 ? void 0 : _applicationDetails$a22.connectionNo
|
|
50719
50841
|
};
|
|
50720
50842
|
return Promise.resolve(Digit.WSService.search({
|
|
50721
50843
|
tenantId,
|
|
@@ -50728,8 +50850,8 @@ const GetConnectionDetails = () => {
|
|
|
50728
50850
|
bussinessService: service
|
|
50729
50851
|
};
|
|
50730
50852
|
if ((wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$5 = wsConnectionDetails.WaterConnection) === null || _wsConnectionDetails$5 === void 0 ? void 0 : _wsConnectionDetails$5.length) > 0 || (wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$6 = wsConnectionDetails.SewerageConnections) === null || _wsConnectionDetails$6 === void 0 ? void 0 : _wsConnectionDetails$6.length) > 0) {
|
|
50731
|
-
var _applicationDetails$
|
|
50732
|
-
downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
50853
|
+
var _applicationDetails$a23;
|
|
50854
|
+
downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a23 = applicationDetails.applicationData) === null || _applicationDetails$a23 === void 0 ? void 0 : _applicationDetails$a23.connectionNo, filters);
|
|
50733
50855
|
}
|
|
50734
50856
|
});
|
|
50735
50857
|
}
|
|
@@ -50906,8 +51028,10 @@ const GetConnectionDetails = () => {
|
|
|
50906
51028
|
var _billData$, _applicationDetails$f3;
|
|
50907
51029
|
console.log("due", due, applicationDetails);
|
|
50908
51030
|
if (((_billData$ = billData[0]) === null || _billData$ === void 0 ? void 0 : _billData$.status) === "ACTIVE" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f3 = applicationDetails.fetchBillsData) === null || _applicationDetails$f3 === void 0 ? void 0 : _applicationDetails$f3.length) <= 0 || due == "0" || due < 0) {
|
|
51031
|
+
var _applicationDetails$a17;
|
|
50909
51032
|
Digit.SessionStorage.set("WS_DISCONNECTION", applicationDetails);
|
|
50910
|
-
|
|
51033
|
+
const connectionNumber = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.connectionNo) || applicationNumber;
|
|
51034
|
+
history.push(`${pathname}?from=connection-details&connectionNumber=${encodeURIComponent(connectionNumber)}`);
|
|
50911
51035
|
} else {
|
|
50912
51036
|
setshowModal(true);
|
|
50913
51037
|
}
|
|
@@ -50941,7 +51065,7 @@ const GetConnectionDetails = () => {
|
|
|
50941
51065
|
getRestorationButton();
|
|
50942
51066
|
}
|
|
50943
51067
|
}
|
|
50944
|
-
const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
51068
|
+
const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a18 = applicationDetails.applicationData) === null || _applicationDetails$a18 === void 0 ? void 0 : _applicationDetails$a18.status) === "Active" ? true : false;
|
|
50945
51069
|
const showAction = checkApplicationStatusForDisconnection ? actionConfig : actionConfig.filter(item => item !== "DISCONNECTION_BUTTON");
|
|
50946
51070
|
const showActionRestoration = ["RESTORATION_BUTTON"];
|
|
50947
51071
|
let dowloadOptions = [];
|
|
@@ -51025,7 +51149,7 @@ const GetConnectionDetails = () => {
|
|
|
51025
51149
|
ref: actionMenuRef,
|
|
51026
51150
|
label: t("WF_TAKE_ACTION"),
|
|
51027
51151
|
onSubmit: () => setDisplayMenu(!displayMenu)
|
|
51028
|
-
})) : applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
51152
|
+
})) : applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a19 = applicationDetails.applicationData) !== null && _applicationDetails$a19 !== void 0 && _applicationDetails$a19.isDisconnectionTemporary && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a20 = applicationDetails.applicationData) === null || _applicationDetails$a20 === void 0 ? void 0 : _applicationDetails$a20.status) !== "Active" && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a21 = applicationDetails.applicationData) === null || _applicationDetails$a21 === void 0 ? void 0 : _applicationDetails$a21.applicationStatus) == "DISCONNECTION_EXECUTED" ? /*#__PURE__*/React.createElement(ActionBar, null, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
|
|
51029
51153
|
options: showActionRestoration,
|
|
51030
51154
|
localeKeyPrefix: "WS",
|
|
51031
51155
|
t: t,
|
|
@@ -51251,7 +51375,7 @@ const ActivateConnection = () => {
|
|
|
51251
51375
|
setShowToast(false);
|
|
51252
51376
|
}, 3000);
|
|
51253
51377
|
} else {
|
|
51254
|
-
var _Object$keys, _details3, _formDetails$connecti, _formDetails$connecti2, _formDetails$connecti3, _formDetails$connecti4, _formDetails$connecti5, _formDetails$connecti6, _formDetails$connecti7, _formDetails$connecti8, _formDetails$connecti9, _formDetails$connecti0, _formDetails$connecti1, _formDetails$connecti10, _formDetails$connecti11, _formDetails$connecti12, _formDetails$connecti13, _formDetails$connecti14, _formDetails$connecti15, _formDetails$connecti16, _formDetails$connecti17, _formDetails$connecti18, _formDetails$connecti19, _formDetails$connecti20, _formDetails$connecti21, _formDetails$connecti22, _formDetails$connecti23, _formDetails$connecti24, _formDetails$connecti25, _formDetails$connecti26, _formDetails$connecti27, _formDetails$connecti28, _formDetails$plumberD, _formDetails$plumberD2, _formDetails$plumberD3,
|
|
51378
|
+
var _Object$keys, _details3, _formDetails$connecti, _formDetails$connecti2, _formDetails$connecti3, _formDetails$connecti4, _formDetails$connecti5, _formDetails$connecti6, _formDetails$connecti7, _formDetails$connecti8, _formDetails$connecti9, _formDetails$connecti0, _formDetails$connecti1, _formDetails$connecti10, _formDetails$connecti11, _formDetails$connecti12, _formDetails$connecti13, _formDetails$connecti14, _formDetails$connecti15, _formDetails$connecti16, _formDetails$connecti17, _formDetails$connecti18, _formDetails$connecti19, _formDetails$connecti20, _formDetails$connecti21, _formDetails$connecti22, _formDetails$connecti23, _formDetails$connecti24, _formDetails$connecti25, _formDetails$connecti26, _formDetails$connecti27, _formDetails$connecti28, _formDetails$plumberD, _formDetails$plumberD2, _formDetails$plumberD3, _formData$plumberInfo, _formDetails$plumberD7, _formDetails$plumberD8, _formDetails$plumberD9, _formDetails$plumberD0, _formDetails$plumberD1, _formDetails$plumberD10, _formDetails$plumberD11, _formDetails$plumberD12, _formDetails$plumberD13, _formDetails$plumberD14, _formDetails$plumberD15, _formDetails$plumberD16, _formDetails$activati9, _formDetails$activati0, _formDetails$activati1, _formDetails$activati10;
|
|
51255
51379
|
function _temp4() {
|
|
51256
51380
|
var _formDetails$activati, _formDetails$activati2, _formDetails$activati3, _formDetails$activati4;
|
|
51257
51381
|
function _temp2() {
|
|
@@ -51321,11 +51445,15 @@ const ActivateConnection = () => {
|
|
|
51321
51445
|
if (formDetails !== null && formDetails !== void 0 && (_formDetails$connecti17 = formDetails.connectionDetails) !== null && _formDetails$connecti17 !== void 0 && (_formDetails$connecti18 = _formDetails$connecti17[0]) !== null && _formDetails$connecti18 !== void 0 && _formDetails$connecti18.noOfTaps) formData.noOfTaps = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$connecti19 = formDetails.connectionDetails) === null || _formDetails$connecti19 === void 0 ? void 0 : (_formDetails$connecti20 = _formDetails$connecti19[0]) === null || _formDetails$connecti20 === void 0 ? void 0 : _formDetails$connecti20.noOfTaps;
|
|
51322
51446
|
if (formDetails !== null && formDetails !== void 0 && (_formDetails$connecti21 = formDetails.connectionDetails) !== null && _formDetails$connecti21 !== void 0 && (_formDetails$connecti22 = _formDetails$connecti21[0]) !== null && _formDetails$connecti22 !== void 0 && _formDetails$connecti22.noOfWaterClosets) formData.noOfWaterClosets = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$connecti23 = formDetails.connectionDetails) === null || _formDetails$connecti23 === void 0 ? void 0 : (_formDetails$connecti24 = _formDetails$connecti23[0]) === null || _formDetails$connecti24 === void 0 ? void 0 : _formDetails$connecti24.noOfWaterClosets;
|
|
51323
51447
|
if (formDetails !== null && formDetails !== void 0 && (_formDetails$connecti25 = formDetails.connectionDetails) !== null && _formDetails$connecti25 !== void 0 && (_formDetails$connecti26 = _formDetails$connecti25[0]) !== null && _formDetails$connecti26 !== void 0 && _formDetails$connecti26.noOfToilets) formData.noOfToilets = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$connecti27 = formDetails.connectionDetails) === null || _formDetails$connecti27 === void 0 ? void 0 : (_formDetails$connecti28 = _formDetails$connecti27[0]) === null || _formDetails$connecti28 === void 0 ? void 0 : _formDetails$connecti28.noOfToilets;
|
|
51324
|
-
if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD = formDetails.plumberDetails) !== null && _formDetails$plumberD !== void 0 && (_formDetails$plumberD2 = _formDetails$plumberD[0]) !== null && _formDetails$plumberD2 !== void 0 && (_formDetails$plumberD3 = _formDetails$plumberD2.detailsProvidedBy) !== null && _formDetails$plumberD3 !== void 0 && _formDetails$plumberD3.code)
|
|
51325
|
-
|
|
51326
|
-
|
|
51327
|
-
|
|
51328
|
-
|
|
51448
|
+
if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD = formDetails.plumberDetails) !== null && _formDetails$plumberD !== void 0 && (_formDetails$plumberD2 = _formDetails$plumberD[0]) !== null && _formDetails$plumberD2 !== void 0 && (_formDetails$plumberD3 = _formDetails$plumberD2.detailsProvidedBy) !== null && _formDetails$plumberD3 !== void 0 && _formDetails$plumberD3.code) {
|
|
51449
|
+
var _formDetails$plumberD4, _formDetails$plumberD5, _formDetails$plumberD6;
|
|
51450
|
+
if (!formData.additionalDetails) formData.additionalDetails = {};
|
|
51451
|
+
formData.additionalDetails.detailsProvidedBy = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD4 = formDetails.plumberDetails) === null || _formDetails$plumberD4 === void 0 ? void 0 : (_formDetails$plumberD5 = _formDetails$plumberD4[0]) === null || _formDetails$plumberD5 === void 0 ? void 0 : (_formDetails$plumberD6 = _formDetails$plumberD5.detailsProvidedBy) === null || _formDetails$plumberD6 === void 0 ? void 0 : _formDetails$plumberD6.code;
|
|
51452
|
+
}
|
|
51453
|
+
if (!(formData !== null && formData !== void 0 && formData.plumberInfo) || !(formData !== null && formData !== void 0 && (_formData$plumberInfo = formData.plumberInfo) !== null && _formData$plumberInfo !== void 0 && _formData$plumberInfo[0])) formData.plumberInfo = [{}];
|
|
51454
|
+
if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD7 = formDetails.plumberDetails) !== null && _formDetails$plumberD7 !== void 0 && (_formDetails$plumberD8 = _formDetails$plumberD7[0]) !== null && _formDetails$plumberD8 !== void 0 && _formDetails$plumberD8.plumberName) formData.plumberInfo[0].name = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD9 = formDetails.plumberDetails) === null || _formDetails$plumberD9 === void 0 ? void 0 : (_formDetails$plumberD0 = _formDetails$plumberD9[0]) === null || _formDetails$plumberD0 === void 0 ? void 0 : _formDetails$plumberD0.plumberName;
|
|
51455
|
+
if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD1 = formDetails.plumberDetails) !== null && _formDetails$plumberD1 !== void 0 && (_formDetails$plumberD10 = _formDetails$plumberD1[0]) !== null && _formDetails$plumberD10 !== void 0 && _formDetails$plumberD10.plumberLicenseNo) formData.plumberInfo[0].licenseNo = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD11 = formDetails.plumberDetails) === null || _formDetails$plumberD11 === void 0 ? void 0 : (_formDetails$plumberD12 = _formDetails$plumberD11[0]) === null || _formDetails$plumberD12 === void 0 ? void 0 : _formDetails$plumberD12.plumberLicenseNo;
|
|
51456
|
+
if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD13 = formDetails.plumberDetails) !== null && _formDetails$plumberD13 !== void 0 && (_formDetails$plumberD14 = _formDetails$plumberD13[0]) !== null && _formDetails$plumberD14 !== void 0 && _formDetails$plumberD14.plumberMobileNo) formData.plumberInfo[0].mobileNumber = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD15 = formDetails.plumberDetails) === null || _formDetails$plumberD15 === void 0 ? void 0 : (_formDetails$plumberD16 = _formDetails$plumberD15[0]) === null || _formDetails$plumberD16 === void 0 ? void 0 : _formDetails$plumberD16.plumberMobileNo;
|
|
51329
51457
|
if (formDetails !== null && formDetails !== void 0 && (_formDetails$activati9 = formDetails.activationDetails) !== null && _formDetails$activati9 !== void 0 && (_formDetails$activati0 = _formDetails$activati9[0]) !== null && _formDetails$activati0 !== void 0 && _formDetails$activati0.meterId) formData.meterId = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$activati1 = formDetails.activationDetails) === null || _formDetails$activati1 === void 0 ? void 0 : (_formDetails$activati10 = _formDetails$activati1[0]) === null || _formDetails$activati10 === void 0 ? void 0 : _formDetails$activati10.meterId;
|
|
51330
51458
|
const _temp3 = function (_formDetails$activati11, _formDetails$activati12, _formDetails$activati13, _formDetails$activati14) {
|
|
51331
51459
|
if (formDetails !== null && formDetails !== void 0 && (_formDetails$activati11 = formDetails.activationDetails) !== null && _formDetails$activati11 !== void 0 && (_formDetails$activati12 = _formDetails$activati11[0]) !== null && _formDetails$activati12 !== void 0 && _formDetails$activati12.meterInstallationDate) return Promise.resolve(getConvertedDate(formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$activati13 = formDetails.activationDetails) === null || _formDetails$activati13 === void 0 ? void 0 : (_formDetails$activati14 = _formDetails$activati13[0]) === null || _formDetails$activati14 === void 0 ? void 0 : _formDetails$activati14.meterInstallationDate)).then(function (_getConvertedDate) {
|
|
@@ -56417,20 +56545,12 @@ const DisconnectionApplication = () => {
|
|
|
56417
56545
|
t
|
|
56418
56546
|
} = useTranslation();
|
|
56419
56547
|
const match = useRouteMatch();
|
|
56420
|
-
const
|
|
56421
|
-
let {
|
|
56422
|
-
data: newConfig,
|
|
56423
|
-
isLoading
|
|
56424
|
-
} = Digit.Hooks.ws.useWSConfigMDMS.WSDisconnectionConfig(stateId, {});
|
|
56548
|
+
const location = useLocation();
|
|
56425
56549
|
let config = [];
|
|
56426
|
-
|
|
56427
|
-
|
|
56428
|
-
|
|
56429
|
-
|
|
56430
|
-
config.indexRoute = "docsrequired";
|
|
56431
|
-
} else {
|
|
56432
|
-
return /*#__PURE__*/React.createElement(Loader, null);
|
|
56433
|
-
}
|
|
56550
|
+
newConfig$1.filter(e => e.head === "NEW_DISCONNECTION").forEach(obj => {
|
|
56551
|
+
config = config.concat(obj.body.filter(a => !a.hideInEmployee));
|
|
56552
|
+
});
|
|
56553
|
+
config.indexRoute = "docsrequired";
|
|
56434
56554
|
return /*#__PURE__*/React.createElement(Switch, null, config.map((routeObj, index) => {
|
|
56435
56555
|
const {
|
|
56436
56556
|
component,
|
|
@@ -56454,7 +56574,7 @@ const DisconnectionApplication = () => {
|
|
|
56454
56574
|
userType: "employee"
|
|
56455
56575
|
}));
|
|
56456
56576
|
}), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(Redirect, {
|
|
56457
|
-
to: `${getPath$5(match.path, match.params)}/${config.indexRoute}`
|
|
56577
|
+
to: `${getPath$5(match.path, match.params)}/${config.indexRoute}${location.search}`
|
|
56458
56578
|
})));
|
|
56459
56579
|
};
|
|
56460
56580
|
|
|
@@ -58257,7 +58377,7 @@ const openFilePDF = fileId => {
|
|
|
58257
58377
|
}).catch(error => console.error("Error fetching file:", error));
|
|
58258
58378
|
};
|
|
58259
58379
|
const CheckPage$4 = _ref2 => {
|
|
58260
|
-
var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$
|
|
58380
|
+
var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2;
|
|
58261
58381
|
let {
|
|
58262
58382
|
data,
|
|
58263
58383
|
onSubmit,
|
|
@@ -58271,52 +58391,6 @@ const CheckPage$4 = _ref2 => {
|
|
|
58271
58391
|
const [docFileType, setDocFileType] = useState("");
|
|
58272
58392
|
const [formState, setFormState] = useState(JSON.parse(sessionStorage.getItem("FORMSTATE_ERRORS")) || {});
|
|
58273
58393
|
const isCitizen = ((_Digit$UserService$ge = Digit.UserService.getType()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.toUpperCase()) === "CITIZEN";
|
|
58274
|
-
const handleViewDocument = function (fileStoreId) {
|
|
58275
|
-
try {
|
|
58276
|
-
const _temp3 = function () {
|
|
58277
|
-
if (fileStoreId) {
|
|
58278
|
-
const _temp2 = function () {
|
|
58279
|
-
if (typeof fileStoreId === "object" && fileStoreId.type) {
|
|
58280
|
-
const fileURL = URL.createObjectURL(fileStoreId);
|
|
58281
|
-
setDocFileUrl(fileURL);
|
|
58282
|
-
if (fileStoreId.type.includes("pdf")) {
|
|
58283
|
-
setDocFileType("pdf");
|
|
58284
|
-
} else {
|
|
58285
|
-
setDocFileType("image");
|
|
58286
|
-
}
|
|
58287
|
-
setShowDocModal(true);
|
|
58288
|
-
} else {
|
|
58289
|
-
const _temp = _catch(function () {
|
|
58290
|
-
return Promise.resolve(Digit.UploadServices.FileFetchbyid(fileStoreId, Digit.ULBService.getStateId())).then(function (res) {
|
|
58291
|
-
if (res !== null && res !== void 0 && res.data) {
|
|
58292
|
-
const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
|
|
58293
|
-
type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
|
|
58294
|
-
});
|
|
58295
|
-
const fileURL = URL.createObjectURL(blob);
|
|
58296
|
-
setDocFileUrl(fileURL);
|
|
58297
|
-
const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
|
|
58298
|
-
if (contentType.toLowerCase().includes("pdf")) {
|
|
58299
|
-
setDocFileType("pdf");
|
|
58300
|
-
} else {
|
|
58301
|
-
setDocFileType("image");
|
|
58302
|
-
}
|
|
58303
|
-
setShowDocModal(true);
|
|
58304
|
-
}
|
|
58305
|
-
});
|
|
58306
|
-
}, function (err) {
|
|
58307
|
-
console.error("Failed to fetch file URL via FileFetchbyid", err);
|
|
58308
|
-
});
|
|
58309
|
-
if (_temp && _temp.then) return _temp.then(function () {});
|
|
58310
|
-
}
|
|
58311
|
-
}();
|
|
58312
|
-
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
58313
|
-
}
|
|
58314
|
-
}();
|
|
58315
|
-
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
58316
|
-
} catch (e) {
|
|
58317
|
-
return Promise.reject(e);
|
|
58318
|
-
}
|
|
58319
|
-
};
|
|
58320
58394
|
const cpt = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : _data$cpt.details) || {};
|
|
58321
58395
|
let propertyAddress = (data === null || data === void 0 ? void 0 : data.propertyAddress) || {};
|
|
58322
58396
|
if (Object.keys(propertyAddress).length === 0) {
|
|
@@ -58360,43 +58434,10 @@ const CheckPage$4 = _ref2 => {
|
|
|
58360
58434
|
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
58361
58435
|
onClick: onEdit
|
|
58362
58436
|
})
|
|
58363
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
58364
|
-
label: t("WS_CONNECTION_TYPE"),
|
|
58365
|
-
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)))}`
|
|
58366
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
58367
|
-
label: t("WS_WATER_DEMAND_TYPE"),
|
|
58368
|
-
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)))}`
|
|
58369
58437
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
58370
58438
|
label: t("WS_APPLICANT_TYPE"),
|
|
58371
|
-
text: `${t(checkForNA(((
|
|
58372
|
-
}), /*#__PURE__*/React.createElement(
|
|
58373
|
-
label: t("WS_SERVICE_TYPE"),
|
|
58374
|
-
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)))}`
|
|
58375
|
-
}), ((_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, {
|
|
58376
|
-
label: t("WS_DEPARTMENT_TYPE"),
|
|
58377
|
-
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)))}`
|
|
58378
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
58379
|
-
label: t("WS_ORGANIZATION_DEPARTMENT_NAME"),
|
|
58380
|
-
text: `${t(checkForNA((_connectionDetails18 = connectionDetails) === null || _connectionDetails18 === void 0 ? void 0 : _connectionDetails18.institutionName))}`
|
|
58381
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
58382
|
-
label: t("WS_NATURE_OF_WORK"),
|
|
58383
|
-
text: `${t(checkForNA((_connectionDetails19 = connectionDetails) === null || _connectionDetails19 === void 0 ? void 0 : _connectionDetails19.natureOfWork))}`
|
|
58384
|
-
}), ((_connectionDetails20 = connectionDetails) === null || _connectionDetails20 === void 0 ? void 0 : _connectionDetails20.orgDeptDocument) && /*#__PURE__*/React.createElement(Row, {
|
|
58385
|
-
label: t("WS_ORG_DEPT_DOCUMENT"),
|
|
58386
|
-
text: /*#__PURE__*/React.createElement("span", {
|
|
58387
|
-
style: {
|
|
58388
|
-
display: "flex",
|
|
58389
|
-
alignItems: "center",
|
|
58390
|
-
gap: "8px",
|
|
58391
|
-
cursor: "pointer",
|
|
58392
|
-
color: "#f47738"
|
|
58393
|
-
},
|
|
58394
|
-
onClick: () => {
|
|
58395
|
-
var _connectionDetails21;
|
|
58396
|
-
return openFilePDF((_connectionDetails21 = connectionDetails) === null || _connectionDetails21 === void 0 ? void 0 : _connectionDetails21.orgDeptDocument);
|
|
58397
|
-
}
|
|
58398
|
-
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
58399
|
-
}))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
58439
|
+
text: `${t(checkForNA(((_connectionDetails4 = connectionDetails) === null || _connectionDetails4 === void 0 ? void 0 : (_connectionDetails4$a = _connectionDetails4.applicantType) === null || _connectionDetails4$a === void 0 ? void 0 : _connectionDetails4$a.i18nKey) || ((_connectionDetails5 = connectionDetails) === null || _connectionDetails5 === void 0 ? void 0 : (_connectionDetails5$a = _connectionDetails5.applicantType) === null || _connectionDetails5$a === void 0 ? void 0 : _connectionDetails5$a.code) || ((_connectionDetails6 = connectionDetails) === null || _connectionDetails6 === void 0 ? void 0 : _connectionDetails6.applicantType)))}`
|
|
58440
|
+
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
58400
58441
|
style: {
|
|
58401
58442
|
marginTop: "10px",
|
|
58402
58443
|
marginBottom: "30px"
|
|
@@ -58416,21 +58457,15 @@ const CheckPage$4 = _ref2 => {
|
|
|
58416
58457
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
58417
58458
|
label: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL"),
|
|
58418
58459
|
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)))}`
|
|
58419
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
58420
|
-
label: t("WS_OWN_DETAIL_GUARDIAN_LABEL"),
|
|
58421
|
-
text: `${t(checkForNA((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.guardian))}`
|
|
58422
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
58423
|
-
label: t("WS_CONN_HOLDER_OWN_DETAIL_RELATION_LABEL"),
|
|
58424
|
-
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)))}`
|
|
58425
58460
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
58426
58461
|
label: t("CORE_COMMON_MOBILE_NUMBER"),
|
|
58427
|
-
text: `${t(checkForNA((
|
|
58462
|
+
text: `${t(checkForNA((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.mobileNumber))}`
|
|
58428
58463
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
58429
58464
|
label: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
|
|
58430
|
-
text: `${t(checkForNA((
|
|
58465
|
+
text: `${t(checkForNA((_holderDetails8 = holderDetails) === null || _holderDetails8 === void 0 ? void 0 : _holderDetails8.watsAppMobileNumber))}`
|
|
58431
58466
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
58432
58467
|
label: t("WS_EMAIL_ID"),
|
|
58433
|
-
text: `${t(checkForNA((
|
|
58468
|
+
text: `${t(checkForNA((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : _holderDetails9.emailId))}`
|
|
58434
58469
|
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
58435
58470
|
style: {
|
|
58436
58471
|
marginTop: "10px",
|
|
@@ -58609,21 +58644,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
58609
58644
|
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
58610
58645
|
onClick: onEdit
|
|
58611
58646
|
})
|
|
58612
|
-
}), ((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile)) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
58613
|
-
label: t("WS_UPLOAD_SIGNATURE_FILE"),
|
|
58614
|
-
text: (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileName) || (declaration === null || declaration === void 0 ? void 0 : (_declaration$signatur = declaration.signatureFile) === null || _declaration$signatur === void 0 ? void 0 : _declaration$signatur.name) || "Document"
|
|
58615
58647
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
58616
|
-
text: /*#__PURE__*/React.createElement("span", {
|
|
58617
|
-
style: {
|
|
58618
|
-
display: "flex",
|
|
58619
|
-
alignItems: "center",
|
|
58620
|
-
gap: "8px",
|
|
58621
|
-
cursor: "pointer",
|
|
58622
|
-
color: "#f47738"
|
|
58623
|
-
},
|
|
58624
|
-
onClick: () => handleViewDocument((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile))
|
|
58625
|
-
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
58626
|
-
})), /*#__PURE__*/React.createElement(Row, {
|
|
58627
58648
|
label: t("WS_I_AGREE_TO_ALL_DECLARATIONS"),
|
|
58628
58649
|
text: declaration !== null && declaration !== void 0 && declaration.agree ? t("Yes") : t("No")
|
|
58629
58650
|
}))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
@@ -58771,7 +58792,7 @@ const OLDApplication = () => {
|
|
|
58771
58792
|
if (config) {
|
|
58772
58793
|
var _config$body;
|
|
58773
58794
|
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)) || [];
|
|
58774
|
-
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "
|
|
58795
|
+
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDjbEmployee", "WSDivyangjan", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee", "WSDeclaration"];
|
|
58775
58796
|
const reorderedBody = [];
|
|
58776
58797
|
desiredComponentOrder.forEach(compName => {
|
|
58777
58798
|
const section = allCreateSections.find(s => {
|
|
@@ -59407,6 +59428,8 @@ const componentsToRegister = {
|
|
|
59407
59428
|
WSDocumentsEmployee,
|
|
59408
59429
|
WSEditConnectionDetails,
|
|
59409
59430
|
WSDisconnectionDocsRequired,
|
|
59431
|
+
WSDisconnectionKNumber,
|
|
59432
|
+
WSDisconnectionConsumerDetails,
|
|
59410
59433
|
WSDisconnectionForm,
|
|
59411
59434
|
WSRestorationForm,
|
|
59412
59435
|
WSDisconnectionDocumentsForm,
|