@djb25/digit-ui-module-ws 1.0.89 → 1.0.91

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.
@@ -1,41 +1,34 @@
1
- import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$2, useReducer, useCallback } from 'react';
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, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, DatePicker, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, WrapUnMaskComponent, MobileNumber, RemoveIcon, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, Header, FilterFormField, RemoveableTag as RemoveableTag$1, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$f, BreakLine, CheckPoint, ConnectingCheckPoints, Menu, ButtonSelector as ButtonSelector$1, CitizenHomeCard } from '@djb25/digit-ui-react-components';
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, RadioButtons, UploadFile, ViewsIcon, DeleteIcon, WrapUnMaskComponent, MobileNumber, RemoveIcon, CardSectionHeader, 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';
8
8
 
9
- // A type of promise-like that resolves synchronously and supports only one observer
10
-
11
- const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
12
-
13
- const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
14
-
15
- // Asynchronously call a function and send errors to recovery continuation
9
+ const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
10
+ const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
16
11
  function _catch(body, recover) {
17
- try {
18
- var result = body();
19
- } catch(e) {
20
- return recover(e);
21
- }
22
- if (result && result.then) {
23
- return result.then(void 0, recover);
24
- }
25
- return result;
12
+ try {
13
+ var result = body();
14
+ } catch (e) {
15
+ return recover(e);
16
+ }
17
+ if (result && result.then) {
18
+ return result.then(void 0, recover);
19
+ }
20
+ return result;
26
21
  }
27
-
28
- // Asynchronously await a promise and pass the result to a finally continuation
29
22
  function _finallyRethrows(body, finalizer) {
30
- try {
31
- var result = body();
32
- } catch (e) {
33
- return finalizer(true, e);
34
- }
35
- if (result && result.then) {
36
- return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
37
- }
38
- return finalizer(false, result);
23
+ try {
24
+ var result = body();
25
+ } catch (e) {
26
+ return finalizer(true, e);
27
+ }
28
+ if (result && result.then) {
29
+ return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
30
+ }
31
+ return finalizer(false, result);
39
32
  }
40
33
 
41
34
  const TestAcknowledgment = () => {
@@ -554,6 +547,16 @@ const createPayloadOfWS = function (data) {
554
547
  status: "ACTIVE"
555
548
  });
556
549
  }
550
+ if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
551
+ var _connectionDetail$org;
552
+ let documentType = "OWNER.ORGANIZATION_DOCUMENT";
553
+ allDocuments.push({
554
+ documentType: documentType,
555
+ fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org = connectionDetail.orgDeptDocument) === null || _connectionDetail$org === void 0 ? void 0 : _connectionDetail$org.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
556
+ documentUid: "",
557
+ status: "ACTIVE"
558
+ });
559
+ }
557
560
  let payload = {
558
561
  water: !!isWater,
559
562
  sewerage: !!isSewerage,
@@ -726,6 +729,18 @@ const getAllDocumentsForUpdate = data => {
726
729
  status: "ACTIVE"
727
730
  });
728
731
  }
732
+ 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
+ const connectionDetail = (connectionDetailsArray === null || connectionDetailsArray === void 0 ? void 0 : connectionDetailsArray[0]) || (data === null || data === void 0 ? void 0 : data.ConnectionDetails) || {};
734
+ if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
735
+ var _connectionDetail$org2;
736
+ let documentType = "OWNER.ORGANIZATION_DOCUMENT";
737
+ allDocuments.push({
738
+ documentType: documentType,
739
+ 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),
740
+ documentUid: "",
741
+ status: "ACTIVE"
742
+ });
743
+ }
729
744
  return allDocuments;
730
745
  };
731
746
  const convertToWSUpdate = data => {
@@ -7876,7 +7891,7 @@ var lodash = createCommonjsModule(function (module, exports) {
7876
7891
  });
7877
7892
 
7878
7893
  const WSApplication = _ref => {
7879
- var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6, _application$applicat7, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat8, _application$applicat9;
7894
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6;
7880
7895
  let {
7881
7896
  application
7882
7897
  } = _ref;
@@ -7974,19 +7989,21 @@ const WSApplication = _ref => {
7974
7989
  to: `/digit-ui/citizen/ws/connection/application/${encodeApplicationNo}`
7975
7990
  }, /*#__PURE__*/React.createElement(SubmitBar, {
7976
7991
  label: t("WS_VIEW_DETAILS_LABEL")
7977
- })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
7978
- to: {
7979
- pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")}`,
7980
- search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat8 = application.applicationNo) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DC") ? true : false}&consumerCode=${application !== null && application !== void 0 && (_application$applicat9 = application.applicationNo) !== null && _application$applicat9 !== void 0 && _application$applicat9.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo}`,
7981
- state: {}
7982
- }
7983
- }, /*#__PURE__*/React.createElement("div", {
7992
+ })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
7984
7993
  style: {
7985
7994
  marginTop: "10px"
7986
7995
  }
7987
7996
  }, /*#__PURE__*/React.createElement(SubmitBar, {
7988
- label: t("MAKE_PAYMENT")
7989
- }))) : null);
7997
+ label: t("MAKE_PAYMENT"),
7998
+ onSubmit: () => {
7999
+ var _application$applicat7, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat8, _application$applicat9;
8000
+ history.push({
8001
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")}`,
8002
+ search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat8 = application.applicationNo) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DC") ? true : false}&consumerCode=${application !== null && application !== void 0 && (_application$applicat9 = application.applicationNo) !== null && _application$applicat9 !== void 0 && _application$applicat9.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo}`,
8003
+ state: {}
8004
+ });
8005
+ }
8006
+ })) : null);
7990
8007
  };
7991
8008
 
7992
8009
  const EyeSvgINdex = _ref => {
@@ -8279,8 +8296,8 @@ const WSMyApplications = () => {
8279
8296
  };
8280
8297
  });
8281
8298
  const sortedApplications = ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 ? applicationsList.sort((a, b) => {
8282
- var _b$auditDetails, _a$auditDetails;
8283
- return ((_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.lastModifiedTime) - ((_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.lastModifiedTime);
8299
+ var _b$auditDetails, _b$auditDetails2, _a$auditDetails, _a$auditDetails2;
8300
+ return (((_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.createdTime) || ((_b$auditDetails2 = b.auditDetails) === null || _b$auditDetails2 === void 0 ? void 0 : _b$auditDetails2.lastModifiedTime) || 0) - (((_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.createdTime) || ((_a$auditDetails2 = a.auditDetails) === null || _a$auditDetails2 === void 0 ? void 0 : _a$auditDetails2.lastModifiedTime) || 0);
8284
8301
  }) : [];
8285
8302
  let filteredApplications = sortedApplications;
8286
8303
  if (searchParams) {
@@ -8882,7 +8899,7 @@ const getWSAcknowledgementData$1 = function (newApplication, property, tenantInf
8882
8899
  };
8883
8900
 
8884
8901
  const WSResponse = props => {
8885
- var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2, _waterApplicationData8, _waterApplicationData9, _waterApplicationData0, _waterApplicationData1, _waterApplicationData10, _waterApplicationData11, _waterApplicationData12, _waterApplicationData13, _waterApplicationData14, _waterApplicationData15, _waterApplicationData16, _waterApplicationData17, _waterApplicationData18, _waterApplicationData19, _waterApplicationData20, _sewerageApplicationD8, _sewerageApplicationD9, _sewerageApplicationD0, _sewerageApplicationD1, _sewerageApplicationD10, _sewerageApplicationD11, _sewerageApplicationD12, _sewerageApplicationD13, _sewerageApplicationD14, _sewerageApplicationD15, _sewerageApplicationD16, _sewerageApplicationD17, _sewerageApplicationD18, _sewerageApplicationD19, _sewerageApplicationD20;
8902
+ var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2, _waterApplicationData8, _sewerageApplicationD8;
8886
8903
  const {
8887
8904
  t
8888
8905
  } = useTranslation();
@@ -9055,30 +9072,66 @@ const WSResponse = props => {
9055
9072
  }, /*#__PURE__*/React.createElement("path", {
9056
9073
  d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
9057
9074
  fill: "#a82227"
9058
- })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
9059
- to: {
9060
- pathname: `/digit-ui/employee/payment/collect/${waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData9 = waterApplicationData.applicationData) !== null && _waterApplicationData9 !== void 0 && (_waterApplicationData0 = _waterApplicationData9.applicationNo) !== null && _waterApplicationData0 !== void 0 && _waterApplicationData0.includes("DC") ? "WS" : "WS.ONE_TIME_FEE"}/${waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? stringReplaceAll(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData11 = waterApplicationData.applicationData) === null || _waterApplicationData11 === void 0 ? void 0 : _waterApplicationData11.connectionNo, "/", "+") : stringReplaceAll(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData12 = waterApplicationData.applicationData) === null || _waterApplicationData12 === void 0 ? void 0 : _waterApplicationData12.applicationNo, "/", "+")}/${waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId}?workflow=WNS&tenantId=${waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData14 = waterApplicationData.applicationData) === null || _waterApplicationData14 === void 0 ? void 0 : _waterApplicationData14.tenantId}&ConsumerName=${(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData15 = waterApplicationData.applicationData) === null || _waterApplicationData15 === void 0 ? void 0 : (_waterApplicationData16 = _waterApplicationData15.connectionHolders) === null || _waterApplicationData16 === void 0 ? void 0 : _waterApplicationData16.map(owner => owner.name).join(",")) || (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData17 = waterApplicationData.propertyDetails) === null || _waterApplicationData17 === void 0 ? void 0 : (_waterApplicationData18 = _waterApplicationData17.owners) === null || _waterApplicationData18 === void 0 ? void 0 : _waterApplicationData18.map(owner => owner.name).join(","))}&isDisconnectFlow=${waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData19 = waterApplicationData.applicationData) !== null && _waterApplicationData19 !== void 0 && (_waterApplicationData20 = _waterApplicationData19.applicationNo) !== null && _waterApplicationData20 !== void 0 && _waterApplicationData20.includes("DC") ? true : false}`,
9061
- state: {}
9062
- }
9063
- }, /*#__PURE__*/React.createElement("div", {
9075
+ })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
9064
9076
  style: {
9065
9077
  marginTop: "10px"
9066
9078
  }
9067
9079
  }, /*#__PURE__*/React.createElement(SubmitBar, {
9068
- label: t("MAKE_PAYMENT")
9069
- }))) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
9070
- to: {
9071
- pathname: `/digit-ui/employee/payment/collect/${sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD9 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD9 !== void 0 && (_sewerageApplicationD0 = _sewerageApplicationD9.applicationNo) !== null && _sewerageApplicationD0 !== void 0 && _sewerageApplicationD0.includes("DC") ? "SW" : "SW.ONE_TIME_FEE"}/${sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? stringReplaceAll(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD11 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD11 === void 0 ? void 0 : _sewerageApplicationD11.connectionNo, "/", "+") : stringReplaceAll(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD12 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD12 === void 0 ? void 0 : _sewerageApplicationD12.applicationNo, "/", "+")}/${sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId}?workflow=WNS&tenantId=${sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD14 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD14 === void 0 ? void 0 : _sewerageApplicationD14.tenantId}&ConsumerName=${(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD15 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD15 === void 0 ? void 0 : (_sewerageApplicationD16 = _sewerageApplicationD15.connectionHolders) === null || _sewerageApplicationD16 === void 0 ? void 0 : _sewerageApplicationD16.map(owner => owner.name).join(",")) || (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD17 = sewerageApplicationData.propertyDetails) === null || _sewerageApplicationD17 === void 0 ? void 0 : (_sewerageApplicationD18 = _sewerageApplicationD17.owners) === null || _sewerageApplicationD18 === void 0 ? void 0 : _sewerageApplicationD18.map(owner => owner.name).join(","))}&isDisconnectFlow=${sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD19 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD19 !== void 0 && (_sewerageApplicationD20 = _sewerageApplicationD19.applicationNo) !== null && _sewerageApplicationD20 !== void 0 && _sewerageApplicationD20.includes("DC") ? true : false}`,
9072
- state: {}
9080
+ label: t("MAKE_PAYMENT"),
9081
+ onSubmit: () => {
9082
+ var _waterApplicationData9, _waterApplicationData0, _waterApplicationData1, _waterApplicationData10, _waterApplicationData11, _waterApplicationData12, _waterApplicationData13, _waterApplicationData14, _waterApplicationData15, _waterApplicationData16, _waterApplicationData17, _waterApplicationData18, _waterApplicationData19;
9083
+ let isEmployee = window.location.href.includes("/employee");
9084
+ let businessService = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData9 = waterApplicationData.applicationData) !== null && _waterApplicationData9 !== void 0 && (_waterApplicationData0 = _waterApplicationData9.applicationNo) !== null && _waterApplicationData0 !== void 0 && _waterApplicationData0.includes("DC") ? "WS" : "WS.ONE_TIME_FEE";
9085
+ let consumerCodeOriginal = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData11 = waterApplicationData.applicationData) === null || _waterApplicationData11 === void 0 ? void 0 : _waterApplicationData11.connectionNo : waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData12 = waterApplicationData.applicationData) === null || _waterApplicationData12 === void 0 ? void 0 : _waterApplicationData12.applicationNo;
9086
+ let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9087
+ let tenantId = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId;
9088
+ let consumerName = (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData14 = waterApplicationData.applicationData) === null || _waterApplicationData14 === void 0 ? void 0 : (_waterApplicationData15 = _waterApplicationData14.connectionHolders) === null || _waterApplicationData15 === void 0 ? void 0 : _waterApplicationData15.map(owner => owner.name).join(",")) || (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData16 = waterApplicationData.propertyDetails) === null || _waterApplicationData16 === void 0 ? void 0 : (_waterApplicationData17 = _waterApplicationData16.owners) === null || _waterApplicationData17 === void 0 ? void 0 : _waterApplicationData17.map(owner => owner.name).join(","));
9089
+ let isDisconnectFlow = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData18 = waterApplicationData.applicationData) !== null && _waterApplicationData18 !== void 0 && (_waterApplicationData19 = _waterApplicationData18.applicationNo) !== null && _waterApplicationData19 !== void 0 && _waterApplicationData19.includes("DC") ? true : false;
9090
+ if (isEmployee) {
9091
+ history.push({
9092
+ pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
9093
+ search: `?tenantId=${tenantId}&consumerCode=${consumerCodeOriginal}&ISWSAPP&applicationNumber=${consumerCodeOriginal}`,
9094
+ state: {}
9095
+ });
9096
+ } else {
9097
+ history.push({
9098
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${consumerCode}`,
9099
+ search: `?workflow=WNS&tenantId=${tenantId}&ConsumerName=${consumerName}&isDisoconnectFlow=${isDisconnectFlow}&consumerCode=${consumerCodeOriginal}`,
9100
+ state: {}
9101
+ });
9102
+ }
9073
9103
  }
9074
- }, /*#__PURE__*/React.createElement("div", {
9104
+ })) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
9075
9105
  style: {
9076
9106
  marginTop: "10px",
9077
9107
  marginLeft: "10px"
9078
9108
  }
9079
9109
  }, /*#__PURE__*/React.createElement(SubmitBar, {
9080
- label: t("MAKE_PAYMENT")
9081
- }))) : null), /*#__PURE__*/React.createElement(ActionBar, {
9110
+ label: t("MAKE_PAYMENT"),
9111
+ onSubmit: () => {
9112
+ var _sewerageApplicationD9, _sewerageApplicationD0, _sewerageApplicationD1, _sewerageApplicationD10, _sewerageApplicationD11, _sewerageApplicationD12, _sewerageApplicationD13, _sewerageApplicationD14, _sewerageApplicationD15, _sewerageApplicationD16, _sewerageApplicationD17, _sewerageApplicationD18, _sewerageApplicationD19;
9113
+ let isEmployee = window.location.href.includes("/employee");
9114
+ let businessService = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD9 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD9 !== void 0 && (_sewerageApplicationD0 = _sewerageApplicationD9.applicationNo) !== null && _sewerageApplicationD0 !== void 0 && _sewerageApplicationD0.includes("DC") ? "SW" : "SW.ONE_TIME_FEE";
9115
+ let consumerCodeOriginal = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD11 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD11 === void 0 ? void 0 : _sewerageApplicationD11.connectionNo : sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD12 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD12 === void 0 ? void 0 : _sewerageApplicationD12.applicationNo;
9116
+ let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9117
+ let tenantId = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId;
9118
+ let consumerName = (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD14 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD14 === void 0 ? void 0 : (_sewerageApplicationD15 = _sewerageApplicationD14.connectionHolders) === null || _sewerageApplicationD15 === void 0 ? void 0 : _sewerageApplicationD15.map(owner => owner.name).join(",")) || (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD16 = sewerageApplicationData.propertyDetails) === null || _sewerageApplicationD16 === void 0 ? void 0 : (_sewerageApplicationD17 = _sewerageApplicationD16.owners) === null || _sewerageApplicationD17 === void 0 ? void 0 : _sewerageApplicationD17.map(owner => owner.name).join(","));
9119
+ let isDisconnectFlow = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD18 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD18 !== void 0 && (_sewerageApplicationD19 = _sewerageApplicationD18.applicationNo) !== null && _sewerageApplicationD19 !== void 0 && _sewerageApplicationD19.includes("DC") ? true : false;
9120
+ if (isEmployee) {
9121
+ history.push({
9122
+ pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
9123
+ search: `?tenantId=${tenantId}&consumerCode=${consumerCodeOriginal}&ISWSAPP&applicationNumber=${consumerCodeOriginal}`,
9124
+ state: {}
9125
+ });
9126
+ } else {
9127
+ history.push({
9128
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${consumerCode}`,
9129
+ search: `?workflow=WNS&tenantId=${tenantId}&ConsumerName=${consumerName}&isDisoconnectFlow=${isDisconnectFlow}&consumerCode=${consumerCodeOriginal}`,
9130
+ state: {}
9131
+ });
9132
+ }
9133
+ }
9134
+ })) : null), /*#__PURE__*/React.createElement(ActionBar, {
9082
9135
  style: {
9083
9136
  display: "flex",
9084
9137
  justifyContent: "flex-end",
@@ -9441,6 +9494,7 @@ const Response = () => {
9441
9494
  const {
9442
9495
  state
9443
9496
  } = useLocation();
9497
+ const history = useHistory();
9444
9498
  const {
9445
9499
  t
9446
9500
  } = useTranslation();
@@ -9510,14 +9564,13 @@ const Response = () => {
9510
9564
  justifyContent: "flex-end",
9511
9565
  alignItems: "baseline"
9512
9566
  }
9513
- }, /*#__PURE__*/React.createElement(Link, {
9514
- to: `/digit-ui/employee`,
9567
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
9568
+ label: t("CORE_COMMON_GO_TO_HOME"),
9569
+ onSubmit: () => history.push(`/digit-ui/employee`),
9515
9570
  style: {
9516
9571
  marginRight: "1rem"
9517
9572
  }
9518
- }, /*#__PURE__*/React.createElement(SubmitBar, {
9519
- label: t("CORE_COMMON_GO_TO_HOME")
9520
- })))));
9573
+ }))));
9521
9574
  };
9522
9575
 
9523
9576
  const ResponseBillAmend = () => {
@@ -9525,6 +9578,7 @@ const ResponseBillAmend = () => {
9525
9578
  const {
9526
9579
  state
9527
9580
  } = useLocation();
9581
+ const history = useHistory();
9528
9582
  const {
9529
9583
  t
9530
9584
  } = useTranslation();
@@ -9539,14 +9593,13 @@ const ResponseBillAmend = () => {
9539
9593
  justifyContent: "flex-end",
9540
9594
  alignItems: "baseline"
9541
9595
  }
9542
- }, /*#__PURE__*/React.createElement(Link, {
9543
- to: `/digit-ui/employee`,
9596
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
9597
+ label: t("CORE_COMMON_GO_TO_HOME"),
9598
+ onSubmit: () => history.push(`/digit-ui/employee`),
9544
9599
  style: {
9545
9600
  marginRight: "1rem"
9546
9601
  }
9547
- }, /*#__PURE__*/React.createElement(SubmitBar, {
9548
- label: t("CORE_COMMON_GO_TO_HOME")
9549
- })))));
9602
+ }))));
9550
9603
  };
9551
9604
 
9552
9605
  const getPropertyAddress$2 = property => {
@@ -10796,6 +10849,390 @@ const WSCalculation = _ref => {
10796
10849
  })));
10797
10850
  };
10798
10851
 
10852
+ const WSZROVerification = () => {
10853
+ const {
10854
+ t
10855
+ } = useTranslation();
10856
+ const tenantId = Digit.ULBService.getCurrentTenantId();
10857
+ const [connectionNo, setConnectionNo] = useState("");
10858
+ const [filters, setFilters] = useState({
10859
+ status: "PENDING",
10860
+ offset: 0,
10861
+ limit: 20
10862
+ });
10863
+ const {
10864
+ isLoading,
10865
+ data
10866
+ } = Digit.Hooks.ws.useWSZROVerification({
10867
+ tenantId,
10868
+ filters,
10869
+ config: {
10870
+ select: res => (res === null || res === void 0 ? void 0 : res.cases) || []
10871
+ }
10872
+ });
10873
+ const onSubmit = e => {
10874
+ if (e) e.preventDefault();
10875
+ const newFilters = {
10876
+ status: "PENDING",
10877
+ offset: 0,
10878
+ limit: 20
10879
+ };
10880
+ if (connectionNo !== null && connectionNo !== void 0 && connectionNo.trim()) {
10881
+ newFilters.connectionNo = connectionNo.trim();
10882
+ }
10883
+ setFilters(newFilters);
10884
+ };
10885
+ const clearSearch = () => {
10886
+ setConnectionNo("");
10887
+ setFilters({
10888
+ status: "PENDING",
10889
+ offset: 0,
10890
+ limit: 20
10891
+ });
10892
+ };
10893
+ const columns = React.useMemo(() => [{
10894
+ Header: t("WS_CONNECTION_NO_LABEL"),
10895
+ accessor: "connectionNo",
10896
+ Cell: _ref => {
10897
+ var _row$original, _row$original2;
10898
+ let {
10899
+ row
10900
+ } = _ref;
10901
+ return /*#__PURE__*/React.createElement(Link, {
10902
+ to: {
10903
+ pathname: `/digit-ui/employee/ws/zro-verification-details`,
10904
+ search: `?connectionNumber=${(_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.connectionNo}&tenantId=${tenantId}`,
10905
+ state: {
10906
+ caseData: row.original
10907
+ }
10908
+ },
10909
+ style: {
10910
+ color: "#f47738",
10911
+ textDecoration: "none"
10912
+ }
10913
+ }, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.connectionNo) || "NA");
10914
+ }
10915
+ }, {
10916
+ Header: t("WS_BILLING_PERIOD_LABEL"),
10917
+ Cell: _ref2 => {
10918
+ var _row$original3, _row$original4;
10919
+ let {
10920
+ row
10921
+ } = _ref2;
10922
+ const from = (_row$original3 = row.original) !== null && _row$original3 !== void 0 && _row$original3.billingPeriodFrom ? Digit.DateUtils.ConvertTimestampToDate(row.original.billingPeriodFrom) : "NA";
10923
+ const to = (_row$original4 = row.original) !== null && _row$original4 !== void 0 && _row$original4.billingPeriodTo ? Digit.DateUtils.ConvertTimestampToDate(row.original.billingPeriodTo) : "NA";
10924
+ return /*#__PURE__*/React.createElement("span", null, `${from} - ${to}`);
10925
+ }
10926
+ }, {
10927
+ Header: t("WS_PREVIOUS_READING_LABEL"),
10928
+ accessor: "previousReading",
10929
+ Cell: _ref3 => {
10930
+ var _row$original5;
10931
+ let {
10932
+ row
10933
+ } = _ref3;
10934
+ return ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.previousReading) ?? "NA";
10935
+ }
10936
+ }, {
10937
+ Header: t("WS_CURRENT_READING_LABEL"),
10938
+ accessor: "currentReading",
10939
+ Cell: _ref4 => {
10940
+ var _row$original6;
10941
+ let {
10942
+ row
10943
+ } = _ref4;
10944
+ return ((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.currentReading) ?? "NA";
10945
+ }
10946
+ }, {
10947
+ Header: t("WS_CONSUMPTION_LABEL"),
10948
+ accessor: "actualConsumption",
10949
+ Cell: _ref5 => {
10950
+ var _row$original7;
10951
+ let {
10952
+ row
10953
+ } = _ref5;
10954
+ return ((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.actualConsumption) ?? "NA";
10955
+ }
10956
+ }, {
10957
+ Header: t("WS_COMMON_TABLE_COL_APP_STATUS_LABEL"),
10958
+ accessor: "verification.status",
10959
+ Cell: _ref6 => {
10960
+ var _row$original8, _row$original8$verifi;
10961
+ let {
10962
+ row
10963
+ } = _ref6;
10964
+ return (_row$original8 = row.original) !== null && _row$original8 !== void 0 && (_row$original8$verifi = _row$original8.verification) !== null && _row$original8$verifi !== void 0 && _row$original8$verifi.status ? t(`WS_ZRO_STATUS_${row.original.verification.status}`) : "NA";
10965
+ }
10966
+ }], [t]);
10967
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(SearchForm, {
10968
+ onSubmit: onSubmit,
10969
+ handleSubmit: fn => fn,
10970
+ className: "formcomposer-section-grid"
10971
+ }, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_CONNECTION_NO_LABEL")), /*#__PURE__*/React.createElement(TextInput, {
10972
+ name: "connectionNo",
10973
+ value: connectionNo,
10974
+ onChange: e => setConnectionNo(e.target.value)
10975
+ })), /*#__PURE__*/React.createElement(SearchField, {
10976
+ className: "ws-submit"
10977
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
10978
+ label: t("ES_COMMON_SEARCH"),
10979
+ submit: true,
10980
+ className: "submit-bar generic-button"
10981
+ }), /*#__PURE__*/React.createElement("button", {
10982
+ type: "button",
10983
+ className: "clear-search generic-button",
10984
+ onClick: clearSearch
10985
+ }, t("ES_COMMON_CLEAR_SEARCH"))))), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
10986
+ t: t,
10987
+ data: data || [],
10988
+ totalRecords: (data === null || data === void 0 ? void 0 : data.length) || 0,
10989
+ isLoading: isLoading,
10990
+ isPaginationRequired: true,
10991
+ csvExportData: data,
10992
+ columns: columns
10993
+ }));
10994
+ };
10995
+
10996
+ const Heading = props => {
10997
+ return /*#__PURE__*/React.createElement("h1", {
10998
+ className: "heading-m"
10999
+ }, props.label);
11000
+ };
11001
+ const Close = () => /*#__PURE__*/React.createElement("svg", {
11002
+ xmlns: "http://www.w3.org/2000/svg",
11003
+ viewBox: "0 0 24 24",
11004
+ fill: "#FFFFFF"
11005
+ }, /*#__PURE__*/React.createElement("path", {
11006
+ d: "M0 0h24v24H0V0z",
11007
+ fill: "none"
11008
+ }), /*#__PURE__*/React.createElement("path", {
11009
+ 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"
11010
+ }));
11011
+ const CloseBtn = props => {
11012
+ return /*#__PURE__*/React.createElement("div", {
11013
+ className: "icon-bg-secondary",
11014
+ onClick: props.onClick
11015
+ }, /*#__PURE__*/React.createElement(Close, null));
11016
+ };
11017
+ const WSZROVerificationDetails = () => {
11018
+ var _location$state;
11019
+ const {
11020
+ t
11021
+ } = useTranslation();
11022
+ const location = useLocation();
11023
+ const history = useHistory();
11024
+ const [displayMenu, setDisplayMenu] = useState(false);
11025
+ const [showModal, setShowModal] = useState(false);
11026
+ const [selectedAction, setSelectedAction] = useState(null);
11027
+ const [comments, setComments] = useState("");
11028
+ const [toast, setToast] = useState(null);
11029
+ const [isSuccess, setIsSuccess] = useState(false);
11030
+ const [apiResponse, setApiResponse] = useState(null);
11031
+ useEffect(() => {
11032
+ let timer;
11033
+ if (isSuccess) {
11034
+ timer = setTimeout(() => {
11035
+ history.push("/digit-ui/employee/ws/zro-application");
11036
+ }, 10000);
11037
+ }
11038
+ return () => {
11039
+ if (timer) clearTimeout(timer);
11040
+ };
11041
+ }, [isSuccess, history]);
11042
+ const caseDataFromState = (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.caseData;
11043
+ const searchParams = new URLSearchParams(location.search);
11044
+ const connectionNumber = searchParams.get("connectionNumber");
11045
+ const tenantId = searchParams.get("tenantId") || Digit.ULBService.getCurrentTenantId();
11046
+ const {
11047
+ isLoading,
11048
+ data
11049
+ } = Digit.Hooks.ws.useWSZROVerification({
11050
+ tenantId,
11051
+ filters: {
11052
+ connectionNo: connectionNumber,
11053
+ status: "PENDING",
11054
+ offset: 0,
11055
+ limit: 20
11056
+ },
11057
+ config: {
11058
+ enabled: !caseDataFromState && !!connectionNumber,
11059
+ select: res => {
11060
+ var _res$cases;
11061
+ return res === null || res === void 0 ? void 0 : (_res$cases = res.cases) === null || _res$cases === void 0 ? void 0 : _res$cases[0];
11062
+ }
11063
+ }
11064
+ });
11065
+ const caseDetails = caseDataFromState || data;
11066
+ if (isLoading) {
11067
+ return /*#__PURE__*/React.createElement(Loader, null);
11068
+ }
11069
+ if (!caseDetails) {
11070
+ return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
11071
+ style: {
11072
+ textAlign: "center"
11073
+ }
11074
+ }, t("CS_COMMON_NO_DATA")));
11075
+ }
11076
+ const {
11077
+ verification,
11078
+ ...billingData
11079
+ } = caseDetails;
11080
+ const formatDate = timestamp => {
11081
+ if (!timestamp) return "NA";
11082
+ return Digit.DateUtils.ConvertTimestampToDate(timestamp);
11083
+ };
11084
+ const onActionSelect = action => {
11085
+ setSelectedAction(action);
11086
+ setDisplayMenu(false);
11087
+ setShowModal(true);
11088
+ };
11089
+ const closeModal = () => {
11090
+ setShowModal(false);
11091
+ setComments("");
11092
+ setSelectedAction(null);
11093
+ };
11094
+ const submitAction = function () {
11095
+ try {
11096
+ const _temp = _catch(function () {
11097
+ const payload = {
11098
+ billingCycleId: billingData === null || billingData === void 0 ? void 0 : billingData.billingCycleId,
11099
+ action: selectedAction === "VERIFY" ? "APPROVE" : "REJECT",
11100
+ remarks: comments
11101
+ };
11102
+ return Promise.resolve(Digit.WSService.updateZROVerification(payload, tenantId)).then(function (res) {
11103
+ setApiResponse(res);
11104
+ setToast({
11105
+ key: "success",
11106
+ error: false,
11107
+ message: t("WF_ZRO_ACTION_SUCCESS")
11108
+ });
11109
+ setShowModal(false);
11110
+ setIsSuccess(true);
11111
+ });
11112
+ }, function (err) {
11113
+ var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
11114
+ console.error(err);
11115
+ setToast({
11116
+ key: "error",
11117
+ error: true,
11118
+ message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || t("CS_ACTION_ERROR")
11119
+ });
11120
+ closeModal();
11121
+ });
11122
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
11123
+ } catch (e) {
11124
+ return Promise.reject(e);
11125
+ }
11126
+ };
11127
+ if (isSuccess) {
11128
+ return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
11129
+ message: t(selectedAction === "VERIFY" ? "WF_ZRO_VERIFY_SUCCESS" : "WF_ZRO_REJECT_SUCCESS"),
11130
+ applicationNumber: apiResponse !== null && apiResponse !== void 0 && apiResponse.connectionno ? apiResponse.connectionno : connectionNumber,
11131
+ info: apiResponse !== null && apiResponse !== void 0 && apiResponse.connectionno ? t("WS_CONNECTION_NO_LABEL") : t("WS_CONNECTION_NO_LABEL"),
11132
+ successful: selectedAction === "VERIFY"
11133
+ }), /*#__PURE__*/React.createElement(CardText, null, apiResponse !== null && apiResponse !== void 0 && apiResponse.message ? apiResponse.message : t("WF_ZRO_SUCCESS_MESSAGE_MAIN")), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
11134
+ label: t("CORE_COMMON_GO_TO_HOME"),
11135
+ onSubmit: () => history.push("/digit-ui/employee/ws/zro-application")
11136
+ })));
11137
+ }
11138
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_VERIFICATION_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
11139
+ label: t("WS_CONNECTION_NO_LABEL"),
11140
+ text: (verification === null || verification === void 0 ? void 0 : verification.connectionno) || "NA"
11141
+ }), /*#__PURE__*/React.createElement(Row, {
11142
+ label: t("WS_VERIFICATION_STATUS"),
11143
+ text: (verification === null || verification === void 0 ? void 0 : verification.status) || "NA"
11144
+ }), /*#__PURE__*/React.createElement(Row, {
11145
+ label: t("WS_CONSUMPTION_LABEL"),
11146
+ text: (verification === null || verification === void 0 ? void 0 : verification.consumption) ?? "NA"
11147
+ }), /*#__PURE__*/React.createElement(Row, {
11148
+ label: t("WS_PREVIOUS_CONSUMPTION"),
11149
+ text: (verification === null || verification === void 0 ? void 0 : verification.previousconsumption) ?? "NA"
11150
+ }), /*#__PURE__*/React.createElement(Row, {
11151
+ label: t("WS_DEVIATION_FACTOR"),
11152
+ text: verification !== null && verification !== void 0 && verification.deviationfactor ? Number(verification.deviationfactor).toFixed(2) : "NA"
11153
+ }), /*#__PURE__*/React.createElement(Row, {
11154
+ label: t("WS_REMARKS"),
11155
+ text: (verification === null || verification === void 0 ? void 0 : verification.remarks) || "NA"
11156
+ })), /*#__PURE__*/React.createElement(CardSubHeader, {
11157
+ style: {
11158
+ marginTop: "32px"
11159
+ }
11160
+ }, t("WS_BILLING_AND_CONSUMPTION_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
11161
+ label: t("WS_BILLING_CYCLE_ID"),
11162
+ text: billingData.billingCycleId || "NA"
11163
+ }), /*#__PURE__*/React.createElement(Row, {
11164
+ label: t("WS_BILLING_PERIOD"),
11165
+ text: `${formatDate(billingData.billingPeriodFrom)} - ${formatDate(billingData.billingPeriodTo)}`
11166
+ }), /*#__PURE__*/React.createElement(Row, {
11167
+ label: t("WS_BILLING_DAYS"),
11168
+ text: billingData.billingDays ?? "NA"
11169
+ }), /*#__PURE__*/React.createElement(Row, {
11170
+ label: t("WS_PREVIOUS_READING_LABEL"),
11171
+ text: billingData.previousReading ?? "NA"
11172
+ }), /*#__PURE__*/React.createElement(Row, {
11173
+ label: t("WS_PREVIOUS_OK_READING_DATE"),
11174
+ text: formatDate(billingData.previousOkReadingDate)
11175
+ }), /*#__PURE__*/React.createElement(Row, {
11176
+ label: t("WS_CURRENT_READING_LABEL"),
11177
+ text: billingData.currentReading ?? "NA"
11178
+ }), /*#__PURE__*/React.createElement(Row, {
11179
+ label: t("WS_READING_QUALITY_CODE"),
11180
+ text: billingData.readingQualityCode || "NA"
11181
+ }), /*#__PURE__*/React.createElement(Row, {
11182
+ label: t("WS_BILLING_BASIS"),
11183
+ text: billingData.billingBasis || "NA"
11184
+ }), /*#__PURE__*/React.createElement(Row, {
11185
+ label: t("WS_ACTUAL_CONSUMPTION"),
11186
+ text: billingData.actualConsumption ?? "NA"
11187
+ }), /*#__PURE__*/React.createElement(Row, {
11188
+ label: t("WS_MONTHLY_CONSUMPTION"),
11189
+ text: billingData.monthlyConsumption ? Number(billingData.monthlyConsumption).toFixed(2) : "NA"
11190
+ }), /*#__PURE__*/React.createElement(Row, {
11191
+ label: t("WS_THRESHOLD_CONSUMPTION"),
11192
+ text: billingData.thresholdConsumption ? Number(billingData.thresholdConsumption).toFixed(2) : "NA"
11193
+ }), /*#__PURE__*/React.createElement(Row, {
11194
+ label: t("WS_1_5X_FLAG"),
11195
+ text: billingData.onePointFiveXFlag ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
11196
+ }), /*#__PURE__*/React.createElement(Row, {
11197
+ label: t("WS_BILLING_CYCLE_STATUS"),
11198
+ text: billingData.billingCycleStatus || "NA"
11199
+ }), /*#__PURE__*/React.createElement(Row, {
11200
+ label: t("WS_CORRECTION_STATUS"),
11201
+ text: billingData.correctionStatus || "NA"
11202
+ }))), /*#__PURE__*/React.createElement(ActionBar, null, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
11203
+ localeKeyPrefix: "WF_ZRO",
11204
+ options: ["VERIFY", "REJECT"],
11205
+ t: t,
11206
+ onSelect: onActionSelect
11207
+ }) : null, /*#__PURE__*/React.createElement(SubmitBar, {
11208
+ label: t("WF_TAKE_ACTION"),
11209
+ onSubmit: () => setDisplayMenu(!displayMenu)
11210
+ })), showModal && /*#__PURE__*/React.createElement(Modal, {
11211
+ headerBarMain: /*#__PURE__*/React.createElement(Heading, {
11212
+ label: selectedAction === "VERIFY" ? t("WF_ZRO_VERIFY") : t("WF_ZRO_REJECT")
11213
+ }),
11214
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
11215
+ onClick: closeModal
11216
+ }),
11217
+ actionCancelLabel: t("CS_COMMON_CANCEL"),
11218
+ actionCancelOnSubmit: closeModal,
11219
+ actionSaveLabel: selectedAction === "VERIFY" ? t("WF_ZRO_VERIFY") : t("WF_ZRO_REJECT"),
11220
+ actionSaveOnSubmit: submitAction
11221
+ }, /*#__PURE__*/React.createElement("div", {
11222
+ style: {
11223
+ marginBottom: "16px"
11224
+ }
11225
+ }, /*#__PURE__*/React.createElement(CardLabel, null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement(TextArea, {
11226
+ name: "comments",
11227
+ value: comments,
11228
+ onChange: e => setComments(e.target.value)
11229
+ }))), toast && /*#__PURE__*/React.createElement(Toast, {
11230
+ error: toast.error,
11231
+ label: toast.message,
11232
+ onClose: () => setToast(null)
11233
+ }));
11234
+ };
11235
+
10799
11236
  const BILLSBreadCrumbs = _ref => {
10800
11237
  var _applicationDetails$a, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a13, _applicationDetails$a14, _reciept_data$Payment2;
10801
11238
  const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
@@ -11245,6 +11682,15 @@ const BILLSBreadCrumbs = _ref => {
11245
11682
  path: "/digit-ui/employee/ws/water/calculation",
11246
11683
  label: t("WS_CALCULATION"),
11247
11684
  show: location.pathname.includes("/ws/water/calculation") ? true : false
11685
+ }, {
11686
+ path: "/digit-ui/employee/ws/zro-application",
11687
+ label: t("WS_ZRO_VERIFICATION"),
11688
+ show: location.pathname.includes("/ws/zro-application") || location.pathname.includes("/ws/zro-verification-details") ? true : false,
11689
+ isclickable: location.pathname.includes("/ws/zro-verification-details") ? true : false
11690
+ }, {
11691
+ path: "/digit-ui/employee/ws/zro-verification-details",
11692
+ label: t("WS_APPLICATION_DETAILS_HEADER"),
11693
+ show: location.pathname.includes("/ws/zro-verification-details") ? true : false
11248
11694
  }];
11249
11695
  let lastCrumbIndex = findLastIndex(crumbs, "show", true);
11250
11696
  crumbs[lastCrumbIndex] = {
@@ -11584,6 +12030,12 @@ const App$1 = _ref2 => {
11584
12030
  component: props => /*#__PURE__*/React.createElement(WSCalculation, _extends({}, props, {
11585
12031
  parentRoute: path
11586
12032
  }))
12033
+ }), /*#__PURE__*/React.createElement(PrivateRoute, {
12034
+ path: `${path}/zro-application`,
12035
+ component: () => /*#__PURE__*/React.createElement(WSZROVerification, null)
12036
+ }), /*#__PURE__*/React.createElement(PrivateRoute, {
12037
+ path: `${path}/zro-verification-details`,
12038
+ component: () => /*#__PURE__*/React.createElement(WSZROVerificationDetails, null)
11587
12039
  }))))));
11588
12040
  };
11589
12041
 
@@ -16756,31 +17208,6 @@ const WSActivationSupportingDocuments = _ref => {
16756
17208
  }))));
16757
17209
  };
16758
17210
 
16759
- const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
16760
- const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
16761
- function _catch$1(body, recover) {
16762
- try {
16763
- var result = body();
16764
- } catch (e) {
16765
- return recover(e);
16766
- }
16767
- if (result && result.then) {
16768
- return result.then(void 0, recover);
16769
- }
16770
- return result;
16771
- }
16772
- function _finallyRethrows$1(body, finalizer) {
16773
- try {
16774
- var result = body();
16775
- } catch (e) {
16776
- return finalizer(true, e);
16777
- }
16778
- if (result && result.then) {
16779
- return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
16780
- }
16781
- return finalizer(false, result);
16782
- }
16783
-
16784
17211
  var b = "function" === typeof Symbol && Symbol.for,
16785
17212
  c = b ? Symbol.for("react.element") : 60103,
16786
17213
  d = b ? Symbol.for("react.portal") : 60106,
@@ -17701,7 +18128,7 @@ ButtonSelector.defaultProps = {
17701
18128
  onSubmit: undefined
17702
18129
  };
17703
18130
 
17704
- const Close = _ref23 => {
18131
+ const Close$1 = _ref23 => {
17705
18132
  let {
17706
18133
  className,
17707
18134
  style
@@ -17737,7 +18164,7 @@ const RemoveableTag = _ref => {
17737
18164
  style: extraStyles ? extraStyles === null || extraStyles === void 0 ? void 0 : extraStyles.textStyles : {}
17738
18165
  }, text), /*#__PURE__*/React.createElement("span", {
17739
18166
  onClick: disabled ? null : onClick
17740
- }, /*#__PURE__*/React.createElement(Close, {
18167
+ }, /*#__PURE__*/React.createElement(Close$1, {
17741
18168
  className: "close",
17742
18169
  style: extraStyles ? extraStyles === null || extraStyles === void 0 ? void 0 : extraStyles.closeIconStyles : {}
17743
18170
  })));
@@ -17933,7 +18360,7 @@ const UploadFileDigiLocker = props => {
17933
18360
  try {
17934
18361
  let _exit = false;
17935
18362
  e.preventDefault();
17936
- return Promise.resolve(_catch$1(function () {
18363
+ return Promise.resolve(_catch(function () {
17937
18364
  function _temp13(_result) {
17938
18365
  if (_exit) return _result;
17939
18366
  let TokenReq = {
@@ -18144,7 +18571,7 @@ const UploadFileDigiLocker = props => {
18144
18571
  function _temp2() {
18145
18572
  _exit = true;
18146
18573
  }
18147
- const _temp = _catch$1(function () {
18574
+ const _temp = _catch(function () {
18148
18575
  const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
18149
18576
  return Promise.resolve(Digit.DigiLockerService.authorization({
18150
18577
  module: "WS",
@@ -18213,7 +18640,7 @@ const UploadFileDigiLocker = props => {
18213
18640
  fill: "#0B0C0C"
18214
18641
  }));
18215
18642
  const showHint = (props === null || props === void 0 ? void 0 : props.showHint) || false;
18216
- return /*#__PURE__*/React.createElement(Fragment$2, null, showHint && /*#__PURE__*/React.createElement("p", {
18643
+ return /*#__PURE__*/React.createElement(Fragment$1, null, showHint && /*#__PURE__*/React.createElement("p", {
18217
18644
  className: "cell-text"
18218
18645
  }, t(props === null || props === void 0 ? void 0 : props.hintText)), /*#__PURE__*/React.createElement("div", {
18219
18646
  className: `upload-file ${user_type === "employee" ? "" : "upload-file-max-width"} ${props.disabled ? " disabled" : ""}`,
@@ -19792,7 +20219,7 @@ const WSDisconnectionDocsRequired = _ref => {
19792
20219
  } = Digit.Hooks.ws.WSSearchMdmsTypes.useWSServicesMasters(tenantId, "DisconnectionDocuments");
19793
20220
  if (userType === "citizen") {
19794
20221
  var _wsDocs$Disconnection;
19795
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`WS_COMMON_APPLICATION_DISCONNECTION`)), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
20222
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`WS_COMMON_APPLICATION_DISCONNECTION`)), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
19796
20223
  style: {
19797
20224
  margin: "0px"
19798
20225
  },
@@ -19818,7 +20245,7 @@ const WSDisconnectionDocsRequired = _ref => {
19818
20245
  color: "#0B0C0C",
19819
20246
  marginTop: "12px"
19820
20247
  }
19821
- }, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((doc, index) => {
20248
+ }, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((doc, index) => {
19822
20249
  var _doc$dropdownData;
19823
20250
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
19824
20251
  style: {
@@ -24765,7 +25192,7 @@ const FilterFormFieldsComponent = _ref => {
24765
25192
  });
24766
25193
  return props.onChange(res);
24767
25194
  };
24768
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
25195
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
24769
25196
  name: "assignee",
24770
25197
  control: controlFilterForm,
24771
25198
  render: props => {
@@ -24796,7 +25223,7 @@ const FilterFormFieldsComponent = _ref => {
24796
25223
  });
24797
25224
  });
24798
25225
  }, [props === null || props === void 0 ? void 0 : props.value]);
24799
- return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
25226
+ return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
24800
25227
  className: "filter-label sub-filter-label"
24801
25228
  }, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
24802
25229
  options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
@@ -24831,9 +25258,9 @@ const FilterFormFieldsComponent = _ref => {
24831
25258
  key: index + 1
24832
25259
  });
24833
25260
  }), [props.value, statuses]);
24834
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
25261
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
24835
25262
  className: "filter-label sub-filter-label"
24836
- }, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, " ", renderStatusCheckBoxess));
25263
+ }, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
24837
25264
  }
24838
25265
  })), (selectedApplicationType === null || selectedApplicationType === void 0 ? void 0 : selectedApplicationType.length) > 0 ? /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
24839
25266
  name: "applicationStatus",
@@ -24860,9 +25287,9 @@ const FilterFormFieldsComponent = _ref => {
24860
25287
  });
24861
25288
  });
24862
25289
  }, [props.value, statuses, selectedApplicationType]);
24863
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
25290
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
24864
25291
  className: "filter-label sub-filter-label"
24865
- }, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, renderStatusCheckBoxes));
25292
+ }, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, renderStatusCheckBoxes));
24866
25293
  }
24867
25294
  })) : null);
24868
25295
  };
@@ -26126,7 +26553,7 @@ const SearchFields$1 = _ref => {
26126
26553
  title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
26127
26554
  };
26128
26555
  let validation = {};
26129
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, _extends({
26556
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, _extends({
26130
26557
  name: "connectionNumber",
26131
26558
  inputRef: register({})
26132
26559
  }, validation = {
@@ -26794,7 +27221,7 @@ const BulkBillSearchFields = _ref => {
26794
27221
  setValue('tenantId', tenant);
26795
27222
  setLocality(value);
26796
27223
  }
26797
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_CITY")), /*#__PURE__*/React.createElement(TextInput, {
27224
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_CITY")), /*#__PURE__*/React.createElement(TextInput, {
26798
27225
  name: "city",
26799
27226
  disable: true,
26800
27227
  value: t(tenant),
@@ -27237,7 +27664,7 @@ const BulkBillSearch = _ref => {
27237
27664
  return GetCell((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["status"]);
27238
27665
  }
27239
27666
  }]);
27240
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, {
27667
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
27241
27668
  styles: {
27242
27669
  fontSize: "32px"
27243
27670
  }
@@ -27519,7 +27946,11 @@ const WSCard = () => {
27519
27946
  label: t("WS_APPLY_MUTATION"),
27520
27947
  link: `/digit-ui/employee/ws/mutation-application`,
27521
27948
  roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
27522
- }]
27949
+ }, {
27950
+ label: t("WS_ZRO_VERIFICATION"),
27951
+ link: `/digit-ui/employee/ws/zro-application`,
27952
+ roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
27953
+ }].filter(link => link.roles ? checkForEmployee(link.roles) : true)
27523
27954
  };
27524
27955
  return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
27525
27956
  };
@@ -27619,7 +28050,7 @@ const SearchFormFieldsComponents$1 = _ref => {
27619
28050
  componentInFront: "+91"
27620
28051
  };
27621
28052
  let validation = {};
27622
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, {
28053
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
27623
28054
  className: "wns-search-field"
27624
28055
  }, /*#__PURE__*/React.createElement("label", null, t("BILLAMEND_APPLICATIONNO")), /*#__PURE__*/React.createElement(TextInput, _extends({
27625
28056
  name: "applicationNumber",
@@ -27687,7 +28118,7 @@ const FilterFormFieldsComponent$1 = _ref => {
27687
28118
  });
27688
28119
  return props.onChange(res);
27689
28120
  };
27690
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
28121
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
27691
28122
  name: "assignee",
27692
28123
  control: controlFilterForm,
27693
28124
  render: props => /*#__PURE__*/React.createElement(RadioButtons, {
@@ -27716,7 +28147,7 @@ const FilterFormFieldsComponent$1 = _ref => {
27716
28147
  });
27717
28148
  });
27718
28149
  }, [props === null || props === void 0 ? void 0 : props.value]);
27719
- return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
28150
+ return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
27720
28151
  className: "filter-label sub-filter-label"
27721
28152
  }, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
27722
28153
  options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
@@ -27755,9 +28186,9 @@ const FilterFormFieldsComponent$1 = _ref => {
27755
28186
  key: index + 1
27756
28187
  });
27757
28188
  }), [props.value, statuses]);
27758
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
28189
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
27759
28190
  className: "filter-label sub-filter-label"
27760
- }, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, " ", renderStatusCheckBoxess));
28191
+ }, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
27761
28192
  }
27762
28193
  })));
27763
28194
  };
@@ -28281,7 +28712,7 @@ const Inbox = _ref => {
28281
28712
  sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
28282
28713
  onSortFormReset
28283
28714
  };
28284
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, null, t("ES_COMMON_INBOX"), totalCount ? /*#__PURE__*/React.createElement("p", {
28715
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, null, t("ES_COMMON_INBOX"), totalCount ? /*#__PURE__*/React.createElement("p", {
28285
28716
  className: "inbox-count"
28286
28717
  }, totalCount) : null), /*#__PURE__*/React.createElement(InboxComposer, _extends({
28287
28718
  isInboxLoading,
@@ -28404,24 +28835,11 @@ const newConfig = [{
28404
28835
  route: "property-water-details",
28405
28836
  component: "WSPropertyWaterConnection",
28406
28837
  key: "waterConnection",
28407
- nextStep: "bank-details",
28408
- WATER: "bank-details",
28409
- hideInEmployee: true,
28410
- texts: {
28411
- header: "WS_PROPERTY_ADDRESS_DETAILS",
28412
- cardText: "",
28413
- submitBarLabel: "CS_COMMON_NEXT"
28414
- }
28415
- }, {
28416
- route: "bank-details",
28417
- component: "WSBankDetails",
28418
- key: "bankDetails",
28419
28838
  nextStep: "disability-details",
28420
28839
  WATER: "disability-details",
28421
28840
  hideInEmployee: true,
28422
28841
  texts: {
28423
- headerCaption: "WS_COMMON_CONNECTION_DETAIL",
28424
- header: "WS_BANK_DETAILS",
28842
+ header: "WS_PROPERTY_ADDRESS_DETAILS",
28425
28843
  cardText: "",
28426
28844
  submitBarLabel: "CS_COMMON_NEXT"
28427
28845
  }
@@ -29389,1101 +29807,6 @@ const config = [{
29389
29807
  }]
29390
29808
  }];
29391
29809
 
29392
- /** @license React v16.13.1
29393
- * react-is.production.min.js
29394
- *
29395
- * Copyright (c) Facebook, Inc. and its affiliates.
29396
- *
29397
- * This source code is licensed under the MIT license found in the
29398
- * LICENSE file in the root directory of this source tree.
29399
- */
29400
- var b$1="function"===typeof Symbol&&Symbol.for,c$1=b$1?Symbol.for("react.element"):60103,d$1=b$1?Symbol.for("react.portal"):60106,e$1=b$1?Symbol.for("react.fragment"):60107,f$1=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h$1=b$1?Symbol.for("react.provider"):60109,k$1=b$1?Symbol.for("react.context"):60110,l$1=b$1?Symbol.for("react.async_mode"):60111,m$1=b$1?Symbol.for("react.concurrent_mode"):60111,n$1=b$1?Symbol.for("react.forward_ref"):60112,p$1=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?
29401
- Symbol.for("react.suspense_list"):60120,r$1=b$1?Symbol.for("react.memo"):60115,t$1=b$1?Symbol.for("react.lazy"):60116,v$1=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$1=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;
29402
- function z$1(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$1:switch(a=a.type,a){case l$1:case m$1:case e$1:case g$1:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n$1:case t$1:case r$1:case h$1:return a;default:return u}}case d$1:return u}}}function A$1(a){return z$1(a)===m$1}var AsyncMode$1=l$1;var ConcurrentMode$1=m$1;var ContextConsumer$1=k$1;var ContextProvider$1=h$1;var Element$1=c$1;var ForwardRef$1=n$1;var Fragment$1=e$1;var Lazy$1=t$1;var Memo$1=r$1;var Portal$1=d$1;
29403
- var Profiler$1=g$1;var StrictMode$1=f$1;var Suspense$1=p$1;var isAsyncMode$1=function(a){return A$1(a)||z$1(a)===l$1};var isConcurrentMode$1=A$1;var isContextConsumer$1=function(a){return z$1(a)===k$1};var isContextProvider$1=function(a){return z$1(a)===h$1};var isElement$1=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$1};var isForwardRef$1=function(a){return z$1(a)===n$1};var isFragment$1=function(a){return z$1(a)===e$1};var isLazy$1=function(a){return z$1(a)===t$1};
29404
- var isMemo$1=function(a){return z$1(a)===r$1};var isPortal$1=function(a){return z$1(a)===d$1};var isProfiler$1=function(a){return z$1(a)===g$1};var isStrictMode$1=function(a){return z$1(a)===f$1};var isSuspense$1=function(a){return z$1(a)===p$1};
29405
- var isValidElementType$1=function(a){return "string"===typeof a||"function"===typeof a||a===e$1||a===m$1||a===g$1||a===f$1||a===p$1||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r$1||a.$$typeof===h$1||a.$$typeof===k$1||a.$$typeof===n$1||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$1)};var typeOf$1=z$1;
29406
-
29407
- var reactIs_production_min$1 = {
29408
- AsyncMode: AsyncMode$1,
29409
- ConcurrentMode: ConcurrentMode$1,
29410
- ContextConsumer: ContextConsumer$1,
29411
- ContextProvider: ContextProvider$1,
29412
- Element: Element$1,
29413
- ForwardRef: ForwardRef$1,
29414
- Fragment: Fragment$1,
29415
- Lazy: Lazy$1,
29416
- Memo: Memo$1,
29417
- Portal: Portal$1,
29418
- Profiler: Profiler$1,
29419
- StrictMode: StrictMode$1,
29420
- Suspense: Suspense$1,
29421
- isAsyncMode: isAsyncMode$1,
29422
- isConcurrentMode: isConcurrentMode$1,
29423
- isContextConsumer: isContextConsumer$1,
29424
- isContextProvider: isContextProvider$1,
29425
- isElement: isElement$1,
29426
- isForwardRef: isForwardRef$1,
29427
- isFragment: isFragment$1,
29428
- isLazy: isLazy$1,
29429
- isMemo: isMemo$1,
29430
- isPortal: isPortal$1,
29431
- isProfiler: isProfiler$1,
29432
- isStrictMode: isStrictMode$1,
29433
- isSuspense: isSuspense$1,
29434
- isValidElementType: isValidElementType$1,
29435
- typeOf: typeOf$1
29436
- };
29437
-
29438
- var reactIs_development$1 = createCommonjsModule(function (module, exports) {
29439
-
29440
-
29441
-
29442
- if (process.env.NODE_ENV !== "production") {
29443
- (function() {
29444
-
29445
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
29446
- // nor polyfill, then a plain number is used for performance.
29447
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
29448
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
29449
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
29450
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
29451
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
29452
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
29453
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
29454
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
29455
- // (unstable) APIs that have been removed. Can we remove the symbols?
29456
-
29457
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
29458
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
29459
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
29460
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
29461
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
29462
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
29463
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
29464
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
29465
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
29466
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
29467
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
29468
-
29469
- function isValidElementType(type) {
29470
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
29471
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
29472
- }
29473
-
29474
- function typeOf(object) {
29475
- if (typeof object === 'object' && object !== null) {
29476
- var $$typeof = object.$$typeof;
29477
-
29478
- switch ($$typeof) {
29479
- case REACT_ELEMENT_TYPE:
29480
- var type = object.type;
29481
-
29482
- switch (type) {
29483
- case REACT_ASYNC_MODE_TYPE:
29484
- case REACT_CONCURRENT_MODE_TYPE:
29485
- case REACT_FRAGMENT_TYPE:
29486
- case REACT_PROFILER_TYPE:
29487
- case REACT_STRICT_MODE_TYPE:
29488
- case REACT_SUSPENSE_TYPE:
29489
- return type;
29490
-
29491
- default:
29492
- var $$typeofType = type && type.$$typeof;
29493
-
29494
- switch ($$typeofType) {
29495
- case REACT_CONTEXT_TYPE:
29496
- case REACT_FORWARD_REF_TYPE:
29497
- case REACT_LAZY_TYPE:
29498
- case REACT_MEMO_TYPE:
29499
- case REACT_PROVIDER_TYPE:
29500
- return $$typeofType;
29501
-
29502
- default:
29503
- return $$typeof;
29504
- }
29505
-
29506
- }
29507
-
29508
- case REACT_PORTAL_TYPE:
29509
- return $$typeof;
29510
- }
29511
- }
29512
-
29513
- return undefined;
29514
- } // AsyncMode is deprecated along with isAsyncMode
29515
-
29516
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
29517
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
29518
- var ContextConsumer = REACT_CONTEXT_TYPE;
29519
- var ContextProvider = REACT_PROVIDER_TYPE;
29520
- var Element = REACT_ELEMENT_TYPE;
29521
- var ForwardRef = REACT_FORWARD_REF_TYPE;
29522
- var Fragment = REACT_FRAGMENT_TYPE;
29523
- var Lazy = REACT_LAZY_TYPE;
29524
- var Memo = REACT_MEMO_TYPE;
29525
- var Portal = REACT_PORTAL_TYPE;
29526
- var Profiler = REACT_PROFILER_TYPE;
29527
- var StrictMode = REACT_STRICT_MODE_TYPE;
29528
- var Suspense = REACT_SUSPENSE_TYPE;
29529
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
29530
-
29531
- function isAsyncMode(object) {
29532
- {
29533
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
29534
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
29535
-
29536
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
29537
- }
29538
- }
29539
-
29540
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
29541
- }
29542
- function isConcurrentMode(object) {
29543
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
29544
- }
29545
- function isContextConsumer(object) {
29546
- return typeOf(object) === REACT_CONTEXT_TYPE;
29547
- }
29548
- function isContextProvider(object) {
29549
- return typeOf(object) === REACT_PROVIDER_TYPE;
29550
- }
29551
- function isElement(object) {
29552
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
29553
- }
29554
- function isForwardRef(object) {
29555
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
29556
- }
29557
- function isFragment(object) {
29558
- return typeOf(object) === REACT_FRAGMENT_TYPE;
29559
- }
29560
- function isLazy(object) {
29561
- return typeOf(object) === REACT_LAZY_TYPE;
29562
- }
29563
- function isMemo(object) {
29564
- return typeOf(object) === REACT_MEMO_TYPE;
29565
- }
29566
- function isPortal(object) {
29567
- return typeOf(object) === REACT_PORTAL_TYPE;
29568
- }
29569
- function isProfiler(object) {
29570
- return typeOf(object) === REACT_PROFILER_TYPE;
29571
- }
29572
- function isStrictMode(object) {
29573
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
29574
- }
29575
- function isSuspense(object) {
29576
- return typeOf(object) === REACT_SUSPENSE_TYPE;
29577
- }
29578
-
29579
- exports.AsyncMode = AsyncMode;
29580
- exports.ConcurrentMode = ConcurrentMode;
29581
- exports.ContextConsumer = ContextConsumer;
29582
- exports.ContextProvider = ContextProvider;
29583
- exports.Element = Element;
29584
- exports.ForwardRef = ForwardRef;
29585
- exports.Fragment = Fragment;
29586
- exports.Lazy = Lazy;
29587
- exports.Memo = Memo;
29588
- exports.Portal = Portal;
29589
- exports.Profiler = Profiler;
29590
- exports.StrictMode = StrictMode;
29591
- exports.Suspense = Suspense;
29592
- exports.isAsyncMode = isAsyncMode;
29593
- exports.isConcurrentMode = isConcurrentMode;
29594
- exports.isContextConsumer = isContextConsumer;
29595
- exports.isContextProvider = isContextProvider;
29596
- exports.isElement = isElement;
29597
- exports.isForwardRef = isForwardRef;
29598
- exports.isFragment = isFragment;
29599
- exports.isLazy = isLazy;
29600
- exports.isMemo = isMemo;
29601
- exports.isPortal = isPortal;
29602
- exports.isProfiler = isProfiler;
29603
- exports.isStrictMode = isStrictMode;
29604
- exports.isSuspense = isSuspense;
29605
- exports.isValidElementType = isValidElementType;
29606
- exports.typeOf = typeOf;
29607
- })();
29608
- }
29609
- });
29610
-
29611
- var reactIs$1 = createCommonjsModule(function (module) {
29612
-
29613
- if (process.env.NODE_ENV === 'production') {
29614
- module.exports = reactIs_production_min$1;
29615
- } else {
29616
- module.exports = reactIs_development$1;
29617
- }
29618
- });
29619
-
29620
- /*
29621
- object-assign
29622
- (c) Sindre Sorhus
29623
- @license MIT
29624
- */
29625
- /* eslint-disable no-unused-vars */
29626
- var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
29627
- var hasOwnProperty$b = Object.prototype.hasOwnProperty;
29628
- var propIsEnumerable$1 = Object.prototype.propertyIsEnumerable;
29629
-
29630
- function toObject$1(val) {
29631
- if (val === null || val === undefined) {
29632
- throw new TypeError('Object.assign cannot be called with null or undefined');
29633
- }
29634
-
29635
- return Object(val);
29636
- }
29637
-
29638
- function shouldUseNative$1() {
29639
- try {
29640
- if (!Object.assign) {
29641
- return false;
29642
- }
29643
-
29644
- // Detect buggy property enumeration order in older V8 versions.
29645
-
29646
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
29647
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
29648
- test1[5] = 'de';
29649
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
29650
- return false;
29651
- }
29652
-
29653
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
29654
- var test2 = {};
29655
- for (var i = 0; i < 10; i++) {
29656
- test2['_' + String.fromCharCode(i)] = i;
29657
- }
29658
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
29659
- return test2[n];
29660
- });
29661
- if (order2.join('') !== '0123456789') {
29662
- return false;
29663
- }
29664
-
29665
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
29666
- var test3 = {};
29667
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
29668
- test3[letter] = letter;
29669
- });
29670
- if (Object.keys(Object.assign({}, test3)).join('') !==
29671
- 'abcdefghijklmnopqrst') {
29672
- return false;
29673
- }
29674
-
29675
- return true;
29676
- } catch (err) {
29677
- // We don't expect any of the above to throw, but better to be safe.
29678
- return false;
29679
- }
29680
- }
29681
-
29682
- var objectAssign$1 = shouldUseNative$1() ? Object.assign : function (target, source) {
29683
- var from;
29684
- var to = toObject$1(target);
29685
- var symbols;
29686
-
29687
- for (var s = 1; s < arguments.length; s++) {
29688
- from = Object(arguments[s]);
29689
-
29690
- for (var key in from) {
29691
- if (hasOwnProperty$b.call(from, key)) {
29692
- to[key] = from[key];
29693
- }
29694
- }
29695
-
29696
- if (getOwnPropertySymbols$1) {
29697
- symbols = getOwnPropertySymbols$1(from);
29698
- for (var i = 0; i < symbols.length; i++) {
29699
- if (propIsEnumerable$1.call(from, symbols[i])) {
29700
- to[symbols[i]] = from[symbols[i]];
29701
- }
29702
- }
29703
- }
29704
- }
29705
-
29706
- return to;
29707
- };
29708
-
29709
- /**
29710
- * Copyright (c) 2013-present, Facebook, Inc.
29711
- *
29712
- * This source code is licensed under the MIT license found in the
29713
- * LICENSE file in the root directory of this source tree.
29714
- */
29715
-
29716
- var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
29717
-
29718
- var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$2;
29719
-
29720
- var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
29721
-
29722
- var printWarning$2 = function() {};
29723
-
29724
- if (process.env.NODE_ENV !== 'production') {
29725
- var ReactPropTypesSecret$3 = ReactPropTypesSecret_1$1;
29726
- var loggedTypeFailures$1 = {};
29727
- var has$3 = has$2;
29728
-
29729
- printWarning$2 = function(text) {
29730
- var message = 'Warning: ' + text;
29731
- if (typeof console !== 'undefined') {
29732
- console.error(message);
29733
- }
29734
- try {
29735
- // --- Welcome to debugging React ---
29736
- // This error was thrown as a convenience so that you can use this stack
29737
- // to find the callsite that caused this warning to fire.
29738
- throw new Error(message);
29739
- } catch (x) { /**/ }
29740
- };
29741
- }
29742
-
29743
- /**
29744
- * Assert that the values match with the type specs.
29745
- * Error messages are memorized and will only be shown once.
29746
- *
29747
- * @param {object} typeSpecs Map of name to a ReactPropType
29748
- * @param {object} values Runtime values that need to be type-checked
29749
- * @param {string} location e.g. "prop", "context", "child context"
29750
- * @param {string} componentName Name of the component for error messages.
29751
- * @param {?Function} getStack Returns the component stack.
29752
- * @private
29753
- */
29754
- function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
29755
- if (process.env.NODE_ENV !== 'production') {
29756
- for (var typeSpecName in typeSpecs) {
29757
- if (has$3(typeSpecs, typeSpecName)) {
29758
- var error;
29759
- // Prop type validation may throw. In case they do, we don't want to
29760
- // fail the render phase where it didn't fail before. So we log it.
29761
- // After these have been cleaned up, we'll let them throw.
29762
- try {
29763
- // This is intentionally an invariant that gets caught. It's the same
29764
- // behavior as without this statement except with a better message.
29765
- if (typeof typeSpecs[typeSpecName] !== 'function') {
29766
- var err = Error(
29767
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
29768
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
29769
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
29770
- );
29771
- err.name = 'Invariant Violation';
29772
- throw err;
29773
- }
29774
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$3);
29775
- } catch (ex) {
29776
- error = ex;
29777
- }
29778
- if (error && !(error instanceof Error)) {
29779
- printWarning$2(
29780
- (componentName || 'React class') + ': type specification of ' +
29781
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
29782
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
29783
- 'You may have forgotten to pass an argument to the type checker ' +
29784
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
29785
- 'shape all require an argument).'
29786
- );
29787
- }
29788
- if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
29789
- // Only monitor this failure once because there tends to be a lot of the
29790
- // same error.
29791
- loggedTypeFailures$1[error.message] = true;
29792
-
29793
- var stack = getStack ? getStack() : '';
29794
-
29795
- printWarning$2(
29796
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
29797
- );
29798
- }
29799
- }
29800
- }
29801
- }
29802
- }
29803
-
29804
- /**
29805
- * Resets warning cache when testing.
29806
- *
29807
- * @private
29808
- */
29809
- checkPropTypes$1.resetWarningCache = function() {
29810
- if (process.env.NODE_ENV !== 'production') {
29811
- loggedTypeFailures$1 = {};
29812
- }
29813
- };
29814
-
29815
- var checkPropTypes_1$1 = checkPropTypes$1;
29816
-
29817
- var printWarning$3 = function() {};
29818
-
29819
- if (process.env.NODE_ENV !== 'production') {
29820
- printWarning$3 = function(text) {
29821
- var message = 'Warning: ' + text;
29822
- if (typeof console !== 'undefined') {
29823
- console.error(message);
29824
- }
29825
- try {
29826
- // --- Welcome to debugging React ---
29827
- // This error was thrown as a convenience so that you can use this stack
29828
- // to find the callsite that caused this warning to fire.
29829
- throw new Error(message);
29830
- } catch (x) {}
29831
- };
29832
- }
29833
-
29834
- function emptyFunctionThatReturnsNull$1() {
29835
- return null;
29836
- }
29837
-
29838
- var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
29839
- /* global Symbol */
29840
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
29841
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
29842
-
29843
- /**
29844
- * Returns the iterator method function contained on the iterable object.
29845
- *
29846
- * Be sure to invoke the function with the iterable as context:
29847
- *
29848
- * var iteratorFn = getIteratorFn(myIterable);
29849
- * if (iteratorFn) {
29850
- * var iterator = iteratorFn.call(myIterable);
29851
- * ...
29852
- * }
29853
- *
29854
- * @param {?object} maybeIterable
29855
- * @return {?function}
29856
- */
29857
- function getIteratorFn(maybeIterable) {
29858
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
29859
- if (typeof iteratorFn === 'function') {
29860
- return iteratorFn;
29861
- }
29862
- }
29863
-
29864
- /**
29865
- * Collection of methods that allow declaration and validation of props that are
29866
- * supplied to React components. Example usage:
29867
- *
29868
- * var Props = require('ReactPropTypes');
29869
- * var MyArticle = React.createClass({
29870
- * propTypes: {
29871
- * // An optional string prop named "description".
29872
- * description: Props.string,
29873
- *
29874
- * // A required enum prop named "category".
29875
- * category: Props.oneOf(['News','Photos']).isRequired,
29876
- *
29877
- * // A prop named "dialog" that requires an instance of Dialog.
29878
- * dialog: Props.instanceOf(Dialog).isRequired
29879
- * },
29880
- * render: function() { ... }
29881
- * });
29882
- *
29883
- * A more formal specification of how these methods are used:
29884
- *
29885
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
29886
- * decl := ReactPropTypes.{type}(.isRequired)?
29887
- *
29888
- * Each and every declaration produces a function with the same signature. This
29889
- * allows the creation of custom validation functions. For example:
29890
- *
29891
- * var MyLink = React.createClass({
29892
- * propTypes: {
29893
- * // An optional string or URI prop named "href".
29894
- * href: function(props, propName, componentName) {
29895
- * var propValue = props[propName];
29896
- * if (propValue != null && typeof propValue !== 'string' &&
29897
- * !(propValue instanceof URI)) {
29898
- * return new Error(
29899
- * 'Expected a string or an URI for ' + propName + ' in ' +
29900
- * componentName
29901
- * );
29902
- * }
29903
- * }
29904
- * },
29905
- * render: function() {...}
29906
- * });
29907
- *
29908
- * @internal
29909
- */
29910
-
29911
- var ANONYMOUS = '<<anonymous>>';
29912
-
29913
- // Important!
29914
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
29915
- var ReactPropTypes = {
29916
- array: createPrimitiveTypeChecker('array'),
29917
- bigint: createPrimitiveTypeChecker('bigint'),
29918
- bool: createPrimitiveTypeChecker('boolean'),
29919
- func: createPrimitiveTypeChecker('function'),
29920
- number: createPrimitiveTypeChecker('number'),
29921
- object: createPrimitiveTypeChecker('object'),
29922
- string: createPrimitiveTypeChecker('string'),
29923
- symbol: createPrimitiveTypeChecker('symbol'),
29924
-
29925
- any: createAnyTypeChecker(),
29926
- arrayOf: createArrayOfTypeChecker,
29927
- element: createElementTypeChecker(),
29928
- elementType: createElementTypeTypeChecker(),
29929
- instanceOf: createInstanceTypeChecker,
29930
- node: createNodeChecker(),
29931
- objectOf: createObjectOfTypeChecker,
29932
- oneOf: createEnumTypeChecker,
29933
- oneOfType: createUnionTypeChecker,
29934
- shape: createShapeTypeChecker,
29935
- exact: createStrictShapeTypeChecker,
29936
- };
29937
-
29938
- /**
29939
- * inlined Object.is polyfill to avoid requiring consumers ship their own
29940
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
29941
- */
29942
- /*eslint-disable no-self-compare*/
29943
- function is(x, y) {
29944
- // SameValue algorithm
29945
- if (x === y) {
29946
- // Steps 1-5, 7-10
29947
- // Steps 6.b-6.e: +0 != -0
29948
- return x !== 0 || 1 / x === 1 / y;
29949
- } else {
29950
- // Step 6.a: NaN == NaN
29951
- return x !== x && y !== y;
29952
- }
29953
- }
29954
- /*eslint-enable no-self-compare*/
29955
-
29956
- /**
29957
- * We use an Error-like object for backward compatibility as people may call
29958
- * PropTypes directly and inspect their output. However, we don't use real
29959
- * Errors anymore. We don't inspect their stack anyway, and creating them
29960
- * is prohibitively expensive if they are created too often, such as what
29961
- * happens in oneOfType() for any type before the one that matched.
29962
- */
29963
- function PropTypeError(message, data) {
29964
- this.message = message;
29965
- this.data = data && typeof data === 'object' ? data: {};
29966
- this.stack = '';
29967
- }
29968
- // Make `instanceof Error` still work for returned errors.
29969
- PropTypeError.prototype = Error.prototype;
29970
-
29971
- function createChainableTypeChecker(validate) {
29972
- if (process.env.NODE_ENV !== 'production') {
29973
- var manualPropTypeCallCache = {};
29974
- var manualPropTypeWarningCount = 0;
29975
- }
29976
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
29977
- componentName = componentName || ANONYMOUS;
29978
- propFullName = propFullName || propName;
29979
-
29980
- if (secret !== ReactPropTypesSecret_1$1) {
29981
- if (throwOnDirectAccess) {
29982
- // New behavior only for users of `prop-types` package
29983
- var err = new Error(
29984
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
29985
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
29986
- 'Read more at http://fb.me/use-check-prop-types'
29987
- );
29988
- err.name = 'Invariant Violation';
29989
- throw err;
29990
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
29991
- // Old behavior for people using React.PropTypes
29992
- var cacheKey = componentName + ':' + propName;
29993
- if (
29994
- !manualPropTypeCallCache[cacheKey] &&
29995
- // Avoid spamming the console because they are often not actionable except for lib authors
29996
- manualPropTypeWarningCount < 3
29997
- ) {
29998
- printWarning$3(
29999
- 'You are manually calling a React.PropTypes validation ' +
30000
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
30001
- 'and will throw in the standalone `prop-types` package. ' +
30002
- 'You may be seeing this warning due to a third-party PropTypes ' +
30003
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
30004
- );
30005
- manualPropTypeCallCache[cacheKey] = true;
30006
- manualPropTypeWarningCount++;
30007
- }
30008
- }
30009
- }
30010
- if (props[propName] == null) {
30011
- if (isRequired) {
30012
- if (props[propName] === null) {
30013
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
30014
- }
30015
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
30016
- }
30017
- return null;
30018
- } else {
30019
- return validate(props, propName, componentName, location, propFullName);
30020
- }
30021
- }
30022
-
30023
- var chainedCheckType = checkType.bind(null, false);
30024
- chainedCheckType.isRequired = checkType.bind(null, true);
30025
-
30026
- return chainedCheckType;
30027
- }
30028
-
30029
- function createPrimitiveTypeChecker(expectedType) {
30030
- function validate(props, propName, componentName, location, propFullName, secret) {
30031
- var propValue = props[propName];
30032
- var propType = getPropType(propValue);
30033
- if (propType !== expectedType) {
30034
- // `propValue` being instance of, say, date/regexp, pass the 'object'
30035
- // check, but we can offer a more precise error message here rather than
30036
- // 'of type `object`'.
30037
- var preciseType = getPreciseType(propValue);
30038
-
30039
- return new PropTypeError(
30040
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
30041
- {expectedType: expectedType}
30042
- );
30043
- }
30044
- return null;
30045
- }
30046
- return createChainableTypeChecker(validate);
30047
- }
30048
-
30049
- function createAnyTypeChecker() {
30050
- return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
30051
- }
30052
-
30053
- function createArrayOfTypeChecker(typeChecker) {
30054
- function validate(props, propName, componentName, location, propFullName) {
30055
- if (typeof typeChecker !== 'function') {
30056
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
30057
- }
30058
- var propValue = props[propName];
30059
- if (!Array.isArray(propValue)) {
30060
- var propType = getPropType(propValue);
30061
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
30062
- }
30063
- for (var i = 0; i < propValue.length; i++) {
30064
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1$1);
30065
- if (error instanceof Error) {
30066
- return error;
30067
- }
30068
- }
30069
- return null;
30070
- }
30071
- return createChainableTypeChecker(validate);
30072
- }
30073
-
30074
- function createElementTypeChecker() {
30075
- function validate(props, propName, componentName, location, propFullName) {
30076
- var propValue = props[propName];
30077
- if (!isValidElement(propValue)) {
30078
- var propType = getPropType(propValue);
30079
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
30080
- }
30081
- return null;
30082
- }
30083
- return createChainableTypeChecker(validate);
30084
- }
30085
-
30086
- function createElementTypeTypeChecker() {
30087
- function validate(props, propName, componentName, location, propFullName) {
30088
- var propValue = props[propName];
30089
- if (!reactIs$1.isValidElementType(propValue)) {
30090
- var propType = getPropType(propValue);
30091
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
30092
- }
30093
- return null;
30094
- }
30095
- return createChainableTypeChecker(validate);
30096
- }
30097
-
30098
- function createInstanceTypeChecker(expectedClass) {
30099
- function validate(props, propName, componentName, location, propFullName) {
30100
- if (!(props[propName] instanceof expectedClass)) {
30101
- var expectedClassName = expectedClass.name || ANONYMOUS;
30102
- var actualClassName = getClassName(props[propName]);
30103
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
30104
- }
30105
- return null;
30106
- }
30107
- return createChainableTypeChecker(validate);
30108
- }
30109
-
30110
- function createEnumTypeChecker(expectedValues) {
30111
- if (!Array.isArray(expectedValues)) {
30112
- if (process.env.NODE_ENV !== 'production') {
30113
- if (arguments.length > 1) {
30114
- printWarning$3(
30115
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
30116
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
30117
- );
30118
- } else {
30119
- printWarning$3('Invalid argument supplied to oneOf, expected an array.');
30120
- }
30121
- }
30122
- return emptyFunctionThatReturnsNull$1;
30123
- }
30124
-
30125
- function validate(props, propName, componentName, location, propFullName) {
30126
- var propValue = props[propName];
30127
- for (var i = 0; i < expectedValues.length; i++) {
30128
- if (is(propValue, expectedValues[i])) {
30129
- return null;
30130
- }
30131
- }
30132
-
30133
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
30134
- var type = getPreciseType(value);
30135
- if (type === 'symbol') {
30136
- return String(value);
30137
- }
30138
- return value;
30139
- });
30140
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
30141
- }
30142
- return createChainableTypeChecker(validate);
30143
- }
30144
-
30145
- function createObjectOfTypeChecker(typeChecker) {
30146
- function validate(props, propName, componentName, location, propFullName) {
30147
- if (typeof typeChecker !== 'function') {
30148
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
30149
- }
30150
- var propValue = props[propName];
30151
- var propType = getPropType(propValue);
30152
- if (propType !== 'object') {
30153
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
30154
- }
30155
- for (var key in propValue) {
30156
- if (has$2(propValue, key)) {
30157
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
30158
- if (error instanceof Error) {
30159
- return error;
30160
- }
30161
- }
30162
- }
30163
- return null;
30164
- }
30165
- return createChainableTypeChecker(validate);
30166
- }
30167
-
30168
- function createUnionTypeChecker(arrayOfTypeCheckers) {
30169
- if (!Array.isArray(arrayOfTypeCheckers)) {
30170
- process.env.NODE_ENV !== 'production' ? printWarning$3('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
30171
- return emptyFunctionThatReturnsNull$1;
30172
- }
30173
-
30174
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
30175
- var checker = arrayOfTypeCheckers[i];
30176
- if (typeof checker !== 'function') {
30177
- printWarning$3(
30178
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
30179
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
30180
- );
30181
- return emptyFunctionThatReturnsNull$1;
30182
- }
30183
- }
30184
-
30185
- function validate(props, propName, componentName, location, propFullName) {
30186
- var expectedTypes = [];
30187
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
30188
- var checker = arrayOfTypeCheckers[i];
30189
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1$1);
30190
- if (checkerResult == null) {
30191
- return null;
30192
- }
30193
- if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
30194
- expectedTypes.push(checkerResult.data.expectedType);
30195
- }
30196
- }
30197
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
30198
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
30199
- }
30200
- return createChainableTypeChecker(validate);
30201
- }
30202
-
30203
- function createNodeChecker() {
30204
- function validate(props, propName, componentName, location, propFullName) {
30205
- if (!isNode(props[propName])) {
30206
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
30207
- }
30208
- return null;
30209
- }
30210
- return createChainableTypeChecker(validate);
30211
- }
30212
-
30213
- function invalidValidatorError(componentName, location, propFullName, key, type) {
30214
- return new PropTypeError(
30215
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
30216
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
30217
- );
30218
- }
30219
-
30220
- function createShapeTypeChecker(shapeTypes) {
30221
- function validate(props, propName, componentName, location, propFullName) {
30222
- var propValue = props[propName];
30223
- var propType = getPropType(propValue);
30224
- if (propType !== 'object') {
30225
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
30226
- }
30227
- for (var key in shapeTypes) {
30228
- var checker = shapeTypes[key];
30229
- if (typeof checker !== 'function') {
30230
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
30231
- }
30232
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
30233
- if (error) {
30234
- return error;
30235
- }
30236
- }
30237
- return null;
30238
- }
30239
- return createChainableTypeChecker(validate);
30240
- }
30241
-
30242
- function createStrictShapeTypeChecker(shapeTypes) {
30243
- function validate(props, propName, componentName, location, propFullName) {
30244
- var propValue = props[propName];
30245
- var propType = getPropType(propValue);
30246
- if (propType !== 'object') {
30247
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
30248
- }
30249
- // We need to check all keys in case some are required but missing from props.
30250
- var allKeys = objectAssign$1({}, props[propName], shapeTypes);
30251
- for (var key in allKeys) {
30252
- var checker = shapeTypes[key];
30253
- if (has$2(shapeTypes, key) && typeof checker !== 'function') {
30254
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
30255
- }
30256
- if (!checker) {
30257
- return new PropTypeError(
30258
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
30259
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
30260
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
30261
- );
30262
- }
30263
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
30264
- if (error) {
30265
- return error;
30266
- }
30267
- }
30268
- return null;
30269
- }
30270
-
30271
- return createChainableTypeChecker(validate);
30272
- }
30273
-
30274
- function isNode(propValue) {
30275
- switch (typeof propValue) {
30276
- case 'number':
30277
- case 'string':
30278
- case 'undefined':
30279
- return true;
30280
- case 'boolean':
30281
- return !propValue;
30282
- case 'object':
30283
- if (Array.isArray(propValue)) {
30284
- return propValue.every(isNode);
30285
- }
30286
- if (propValue === null || isValidElement(propValue)) {
30287
- return true;
30288
- }
30289
-
30290
- var iteratorFn = getIteratorFn(propValue);
30291
- if (iteratorFn) {
30292
- var iterator = iteratorFn.call(propValue);
30293
- var step;
30294
- if (iteratorFn !== propValue.entries) {
30295
- while (!(step = iterator.next()).done) {
30296
- if (!isNode(step.value)) {
30297
- return false;
30298
- }
30299
- }
30300
- } else {
30301
- // Iterator will provide entry [k,v] tuples rather than values.
30302
- while (!(step = iterator.next()).done) {
30303
- var entry = step.value;
30304
- if (entry) {
30305
- if (!isNode(entry[1])) {
30306
- return false;
30307
- }
30308
- }
30309
- }
30310
- }
30311
- } else {
30312
- return false;
30313
- }
30314
-
30315
- return true;
30316
- default:
30317
- return false;
30318
- }
30319
- }
30320
-
30321
- function isSymbol(propType, propValue) {
30322
- // Native Symbol.
30323
- if (propType === 'symbol') {
30324
- return true;
30325
- }
30326
-
30327
- // falsy value can't be a Symbol
30328
- if (!propValue) {
30329
- return false;
30330
- }
30331
-
30332
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
30333
- if (propValue['@@toStringTag'] === 'Symbol') {
30334
- return true;
30335
- }
30336
-
30337
- // Fallback for non-spec compliant Symbols which are polyfilled.
30338
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
30339
- return true;
30340
- }
30341
-
30342
- return false;
30343
- }
30344
-
30345
- // Equivalent of `typeof` but with special handling for array and regexp.
30346
- function getPropType(propValue) {
30347
- var propType = typeof propValue;
30348
- if (Array.isArray(propValue)) {
30349
- return 'array';
30350
- }
30351
- if (propValue instanceof RegExp) {
30352
- // Old webkits (at least until Android 4.0) return 'function' rather than
30353
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
30354
- // passes PropTypes.object.
30355
- return 'object';
30356
- }
30357
- if (isSymbol(propType, propValue)) {
30358
- return 'symbol';
30359
- }
30360
- return propType;
30361
- }
30362
-
30363
- // This handles more types than `getPropType`. Only used for error messages.
30364
- // See `createPrimitiveTypeChecker`.
30365
- function getPreciseType(propValue) {
30366
- if (typeof propValue === 'undefined' || propValue === null) {
30367
- return '' + propValue;
30368
- }
30369
- var propType = getPropType(propValue);
30370
- if (propType === 'object') {
30371
- if (propValue instanceof Date) {
30372
- return 'date';
30373
- } else if (propValue instanceof RegExp) {
30374
- return 'regexp';
30375
- }
30376
- }
30377
- return propType;
30378
- }
30379
-
30380
- // Returns a string that is postfixed to a warning about an invalid type.
30381
- // For example, "undefined" or "of type array"
30382
- function getPostfixForTypeWarning(value) {
30383
- var type = getPreciseType(value);
30384
- switch (type) {
30385
- case 'array':
30386
- case 'object':
30387
- return 'an ' + type;
30388
- case 'boolean':
30389
- case 'date':
30390
- case 'regexp':
30391
- return 'a ' + type;
30392
- default:
30393
- return type;
30394
- }
30395
- }
30396
-
30397
- // Returns class name of the object, if any.
30398
- function getClassName(propValue) {
30399
- if (!propValue.constructor || !propValue.constructor.name) {
30400
- return ANONYMOUS;
30401
- }
30402
- return propValue.constructor.name;
30403
- }
30404
-
30405
- ReactPropTypes.checkPropTypes = checkPropTypes_1$1;
30406
- ReactPropTypes.resetWarningCache = checkPropTypes_1$1.resetWarningCache;
30407
- ReactPropTypes.PropTypes = ReactPropTypes;
30408
-
30409
- return ReactPropTypes;
30410
- };
30411
-
30412
- function emptyFunction$1() {}
30413
- function emptyFunctionWithReset$1() {}
30414
- emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
30415
-
30416
- var factoryWithThrowingShims$1 = function() {
30417
- function shim(props, propName, componentName, location, propFullName, secret) {
30418
- if (secret === ReactPropTypesSecret_1$1) {
30419
- // It is still safe when called from React.
30420
- return;
30421
- }
30422
- var err = new Error(
30423
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
30424
- 'Use PropTypes.checkPropTypes() to call them. ' +
30425
- 'Read more at http://fb.me/use-check-prop-types'
30426
- );
30427
- err.name = 'Invariant Violation';
30428
- throw err;
30429
- } shim.isRequired = shim;
30430
- function getShim() {
30431
- return shim;
30432
- } // Important!
30433
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
30434
- var ReactPropTypes = {
30435
- array: shim,
30436
- bigint: shim,
30437
- bool: shim,
30438
- func: shim,
30439
- number: shim,
30440
- object: shim,
30441
- string: shim,
30442
- symbol: shim,
30443
-
30444
- any: shim,
30445
- arrayOf: getShim,
30446
- element: shim,
30447
- elementType: shim,
30448
- instanceOf: getShim,
30449
- node: shim,
30450
- objectOf: getShim,
30451
- oneOf: getShim,
30452
- oneOfType: getShim,
30453
- shape: getShim,
30454
- exact: getShim,
30455
-
30456
- checkPropTypes: emptyFunctionWithReset$1,
30457
- resetWarningCache: emptyFunction$1
30458
- };
30459
-
30460
- ReactPropTypes.PropTypes = ReactPropTypes;
30461
-
30462
- return ReactPropTypes;
30463
- };
30464
-
30465
- var propTypes$1 = createCommonjsModule(function (module) {
30466
- /**
30467
- * Copyright (c) 2013-present, Facebook, Inc.
30468
- *
30469
- * This source code is licensed under the MIT license found in the
30470
- * LICENSE file in the root directory of this source tree.
30471
- */
30472
-
30473
- if (process.env.NODE_ENV !== 'production') {
30474
- var ReactIs = reactIs$1;
30475
-
30476
- // By explicitly using `prop-types` you are opting into new development behavior.
30477
- // http://fb.me/prop-types-in-prod
30478
- var throwOnDirectAccess = true;
30479
- module.exports = factoryWithTypeCheckers$1(ReactIs.isElement, throwOnDirectAccess);
30480
- } else {
30481
- // By explicitly using `prop-types` you are opting into new production behavior.
30482
- // http://fb.me/prop-types-in-prod
30483
- module.exports = factoryWithThrowingShims$1();
30484
- }
30485
- });
30486
-
30487
29810
  const SearchConnection = _ref => {
30488
29811
  var _Digit$Hooks$ws$usews;
30489
29812
  let {
@@ -30885,7 +30208,7 @@ const SearchConnection = _ref => {
30885
30208
  }));
30886
30209
  };
30887
30210
  SearchConnection.propTypes = {
30888
- loginParams: propTypes$1.any
30211
+ loginParams: propTypes.any
30889
30212
  };
30890
30213
  SearchConnection.defaultProps = {
30891
30214
  loginParams: null
@@ -31861,9 +31184,9 @@ const ChallanSearchResults = _ref => {
31861
31184
  }, t("WS_CLICK_HERE_TO_APPLY"))))));
31862
31185
  };
31863
31186
  ChallanSearchResults.propTypes = {
31864
- template: propTypes$1.any,
31865
- header: propTypes$1.string,
31866
- actionButtonLabel: propTypes$1.string
31187
+ template: propTypes.any,
31188
+ header: propTypes.string,
31189
+ actionButtonLabel: propTypes.string
31867
31190
  };
31868
31191
  ChallanSearchResults.defaultProps = {
31869
31192
  template: [],
@@ -32385,7 +31708,7 @@ const WSWFApplicationTimeline = props => {
32385
31708
  };
32386
31709
  if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
32387
31710
  const visibleTimeline = data !== null && data !== void 0 && data.timeline ? data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2) : [];
32388
- return /*#__PURE__*/React.createElement(Fragment$2, null, !isLoading && /*#__PURE__*/React.createElement("div", {
31711
+ return /*#__PURE__*/React.createElement(Fragment$1, null, !isLoading && /*#__PURE__*/React.createElement("div", {
32389
31712
  style: {
32390
31713
  fontFamily: "'Inter', system-ui, sans-serif"
32391
31714
  }
@@ -32875,7 +32198,7 @@ const WSFeeEstimation = _ref => {
32875
32198
  }
32876
32199
  setFields(values);
32877
32200
  };
32878
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
32201
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
32879
32202
  style: {
32880
32203
  lineHeight: "19px",
32881
32204
  maxWidth: "100%",
@@ -33391,7 +32714,7 @@ const ViewBreakup = _ref => {
33391
32714
  value: infrastructureChargeDetail.netIFC,
33392
32715
  currency: true
33393
32716
  }] : [];
33394
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
32717
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
33395
32718
  style: {
33396
32719
  lineHeight: "19px",
33397
32720
  maxWidth: "950px",
@@ -33474,19 +32797,19 @@ const ViewBreakup = _ref => {
33474
32797
  textStyle: {
33475
32798
  textAlign: "right"
33476
32799
  }
33477
- })), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
32800
+ })), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
33478
32801
  style: {
33479
32802
  margin: "10px 0px"
33480
32803
  }
33481
32804
  }, t("WS_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(DetailRows, {
33482
32805
  rows: propertyRows
33483
- })), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
32806
+ })), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
33484
32807
  style: {
33485
32808
  margin: "10px 0px"
33486
32809
  }
33487
32810
  }, t("WS_WATER_DEMAND_DETAILS")), /*#__PURE__*/React.createElement(DetailRows, {
33488
32811
  rows: waterDemandRows
33489
- })), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
32812
+ })), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
33490
32813
  style: {
33491
32814
  margin: "10px 0px"
33492
32815
  }
@@ -33521,7 +32844,7 @@ const checkForNA$1 = value => {
33521
32844
  return value ? value : "CS_NA";
33522
32845
  };
33523
32846
  const WSApplicationDetails = () => {
33524
- var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
32847
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
33525
32848
  const getDisconnectionNoticeSearch = function () {
33526
32849
  try {
33527
32850
  var _data$WaterConnection188, _data$WaterConnection189, _data$SewerageConnect182, _data$SewerageConnect183;
@@ -33639,7 +32962,6 @@ const WSApplicationDetails = () => {
33639
32962
  const useDetails = additionalDetails;
33640
32963
  const propertyAdditionalDetails = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.additionalDetails) || {};
33641
32964
  const djbEmployee = additionalDetails;
33642
- const bankDetails = additionalDetails;
33643
32965
  const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : (_PTData$Properties2$ = _PTData$Properties2[0]) === null || _PTData$Properties2$ === void 0 ? void 0 : _PTData$Properties2$.address) || additionalDetails;
33644
32966
  const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
33645
32967
  privacy: {
@@ -34269,27 +33591,6 @@ const WSApplicationDetails = () => {
34269
33591
  },
34270
33592
  onClick: () => getFiles([djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document], tenantId)
34271
33593
  }, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
34272
- }))), !isMutation && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
34273
- styles: {
34274
- fontSize: "28px"
34275
- }
34276
- }, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
34277
- style: {
34278
- marginTop: "10px",
34279
- marginBottom: "30px"
34280
- }
34281
- }, /*#__PURE__*/React.createElement(Row, {
34282
- label: t("WS_NAME_OF_BANK"),
34283
- text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`
34284
- }), /*#__PURE__*/React.createElement(Row, {
34285
- label: t("WS_NAME_OF_BRANCH"),
34286
- text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
34287
- }), /*#__PURE__*/React.createElement(Row, {
34288
- label: t("WS_IFSC_CODE"),
34289
- text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
34290
- }), /*#__PURE__*/React.createElement(Row, {
34291
- label: t("WS_BANK_ACCOUNT_NO"),
34292
- text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
34293
33594
  }))), /*#__PURE__*/React.createElement(CardHeader, {
34294
33595
  styles: {
34295
33596
  fontSize: "28px"
@@ -34342,16 +33643,22 @@ const WSApplicationDetails = () => {
34342
33643
  marginBottom: "20px"
34343
33644
  }
34344
33645
  }) : null)));
34345
- })), (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
34346
- to: {
34347
- pathname: `/digit-ui/citizen/payment/my-bills/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService}/${stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+")}`,
34348
- search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155.connectionHolders) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150.connectionHolders) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
34349
- state: {
34350
- fromApplicationDetails: true
34351
- }
33646
+ })), (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
33647
+ style: {
33648
+ marginTop: "10px"
34352
33649
  }
34353
33650
  }, /*#__PURE__*/React.createElement(SubmitBar, {
34354
- label: t("MAKE_PAYMENT")
33651
+ label: t("MAKE_PAYMENT"),
33652
+ onSubmit: () => {
33653
+ var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
33654
+ history.push({
33655
+ pathname: `/digit-ui/citizen/payment/my-bills/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService}/${stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+")}`,
33656
+ search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155.connectionHolders) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150.connectionHolders) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
33657
+ state: {
33658
+ fromApplicationDetails: true
33659
+ }
33660
+ });
33661
+ }
34355
33662
  })) : null, !(data !== null && data !== void 0 && (_data$WaterConnection157 = data.WaterConnection) !== null && _data$WaterConnection157 !== void 0 && (_data$WaterConnection158 = _data$WaterConnection157[0]) !== null && _data$WaterConnection158 !== void 0 && _data$WaterConnection158.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection159 = data.WaterConnection) !== null && _data$WaterConnection159 !== void 0 && (_data$WaterConnection160 = _data$WaterConnection159[0]) !== null && _data$WaterConnection160 !== void 0 && _data$WaterConnection160.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect152 = data.SewerageConnections) !== null && _data$SewerageConnect152 !== void 0 && (_data$SewerageConnect153 = _data$SewerageConnect152[0]) !== null && _data$SewerageConnect153 !== void 0 && _data$SewerageConnect153.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect154 = data.SewerageConnections) !== null && _data$SewerageConnect154 !== void 0 && (_data$SewerageConnect155 = _data$SewerageConnect154[0]) !== null && _data$SewerageConnect155 !== void 0 && _data$SewerageConnect155.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
34356
33663
  to: {
34357
33664
  pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : (_data$WaterConnection162 = _data$WaterConnection161[0]) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.tenantId)}`,
@@ -34791,7 +34098,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
34791
34098
  };
34792
34099
 
34793
34100
  const ConnectionDetails$5 = () => {
34794
- var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Water2, _connectionData$Sewer, _connectionData$Sewer2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state42, _state43, _state44, _state44$connectionHo, _state44$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state45, _state45$additionalDe, _state46, _state46$additionalDe, _state47, _state47$additionalDe, _state48, _state48$additionalDe, _state49, _state49$additionalDe, _state50, _state51, _state54, _state55, _state56, _state57, _state58, _state59, _paymentDetails$data17, _paymentDetails$data18;
34101
+ var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Water2, _connectionData$Sewer, _connectionData$Sewer2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state42, _state43, _state44, _state44$connectionHo, _state44$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state45, _state46, _state49, _state50, _state51, _state52, _state53, _state54, _paymentDetails$data17, _paymentDetails$data18;
34795
34102
  const {
34796
34103
  t
34797
34104
  } = useTranslation();
@@ -35454,39 +34761,15 @@ const ConnectionDetails$5 = () => {
35454
34761
  isArray: false
35455
34762
  }
35456
34763
  }
35457
- }))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), /*#__PURE__*/React.createElement(CardHeader, {
35458
- styles: {
35459
- fontSize: "28px"
35460
- }
35461
- }, t("WS_COMMON_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
35462
- className: "border-none",
35463
- label: t("WS_BANK_NAME"),
35464
- text: ((_state45 = state) === null || _state45 === void 0 ? void 0 : (_state45$additionalDe = _state45.additionalDetails) === null || _state45$additionalDe === void 0 ? void 0 : _state45$additionalDe.bankName) || "NA"
35465
- }), /*#__PURE__*/React.createElement(Row, {
35466
- className: "border-none",
35467
- label: t("WS_BANK_BRANCH_NAME"),
35468
- text: ((_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$additionalDe = _state46.additionalDetails) === null || _state46$additionalDe === void 0 ? void 0 : _state46$additionalDe.bankBranchName) || "NA"
35469
- }), /*#__PURE__*/React.createElement(Row, {
35470
- className: "border-none",
35471
- label: t("WS_BANK_ACCOUNT_NUMBER"),
35472
- text: ((_state47 = state) === null || _state47 === void 0 ? void 0 : (_state47$additionalDe = _state47.additionalDetails) === null || _state47$additionalDe === void 0 ? void 0 : _state47$additionalDe.accountNumber) || ((_state48 = state) === null || _state48 === void 0 ? void 0 : (_state48$additionalDe = _state48.additionalDetails) === null || _state48$additionalDe === void 0 ? void 0 : _state48$additionalDe.bankAccountNumber) || "NA"
35473
- }), /*#__PURE__*/React.createElement(Row, {
35474
- className: "border-none",
35475
- label: t("WS_BANK_IFSC_CODE"),
35476
- text: ((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : _state49$additionalDe.ifscCode) || "NA"
35477
- })), /*#__PURE__*/React.createElement(CardHeader, {
35478
- styles: {
35479
- fontSize: "28px"
35480
- }
35481
- }, t("WS_COMMON_BANK_DETAILS")), ((_state50 = state) === null || _state50 === void 0 ? void 0 : _state50.documents) && ((_state51 = state) === null || _state51 === void 0 ? void 0 : _state51.documents.map((doc, index) => {
35482
- var _doc$documentType, _state52, _state53;
34764
+ }))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), ((_state45 = state) === null || _state45 === void 0 ? void 0 : _state45.documents) && ((_state46 = state) === null || _state46 === void 0 ? void 0 : _state46.documents.map((doc, index) => {
34765
+ var _doc$documentType, _state47, _state48;
35483
34766
  return /*#__PURE__*/React.createElement("div", {
35484
34767
  key: `doc-${index}`
35485
34768
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
35486
- value: (_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.documents,
34769
+ value: (_state47 = state) === null || _state47 === void 0 ? void 0 : _state47.documents,
35487
34770
  Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
35488
34771
  index: index
35489
- }), ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
34772
+ }), ((_state48 = state) === null || _state48 === void 0 ? void 0 : _state48.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
35490
34773
  style: {
35491
34774
  color: "#cccccc",
35492
34775
  backgroundColor: "#cccccc",
@@ -35495,7 +34778,7 @@ const ConnectionDetails$5 = () => {
35495
34778
  marginBottom: "20px"
35496
34779
  }
35497
34780
  }) : null)));
35498
- })), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement("div", {
34781
+ })), (((_state49 = state) === null || _state49 === void 0 ? void 0 : _state49.status) !== "inactive" || ((_state50 = state) === null || _state50 === void 0 ? void 0 : _state50.applicationStatus) !== "Inactive" || ((_state51 = state) === null || _state51 === void 0 ? void 0 : _state51.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement("div", {
35499
34782
  style: {
35500
34783
  display: "flex",
35501
34784
  justifyContent: "flex-end",
@@ -35505,7 +34788,7 @@ const ConnectionDetails$5 = () => {
35505
34788
  }, /*#__PURE__*/React.createElement(SubmitBar, {
35506
34789
  label: t("WS_DISCONNECTION_BUTTON"),
35507
34790
  onSubmit: onActionSelect
35508
- })) : ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.status) == "Inactive" && ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.isDisconnectionTemporary) && /*#__PURE__*/React.createElement("div", {
34791
+ })) : ((_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.status) == "Inactive" && ((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.isDisconnectionTemporary) && /*#__PURE__*/React.createElement("div", {
35509
34792
  style: {
35510
34793
  display: "flex",
35511
34794
  justifyContent: "flex-end",
@@ -35528,8 +34811,8 @@ const ConnectionDetails$5 = () => {
35528
34811
  actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
35529
34812
  hideSubmit: true,
35530
34813
  actionSingleSubmit: () => {
35531
- var _state60, _state61;
35532
- history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state60 = state) === null || _state60 === void 0 ? void 0 : _state60.connectionNo)}/${tenantId}?consumerCode=${(_state61 = state) === null || _state61 === void 0 ? void 0 : _state61.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
34814
+ var _state55, _state56;
34815
+ history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.connectionNo)}/${tenantId}?consumerCode=${(_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
35533
34816
  setshowModal(false);
35534
34817
  },
35535
34818
  popupStyles: mobileView ? {
@@ -36968,7 +36251,6 @@ const CheckPage = _ref => {
36968
36251
  const useDetails = (value === null || value === void 0 ? void 0 : (_value$waterConnectio = value.waterConnection) === null || _value$waterConnectio === void 0 ? void 0 : _value$waterConnectio.useDetails) || {};
36969
36252
  const djbEmployee = (value === null || value === void 0 ? void 0 : value.djbEmployee) || {};
36970
36253
  const disability = (value === null || value === void 0 ? void 0 : value.disability) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
36971
- const bankDetails = (value === null || value === void 0 ? void 0 : value.bankDetails) || {};
36972
36254
  const additionalDetails = {};
36973
36255
  const checkForNA = val => val ? val : "CS_NA";
36974
36256
  const onEdit = () => {};
@@ -37283,26 +36565,6 @@ const CheckPage = _ref => {
37283
36565
  }, /*#__PURE__*/React.createElement(Row, {
37284
36566
  label: t("WS_DIVYANGJAN"),
37285
36567
  text: `${disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
37286
- })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
37287
- style: {
37288
- marginTop: "10px",
37289
- marginBottom: "30px"
37290
- }
37291
- }, /*#__PURE__*/React.createElement(Row, {
37292
- label: t("WS_NAME_OF_BANK"),
37293
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
37294
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
37295
- onClick: onEdit
37296
- })
37297
- }), /*#__PURE__*/React.createElement(Row, {
37298
- label: t("WS_NAME_OF_BRANCH"),
37299
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
37300
- }), /*#__PURE__*/React.createElement(Row, {
37301
- label: t("WS_IFSC_CODE"),
37302
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
37303
- }), /*#__PURE__*/React.createElement(Row, {
37304
- label: t("WS_BANK_ACCOUNT_NO"),
37305
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
37306
36568
  })), /*#__PURE__*/React.createElement(Card, {
37307
36569
  style: {
37308
36570
  paddingRight: "16px"
@@ -38802,9 +38064,9 @@ const WNSMyBills = _ref => {
38802
38064
  }, t("CS_BILLS_TEXT_NO_BILLS_FOUND")));
38803
38065
  };
38804
38066
  WNSMyBills.propTypes = {
38805
- template: propTypes$1.any,
38806
- header: propTypes$1.string,
38807
- actionButtonLabel: propTypes$1.string
38067
+ template: propTypes.any,
38068
+ header: propTypes.string,
38069
+ actionButtonLabel: propTypes.string
38808
38070
  };
38809
38071
  WNSMyBills.defaultProps = {
38810
38072
  template: [],
@@ -38866,6 +38128,15 @@ const WSInfoPage = () => {
38866
38128
  const [isOtpSending, setIsOtpSending] = useState(false);
38867
38129
  const [isOtpVerifying, setIsOtpVerifying] = useState(false);
38868
38130
  const [showToast, setShowToast] = useState(null);
38131
+ const [isMobileVerified, setIsMobileVerified] = useState(false);
38132
+ const [timeLeft, setTimeLeft] = useState(0);
38133
+ useEffect(() => {
38134
+ let timer;
38135
+ if (timeLeft > 0) {
38136
+ timer = setTimeout(() => setTimeLeft(timeLeft - 1), 1000);
38137
+ }
38138
+ return () => clearTimeout(timer);
38139
+ }, [timeLeft]);
38869
38140
  useEffect(() => {
38870
38141
  sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
38871
38142
  }, []);
@@ -38884,7 +38155,7 @@ const WSInfoPage = () => {
38884
38155
  mobileNumber: mobileNumberToSearch
38885
38156
  },
38886
38157
  tenantId: tenantId,
38887
- enabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && (mobileNumberToSearch === null || mobileNumberToSearch === void 0 ? void 0 : mobileNumberToSearch.length) === 10 ? true : false
38158
+ enabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && (mobileNumberToSearch === null || mobileNumberToSearch === void 0 ? void 0 : mobileNumberToSearch.length) === 10 && isMobileVerified ? true : false
38888
38159
  });
38889
38160
  const radioOptions = [{
38890
38161
  code: "YES",
@@ -38894,6 +38165,7 @@ const WSInfoPage = () => {
38894
38165
  i18nKey: "TL_COMMON_NO"
38895
38166
  }];
38896
38167
  const proceedToNext = () => {
38168
+ sessionStorage.removeItem("Digit.PT_CREATE_EMP_WS_NEW_FORM");
38897
38169
  const isEmployee = window.location.href.includes("/employee");
38898
38170
  const baseUrl = isEmployee ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
38899
38171
  if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
@@ -38935,7 +38207,7 @@ const WSInfoPage = () => {
38935
38207
  setIsOtpSending(false);
38936
38208
  setShowToast({
38937
38209
  key: "error",
38938
- message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$fields = errObj.fields) === null || _errObj$fields === void 0 ? void 0 : (_errObj$fields$ = _errObj$fields[0]) === null || _errObj$fields$ === void 0 ? void 0 : _errObj$fields$.message) || (errObj === null || errObj === void 0 ? void 0 : errObj.message) || "Failed to send OTP"
38210
+ message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$fields = errObj.fields) === null || _errObj$fields === void 0 ? void 0 : (_errObj$fields$ = _errObj$fields[0]) === null || _errObj$fields$ === void 0 ? void 0 : _errObj$fields$.message) || (errObj === null || errObj === void 0 ? void 0 : errObj.message) || t("WS_FAILED_TO_SEND_OTP") || "Failed to send OTP"
38939
38211
  });
38940
38212
  return;
38941
38213
  }
@@ -38945,21 +38217,22 @@ const WSInfoPage = () => {
38945
38217
  setIsOtpSending(false);
38946
38218
  setShowToast({
38947
38219
  key: "error",
38948
- message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$ = errObj[0]) === null || _errObj$ === void 0 ? void 0 : _errObj$.message) || "Failed to send OTP"
38220
+ message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$ = errObj[0]) === null || _errObj$ === void 0 ? void 0 : _errObj$.message) || t("WS_FAILED_TO_SEND_OTP") || "Failed to send OTP"
38949
38221
  });
38950
38222
  return;
38951
38223
  }
38952
38224
  setIsOtpSending(false);
38953
38225
  setShowOtpVerification(true);
38226
+ setTimeLeft(30);
38954
38227
  setShowToast({
38955
38228
  key: "success",
38956
- message: "OTP sent successfully!"
38229
+ message: t("PT_SEC_OTP_SENT_SUCEESS") || "OTP sent successfully!"
38957
38230
  });
38958
38231
  });
38959
38232
  }, function (err) {
38960
38233
  var _err$response, _err$response$data, _err$response2, _err$response2$data;
38961
38234
  setIsOtpSending(false);
38962
- let errMsg = "Failed to send OTP";
38235
+ let errMsg = t("WS_FAILED_TO_SEND_OTP") || "Failed to send OTP";
38963
38236
  if (err !== null && err !== void 0 && (_err$response = err.response) !== null && _err$response !== void 0 && (_err$response$data = _err$response.data) !== null && _err$response$data !== void 0 && _err$response$data.error) {
38964
38237
  var _err$response$data$er, _err$response$data$er2, _err$response$data$er3, _err$response$data$er4;
38965
38238
  errMsg = ((_err$response$data$er = err.response.data.error) === null || _err$response$data$er === void 0 ? void 0 : (_err$response$data$er2 = _err$response$data$er.fields) === null || _err$response$data$er2 === void 0 ? void 0 : (_err$response$data$er3 = _err$response$data$er2[0]) === null || _err$response$data$er3 === void 0 ? void 0 : _err$response$data$er3.message) || ((_err$response$data$er4 = err.response.data.error) === null || _err$response$data$er4 === void 0 ? void 0 : _err$response$data$er4.message) || errMsg;
@@ -38987,7 +38260,7 @@ const WSInfoPage = () => {
38987
38260
  if (!otp || otp.length < 6) {
38988
38261
  setShowToast({
38989
38262
  key: "warning",
38990
- message: "Please enter a valid 6-digit OTP"
38263
+ message: t("WS_PLEASE_ENTER_VALID_OTP") || "Please enter a valid 6-digit OTP"
38991
38264
  });
38992
38265
  return Promise.resolve();
38993
38266
  }
@@ -39018,14 +38291,15 @@ const WSInfoPage = () => {
39018
38291
  setIsOtpVerifying(false);
39019
38292
  setShowToast({
39020
38293
  key: "success",
39021
- message: "OTP verified successfully!"
38294
+ message: t("WS_OTP_VERIFIED_SUCCESSFULLY") || "OTP verified successfully!"
39022
38295
  });
39023
- proceedToNext();
38296
+ setShowOtpVerification(false);
38297
+ setIsMobileVerified(true);
39024
38298
  });
39025
38299
  }, function (err) {
39026
38300
  var _err$response3, _err$response3$data, _err$response4, _err$response4$data;
39027
38301
  setIsOtpVerifying(false);
39028
- let errMsg = err.message || "Failed to verify OTP";
38302
+ let errMsg = err.message || t("WS_FAILED_TO_VERIFY_OTP") || "Failed to verify OTP";
39029
38303
  if (err !== null && err !== void 0 && (_err$response3 = err.response) !== null && _err$response3 !== void 0 && (_err$response3$data = _err$response3.data) !== null && _err$response3$data !== void 0 && _err$response3$data.error) {
39030
38304
  var _err$response$data$er5, _err$response$data$er6, _err$response$data$er7, _err$response$data$er8;
39031
38305
  errMsg = ((_err$response$data$er5 = err.response.data.error) === null || _err$response$data$er5 === void 0 ? void 0 : (_err$response$data$er6 = _err$response$data$er5.fields) === null || _err$response$data$er6 === void 0 ? void 0 : (_err$response$data$er7 = _err$response$data$er6[0]) === null || _err$response$data$er7 === void 0 ? void 0 : _err$response$data$er7.message) || ((_err$response$data$er8 = err.response.data.error) === null || _err$response$data$er8 === void 0 ? void 0 : _err$response$data$er8.message) || errMsg;
@@ -39050,7 +38324,14 @@ const WSInfoPage = () => {
39050
38324
  if (e.stopPropagation) e.stopPropagation();
39051
38325
  }
39052
38326
  if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
39053
- handleSendOtp(e);
38327
+ if (!isMobileVerified) {
38328
+ setShowToast({
38329
+ key: "warning",
38330
+ message: t("WS_PLEASE_VERIFY_MOBILE_NUMBER") || "Please verify mobile number first"
38331
+ });
38332
+ return;
38333
+ }
38334
+ proceedToNext();
39054
38335
  } else if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty) {
39055
38336
  return;
39056
38337
  } else {
@@ -39065,72 +38346,6 @@ const WSInfoPage = () => {
39065
38346
  ...prop,
39066
38347
  displayName: `${prop.propertyId} - ${getAddress$1(prop.address, t)}`
39067
38348
  }))) || [];
39068
- if (showOtpVerification) {
39069
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("form", {
39070
- onSubmit: handleVerifyOtp
39071
- }, /*#__PURE__*/React.createElement(CardHeader, null, t("WS_VERIFY_OTP_HEADER") || "Verify OTP"), /*#__PURE__*/React.createElement("div", {
39072
- style: {
39073
- marginBottom: "24px"
39074
- }
39075
- }, /*#__PURE__*/React.createElement(Label, null, t("WS_ENTER_OTP_SENT_TO") || "Enter OTP sent to", " +91 ", getMaskedPhone(mobileNumberToSearch), " *"), /*#__PURE__*/React.createElement(TextInput, {
39076
- t: t,
39077
- type: "text",
39078
- inputMode: "numeric",
39079
- pattern: "[0-9]*",
39080
- isMandatory: false,
39081
- value: otp,
39082
- maxLength: 6,
39083
- onChange: e => setOtp(e.target.value.replace(/\D/g, "").slice(0, 6)),
39084
- onKeyDown: e => {
39085
- if (["-", "+", "e", "E", "."].includes(e.key)) e.preventDefault();
39086
- },
39087
- placeholder: t("WS_ENTER_6_DIGIT_OTP") || "Enter 6-digit OTP",
39088
- style: {
39089
- width: "100%",
39090
- maxWidth: "300px"
39091
- }
39092
- })), /*#__PURE__*/React.createElement("div", {
39093
- style: {
39094
- display: "flex",
39095
- gap: "16px",
39096
- marginBottom: "24px"
39097
- }
39098
- }, /*#__PURE__*/React.createElement("button", {
39099
- type: "button",
39100
- onClick: handleSendOtp,
39101
- disabled: isOtpSending,
39102
- style: {
39103
- color: "#f47738",
39104
- background: "none",
39105
- border: "none",
39106
- cursor: "pointer",
39107
- fontWeight: "bold",
39108
- textDecoration: "underline"
39109
- }
39110
- }, isOtpSending ? t("WS_SENDING_OTP") || "Sending..." : t("WS_RESEND_OTP") || "Resend OTP"), /*#__PURE__*/React.createElement("button", {
39111
- type: "button",
39112
- onClick: () => setShowOtpVerification(false),
39113
- style: {
39114
- color: "#f47738",
39115
- background: "none",
39116
- border: "none",
39117
- cursor: "pointer",
39118
- fontWeight: "bold",
39119
- textDecoration: "underline"
39120
- }
39121
- }, t("CS_COMMON_CANCEL") || "Cancel")), /*#__PURE__*/React.createElement(SubmitBar, {
39122
- label: t("WS_VERIFY_OTP_AND_PROCEED") || "Verify & Proceed",
39123
- onSubmit: handleVerifyOtp,
39124
- disabled: otp.length < 6 || isOtpVerifying,
39125
- submit: true
39126
- }))), showToast && /*#__PURE__*/React.createElement(Toast, {
39127
- error: showToast.key === "error",
39128
- warning: showToast.key === "warning",
39129
- label: t(showToast.message),
39130
- onClose: () => setShowToast(null),
39131
- isDleteBtn: true
39132
- }));
39133
- }
39134
38349
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t("WS_COMMON_APPL_NEW_CONNECTION")), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
39135
38350
  style: {
39136
38351
  margin: "0px",
@@ -39162,30 +38377,7 @@ const WSInfoPage = () => {
39162
38377
  display: "flex",
39163
38378
  gap: "24px"
39164
38379
  }
39165
- })), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && /*#__PURE__*/React.createElement("div", {
39166
- style: {
39167
- marginBottom: "24px"
39168
- }
39169
- }, !isEmployee && /*#__PURE__*/React.createElement("div", {
39170
- style: {
39171
- marginBottom: "16px"
39172
- }
39173
- }, /*#__PURE__*/React.createElement(Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, {
39174
- t: t,
39175
- type: "number",
39176
- isMandatory: false,
39177
- name: "mobileNumber",
39178
- value: searchMobileNumber,
39179
- onChange: e => {
39180
- const val = e.target.value.replace(/\D/g, "").slice(0, 10);
39181
- setSearchMobileNumber(val);
39182
- setSelectedProperty(null);
39183
- setShowOtpVerification(false);
39184
- setOtp("");
39185
- },
39186
- placeholder: t("Enter mobile number"),
39187
- maxLength: 10
39188
- })), isEmployee && /*#__PURE__*/React.createElement("div", {
38380
+ })), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
39189
38381
  style: {
39190
38382
  display: "flex",
39191
38383
  flexDirection: "column",
@@ -39194,39 +38386,59 @@ const WSInfoPage = () => {
39194
38386
  }
39195
38387
  }, /*#__PURE__*/React.createElement("div", {
39196
38388
  style: {
39197
- display: "flex",
38389
+ display: "grid",
38390
+ gridTemplateColumns: "1fr 1fr",
39198
38391
  gap: "24px",
39199
- alignItems: "flex-end"
38392
+ alignItems: "start"
38393
+ }
38394
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React.createElement("div", {
38395
+ style: {
38396
+ display: "flex",
38397
+ gap: "16px",
38398
+ alignItems: "center"
39200
38399
  }
39201
38400
  }, /*#__PURE__*/React.createElement("div", {
39202
38401
  style: {
39203
38402
  flex: 1
39204
38403
  }
39205
- }, /*#__PURE__*/React.createElement(Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, {
38404
+ }, /*#__PURE__*/React.createElement(TextInput, {
39206
38405
  t: t,
39207
38406
  type: "number",
39208
38407
  isMandatory: false,
39209
38408
  name: "mobileNumber",
39210
38409
  value: searchMobileNumber,
39211
38410
  onChange: e => {
39212
- const val = e.target.value;
39213
- if (val.length <= 10) {
39214
- setSearchMobileNumber(val);
39215
- setSelectedProperty(null);
39216
- setShowOtpVerification(false);
39217
- setOtp("");
39218
- }
38411
+ const val = e.target.value.replace(/\D/g, "").slice(0, 10);
38412
+ setSearchMobileNumber(val);
38413
+ setSelectedProperty(null);
38414
+ setShowOtpVerification(false);
38415
+ setOtp("");
38416
+ setIsMobileVerified(false);
39219
38417
  },
39220
- placeholder: t("Enter mobile number"),
39221
- maxLength: 10
39222
- })), /*#__PURE__*/React.createElement("div", {
38418
+ placeholder: t("WS_ENTER_MOBILE_NUMBER") || "Enter mobile number",
38419
+ maxLength: 10,
38420
+ disabled: isMobileVerified
38421
+ })), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && !isMobileVerified && !showOtpVerification && /*#__PURE__*/React.createElement("button", {
38422
+ type: "button",
38423
+ onClick: handleSendOtp,
38424
+ disabled: isOtpSending,
39223
38425
  style: {
39224
- flex: 1
38426
+ padding: "8px 16px",
38427
+ border: "1px solid #1a67a3",
38428
+ background: "white",
38429
+ color: "#1a67a3",
38430
+ borderRadius: "4px",
38431
+ cursor: "pointer",
38432
+ fontWeight: "bold",
38433
+ whiteSpace: "nowrap"
38434
+ }
38435
+ }, isOtpSending ? t("WS_SENDING_OTP") || "Sending..." : t("PTUPNO_SENDOTP") || "Send OTP"))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Label, null, t("WS_SELECT_EXISTING_PROPERTY")), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
38436
+ style: {
38437
+ display: "flex",
38438
+ flexDirection: "column",
38439
+ gap: "8px"
39225
38440
  }
39226
- }, /*#__PURE__*/React.createElement(Label, null, t("WS_SELECT_EXISTING_PROPERTY")), /*#__PURE__*/React.createElement("div", {
39227
- className: "field"
39228
38441
  }, /*#__PURE__*/React.createElement(Dropdown, {
39229
- className: "form-field",
39230
38442
  option: propertyOptions,
39231
38443
  optionKey: "displayName",
39232
38444
  id: "propertyId",
@@ -39238,51 +38450,125 @@ const WSInfoPage = () => {
39238
38450
  },
39239
38451
  t: t,
39240
38452
  placeholder: t("PT_SELECT_PROPERTY"),
39241
- disable: isLoading || propertyOptions.length === 0
39242
- })))), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && !isLoading && propertyOptions.length === 0 && /*#__PURE__*/React.createElement("div", {
38453
+ disable: !isMobileVerified || propertyOptions.length === 0
38454
+ }), propertyOptions.length > 0 && /*#__PURE__*/React.createElement("span", {
38455
+ style: {
38456
+ fontSize: "14px",
38457
+ color: "#505A5F"
38458
+ }
38459
+ }, t("WS_PROPERTY_AUTOFILL_MSG"))))), showOtpVerification && !isMobileVerified && /*#__PURE__*/React.createElement("div", {
38460
+ style: {
38461
+ border: "1px solid #d6d5d4",
38462
+ borderRadius: "4px",
38463
+ background: "#f8f9fa",
38464
+ padding: "12px"
38465
+ }
38466
+ }, /*#__PURE__*/React.createElement("div", {
38467
+ style: {
38468
+ fontWeight: "bold",
38469
+ fontSize: "18px",
38470
+ marginBottom: "8px"
38471
+ }
38472
+ }, t("WS_VERIFY_OTP_HEADER") || "OTP Verification"), /*#__PURE__*/React.createElement("div", {
38473
+ style: {
38474
+ color: "#505A5F",
38475
+ marginBottom: "16px"
38476
+ }
38477
+ }, t("WS_ENTER_OTP_SENT_TO") || "Enter the 6-digit OTP sent to", " ", getMaskedPhone(searchMobileNumber)), /*#__PURE__*/React.createElement("div", {
39243
38478
  style: {
39244
38479
  display: "flex",
39245
- flexDirection: "column",
39246
- gap: "16px"
38480
+ flexWrap: "wrap",
38481
+ gap: "15px",
38482
+ alignItems: "center"
39247
38483
  }
39248
- }, /*#__PURE__*/React.createElement("span", {
38484
+ }, /*#__PURE__*/React.createElement(OTPInput, {
39249
38485
  style: {
39250
- color: "#d63031",
38486
+ marginBottom: "0px"
38487
+ },
38488
+ length: 6,
38489
+ onChange: setOtp,
38490
+ value: otp
38491
+ }), /*#__PURE__*/React.createElement("button", {
38492
+ type: "button",
38493
+ onClick: handleVerifyOtp,
38494
+ disabled: otp.length < 6 || isOtpVerifying,
38495
+ style: {
38496
+ padding: "6px 20px",
38497
+ background: otp.length < 6 || isOtpVerifying ? "#ccc" : "#1a67a3",
38498
+ color: "white",
38499
+ border: "none",
38500
+ borderRadius: "4px",
38501
+ cursor: otp.length < 6 || isOtpVerifying ? "not-allowed" : "pointer",
39251
38502
  fontWeight: "bold"
39252
38503
  }
39253
- }, t("WS_NO_PROPERTY_FOUND_ON_THIS_NUMBER") || "No property found on this number, please create the property first."), /*#__PURE__*/React.createElement("span", {
39254
- onClick: handleCreateProperty
39255
- }, /*#__PURE__*/React.createElement("button", {
39256
- className: "submit-bar",
38504
+ }, isOtpVerifying ? t("WS_VERIFYING_OTP") || "Verifying..." : t("WS_VERIFY_OTP_AND_PROCEED") || "Verify OTP"), /*#__PURE__*/React.createElement("button", {
39257
38505
  type: "button",
38506
+ onClick: handleSendOtp,
38507
+ disabled: timeLeft > 0 || isOtpSending,
39258
38508
  style: {
39259
- color: "white",
39260
- margin: 0
38509
+ padding: "6px 20px",
38510
+ background: "white",
38511
+ color: timeLeft > 0 || isOtpSending ? "#ccc" : "#1a67a3",
38512
+ border: `1px solid ${timeLeft > 0 || isOtpSending ? "#ccc" : "#1a67a3"}`,
38513
+ borderRadius: "4px",
38514
+ cursor: timeLeft > 0 || isOtpSending ? "not-allowed" : "pointer",
38515
+ fontWeight: "bold"
38516
+ }
38517
+ }, timeLeft > 0 ? `${t("WS_RESEND_OTP") || "Resend OTP"} (00:${timeLeft < 10 ? `0${timeLeft}` : timeLeft})` : t("WS_RESEND_OTP") || "Resend OTP")), timeLeft > 0 && /*#__PURE__*/React.createElement("div", {
38518
+ style: {
38519
+ marginTop: "12px",
38520
+ color: "#505A5F",
38521
+ fontSize: "14px"
39261
38522
  }
39262
- }, t("CPT_CREATE_PROPERTY"))))), !isEmployee && (isLoading || propertyOptions.length > 0) && /*#__PURE__*/React.createElement(Label, null, t("WS_SELECT_EXISTING_PROPERTY")), isLoading && !isEmployee ? /*#__PURE__*/React.createElement(Loader, null) : !isEmployee ? propertyOptions.length > 0 ? /*#__PURE__*/React.createElement("div", {
38523
+ }, t("WS_DIDNT_RECEIVE_OTP_RESEND") || "Didn't receive OTP? You can resend after", " ", timeLeft, " ", t("WS_SECONDS") || "seconds", ".")), isMobileVerified && /*#__PURE__*/React.createElement("div", {
39263
38524
  style: {
39264
38525
  display: "flex",
39265
- flexDirection: "column",
38526
+ justifyContent: "space-between",
38527
+ alignItems: "center",
38528
+ background: "#d4edda",
38529
+ border: "1px solid #c3e6cb",
38530
+ color: "#155724",
38531
+ padding: "12px 16px",
38532
+ borderRadius: "4px"
38533
+ }
38534
+ }, /*#__PURE__*/React.createElement("div", {
38535
+ style: {
38536
+ display: "flex",
38537
+ alignItems: "center",
39266
38538
  gap: "8px"
39267
38539
  }
39268
- }, /*#__PURE__*/React.createElement(Dropdown, {
39269
- option: propertyOptions,
39270
- optionKey: "displayName",
39271
- id: "propertyId",
39272
- selected: selectedProperty,
39273
- select: val => {
39274
- setSelectedProperty(val);
39275
- setShowOtpVerification(false);
38540
+ }, /*#__PURE__*/React.createElement("span", {
38541
+ style: {
38542
+ background: "#28a745",
38543
+ color: "white",
38544
+ borderRadius: "50%",
38545
+ width: "24px",
38546
+ height: "24px",
38547
+ display: "inline-flex",
38548
+ justifyContent: "center",
38549
+ alignItems: "center",
38550
+ fontWeight: "bold"
38551
+ }
38552
+ }, "\u2713"), /*#__PURE__*/React.createElement("span", {
38553
+ style: {
38554
+ fontWeight: "bold"
38555
+ }
38556
+ }, t("WS_MOBILE_VERIFIED_SUCCESSFULLY") || "Mobile number verified successfully!")), /*#__PURE__*/React.createElement("button", {
38557
+ type: "button",
38558
+ onClick: () => {
38559
+ setIsMobileVerified(false);
39276
38560
  setOtp("");
38561
+ setShowOtpVerification(false);
39277
38562
  },
39278
- t: t,
39279
- placeholder: t("PT_SELECT_PROPERTY")
39280
- }), /*#__PURE__*/React.createElement("span", {
39281
38563
  style: {
39282
- fontSize: "14px",
39283
- color: "#505A5F"
38564
+ color: "#1a67a3",
38565
+ background: "none",
38566
+ border: "none",
38567
+ cursor: "pointer",
38568
+ fontWeight: "bold",
38569
+ textDecoration: "underline"
39284
38570
  }
39285
- }, t("WS_PROPERTY_AUTOFILL_MSG"))) : /*#__PURE__*/React.createElement("div", {
38571
+ }, t("WS_CHANGE_NUMBER") || "Change Number")), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && isMobileVerified && !isLoading && propertyOptions.length === 0 && /*#__PURE__*/React.createElement("div", {
39286
38572
  style: {
39287
38573
  display: "flex",
39288
38574
  flexDirection: "column",
@@ -39303,7 +38589,7 @@ const WSInfoPage = () => {
39303
38589
  color: "white",
39304
38590
  margin: 0
39305
38591
  }
39306
- }, t("CPT_CREATE_PROPERTY")))) : null), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" && /*#__PURE__*/React.createElement("div", {
38592
+ }, t("CPT_CREATE_PROPERTY")))))), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" && /*#__PURE__*/React.createElement("div", {
39307
38593
  style: {
39308
38594
  marginBottom: "24px",
39309
38595
  display: "flex",
@@ -39319,7 +38605,7 @@ const WSInfoPage = () => {
39319
38605
  color: "white",
39320
38606
  margin: 0
39321
38607
  }
39322
- }, t("CPT_CREATE_PROPERTY")))), /*#__PURE__*/React.createElement(CardSubHeader, {
38608
+ }, t("CPT_CREATE_PROPERTY")))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, {
39323
38609
  style: {
39324
38610
  marginTop: "0",
39325
38611
  marginBottom: "0"
@@ -39379,19 +38665,7 @@ const WSInfoPage = () => {
39379
38665
  marginBottom: "24px",
39380
38666
  lineHeight: "2"
39381
38667
  }
39382
- }, /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React.createElement("li", null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_DESIGNATION"))), /*#__PURE__*/React.createElement(CardSubHeader, {
39383
- style: {
39384
- marginTop: "0",
39385
- marginBottom: "0"
39386
- }
39387
- }, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement("ul", {
39388
- style: {
39389
- listStyleType: "disc",
39390
- marginLeft: "20px",
39391
- marginBottom: "24px",
39392
- lineHeight: "2"
39393
- }
39394
- }, /*#__PURE__*/React.createElement("li", null, t("WS_NAME_OF_BANK")), /*#__PURE__*/React.createElement("li", null, t("WS_NAME_OF_BRANCH")), /*#__PURE__*/React.createElement("li", null, t("WS_IFSC_CODE")), /*#__PURE__*/React.createElement("li", null, t("WS_BANK_ACCOUNT_NO"))), /*#__PURE__*/React.createElement("div", {
38668
+ }, /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React.createElement("li", null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_DESIGNATION"))), /*#__PURE__*/React.createElement("div", {
39395
38669
  style: {
39396
38670
  display: "flex",
39397
38671
  justifyContent: "space-between",
@@ -39411,7 +38685,7 @@ const WSInfoPage = () => {
39411
38685
  marginBottom: "24px",
39412
38686
  lineHeight: "2"
39413
38687
  }
39414
- }, /*#__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")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_APPLICANT_PHOTOGRAPH"))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement(SubmitBar, {
38688
+ }, /*#__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")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_APPLICANT_PHOTOGRAPH")))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement(SubmitBar, {
39415
38689
  label: t("CS_COMMON_NEXT"),
39416
38690
  onSubmit: () => {},
39417
38691
  disabled: true
@@ -39888,7 +39162,7 @@ const ApplicationBillAmendment = () => {
39888
39162
  style: {
39889
39163
  paddingLeft: "150px"
39890
39164
  }
39891
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Controller, {
39165
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
39892
39166
  name: `${servicev1}_REDUCED_AMOUNT.VALUE`,
39893
39167
  key: `${servicev1}_REDUCED_AMOUNT.VALUE`,
39894
39168
  control: control,
@@ -39923,7 +39197,7 @@ const ApplicationBillAmendment = () => {
39923
39197
  checked: props === null || props === void 0 ? void 0 : props.value
39924
39198
  }));
39925
39199
  }
39926
- }), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Controller, {
39200
+ }), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
39927
39201
  name: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
39928
39202
  key: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
39929
39203
  control: control,
@@ -39974,7 +39248,7 @@ const ApplicationBillAmendment = () => {
39974
39248
  paddingRight: "60px",
39975
39249
  paddingLeft: "150px"
39976
39250
  }
39977
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
39251
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
39978
39252
  disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
39979
39253
  type: "number",
39980
39254
  name: `${servicev1}_REDUCED_AMOUNT.${node.taxHeadCode}`,
@@ -40004,7 +39278,7 @@ const ApplicationBillAmendment = () => {
40004
39278
  style: {
40005
39279
  paddingRight: "60px"
40006
39280
  }
40007
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
39281
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
40008
39282
  disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
40009
39283
  type: "number",
40010
39284
  name: `${servicev1}_ADDITIONAL_AMOUNT.${node.taxHeadCode}`,
@@ -40052,7 +39326,7 @@ const ApplicationBillAmendment = () => {
40052
39326
  paddingRight: "60px",
40053
39327
  paddingLeft: "150px"
40054
39328
  }
40055
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
39329
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
40056
39330
  disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
40057
39331
  name: `${servicev1}_REBATE`,
40058
39332
  inputRef: register()
@@ -40060,11 +39334,11 @@ const ApplicationBillAmendment = () => {
40060
39334
  style: {
40061
39335
  paddingRight: "60px"
40062
39336
  }
40063
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
39337
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
40064
39338
  disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
40065
39339
  name: `${servicev1}_PENALTY`,
40066
39340
  inputRef: register()
40067
- }))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
39341
+ }))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
40068
39342
  style: {
40069
39343
  marginBottom: "16px"
40070
39344
  }
@@ -40445,8 +39719,6 @@ const EMAIL_PATTERN = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;
40445
39719
  const MOBILE_PATTERN = /^[6-9][0-9]{9}$/;
40446
39720
  const NUMBER_PATTERN$2 = /^\d+$/;
40447
39721
  const DECIMAL_PATTERN$2 = /^\d+(\.\d{1,2})?$/;
40448
- const IFSC_PATTERN = /^[A-Z]{4}0[A-Z0-9]{6}$/;
40449
- const ACCOUNT_PATTERN = /^[0-9]{9,18}$/;
40450
39722
  const COLLAPSIBLE_CONTENT_TAB = "__WS_SECTION_CONTENT__";
40451
39723
  const createOption = (code, name) => ({
40452
39724
  code,
@@ -41127,7 +40399,7 @@ const FileUploadField = _ref6 => {
41127
40399
  })))));
41128
40400
  };
41129
40401
  const NewApplication = () => {
41130
- var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
40402
+ var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$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;
41131
40403
  const {
41132
40404
  t
41133
40405
  } = useTranslation();
@@ -41343,10 +40615,6 @@ const NewApplication = () => {
41343
40615
  sectionId: "useDetails",
41344
40616
  route: "use-details",
41345
40617
  actions: "Property & Connection Use Details"
41346
- }, {
41347
- sectionId: "bankDetails",
41348
- route: "bank-details",
41349
- actions: "Bank Details"
41350
40618
  }, {
41351
40619
  sectionId: "documents",
41352
40620
  route: "documents",
@@ -42946,64 +42214,6 @@ const NewApplication = () => {
42946
42214
  }),
42947
42215
  name: "useDetails.hospitalBeds"
42948
42216
  })) : null), /*#__PURE__*/React.createElement(SectionCard, {
42949
- description: "Refund or payment-linked bank account details.",
42950
- isOpen: collapsedSections.bank,
42951
- onToggle: toggleSection,
42952
- sectionKey: "bankDetails",
42953
- title: "Bank Details",
42954
- sectionRef: sectionRefs.bankDetails
42955
- }, /*#__PURE__*/React.createElement(FieldBlock, {
42956
- error: getFieldError("bankDetails.bankName"),
42957
- label: "Name of the Bank",
42958
- required: true
42959
- }, /*#__PURE__*/React.createElement(TextInput, {
42960
- errorStyle: !!getFieldError("bankDetails.bankName"),
42961
- inputRef: register({
42962
- required: "Bank Name is required."
42963
- }),
42964
- name: "bankDetails.bankName"
42965
- })), /*#__PURE__*/React.createElement(FieldBlock, {
42966
- error: getFieldError("bankDetails.branchName"),
42967
- label: "Name of the Branch",
42968
- required: true
42969
- }, /*#__PURE__*/React.createElement(TextInput, {
42970
- errorStyle: !!getFieldError("bankDetails.branchName"),
42971
- inputRef: register({
42972
- required: "Branch Name is required."
42973
- }),
42974
- name: "bankDetails.branchName"
42975
- })), /*#__PURE__*/React.createElement(FieldBlock, {
42976
- error: getFieldError("bankDetails.ifscCode"),
42977
- label: "IFSC Code",
42978
- required: true
42979
- }, /*#__PURE__*/React.createElement(TextInput, {
42980
- errorStyle: !!getFieldError("bankDetails.ifscCode"),
42981
- inputRef: register({
42982
- pattern: {
42983
- value: IFSC_PATTERN,
42984
- message: "Enter a valid IFSC code."
42985
- },
42986
- required: "IFSC Code is required."
42987
- }),
42988
- name: "bankDetails.ifscCode",
42989
- onChange: event => {
42990
- event.target.value = event.target.value.toUpperCase();
42991
- }
42992
- })), /*#__PURE__*/React.createElement(FieldBlock, {
42993
- error: getFieldError("bankDetails.bankAccountNumber"),
42994
- label: "Bank Account No.",
42995
- required: true
42996
- }, /*#__PURE__*/React.createElement(TextInput, {
42997
- errorStyle: !!getFieldError("bankDetails.bankAccountNumber"),
42998
- inputRef: register({
42999
- pattern: {
43000
- value: ACCOUNT_PATTERN,
43001
- message: "Enter a valid bank account number."
43002
- },
43003
- required: "Bank Account Number is required."
43004
- }),
43005
- name: "bankDetails.bankAccountNumber"
43006
- }))), /*#__PURE__*/React.createElement(SectionCard, {
43007
42217
  description: "Documents to be attached. Maximum allowed file size is 5 MB.",
43008
42218
  isOpen: collapsedSections.documents,
43009
42219
  onToggle: toggleSection,
@@ -43522,25 +42732,6 @@ const NewApplication = () => {
43522
42732
  }), /*#__PURE__*/React.createElement(PreviewItem, {
43523
42733
  label: "Water Connection Usage Type",
43524
42734
  value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail11 = formValues.useDetails) === null || _formValues$useDetail11 === void 0 ? void 0 : _formValues$useDetail11.WaterConnectionUsageType
43525
- })), /*#__PURE__*/React.createElement(SectionCard, {
43526
- description: "Banking information as entered in the form.",
43527
- isOpen: collapsedSections.bank,
43528
- onToggle: toggleSection,
43529
- sectionKey: "bank",
43530
- title: "Bank Details",
43531
- onEditClick: () => handleSectionEdit("bankDetails")
43532
- }, /*#__PURE__*/React.createElement(PreviewItem, {
43533
- label: "Name of the Bank",
43534
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai = formValues.bankDetails) === null || _formValues$bankDetai === void 0 ? void 0 : _formValues$bankDetai.bankName
43535
- }), /*#__PURE__*/React.createElement(PreviewItem, {
43536
- label: "Name of the Branch",
43537
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai2 = formValues.bankDetails) === null || _formValues$bankDetai2 === void 0 ? void 0 : _formValues$bankDetai2.branchName
43538
- }), /*#__PURE__*/React.createElement(PreviewItem, {
43539
- label: "IFSC Code",
43540
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai3 = formValues.bankDetails) === null || _formValues$bankDetai3 === void 0 ? void 0 : _formValues$bankDetai3.ifscCode
43541
- }), /*#__PURE__*/React.createElement(PreviewItem, {
43542
- label: "Bank Account No.",
43543
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai4 = formValues.bankDetails) === null || _formValues$bankDetai4 === void 0 ? void 0 : _formValues$bankDetai4.bankAccountNumber
43544
42735
  })), /*#__PURE__*/React.createElement(SectionCard, {
43545
42736
  description: "Uploaded supporting documents.",
43546
42737
  isOpen: collapsedSections.documents,
@@ -44462,12 +43653,12 @@ const configSVApproverApplication = _ref => {
44462
43653
  };
44463
43654
  };
44464
43655
 
44465
- const Heading = props => {
43656
+ const Heading$1 = props => {
44466
43657
  return /*#__PURE__*/React.createElement("h1", {
44467
43658
  className: "heading-m"
44468
43659
  }, props.label);
44469
43660
  };
44470
- const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
43661
+ const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
44471
43662
  xmlns: "http://www.w3.org/2000/svg",
44472
43663
  viewBox: "0 0 24 24",
44473
43664
  fill: "#FFFFFF"
@@ -44477,11 +43668,11 @@ const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
44477
43668
  }), /*#__PURE__*/React.createElement("path", {
44478
43669
  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"
44479
43670
  }));
44480
- const CloseBtn = props => {
43671
+ const CloseBtn$1 = props => {
44481
43672
  return /*#__PURE__*/React.createElement("div", {
44482
43673
  className: "icon-bg-secondary",
44483
43674
  onClick: props.onClick
44484
- }, /*#__PURE__*/React.createElement(Close$1, null));
43675
+ }, /*#__PURE__*/React.createElement(Close$2, null));
44485
43676
  };
44486
43677
  const ActionModal = _ref => {
44487
43678
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -44563,7 +43754,7 @@ const ActionModal = _ref => {
44563
43754
  if (file.size >= 5242880) {
44564
43755
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
44565
43756
  } else {
44566
- const _temp = _catch$1(function () {
43757
+ const _temp = _catch(function () {
44567
43758
  return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
44568
43759
  var _response$data, _response$data$files;
44569
43760
  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) {
@@ -44663,10 +43854,10 @@ const ActionModal = _ref => {
44663
43854
  }
44664
43855
  }, [action, approvers, financialYears, selectedFinancialYear, uploadedFile]);
44665
43856
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
44666
- headerBarMain: /*#__PURE__*/React.createElement(Heading, {
43857
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
44667
43858
  label: t(config.label.heading)
44668
43859
  }),
44669
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
43860
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$1, {
44670
43861
  onClick: closeModal
44671
43862
  }),
44672
43863
  actionCancelLabel: t(config.label.cancel),
@@ -44686,12 +43877,12 @@ const ActionModal = _ref => {
44686
43877
  })) : /*#__PURE__*/React.createElement(Loader, null);
44687
43878
  };
44688
43879
 
44689
- const Heading$1 = props => {
43880
+ const Heading$2 = props => {
44690
43881
  return /*#__PURE__*/React.createElement("h1", {
44691
43882
  className: "heading-m"
44692
43883
  }, props.label);
44693
43884
  };
44694
- const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
43885
+ const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
44695
43886
  xmlns: "http://www.w3.org/2000/svg",
44696
43887
  viewBox: "0 0 24 24",
44697
43888
  fill: "#FFFFFF"
@@ -44701,11 +43892,11 @@ const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
44701
43892
  }), /*#__PURE__*/React.createElement("path", {
44702
43893
  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"
44703
43894
  }));
44704
- const CloseBtn$1 = props => {
43895
+ const CloseBtn$2 = props => {
44705
43896
  return /*#__PURE__*/React.createElement("div", {
44706
43897
  className: "icon-bg-secondary",
44707
43898
  onClick: props.onClick
44708
- }, /*#__PURE__*/React.createElement(Close$2, null));
43899
+ }, /*#__PURE__*/React.createElement(Close$3, null));
44709
43900
  };
44710
43901
  const ActionModal$1 = _ref => {
44711
43902
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -44786,7 +43977,7 @@ const ActionModal$1 = _ref => {
44786
43977
  if (file.size >= 5242880) {
44787
43978
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
44788
43979
  } else {
44789
- const _temp = _catch$1(function () {
43980
+ const _temp = _catch(function () {
44790
43981
  return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
44791
43982
  var _response$data, _response$data$files;
44792
43983
  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) {
@@ -44843,10 +44034,10 @@ const ActionModal$1 = _ref => {
44843
44034
  }
44844
44035
  }, [action, approvers, financialYears, selectedFinancialYear, uploadedFile]);
44845
44036
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
44846
- headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
44037
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$2, {
44847
44038
  label: t(config.label.heading)
44848
44039
  }),
44849
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$1, {
44040
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$2, {
44850
44041
  onClick: closeModal
44851
44042
  }),
44852
44043
  actionCancelLabel: t(config.label.cancel),
@@ -44865,7 +44056,7 @@ const ActionModal$1 = _ref => {
44865
44056
  })) : /*#__PURE__*/React.createElement(Loader, null);
44866
44057
  };
44867
44058
 
44868
- const Heading$2 = props => {
44059
+ const Heading$3 = props => {
44869
44060
  return /*#__PURE__*/React.createElement("h1", {
44870
44061
  style: {
44871
44062
  marginLeft: "22px"
@@ -44873,7 +44064,7 @@ const Heading$2 = props => {
44873
44064
  className: "heading-m BPAheading-m"
44874
44065
  }, props.label);
44875
44066
  };
44876
- const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
44067
+ const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
44877
44068
  xmlns: "http://www.w3.org/2000/svg",
44878
44069
  viewBox: "0 0 24 24",
44879
44070
  fill: "#FFFFFF"
@@ -44883,11 +44074,11 @@ const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
44883
44074
  }), /*#__PURE__*/React.createElement("path", {
44884
44075
  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"
44885
44076
  }));
44886
- const CloseBtn$2 = props => {
44077
+ const CloseBtn$3 = props => {
44887
44078
  return /*#__PURE__*/React.createElement("div", {
44888
44079
  className: "icon-bg-secondary",
44889
44080
  onClick: props.onClick
44890
- }, /*#__PURE__*/React.createElement(Close$3, null));
44081
+ }, /*#__PURE__*/React.createElement(Close$4, null));
44891
44082
  };
44892
44083
  const ActionModal$2 = _ref => {
44893
44084
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -44951,7 +44142,7 @@ const ActionModal$2 = _ref => {
44951
44142
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
44952
44143
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
44953
44144
  } else {
44954
- const _temp = _catch$1(function () {
44145
+ const _temp = _catch(function () {
44955
44146
  return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
44956
44147
  var _response$data, _response$data$files;
44957
44148
  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) {
@@ -45015,10 +44206,10 @@ const ActionModal$2 = _ref => {
45015
44206
  }
45016
44207
  }, [action, approvers, uploadedFile, error]);
45017
44208
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
45018
- headerBarMain: /*#__PURE__*/React.createElement(Heading$2, {
44209
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$3, {
45019
44210
  label: t(config.label.heading)
45020
44211
  }),
45021
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$2, {
44212
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$3, {
45022
44213
  onClick: closeModal
45023
44214
  }),
45024
44215
  actionCancelLabel: t(config.label.cancel),
@@ -45059,7 +44250,7 @@ const ActionModal$2 = _ref => {
45059
44250
  })) : /*#__PURE__*/React.createElement(Loader, null);
45060
44251
  };
45061
44252
 
45062
- const Heading$3 = props => {
44253
+ const Heading$4 = props => {
45063
44254
  return /*#__PURE__*/React.createElement("h1", {
45064
44255
  style: {
45065
44256
  marginLeft: "22px"
@@ -45067,7 +44258,7 @@ const Heading$3 = props => {
45067
44258
  className: "heading-m BPAheading-m"
45068
44259
  }, props.label);
45069
44260
  };
45070
- const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
44261
+ const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
45071
44262
  xmlns: "http://www.w3.org/2000/svg",
45072
44263
  viewBox: "0 0 24 24",
45073
44264
  fill: "#FFFFFF"
@@ -45077,11 +44268,11 @@ const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
45077
44268
  }), /*#__PURE__*/React.createElement("path", {
45078
44269
  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"
45079
44270
  }));
45080
- const CloseBtn$3 = props => {
44271
+ const CloseBtn$4 = props => {
45081
44272
  return /*#__PURE__*/React.createElement("div", {
45082
44273
  className: "icon-bg-secondary",
45083
44274
  onClick: props.onClick
45084
- }, /*#__PURE__*/React.createElement(Close$4, null));
44275
+ }, /*#__PURE__*/React.createElement(Close$5, null));
45085
44276
  };
45086
44277
  const ActionModal$3 = _ref => {
45087
44278
  var _applicationData, _applicationData$land, _applicationData$land2, _applicationData2, _applicationData2$lan, _applicationData2$lan2, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6;
@@ -45230,7 +44421,7 @@ const ActionModal$3 = _ref => {
45230
44421
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
45231
44422
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
45232
44423
  } else {
45233
- const _temp = _catch$1(function () {
44424
+ const _temp = _catch(function () {
45234
44425
  return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
45235
44426
  var _response$data, _response$data$files;
45236
44427
  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) {
@@ -45348,10 +44539,10 @@ const ActionModal$3 = _ref => {
45348
44539
  }
45349
44540
  }, [action, approvers, selectedFinancialYear, uploadedFile, error]);
45350
44541
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
45351
- headerBarMain: /*#__PURE__*/React.createElement(Heading$3, {
44542
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$4, {
45352
44543
  label: t(config.label.heading)
45353
44544
  }),
45354
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$3, {
44545
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
45355
44546
  onClick: closeModal
45356
44547
  }),
45357
44548
  actionCancelLabel: t(config.label.cancel),
@@ -45394,7 +44585,7 @@ const ActionModal$3 = _ref => {
45394
44585
  })) : /*#__PURE__*/React.createElement(Loader, null);
45395
44586
  };
45396
44587
 
45397
- const Heading$4 = props => {
44588
+ const Heading$5 = props => {
45398
44589
  return /*#__PURE__*/React.createElement("h1", {
45399
44590
  style: {
45400
44591
  marginLeft: "22px"
@@ -45402,7 +44593,7 @@ const Heading$4 = props => {
45402
44593
  className: "heading-m BPAheading-m"
45403
44594
  }, props.label);
45404
44595
  };
45405
- const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
44596
+ const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
45406
44597
  xmlns: "http://www.w3.org/2000/svg",
45407
44598
  viewBox: "0 0 24 24",
45408
44599
  fill: "#FFFFFF"
@@ -45412,11 +44603,11 @@ const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
45412
44603
  }), /*#__PURE__*/React.createElement("path", {
45413
44604
  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"
45414
44605
  }));
45415
- const CloseBtn$4 = props => {
44606
+ const CloseBtn$5 = props => {
45416
44607
  return /*#__PURE__*/React.createElement("div", {
45417
44608
  className: "icon-bg-secondary",
45418
44609
  onClick: props.onClick
45419
- }, /*#__PURE__*/React.createElement(Close$5, null));
44610
+ }, /*#__PURE__*/React.createElement(Close$6, null));
45420
44611
  };
45421
44612
  const ActionModal$4 = _ref => {
45422
44613
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -45482,7 +44673,7 @@ const ActionModal$4 = _ref => {
45482
44673
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
45483
44674
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
45484
44675
  } else {
45485
- const _temp = _catch$1(function () {
44676
+ const _temp = _catch(function () {
45486
44677
  return Promise.resolve(Digit.UploadServices.Filestorage("NOC", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
45487
44678
  var _response$data, _response$data$files;
45488
44679
  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) {
@@ -45555,10 +44746,10 @@ const ActionModal$4 = _ref => {
45555
44746
  }
45556
44747
  }, [action, approvers, uploadedFile, error]);
45557
44748
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
45558
- headerBarMain: /*#__PURE__*/React.createElement(Heading$4, {
44749
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$5, {
45559
44750
  label: t(config.label.heading)
45560
44751
  }),
45561
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
44752
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$5, {
45562
44753
  onClick: closeModal
45563
44754
  }),
45564
44755
  actionCancelLabel: t(config.label.cancel),
@@ -45599,12 +44790,12 @@ const ActionModal$4 = _ref => {
45599
44790
  })) : /*#__PURE__*/React.createElement(Loader, null);
45600
44791
  };
45601
44792
 
45602
- const Heading$5 = props => {
44793
+ const Heading$6 = props => {
45603
44794
  return /*#__PURE__*/React.createElement("h1", {
45604
44795
  className: "heading-m"
45605
44796
  }, props.label);
45606
44797
  };
45607
- const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
44798
+ const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
45608
44799
  xmlns: "http://www.w3.org/2000/svg",
45609
44800
  viewBox: "0 0 24 24",
45610
44801
  fill: "#FFFFFF"
@@ -45614,11 +44805,11 @@ const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
45614
44805
  }), /*#__PURE__*/React.createElement("path", {
45615
44806
  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"
45616
44807
  }));
45617
- const CloseBtn$5 = props => {
44808
+ const CloseBtn$6 = props => {
45618
44809
  return /*#__PURE__*/React.createElement("div", {
45619
44810
  className: "icon-bg-secondary",
45620
44811
  onClick: props.onClick
45621
- }, /*#__PURE__*/React.createElement(Close$6, null));
44812
+ }, /*#__PURE__*/React.createElement(Close$7, null));
45622
44813
  };
45623
44814
  const convertDateToEpochNew$1 = function (dateString, dayStartOrEnd) {
45624
44815
  if (dayStartOrEnd === void 0) {
@@ -45710,7 +44901,7 @@ const ActionModal$5 = _ref => {
45710
44901
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
45711
44902
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
45712
44903
  } else {
45713
- const _temp = _catch$1(function () {
44904
+ const _temp = _catch(function () {
45714
44905
  return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getCurrentTenantId())).then(function (response) {
45715
44906
  var _response$data, _response$data$files;
45716
44907
  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) {
@@ -45931,10 +45122,10 @@ const ActionModal$5 = _ref => {
45931
45122
  }
45932
45123
  }, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText, showApprovalChecklist, approvalChecklist, applicationData]);
45933
45124
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
45934
- headerBarMain: /*#__PURE__*/React.createElement(Heading$5, {
45125
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$6, {
45935
45126
  label: t(config.label.heading)
45936
45127
  }),
45937
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$5, {
45128
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$6, {
45938
45129
  onClick: closeModal
45939
45130
  }),
45940
45131
  actionCancelLabel: t(config.label.cancel),
@@ -45967,12 +45158,12 @@ const ActionModal$5 = _ref => {
45967
45158
  }))) : /*#__PURE__*/React.createElement(Loader, null);
45968
45159
  };
45969
45160
 
45970
- const Heading$6 = props => {
45161
+ const Heading$7 = props => {
45971
45162
  return /*#__PURE__*/React.createElement("h1", {
45972
45163
  className: "heading-m"
45973
45164
  }, props.label);
45974
45165
  };
45975
- const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
45166
+ const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
45976
45167
  xmlns: "http://www.w3.org/2000/svg",
45977
45168
  viewBox: "0 0 24 24",
45978
45169
  fill: "#FFFFFF"
@@ -45982,11 +45173,11 @@ const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
45982
45173
  }), /*#__PURE__*/React.createElement("path", {
45983
45174
  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"
45984
45175
  }));
45985
- const CloseBtn$6 = props => {
45176
+ const CloseBtn$7 = props => {
45986
45177
  return /*#__PURE__*/React.createElement("div", {
45987
45178
  className: "icon-bg-secondary",
45988
45179
  onClick: props.onClick
45989
- }, /*#__PURE__*/React.createElement(Close$7, null));
45180
+ }, /*#__PURE__*/React.createElement(Close$8, null));
45990
45181
  };
45991
45182
  const ActionModal$6 = _ref => {
45992
45183
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -46046,7 +45237,7 @@ const ActionModal$6 = _ref => {
46046
45237
  if (file.size >= 5242880) {
46047
45238
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46048
45239
  } else {
46049
- const _temp = _catch$1(function () {
45240
+ const _temp = _catch(function () {
46050
45241
  return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
46051
45242
  var _response$data, _response$data$files;
46052
45243
  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) {
@@ -46106,10 +45297,10 @@ const ActionModal$6 = _ref => {
46106
45297
  }
46107
45298
  }, [action, approvers, uploadedFile]);
46108
45299
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
46109
- headerBarMain: /*#__PURE__*/React.createElement(Heading$6, {
45300
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$7, {
46110
45301
  label: t(config.label.heading)
46111
45302
  }),
46112
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$6, {
45303
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$7, {
46113
45304
  onClick: closeModal
46114
45305
  }),
46115
45306
  actionCancelLabel: t(config.label.cancel),
@@ -46128,12 +45319,12 @@ const ActionModal$6 = _ref => {
46128
45319
  })) : /*#__PURE__*/React.createElement(Loader, null);
46129
45320
  };
46130
45321
 
46131
- const Heading$7 = props => {
45322
+ const Heading$8 = props => {
46132
45323
  return /*#__PURE__*/React.createElement("h1", {
46133
45324
  className: "heading-m"
46134
45325
  }, props.label);
46135
45326
  };
46136
- const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
45327
+ const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
46137
45328
  xmlns: "http://www.w3.org/2000/svg",
46138
45329
  viewBox: "0 0 24 24",
46139
45330
  fill: "#FFFFFF"
@@ -46143,11 +45334,11 @@ const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
46143
45334
  }), /*#__PURE__*/React.createElement("path", {
46144
45335
  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"
46145
45336
  }));
46146
- const CloseBtn$7 = props => {
45337
+ const CloseBtn$8 = props => {
46147
45338
  return /*#__PURE__*/React.createElement("div", {
46148
45339
  className: "icon-bg-secondary",
46149
45340
  onClick: props.onClick
46150
- }, /*#__PURE__*/React.createElement(Close$8, null));
45341
+ }, /*#__PURE__*/React.createElement(Close$9, null));
46151
45342
  };
46152
45343
  const ActionModal$7 = _ref => {
46153
45344
  var _action$roles, _action$roles$, _action$roles$$map;
@@ -46227,10 +45418,10 @@ const ActionModal$7 = _ref => {
46227
45418
  }
46228
45419
  }, [action, approvers, uploadedFile]);
46229
45420
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
46230
- headerBarMain: /*#__PURE__*/React.createElement(Heading$7, {
45421
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$8, {
46231
45422
  label: t(config.label.heading)
46232
45423
  }),
46233
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$7, {
45424
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$8, {
46234
45425
  onClick: closeModal
46235
45426
  }),
46236
45427
  actionCancelLabel: t(config.label.cancel),
@@ -46253,12 +45444,12 @@ const ActionModal$7 = _ref => {
46253
45444
  })) : /*#__PURE__*/React.createElement(Loader, null);
46254
45445
  };
46255
45446
 
46256
- const Heading$8 = props => {
45447
+ const Heading$9 = props => {
46257
45448
  return /*#__PURE__*/React.createElement("h1", {
46258
45449
  className: "heading-m"
46259
45450
  }, props.label);
46260
45451
  };
46261
- const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
45452
+ const Close$a = () => /*#__PURE__*/React.createElement("svg", {
46262
45453
  xmlns: "http://www.w3.org/2000/svg",
46263
45454
  viewBox: "0 0 24 24",
46264
45455
  fill: "#FFFFFF"
@@ -46268,11 +45459,11 @@ const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
46268
45459
  }), /*#__PURE__*/React.createElement("path", {
46269
45460
  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"
46270
45461
  }));
46271
- const CloseBtn$8 = props => {
45462
+ const CloseBtn$9 = props => {
46272
45463
  return /*#__PURE__*/React.createElement("div", {
46273
45464
  className: "icon-bg-secondary",
46274
45465
  onClick: props.onClick
46275
- }, /*#__PURE__*/React.createElement(Close$9, null));
45466
+ }, /*#__PURE__*/React.createElement(Close$a, null));
46276
45467
  };
46277
45468
  const ActionModal$8 = _ref => {
46278
45469
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -46331,7 +45522,7 @@ const ActionModal$8 = _ref => {
46331
45522
  if (file.size >= 5242880) {
46332
45523
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46333
45524
  } else {
46334
- const _temp = _catch$1(function () {
45525
+ const _temp = _catch(function () {
46335
45526
  return Promise.resolve(Digit.UploadServices.Filestorage("CHB", file, tenantId)).then(function (response) {
46336
45527
  var _response$data, _response$data$files;
46337
45528
  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) {
@@ -46390,173 +45581,6 @@ const ActionModal$8 = _ref => {
46390
45581
  }));
46391
45582
  }
46392
45583
  }, [action, approvers, uploadedFile]);
46393
- return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
46394
- headerBarMain: /*#__PURE__*/React.createElement(Heading$8, {
46395
- label: t(config.label.heading)
46396
- }),
46397
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$8, {
46398
- onClick: closeModal
46399
- }),
46400
- actionCancelLabel: t(config.label.cancel),
46401
- actionCancelOnSubmit: closeModal,
46402
- actionSaveLabel: t(config.label.submit),
46403
- actionSaveOnSubmit: () => {},
46404
- formId: "modal-action"
46405
- }, /*#__PURE__*/React.createElement(FormComposer, {
46406
- config: config.form,
46407
- noBoxShadow: true,
46408
- inline: true,
46409
- childrenAtTheBottom: true,
46410
- onSubmit: submit,
46411
- defaultValues: defaultValues,
46412
- formId: "modal-action"
46413
- })) : /*#__PURE__*/React.createElement(Loader, null);
46414
- };
46415
-
46416
- const Heading$9 = props => {
46417
- return /*#__PURE__*/React.createElement("h1", {
46418
- className: "heading-m"
46419
- }, props.label);
46420
- };
46421
- const Close$a = () => /*#__PURE__*/React.createElement("svg", {
46422
- xmlns: "http://www.w3.org/2000/svg",
46423
- viewBox: "0 0 24 24",
46424
- fill: "#FFFFFF"
46425
- }, /*#__PURE__*/React.createElement("path", {
46426
- d: "M0 0h24v24H0V0z",
46427
- fill: "none"
46428
- }), /*#__PURE__*/React.createElement("path", {
46429
- 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"
46430
- }));
46431
- const CloseBtn$9 = props => {
46432
- return /*#__PURE__*/React.createElement("div", {
46433
- className: "icon-bg-secondary",
46434
- onClick: props.onClick
46435
- }, /*#__PURE__*/React.createElement(Close$a, null));
46436
- };
46437
- const ActionModal$9 = _ref => {
46438
- var _action$assigneeRoles, _action$assigneeRoles2;
46439
- let {
46440
- t,
46441
- action,
46442
- tenantId,
46443
- state,
46444
- id,
46445
- closeModal,
46446
- submitAction,
46447
- actionData,
46448
- applicationData,
46449
- businessService,
46450
- moduleCode
46451
- } = _ref;
46452
- console.log("snjdskbjdfbjskfjkbs", action);
46453
- const {
46454
- data: approverData,
46455
- isLoading: PTALoading
46456
- } = Digit.Hooks.useEmployeeSearch(tenantId, {
46457
- roles: action === null || action === void 0 ? void 0 : (_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : (_action$assigneeRoles2 = _action$assigneeRoles.map) === null || _action$assigneeRoles2 === void 0 ? void 0 : _action$assigneeRoles2.call(_action$assigneeRoles, e => ({
46458
- code: e
46459
- })),
46460
- isActive: true
46461
- }, {
46462
- enabled: !(action !== null && action !== void 0 && action.isTerminateState)
46463
- });
46464
- const [config, setConfig] = useState({});
46465
- const [defaultValues, setDefaultValues] = useState({});
46466
- const [approvers, setApprovers] = useState([]);
46467
- const [selectedApprover, setSelectedApprover] = useState(null);
46468
- const [pickUpDate, setpickUpDate] = useState(null);
46469
- const [file, setFile] = useState(null);
46470
- const [uploadedFile, setUploadedFile] = useState(null);
46471
- const [error, setError] = useState(null);
46472
- const [disableActionSubmit, setDisableActionSubmit] = useState(false);
46473
- useEffect(() => {
46474
- var _approverData$Employe;
46475
- setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
46476
- var _employee$user;
46477
- return {
46478
- uuid: employee === null || employee === void 0 ? void 0 : employee.uuid,
46479
- name: employee === null || employee === void 0 ? void 0 : (_employee$user = employee.user) === null || _employee$user === void 0 ? void 0 : _employee$user.name
46480
- };
46481
- }));
46482
- }, [approverData]);
46483
- function selectFile(e) {
46484
- setFile(e.target.files[0]);
46485
- }
46486
- useEffect(() => {
46487
- (function () {
46488
- try {
46489
- setError(null);
46490
- const _temp3 = function () {
46491
- if (file) {
46492
- const _temp2 = function () {
46493
- if (file.size >= 5242880) {
46494
- setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46495
- } else {
46496
- const _temp = _catch$1(function () {
46497
- return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
46498
- var _response$data, _response$data$files;
46499
- 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) {
46500
- var _response$data2, _response$data2$files;
46501
- setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId);
46502
- } else {
46503
- setError(t("CS_FILE_UPLOAD_ERROR"));
46504
- }
46505
- });
46506
- }, function () {
46507
- setError(t("CS_FILE_UPLOAD_ERROR"));
46508
- });
46509
- if (_temp && _temp.then) return _temp.then(function () {});
46510
- }
46511
- }();
46512
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
46513
- }
46514
- }();
46515
- return _temp3 && _temp3.then ? _temp3.then(function () {}) : void 0;
46516
- } catch (e) {
46517
- Promise.reject(e);
46518
- }
46519
- })();
46520
- }, [file]);
46521
- function submit(data) {
46522
- let workflow = {
46523
- action: action === null || action === void 0 ? void 0 : action.action,
46524
- comments: data === null || data === void 0 ? void 0 : data.comments,
46525
- businessService,
46526
- moduleName: moduleCode
46527
- };
46528
- console.log("applicationData", data);
46529
- if (uploadedFile) workflow["documents"] = [{
46530
- documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
46531
- fileName: file === null || file === void 0 ? void 0 : file.name,
46532
- filestoreId: uploadedFile
46533
- }, {}];
46534
- applicationData.pickUpDate = data === null || data === void 0 ? void 0 : data.date;
46535
- applicationData.transactionId = data === null || data === void 0 ? void 0 : data.transactionId;
46536
- applicationData.finalAmount = data === null || data === void 0 ? void 0 : data.finalAmount;
46537
- submitAction({
46538
- EwasteApplication: [{
46539
- ...applicationData,
46540
- workflow
46541
- }]
46542
- });
46543
- }
46544
- useEffect(() => {
46545
- if (action) {
46546
- setConfig(configEWApproverApplication({
46547
- t,
46548
- action,
46549
- approvers,
46550
- selectedApprover,
46551
- setSelectedApprover,
46552
- selectFile,
46553
- uploadedFile,
46554
- setUploadedFile,
46555
- businessService
46556
- }));
46557
- }
46558
- }, [action, approvers, uploadedFile]);
46559
- console.log("conggg", config);
46560
45584
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
46561
45585
  headerBarMain: /*#__PURE__*/React.createElement(Heading$9, {
46562
45586
  label: t(config.label.heading)
@@ -46601,6 +45625,173 @@ const CloseBtn$a = props => {
46601
45625
  onClick: props.onClick
46602
45626
  }, /*#__PURE__*/React.createElement(Close$b, null));
46603
45627
  };
45628
+ const ActionModal$9 = _ref => {
45629
+ var _action$assigneeRoles, _action$assigneeRoles2;
45630
+ let {
45631
+ t,
45632
+ action,
45633
+ tenantId,
45634
+ state,
45635
+ id,
45636
+ closeModal,
45637
+ submitAction,
45638
+ actionData,
45639
+ applicationData,
45640
+ businessService,
45641
+ moduleCode
45642
+ } = _ref;
45643
+ console.log("snjdskbjdfbjskfjkbs", action);
45644
+ const {
45645
+ data: approverData,
45646
+ isLoading: PTALoading
45647
+ } = Digit.Hooks.useEmployeeSearch(tenantId, {
45648
+ roles: action === null || action === void 0 ? void 0 : (_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : (_action$assigneeRoles2 = _action$assigneeRoles.map) === null || _action$assigneeRoles2 === void 0 ? void 0 : _action$assigneeRoles2.call(_action$assigneeRoles, e => ({
45649
+ code: e
45650
+ })),
45651
+ isActive: true
45652
+ }, {
45653
+ enabled: !(action !== null && action !== void 0 && action.isTerminateState)
45654
+ });
45655
+ const [config, setConfig] = useState({});
45656
+ const [defaultValues, setDefaultValues] = useState({});
45657
+ const [approvers, setApprovers] = useState([]);
45658
+ const [selectedApprover, setSelectedApprover] = useState(null);
45659
+ const [pickUpDate, setpickUpDate] = useState(null);
45660
+ const [file, setFile] = useState(null);
45661
+ const [uploadedFile, setUploadedFile] = useState(null);
45662
+ const [error, setError] = useState(null);
45663
+ const [disableActionSubmit, setDisableActionSubmit] = useState(false);
45664
+ useEffect(() => {
45665
+ var _approverData$Employe;
45666
+ setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
45667
+ var _employee$user;
45668
+ return {
45669
+ uuid: employee === null || employee === void 0 ? void 0 : employee.uuid,
45670
+ name: employee === null || employee === void 0 ? void 0 : (_employee$user = employee.user) === null || _employee$user === void 0 ? void 0 : _employee$user.name
45671
+ };
45672
+ }));
45673
+ }, [approverData]);
45674
+ function selectFile(e) {
45675
+ setFile(e.target.files[0]);
45676
+ }
45677
+ useEffect(() => {
45678
+ (function () {
45679
+ try {
45680
+ setError(null);
45681
+ const _temp3 = function () {
45682
+ if (file) {
45683
+ const _temp2 = function () {
45684
+ if (file.size >= 5242880) {
45685
+ setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
45686
+ } else {
45687
+ const _temp = _catch(function () {
45688
+ return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
45689
+ var _response$data, _response$data$files;
45690
+ 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) {
45691
+ var _response$data2, _response$data2$files;
45692
+ setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId);
45693
+ } else {
45694
+ setError(t("CS_FILE_UPLOAD_ERROR"));
45695
+ }
45696
+ });
45697
+ }, function () {
45698
+ setError(t("CS_FILE_UPLOAD_ERROR"));
45699
+ });
45700
+ if (_temp && _temp.then) return _temp.then(function () {});
45701
+ }
45702
+ }();
45703
+ if (_temp2 && _temp2.then) return _temp2.then(function () {});
45704
+ }
45705
+ }();
45706
+ return _temp3 && _temp3.then ? _temp3.then(function () {}) : void 0;
45707
+ } catch (e) {
45708
+ Promise.reject(e);
45709
+ }
45710
+ })();
45711
+ }, [file]);
45712
+ function submit(data) {
45713
+ let workflow = {
45714
+ action: action === null || action === void 0 ? void 0 : action.action,
45715
+ comments: data === null || data === void 0 ? void 0 : data.comments,
45716
+ businessService,
45717
+ moduleName: moduleCode
45718
+ };
45719
+ console.log("applicationData", data);
45720
+ if (uploadedFile) workflow["documents"] = [{
45721
+ documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
45722
+ fileName: file === null || file === void 0 ? void 0 : file.name,
45723
+ filestoreId: uploadedFile
45724
+ }, {}];
45725
+ applicationData.pickUpDate = data === null || data === void 0 ? void 0 : data.date;
45726
+ applicationData.transactionId = data === null || data === void 0 ? void 0 : data.transactionId;
45727
+ applicationData.finalAmount = data === null || data === void 0 ? void 0 : data.finalAmount;
45728
+ submitAction({
45729
+ EwasteApplication: [{
45730
+ ...applicationData,
45731
+ workflow
45732
+ }]
45733
+ });
45734
+ }
45735
+ useEffect(() => {
45736
+ if (action) {
45737
+ setConfig(configEWApproverApplication({
45738
+ t,
45739
+ action,
45740
+ approvers,
45741
+ selectedApprover,
45742
+ setSelectedApprover,
45743
+ selectFile,
45744
+ uploadedFile,
45745
+ setUploadedFile,
45746
+ businessService
45747
+ }));
45748
+ }
45749
+ }, [action, approvers, uploadedFile]);
45750
+ console.log("conggg", config);
45751
+ return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
45752
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$a, {
45753
+ label: t(config.label.heading)
45754
+ }),
45755
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$a, {
45756
+ onClick: closeModal
45757
+ }),
45758
+ actionCancelLabel: t(config.label.cancel),
45759
+ actionCancelOnSubmit: closeModal,
45760
+ actionSaveLabel: t(config.label.submit),
45761
+ actionSaveOnSubmit: () => {},
45762
+ formId: "modal-action"
45763
+ }, /*#__PURE__*/React.createElement(FormComposer, {
45764
+ config: config.form,
45765
+ noBoxShadow: true,
45766
+ inline: true,
45767
+ childrenAtTheBottom: true,
45768
+ onSubmit: submit,
45769
+ defaultValues: defaultValues,
45770
+ formId: "modal-action"
45771
+ })) : /*#__PURE__*/React.createElement(Loader, null);
45772
+ };
45773
+
45774
+ const Heading$b = props => {
45775
+ return /*#__PURE__*/React.createElement("h1", {
45776
+ className: "heading-m"
45777
+ }, props.label);
45778
+ };
45779
+ const Close$c = () => /*#__PURE__*/React.createElement("svg", {
45780
+ xmlns: "http://www.w3.org/2000/svg",
45781
+ viewBox: "0 0 24 24",
45782
+ fill: "#FFFFFF"
45783
+ }, /*#__PURE__*/React.createElement("path", {
45784
+ d: "M0 0h24v24H0V0z",
45785
+ fill: "none"
45786
+ }), /*#__PURE__*/React.createElement("path", {
45787
+ 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"
45788
+ }));
45789
+ const CloseBtn$b = props => {
45790
+ return /*#__PURE__*/React.createElement("div", {
45791
+ className: "icon-bg-secondary",
45792
+ onClick: props.onClick
45793
+ }, /*#__PURE__*/React.createElement(Close$c, null));
45794
+ };
46604
45795
  const ActionModal$a = _ref => {
46605
45796
  var _action$assigneeRoles, _action$assigneeRoles2;
46606
45797
  let {
@@ -46659,8 +45850,8 @@ const ActionModal$a = _ref => {
46659
45850
  if (file.size >= 5242880) {
46660
45851
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46661
45852
  } else {
46662
- const _temp = _finallyRethrows$1(function () {
46663
- return _catch$1(function () {
45853
+ const _temp = _finallyRethrows(function () {
45854
+ return _catch(function () {
46664
45855
  return Promise.resolve(Digit.UploadServices.Filestorage("StreetVending", file, tenantId)).then(function (response) {
46665
45856
  var _response$data, _response$data$files;
46666
45857
  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) {
@@ -46727,10 +45918,10 @@ const ActionModal$a = _ref => {
46727
45918
  }));
46728
45919
  }, [action, approvers, uploadedFile]);
46729
45920
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
46730
- headerBarMain: /*#__PURE__*/React.createElement(Heading$a, {
45921
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$b, {
46731
45922
  label: t(config.label.heading)
46732
45923
  }),
46733
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$a, {
45924
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$b, {
46734
45925
  onClick: closeModal
46735
45926
  }),
46736
45927
  actionCancelLabel: t(config.label.cancel),
@@ -46814,12 +46005,12 @@ const configWTApproverApplication = _ref => {
46814
46005
  };
46815
46006
  };
46816
46007
 
46817
- const Heading$b = props => {
46008
+ const Heading$c = props => {
46818
46009
  return /*#__PURE__*/React.createElement("h1", {
46819
46010
  className: "heading-m"
46820
46011
  }, props.label);
46821
46012
  };
46822
- const Close$c = () => /*#__PURE__*/React.createElement("svg", {
46013
+ const Close$d = () => /*#__PURE__*/React.createElement("svg", {
46823
46014
  xmlns: "http://www.w3.org/2000/svg",
46824
46015
  viewBox: "0 0 24 24",
46825
46016
  fill: "#FFFFFF"
@@ -46829,11 +46020,11 @@ const Close$c = () => /*#__PURE__*/React.createElement("svg", {
46829
46020
  }), /*#__PURE__*/React.createElement("path", {
46830
46021
  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"
46831
46022
  }));
46832
- const CloseBtn$b = props => {
46023
+ const CloseBtn$c = props => {
46833
46024
  return /*#__PURE__*/React.createElement("div", {
46834
46025
  className: "icon-bg-secondary",
46835
46026
  onClick: props.onClick
46836
- }, /*#__PURE__*/React.createElement(Close$c, null));
46027
+ }, /*#__PURE__*/React.createElement(Close$d, null));
46837
46028
  };
46838
46029
  const ActionModal$b = _ref => {
46839
46030
  var _action$assigneeRoles, _action$assigneeRoles2, _dsoData$vendor, _vehicleData$vehicle, _vehicleData$vehicle$;
@@ -46949,7 +46140,7 @@ const ActionModal$b = _ref => {
46949
46140
  if (file.size >= 5242880) {
46950
46141
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46951
46142
  } else {
46952
- const _temp = _catch$1(function () {
46143
+ const _temp = _catch(function () {
46953
46144
  return Promise.resolve(Digit.UploadServices.Filestorage("WT", file, tenantId)).then(function (response) {
46954
46145
  var _response$data, _response$data$files;
46955
46146
  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) {
@@ -47031,10 +46222,10 @@ const ActionModal$b = _ref => {
47031
46222
  }
47032
46223
  }, [action, approvers, uploadedFile, dsoData, selectVehicle, vehicleData]);
47033
46224
  return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
47034
- headerBarMain: /*#__PURE__*/React.createElement(Heading$b, {
46225
+ headerBarMain: /*#__PURE__*/React.createElement(Heading$c, {
47035
46226
  label: t(config.label.heading)
47036
46227
  }),
47037
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$b, {
46228
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$c, {
47038
46229
  onClick: closeModal
47039
46230
  }),
47040
46231
  actionCancelLabel: t(config.label.cancel),
@@ -47633,7 +46824,7 @@ function SelectDocument$4(_ref) {
47633
46824
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
47634
46825
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
47635
46826
  } else {
47636
- const _temp = _catch$1(function () {
46827
+ const _temp = _catch(function () {
47637
46828
  setUploadedFile(null);
47638
46829
  return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
47639
46830
  var _response$data, _response$data$files;
@@ -47921,7 +47112,7 @@ const PermissionCheck = _ref => {
47921
47112
  } : {},
47922
47113
  placeholder: t("BPA_ENTER_PERMIT_CONDITIONS_LABEL")
47923
47114
  }), /*#__PURE__*/React.createElement(LinkButton, {
47924
- label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$f, {
47115
+ label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$g, {
47925
47116
  style: {
47926
47117
  float: "right",
47927
47118
  position: "relative",
@@ -48014,7 +47205,7 @@ function PropertyDocuments(_ref) {
48014
47205
  };
48015
47206
  const forceDownload = function (url, fileName) {
48016
47207
  try {
48017
- return Promise.resolve(_catch$1(function () {
47208
+ return Promise.resolve(_catch(function () {
48018
47209
  return Promise.resolve(fetch(url)).then(function (response) {
48019
47210
  if (!response.ok) {
48020
47211
  throw new Error(`HTTP error! status: ${response.status}`);
@@ -48550,7 +47741,7 @@ const ScruntinyDetails = _ref => {
48550
47741
  }
48551
47742
  }, t(data === null || data === void 0 ? void 0 : data.value));else if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return t(data === null || data === void 0 ? void 0 : data.value);else if (data !== null && data !== void 0 && data.value) return data === null || data === void 0 ? void 0 : data.value;else t("NA");
48552
47743
  };
48553
- return /*#__PURE__*/React.createElement(Fragment$2, null, !(scrutinyDetails !== null && scrutinyDetails !== void 0 && scrutinyDetails.isChecklist) && /*#__PURE__*/React.createElement("div", {
47744
+ return /*#__PURE__*/React.createElement(Fragment$1, null, !(scrutinyDetails !== null && scrutinyDetails !== void 0 && scrutinyDetails.isChecklist) && /*#__PURE__*/React.createElement("div", {
48554
47745
  style: {
48555
47746
  background: "#FAFAFA",
48556
47747
  border: "1px solid #D6D5D4",
@@ -48608,7 +47799,7 @@ const ScruntinyDetails = _ref => {
48608
47799
  }
48609
47800
  }, value === null || value === void 0 ? void 0 : value.title);
48610
47801
  })), /*#__PURE__*/React.createElement("div", null, scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$scru = scrutinyDetails.scruntinyDetails) === null || _scrutinyDetails$scru === void 0 ? void 0 : _scrutinyDetails$scru.map((report, index) => {
48611
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Row, {
47802
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Row, {
48612
47803
  className: "border-none",
48613
47804
  label: `${t(report === null || report === void 0 ? void 0 : report.title)}`,
48614
47805
  labelStyle: {
@@ -48717,7 +47908,7 @@ const SubOccupancyTable = _ref => {
48717
47908
  }
48718
47909
  return returnValue ? returnValue : "NA";
48719
47910
  }
48720
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
47911
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
48721
47912
  style: {
48722
47913
  background: "#FAFAFA",
48723
47914
  border: "1px solid #D6D5D4",
@@ -49325,7 +48516,7 @@ const ArrearSummary = _ref => {
49325
48516
  }, t("CS_HIDE_CARD"))));
49326
48517
  };
49327
48518
 
49328
- const Close$d = () => /*#__PURE__*/React.createElement("svg", {
48519
+ const Close$e = () => /*#__PURE__*/React.createElement("svg", {
49329
48520
  xmlns: "http://www.w3.org/2000/svg",
49330
48521
  viewBox: "0 0 24 24",
49331
48522
  fill: "#FFFFFF"
@@ -49335,11 +48526,11 @@ const Close$d = () => /*#__PURE__*/React.createElement("svg", {
49335
48526
  }), /*#__PURE__*/React.createElement("path", {
49336
48527
  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"
49337
48528
  }));
49338
- const CloseBtn$c = props => {
48529
+ const CloseBtn$d = props => {
49339
48530
  return /*#__PURE__*/React.createElement("div", {
49340
48531
  className: "icon-bg-secondary",
49341
48532
  onClick: props.onClick
49342
- }, /*#__PURE__*/React.createElement(Close$d, null));
48533
+ }, /*#__PURE__*/React.createElement(Close$e, null));
49343
48534
  };
49344
48535
  const RenewPopup = _ref => {
49345
48536
  let {
@@ -49367,7 +48558,7 @@ const RenewPopup = _ref => {
49367
48558
  headerBarMain: /*#__PURE__*/React.createElement(Heading, {
49368
48559
  label: "SV_WANT_TO_EDIT"
49369
48560
  }),
49370
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$c, {
48561
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$d, {
49371
48562
  onClick: closeModal
49372
48563
  }),
49373
48564
  actionCancelLabel: t("CS_COMMON_BACK"),
@@ -49512,7 +48703,7 @@ const DueVerification = _ref => {
49512
48703
  try {
49513
48704
  return Promise.resolve(function () {
49514
48705
  if (isZROApproval && applicationData !== null && applicationData !== void 0 && applicationData.applicationNo) {
49515
- return _catch$1(function () {
48706
+ return _catch(function () {
49516
48707
  return Promise.resolve(checkDueVerification({
49517
48708
  DueVerification: {
49518
48709
  applicationNo: applicationData.applicationNo
@@ -49556,7 +48747,7 @@ const DueVerification = _ref => {
49556
48747
  });
49557
48748
  return;
49558
48749
  }
49559
- return _catch$1(function () {
48750
+ return _catch(function () {
49560
48751
  return Promise.resolve(checkDueVerification({
49561
48752
  DueVerification: {
49562
48753
  kno: kno
@@ -50349,7 +49540,7 @@ function ApplicationDetailsContent(_ref) {
50349
49540
  showApprovalChecklist: showApprovalChecklist,
50350
49541
  values: approvalChecklist,
50351
49542
  onChange: onApprovalChecklistChange
50352
- }), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.timeline) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
49543
+ }), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.timeline) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
50353
49544
  id: "timeline"
50354
49545
  }, /*#__PURE__*/React.createElement(CardSectionHeader, {
50355
49546
  style: {
@@ -50601,7 +49792,7 @@ function ApplicationDetailsActionBar(_ref) {
50601
49792
  }, t(`${forcedActionPrefix || `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}`}_${actions === null || actions === void 0 ? void 0 : (_actions$4 = actions[0]) === null || _actions$4 === void 0 ? void 0 : _actions$4.action}`))));
50602
49793
  }
50603
49794
 
50604
- const Close$e = () => /*#__PURE__*/React.createElement("svg", {
49795
+ const Close$f = () => /*#__PURE__*/React.createElement("svg", {
50605
49796
  xmlns: "http://www.w3.org/2000/svg",
50606
49797
  viewBox: "0 0 24 24",
50607
49798
  fill: "#FFFFFF"
@@ -50611,11 +49802,11 @@ const Close$e = () => /*#__PURE__*/React.createElement("svg", {
50611
49802
  }), /*#__PURE__*/React.createElement("path", {
50612
49803
  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"
50613
49804
  }));
50614
- const CloseBtn$d = props => {
49805
+ const CloseBtn$e = props => {
50615
49806
  return /*#__PURE__*/React.createElement("div", {
50616
49807
  className: "icon-bg-secondary",
50617
49808
  onClick: props.onClick
50618
- }, /*#__PURE__*/React.createElement(Close$e, null));
49809
+ }, /*#__PURE__*/React.createElement(Close$f, null));
50619
49810
  };
50620
49811
  function ApplicationDetailsWarningPopup(_ref) {
50621
49812
  let {
@@ -50633,7 +49824,7 @@ function ApplicationDetailsWarningPopup(_ref) {
50633
49824
  headerBarMain: /*#__PURE__*/React.createElement("h1", {
50634
49825
  className: "heading-m"
50635
49826
  }, t("PT_DUES_ARE_PENDING")),
50636
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$d, {
49827
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
50637
49828
  onClick: () => {
50638
49829
  closeWarningPopup();
50639
49830
  }
@@ -50918,7 +50109,7 @@ const ApplicationDetails = props => {
50918
50109
  const nocPrmomises = (_nocData = nocData) === null || _nocData === void 0 ? void 0 : _nocData.map(noc => {
50919
50110
  return nocMutation === null || nocMutation === void 0 ? void 0 : nocMutation.mutateAsync(noc);
50920
50111
  });
50921
- const _temp = _catch$1(function () {
50112
+ const _temp = _catch(function () {
50922
50113
  setIsEnableLoader(true);
50923
50114
  return Promise.resolve(Promise.all(nocPrmomises)).then(function (values) {
50924
50115
  values && values.map(ob => {
@@ -51786,7 +50977,7 @@ const GetConnectionDetails = () => {
51786
50977
  onClick: props.onClick
51787
50978
  }, /*#__PURE__*/React.createElement(Close, null));
51788
50979
  };
51789
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
50980
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
51790
50981
  style: {
51791
50982
  position: "relative",
51792
50983
  width: "100%",
@@ -52255,7 +51446,7 @@ const ApplicationDetailsBillAmendment = () => {
52255
51446
  label: t("WS_ACK_PDF"),
52256
51447
  onClick: () => getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails, applicationDetails)
52257
51448
  }];
52258
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
51449
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
52259
51450
  className: "employee-main-application-details"
52260
51451
  }, /*#__PURE__*/React.createElement("div", {
52261
51452
  className: "employee-application-details",
@@ -52367,7 +51558,7 @@ const Search = _ref => {
52367
51558
  var _result$data3;
52368
51559
  return (result === null || result === void 0 ? void 0 : (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : _result$data3.length) > 0 ? true : false;
52369
51560
  };
52370
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Search, {
51561
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Search, {
52371
51562
  t: t,
52372
51563
  tenantId: tenantId,
52373
51564
  onSubmit: onSubmit,
@@ -52466,7 +51657,7 @@ const SearchWater = _ref => {
52466
51657
  }
52467
51658
  return item;
52468
51659
  });
52469
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SWater, {
51660
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
52470
51661
  t: t,
52471
51662
  tenantId: tenantId,
52472
51663
  onSubmit: onSubmit,
@@ -54819,7 +54010,9 @@ const Step2_NewConsumerDetails = _ref => {
54819
54010
  control,
54820
54011
  name: "reasonForNameChange"
54821
54012
  });
54822
- const isOtherReason = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER" || selectedReason === "OTHER";
54013
+ const isDevolutionOrInheritance = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "DEVOLUTION_INHERITANCE" || selectedReason === "DEVOLUTION_INHERITANCE" || String((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) || "").toUpperCase().includes("DEVOLUTION") || String(selectedReason || "").toUpperCase().includes("DEVOLUTION");
54014
+ console.log("selectedReason in Step2:", selectedReason);
54015
+ console.log("isDevolutionOrInheritance:", isDevolutionOrInheritance);
54823
54016
  const genderOptions = [{
54824
54017
  code: "MALE",
54825
54018
  i18nKey: "Male"
@@ -54838,7 +54031,7 @@ const Step2_NewConsumerDetails = _ref => {
54838
54031
  i18nKey: "Devolution/Inheritance"
54839
54032
  }, {
54840
54033
  code: "OTHER",
54841
- i18nKey: "Other Reason(Gift Deed, Lease Agreement, etc)"
54034
+ i18nKey: "Other Reason(Registered Sale Deed/Convayed Deed/Transfer Deed, Registered GPA, Possession Letter/Allotment Letter)"
54842
54035
  }];
54843
54036
  const relationshipOptions = [{
54844
54037
  code: "BLOOD_RELATION",
@@ -55107,7 +54300,8 @@ const Step2_NewConsumerDetails = _ref => {
55107
54300
  ...p,
55108
54301
  reasonForNameChange: true
55109
54302
  }));
55110
- if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER" && val !== "OTHER") {
54303
+ const isDev = (val === null || val === void 0 ? void 0 : val.code) === "DEVOLUTION_INHERITANCE" || val === "DEVOLUTION_INHERITANCE" || String((val === null || val === void 0 ? void 0 : val.code) || "").toUpperCase().includes("DEVOLUTION") || String(val || "").toUpperCase().includes("DEVOLUTION");
54304
+ if (!isDev) {
55111
54305
  setValue("relationshipWithExistingConsumer", null);
55112
54306
  }
55113
54307
  },
@@ -55120,13 +54314,13 @@ const Step2_NewConsumerDetails = _ref => {
55120
54314
  }, errors === null || errors === void 0 ? void 0 : (_errors$reasonForName = errors.reasonForNameChange) === null || _errors$reasonForName === void 0 ? void 0 : _errors$reasonForName.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, {
55121
54315
  style: {
55122
54316
  fontWeight: "bold",
55123
- color: isOtherReason ? "inherit" : "#999"
54317
+ color: isDevolutionOrInheritance ? "inherit" : "#999"
55124
54318
  }
55125
- }, "Relationship with Existing Consumer ", isOtherReason && mandatoryIndicator), /*#__PURE__*/React.createElement(Controller, {
54319
+ }, "Relationship with Existing Consumer ", isDevolutionOrInheritance && mandatoryIndicator), /*#__PURE__*/React.createElement(Controller, {
55126
54320
  control: control,
55127
54321
  name: "relationshipWithExistingConsumer",
55128
54322
  rules: {
55129
- required: isOtherReason ? "Relationship is required when 'Other Reason' is selected" : false
54323
+ required: isDevolutionOrInheritance ? "Relationship is required when 'Devolution/Inheritance' is selected" : false
55130
54324
  },
55131
54325
  render: props => /*#__PURE__*/React.createElement(Dropdown, {
55132
54326
  selected: props.value,
@@ -55141,16 +54335,16 @@ const Step2_NewConsumerDetails = _ref => {
55141
54335
  optionKey: "i18nKey",
55142
54336
  t: t,
55143
54337
  placeholder: "Select relationship",
55144
- disable: !isOtherReason
54338
+ disable: !isDevolutionOrInheritance
55145
54339
  })
55146
- }), !isOtherReason && /*#__PURE__*/React.createElement("span", {
54340
+ }), !isDevolutionOrInheritance && /*#__PURE__*/React.createElement("span", {
55147
54341
  style: {
55148
54342
  fontSize: "11px",
55149
54343
  color: "#999",
55150
54344
  marginTop: "4px",
55151
54345
  display: "block"
55152
54346
  }
55153
- }, "Enabled only when \"Other Reason\" is selected above"), (errors === null || errors === void 0 ? void 0 : errors.relationshipWithExistingConsumer) && /*#__PURE__*/React.createElement(CardLabelError, {
54347
+ }, "Enabled only when \"Devolution/Inheritance\" is selected above"), (errors === null || errors === void 0 ? void 0 : errors.relationshipWithExistingConsumer) && /*#__PURE__*/React.createElement(CardLabelError, {
55154
54348
  style: errorStyle
55155
54349
  }, errors === null || errors === void 0 ? void 0 : (_errors$relationshipW = errors.relationshipWithExistingConsumer) === null || _errors$relationshipW === void 0 ? void 0 : _errors$relationshipW.message))), /*#__PURE__*/React.createElement("div", {
55156
54350
  style: {
@@ -55246,6 +54440,8 @@ const Step3_UploadDocuments = _ref => {
55246
54440
  const [hasAttemptedSubmit, setHasAttemptedSubmit] = useState(false);
55247
54441
  const [digiLockerUpload, setDigilockerUpload] = useState(false);
55248
54442
  const [isDocumentUidLocked, setIsDocumentUidLocked] = useState(false);
54443
+ const [showDocumentNumber, setShowDocumentNumber] = useState(false);
54444
+ const [isDeclarationChecked, setIsDeclarationChecked] = useState((defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.isDeclarationChecked) || false);
55249
54445
  const identityOptions = [{
55250
54446
  code: "AADHAAR",
55251
54447
  i18nKey: "Aadhaar Card"
@@ -55447,11 +54643,12 @@ const Step3_UploadDocuments = _ref => {
55447
54643
  if (!identityProofType) newErrors.identityType = "Please select a document type";
55448
54644
  if (!identityProofFile) newErrors.identityFile = "Please upload your identity proof document";
55449
54645
  if (!mutationDocFile) newErrors.mutationFile = "Please upload the reason-based supporting document";
54646
+ if (!isDeclarationChecked) newErrors.declaration = "You must accept the declaration before proceeding";
55450
54647
  const docError = validateDocumentNumber(documentNumber, identityProofType);
55451
54648
  if (docError) newErrors.documentNumber = docError;
55452
54649
  setFieldErrors(newErrors);
55453
54650
  }
55454
- }, [identityProofType, documentNumber, identityProofFile, mutationDocFile, hasAttemptedSubmit]);
54651
+ }, [identityProofType, documentNumber, identityProofFile, mutationDocFile, isDeclarationChecked, hasAttemptedSubmit]);
55455
54652
  const onProceed = () => {
55456
54653
  setHasAttemptedSubmit(true);
55457
54654
  const newErrors = {};
@@ -55460,6 +54657,7 @@ const Step3_UploadDocuments = _ref => {
55460
54657
  if (docError) newErrors.documentNumber = docError;
55461
54658
  if (!identityProofFile) newErrors.identityFile = "Please upload your identity proof document";
55462
54659
  if (!mutationDocFile) newErrors.mutationFile = "Please upload the reason-based supporting document";
54660
+ if (!isDeclarationChecked) newErrors.declaration = "You must accept the declaration before proceeding";
55463
54661
  setFieldErrors(newErrors);
55464
54662
  if (Object.keys(newErrors).length > 0) {
55465
54663
  const errorCount = Object.keys(newErrors).length;
@@ -55473,7 +54671,8 @@ const Step3_UploadDocuments = _ref => {
55473
54671
  identityProofType,
55474
54672
  documentNumber: documentNumber.trim(),
55475
54673
  identityProofDocumentId: identityProofFile,
55476
- saleDeedDocumentId: mutationDocFile
54674
+ saleDeedDocumentId: mutationDocFile,
54675
+ isDeclarationChecked
55477
54676
  });
55478
54677
  };
55479
54678
  const uploadBoxStyle = (hasError, hasFile) => ({
@@ -55564,7 +54763,7 @@ const Step3_UploadDocuments = _ref => {
55564
54763
  style: {
55565
54764
  fontWeight: "bold"
55566
54765
  }
55567
- }, "1. Address / Identity Proof ", mandatoryIndicator), /*#__PURE__*/React.createElement(Dropdown, {
54766
+ }, "1. Identity Proof ", mandatoryIndicator), /*#__PURE__*/React.createElement(Dropdown, {
55568
54767
  selected: identityProofType,
55569
54768
  option: identityOptions,
55570
54769
  select: val => {
@@ -55596,7 +54795,19 @@ const Step3_UploadDocuments = _ref => {
55596
54795
  fontWeight: "bold",
55597
54796
  marginTop: "8px"
55598
54797
  }
55599
- }, "Document Number ", mandatoryIndicator), /*#__PURE__*/React.createElement(TextInput, {
54798
+ }, "Document Number ", mandatoryIndicator), /*#__PURE__*/React.createElement("div", {
54799
+ style: {
54800
+ display: "flex",
54801
+ alignItems: "flex-start",
54802
+ gap: "8px",
54803
+ marginBottom: "4px"
54804
+ }
54805
+ }, /*#__PURE__*/React.createElement("div", {
54806
+ style: {
54807
+ flex: 1
54808
+ }
54809
+ }, /*#__PURE__*/React.createElement(TextInput, {
54810
+ type: showDocumentNumber ? "text" : "password",
55600
54811
  value: documentNumber,
55601
54812
  onChange: e => {
55602
54813
  if (!isDocumentUidLocked) {
@@ -55619,7 +54830,7 @@ const Step3_UploadDocuments = _ref => {
55619
54830
  placeholder: (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "AADHAAR" ? "Enter 12-digit Aadhaar number" : (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "PAN" ? "Enter PAN (e.g. ABCDE1234F)" : "Enter Document Number",
55620
54831
  disabled: isDocumentUidLocked,
55621
54832
  style: {
55622
- marginBottom: "4px",
54833
+ marginBottom: "0",
55623
54834
  ...(fieldErrors.documentNumber ? {
55624
54835
  border: "1px solid #d32f2f"
55625
54836
  } : {}),
@@ -55629,7 +54840,23 @@ const Step3_UploadDocuments = _ref => {
55629
54840
  color: "#555"
55630
54841
  } : {})
55631
54842
  }
55632
- }), fieldErrors.documentNumber && /*#__PURE__*/React.createElement("div", {
54843
+ })), /*#__PURE__*/React.createElement("button", {
54844
+ type: "button",
54845
+ onClick: () => setShowDocumentNumber(!showDocumentNumber),
54846
+ style: {
54847
+ padding: "8px 16px",
54848
+ backgroundColor: "#f4f9fc",
54849
+ border: "1px solid #ccc",
54850
+ borderRadius: "4px",
54851
+ cursor: "pointer",
54852
+ fontWeight: "500",
54853
+ fontSize: "14px",
54854
+ height: "40px",
54855
+ display: "flex",
54856
+ alignItems: "center",
54857
+ justifyContent: "center"
54858
+ }
54859
+ }, showDocumentNumber ? "Hide" : "View")), fieldErrors.documentNumber && /*#__PURE__*/React.createElement("div", {
55633
54860
  style: errorTextStyle
55634
54861
  }, fieldErrors.documentNumber), (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "AADHAAR" && !fieldErrors.documentNumber && /*#__PURE__*/React.createElement("span", {
55635
54862
  style: {
@@ -55805,6 +55032,37 @@ const Step3_UploadDocuments = _ref => {
55805
55032
  marginRight: "4px"
55806
55033
  }
55807
55034
  }), " View ", mutationFileName)))), /*#__PURE__*/React.createElement("div", {
55035
+ style: {
55036
+ marginTop: "24px",
55037
+ padding: "16px",
55038
+ backgroundColor: fieldErrors.declaration ? "#fef2f2" : "#f8f9fa",
55039
+ borderRadius: "8px",
55040
+ border: fieldErrors.declaration ? "1px solid #d32f2f" : "1px solid #e9ecef"
55041
+ }
55042
+ }, /*#__PURE__*/React.createElement(CheckBox, {
55043
+ label: "I declare that the documents uploaded by me are genuine, valid, and accurate to the best of my knowledge.",
55044
+ onChange: e => {
55045
+ setIsDeclarationChecked(e.target.checked);
55046
+ if (e.target.checked) {
55047
+ setFieldErrors(prev => ({
55048
+ ...prev,
55049
+ declaration: null
55050
+ }));
55051
+ }
55052
+ },
55053
+ checked: isDeclarationChecked,
55054
+ style: isMobileView ? {
55055
+ fontSize: "12px",
55056
+ alignItems: "flex-start"
55057
+ } : {
55058
+ alignItems: "center"
55059
+ }
55060
+ }), fieldErrors.declaration && /*#__PURE__*/React.createElement("div", {
55061
+ style: {
55062
+ ...errorTextStyle,
55063
+ marginLeft: "28px"
55064
+ }
55065
+ }, fieldErrors.declaration)), /*#__PURE__*/React.createElement("div", {
55808
55066
  style: {
55809
55067
  display: "flex",
55810
55068
  flexDirection: isMobileView ? "column" : "row",
@@ -55884,7 +55142,8 @@ const Step4_Preview = _ref => {
55884
55142
  resolvedServiceType,
55885
55143
  onBack,
55886
55144
  onSubmit,
55887
- isLoading
55145
+ isLoading,
55146
+ isEditFlow
55888
55147
  } = _ref;
55889
55148
  const [agreed, setAgreed] = useState(false);
55890
55149
  const [fee, setFee] = useState(0);
@@ -56066,7 +55325,7 @@ const Step4_Preview = _ref => {
56066
55325
  gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(150px, 1fr))",
56067
55326
  gap: isMobileView ? "12px" : "16px"
56068
55327
  }
56069
- }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), /*#__PURE__*/React.createElement("div", {
55328
+ }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), !isEditFlow && /*#__PURE__*/React.createElement("div", {
56070
55329
  style: {
56071
55330
  ...sectionStyle,
56072
55331
  borderLeft: "4px solid #f29c1f"
@@ -57068,7 +56327,7 @@ const MutationApplication = () => {
57068
56327
  search: location.search,
57069
56328
  state: location.state
57070
56329
  }
57071
- }) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Step1_ExistingConnection, {
56330
+ }) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Step1_ExistingConnection, {
57072
56331
  t: t,
57073
56332
  applicationDetails: authActiveConnection ? {
57074
56333
  applicationData: authActiveConnection
@@ -57118,7 +56377,8 @@ const MutationApplication = () => {
57118
56377
  resolvedServiceType: resolvedServiceType,
57119
56378
  onBack: () => history.push(`${path}/document`),
57120
56379
  onSubmit: submitApplication,
57121
- isLoading: isSubmitting
56380
+ isLoading: isSubmitting,
56381
+ isEditFlow: isEditFlow
57122
56382
  })), /*#__PURE__*/React.createElement(Route, {
57123
56383
  path: `${path}/submission`
57124
56384
  }, /*#__PURE__*/React.createElement(Step5_Submission, {
@@ -57722,7 +56982,7 @@ const GetDisconnectionDetails = () => {
57722
56982
  dowloadOptions.sort(function (a, b) {
57723
56983
  return a.order - b.order;
57724
56984
  });
57725
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
56985
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
57726
56986
  className: "employee-main-application-details",
57727
56987
  style: {
57728
56988
  display: "flex",
@@ -57977,7 +57237,7 @@ const ModifyApplicationDetails = () => {
57977
57237
  dowloadOptions.sort(function (a, b) {
57978
57238
  return a.order - b.order;
57979
57239
  });
57980
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
57240
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
57981
57241
  className: "employee-main-application-details"
57982
57242
  }, /*#__PURE__*/React.createElement("div", {
57983
57243
  className: "employee-application-details",
@@ -58494,7 +57754,7 @@ const SearchFields$2 = _ref => {
58494
57754
  },
58495
57755
  title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
58496
57756
  };
58497
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, {
57757
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
58498
57758
  style: {
58499
57759
  width: "100%"
58500
57760
  }
@@ -58717,7 +57977,7 @@ const SearchWaterConnectionIntegrated = _ref => {
58717
57977
  return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
58718
57978
  }
58719
57979
  }], []);
58720
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, {
57980
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
58721
57981
  styles: {
58722
57982
  fontSize: "32px"
58723
57983
  }
@@ -58854,7 +58114,7 @@ const SearchIntegrated = _ref => {
58854
58114
  var _result12$data5, _result$data5;
58855
58115
  return (result12 === null || result12 === void 0 ? void 0 : (_result12$data5 = result12.data) === null || _result12$data5 === void 0 ? void 0 : _result12$data5.length) > 0 || (result === null || result === void 0 ? void 0 : (_result$data5 = result.data) === null || _result$data5 === void 0 ? void 0 : _result$data5.length) > 0 ? true : false;
58856
58116
  };
58857
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SWater, {
58117
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
58858
58118
  t: t,
58859
58119
  tenantId: tenantId,
58860
58120
  onSubmit: onSubmit,
@@ -58879,7 +58139,7 @@ const SearchWaterConnectionViewIntegrated = _ref => {
58879
58139
  count,
58880
58140
  resultOk
58881
58141
  } = _ref;
58882
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchWaterConnectionIntegrated, {
58142
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchWaterConnectionIntegrated, {
58883
58143
  onSubmit: onSubmit,
58884
58144
  data: data,
58885
58145
  count: count,
@@ -58945,7 +58205,7 @@ const BulkBillGeneration = _ref => {
58945
58205
  var _result$meterReadings;
58946
58206
  return (result === null || result === void 0 ? void 0 : (_result$meterReadings = result.meterReadings) === null || _result$meterReadings === void 0 ? void 0 : _result$meterReadings.length) > 0 ? true : false;
58947
58207
  };
58948
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(WSBulkBillSearch, {
58208
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(WSBulkBillSearch, {
58949
58209
  t: t,
58950
58210
  tenantId: tenantId,
58951
58211
  onSubmit: onSubmit,
@@ -58995,7 +58255,7 @@ const openFilePDF = fileId => {
58995
58255
  }).catch(error => console.error("Error fetching file:", error));
58996
58256
  };
58997
58257
  const CheckPage$4 = _ref2 => {
58998
- var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
58258
+ 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$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
58999
58259
  let {
59000
58260
  data,
59001
58261
  onSubmit,
@@ -59070,7 +58330,6 @@ const CheckPage$4 = _ref2 => {
59070
58330
  holderDetails = holderDetails[0] || {};
59071
58331
  }
59072
58332
  const useDetails = (data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : _data$useDetails.useDetails) || (data === null || data === void 0 ? void 0 : data.useDetails) || {};
59073
- const bankDetails = (data === null || data === void 0 ? void 0 : (_data$bankDetails = data.bankDetails) === null || _data$bankDetails === void 0 ? void 0 : _data$bankDetails.bankDetails) || (data === null || data === void 0 ? void 0 : data.bankDetails) || {};
59074
58333
  const documents = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents) || (data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.documents) || [];
59075
58334
  const declaration = (data === null || data === void 0 ? void 0 : data.declarationData) || (data === null || data === void 0 ? void 0 : data.declaration) || {};
59076
58335
  const djbEmployee = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : _data$djbEmployee.djbEmployee) || (data === null || data === void 0 ? void 0 : data.djbEmployee) || {};
@@ -59310,26 +58569,6 @@ const CheckPage$4 = _ref2 => {
59310
58569
  }, /*#__PURE__*/React.createElement(Row, {
59311
58570
  label: "Divyangjan/Person with Disability?",
59312
58571
  text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
59313
- })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
59314
- style: {
59315
- marginTop: "10px",
59316
- marginBottom: "30px"
59317
- }
59318
- }, /*#__PURE__*/React.createElement(Row, {
59319
- label: t("WS_NAME_OF_BANK"),
59320
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
59321
- actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
59322
- onClick: onEdit
59323
- })
59324
- }), /*#__PURE__*/React.createElement(Row, {
59325
- label: t("WS_NAME_OF_BRANCH"),
59326
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
59327
- }), /*#__PURE__*/React.createElement(Row, {
59328
- label: t("WS_IFSC_CODE"),
59329
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
59330
- }), /*#__PURE__*/React.createElement(Row, {
59331
- label: t("WS_BANK_ACCOUNT_NO"),
59332
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
59333
58572
  })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, {
59334
58573
  style: {
59335
58574
  marginTop: "10px",
@@ -59474,8 +58713,6 @@ const OLDApplication = () => {
59474
58713
  label: "WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS"
59475
58714
  }, {
59476
58715
  label: "WS_DJB_EMPLOYEE"
59477
- }, {
59478
- label: "WS_BANK_DETAILS"
59479
58716
  }, {
59480
58717
  label: "WS_DOCUMENTS"
59481
58718
  }, {
@@ -59520,7 +58757,7 @@ const OLDApplication = () => {
59520
58757
  if (requestedPropertyId !== initialPropertyId.current || requestedPropertyId && requestedPropertyId !== verifiedPropertyId.current) {
59521
58758
  clearSessionFormData();
59522
58759
  sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
59523
- history.replace("/digit-ui/employee/ws/info");
58760
+ history.replace(window.location.href.includes("/employee") ? "/digit-ui/employee/ws/info" : "/digit-ui/citizen/ws/info");
59524
58761
  }
59525
58762
  }, [clearSessionFormData, history, requestedPropertyId]);
59526
58763
  useEffect(() => {
@@ -59532,7 +58769,7 @@ const OLDApplication = () => {
59532
58769
  if (config) {
59533
58770
  var _config$body;
59534
58771
  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)) || [];
59535
- const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", ...(isCitizen ? [] : ["WSDjbEmployee"]), "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
58772
+ const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", ...(isCitizen ? [] : ["WSDjbEmployee"]), "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee", "WSDeclaration"];
59536
58773
  const reorderedBody = [];
59537
58774
  desiredComponentOrder.forEach(compName => {
59538
58775
  const section = allCreateSections.find(s => {
@@ -59568,16 +58805,6 @@ const OLDApplication = () => {
59568
58805
  isAutomaticFill: true
59569
58806
  }]
59570
58807
  });
59571
- } else if (compName === "WSBankDetails") {
59572
- reorderedBody.push({
59573
- isCreateConnection: true,
59574
- body: [{
59575
- type: "component",
59576
- key: "bankDetails",
59577
- component: "WSBankDetails",
59578
- withoutLabel: true
59579
- }]
59580
- });
59581
58808
  } else if (compName === "WSDeclaration") {
59582
58809
  reorderedBody.push({
59583
58810
  isCreateConnection: true,