@djb25/digit-ui-module-ws 1.0.94 → 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 +453 -1142
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +454 -1143
- 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
|
};
|
|
@@ -11815,14 +11865,14 @@ const App$1 = _ref2 => {
|
|
|
11815
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");
|
|
11816
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");
|
|
11817
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");
|
|
11818
|
-
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");
|
|
11819
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");
|
|
11820
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");
|
|
11821
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");
|
|
11822
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");
|
|
11823
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");
|
|
11824
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");
|
|
11825
|
-
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");
|
|
11826
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");
|
|
11827
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");
|
|
11828
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");
|
|
@@ -12859,8 +12909,8 @@ const createConnectionDetails = () => ({
|
|
|
12859
12909
|
i18nKey: "Exhibition"
|
|
12860
12910
|
},
|
|
12861
12911
|
waterDemandType: {
|
|
12862
|
-
code: "
|
|
12863
|
-
i18nKey: "
|
|
12912
|
+
code: "NON_BULK",
|
|
12913
|
+
i18nKey: "WS_WATER_DEMAND_NON_BULK"
|
|
12864
12914
|
},
|
|
12865
12915
|
applicantType: {
|
|
12866
12916
|
code: "OWNER",
|
|
@@ -13035,7 +13085,7 @@ const WSConnectionDetails = _ref => {
|
|
|
13035
13085
|
}, commonProps))));
|
|
13036
13086
|
};
|
|
13037
13087
|
const ConnectionDetails = _props => {
|
|
13038
|
-
var _formData$DocumentsRe
|
|
13088
|
+
var _formData$DocumentsRe;
|
|
13039
13089
|
const {
|
|
13040
13090
|
connectionDetail,
|
|
13041
13091
|
focusIndex,
|
|
@@ -13087,8 +13137,8 @@ const ConnectionDetails = _props => {
|
|
|
13087
13137
|
i18nKey: "Exhibition"
|
|
13088
13138
|
},
|
|
13089
13139
|
waterDemandType: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterDemandType) || {
|
|
13090
|
-
code: "
|
|
13091
|
-
i18nKey: "
|
|
13140
|
+
code: "NON_BULK",
|
|
13141
|
+
i18nKey: "WS_WATER_DEMAND_NON_BULK"
|
|
13092
13142
|
},
|
|
13093
13143
|
applicantType: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.applicantType) || {
|
|
13094
13144
|
code: "OWNER",
|
|
@@ -13118,18 +13168,6 @@ const ConnectionDetails = _props => {
|
|
|
13118
13168
|
const [showDocModal, setShowDocModal] = useState(false);
|
|
13119
13169
|
const [docFileUrl, setDocFileUrl] = useState("");
|
|
13120
13170
|
const [docFileType, setDocFileType] = useState("");
|
|
13121
|
-
const handleSelectFile = e => {
|
|
13122
|
-
var _e$target$files;
|
|
13123
|
-
const selectedFile = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
|
|
13124
|
-
if (selectedFile) {
|
|
13125
|
-
if (selectedFile.size >= 5242880) {
|
|
13126
|
-
setFileUploadError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "Maximum file size exceeded (5MB)");
|
|
13127
|
-
} else {
|
|
13128
|
-
setFile(selectedFile);
|
|
13129
|
-
setFileUploadError(null);
|
|
13130
|
-
}
|
|
13131
|
-
}
|
|
13132
|
-
};
|
|
13133
13171
|
useEffect(() => {
|
|
13134
13172
|
(function () {
|
|
13135
13173
|
try {
|
|
@@ -13160,38 +13198,6 @@ const ConnectionDetails = _props => {
|
|
|
13160
13198
|
}
|
|
13161
13199
|
})();
|
|
13162
13200
|
}, [file]);
|
|
13163
|
-
const viewDocument = function () {
|
|
13164
|
-
try {
|
|
13165
|
-
const _temp4 = function () {
|
|
13166
|
-
if (uploadedFile) {
|
|
13167
|
-
const _temp3 = _catch(function () {
|
|
13168
|
-
return Promise.resolve(Digit.UploadServices.FileFetchbyid(uploadedFile, Digit.ULBService.getStateId())).then(function (res) {
|
|
13169
|
-
if (res !== null && res !== void 0 && res.data) {
|
|
13170
|
-
const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
|
|
13171
|
-
type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
|
|
13172
|
-
});
|
|
13173
|
-
const fileURL = URL.createObjectURL(blob);
|
|
13174
|
-
setDocFileUrl(fileURL);
|
|
13175
|
-
const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
|
|
13176
|
-
if (contentType.toLowerCase().includes("pdf")) {
|
|
13177
|
-
setDocFileType("pdf");
|
|
13178
|
-
} else {
|
|
13179
|
-
setDocFileType("image");
|
|
13180
|
-
}
|
|
13181
|
-
setShowDocModal(true);
|
|
13182
|
-
}
|
|
13183
|
-
});
|
|
13184
|
-
}, function (err) {
|
|
13185
|
-
console.error("Failed to fetch file URL via FileFetchbyid", err);
|
|
13186
|
-
});
|
|
13187
|
-
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
13188
|
-
}
|
|
13189
|
-
}();
|
|
13190
|
-
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
|
|
13191
|
-
} catch (e) {
|
|
13192
|
-
return Promise.reject(e);
|
|
13193
|
-
}
|
|
13194
|
-
};
|
|
13195
13201
|
useEffect(() => {
|
|
13196
13202
|
trigger();
|
|
13197
13203
|
}, []);
|
|
@@ -13266,7 +13272,9 @@ const ConnectionDetails = _props => {
|
|
|
13266
13272
|
defaultOpen: true
|
|
13267
13273
|
}, /*#__PURE__*/React.createElement("div", {
|
|
13268
13274
|
className: "formcomposer-section-grid"
|
|
13269
|
-
}, /*#__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, {
|
|
13270
13278
|
control: control,
|
|
13271
13279
|
name: "serviceType",
|
|
13272
13280
|
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceType) || "",
|
|
@@ -13282,81 +13290,12 @@ const ConnectionDetails = _props => {
|
|
|
13282
13290
|
onChange: () => {},
|
|
13283
13291
|
style: {
|
|
13284
13292
|
backgroundColor: "#eee"
|
|
13285
|
-
}
|
|
13293
|
+
},
|
|
13294
|
+
placeholder: t("WS_SERVICE_TYPE_PLACEHOLDER")
|
|
13286
13295
|
})
|
|
13287
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.connectionType) || "",
|
|
13291
|
-
rules: {
|
|
13292
|
-
required: t("REQUIRED_FIELD")
|
|
13293
|
-
},
|
|
13294
|
-
isMandatory: true,
|
|
13295
|
-
render: props => {
|
|
13296
|
-
var _errors$connectionTyp;
|
|
13297
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
13298
|
-
className: "form-field",
|
|
13299
|
-
selected: getValues("connectionType"),
|
|
13300
|
-
disable: false,
|
|
13301
|
-
option: connectionTypeList,
|
|
13302
|
-
errorStyle: localFormState.touched.connectionType && errors !== null && errors !== void 0 && (_errors$connectionTyp = errors.connectionType) !== null && _errors$connectionTyp !== void 0 && _errors$connectionTyp.message ? true : false,
|
|
13303
|
-
select: e => {
|
|
13304
|
-
props.onChange(e);
|
|
13305
|
-
},
|
|
13306
|
-
optionKey: "i18nKey",
|
|
13307
|
-
onBlur: props.onBlur,
|
|
13308
|
-
t: t
|
|
13309
|
-
});
|
|
13310
|
-
}
|
|
13311
|
-
})), (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, {
|
|
13312
|
-
control: control,
|
|
13313
|
-
name: "temporaryType",
|
|
13314
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.temporaryType) || "",
|
|
13315
|
-
rules: {
|
|
13316
|
-
required: t("REQUIRED_FIELD")
|
|
13317
|
-
},
|
|
13318
|
-
isMandatory: true,
|
|
13319
|
-
render: props => {
|
|
13320
|
-
var _errors$temporaryType;
|
|
13321
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
13322
|
-
className: "form-field",
|
|
13323
|
-
selected: getValues("temporaryType"),
|
|
13324
|
-
disable: false,
|
|
13325
|
-
option: temporaryTypeList,
|
|
13326
|
-
errorStyle: localFormState.touched.temporaryType && errors !== null && errors !== void 0 && (_errors$temporaryType = errors.temporaryType) !== null && _errors$temporaryType !== void 0 && _errors$temporaryType.message ? true : false,
|
|
13327
|
-
select: e => {
|
|
13328
|
-
props.onChange(e);
|
|
13329
|
-
},
|
|
13330
|
-
optionKey: "i18nKey",
|
|
13331
|
-
onBlur: props.onBlur,
|
|
13332
|
-
t: t
|
|
13333
|
-
});
|
|
13334
|
-
}
|
|
13335
|
-
})), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_WATER_DEMAND_TYPE")}*`), /*#__PURE__*/React.createElement(Controller, {
|
|
13336
|
-
control: control,
|
|
13337
|
-
name: "waterDemandType",
|
|
13338
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterDemandType) || "",
|
|
13339
|
-
rules: {
|
|
13340
|
-
required: t("REQUIRED_FIELD")
|
|
13341
|
-
},
|
|
13342
|
-
isMandatory: true,
|
|
13343
|
-
render: props => {
|
|
13344
|
-
var _errors$waterDemandTy;
|
|
13345
|
-
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
13346
|
-
className: "form-field",
|
|
13347
|
-
selected: getValues("waterDemandType"),
|
|
13348
|
-
disable: false,
|
|
13349
|
-
option: waterDemandTypeList,
|
|
13350
|
-
errorStyle: localFormState.touched.waterDemandType && errors !== null && errors !== void 0 && (_errors$waterDemandTy = errors.waterDemandType) !== null && _errors$waterDemandTy !== void 0 && _errors$waterDemandTy.message ? true : false,
|
|
13351
|
-
select: e => {
|
|
13352
|
-
props.onChange(e);
|
|
13353
|
-
},
|
|
13354
|
-
optionKey: "i18nKey",
|
|
13355
|
-
onBlur: props.onBlur,
|
|
13356
|
-
t: t
|
|
13357
|
-
});
|
|
13358
|
-
}
|
|
13359
|
-
})), /*#__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, {
|
|
13360
13299
|
control: control,
|
|
13361
13300
|
name: "applicantType",
|
|
13362
13301
|
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.applicantType) || "",
|
|
@@ -13377,187 +13316,11 @@ const ConnectionDetails = _props => {
|
|
|
13377
13316
|
},
|
|
13378
13317
|
optionKey: "i18nKey",
|
|
13379
13318
|
onBlur: props.onBlur,
|
|
13380
|
-
t: t
|
|
13381
|
-
|
|
13382
|
-
}
|
|
13383
|
-
})), /*#__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", {
|
|
13384
|
-
className: "field"
|
|
13385
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13386
|
-
control: control,
|
|
13387
|
-
name: "domesticType",
|
|
13388
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.domesticType) || "",
|
|
13389
|
-
rules: {
|
|
13390
|
-
required: t("REQUIRED_FIELD")
|
|
13391
|
-
},
|
|
13392
|
-
isMandatory: true,
|
|
13393
|
-
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
13394
|
-
className: "form-field",
|
|
13395
|
-
style: {
|
|
13396
|
-
display: "flex",
|
|
13397
|
-
gap: "2rem",
|
|
13398
|
-
alignItems: "center"
|
|
13399
|
-
},
|
|
13400
|
-
options: [{
|
|
13401
|
-
i18nKey: "WS_DOMESTIC_TYPE_DOMESTIC",
|
|
13402
|
-
code: "INDIVIDUAL"
|
|
13403
|
-
}, {
|
|
13404
|
-
i18nKey: "WS_DOMESTIC_TYPE_NON_DOMESTIC",
|
|
13405
|
-
code: "ORGANIZATION"
|
|
13406
|
-
}],
|
|
13407
|
-
optionsKey: "i18nKey",
|
|
13408
|
-
selectedOption: getValues("domesticType"),
|
|
13409
|
-
onSelect: e => {
|
|
13410
|
-
props.onChange(e);
|
|
13411
|
-
},
|
|
13412
|
-
t: t,
|
|
13413
|
-
isDependent: true
|
|
13414
|
-
})
|
|
13415
|
-
}))), (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", {
|
|
13416
|
-
className: "field"
|
|
13417
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13418
|
-
control: control,
|
|
13419
|
-
name: "departmentType",
|
|
13420
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.departmentType) || {
|
|
13421
|
-
i18nKey: "WS_DEPARTMENT_TYPE_GOVERNMENT",
|
|
13422
|
-
code: "GOVERNMENT"
|
|
13423
|
-
},
|
|
13424
|
-
rules: {
|
|
13425
|
-
required: t("REQUIRED_FIELD")
|
|
13426
|
-
},
|
|
13427
|
-
isMandatory: true,
|
|
13428
|
-
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
13429
|
-
className: "form-field",
|
|
13430
|
-
style: {
|
|
13431
|
-
display: "flex",
|
|
13432
|
-
gap: "2rem",
|
|
13433
|
-
alignItems: "center"
|
|
13434
|
-
},
|
|
13435
|
-
options: [{
|
|
13436
|
-
i18nKey: "WS_DEPARTMENT_TYPE_GOVERNMENT",
|
|
13437
|
-
code: "GOVERNMENT"
|
|
13438
|
-
}, {
|
|
13439
|
-
i18nKey: "WS_DEPARTMENT_TYPE_NON_GOVERNMENT",
|
|
13440
|
-
code: "NON_GOVERNMENT"
|
|
13441
|
-
}],
|
|
13442
|
-
optionsKey: "i18nKey",
|
|
13443
|
-
selectedOption: getValues("departmentType"),
|
|
13444
|
-
onSelect: e => {
|
|
13445
|
-
props.onChange(e);
|
|
13446
|
-
},
|
|
13447
|
-
t: t,
|
|
13448
|
-
isDependent: true
|
|
13449
|
-
})
|
|
13450
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
13451
|
-
style: {
|
|
13452
|
-
color: "#3257F2",
|
|
13453
|
-
fontWeight: "700",
|
|
13454
|
-
fontSize: "1.5rem",
|
|
13455
|
-
gridColumn: "span 2"
|
|
13456
|
-
}
|
|
13457
|
-
}, t("WS_DEPARTMENT_ORGANIZATION_DETAILS")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_ORGANIZATION_DEPARTMENT_NAME")}*`), /*#__PURE__*/React.createElement("div", {
|
|
13458
|
-
className: "field"
|
|
13459
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13460
|
-
control: control,
|
|
13461
|
-
name: "institutionName",
|
|
13462
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.institutionName) || "",
|
|
13463
|
-
rules: {
|
|
13464
|
-
required: t("REQUIRED_FIELD")
|
|
13465
|
-
},
|
|
13466
|
-
isMandatory: true,
|
|
13467
|
-
render: props => {
|
|
13468
|
-
var _errors$institutionNa;
|
|
13469
|
-
return /*#__PURE__*/React.createElement(TextInput, {
|
|
13470
|
-
value: props.value,
|
|
13471
|
-
placeholder: t("WS_ORGANIZATION_DEPARTMENT_NAME_PLACEHOLDER"),
|
|
13472
|
-
autoFocus: focusIndex.index === (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key) && focusIndex.type === "institutionName",
|
|
13473
|
-
errorStyle: localFormState.touched.institutionName && errors !== null && errors !== void 0 && (_errors$institutionNa = errors.institutionName) !== null && _errors$institutionNa !== void 0 && _errors$institutionNa.message ? true : false,
|
|
13474
|
-
onChange: e => {
|
|
13475
|
-
props.onChange(e.target.value);
|
|
13476
|
-
setFocusIndex({
|
|
13477
|
-
index: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key,
|
|
13478
|
-
type: "institutionName"
|
|
13479
|
-
});
|
|
13480
|
-
},
|
|
13481
|
-
onBlur: props.onBlur
|
|
13482
|
-
});
|
|
13483
|
-
}
|
|
13484
|
-
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NATURE_OF_WORK")}*`), /*#__PURE__*/React.createElement("div", {
|
|
13485
|
-
className: "field"
|
|
13486
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13487
|
-
control: control,
|
|
13488
|
-
name: "natureOfWork",
|
|
13489
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.natureOfWork) || "",
|
|
13490
|
-
rules: {
|
|
13491
|
-
required: t("REQUIRED_FIELD")
|
|
13492
|
-
},
|
|
13493
|
-
isMandatory: true,
|
|
13494
|
-
render: props => {
|
|
13495
|
-
var _errors$natureOfWork;
|
|
13496
|
-
return /*#__PURE__*/React.createElement(TextInput, {
|
|
13497
|
-
value: props.value,
|
|
13498
|
-
placeholder: t("WS_NATURE_OF_WORK_PLACEHOLDER"),
|
|
13499
|
-
autoFocus: focusIndex.index === (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key) && focusIndex.type === "natureOfWork",
|
|
13500
|
-
errorStyle: localFormState.touched.natureOfWork && errors !== null && errors !== void 0 && (_errors$natureOfWork = errors.natureOfWork) !== null && _errors$natureOfWork !== void 0 && _errors$natureOfWork.message ? true : false,
|
|
13501
|
-
onChange: e => {
|
|
13502
|
-
props.onChange(e.target.value);
|
|
13503
|
-
setFocusIndex({
|
|
13504
|
-
index: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key,
|
|
13505
|
-
type: "natureOfWork"
|
|
13506
|
-
});
|
|
13507
|
-
},
|
|
13508
|
-
onBlur: props.onBlur
|
|
13319
|
+
t: t,
|
|
13320
|
+
placeholder: t("WS_APPLICANT_TYPE_PLACEHOLDER")
|
|
13509
13321
|
});
|
|
13510
13322
|
}
|
|
13511
|
-
}))),
|
|
13512
|
-
className: "field",
|
|
13513
|
-
style: {
|
|
13514
|
-
display: "flex",
|
|
13515
|
-
gap: "10px",
|
|
13516
|
-
alignItems: "center"
|
|
13517
|
-
}
|
|
13518
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
13519
|
-
style: {
|
|
13520
|
-
flex: 1
|
|
13521
|
-
}
|
|
13522
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
13523
|
-
control: control,
|
|
13524
|
-
name: "orgDeptDocument",
|
|
13525
|
-
defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument) || "",
|
|
13526
|
-
rules: {
|
|
13527
|
-
required: t("REQUIRED_FIELD")
|
|
13528
|
-
},
|
|
13529
|
-
isMandatory: true,
|
|
13530
|
-
render: props => /*#__PURE__*/React.createElement(UploadFile, {
|
|
13531
|
-
id: "orgDeptDocument",
|
|
13532
|
-
onUpload: handleSelectFile,
|
|
13533
|
-
onDelete: () => {
|
|
13534
|
-
setUploadedFile(null);
|
|
13535
|
-
setFile(null);
|
|
13536
|
-
props.onChange(null);
|
|
13537
|
-
},
|
|
13538
|
-
message: uploadedFile ? `1 ${t("WS_ACTION_FILEUPLOADED")}` : t("WS_ACTION_NO_FILEUPLOADED"),
|
|
13539
|
-
accept: "image/*, .pdf",
|
|
13540
|
-
uploadedFiles: uploadedFile && !file ? [[(connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocumentName) || "Document", {
|
|
13541
|
-
fileStoreId: uploadedFile
|
|
13542
|
-
}]] : undefined,
|
|
13543
|
-
removeTargetedFile: () => {
|
|
13544
|
-
setUploadedFile(null);
|
|
13545
|
-
setFile(null);
|
|
13546
|
-
props.onChange(null);
|
|
13547
|
-
}
|
|
13548
|
-
})
|
|
13549
|
-
})), uploadedFile && /*#__PURE__*/React.createElement("div", {
|
|
13550
|
-
onClick: viewDocument,
|
|
13551
|
-
style: {
|
|
13552
|
-
cursor: "pointer"
|
|
13553
|
-
}
|
|
13554
|
-
}, /*#__PURE__*/React.createElement(ViewsIcon, null)))), fileUploadError && /*#__PURE__*/React.createElement("div", {
|
|
13555
|
-
style: {
|
|
13556
|
-
color: "red",
|
|
13557
|
-
fontSize: "12px",
|
|
13558
|
-
marginTop: "4px"
|
|
13559
|
-
}
|
|
13560
|
-
}, fileUploadError))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
13323
|
+
}))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
13561
13324
|
open: showDocModal,
|
|
13562
13325
|
headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
13563
13326
|
headerBarEnd: /*#__PURE__*/React.createElement("div", {
|
|
@@ -14267,7 +14030,7 @@ const WSConnectionHolderDetails = _ref => {
|
|
|
14267
14030
|
}, commonProps))));
|
|
14268
14031
|
};
|
|
14269
14032
|
const ConnectionDetails$1 = _props => {
|
|
14270
|
-
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;
|
|
14271
14034
|
const {
|
|
14272
14035
|
connectionHolderDetail,
|
|
14273
14036
|
focusIndex,
|
|
@@ -14448,7 +14211,9 @@ const ConnectionDetails$1 = _props => {
|
|
|
14448
14211
|
defaultOpen: true
|
|
14449
14212
|
}, !sameAsOwnerDetails ? /*#__PURE__*/React.createElement("div", {
|
|
14450
14213
|
className: "formcomposer-section-grid"
|
|
14451
|
-
}, /*#__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, {
|
|
14452
14217
|
control: control,
|
|
14453
14218
|
name: "name",
|
|
14454
14219
|
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.name,
|
|
@@ -14474,7 +14239,8 @@ const ConnectionDetails$1 = _props => {
|
|
|
14474
14239
|
labelStyle: {
|
|
14475
14240
|
marginTop: "unset"
|
|
14476
14241
|
},
|
|
14477
|
-
onBlur: props.onBlur
|
|
14242
|
+
onBlur: props.onBlur,
|
|
14243
|
+
placeholder: t("WS_OWN_DETAIL_NAME")
|
|
14478
14244
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14479
14245
|
unmaskField: e => {
|
|
14480
14246
|
setName(e);
|
|
@@ -14521,7 +14287,8 @@ const ConnectionDetails$1 = _props => {
|
|
|
14521
14287
|
labelStyle: {
|
|
14522
14288
|
marginTop: "unset"
|
|
14523
14289
|
},
|
|
14524
|
-
onBlur: props.onBlur
|
|
14290
|
+
onBlur: props.onBlur,
|
|
14291
|
+
placeholder: t("WS_OWN_DETAIL_MIDDLE_NAME")
|
|
14525
14292
|
}));
|
|
14526
14293
|
}
|
|
14527
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, {
|
|
@@ -14547,12 +14314,15 @@ const ConnectionDetails$1 = _props => {
|
|
|
14547
14314
|
labelStyle: {
|
|
14548
14315
|
marginTop: "unset"
|
|
14549
14316
|
},
|
|
14550
|
-
onBlur: props.onBlur
|
|
14317
|
+
onBlur: props.onBlur,
|
|
14318
|
+
placeholder: t("WS_OWN_DETAIL_LAST_NAME")
|
|
14551
14319
|
}));
|
|
14552
14320
|
}
|
|
14553
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, {
|
|
14554
14322
|
style: errorStyle
|
|
14555
|
-
}, 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", {
|
|
14556
14326
|
className: "field"
|
|
14557
14327
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
14558
14328
|
control: control,
|
|
@@ -14576,7 +14346,8 @@ const ConnectionDetails$1 = _props => {
|
|
|
14576
14346
|
},
|
|
14577
14347
|
optionKey: "i18nKey",
|
|
14578
14348
|
onBlur: props.onBlur,
|
|
14579
|
-
t: t
|
|
14349
|
+
t: t,
|
|
14350
|
+
placeholder: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")
|
|
14580
14351
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14581
14352
|
unmaskField: e => {
|
|
14582
14353
|
const r = {
|
|
@@ -14607,116 +14378,9 @@ const ConnectionDetails$1 = _props => {
|
|
|
14607
14378
|
}
|
|
14608
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, {
|
|
14609
14380
|
style: errorStyle
|
|
14610
|
-
}, 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("
|
|
14611
|
-
className: "
|
|
14612
|
-
}, /*#__PURE__*/React.createElement(
|
|
14613
|
-
control: control,
|
|
14614
|
-
name: "guardian",
|
|
14615
|
-
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.guardian,
|
|
14616
|
-
rules: {
|
|
14617
|
-
validate: e => e && getPattern("Name").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
|
|
14618
|
-
required: t("REQUIRED_FIELD")
|
|
14619
|
-
},
|
|
14620
|
-
isMandatory: true,
|
|
14621
|
-
render: props => {
|
|
14622
|
-
var _errors$guardian, _getValues2, _formData$ConnectionD11, _formData$ConnectionD12, _formData$cpt3, _formData$cpt3$detail, _formData$ConnectionD13, _formData$ConnectionD14, _formData$ConnectionD15, _formData$ConnectionD16;
|
|
14623
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
14624
|
-
value: getValues("guardian") || "",
|
|
14625
|
-
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "guardian",
|
|
14626
|
-
errorStyle: localFormState.touched.guardian && errors !== null && errors !== void 0 && (_errors$guardian = errors.guardian) !== null && _errors$guardian !== void 0 && _errors$guardian.message ? true : false,
|
|
14627
|
-
onChange: e => {
|
|
14628
|
-
setGuardian(e.target.value);
|
|
14629
|
-
props.onChange(e.target.value);
|
|
14630
|
-
setFocusIndex({
|
|
14631
|
-
index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
|
|
14632
|
-
type: "guardian"
|
|
14633
|
-
});
|
|
14634
|
-
},
|
|
14635
|
-
labelStyle: {
|
|
14636
|
-
marginTop: "unset"
|
|
14637
|
-
},
|
|
14638
|
-
onBlur: props.onBlur
|
|
14639
|
-
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14640
|
-
unmaskField: e => {
|
|
14641
|
-
setGuardian(e);
|
|
14642
|
-
props.onChange(e);
|
|
14643
|
-
},
|
|
14644
|
-
iseyevisible: (_getValues2 = getValues("guardian")) !== null && _getValues2 !== void 0 && _getValues2.includes("*") ? true : false,
|
|
14645
|
-
privacy: {
|
|
14646
|
-
uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
|
|
14647
|
-
fieldName: "fatherOrHusbandName",
|
|
14648
|
-
model: "WnSConnectionOwner",
|
|
14649
|
-
loadData: {
|
|
14650
|
-
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",
|
|
14651
|
-
requestBody: {},
|
|
14652
|
-
requestParam: {
|
|
14653
|
-
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,
|
|
14654
|
-
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
|
|
14655
|
-
},
|
|
14656
|
-
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",
|
|
14657
|
-
isArray: false
|
|
14658
|
-
}
|
|
14659
|
-
}
|
|
14660
|
-
})));
|
|
14661
|
-
}
|
|
14662
|
-
}))), 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, {
|
|
14663
|
-
style: errorStyle
|
|
14664
|
-
}, 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", {
|
|
14665
|
-
className: "field"
|
|
14666
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
14667
|
-
control: control,
|
|
14668
|
-
name: "relationship",
|
|
14669
|
-
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.relationship,
|
|
14670
|
-
rules: {
|
|
14671
|
-
required: t("REQUIRED_FIELD")
|
|
14672
|
-
},
|
|
14673
|
-
isMandatory: true,
|
|
14674
|
-
render: props => {
|
|
14675
|
-
var _errors$relationship, _relationship$i18nKey, _formData$ConnectionD17, _formData$ConnectionD18, _formData$cpt4, _formData$cpt4$detail, _formData$ConnectionD19, _formData$ConnectionD20, _formData$ConnectionD21, _formData$ConnectionD22;
|
|
14676
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Dropdown, {
|
|
14677
|
-
className: "form-field",
|
|
14678
|
-
selected: getValues("relationship"),
|
|
14679
|
-
disable: false,
|
|
14680
|
-
option: GuardianOptions,
|
|
14681
|
-
errorStyle: localFormState.touched.relationship && errors !== null && errors !== void 0 && (_errors$relationship = errors.relationship) !== null && _errors$relationship !== void 0 && _errors$relationship.message ? true : false,
|
|
14682
|
-
select: e => {
|
|
14683
|
-
setRelationship(e);
|
|
14684
|
-
props.onChange(e);
|
|
14685
|
-
},
|
|
14686
|
-
optionKey: "i18nKey",
|
|
14687
|
-
onBlur: props.onBlur,
|
|
14688
|
-
t: t
|
|
14689
|
-
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14690
|
-
unmaskField: e => {
|
|
14691
|
-
const r = {
|
|
14692
|
-
code: e,
|
|
14693
|
-
i18nKey: `COMMON_MASTERS_OWNERTYPE_${e}`,
|
|
14694
|
-
name: e
|
|
14695
|
-
};
|
|
14696
|
-
setRelationship(r);
|
|
14697
|
-
props.onChange(r);
|
|
14698
|
-
},
|
|
14699
|
-
iseyevisible: relationship !== null && relationship !== void 0 && (_relationship$i18nKey = relationship.i18nKey) !== null && _relationship$i18nKey !== void 0 && _relationship$i18nKey.includes("*") ? true : false,
|
|
14700
|
-
privacy: {
|
|
14701
|
-
uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
|
|
14702
|
-
fieldName: "relationship",
|
|
14703
|
-
model: "WnSConnection",
|
|
14704
|
-
loadData: {
|
|
14705
|
-
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",
|
|
14706
|
-
requestBody: {},
|
|
14707
|
-
requestParam: {
|
|
14708
|
-
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,
|
|
14709
|
-
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
|
|
14710
|
-
},
|
|
14711
|
-
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",
|
|
14712
|
-
isArray: false
|
|
14713
|
-
}
|
|
14714
|
-
}
|
|
14715
|
-
})));
|
|
14716
|
-
}
|
|
14717
|
-
}))), 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, {
|
|
14718
|
-
style: errorStyle
|
|
14719
|
-
}, 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", {
|
|
14720
14384
|
className: "field"
|
|
14721
14385
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
14722
14386
|
control: control,
|
|
@@ -14728,7 +14392,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
14728
14392
|
},
|
|
14729
14393
|
isMandatory: true,
|
|
14730
14394
|
render: props => {
|
|
14731
|
-
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;
|
|
14732
14396
|
const mobileValue = getValues("mobileNumber");
|
|
14733
14397
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
|
|
14734
14398
|
name: "mobileNumber",
|
|
@@ -14748,7 +14412,8 @@ const ConnectionDetails$1 = _props => {
|
|
|
14748
14412
|
}
|
|
14749
14413
|
},
|
|
14750
14414
|
onBlur: props.onBlur,
|
|
14751
|
-
hideSpan: false
|
|
14415
|
+
hideSpan: false,
|
|
14416
|
+
placeholder: t("CORE_COMMON_MOBILE_NUMBER")
|
|
14752
14417
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14753
14418
|
value: mobileValue,
|
|
14754
14419
|
unmaskField: e => {
|
|
@@ -14760,13 +14425,13 @@ const ConnectionDetails$1 = _props => {
|
|
|
14760
14425
|
fieldName: "connectionHoldersMobileNumber",
|
|
14761
14426
|
model: "WnSConnectionOwner",
|
|
14762
14427
|
loadData: {
|
|
14763
|
-
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",
|
|
14764
14429
|
requestBody: {},
|
|
14765
14430
|
requestParam: {
|
|
14766
|
-
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
14767
|
-
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
|
|
14768
14433
|
},
|
|
14769
|
-
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",
|
|
14770
14435
|
isArray: false
|
|
14771
14436
|
}
|
|
14772
14437
|
}
|
|
@@ -14786,7 +14451,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
14786
14451
|
},
|
|
14787
14452
|
isMandatory: true,
|
|
14788
14453
|
render: props => {
|
|
14789
|
-
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;
|
|
14790
14455
|
const watsAppmobileValue = getValues("watsAppMobileNumber");
|
|
14791
14456
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
|
|
14792
14457
|
name: "watsAppMobileNumber",
|
|
@@ -14803,6 +14468,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
14803
14468
|
},
|
|
14804
14469
|
onBlur: props.onBlur,
|
|
14805
14470
|
hideSpan: false,
|
|
14471
|
+
placeholder: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
|
|
14806
14472
|
disable: isWatsappSameAsMobile
|
|
14807
14473
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14808
14474
|
value: watsAppmobileValue,
|
|
@@ -14815,13 +14481,13 @@ const ConnectionDetails$1 = _props => {
|
|
|
14815
14481
|
fieldName: "connectionHoldersMobileNumber",
|
|
14816
14482
|
model: "WnSConnectionOwner",
|
|
14817
14483
|
loadData: {
|
|
14818
|
-
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",
|
|
14819
14485
|
requestBody: {},
|
|
14820
14486
|
requestParam: {
|
|
14821
|
-
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
14822
|
-
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
|
|
14823
14489
|
},
|
|
14824
|
-
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",
|
|
14825
14491
|
isArray: false
|
|
14826
14492
|
}
|
|
14827
14493
|
}
|
|
@@ -14874,7 +14540,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
14874
14540
|
},
|
|
14875
14541
|
isMandatory: false,
|
|
14876
14542
|
render: props => {
|
|
14877
|
-
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;
|
|
14878
14544
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
14879
14545
|
value: getValues("emailId") || "",
|
|
14880
14546
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "emailId",
|
|
@@ -14891,25 +14557,26 @@ const ConnectionDetails$1 = _props => {
|
|
|
14891
14557
|
labelStyle: {
|
|
14892
14558
|
marginTop: "unset"
|
|
14893
14559
|
},
|
|
14894
|
-
onBlur: props.onBlur
|
|
14560
|
+
onBlur: props.onBlur,
|
|
14561
|
+
placeholder: t("WS_EMAIL_ID")
|
|
14895
14562
|
}), checkifPrivacyValid() && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
|
|
14896
14563
|
unmaskField: e => {
|
|
14897
14564
|
setEmailId(e);
|
|
14898
14565
|
props.onChange(e);
|
|
14899
14566
|
},
|
|
14900
|
-
iseyevisible: (
|
|
14567
|
+
iseyevisible: (_getValues2 = getValues("emailId")) !== null && _getValues2 !== void 0 && _getValues2.includes("*") ? true : false,
|
|
14901
14568
|
privacy: {
|
|
14902
14569
|
uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
|
|
14903
14570
|
fieldName: "emailId",
|
|
14904
14571
|
model: "WnSConnectionOwner",
|
|
14905
14572
|
loadData: {
|
|
14906
|
-
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",
|
|
14907
14574
|
requestBody: {},
|
|
14908
14575
|
requestParam: {
|
|
14909
|
-
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
14910
|
-
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
|
|
14911
14578
|
},
|
|
14912
|
-
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",
|
|
14913
14580
|
isArray: false
|
|
14914
14581
|
}
|
|
14915
14582
|
}
|
|
@@ -18801,7 +18468,7 @@ const removeDuplicateOtherDocuments = function (documentList) {
|
|
|
18801
18468
|
});
|
|
18802
18469
|
};
|
|
18803
18470
|
const WSDocumentsEmployee = _ref => {
|
|
18804
|
-
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;
|
|
18805
18472
|
let {
|
|
18806
18473
|
t,
|
|
18807
18474
|
config,
|
|
@@ -18856,9 +18523,9 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18856
18523
|
}
|
|
18857
18524
|
};
|
|
18858
18525
|
useEffect(() => {
|
|
18859
|
-
var _wsDocs$wsDocsData;
|
|
18526
|
+
var _wsDocs$wsDocsData, _wsDocs$wsDocsData$fi;
|
|
18860
18527
|
let count = 0;
|
|
18861
|
-
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 => {
|
|
18862
18529
|
let isRequired = false;
|
|
18863
18530
|
documents.map(data => {
|
|
18864
18531
|
if (doc.required && data !== null && data !== void 0 && data.documentType.includes(doc.code)) isRequired = true;
|
|
@@ -18878,8 +18545,8 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18878
18545
|
var _applicationDetailsDa3;
|
|
18879
18546
|
const documentsData = (applicationDetailsData === null || applicationDetailsData === void 0 ? void 0 : (_applicationDetailsDa3 = applicationDetailsData.applicationData) === null || _applicationDetailsDa3 === void 0 ? void 0 : _applicationDetailsDa3.documents) || [];
|
|
18880
18547
|
documentsData === null || documentsData === void 0 ? void 0 : documentsData.map(documentData => {
|
|
18881
|
-
var _wsDocs$wsDocsData2;
|
|
18882
|
-
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 => {
|
|
18883
18550
|
var _docData$code, _docData$code2, _docData$code3, _docData$code4, _documentData$documen, _documentData$documen2, _documentData$documen3, _documentData$documen4;
|
|
18884
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];
|
|
18885
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];
|
|
@@ -18897,7 +18564,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18897
18564
|
}
|
|
18898
18565
|
const innerContent = /*#__PURE__*/React.createElement("div", {
|
|
18899
18566
|
className: "formcomposer-section-grid ws-doc-upload"
|
|
18900
|
-
}, 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) => {
|
|
18901
18568
|
return /*#__PURE__*/React.createElement(SelectDocument, {
|
|
18902
18569
|
key: index,
|
|
18903
18570
|
document: document,
|
|
@@ -19054,11 +18721,6 @@ function SelectDocument(_ref2) {
|
|
|
19054
18721
|
const eligible = isDigiLockerEligible((selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "");
|
|
19055
18722
|
setDigilockerUpload(eligible);
|
|
19056
18723
|
}, [selectedDocument]);
|
|
19057
|
-
const handleCapture = capturedFile => {
|
|
19058
|
-
setFile(capturedFile);
|
|
19059
|
-
setIsCameraFile(true);
|
|
19060
|
-
setShowCamera(false);
|
|
19061
|
-
};
|
|
19062
18724
|
const handleSelectDocument = value => setSelectedDocument(value);
|
|
19063
18725
|
const removeUploadedDocument = fileStoreId => {
|
|
19064
18726
|
setDocuments(previousDocuments => previousDocuments.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== fileStoreId));
|
|
@@ -19163,9 +18825,9 @@ function SelectDocument(_ref2) {
|
|
|
19163
18825
|
useEffect(() => {
|
|
19164
18826
|
if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
|
|
19165
18827
|
setDocuments(prev => {
|
|
19166
|
-
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));
|
|
19167
18829
|
if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) {
|
|
19168
|
-
return filteredDocumentsByDocumentType;
|
|
18830
|
+
return isOther ? prev : filteredDocumentsByDocumentType;
|
|
19169
18831
|
}
|
|
19170
18832
|
const filteredDocumentsByFileStoreId = filteredDocumentsByDocumentType === null || filteredDocumentsByDocumentType === void 0 ? void 0 : filteredDocumentsByDocumentType.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== uploadedFile);
|
|
19171
18833
|
const data = [...filteredDocumentsByFileStoreId, {
|
|
@@ -19184,15 +18846,21 @@ function SelectDocument(_ref2) {
|
|
|
19184
18846
|
});
|
|
19185
18847
|
}
|
|
19186
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
|
+
}));
|
|
19187
18853
|
if (!isHidden) {
|
|
19188
|
-
if (
|
|
18854
|
+
if (err) {
|
|
19189
18855
|
addError();
|
|
19190
|
-
} else if (
|
|
18856
|
+
} else if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) && doc !== null && doc !== void 0 && doc.required && !hasOtherUploaded) {
|
|
19191
18857
|
addError();
|
|
19192
18858
|
} else if (uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code && !err) {
|
|
19193
18859
|
removeError();
|
|
19194
18860
|
} else if (!(doc !== null && doc !== void 0 && doc.required) && !err) {
|
|
19195
18861
|
removeError();
|
|
18862
|
+
} else if (hasOtherUploaded) {
|
|
18863
|
+
removeError();
|
|
19196
18864
|
}
|
|
19197
18865
|
} else if (isHidden) {
|
|
19198
18866
|
removeError();
|
|
@@ -19283,7 +18951,9 @@ function SelectDocument(_ref2) {
|
|
|
19283
18951
|
style: {
|
|
19284
18952
|
margin: 0
|
|
19285
18953
|
}
|
|
19286
|
-
},
|
|
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, {
|
|
19287
18957
|
id: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
|
|
19288
18958
|
key: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
|
|
19289
18959
|
className: "form-field",
|
|
@@ -19297,7 +18967,8 @@ function SelectDocument(_ref2) {
|
|
|
19297
18967
|
}),
|
|
19298
18968
|
select: handleSelectDocument,
|
|
19299
18969
|
optionKey: "i18nKey",
|
|
19300
|
-
t: t
|
|
18970
|
+
t: t,
|
|
18971
|
+
placeholder: t("PT_MUTATION_SELECT_DOC_LABEL")
|
|
19301
18972
|
})) : null, (doc === null || doc === void 0 ? void 0 : doc.code) !== "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React.createElement("div", {
|
|
19302
18973
|
style: {
|
|
19303
18974
|
display: "flex",
|
|
@@ -19392,30 +19063,14 @@ function SelectDocument(_ref2) {
|
|
|
19392
19063
|
style: {
|
|
19393
19064
|
margin: 0
|
|
19394
19065
|
}
|
|
19395
|
-
}, 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
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
setUploadedFile(null);
|
|
19399
|
-
setFile(null);
|
|
19400
|
-
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
19401
|
-
setDocumentUid("");
|
|
19402
|
-
setDocNumberError(null);
|
|
19403
|
-
},
|
|
19404
|
-
style: {
|
|
19405
|
-
border: "1px solid #00497e",
|
|
19406
|
-
background: "#fff",
|
|
19407
|
-
color: "#00497e",
|
|
19408
|
-
borderRadius: "4px",
|
|
19409
|
-
padding: "4px 10px",
|
|
19410
|
-
cursor: "pointer",
|
|
19411
|
-
fontWeight: "bold"
|
|
19412
|
-
}
|
|
19413
|
-
}, "+ 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", {
|
|
19414
19069
|
className: "field",
|
|
19415
19070
|
style: {
|
|
19416
19071
|
display: "flex",
|
|
19417
|
-
gap: "
|
|
19418
|
-
alignItems: "
|
|
19072
|
+
gap: "10px",
|
|
19073
|
+
alignItems: "flex-start",
|
|
19419
19074
|
width: "100%"
|
|
19420
19075
|
}
|
|
19421
19076
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -19443,11 +19098,15 @@ function SelectDocument(_ref2) {
|
|
|
19443
19098
|
fileStoreId: uploadedFile
|
|
19444
19099
|
}]] : undefined,
|
|
19445
19100
|
removeTargetedFile: () => {
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19101
|
+
if (isOther && uploadedFile) {
|
|
19102
|
+
removeUploadedDocument(uploadedFile);
|
|
19103
|
+
} else {
|
|
19104
|
+
setUploadedFile(null);
|
|
19105
|
+
setFile(null);
|
|
19106
|
+
setIsCameraFile(false);
|
|
19107
|
+
setIsDocumentUidLocked(false);
|
|
19108
|
+
setDocumentUid("");
|
|
19109
|
+
}
|
|
19451
19110
|
},
|
|
19452
19111
|
documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
19453
19112
|
onDocumentNumber: num => {
|
|
@@ -19475,13 +19134,49 @@ function SelectDocument(_ref2) {
|
|
|
19475
19134
|
fileStoreId: uploadedFile
|
|
19476
19135
|
}]] : undefined,
|
|
19477
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
|
+
}
|
|
19478
19162
|
setUploadedFile(null);
|
|
19479
19163
|
setFile(null);
|
|
19480
|
-
|
|
19481
|
-
setIsDocumentUidLocked(false);
|
|
19164
|
+
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
19482
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"
|
|
19483
19178
|
}
|
|
19484
|
-
}))), (isOther ? otherUploadedDocuments : uploadedFile ? [{
|
|
19179
|
+
}, "+ ", t("NEW_DOCUMENT_TEXT") || "Add Document")), (isOther ? otherUploadedDocuments : uploadedFile ? [{
|
|
19485
19180
|
fileStoreId: uploadedFile,
|
|
19486
19181
|
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName),
|
|
19487
19182
|
documentNumber: documentUid
|
|
@@ -19498,7 +19193,7 @@ function SelectDocument(_ref2) {
|
|
|
19498
19193
|
style: {
|
|
19499
19194
|
fontWeight: "bold"
|
|
19500
19195
|
}
|
|
19501
|
-
}, 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", {
|
|
19502
19197
|
type: "button",
|
|
19503
19198
|
onClick: () => viewDocument(uploadedDocument.fileStoreId),
|
|
19504
19199
|
title: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
@@ -19521,64 +19216,7 @@ function SelectDocument(_ref2) {
|
|
|
19521
19216
|
padding: 0,
|
|
19522
19217
|
fontSize: "18px"
|
|
19523
19218
|
}
|
|
19524
|
-
}, /*#__PURE__*/React.createElement(RemoveIcon, null))))), /*#__PURE__*/React.createElement(
|
|
19525
|
-
style: {
|
|
19526
|
-
display: "flex",
|
|
19527
|
-
flexDirection: "column",
|
|
19528
|
-
gap: "8px",
|
|
19529
|
-
gridColumn: "span 1"
|
|
19530
|
-
}
|
|
19531
|
-
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
19532
|
-
style: {
|
|
19533
|
-
margin: 0
|
|
19534
|
-
}
|
|
19535
|
-
}, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? t("WS_CLICK_APPLICANT_PHOTO") || "Click Applicant Photo" : "\u00A0"), /*#__PURE__*/React.createElement("div", {
|
|
19536
|
-
style: {
|
|
19537
|
-
display: "flex",
|
|
19538
|
-
alignItems: "center",
|
|
19539
|
-
gap: "20px",
|
|
19540
|
-
height: "100%"
|
|
19541
|
-
}
|
|
19542
|
-
}, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React.createElement("div", {
|
|
19543
|
-
style: {
|
|
19544
|
-
display: "flex",
|
|
19545
|
-
alignItems: "center",
|
|
19546
|
-
gap: "10px"
|
|
19547
|
-
}
|
|
19548
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
19549
|
-
type: "button",
|
|
19550
|
-
style: {
|
|
19551
|
-
display: "flex",
|
|
19552
|
-
alignItems: "center",
|
|
19553
|
-
justifyContent: "center",
|
|
19554
|
-
gap: "8px",
|
|
19555
|
-
padding: "6px 16px",
|
|
19556
|
-
background: "#f0f0f0",
|
|
19557
|
-
border: "1px solid #ccc",
|
|
19558
|
-
borderRadius: "2px",
|
|
19559
|
-
cursor: isUploading ? "not-allowed" : "pointer",
|
|
19560
|
-
width: "fit-content",
|
|
19561
|
-
opacity: isUploading ? 0.5 : 1
|
|
19562
|
-
},
|
|
19563
|
-
onClick: () => !isUploading && setShowCamera(true),
|
|
19564
|
-
disabled: isUploading
|
|
19565
|
-
}, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDCF8"), " ", t("WS_CLICK_PHOTO") || "Click Photo"), isUploading && /*#__PURE__*/React.createElement("span", {
|
|
19566
|
-
style: {
|
|
19567
|
-
color: "#00497e",
|
|
19568
|
-
fontWeight: "bold",
|
|
19569
|
-
fontSize: "14px"
|
|
19570
|
-
}
|
|
19571
|
-
}, t("CS_COMMON_UPLOADING") || "Uploading..."), uploadedFile && !isUploading && /*#__PURE__*/React.createElement("span", {
|
|
19572
|
-
style: {
|
|
19573
|
-
color: "green",
|
|
19574
|
-
fontWeight: "bold",
|
|
19575
|
-
fontSize: "14px"
|
|
19576
|
-
}
|
|
19577
|
-
}, "\u2714 Uploaded")))), showCamera && /*#__PURE__*/React.createElement(CameraCaptureModal, {
|
|
19578
|
-
onCapture: handleCapture,
|
|
19579
|
-
onClose: () => setShowCamera(false),
|
|
19580
|
-
t: t
|
|
19581
|
-
}), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
19219
|
+
}, /*#__PURE__*/React.createElement(RemoveIcon, null))))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
19582
19220
|
open: showDocModal,
|
|
19583
19221
|
headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
19584
19222
|
headerBarEnd: /*#__PURE__*/React.createElement("div", {
|
|
@@ -19635,126 +19273,6 @@ function SelectDocument(_ref2) {
|
|
|
19635
19273
|
}
|
|
19636
19274
|
}))));
|
|
19637
19275
|
}
|
|
19638
|
-
const CameraCaptureModal = _ref3 => {
|
|
19639
|
-
let {
|
|
19640
|
-
onCapture,
|
|
19641
|
-
onClose,
|
|
19642
|
-
t
|
|
19643
|
-
} = _ref3;
|
|
19644
|
-
const videoRef = useRef(null);
|
|
19645
|
-
const canvasRef = useRef(null);
|
|
19646
|
-
const [stream, setStream] = useState(null);
|
|
19647
|
-
const [error, setError] = useState(null);
|
|
19648
|
-
useEffect(() => {
|
|
19649
|
-
const startCamera = function () {
|
|
19650
|
-
try {
|
|
19651
|
-
const _temp8 = _catch(function () {
|
|
19652
|
-
return Promise.resolve(navigator.mediaDevices.getUserMedia({
|
|
19653
|
-
video: true
|
|
19654
|
-
})).then(function (mediaStream) {
|
|
19655
|
-
if (videoRef.current) {
|
|
19656
|
-
videoRef.current.srcObject = mediaStream;
|
|
19657
|
-
}
|
|
19658
|
-
setStream(mediaStream);
|
|
19659
|
-
});
|
|
19660
|
-
}, function (err) {
|
|
19661
|
-
setError(t("WS_CAMERA_ACCESS_ERROR") || "Camera Access Error");
|
|
19662
|
-
console.error("Error accessing camera: ", err);
|
|
19663
|
-
});
|
|
19664
|
-
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
|
|
19665
|
-
} catch (e) {
|
|
19666
|
-
return Promise.reject(e);
|
|
19667
|
-
}
|
|
19668
|
-
};
|
|
19669
|
-
startCamera();
|
|
19670
|
-
return () => {
|
|
19671
|
-
if (stream) {
|
|
19672
|
-
stream.getTracks().forEach(track => track.stop());
|
|
19673
|
-
}
|
|
19674
|
-
};
|
|
19675
|
-
}, []);
|
|
19676
|
-
const capturePhoto = () => {
|
|
19677
|
-
if (videoRef.current && canvasRef.current) {
|
|
19678
|
-
const context = canvasRef.current.getContext("2d");
|
|
19679
|
-
canvasRef.current.width = videoRef.current.videoWidth;
|
|
19680
|
-
canvasRef.current.height = videoRef.current.videoHeight;
|
|
19681
|
-
context.translate(canvasRef.current.width, 0);
|
|
19682
|
-
context.scale(-1, 1);
|
|
19683
|
-
context.drawImage(videoRef.current, 0, 0, canvasRef.current.width, canvasRef.current.height);
|
|
19684
|
-
canvasRef.current.toBlob(blob => {
|
|
19685
|
-
const file = new File([blob], "applicant_photo.jpg", {
|
|
19686
|
-
type: "image/jpeg"
|
|
19687
|
-
});
|
|
19688
|
-
onCapture(file);
|
|
19689
|
-
}, "image/jpeg");
|
|
19690
|
-
}
|
|
19691
|
-
};
|
|
19692
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
19693
|
-
style: {
|
|
19694
|
-
position: "fixed",
|
|
19695
|
-
top: 0,
|
|
19696
|
-
left: 0,
|
|
19697
|
-
width: "100%",
|
|
19698
|
-
height: "100%",
|
|
19699
|
-
backgroundColor: "rgba(0,0,0,0.8)",
|
|
19700
|
-
zIndex: 9999,
|
|
19701
|
-
display: "flex",
|
|
19702
|
-
flexDirection: "column",
|
|
19703
|
-
alignItems: "center",
|
|
19704
|
-
justifyContent: "center"
|
|
19705
|
-
}
|
|
19706
|
-
}, error ? /*#__PURE__*/React.createElement("div", {
|
|
19707
|
-
style: {
|
|
19708
|
-
color: "white",
|
|
19709
|
-
marginBottom: "20px"
|
|
19710
|
-
}
|
|
19711
|
-
}, error) : /*#__PURE__*/React.createElement("video", {
|
|
19712
|
-
ref: videoRef,
|
|
19713
|
-
autoPlay: true,
|
|
19714
|
-
playsInline: true,
|
|
19715
|
-
style: {
|
|
19716
|
-
maxWidth: "100%",
|
|
19717
|
-
maxHeight: "80%",
|
|
19718
|
-
backgroundColor: "black",
|
|
19719
|
-
transform: "scaleX(-1)"
|
|
19720
|
-
}
|
|
19721
|
-
}), /*#__PURE__*/React.createElement("canvas", {
|
|
19722
|
-
ref: canvasRef,
|
|
19723
|
-
style: {
|
|
19724
|
-
display: "none"
|
|
19725
|
-
}
|
|
19726
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
19727
|
-
style: {
|
|
19728
|
-
marginTop: "20px",
|
|
19729
|
-
display: "flex",
|
|
19730
|
-
gap: "20px"
|
|
19731
|
-
}
|
|
19732
|
-
}, !error && /*#__PURE__*/React.createElement("button", {
|
|
19733
|
-
type: "button",
|
|
19734
|
-
onClick: capturePhoto,
|
|
19735
|
-
style: {
|
|
19736
|
-
padding: "10px 20px",
|
|
19737
|
-
background: "#00497e",
|
|
19738
|
-
color: "white",
|
|
19739
|
-
border: "none",
|
|
19740
|
-
borderRadius: "4px",
|
|
19741
|
-
cursor: "pointer",
|
|
19742
|
-
fontWeight: "bold"
|
|
19743
|
-
}
|
|
19744
|
-
}, t("WS_CAPTURE_PHOTO") || "Capture"), /*#__PURE__*/React.createElement("button", {
|
|
19745
|
-
type: "button",
|
|
19746
|
-
onClick: onClose,
|
|
19747
|
-
style: {
|
|
19748
|
-
padding: "10px 20px",
|
|
19749
|
-
background: "white",
|
|
19750
|
-
color: "#00497e",
|
|
19751
|
-
border: "1px solid #00497e",
|
|
19752
|
-
borderRadius: "4px",
|
|
19753
|
-
cursor: "pointer",
|
|
19754
|
-
fontWeight: "bold"
|
|
19755
|
-
}
|
|
19756
|
-
}, t("CS_COMMON_CANCEL") || "Cancel")));
|
|
19757
|
-
};
|
|
19758
19276
|
|
|
19759
19277
|
const createConnectionDetails$2 = () => ({
|
|
19760
19278
|
water: true,
|
|
@@ -24751,76 +24269,9 @@ const WSDeclaration = _ref => {
|
|
|
24751
24269
|
return () => clearTimeout(timer);
|
|
24752
24270
|
}
|
|
24753
24271
|
}, [formValue, signatureFileStoreId, signatureFile, config === null || config === void 0 ? void 0 : config.key, onSelect]);
|
|
24754
|
-
const onUploadSignature = function (e) {
|
|
24755
|
-
try {
|
|
24756
|
-
var _e$target$files;
|
|
24757
|
-
const file = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
|
|
24758
|
-
const _temp3 = function () {
|
|
24759
|
-
if (file) {
|
|
24760
|
-
const _temp2 = function () {
|
|
24761
|
-
if (file.size >= 5242880) {} else {
|
|
24762
|
-
const _temp = _catch(function () {
|
|
24763
|
-
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
24764
|
-
var _response$data, _response$data$files;
|
|
24765
|
-
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) {
|
|
24766
|
-
var _response$data2, _response$data2$files;
|
|
24767
|
-
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;
|
|
24768
|
-
setSignatureFileStoreId(fsId);
|
|
24769
|
-
setSignatureFile(file);
|
|
24770
|
-
setValue("signatureFileStoreId", fsId);
|
|
24771
|
-
setValue("signatureFile", file);
|
|
24772
|
-
setValue("signatureFileName", file.name);
|
|
24773
|
-
}
|
|
24774
|
-
});
|
|
24775
|
-
}, function (err) {
|
|
24776
|
-
console.error("Signature upload failed", err);
|
|
24777
|
-
});
|
|
24778
|
-
if (_temp && _temp.then) return _temp.then(function () {});
|
|
24779
|
-
}
|
|
24780
|
-
}();
|
|
24781
|
-
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
24782
|
-
}
|
|
24783
|
-
}();
|
|
24784
|
-
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
24785
|
-
} catch (e) {
|
|
24786
|
-
return Promise.reject(e);
|
|
24787
|
-
}
|
|
24788
|
-
};
|
|
24789
24272
|
const [showDocModal, setShowDocModal] = useState(false);
|
|
24790
24273
|
const [docFileUrl, setDocFileUrl] = useState("");
|
|
24791
24274
|
const [docFileType, setDocFileType] = useState("");
|
|
24792
|
-
const viewDocument = function () {
|
|
24793
|
-
try {
|
|
24794
|
-
const _temp5 = function () {
|
|
24795
|
-
if (signatureFileStoreId) {
|
|
24796
|
-
const _temp4 = _catch(function () {
|
|
24797
|
-
return Promise.resolve(Digit.UploadServices.FileFetchbyid(signatureFileStoreId, Digit.ULBService.getStateId())).then(function (res) {
|
|
24798
|
-
if (res !== null && res !== void 0 && res.data) {
|
|
24799
|
-
const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
|
|
24800
|
-
type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
|
|
24801
|
-
});
|
|
24802
|
-
const fileURL = URL.createObjectURL(blob);
|
|
24803
|
-
setDocFileUrl(fileURL);
|
|
24804
|
-
const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
|
|
24805
|
-
if (contentType.toLowerCase().includes("pdf")) {
|
|
24806
|
-
setDocFileType("pdf");
|
|
24807
|
-
} else {
|
|
24808
|
-
setDocFileType("image");
|
|
24809
|
-
}
|
|
24810
|
-
setShowDocModal(true);
|
|
24811
|
-
}
|
|
24812
|
-
});
|
|
24813
|
-
}, function (err) {
|
|
24814
|
-
console.error("Failed to fetch file URL via FileFetchbyid", err);
|
|
24815
|
-
});
|
|
24816
|
-
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
24817
|
-
}
|
|
24818
|
-
}();
|
|
24819
|
-
return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(function () {}) : void 0);
|
|
24820
|
-
} catch (e) {
|
|
24821
|
-
return Promise.reject(e);
|
|
24822
|
-
}
|
|
24823
|
-
};
|
|
24824
24275
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
24825
24276
|
title: t("WS_DECLARATION"),
|
|
24826
24277
|
defaultOpen: true
|
|
@@ -24875,102 +24326,7 @@ const WSDeclaration = _ref => {
|
|
|
24875
24326
|
select: props.onChange,
|
|
24876
24327
|
t: t
|
|
24877
24328
|
})
|
|
24878
|
-
}))))
|
|
24879
|
-
className: "field",
|
|
24880
|
-
style: {
|
|
24881
|
-
display: "flex",
|
|
24882
|
-
gap: "10px",
|
|
24883
|
-
alignItems: "center"
|
|
24884
|
-
}
|
|
24885
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
24886
|
-
style: {
|
|
24887
|
-
flex: 1
|
|
24888
|
-
}
|
|
24889
|
-
}, /*#__PURE__*/React.createElement(UploadFile, {
|
|
24890
|
-
onUpload: onUploadSignature,
|
|
24891
|
-
onDelete: () => {
|
|
24892
|
-
setSignatureFile(null);
|
|
24893
|
-
setSignatureFileStoreId(null);
|
|
24894
|
-
setValue("signatureFile", null);
|
|
24895
|
-
setValue("signatureFileStoreId", null);
|
|
24896
|
-
},
|
|
24897
|
-
id: "ws-declaration-signature",
|
|
24898
|
-
message: signatureFileStoreId ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`),
|
|
24899
|
-
textStyles: {
|
|
24900
|
-
width: "100%"
|
|
24901
|
-
},
|
|
24902
|
-
buttonType: "button",
|
|
24903
|
-
accept: "image/*, .pdf, .png, .jpeg, .jpg",
|
|
24904
|
-
uploadedFiles: signatureFileStoreId && !signatureFile ? [[(formValue === null || formValue === void 0 ? void 0 : formValue.signatureFileName) || "Document", {
|
|
24905
|
-
fileStoreId: signatureFileStoreId
|
|
24906
|
-
}]] : undefined,
|
|
24907
|
-
removeTargetedFile: () => {
|
|
24908
|
-
setSignatureFile(null);
|
|
24909
|
-
setSignatureFileStoreId(null);
|
|
24910
|
-
setValue("signatureFile", null);
|
|
24911
|
-
setValue("signatureFileStoreId", null);
|
|
24912
|
-
setValue("signatureFileName", "");
|
|
24913
|
-
}
|
|
24914
|
-
})), signatureFileStoreId && /*#__PURE__*/React.createElement("div", {
|
|
24915
|
-
onClick: viewDocument,
|
|
24916
|
-
style: {
|
|
24917
|
-
cursor: "pointer"
|
|
24918
|
-
}
|
|
24919
|
-
}, /*#__PURE__*/React.createElement(ViewsIcon, null))))))), showDocModal && /*#__PURE__*/React.createElement(Modal, {
|
|
24920
|
-
open: showDocModal,
|
|
24921
|
-
headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
24922
|
-
headerBarEnd: /*#__PURE__*/React.createElement("div", {
|
|
24923
|
-
className: "icon-bg-secondary",
|
|
24924
|
-
onClick: () => setShowDocModal(false),
|
|
24925
|
-
style: {
|
|
24926
|
-
cursor: "pointer",
|
|
24927
|
-
padding: "5px"
|
|
24928
|
-
}
|
|
24929
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
24930
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
24931
|
-
viewBox: "0 0 24 24",
|
|
24932
|
-
fill: "#FFFFFF",
|
|
24933
|
-
width: "24",
|
|
24934
|
-
height: "24"
|
|
24935
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
24936
|
-
d: "M0 0h24v24H0V0z",
|
|
24937
|
-
fill: "none"
|
|
24938
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
24939
|
-
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"
|
|
24940
|
-
}))),
|
|
24941
|
-
center: true,
|
|
24942
|
-
actionCancelOnSubmit: () => setShowDocModal(false),
|
|
24943
|
-
actionCancelLabel: t("CS_COMMON_CLOSE") || "Close",
|
|
24944
|
-
popupStyles: {
|
|
24945
|
-
width: "80%",
|
|
24946
|
-
maxWidth: "800px"
|
|
24947
|
-
}
|
|
24948
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
24949
|
-
style: {
|
|
24950
|
-
display: "flex",
|
|
24951
|
-
justifyContent: "center",
|
|
24952
|
-
alignItems: "center",
|
|
24953
|
-
padding: "20px",
|
|
24954
|
-
minHeight: "300px"
|
|
24955
|
-
}
|
|
24956
|
-
}, docFileType === "pdf" ? /*#__PURE__*/React.createElement("iframe", {
|
|
24957
|
-
src: docFileUrl,
|
|
24958
|
-
title: "Document Preview",
|
|
24959
|
-
width: "100%",
|
|
24960
|
-
height: "500px",
|
|
24961
|
-
style: {
|
|
24962
|
-
border: "none"
|
|
24963
|
-
}
|
|
24964
|
-
}) : /*#__PURE__*/React.createElement("img", {
|
|
24965
|
-
src: docFileUrl,
|
|
24966
|
-
alt: "Document Preview",
|
|
24967
|
-
style: {
|
|
24968
|
-
maxWidth: "100%",
|
|
24969
|
-
maxHeight: "500px",
|
|
24970
|
-
objectFit: "contain",
|
|
24971
|
-
borderRadius: "4px"
|
|
24972
|
-
}
|
|
24973
|
-
}))));
|
|
24329
|
+
})))))));
|
|
24974
24330
|
};
|
|
24975
24331
|
|
|
24976
24332
|
const WSDjbEmployee = _ref => {
|
|
@@ -25022,27 +24378,52 @@ const WSDjbEmployee = _ref => {
|
|
|
25022
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;
|
|
25023
24379
|
});
|
|
25024
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
|
+
};
|
|
25025
24406
|
useEffect(() => {
|
|
25026
24407
|
(function () {
|
|
25027
24408
|
try {
|
|
25028
24409
|
setErrorUpload(null);
|
|
25029
|
-
const
|
|
24410
|
+
const _temp4 = function () {
|
|
25030
24411
|
if (file) {
|
|
25031
|
-
const
|
|
24412
|
+
const _temp3 = function () {
|
|
25032
24413
|
if (file.size >= 5242880) {
|
|
25033
24414
|
setErrorUpload({
|
|
25034
24415
|
key: "error",
|
|
25035
24416
|
message: "CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"
|
|
25036
24417
|
});
|
|
25037
24418
|
} else {
|
|
25038
|
-
const
|
|
24419
|
+
const _temp2 = _catch(function () {
|
|
25039
24420
|
setUploadedFile(null);
|
|
25040
24421
|
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0])).then(function (response) {
|
|
25041
|
-
var _response$
|
|
25042
|
-
if ((response === null || response === void 0 ? void 0 : (_response$
|
|
25043
|
-
var _response$
|
|
25044
|
-
setUploadedFile(response === null || response === void 0 ? void 0 : (_response$
|
|
25045
|
-
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);
|
|
25046
24427
|
} else {
|
|
25047
24428
|
setErrorUpload({
|
|
25048
24429
|
key: "error",
|
|
@@ -25056,13 +24437,13 @@ const WSDjbEmployee = _ref => {
|
|
|
25056
24437
|
message: "CS_FILE_UPLOAD_ERROR"
|
|
25057
24438
|
});
|
|
25058
24439
|
});
|
|
25059
|
-
if (
|
|
24440
|
+
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
25060
24441
|
}
|
|
25061
24442
|
}();
|
|
25062
|
-
if (
|
|
24443
|
+
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
25063
24444
|
}
|
|
25064
24445
|
}();
|
|
25065
|
-
return
|
|
24446
|
+
return _temp4 && _temp4.then ? _temp4.then(function () {}) : void 0;
|
|
25066
24447
|
} catch (e) {
|
|
25067
24448
|
Promise.reject(e);
|
|
25068
24449
|
}
|
|
@@ -25115,7 +24496,7 @@ const WSDjbEmployee = _ref => {
|
|
|
25115
24496
|
})
|
|
25116
24497
|
})), isDjbEmployee && /*#__PURE__*/React.createElement("div", {
|
|
25117
24498
|
className: "formcomposer-section-grid"
|
|
25118
|
-
}, /*#__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, {
|
|
25119
24500
|
control: control,
|
|
25120
24501
|
name: "employeeId",
|
|
25121
24502
|
rules: {
|
|
@@ -25124,9 +24505,10 @@ const WSDjbEmployee = _ref => {
|
|
|
25124
24505
|
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
25125
24506
|
value: props.value,
|
|
25126
24507
|
onChange: e => props.onChange(e.target.value),
|
|
25127
|
-
onBlur: props.onBlur
|
|
24508
|
+
onBlur: props.onBlur,
|
|
24509
|
+
placeholder: t("WS_EMPLOYEE_ID")
|
|
25128
24510
|
})
|
|
25129
|
-
}))), /*#__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", {
|
|
25130
24512
|
className: "field"
|
|
25131
24513
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25132
24514
|
control: control,
|
|
@@ -25138,7 +24520,7 @@ const WSDjbEmployee = _ref => {
|
|
|
25138
24520
|
date: props.value,
|
|
25139
24521
|
onChange: date => props.onChange(date)
|
|
25140
24522
|
})
|
|
25141
|
-
})))), /*#__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", {
|
|
25142
24524
|
className: "field"
|
|
25143
24525
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25144
24526
|
control: control,
|
|
@@ -25149,9 +24531,10 @@ const WSDjbEmployee = _ref => {
|
|
|
25149
24531
|
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
25150
24532
|
value: props.value,
|
|
25151
24533
|
onChange: e => props.onChange(e.target.value),
|
|
25152
|
-
onBlur: props.onBlur
|
|
24534
|
+
onBlur: props.onBlur,
|
|
24535
|
+
placeholder: t("WS_EMPLOYEE_DESIGNATION")
|
|
25153
24536
|
})
|
|
25154
|
-
})))), /*#__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", {
|
|
25155
24538
|
className: "field"
|
|
25156
24539
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25157
24540
|
control: control,
|
|
@@ -25162,6 +24545,7 @@ const WSDjbEmployee = _ref => {
|
|
|
25162
24545
|
render: props => /*#__PURE__*/React.createElement(UploadFile, {
|
|
25163
24546
|
id: "employee-doc",
|
|
25164
24547
|
extraStyleName: "propertyCreate",
|
|
24548
|
+
placeholder: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
|
|
25165
24549
|
accept: "image/*, .pdf, .png, .jpeg, .jpg",
|
|
25166
24550
|
onUpload: e => {
|
|
25167
24551
|
selectfile(e);
|
|
@@ -25172,9 +24556,62 @@ const WSDjbEmployee = _ref => {
|
|
|
25172
24556
|
props.onChange("");
|
|
25173
24557
|
},
|
|
25174
24558
|
message: uploadedFile ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
|
|
25175
|
-
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
|
|
25176
24563
|
})
|
|
25177
|
-
})
|
|
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)))))))));
|
|
25178
24615
|
if (userType === "citizen") {
|
|
25179
24616
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Timeline, {
|
|
25180
24617
|
currentStep: 2
|
|
@@ -25258,7 +24695,7 @@ const DECIMAL_PATTERN$1 = /^\d+(\.\d{1,2})?$/;
|
|
|
25258
24695
|
const normalizeCode = value => String(value || "").replace(/[._\s-]/g, "").toUpperCase();
|
|
25259
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;
|
|
25260
24697
|
const PropertyWaterConnection = _ref => {
|
|
25261
|
-
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;
|
|
25262
24699
|
let {
|
|
25263
24700
|
t,
|
|
25264
24701
|
config,
|
|
@@ -25311,7 +24748,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
25311
24748
|
categories.forEach(data => data.i18nKey = data.i18nKey || `WS_CATEGORY_${data.code}`);
|
|
25312
24749
|
setCategoryTypeList(categories);
|
|
25313
24750
|
}, [wsServicesMastersData]);
|
|
25314
|
-
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");
|
|
25315
24752
|
useEffect(() => {
|
|
25316
24753
|
if (props.register) {
|
|
25317
24754
|
props.register({
|
|
@@ -25511,7 +24948,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25511
24948
|
style: props.style
|
|
25512
24949
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25513
24950
|
className: "formcomposer-section-grid"
|
|
25514
|
-
}, /*#__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", {
|
|
25515
24954
|
className: "form-field"
|
|
25516
24955
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25517
24956
|
control: control,
|
|
@@ -25526,11 +24965,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
25526
24965
|
select: props.onChange,
|
|
25527
24966
|
t: t,
|
|
25528
24967
|
onBlur: props.onBlur,
|
|
25529
|
-
disable: isPropertyFound
|
|
24968
|
+
disable: isPropertyFound,
|
|
24969
|
+
placeholder: t("WS_CATEGORY_TYPE")
|
|
25530
24970
|
})
|
|
25531
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, {
|
|
25532
24972
|
style: errorStyle
|
|
25533
|
-
}, 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", {
|
|
25534
24976
|
className: "form-field"
|
|
25535
24977
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25536
24978
|
control: control,
|
|
@@ -25545,11 +24987,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
25545
24987
|
select: props.onChange,
|
|
25546
24988
|
t: t,
|
|
25547
24989
|
onBlur: props.onBlur,
|
|
25548
|
-
disable: isPropertyFound
|
|
24990
|
+
disable: isPropertyFound,
|
|
24991
|
+
placeholder: t("WS_PROPERTY_CATEGORY")
|
|
25549
24992
|
})
|
|
25550
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, {
|
|
25551
24994
|
style: errorStyle
|
|
25552
|
-
}, 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", {
|
|
25553
24998
|
className: "form-field"
|
|
25554
24999
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25555
25000
|
control: control,
|
|
@@ -25564,11 +25009,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
25564
25009
|
select: props.onChange,
|
|
25565
25010
|
t: t,
|
|
25566
25011
|
onBlur: props.onBlur,
|
|
25567
|
-
disable: isPropertyFound
|
|
25012
|
+
disable: isPropertyFound,
|
|
25013
|
+
placeholder: t("WS_PROPERTY_TYPE")
|
|
25568
25014
|
})
|
|
25569
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, {
|
|
25570
25016
|
style: errorStyle
|
|
25571
|
-
}, 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", {
|
|
25572
25020
|
className: "form-field"
|
|
25573
25021
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25574
25022
|
control: control,
|
|
@@ -25583,15 +25031,21 @@ const PropertyWaterConnection = _ref => {
|
|
|
25583
25031
|
select: props.onChange,
|
|
25584
25032
|
t: t,
|
|
25585
25033
|
onBlur: props.onBlur,
|
|
25586
|
-
disable: isPropertyFound
|
|
25034
|
+
disable: isPropertyFound,
|
|
25035
|
+
placeholder: t("WS_WATER_CONNECTION_USAGE_TYPE")
|
|
25587
25036
|
})
|
|
25588
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, {
|
|
25589
25038
|
style: errorStyle
|
|
25590
|
-
}, 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", {
|
|
25591
25042
|
className: "form-field"
|
|
25592
25043
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25593
25044
|
control: control,
|
|
25594
25045
|
name: "useDetails.noOfFloors",
|
|
25046
|
+
rules: {
|
|
25047
|
+
required: t("REQUIRED_FIELD")
|
|
25048
|
+
},
|
|
25595
25049
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
25596
25050
|
option: floorOptions,
|
|
25597
25051
|
optionKey: "name",
|
|
@@ -25599,11 +25053,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
25599
25053
|
select: props.onChange,
|
|
25600
25054
|
t: t,
|
|
25601
25055
|
onBlur: props.onBlur,
|
|
25602
|
-
disable: isPropertyFound
|
|
25056
|
+
disable: isPropertyFound,
|
|
25057
|
+
placeholder: t("WS_NUMBER_OF_FLOORS")
|
|
25603
25058
|
})
|
|
25604
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, {
|
|
25605
25060
|
style: errorStyle
|
|
25606
|
-
}, 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", {
|
|
25607
25064
|
className: "form-field"
|
|
25608
25065
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
25609
25066
|
t: t,
|
|
@@ -25613,11 +25070,17 @@ const PropertyWaterConnection = _ref => {
|
|
|
25613
25070
|
message: t("ERR_INVALID_DECIMAL")
|
|
25614
25071
|
}
|
|
25615
25072
|
}),
|
|
25073
|
+
rules: {
|
|
25074
|
+
required: t("REQUIRED_FIELD")
|
|
25075
|
+
},
|
|
25616
25076
|
name: "useDetails.plotArea",
|
|
25617
|
-
disabled: isPropertyFound
|
|
25077
|
+
disabled: isPropertyFound,
|
|
25078
|
+
placeholder: t("WS_PLOT_AREA")
|
|
25618
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, {
|
|
25619
25080
|
style: errorStyle
|
|
25620
|
-
}, 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", {
|
|
25621
25084
|
className: "form-field"
|
|
25622
25085
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
25623
25086
|
t: t,
|
|
@@ -25628,37 +25091,16 @@ const PropertyWaterConnection = _ref => {
|
|
|
25628
25091
|
}
|
|
25629
25092
|
}),
|
|
25630
25093
|
name: "useDetails.builtUpArea",
|
|
25631
|
-
|
|
25094
|
+
rules: {
|
|
25095
|
+
required: t("REQUIRED_FIELD")
|
|
25096
|
+
},
|
|
25097
|
+
disabled: isPropertyFound,
|
|
25098
|
+
placeholder: t("WS_BUILT_UP_AREA")
|
|
25632
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, {
|
|
25633
25100
|
style: errorStyle
|
|
25634
|
-
}, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React.createElement(
|
|
25635
|
-
className: "
|
|
25636
|
-
}, /*#__PURE__*/React.createElement(
|
|
25637
|
-
t: t,
|
|
25638
|
-
inputRef: register({
|
|
25639
|
-
pattern: {
|
|
25640
|
-
value: DECIMAL_PATTERN$1,
|
|
25641
|
-
message: t("ERR_INVALID_DECIMAL")
|
|
25642
|
-
},
|
|
25643
|
-
validate: value => {
|
|
25644
|
-
var _formValue$useDetails, _formValue$useDetails2;
|
|
25645
|
-
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)) {
|
|
25646
|
-
return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
|
|
25647
|
-
}
|
|
25648
|
-
}
|
|
25649
|
-
}),
|
|
25650
|
-
name: "useDetails.farArea",
|
|
25651
|
-
disabled: isPropertyFound
|
|
25652
|
-
}))), (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, {
|
|
25653
|
-
style: errorStyle
|
|
25654
|
-
}, 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, {
|
|
25655
|
-
style: {
|
|
25656
|
-
width: "70%",
|
|
25657
|
-
marginLeft: "30%",
|
|
25658
|
-
fontSize: "12px",
|
|
25659
|
-
marginTop: "5px"
|
|
25660
|
-
}
|
|
25661
|
-
}, 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", {
|
|
25662
25104
|
className: "form-field"
|
|
25663
25105
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25664
25106
|
control: control,
|
|
@@ -25673,9 +25115,10 @@ const PropertyWaterConnection = _ref => {
|
|
|
25673
25115
|
select: props.onChange,
|
|
25674
25116
|
t: t,
|
|
25675
25117
|
onBlur: props.onBlur,
|
|
25676
|
-
disable: isPropertyFound
|
|
25118
|
+
disable: isPropertyFound,
|
|
25119
|
+
placeholder: t("WS_SELECT_YEAR_OF_CONSTRUCTION")
|
|
25677
25120
|
})
|
|
25678
|
-
}))), (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, {
|
|
25679
25122
|
style: errorStyle
|
|
25680
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", {
|
|
25681
25124
|
className: "form-field"
|
|
@@ -25688,8 +25131,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25688
25131
|
}
|
|
25689
25132
|
}),
|
|
25690
25133
|
name: "useDetails.NumberofDwellingUnits",
|
|
25691
|
-
disabled: isPropertyFound
|
|
25692
|
-
|
|
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, {
|
|
25693
25137
|
style: errorStyle
|
|
25694
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", {
|
|
25695
25139
|
className: "form-field"
|
|
@@ -25703,8 +25147,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25703
25147
|
required: isHotelRestaurantProperty ? t("REQUIRED_FIELD") : false
|
|
25704
25148
|
}),
|
|
25705
25149
|
name: "useDetails.NumberofRooms",
|
|
25706
|
-
disabled: isPropertyFound
|
|
25707
|
-
|
|
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, {
|
|
25708
25153
|
style: errorStyle
|
|
25709
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", {
|
|
25710
25155
|
className: "form-field"
|
|
@@ -25718,8 +25163,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25718
25163
|
required: isHospitalProperty ? t("REQUIRED_FIELD") : false
|
|
25719
25164
|
}),
|
|
25720
25165
|
name: "useDetails.numberOfBeds",
|
|
25721
|
-
disabled: isPropertyFound
|
|
25722
|
-
|
|
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, {
|
|
25723
25169
|
style: errorStyle
|
|
25724
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", {
|
|
25725
25171
|
className: "form-field"
|
|
@@ -25732,8 +25178,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25732
25178
|
}
|
|
25733
25179
|
}),
|
|
25734
25180
|
name: "useDetails.numberOfStudents",
|
|
25735
|
-
disabled: isPropertyFound
|
|
25736
|
-
|
|
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, {
|
|
25737
25184
|
style: errorStyle
|
|
25738
25185
|
}, errors.useDetails.numberOfStudents.message), isServentHouse ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_SERVENT_HOUSE")}`), /*#__PURE__*/React.createElement("div", {
|
|
25739
25186
|
className: "form-field"
|
|
@@ -25746,8 +25193,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25746
25193
|
}
|
|
25747
25194
|
}),
|
|
25748
25195
|
name: "useDetails.servantQuarterArea",
|
|
25749
|
-
disabled: isPropertyFound
|
|
25750
|
-
|
|
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, {
|
|
25751
25199
|
style: errorStyle
|
|
25752
25200
|
}, errors.useDetails.servantQuarterArea.message)));
|
|
25753
25201
|
};
|
|
@@ -30128,7 +29576,7 @@ const WSCreate = () => {
|
|
|
30128
29576
|
let {
|
|
30129
29577
|
data: newConfig$1
|
|
30130
29578
|
} = Digit.Hooks.ws.useWSConfigMDMS.getFormConfig(stateId, []);
|
|
30131
|
-
let isModifyEdit = window.location.href.includes("/modify-connection
|
|
29579
|
+
let isModifyEdit = window.location.href.includes("/modify-connection") || window.location.href.includes("/edit-application");
|
|
30132
29580
|
const goNext = skipStep => {
|
|
30133
29581
|
var _params$cptId, _params$cpt, _params$cpt$details, _params$cpt2, _params$cpt2$details;
|
|
30134
29582
|
const currentPath = pathname.split("/").pop();
|
|
@@ -33317,15 +32765,7 @@ const ViewBreakup = _ref => {
|
|
|
33317
32765
|
label: t("WS_BUILT_UP_AREA"),
|
|
33318
32766
|
value: propertyDetail.superBuiltUpArea,
|
|
33319
32767
|
unit: " (sq. meter.)"
|
|
33320
|
-
}, isValidValue(propertyDetail.
|
|
33321
|
-
label: t("WS_FAR_AREA"),
|
|
33322
|
-
value: propertyDetail.farArea,
|
|
33323
|
-
isText: true
|
|
33324
|
-
} : null, isValidValue(propertyDetail.coveredArea) ? {
|
|
33325
|
-
label: t("WS_COVERED_AREA"),
|
|
33326
|
-
value: propertyDetail.coveredArea,
|
|
33327
|
-
isText: true
|
|
33328
|
-
} : null, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
|
|
32768
|
+
}, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
|
|
33329
32769
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
33330
32770
|
value: propertyDetail.numberOfDwellingUnits,
|
|
33331
32771
|
isText: true
|
|
@@ -33562,7 +33002,7 @@ const checkForNA$1 = value => {
|
|
|
33562
33002
|
return value ? value : "CS_NA";
|
|
33563
33003
|
};
|
|
33564
33004
|
const WSApplicationDetails = () => {
|
|
33565
|
-
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;
|
|
33566
33006
|
const getDisconnectionNoticeSearch = function () {
|
|
33567
33007
|
try {
|
|
33568
33008
|
var _data$WaterConnection186, _data$WaterConnection187, _data$SewerageConnect180, _data$SewerageConnect181;
|
|
@@ -33953,22 +33393,13 @@ const WSApplicationDetails = () => {
|
|
|
33953
33393
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
33954
33394
|
label: t("WS_SERVICE_TYPE"),
|
|
33955
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"))}`
|
|
33956
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
33957
|
-
label: t("WS_CONNECTION_TYPE"),
|
|
33958
|
-
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)))}`
|
|
33959
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
33960
|
-
label: t("WS_WATER_DEMAND_TYPE"),
|
|
33961
|
-
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)))}`
|
|
33962
33396
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33963
33397
|
label: t("WS_APPLICANT_TYPE"),
|
|
33964
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)))}`
|
|
33965
33399
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
33966
33400
|
label: t("WS_DIVYANGJAN"),
|
|
33967
33401
|
text: `${connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
|
|
33968
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
33969
|
-
label: t("WS_SERVICE_TYPE"),
|
|
33970
|
-
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)))}`
|
|
33971
|
-
}), (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, {
|
|
33972
33403
|
label: t("WS_DEPARTMENT_TYPE"),
|
|
33973
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)))}`
|
|
33974
33405
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
@@ -36412,7 +35843,7 @@ const getPath$3 = (path, params) => {
|
|
|
36412
35843
|
};
|
|
36413
35844
|
const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
36414
35845
|
if (waterResult) {
|
|
36415
|
-
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;
|
|
36416
35847
|
waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [{
|
|
36417
35848
|
...(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti = waterResult.connectionHolders) === null || _waterResult$connecti === void 0 ? void 0 : _waterResult$connecti[0]),
|
|
36418
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,
|
|
@@ -36537,10 +35968,11 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
36537
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",
|
|
36538
35969
|
employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.employeeId) || "",
|
|
36539
35970
|
designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.designation) || "",
|
|
36540
|
-
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) || ""
|
|
36541
35973
|
};
|
|
36542
35974
|
} else if (sewerageresult) {
|
|
36543
|
-
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;
|
|
36544
35976
|
sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [{
|
|
36545
35977
|
...(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0]),
|
|
36546
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,
|
|
@@ -36660,7 +36092,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
|
|
|
36660
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",
|
|
36661
36093
|
employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.employeeId) || "",
|
|
36662
36094
|
designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.designation) || "",
|
|
36663
|
-
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) || ""
|
|
36664
36097
|
};
|
|
36665
36098
|
}
|
|
36666
36099
|
if (waterResult) return {
|
|
@@ -36677,14 +36110,17 @@ const EditApplication = _ref => {
|
|
|
36677
36110
|
t
|
|
36678
36111
|
} = useTranslation();
|
|
36679
36112
|
let {
|
|
36680
|
-
tenantId
|
|
36113
|
+
tenantId: tenantIdFromUrl
|
|
36681
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();
|
|
36682
36118
|
const {
|
|
36683
36119
|
pathname,
|
|
36684
36120
|
state
|
|
36685
36121
|
} = useLocation();
|
|
36686
36122
|
const history = useHistory();
|
|
36687
|
-
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");
|
|
36688
36124
|
let config = [];
|
|
36689
36125
|
let waterapplication = {};
|
|
36690
36126
|
let sewerageapplication = {};
|
|
@@ -36729,12 +36165,12 @@ const EditApplication = _ref => {
|
|
|
36729
36165
|
}, {
|
|
36730
36166
|
enabled: applicationNumber && applicationNumber.includes("SW") ? true : false
|
|
36731
36167
|
});
|
|
36732
|
-
let isModifyEdit = window.location.href.includes("/modify-connection
|
|
36168
|
+
let isModifyEdit = window.location.href.includes("/modify-connection") || window.location.href.includes("/edit-application");
|
|
36733
36169
|
useEffect(() => {
|
|
36734
36170
|
var _waterapplication, _sewerageapplication;
|
|
36735
36171
|
waterapplication = Waterresult;
|
|
36736
36172
|
sewerageapplication = Sewarageresult;
|
|
36737
|
-
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)))) {
|
|
36738
36174
|
waterapplication = Waterresult;
|
|
36739
36175
|
sewerageapplication = Sewarageresult;
|
|
36740
36176
|
if (window.location.href.includes("edit-application")) {
|
|
@@ -36827,7 +36263,7 @@ const EditApplication = _ref => {
|
|
|
36827
36263
|
}]
|
|
36828
36264
|
};
|
|
36829
36265
|
});
|
|
36830
|
-
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)) {
|
|
36831
36267
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
36832
36268
|
}
|
|
36833
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");
|
|
@@ -36961,7 +36397,7 @@ const CheckPage = _ref => {
|
|
|
36961
36397
|
cpt
|
|
36962
36398
|
} = value;
|
|
36963
36399
|
let routeLink = `/digit-ui/citizen/ws/create-application`;
|
|
36964
|
-
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}`;
|
|
36965
36401
|
function routeTo(jumpTo) {
|
|
36966
36402
|
location.href = jumpTo;
|
|
36967
36403
|
}
|
|
@@ -37792,7 +37228,7 @@ const WSAcknowledgement = _ref => {
|
|
|
37792
37228
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
37793
37229
|
const WSmutation = Digit.Hooks.ws.useWSUpdateAPI("WATER");
|
|
37794
37230
|
const SWmutation = Digit.Hooks.ws.useWSUpdateAPI("SEWERAGE");
|
|
37795
|
-
let isEdit = window.location.href.includes("/edit-application
|
|
37231
|
+
let isEdit = window.location.href.includes("/edit-application") || window.location.href.includes("/modify-connection");
|
|
37796
37232
|
const {
|
|
37797
37233
|
data: storeData
|
|
37798
37234
|
} = Digit.Hooks.useStore.getInitData();
|
|
@@ -37903,7 +37339,7 @@ const WSAcknowledgement = _ref => {
|
|
|
37903
37339
|
onClick: handleDownloadPdfSewerage
|
|
37904
37340
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
37905
37341
|
to: {
|
|
37906
|
-
pathname: `/digit-ui
|
|
37342
|
+
pathname: `/digit-ui/${window.location.pathname.includes("employee") ? "employee" : "citizen"}`
|
|
37907
37343
|
}
|
|
37908
37344
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
37909
37345
|
label: t("CORE_COMMON_GO_TO_HOME")
|
|
@@ -37919,7 +37355,7 @@ const CheckPage$1 = () => {
|
|
|
37919
37355
|
const value = Digit.SessionStorage.get("WS_DISCONNECTION");
|
|
37920
37356
|
const [documents, setDocuments] = useState(value.WSDisconnectionForm.documents || []);
|
|
37921
37357
|
let routeLink = `/digit-ui/citizen/ws/disconnect-application`;
|
|
37922
|
-
if (window.location.href.includes("/edit-application
|
|
37358
|
+
if (window.location.href.includes("/edit-application")) routeLink = `/digit-ui/citizen/ws/edit-disconnect-application`;
|
|
37923
37359
|
function routeTo(jumpTo) {
|
|
37924
37360
|
location.href = jumpTo;
|
|
37925
37361
|
}
|
|
@@ -39134,7 +38570,7 @@ const WSInfoPage = () => {
|
|
|
39134
38570
|
setOtp("");
|
|
39135
38571
|
setIsMobileVerified(false);
|
|
39136
38572
|
},
|
|
39137
|
-
placeholder: t("
|
|
38573
|
+
placeholder: t("CORE_COMMON_PHONE_NUMBER_PLACEHOLDER") || "Enter mobile number",
|
|
39138
38574
|
maxLength: 10,
|
|
39139
38575
|
disabled: isMobileVerified
|
|
39140
38576
|
})), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && !isMobileVerified && !showOtpVerification && /*#__PURE__*/React.createElement("button", {
|
|
@@ -39336,7 +38772,7 @@ const WSInfoPage = () => {
|
|
|
39336
38772
|
marginBottom: "24px",
|
|
39337
38773
|
lineHeight: "2"
|
|
39338
38774
|
}
|
|
39339
|
-
}, /*#__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, {
|
|
39340
38776
|
style: {
|
|
39341
38777
|
marginTop: "0",
|
|
39342
38778
|
marginBottom: "0"
|
|
@@ -39348,7 +38784,7 @@ const WSInfoPage = () => {
|
|
|
39348
38784
|
marginBottom: "24px",
|
|
39349
38785
|
lineHeight: "2"
|
|
39350
38786
|
}
|
|
39351
|
-
}, /*#__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, {
|
|
39352
38788
|
style: {
|
|
39353
38789
|
marginTop: "0",
|
|
39354
38790
|
marginBottom: "0"
|
|
@@ -39360,7 +38796,7 @@ const WSInfoPage = () => {
|
|
|
39360
38796
|
marginBottom: "24px",
|
|
39361
38797
|
lineHeight: "2"
|
|
39362
38798
|
}
|
|
39363
|
-
}, /*#__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, {
|
|
39364
38800
|
style: {
|
|
39365
38801
|
marginTop: "0",
|
|
39366
38802
|
marginBottom: "0"
|
|
@@ -39404,7 +38840,7 @@ const WSInfoPage = () => {
|
|
|
39404
38840
|
marginBottom: "24px",
|
|
39405
38841
|
lineHeight: "2"
|
|
39406
38842
|
}
|
|
39407
|
-
}, /*#__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, {
|
|
39408
38844
|
label: t("CS_COMMON_NEXT"),
|
|
39409
38845
|
onSubmit: () => {},
|
|
39410
38846
|
disabled: true
|
|
@@ -40482,7 +39918,7 @@ const ViewIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
40482
39918
|
cy: "12",
|
|
40483
39919
|
r: "3"
|
|
40484
39920
|
}));
|
|
40485
|
-
const CameraCaptureModal
|
|
39921
|
+
const CameraCaptureModal = _ref => {
|
|
40486
39922
|
let {
|
|
40487
39923
|
onCapture,
|
|
40488
39924
|
onClose,
|
|
@@ -41118,7 +40554,7 @@ const FileUploadField = _ref6 => {
|
|
|
41118
40554
|
})))));
|
|
41119
40555
|
};
|
|
41120
40556
|
const NewApplication = () => {
|
|
41121
|
-
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;
|
|
41122
40558
|
const {
|
|
41123
40559
|
t
|
|
41124
40560
|
} = useTranslation();
|
|
@@ -42982,45 +42418,15 @@ const NewApplication = () => {
|
|
|
42982
42418
|
background: "#F3F4F6",
|
|
42983
42419
|
padding: "4px 12px",
|
|
42984
42420
|
borderRadius: "20px",
|
|
42985
|
-
width: "fit-content"
|
|
42986
|
-
border: "1px solid #E5E7EB"
|
|
42421
|
+
width: "fit-content"
|
|
42987
42422
|
}
|
|
42988
|
-
}, /*#__PURE__*/React.createElement(
|
|
42423
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
42989
42424
|
style: {
|
|
42990
|
-
margin: 0,
|
|
42991
42425
|
fontSize: "14px",
|
|
42992
|
-
|
|
42993
|
-
|
|
42426
|
+
fontWeight: "500",
|
|
42427
|
+
color: "#0B0C0C"
|
|
42994
42428
|
}
|
|
42995
|
-
}, watch("documents.applicantPhoto").fileName), /*#__PURE__*/React.createElement(
|
|
42996
|
-
onClick: () => clearUploadedFile("documents.applicantPhoto", val => setValue("documents.applicantPhoto", val)),
|
|
42997
|
-
style: {
|
|
42998
|
-
cursor: "pointer",
|
|
42999
|
-
display: "flex",
|
|
43000
|
-
alignItems: "center",
|
|
43001
|
-
color: "#6B7280"
|
|
43002
|
-
},
|
|
43003
|
-
title: "Remove Photo"
|
|
43004
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
43005
|
-
width: "16",
|
|
43006
|
-
height: "16",
|
|
43007
|
-
viewBox: "0 0 24 24",
|
|
43008
|
-
fill: "none",
|
|
43009
|
-
stroke: "currentColor",
|
|
43010
|
-
strokeWidth: "3",
|
|
43011
|
-
strokeLinecap: "round",
|
|
43012
|
-
strokeLinejoin: "round"
|
|
43013
|
-
}, /*#__PURE__*/React.createElement("line", {
|
|
43014
|
-
x1: "18",
|
|
43015
|
-
y1: "6",
|
|
43016
|
-
x2: "6",
|
|
43017
|
-
y2: "18"
|
|
43018
|
-
}), /*#__PURE__*/React.createElement("line", {
|
|
43019
|
-
x1: "6",
|
|
43020
|
-
y1: "6",
|
|
43021
|
-
x2: "18",
|
|
43022
|
-
y2: "18"
|
|
43023
|
-
}))))), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
42429
|
+
}, ((_watch4 = watch("documents.applicantPhoto")) === null || _watch4 === void 0 ? void 0 : _watch4.fileName) || "Applicant_Photo.jpg"))), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
43024
42430
|
error: getFieldError("documents.proofOfIdentity"),
|
|
43025
42431
|
label: "Proof of Identity *",
|
|
43026
42432
|
required: true
|
|
@@ -43066,10 +42472,10 @@ const NewApplication = () => {
|
|
|
43066
42472
|
type: "button",
|
|
43067
42473
|
className: "document-action-btn",
|
|
43068
42474
|
onClick: () => {
|
|
43069
|
-
var
|
|
43070
|
-
return handleView((
|
|
42475
|
+
var _watch5;
|
|
42476
|
+
return handleView((_watch5 = watch("documents.identityProofFile")) === null || _watch5 === void 0 ? void 0 : _watch5.fileStoreId, stateId);
|
|
43071
42477
|
},
|
|
43072
|
-
disabled: !((
|
|
42478
|
+
disabled: !((_watch6 = watch("documents.identityProofFile")) !== null && _watch6 !== void 0 && _watch6.fileStoreId)
|
|
43073
42479
|
}, /*#__PURE__*/React.createElement(ViewIcon, null), " View")), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
43074
42480
|
error: getFieldError("documents.ownershipStatus"),
|
|
43075
42481
|
label: "Proof of Ownership *",
|
|
@@ -43116,10 +42522,10 @@ const NewApplication = () => {
|
|
|
43116
42522
|
type: "button",
|
|
43117
42523
|
className: "document-action-btn",
|
|
43118
42524
|
onClick: () => {
|
|
43119
|
-
var
|
|
43120
|
-
return handleView((
|
|
42525
|
+
var _watch7;
|
|
42526
|
+
return handleView((_watch7 = watch("documents.ownershipDocumentFile")) === null || _watch7 === void 0 ? void 0 : _watch7.fileStoreId, stateId);
|
|
43121
42527
|
},
|
|
43122
|
-
disabled: !((
|
|
42528
|
+
disabled: !((_watch8 = watch("documents.ownershipDocumentFile")) !== null && _watch8 !== void 0 && _watch8.fileStoreId)
|
|
43123
42529
|
}, /*#__PURE__*/React.createElement(ViewIcon, null), " View")), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
43124
42530
|
error: getFieldError("documents.otherDocument"),
|
|
43125
42531
|
label: "Other"
|
|
@@ -43162,10 +42568,10 @@ const NewApplication = () => {
|
|
|
43162
42568
|
type: "button",
|
|
43163
42569
|
className: "document-action-btn",
|
|
43164
42570
|
onClick: () => {
|
|
43165
|
-
var
|
|
43166
|
-
return handleView((
|
|
42571
|
+
var _watch9;
|
|
42572
|
+
return handleView((_watch9 = watch("documents.otherDocumentFile")) === null || _watch9 === void 0 ? void 0 : _watch9.fileStoreId, stateId);
|
|
43167
42573
|
},
|
|
43168
|
-
disabled: !((
|
|
42574
|
+
disabled: !((_watch0 = watch("documents.otherDocumentFile")) !== null && _watch0 !== void 0 && _watch0.fileStoreId)
|
|
43169
42575
|
}, /*#__PURE__*/React.createElement(ViewIcon, null), " View"))), /*#__PURE__*/React.createElement(SectionCard, {
|
|
43170
42576
|
description: "Declaration and undertaking to be signed by the applicant.",
|
|
43171
42577
|
isOpen: collapsedSections.declaration,
|
|
@@ -43528,7 +42934,7 @@ const NewApplication = () => {
|
|
|
43528
42934
|
label: showToast === null || showToast === void 0 ? void 0 : showToast.message,
|
|
43529
42935
|
onClose: closeToast,
|
|
43530
42936
|
warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning
|
|
43531
|
-
}) : null, showCamera && /*#__PURE__*/React.createElement(CameraCaptureModal
|
|
42937
|
+
}) : null, showCamera && /*#__PURE__*/React.createElement(CameraCaptureModal, {
|
|
43532
42938
|
onCapture: handleCapture,
|
|
43533
42939
|
onClose: () => setShowCamera(false),
|
|
43534
42940
|
t: t
|
|
@@ -47885,7 +47291,7 @@ function PropertyDocuments(_ref) {
|
|
|
47885
47291
|
});
|
|
47886
47292
|
});
|
|
47887
47293
|
const allChecked = requiredDocsCount === 0 || checkedCount === requiredDocsCount;
|
|
47888
|
-
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";
|
|
47889
47295
|
const finalVerified = isDocVerifState ? allChecked : true;
|
|
47890
47296
|
window.isDocumentsVerified = finalVerified;
|
|
47891
47297
|
window.dispatchEvent(new CustomEvent("DOCUMENTS_VERIFIED", {
|
|
@@ -47915,7 +47321,7 @@ function PropertyDocuments(_ref) {
|
|
|
47915
47321
|
const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("/obps") || window.location.href.includes("employee/ws");
|
|
47916
47322
|
const isWSLocation = window.location.href.includes("/ws/") || window.location.href.includes("employee/ws") || window.location.href.includes("citizen/ws");
|
|
47917
47323
|
const isStakeholderApplication = window.location.href.includes("stakeholder");
|
|
47918
|
-
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);
|
|
47919
47325
|
const getDocSubType = documentType => {
|
|
47920
47326
|
if (!documentType) return "";
|
|
47921
47327
|
const parts = documentType.split(".");
|
|
@@ -49341,7 +48747,7 @@ const DueVerification = _ref => {
|
|
|
49341
48747
|
});
|
|
49342
48748
|
}, [applicationData]);
|
|
49343
48749
|
const isPendingApproval = ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_ZRO_APPROVAL"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
49344
|
-
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);
|
|
49345
48751
|
const columns = useMemo(() => {
|
|
49346
48752
|
const baseColumns = [{
|
|
49347
48753
|
Header: t("K No."),
|
|
@@ -50236,7 +49642,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
50236
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, {
|
|
50237
49643
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents,
|
|
50238
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)
|
|
50239
|
-
}), (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, {
|
|
50240
49646
|
applicationData: applicationData
|
|
50241
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, {
|
|
50242
49648
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -51969,7 +51375,7 @@ const ActivateConnection = () => {
|
|
|
51969
51375
|
setShowToast(false);
|
|
51970
51376
|
}, 3000);
|
|
51971
51377
|
} else {
|
|
51972
|
-
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;
|
|
51973
51379
|
function _temp4() {
|
|
51974
51380
|
var _formDetails$activati, _formDetails$activati2, _formDetails$activati3, _formDetails$activati4;
|
|
51975
51381
|
function _temp2() {
|
|
@@ -52039,11 +51445,15 @@ const ActivateConnection = () => {
|
|
|
52039
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;
|
|
52040
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;
|
|
52041
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;
|
|
52042
|
-
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)
|
|
52043
|
-
|
|
52044
|
-
|
|
52045
|
-
|
|
52046
|
-
|
|
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;
|
|
52047
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;
|
|
52048
51458
|
const _temp3 = function (_formDetails$activati11, _formDetails$activati12, _formDetails$activati13, _formDetails$activati14) {
|
|
52049
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) {
|
|
@@ -58967,7 +58377,7 @@ const openFilePDF = fileId => {
|
|
|
58967
58377
|
}).catch(error => console.error("Error fetching file:", error));
|
|
58968
58378
|
};
|
|
58969
58379
|
const CheckPage$4 = _ref2 => {
|
|
58970
|
-
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;
|
|
58971
58381
|
let {
|
|
58972
58382
|
data,
|
|
58973
58383
|
onSubmit,
|
|
@@ -58981,52 +58391,6 @@ const CheckPage$4 = _ref2 => {
|
|
|
58981
58391
|
const [docFileType, setDocFileType] = useState("");
|
|
58982
58392
|
const [formState, setFormState] = useState(JSON.parse(sessionStorage.getItem("FORMSTATE_ERRORS")) || {});
|
|
58983
58393
|
const isCitizen = ((_Digit$UserService$ge = Digit.UserService.getType()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.toUpperCase()) === "CITIZEN";
|
|
58984
|
-
const handleViewDocument = function (fileStoreId) {
|
|
58985
|
-
try {
|
|
58986
|
-
const _temp3 = function () {
|
|
58987
|
-
if (fileStoreId) {
|
|
58988
|
-
const _temp2 = function () {
|
|
58989
|
-
if (typeof fileStoreId === "object" && fileStoreId.type) {
|
|
58990
|
-
const fileURL = URL.createObjectURL(fileStoreId);
|
|
58991
|
-
setDocFileUrl(fileURL);
|
|
58992
|
-
if (fileStoreId.type.includes("pdf")) {
|
|
58993
|
-
setDocFileType("pdf");
|
|
58994
|
-
} else {
|
|
58995
|
-
setDocFileType("image");
|
|
58996
|
-
}
|
|
58997
|
-
setShowDocModal(true);
|
|
58998
|
-
} else {
|
|
58999
|
-
const _temp = _catch(function () {
|
|
59000
|
-
return Promise.resolve(Digit.UploadServices.FileFetchbyid(fileStoreId, Digit.ULBService.getStateId())).then(function (res) {
|
|
59001
|
-
if (res !== null && res !== void 0 && res.data) {
|
|
59002
|
-
const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
|
|
59003
|
-
type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
|
|
59004
|
-
});
|
|
59005
|
-
const fileURL = URL.createObjectURL(blob);
|
|
59006
|
-
setDocFileUrl(fileURL);
|
|
59007
|
-
const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
|
|
59008
|
-
if (contentType.toLowerCase().includes("pdf")) {
|
|
59009
|
-
setDocFileType("pdf");
|
|
59010
|
-
} else {
|
|
59011
|
-
setDocFileType("image");
|
|
59012
|
-
}
|
|
59013
|
-
setShowDocModal(true);
|
|
59014
|
-
}
|
|
59015
|
-
});
|
|
59016
|
-
}, function (err) {
|
|
59017
|
-
console.error("Failed to fetch file URL via FileFetchbyid", err);
|
|
59018
|
-
});
|
|
59019
|
-
if (_temp && _temp.then) return _temp.then(function () {});
|
|
59020
|
-
}
|
|
59021
|
-
}();
|
|
59022
|
-
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
59023
|
-
}
|
|
59024
|
-
}();
|
|
59025
|
-
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
59026
|
-
} catch (e) {
|
|
59027
|
-
return Promise.reject(e);
|
|
59028
|
-
}
|
|
59029
|
-
};
|
|
59030
58394
|
const cpt = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : _data$cpt.details) || {};
|
|
59031
58395
|
let propertyAddress = (data === null || data === void 0 ? void 0 : data.propertyAddress) || {};
|
|
59032
58396
|
if (Object.keys(propertyAddress).length === 0) {
|
|
@@ -59070,43 +58434,10 @@ const CheckPage$4 = _ref2 => {
|
|
|
59070
58434
|
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
59071
58435
|
onClick: onEdit
|
|
59072
58436
|
})
|
|
59073
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
59074
|
-
label: t("WS_CONNECTION_TYPE"),
|
|
59075
|
-
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)))}`
|
|
59076
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
59077
|
-
label: t("WS_WATER_DEMAND_TYPE"),
|
|
59078
|
-
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)))}`
|
|
59079
58437
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
59080
58438
|
label: t("WS_APPLICANT_TYPE"),
|
|
59081
|
-
text: `${t(checkForNA(((
|
|
59082
|
-
}), /*#__PURE__*/React.createElement(
|
|
59083
|
-
label: t("WS_SERVICE_TYPE"),
|
|
59084
|
-
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)))}`
|
|
59085
|
-
}), ((_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, {
|
|
59086
|
-
label: t("WS_DEPARTMENT_TYPE"),
|
|
59087
|
-
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)))}`
|
|
59088
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
59089
|
-
label: t("WS_ORGANIZATION_DEPARTMENT_NAME"),
|
|
59090
|
-
text: `${t(checkForNA((_connectionDetails18 = connectionDetails) === null || _connectionDetails18 === void 0 ? void 0 : _connectionDetails18.institutionName))}`
|
|
59091
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
59092
|
-
label: t("WS_NATURE_OF_WORK"),
|
|
59093
|
-
text: `${t(checkForNA((_connectionDetails19 = connectionDetails) === null || _connectionDetails19 === void 0 ? void 0 : _connectionDetails19.natureOfWork))}`
|
|
59094
|
-
}), ((_connectionDetails20 = connectionDetails) === null || _connectionDetails20 === void 0 ? void 0 : _connectionDetails20.orgDeptDocument) && /*#__PURE__*/React.createElement(Row, {
|
|
59095
|
-
label: t("WS_ORG_DEPT_DOCUMENT"),
|
|
59096
|
-
text: /*#__PURE__*/React.createElement("span", {
|
|
59097
|
-
style: {
|
|
59098
|
-
display: "flex",
|
|
59099
|
-
alignItems: "center",
|
|
59100
|
-
gap: "8px",
|
|
59101
|
-
cursor: "pointer",
|
|
59102
|
-
color: "#f47738"
|
|
59103
|
-
},
|
|
59104
|
-
onClick: () => {
|
|
59105
|
-
var _connectionDetails21;
|
|
59106
|
-
return openFilePDF((_connectionDetails21 = connectionDetails) === null || _connectionDetails21 === void 0 ? void 0 : _connectionDetails21.orgDeptDocument);
|
|
59107
|
-
}
|
|
59108
|
-
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
59109
|
-
}))), /*#__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, {
|
|
59110
58441
|
style: {
|
|
59111
58442
|
marginTop: "10px",
|
|
59112
58443
|
marginBottom: "30px"
|
|
@@ -59126,21 +58457,15 @@ const CheckPage$4 = _ref2 => {
|
|
|
59126
58457
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
59127
58458
|
label: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL"),
|
|
59128
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)))}`
|
|
59129
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
59130
|
-
label: t("WS_OWN_DETAIL_GUARDIAN_LABEL"),
|
|
59131
|
-
text: `${t(checkForNA((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.guardian))}`
|
|
59132
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
59133
|
-
label: t("WS_CONN_HOLDER_OWN_DETAIL_RELATION_LABEL"),
|
|
59134
|
-
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)))}`
|
|
59135
58460
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
59136
58461
|
label: t("CORE_COMMON_MOBILE_NUMBER"),
|
|
59137
|
-
text: `${t(checkForNA((
|
|
58462
|
+
text: `${t(checkForNA((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.mobileNumber))}`
|
|
59138
58463
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
59139
58464
|
label: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
|
|
59140
|
-
text: `${t(checkForNA((
|
|
58465
|
+
text: `${t(checkForNA((_holderDetails8 = holderDetails) === null || _holderDetails8 === void 0 ? void 0 : _holderDetails8.watsAppMobileNumber))}`
|
|
59141
58466
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
59142
58467
|
label: t("WS_EMAIL_ID"),
|
|
59143
|
-
text: `${t(checkForNA((
|
|
58468
|
+
text: `${t(checkForNA((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : _holderDetails9.emailId))}`
|
|
59144
58469
|
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
59145
58470
|
style: {
|
|
59146
58471
|
marginTop: "10px",
|
|
@@ -59319,21 +58644,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
59319
58644
|
actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
|
|
59320
58645
|
onClick: onEdit
|
|
59321
58646
|
})
|
|
59322
|
-
}), ((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, {
|
|
59323
|
-
label: t("WS_UPLOAD_SIGNATURE_FILE"),
|
|
59324
|
-
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"
|
|
59325
58647
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
59326
|
-
text: /*#__PURE__*/React.createElement("span", {
|
|
59327
|
-
style: {
|
|
59328
|
-
display: "flex",
|
|
59329
|
-
alignItems: "center",
|
|
59330
|
-
gap: "8px",
|
|
59331
|
-
cursor: "pointer",
|
|
59332
|
-
color: "#f47738"
|
|
59333
|
-
},
|
|
59334
|
-
onClick: () => handleViewDocument((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile))
|
|
59335
|
-
}, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
59336
|
-
})), /*#__PURE__*/React.createElement(Row, {
|
|
59337
58648
|
label: t("WS_I_AGREE_TO_ALL_DECLARATIONS"),
|
|
59338
58649
|
text: declaration !== null && declaration !== void 0 && declaration.agree ? t("Yes") : t("No")
|
|
59339
58650
|
}))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
@@ -59481,7 +58792,7 @@ const OLDApplication = () => {
|
|
|
59481
58792
|
if (config) {
|
|
59482
58793
|
var _config$body;
|
|
59483
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)) || [];
|
|
59484
|
-
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "
|
|
58795
|
+
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDjbEmployee", "WSDivyangjan", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee", "WSDeclaration"];
|
|
59485
58796
|
const reorderedBody = [];
|
|
59486
58797
|
desiredComponentOrder.forEach(compName => {
|
|
59487
58798
|
const section = allCreateSections.find(s => {
|