@djb25/digit-ui-module-ws 1.0.42 → 1.0.44

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,7 +1,7 @@
1
- import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$1, 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, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, CardLabel, TextInput, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, LabelFieldPair, DatePicker, CollapsibleCardPage, Dropdown, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, CardLabelError, WrapUnMaskComponent, MobileNumber, CheckBox, StatusTable, Row, Header, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, GenericFileIcon, EditIcon, Label, AddressDetails, CardSectionSubText, DownloadIcon, CardLabelDesc, VerticalTimeline, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, AddIcon, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
4
+ import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, CardLabel, TextInput, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, LabelFieldPair, DatePicker, CollapsibleCardPage, Dropdown, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, CardLabelError, WrapUnMaskComponent, MobileNumber, CheckBox, StatusTable, Row, Header, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, VerticalTimeline, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, AddIcon, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
5
5
  import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
6
6
  import { read, utils as utils$1 } from 'xlsx';
7
7
  import { useQueryClient } from 'react-query';
@@ -7836,7 +7836,7 @@ const WSInfoLabel = _ref2 => {
7836
7836
  };
7837
7837
 
7838
7838
  const WSMyApplications = () => {
7839
- var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _data$WaterConnection2, _SWdata$SewerageConne2, _WSapplicationsList, _SWapplicationsList, _WSapplicationsList2, _SWapplicationsList2, _applicationsList, _applicationsList2;
7839
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _data$WaterConnection2, _SWdata$SewerageConne2, _WSapplicationsList, _SWapplicationsList, _WSapplicationsList2, _SWapplicationsList2, _applicationsList;
7840
7840
  const _useTranslation = useTranslation(),
7841
7841
  t = _useTranslation.t;
7842
7842
  const user = Digit.UserService.getUser();
@@ -7892,15 +7892,114 @@ const WSMyApplications = () => {
7892
7892
  }),
7893
7893
  PTisLoading = _Digit$Hooks$pt$usePr.isLoading,
7894
7894
  PTdata = _Digit$Hooks$pt$usePr.data;
7895
+ const _useState = useState(0),
7896
+ pageOffset = _useState[0],
7897
+ setPageOffset = _useState[1];
7898
+ const _useState2 = useState(10),
7899
+ pageSize = _useState2[0],
7900
+ setPageSize = _useState2[1];
7901
+ const isMobile = window.Digit.Utils.browser.isMobile();
7902
+ const GetCell = value => /*#__PURE__*/React.createElement("span", {
7903
+ className: "cell-text"
7904
+ }, value);
7905
+ const columns = useMemo(() => {
7906
+ return [{
7907
+ Header: t("WS_MYCONNECTIONS_APPLICATION_NO"),
7908
+ disableSortBy: true,
7909
+ Cell: _ref => {
7910
+ var _row$original, _row$original2;
7911
+ let row = _ref.row;
7912
+ return /*#__PURE__*/React.createElement("span", {
7913
+ className: "link"
7914
+ }, /*#__PURE__*/React.createElement(Link, {
7915
+ to: "/digit-ui/citizen/ws/connection/application/" + encodeURI((_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationNo)
7916
+ }, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.applicationNo) || "NA"));
7917
+ }
7918
+ }, {
7919
+ Header: t("WS_SERVICE_NAME"),
7920
+ disableSortBy: true,
7921
+ Cell: _ref2 => {
7922
+ var _row$original3;
7923
+ let row = _ref2.row;
7924
+ return GetCell(t("WS_APPLICATION_TYPE_" + ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.applicationType)));
7925
+ }
7926
+ }, {
7927
+ Header: t("WS_CONSUMER_NAME"),
7928
+ disableSortBy: true,
7929
+ Cell: _ref3 => {
7930
+ var _row$original4, _row$original4$connec, _row$original5, _row$original5$proper, _row$original5$proper2;
7931
+ let row = _ref3.row;
7932
+ const names = ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : (_row$original4$connec = _row$original4.connectionHolders) === null || _row$original4$connec === void 0 ? void 0 : _row$original4$connec.map(owner => owner.name).join(",")) || ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : (_row$original5$proper = _row$original5.property) === null || _row$original5$proper === void 0 ? void 0 : (_row$original5$proper2 = _row$original5$proper.owners) === null || _row$original5$proper2 === void 0 ? void 0 : _row$original5$proper2.sort((a, b) => {
7933
+ var _a$additionalDetails, _b$additionalDetails;
7934
+ return (a === null || a === void 0 ? void 0 : (_a$additionalDetails = a.additionalDetails) === null || _a$additionalDetails === void 0 ? void 0 : _a$additionalDetails.ownerSequence) - (b === null || b === void 0 ? void 0 : (_b$additionalDetails = b.additionalDetails) === null || _b$additionalDetails === void 0 ? void 0 : _b$additionalDetails.ownerSequence);
7935
+ }).map(owner => owner.name).join(",")) || t("CS_NA");
7936
+ return GetCell(names);
7937
+ }
7938
+ }, {
7939
+ Header: t("WS_PROPERTY_ID"),
7940
+ disableSortBy: true,
7941
+ Cell: _ref4 => {
7942
+ var _row$original6;
7943
+ let row = _ref4.row;
7944
+ return GetCell(((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.propertyId) || t("CS_NA"));
7945
+ }
7946
+ }, {
7947
+ Header: t("WS_STATUS"),
7948
+ disableSortBy: true,
7949
+ Cell: _ref5 => {
7950
+ var _row$original7;
7951
+ let row = _ref5.row;
7952
+ return GetCell(t("CS_" + ((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.applicationStatus)) || t("CS_NA"));
7953
+ }
7954
+ }, {
7955
+ Header: t("WS_SLA"),
7956
+ disableSortBy: true,
7957
+ Cell: _ref6 => {
7958
+ var _row$original8;
7959
+ let row = _ref6.row;
7960
+ const slaDays = Math.round(((_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : _row$original8.sla) / (24 * 60 * 60 * 1000));
7961
+ return GetCell(slaDays ? slaDays + " Days" : t("CS_NA"));
7962
+ }
7963
+ }, {
7964
+ Header: t("WS_VIEW_DETAILS"),
7965
+ disableSortBy: true,
7966
+ Cell: _ref7 => {
7967
+ let row = _ref7.row;
7968
+ const application = row.original;
7969
+ return /*#__PURE__*/React.createElement("span", {
7970
+ className: "link"
7971
+ }, /*#__PURE__*/React.createElement(Link, {
7972
+ to: "/digit-ui/citizen/ws/connection/application/" + encodeURI(application === null || application === void 0 ? void 0 : application.applicationNo)
7973
+ }, t("WS_VIEW_DETAILS_LABEL")));
7974
+ }
7975
+ }, {
7976
+ Header: t("MAKE_PAYMENT"),
7977
+ disableSortBy: true,
7978
+ Cell: _ref8 => {
7979
+ var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$connecti, _application$connecti2, _application$property, _application$property2, _application$applicat5;
7980
+ let row = _ref8.row;
7981
+ const application = row.original;
7982
+ const businessService = application !== null && application !== void 0 && (_application$applicat = application.applicationNo) !== null && _application$applicat !== void 0 && _application$applicat.includes("SW") ? application !== null && application !== void 0 && (_application$applicat2 = application.applicationNo) !== null && _application$applicat2 !== void 0 && _application$applicat2.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("DC") ? "WS" : "WS.ONE_TIME_FEE";
7983
+ return (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("span", {
7984
+ className: "link"
7985
+ }, /*#__PURE__*/React.createElement(Link, {
7986
+ to: {
7987
+ pathname: "/digit-ui/citizen/payment/my-bills/" + businessService + "/" + (application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.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, "/", "+")) + "?workflow=WNS&tenantId=" + (application === null || application === void 0 ? void 0 : application.tenantId) + "&ConsumerName=" + ((application === null || application === void 0 ? void 0 : (_application$connecti = application.connectionHolders) === null || _application$connecti === void 0 ? void 0 : _application$connecti.map(owner => owner.name).join(",")) || (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$property = application.property) === null || _application$property === void 0 ? void 0 : (_application$property2 = _application$property.owners) === null || _application$property2 === void 0 ? void 0 : _application$property2.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? true : false),
7988
+ state: {}
7989
+ }
7990
+ }, t("MAKE_PAYMENT"))) : null;
7991
+ }
7992
+ }];
7993
+ }, [t]);
7895
7994
  if (isLoading || isSWLoading || PTisLoading) {
7896
7995
  return /*#__PURE__*/React.createElement(Loader, null);
7897
7996
  }
7898
- let _ref = data || {},
7899
- _ref$WaterConnection = _ref.WaterConnection,
7900
- WSapplicationsList = _ref$WaterConnection === void 0 ? [] : _ref$WaterConnection;
7901
- let _ref2 = SWdata || {},
7902
- _ref2$SewerageConnect = _ref2.SewerageConnections,
7903
- SWapplicationsList = _ref2$SewerageConnect === void 0 ? [] : _ref2$SewerageConnect;
7997
+ let _ref9 = data || {},
7998
+ _ref9$WaterConnection = _ref9.WaterConnection,
7999
+ WSapplicationsList = _ref9$WaterConnection === void 0 ? [] : _ref9$WaterConnection;
8000
+ let _ref0 = SWdata || {},
8001
+ _ref0$SewerageConnect = _ref0.SewerageConnections,
8002
+ SWapplicationsList = _ref0$SewerageConnect === void 0 ? [] : _ref0$SewerageConnect;
7904
8003
  WSapplicationsList = ((_WSapplicationsList = WSapplicationsList) === null || _WSapplicationsList === void 0 ? void 0 : _WSapplicationsList.map(ob => {
7905
8004
  var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3;
7906
8005
  return _extends({}, ob, {
@@ -7922,16 +8021,28 @@ const WSMyApplications = () => {
7922
8021
  property: PTdata === null || PTdata === void 0 ? void 0 : (_PTdata$Properties = PTdata.Properties) === null || _PTdata$Properties === void 0 ? void 0 : _PTdata$Properties.filter(pt => (pt === null || pt === void 0 ? void 0 : pt.propertyId) === (ob === null || ob === void 0 ? void 0 : ob.propertyId))[0]
7923
8022
  });
7924
8023
  });
7925
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WSInfoLabel, {
7926
- t: t
7927
- }), /*#__PURE__*/React.createElement("div", null, ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 && applicationsList.sort((a, b) => {
8024
+ const sortedApplications = ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 ? applicationsList.sort((a, b) => {
7928
8025
  var _b$auditDetails, _a$auditDetails;
7929
8026
  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);
7930
- }).map((application, index) => /*#__PURE__*/React.createElement("div", {
8027
+ }) : [];
8028
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WSInfoLabel, {
8029
+ t: t
8030
+ }), /*#__PURE__*/React.createElement("div", null, (sortedApplications === null || sortedApplications === void 0 ? void 0 : sortedApplications.length) > 0 ? isMobile ? sortedApplications.map((application, index) => /*#__PURE__*/React.createElement("div", {
7931
8031
  key: index
7932
8032
  }, /*#__PURE__*/React.createElement(WSApplication, {
7933
8033
  application: application
7934
- }))), !((_applicationsList2 = applicationsList) !== null && _applicationsList2 !== void 0 && _applicationsList2.length) > 0 && /*#__PURE__*/React.createElement("p", {
8034
+ }))) : /*#__PURE__*/React.createElement(Table, {
8035
+ t: t,
8036
+ data: sortedApplications.slice(pageOffset, pageOffset + pageSize),
8037
+ totalRecords: sortedApplications.length,
8038
+ columns: columns,
8039
+ onPageSizeChange: e => setPageSize(Number(e.target.value)),
8040
+ currentPage: Math.floor(pageOffset / pageSize),
8041
+ onNextPage: () => setPageOffset(pageOffset + pageSize),
8042
+ onPrevPage: () => setPageOffset(pageOffset - pageSize),
8043
+ pageSizeLimit: pageSize,
8044
+ disableSort: true
8045
+ }) : /*#__PURE__*/React.createElement("p", {
7935
8046
  style: {
7936
8047
  marginLeft: "16px",
7937
8048
  marginTop: "16px"
@@ -8341,7 +8452,7 @@ const getWSAcknowledgementData$1 = function (newApplication, property, tenantInf
8341
8452
  };
8342
8453
 
8343
8454
  const WSResponse = props => {
8344
- var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2;
8455
+ 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, _waterApplicationData21, _waterApplicationData22, _waterApplicationData23, _sewerageApplicationD8, _sewerageApplicationD9, _sewerageApplicationD0, _sewerageApplicationD1, _sewerageApplicationD10, _sewerageApplicationD11, _sewerageApplicationD12, _sewerageApplicationD13, _sewerageApplicationD14, _sewerageApplicationD15, _sewerageApplicationD16, _sewerageApplicationD17, _sewerageApplicationD18, _sewerageApplicationD19, _sewerageApplicationD20, _sewerageApplicationD21, _sewerageApplicationD22, _sewerageApplicationD23;
8345
8456
  const _useTranslation = useTranslation(),
8346
8457
  t = _useTranslation.t;
8347
8458
  const tenantId = Digit.ULBService.getCurrentTenantId();
@@ -8493,7 +8604,30 @@ const WSResponse = props => {
8493
8604
  }, /*#__PURE__*/React.createElement("path", {
8494
8605
  d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
8495
8606
  fill: "#a82227"
8496
- })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.createElement(ActionBar, {
8607
+ })), 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, {
8608
+ to: {
8609
+ pathname: "/digit-ui/citizen/payment/my-bills/" + (waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData9 = waterApplicationData.applicationData) !== null && _waterApplicationData9 !== void 0 && (_waterApplicationData0 = _waterApplicationData9.applicationNo) !== null && _waterApplicationData0 !== void 0 && _waterApplicationData0.includes("SW") ? waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData11 = waterApplicationData.applicationData) !== null && _waterApplicationData11 !== void 0 && (_waterApplicationData12 = _waterApplicationData11.applicationNo) !== null && _waterApplicationData12 !== void 0 && _waterApplicationData12.includes("DC") ? "WS" : "WS.ONE_TIME_FEE") + "/" + (waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData13 = waterApplicationData.applicationData) !== null && _waterApplicationData13 !== void 0 && (_waterApplicationData14 = _waterApplicationData13.applicationNo) !== null && _waterApplicationData14 !== void 0 && _waterApplicationData14.includes("DC") ? stringReplaceAll(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData15 = waterApplicationData.applicationData) === null || _waterApplicationData15 === void 0 ? void 0 : _waterApplicationData15.connectionNo, "/", "+") : stringReplaceAll(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData16 = waterApplicationData.applicationData) === null || _waterApplicationData16 === void 0 ? void 0 : _waterApplicationData16.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData17 = waterApplicationData.applicationData) === null || _waterApplicationData17 === void 0 ? void 0 : _waterApplicationData17.tenantId) + "&ConsumerName=" + ((waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData18 = waterApplicationData.applicationData) === null || _waterApplicationData18 === void 0 ? void 0 : (_waterApplicationData19 = _waterApplicationData18.connectionHolders) === null || _waterApplicationData19 === void 0 ? void 0 : _waterApplicationData19.map(owner => owner.name).join(",")) || (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData20 = waterApplicationData.propertyDetails) === null || _waterApplicationData20 === void 0 ? void 0 : (_waterApplicationData21 = _waterApplicationData20.owners) === null || _waterApplicationData21 === void 0 ? void 0 : _waterApplicationData21.map(owner => owner.name).join(","))) + "&isDisconnectFlow=" + (waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData22 = waterApplicationData.applicationData) !== null && _waterApplicationData22 !== void 0 && (_waterApplicationData23 = _waterApplicationData22.applicationNo) !== null && _waterApplicationData23 !== void 0 && _waterApplicationData23.includes("DC") ? true : false),
8610
+ state: {}
8611
+ }
8612
+ }, /*#__PURE__*/React.createElement("div", {
8613
+ style: {
8614
+ marginTop: "10px"
8615
+ }
8616
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
8617
+ label: t("MAKE_PAYMENT")
8618
+ }))) : 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, {
8619
+ to: {
8620
+ pathname: "/digit-ui/citizen/payment/my-bills/" + (sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD9 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD9 !== void 0 && (_sewerageApplicationD0 = _sewerageApplicationD9.applicationNo) !== null && _sewerageApplicationD0 !== void 0 && _sewerageApplicationD0.includes("SW") ? sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD11 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD11 !== void 0 && (_sewerageApplicationD12 = _sewerageApplicationD11.applicationNo) !== null && _sewerageApplicationD12 !== void 0 && _sewerageApplicationD12.includes("DC") ? "WS" : "WS.ONE_TIME_FEE") + "/" + (sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD13 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD13 !== void 0 && (_sewerageApplicationD14 = _sewerageApplicationD13.applicationNo) !== null && _sewerageApplicationD14 !== void 0 && _sewerageApplicationD14.includes("DC") ? stringReplaceAll(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD15 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD15 === void 0 ? void 0 : _sewerageApplicationD15.connectionNo, "/", "+") : stringReplaceAll(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD16 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD16 === void 0 ? void 0 : _sewerageApplicationD16.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD17 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD17 === void 0 ? void 0 : _sewerageApplicationD17.tenantId) + "&ConsumerName=" + ((sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD18 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD18 === void 0 ? void 0 : (_sewerageApplicationD19 = _sewerageApplicationD18.connectionHolders) === null || _sewerageApplicationD19 === void 0 ? void 0 : _sewerageApplicationD19.map(owner => owner.name).join(",")) || (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD20 = sewerageApplicationData.propertyDetails) === null || _sewerageApplicationD20 === void 0 ? void 0 : (_sewerageApplicationD21 = _sewerageApplicationD20.owners) === null || _sewerageApplicationD21 === void 0 ? void 0 : _sewerageApplicationD21.map(owner => owner.name).join(","))) + "&isDisconnectFlow=" + (sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD22 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD22 !== void 0 && (_sewerageApplicationD23 = _sewerageApplicationD22.applicationNo) !== null && _sewerageApplicationD23 !== void 0 && _sewerageApplicationD23.includes("DC") ? true : false),
8621
+ state: {}
8622
+ }
8623
+ }, /*#__PURE__*/React.createElement("div", {
8624
+ style: {
8625
+ marginTop: "10px",
8626
+ marginLeft: "10px"
8627
+ }
8628
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
8629
+ label: t("MAKE_PAYMENT")
8630
+ }))) : null), /*#__PURE__*/React.createElement(ActionBar, {
8497
8631
  style: {
8498
8632
  display: "flex",
8499
8633
  justifyContent: "flex-end",
@@ -8574,7 +8708,7 @@ const App = _ref => {
8574
8708
  show: location.pathname.includes("/my-applications")
8575
8709
  }, {
8576
8710
  path: "/digit-ui/citizen/ws/my-connections",
8577
- label: t("CS_WS_MY_CONNECTIONS"),
8711
+ label: t("WS_MYCONNECTIONS_HEADER"),
8578
8712
  show: location.pathname.includes("/my-connections")
8579
8713
  }, {
8580
8714
  path: "/digit-ui/citizen/ws/my-bills",
@@ -8592,6 +8726,10 @@ const App = _ref => {
8592
8726
  path: location.pathname,
8593
8727
  label: t("WS_APPLICATION_DETAILS_HEADER"),
8594
8728
  show: location.pathname.includes("/connection/application")
8729
+ }, {
8730
+ path: location.pathname,
8731
+ label: t("WS_APPLICATION_DETAILS_HEADER"),
8732
+ show: location.pathname.includes("ws-response")
8595
8733
  }];
8596
8734
  const getDynamicBreadcrumbs = () => {
8597
8735
  return crumbs.filter(crumb => crumb.show);
@@ -8617,7 +8755,7 @@ const App = _ref => {
8617
8755
  }, /*#__PURE__*/React.createElement(ModuleHeader, {
8618
8756
  leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
8619
8757
  className: "icon"
8620
- }), "Back"),
8758
+ }), t("CS_COMMON_BACK")),
8621
8759
  onLeftClick: () => window.history.back(),
8622
8760
  breadcrumbs: getDynamicBreadcrumbs()
8623
8761
  }), /*#__PURE__*/React.createElement("div", {
@@ -10291,31 +10429,6 @@ const WSDocsRequired = _ref => {
10291
10429
  }))));
10292
10430
  };
10293
10431
 
10294
- const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
10295
- const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
10296
- function _catch(body, recover) {
10297
- try {
10298
- var result = body();
10299
- } catch (e) {
10300
- return recover(e);
10301
- }
10302
- if (result && result.then) {
10303
- return result.then(void 0, recover);
10304
- }
10305
- return result;
10306
- }
10307
- function _finallyRethrows(body, finalizer) {
10308
- try {
10309
- var result = body();
10310
- } catch (e) {
10311
- return finalizer(true, e);
10312
- }
10313
- if (result && result.then) {
10314
- return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
10315
- }
10316
- return finalizer(false, result);
10317
- }
10318
-
10319
10432
  const WSSewerageConnectionDetails = _ref => {
10320
10433
  var _formData$sewerageCon, _formData$sewerageCon2;
10321
10434
  let t = _ref.t,
@@ -10749,6 +10862,31 @@ const WSActivationDetails = _ref => {
10749
10862
  }))));
10750
10863
  };
10751
10864
 
10865
+ const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
10866
+ const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
10867
+ function _catch(body, recover) {
10868
+ try {
10869
+ var result = body();
10870
+ } catch (e) {
10871
+ return recover(e);
10872
+ }
10873
+ if (result && result.then) {
10874
+ return result.then(void 0, recover);
10875
+ }
10876
+ return result;
10877
+ }
10878
+ function _finallyRethrows(body, finalizer) {
10879
+ try {
10880
+ var result = body();
10881
+ } catch (e) {
10882
+ return finalizer(true, e);
10883
+ }
10884
+ if (result && result.then) {
10885
+ return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
10886
+ }
10887
+ return finalizer(false, result);
10888
+ }
10889
+
10752
10890
  const createConnectionDetails = () => ({
10753
10891
  water: true,
10754
10892
  sewerage: false,
@@ -20991,14 +21129,6 @@ const useInboxTableConfig = _ref => {
20991
21129
  }];
20992
21130
  });
20993
21131
  return {
20994
- getCellProps: cellInfo => {
20995
- return {
20996
- style: {
20997
- padding: "20px 18px",
20998
- fontSize: "16px"
20999
- }
21000
- };
21001
- },
21002
21132
  disableSort: false,
21003
21133
  autoSort: false,
21004
21134
  manualPagination: true,
@@ -21324,12 +21454,6 @@ const WSInbox = _ref => {
21324
21454
  });
21325
21455
  });
21326
21456
  }, [statuses]);
21327
- let links = [{
21328
- text: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
21329
- link: "/digit-ui/employee/ws/create-application",
21330
- roles: ["WS_CEMP", "SW_CEMP"]
21331
- }];
21332
- links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
21333
21457
  const PropsForInboxLinks = {
21334
21458
  logoIcon: /*#__PURE__*/React.createElement(DropIcon, null),
21335
21459
  headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW"
@@ -24244,7 +24368,7 @@ const newConfig = [{
24244
24368
  }
24245
24369
  }, {
24246
24370
  route: "property-location-details",
24247
- component: "CPTPropertyLocationDetails",
24371
+ component: "WSPropertyLocationDetails",
24248
24372
  key: "propertyLocationDetails",
24249
24373
  nextStep: "property-water-details",
24250
24374
  hideInEmployee: true,
@@ -28207,26 +28331,16 @@ const WSApplicationDetails = () => {
28207
28331
  }
28208
28332
  }, t("WS_FEE_DEATAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, null, 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$data5 = _paymentDetails$data4.billDetails) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5[0]) === null || _paymentDetails$data6 === void 0 ? void 0 : _paymentDetails$data6.billAccountDetails.map(bill => /*#__PURE__*/React.createElement(Row, {
28209
28333
  label: t(bill === null || bill === void 0 ? void 0 : bill.taxHeadCode),
28210
- text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2),
28211
- textStyle: {
28212
- textAlign: "right"
28213
- }
28334
+ text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2)
28214
28335
  })), /*#__PURE__*/React.createElement(Row, {
28215
28336
  label: t("WS_TOTAL_AMOUNT_DUE"),
28216
- text: "\u20B9" + Number(isPaid ? 0 : paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data7 = paymentDetails.data) === null || _paymentDetails$data7 === void 0 ? void 0 : (_paymentDetails$data8 = _paymentDetails$data7.Bill) === null || _paymentDetails$data8 === void 0 ? void 0 : (_paymentDetails$data9 = _paymentDetails$data8[0]) === null || _paymentDetails$data9 === void 0 ? void 0 : (_paymentDetails$data0 = _paymentDetails$data9.billDetails) === null || _paymentDetails$data0 === void 0 ? void 0 : (_paymentDetails$data1 = _paymentDetails$data0[0]) === null || _paymentDetails$data1 === void 0 ? void 0 : _paymentDetails$data1.amount).toFixed(2),
28217
- textStyle: {
28218
- textAlign: "right",
28219
- fontSize: "18px",
28220
- fontWeight: "700"
28221
- }
28337
+ text: "\u20B9" + Number(isPaid ? 0 : paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data7 = paymentDetails.data) === null || _paymentDetails$data7 === void 0 ? void 0 : (_paymentDetails$data8 = _paymentDetails$data7.Bill) === null || _paymentDetails$data8 === void 0 ? void 0 : (_paymentDetails$data9 = _paymentDetails$data8[0]) === null || _paymentDetails$data9 === void 0 ? void 0 : (_paymentDetails$data0 = _paymentDetails$data9.billDetails) === null || _paymentDetails$data0 === void 0 ? void 0 : (_paymentDetails$data1 = _paymentDetails$data0[0]) === null || _paymentDetails$data1 === void 0 ? void 0 : _paymentDetails$data1.amount).toFixed(2)
28222
28338
  }), /*#__PURE__*/React.createElement(Row, {
28223
28339
  label: t("WS_COMMON_TABLE_COL_APPLICATION_STATUS"),
28224
28340
  text: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data10 = paymentDetails.data) === null || _paymentDetails$data10 === void 0 ? void 0 : (_paymentDetails$data11 = _paymentDetails$data10.Bill) === null || _paymentDetails$data11 === void 0 ? void 0 : (_paymentDetails$data12 = _paymentDetails$data11[0]) === null || _paymentDetails$data12 === void 0 ? void 0 : (_paymentDetails$data13 = _paymentDetails$data12.billDetails) === null || _paymentDetails$data13 === void 0 ? void 0 : (_paymentDetails$data14 = _paymentDetails$data13[0]) === null || _paymentDetails$data14 === void 0 ? void 0 : _paymentDetails$data14.amount).toFixed(2) == 0 ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
28225
28341
  textStyle: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data15 = paymentDetails.data) === null || _paymentDetails$data15 === void 0 ? void 0 : (_paymentDetails$data16 = _paymentDetails$data15.Bill) === null || _paymentDetails$data16 === void 0 ? void 0 : (_paymentDetails$data17 = _paymentDetails$data16[0]) === null || _paymentDetails$data17 === void 0 ? void 0 : (_paymentDetails$data18 = _paymentDetails$data17.billDetails) === null || _paymentDetails$data18 === void 0 ? void 0 : (_paymentDetails$data19 = _paymentDetails$data18[0]) === null || _paymentDetails$data19 === void 0 ? void 0 : _paymentDetails$data19.amount).toFixed(2) == 0 ? {
28226
- textAlign: "right",
28227
28342
  color: "darkgreen"
28228
28343
  } : {
28229
- textAlign: "right",
28230
28344
  color: "red"
28231
28345
  }
28232
28346
  }))), /*#__PURE__*/React.createElement(CardHeader, {
@@ -30917,7 +31031,7 @@ const WSConnection = _ref => {
30917
31031
  };
30918
31032
 
30919
31033
  const MyConnections = _ref => {
30920
- var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList, _connectionList2;
31034
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList;
30921
31035
  const _useTranslation = useTranslation(),
30922
31036
  t = _useTranslation.t;
30923
31037
  const user = Digit.UserService.getUser();
@@ -30948,7 +31062,7 @@ const MyConnections = _ref => {
30948
31062
  }),
30949
31063
  isSWLoading = _Digit$Hooks$ws$useMy2.isLoading,
30950
31064
  SWdata = _Digit$Hooks$ws$useMy2.data;
30951
- let connectionList = data === null || data === void 0 ? void 0 : data.WaterConnection.concat(SWdata === null || SWdata === void 0 ? void 0 : SWdata.SewerageConnections);
31065
+ let connectionList = ((data === null || data === void 0 ? void 0 : data.WaterConnection) || []).concat((SWdata === null || SWdata === void 0 ? void 0 : SWdata.SewerageConnections) || []);
30952
31066
  let applicationNoWS = data && (data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : _data$WaterConnection.map(ob => ob === null || ob === void 0 ? void 0 : ob.propertyId).join(",")) || "";
30953
31067
  let applicaionNoSW = SWdata && (SWdata === null || SWdata === void 0 ? void 0 : (_SWdata$SewerageConne = SWdata.SewerageConnections) === null || _SWdata$SewerageConne === void 0 ? void 0 : _SWdata$SewerageConne.map(ob => ob === null || ob === void 0 ? void 0 : ob.propertyId).join(",")) || "";
30954
31068
  let applicationNos = applicationNoWS.concat(applicaionNoSW);
@@ -30971,16 +31085,114 @@ const MyConnections = _ref => {
30971
31085
  property: PTdata === null || PTdata === void 0 ? void 0 : (_PTdata$Properties = PTdata.Properties) === null || _PTdata$Properties === void 0 ? void 0 : _PTdata$Properties.filter(pt => (pt === null || pt === void 0 ? void 0 : pt.propertyId) === (ob === null || ob === void 0 ? void 0 : ob.propertyId))[0]
30972
31086
  });
30973
31087
  });
31088
+ const _useState = useState(0),
31089
+ pageOffset = _useState[0],
31090
+ setPageOffset = _useState[1];
31091
+ const _useState2 = useState(10),
31092
+ pageSize = _useState2[0],
31093
+ setPageSize = _useState2[1];
31094
+ const isMobile = window.Digit.Utils.browser.isMobile();
31095
+ const GetCell = value => /*#__PURE__*/React.createElement("span", {
31096
+ className: "cell-text"
31097
+ }, value);
31098
+ const columns = useMemo(() => {
31099
+ return [{
31100
+ Header: t("WS_MYCONNECTIONS_CONSUMER_NO"),
31101
+ disableSortBy: true,
31102
+ Cell: _ref2 => {
31103
+ var _row$original, _row$original2;
31104
+ let row = _ref2.row;
31105
+ return /*#__PURE__*/React.createElement("span", {
31106
+ className: "link"
31107
+ }, /*#__PURE__*/React.createElement(Link, {
31108
+ to: {
31109
+ pathname: "/digit-ui/citizen/ws/connection/details/" + encodeURI((_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationNo),
31110
+ state: _extends({}, row.original)
31111
+ }
31112
+ }, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.connectionNo) || "NA"));
31113
+ }
31114
+ }, {
31115
+ Header: t("WS_MYCONNECTIONS_APPLICATION_NO"),
31116
+ disableSortBy: true,
31117
+ Cell: _ref3 => {
31118
+ var _row$original3;
31119
+ let row = _ref3.row;
31120
+ return /*#__PURE__*/React.createElement("span", null, ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.applicationNo) || "NA");
31121
+ }
31122
+ }, {
31123
+ Header: t("WS_SERVICE_NAME_LABEL"),
31124
+ disableSortBy: true,
31125
+ Cell: _ref4 => {
31126
+ var _row$original4;
31127
+ let row = _ref4.row;
31128
+ return GetCell(t("WS_APPLICATION_TYPE_" + ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.applicationType)));
31129
+ }
31130
+ }, {
31131
+ Header: t("WS_CONSUMER_NAME"),
31132
+ disableSortBy: true,
31133
+ Cell: _ref5 => {
31134
+ var _row$original5, _row$original5$connec, _row$original6, _row$original6$proper, _row$original6$proper2, _row$original6$proper3;
31135
+ let row = _ref5.row;
31136
+ const names = ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : (_row$original5$connec = _row$original5.connectionHolders) === null || _row$original5$connec === void 0 ? void 0 : _row$original5$connec.map(owner => owner.name).join(",")) || ((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : (_row$original6$proper = _row$original6.property) === null || _row$original6$proper === void 0 ? void 0 : (_row$original6$proper2 = _row$original6$proper.owners) === null || _row$original6$proper2 === void 0 ? void 0 : (_row$original6$proper3 = _row$original6$proper2.sort((a, b) => {
31137
+ var _a$additionalDetails, _b$additionalDetails;
31138
+ return (a === null || a === void 0 ? void 0 : (_a$additionalDetails = a.additionalDetails) === null || _a$additionalDetails === void 0 ? void 0 : _a$additionalDetails.ownerSequence) - (b === null || b === void 0 ? void 0 : (_b$additionalDetails = b.additionalDetails) === null || _b$additionalDetails === void 0 ? void 0 : _b$additionalDetails.ownerSequence);
31139
+ })) === null || _row$original6$proper3 === void 0 ? void 0 : _row$original6$proper3.map(owner => owner.name).join(",")) || t("CS_NA");
31140
+ return GetCell(names);
31141
+ }
31142
+ }, {
31143
+ Header: t("WS_MYCONNECTIONS_STATUS"),
31144
+ disableSortBy: true,
31145
+ Cell: _ref6 => {
31146
+ var _row$original7;
31147
+ let row = _ref6.row;
31148
+ return GetCell(t((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.status) || t("CS_NA"));
31149
+ }
31150
+ }, {
31151
+ Header: t("WS_VIEW_DETAILS"),
31152
+ disableSortBy: true,
31153
+ Cell: _ref7 => {
31154
+ let row = _ref7.row;
31155
+ const application = row.original;
31156
+ return /*#__PURE__*/React.createElement("span", {
31157
+ className: "link"
31158
+ }, /*#__PURE__*/React.createElement(Link, {
31159
+ to: {
31160
+ pathname: "/digit-ui/citizen/ws/connection/details/" + encodeURI(application === null || application === void 0 ? void 0 : application.applicationNo),
31161
+ state: _extends({}, application)
31162
+ }
31163
+ }, t("WS_VIEW_DETAILS_LABEL")));
31164
+ }
31165
+ }];
31166
+ }, [t]);
30974
31167
  if (isLoading || PTisLoading || isSWLoading) {
30975
31168
  return /*#__PURE__*/React.createElement(Loader, null);
30976
31169
  }
30977
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, t("WS_MYCONNECTIONS_HEADER") + " " + (connectionList ? "(" + connectionList.length + ")" : "")), /*#__PURE__*/React.createElement(WSInfoLabel, {
31170
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WSInfoLabel, {
30978
31171
  t: t
30979
- }), /*#__PURE__*/React.createElement("div", null, ((_connectionList = connectionList) === null || _connectionList === void 0 ? void 0 : _connectionList.length) > 0 && connectionList.map((application, index) => /*#__PURE__*/React.createElement("div", {
31172
+ }), /*#__PURE__*/React.createElement("div", null, ((_connectionList = connectionList) === null || _connectionList === void 0 ? void 0 : _connectionList.length) > 0 ? isMobile ? connectionList.map((application, index) => /*#__PURE__*/React.createElement("div", {
30980
31173
  key: index
30981
31174
  }, /*#__PURE__*/React.createElement(WSConnection, {
30982
31175
  application: application
30983
- }))), !((_connectionList2 = connectionList) !== null && _connectionList2 !== void 0 && _connectionList2.length) > 0 && /*#__PURE__*/React.createElement("p", {
31176
+ }))) : /*#__PURE__*/React.createElement(Table, {
31177
+ t: t,
31178
+ data: connectionList.slice(pageOffset, pageOffset + pageSize),
31179
+ totalRecords: connectionList.length,
31180
+ columns: columns,
31181
+ getCellProps: cellInfo => {
31182
+ return {
31183
+ style: {
31184
+ padding: "20px 18px",
31185
+ fontSize: "16px"
31186
+ }
31187
+ };
31188
+ },
31189
+ onPageSizeChange: e => setPageSize(Number(e.target.value)),
31190
+ currentPage: Math.floor(pageOffset / pageSize),
31191
+ onNextPage: () => setPageOffset(pageOffset + pageSize),
31192
+ onPrevPage: () => setPageOffset(pageOffset - pageSize),
31193
+ pageSizeLimit: pageSize,
31194
+ disableSort: true
31195
+ }) : /*#__PURE__*/React.createElement("p", {
30984
31196
  style: {
30985
31197
  marginLeft: "16px",
30986
31198
  marginTop: "16px"
@@ -32226,154 +32438,6 @@ const WSInfoPage = () => {
32226
32438
  })));
32227
32439
  };
32228
32440
 
32229
- const _excluded$3 = ["address", "actionCancelOnSubmit", "isEdit", "onSelect", "config", "hideZRO", "formData"];
32230
- const PropertyLocationDetails = _ref => {
32231
- var _formDataProp$cpt2;
32232
- let address = _ref.address,
32233
- isEdit = _ref.isEdit,
32234
- onSelect = _ref.onSelect,
32235
- config = _ref.config,
32236
- hideZRO = _ref.hideZRO,
32237
- formDataProp = _ref.formData,
32238
- props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
32239
- const _useTranslation = useTranslation(),
32240
- t = _useTranslation.t;
32241
- const _useState = useState({
32242
- addressType: (address === null || address === void 0 ? void 0 : address.addressType) || "",
32243
- pincode: (address === null || address === void 0 ? void 0 : address.pinCode) || "",
32244
- city: (address === null || address === void 0 ? void 0 : address.city) || "",
32245
- locality: (address === null || address === void 0 ? void 0 : address.locality) || "",
32246
- streetName: (address === null || address === void 0 ? void 0 : address.streetName) || "",
32247
- houseNo: (address === null || address === void 0 ? void 0 : address.houseNumber) || "",
32248
- houseName: (address === null || address === void 0 ? void 0 : address.houseName) || "",
32249
- landmark: (address === null || address === void 0 ? void 0 : address.landmark) || "",
32250
- addressLine1: (address === null || address === void 0 ? void 0 : address.address) || "",
32251
- addressLine2: (address === null || address === void 0 ? void 0 : address.address2) || "",
32252
- latitude: (address === null || address === void 0 ? void 0 : address.latitude) || "",
32253
- longitude: (address === null || address === void 0 ? void 0 : address.longitude) || "",
32254
- assembly: (address === null || address === void 0 ? void 0 : address.assembly) || "",
32255
- block: (address === null || address === void 0 ? void 0 : address.block) || "",
32256
- zone: (address === null || address === void 0 ? void 0 : address.zone) || "",
32257
- zroLocation: (address === null || address === void 0 ? void 0 : address.zroLocation) || "",
32258
- subLocality: (address === null || address === void 0 ? void 0 : address.subLocality) || "",
32259
- actualAssembly: (address === null || address === void 0 ? void 0 : address.actualAssembly) || "",
32260
- actualWard: (address === null || address === void 0 ? void 0 : address.actualWard) || "",
32261
- actualZone: (address === null || address === void 0 ? void 0 : address.actualZone) || ""
32262
- }),
32263
- formData = _useState[0],
32264
- setFormData = _useState[1];
32265
- const isPropertyFound = window.location.href.includes("ws/old-application");
32266
- useEffect(() => {
32267
- if (props.register) {
32268
- props.register({
32269
- name: "cpt"
32270
- });
32271
- props.register({
32272
- name: "cptId"
32273
- });
32274
- }
32275
- }, [props.register]);
32276
- useEffect(() => {
32277
- var _formDataProp$cpt;
32278
- if (formDataProp !== null && formDataProp !== void 0 && (_formDataProp$cpt = formDataProp.cpt) !== null && _formDataProp$cpt !== void 0 && _formDataProp$cpt.details) {
32279
- var _addressData$locality, _addressData$geoLocat, _addressData$geoLocat2, _addressData$locality2, _addressData$geoLocat3, _addressData$geoLocat4, _addressData$locality3, _addressData$addition, _addressData$addition2, _addressData$addition3, _addressData$addition4, _addressData$addition5, _addressData$addition6, _addressData$addition7, _addressData$addition8, _addressData$addition9, _addressData$addition0, _addressData$addition1, _addressData$addition10, _addressData$addition11;
32280
- const details = formDataProp.cpt.details;
32281
- const addressData = details.address || {};
32282
- const additionalDetails = details.additionalDetails || {};
32283
- const localityCode = ((_addressData$locality = addressData.locality) === null || _addressData$locality === void 0 ? void 0 : _addressData$locality.code) || addressData.locality || "";
32284
- const lat = (_addressData$geoLocat = addressData.geoLocation) !== null && _addressData$geoLocat !== void 0 && _addressData$geoLocat.latitude && ((_addressData$geoLocat2 = addressData.geoLocation) === null || _addressData$geoLocat2 === void 0 ? void 0 : _addressData$geoLocat2.latitude) !== 0 ? addressData.geoLocation.latitude : ((_addressData$locality2 = addressData.locality) === null || _addressData$locality2 === void 0 ? void 0 : _addressData$locality2.latitude) || addressData.latitude || "";
32285
- const lng = (_addressData$geoLocat3 = addressData.geoLocation) !== null && _addressData$geoLocat3 !== void 0 && _addressData$geoLocat3.longitude && ((_addressData$geoLocat4 = addressData.geoLocation) === null || _addressData$geoLocat4 === void 0 ? void 0 : _addressData$geoLocat4.longitude) !== 0 ? addressData.geoLocation.longitude : ((_addressData$locality3 = addressData.locality) === null || _addressData$locality3 === void 0 ? void 0 : _addressData$locality3.longitude) || addressData.longitude || "";
32286
- const zroCode = addressData.zroLocation || additionalDetails.zroLocation || ((_addressData$addition = addressData.additionalDetails) === null || _addressData$addition === void 0 ? void 0 : _addressData$addition.zroLocation) || "";
32287
- const zroValue = zroCode ? {
32288
- code: zroCode,
32289
- name: zroCode,
32290
- i18nKey: zroCode
32291
- } : "";
32292
- setFormData({
32293
- pincode: addressData.pincode || "",
32294
- city: addressData.city || "",
32295
- locality: localityCode,
32296
- streetName: addressData.street || "",
32297
- houseNo: addressData.houseNo || "",
32298
- landmark: addressData.landmark || "",
32299
- latitude: lat,
32300
- longitude: lng,
32301
- assembly: additionalDetails.assembly || ((_addressData$addition2 = addressData.additionalDetails) === null || _addressData$addition2 === void 0 ? void 0 : _addressData$addition2.assembly) || "",
32302
- block: additionalDetails.block || ((_addressData$addition3 = addressData.additionalDetails) === null || _addressData$addition3 === void 0 ? void 0 : _addressData$addition3.block) || "",
32303
- zone: additionalDetails.zone || ((_addressData$addition4 = addressData.additionalDetails) === null || _addressData$addition4 === void 0 ? void 0 : _addressData$addition4.zone) || "",
32304
- zroLocation: zroCode,
32305
- zro: zroValue,
32306
- subLocality: addressData.subLocality || "",
32307
- actualAssembly: addressData.actualAssembly || additionalDetails.actualAssembly || ((_addressData$addition5 = addressData.additionalDetails) === null || _addressData$addition5 === void 0 ? void 0 : _addressData$addition5.actualAssembly) || "",
32308
- actualWard: addressData.actualWard || additionalDetails.actualWard || ((_addressData$addition6 = addressData.additionalDetails) === null || _addressData$addition6 === void 0 ? void 0 : _addressData$addition6.actualWard) || "",
32309
- actualZone: addressData.actualZone || additionalDetails.actualZone || ((_addressData$addition7 = addressData.additionalDetails) === null || _addressData$addition7 === void 0 ? void 0 : _addressData$addition7.actualZone) || "",
32310
- address: _extends({}, addressData, {
32311
- city: addressData.city || "",
32312
- pincode: addressData.pincode || "",
32313
- locality: localityCode,
32314
- streetName: addressData.street || "",
32315
- houseNo: addressData.houseNo || "",
32316
- addressLine1: addressData.street || "",
32317
- latitude: lat,
32318
- longitude: lng,
32319
- zroLocation: zroCode,
32320
- zro: zroValue,
32321
- assembly: additionalDetails.assembly || ((_addressData$addition8 = addressData.additionalDetails) === null || _addressData$addition8 === void 0 ? void 0 : _addressData$addition8.assembly) || "",
32322
- block: additionalDetails.block || ((_addressData$addition9 = addressData.additionalDetails) === null || _addressData$addition9 === void 0 ? void 0 : _addressData$addition9.block) || "",
32323
- zone: additionalDetails.zone || ((_addressData$addition0 = addressData.additionalDetails) === null || _addressData$addition0 === void 0 ? void 0 : _addressData$addition0.zone) || "",
32324
- subLocality: addressData.subLocality || "",
32325
- actualWard: addressData.actualWard || additionalDetails.actualWard || ((_addressData$addition1 = addressData.additionalDetails) === null || _addressData$addition1 === void 0 ? void 0 : _addressData$addition1.actualWard) || "",
32326
- actualZone: addressData.actualZone || additionalDetails.actualZone || ((_addressData$addition10 = addressData.additionalDetails) === null || _addressData$addition10 === void 0 ? void 0 : _addressData$addition10.actualZone) || "",
32327
- actualAssembly: addressData.actualAssembly || additionalDetails.actualAssembly || ((_addressData$addition11 = addressData.additionalDetails) === null || _addressData$addition11 === void 0 ? void 0 : _addressData$addition11.actualAssembly) || ""
32328
- })
32329
- });
32330
- } else if ((formDataProp === null || formDataProp === void 0 ? void 0 : formDataProp.cpt) === null) {
32331
- const clearedData = {
32332
- addressType: "",
32333
- pincode: "",
32334
- city: "",
32335
- locality: "",
32336
- streetName: "",
32337
- houseNo: "",
32338
- houseName: "",
32339
- landmark: "",
32340
- addressLine1: "",
32341
- addressLine2: "",
32342
- latitude: "",
32343
- longitude: "",
32344
- assembly: "",
32345
- block: "",
32346
- zone: "",
32347
- zroLocation: "",
32348
- subLocality: "",
32349
- actualWard: "",
32350
- actualZone: "",
32351
- actualAssembly: "",
32352
- zro: "",
32353
- address: {}
32354
- };
32355
- setFormData(clearedData);
32356
- onSelect((config === null || config === void 0 ? void 0 : config.key) || "address", clearedData);
32357
- }
32358
- }, [formDataProp === null || formDataProp === void 0 ? void 0 : (_formDataProp$cpt2 = formDataProp.cpt) === null || _formDataProp$cpt2 === void 0 ? void 0 : _formDataProp$cpt2.details, formDataProp === null || formDataProp === void 0 ? void 0 : formDataProp.cpt]);
32359
- return /*#__PURE__*/React.createElement(AddressDetails, {
32360
- t: t,
32361
- formData: formData,
32362
- onSelect: (key, data) => {
32363
- setFormData(prev => _extends({}, prev, data));
32364
- onSelect(key, data);
32365
- },
32366
- config: _extends({
32367
- isCollapsible: false
32368
- }, config),
32369
- isEdit: isEdit,
32370
- showZRO: hideZRO ? false : true,
32371
- showMapActualLocation: true,
32372
- disable: isPropertyFound,
32373
- hideNextButton: true
32374
- });
32375
- };
32376
-
32377
32441
  const WSPropertyLocationDetails = props => {
32378
32442
  const t = props.t,
32379
32443
  config = props.config,
@@ -32386,6 +32450,7 @@ const WSPropertyLocationDetails = props => {
32386
32450
  onSelect(config.key, data);
32387
32451
  };
32388
32452
  const onSkip = () => onSelect();
32453
+ const PropertyLocationDetails = Digit.ComponentRegistryService.getComponent("PropertyLocationDetails");
32389
32454
  if (userType === "citizen") {
32390
32455
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Timeline, {
32391
32456
  currentStep: 2
@@ -32409,7 +32474,7 @@ const WSPropertyLocationDetails = props => {
32409
32474
  return /*#__PURE__*/React.createElement(PropertyLocationDetails, props);
32410
32475
  };
32411
32476
 
32412
- const _excluded$4 = ["errors"],
32477
+ const _excluded$3 = ["errors"],
32413
32478
  _excluded2$2 = ["register", "control", "watch", "setValue", "unregister", "handleSubmit", "formState", "getValues", "reset"];
32414
32479
  const ApplicationBillAmendment = () => {
32415
32480
  var _data$BillingService, _data$BillingService$, _data$BillingService2, _data$BillingService3, _state, _state$data, _state$data$applicati, _state$data$applicati2, _state$data$applicati3, _billSearchData, _billSearchData$filte, _billSearchData2, _state9, _state9$data, _errors$WS_REDUCED_AM, _errors$WS_ADDITIONAL, _billSearchData3, _errors$effectiveTill, _errors$effectiveTill2, _state12, _state12$data;
@@ -32466,7 +32531,7 @@ const ApplicationBillAmendment = () => {
32466
32531
  handleSubmit = _useForm.handleSubmit,
32467
32532
  _useForm$formState = _useForm.formState,
32468
32533
  errors = _useForm$formState.errors,
32469
- rest = _objectWithoutPropertiesLoose(_useForm$formState, _excluded$4),
32534
+ rest = _objectWithoutPropertiesLoose(_useForm$formState, _excluded$3),
32470
32535
  getValues = _useForm.getValues,
32471
32536
  methods = _objectWithoutPropertiesLoose(_useForm, _excluded2$2);
32472
32537
  const _Digit$Hooks$ws$useAp = Digit.Hooks.ws.useApplicationActionsBillAmendUpdate(),
@@ -40906,7 +40971,7 @@ function PropertyDocuments(_ref) {
40906
40971
  y1: "15",
40907
40972
  x2: "12",
40908
40973
  y2: "3"
40909
- }))), /*#__PURE__*/React.createElement("label", {
40974
+ }))), applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "WF_PENDING_FOR_PAYMENT" && /*#__PURE__*/React.createElement("label", {
40910
40975
  style: {
40911
40976
  display: "flex",
40912
40977
  alignItems: "center",
@@ -43976,7 +44041,7 @@ const ApplicationDetails = props => {
43976
44041
  };
43977
44042
 
43978
44043
  const ApplicationDetails$1 = () => {
43979
- var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data37, _workflowDetails$data38, _workflowDetails$data39, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a15, _applicationDetails$a16, _reciept_data2, _reciept_data2$Paymen, _applicationDetails$p11, _applicationDetails$p12, _applicationDetails$p13, _applicationDetails$p14, _applicationDetails$p15, _applicationDetails$p16;
44044
+ var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data37, _workflowDetails$data38, _workflowDetails$data39, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a18, _applicationDetails$a19, _reciept_data$Payment2, _applicationDetails$p11, _applicationDetails$p12, _applicationDetails$p13, _applicationDetails$p14, _applicationDetails$p15, _applicationDetails$p16;
43980
44045
  const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
43981
44046
  try {
43982
44047
  let response = null;
@@ -44112,6 +44177,15 @@ const ApplicationDetails$1 = () => {
44112
44177
  });
44113
44178
  const _Digit$Hooks$ws$useWS2 = Digit.Hooks.ws.useWSApplicationActions(serviceType),
44114
44179
  mutate = _Digit$Hooks$ws$useWS2.mutate;
44180
+ const _Digit$Hooks$useRecie = Digit.Hooks.useRecieptSearch({
44181
+ tenantId: tenantId,
44182
+ businessService: serviceType == "WATER" ? "WS.ONE_TIME_FEE" : "SW.ONE_TIME_FEE",
44183
+ consumerCodes: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.applicationNo
44184
+ }, {
44185
+ enabled: applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a7 = applicationDetails.applicationData) !== null && _applicationDetails$a7 !== void 0 && (_applicationDetails$a8 = _applicationDetails$a7.applicationType) !== null && _applicationDetails$a8 !== void 0 && _applicationDetails$a8.includes("NEW_") ? true : false,
44186
+ privacy: Digit.Utils.getPrivacyObject()
44187
+ }),
44188
+ reciept_data = _Digit$Hooks$useRecie.data;
44115
44189
  const clearDataDetails = () => {
44116
44190
  clearSessionFormData();
44117
44191
  setSessionFormData({});
@@ -44125,7 +44199,7 @@ const ApplicationDetails$1 = () => {
44125
44199
  return true;
44126
44200
  };
44127
44201
  let dowloadOptions = [],
44128
- appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.applicationStatus) || "";
44202
+ appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.applicationStatus) || "";
44129
44203
  workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.actionState) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.nextActions) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.forEach(action => {
44130
44204
  if ((action === null || action === void 0 ? void 0 : action.action) === "ACTIVATE_CONNECTION") {
44131
44205
  action.redirectionUrll = {
@@ -44256,10 +44330,10 @@ const ApplicationDetails$1 = () => {
44256
44330
  const oldApplication = serviceType === "WATER" ? oldData === null || oldData === void 0 ? void 0 : (_oldData$WaterConnect = oldData.WaterConnection) === null || _oldData$WaterConnect === void 0 ? void 0 : _oldData$WaterConnect[(oldData === null || oldData === void 0 ? void 0 : (_oldData$WaterConnect2 = oldData.WaterConnection) === null || _oldData$WaterConnect2 === void 0 ? void 0 : _oldData$WaterConnect2.length) - 1] : oldData === null || oldData === void 0 ? void 0 : (_oldData$SewerageConn = oldData.SewerageConnections) === null || _oldData$SewerageConn === void 0 ? void 0 : _oldData$SewerageConn[(oldData === null || oldData === void 0 ? void 0 : (_oldData$SewerageConn2 = oldData.SewerageConnections) === null || _oldData$SewerageConn2 === void 0 ? void 0 : _oldData$SewerageConn2.length) - 1];
44257
44331
  const handleDownloadPdf = function () {
44258
44332
  try {
44259
- var _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9;
44260
- const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.tenantId;
44333
+ var _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10;
44334
+ const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a0 = applicationDetails.applicationData) === null || _applicationDetails$a0 === void 0 ? void 0 : _applicationDetails$a0.tenantId;
44261
44335
  let result = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
44262
- if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a8 = applicationDetails.applicationData) !== null && _applicationDetails$a8 !== void 0 && (_applicationDetails$a9 = _applicationDetails$a8.applicationType) !== null && _applicationDetails$a9 !== void 0 && _applicationDetails$a9.includes("MODIFY_")) {
44336
+ if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a1 = applicationDetails.applicationData) !== null && _applicationDetails$a1 !== void 0 && (_applicationDetails$a10 = _applicationDetails$a1.applicationType) !== null && _applicationDetails$a10 !== void 0 && _applicationDetails$a10.includes("MODIFY_")) {
44263
44337
  const PDFdata = getWSAcknowledgementData$1(_extends({}, result), _extends({}, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.propertyDetails), tenantInfo, t, oldApplication);
44264
44338
  PDFdata.then(ress => Digit.Utils.pdf.generateModifyPdf(ress));
44265
44339
  return Promise.resolve();
@@ -44273,10 +44347,10 @@ const ApplicationDetails$1 = () => {
44273
44347
  };
44274
44348
  const handleEstimateDownload = function () {
44275
44349
  try {
44276
- const _temp2 = function (_applicationDetails$a0, _applicationDetails$a1) {
44277
- if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a0 = applicationDetails.applicationData) !== null && _applicationDetails$a0 !== void 0 && (_applicationDetails$a1 = _applicationDetails$a0.additionalDetails) !== null && _applicationDetails$a1 !== void 0 && _applicationDetails$a1.estimationFileStoreId) {
44278
- var _applicationDetails$a10, _applicationDetails$a11;
44279
- getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a10 = applicationDetails.applicationData) === null || _applicationDetails$a10 === void 0 ? void 0 : (_applicationDetails$a11 = _applicationDetails$a10.additionalDetails) === null || _applicationDetails$a11 === void 0 ? void 0 : _applicationDetails$a11.estimationFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
44350
+ const _temp2 = function (_applicationDetails$a11, _applicationDetails$a12) {
44351
+ if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a11 = applicationDetails.applicationData) !== null && _applicationDetails$a11 !== void 0 && (_applicationDetails$a12 = _applicationDetails$a11.additionalDetails) !== null && _applicationDetails$a12 !== void 0 && _applicationDetails$a12.estimationFileStoreId) {
44352
+ var _applicationDetails$a13, _applicationDetails$a14;
44353
+ getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a13 = applicationDetails.applicationData) === null || _applicationDetails$a13 === void 0 ? void 0 : (_applicationDetails$a14 = _applicationDetails$a13.additionalDetails) === null || _applicationDetails$a14 === void 0 ? void 0 : _applicationDetails$a14.estimationFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
44280
44354
  } else {
44281
44355
  const warningCount = sessionStorage.getItem("WARINIG_COUNT") || "0";
44282
44356
  const warningCountDetails = JSON.parse(warningCount);
@@ -44334,8 +44408,8 @@ const ApplicationDetails$1 = () => {
44334
44408
  order: 2,
44335
44409
  label: t("WS_SANCTION_LETTER"),
44336
44410
  onClick: () => {
44337
- var _applicationDetails$a12, _applicationDetails$a13;
44338
- return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a12 = applicationDetails.applicationData) === null || _applicationDetails$a12 === void 0 ? void 0 : (_applicationDetails$a13 = _applicationDetails$a12.additionalDetails) === null || _applicationDetails$a13 === void 0 ? void 0 : _applicationDetails$a13.sanctionFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
44411
+ var _applicationDetails$a15, _applicationDetails$a16;
44412
+ return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a15 = applicationDetails.applicationData) === null || _applicationDetails$a15 === void 0 ? void 0 : (_applicationDetails$a16 = _applicationDetails$a15.additionalDetails) === null || _applicationDetails$a16 === void 0 ? void 0 : _applicationDetails$a16.sanctionFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
44339
44413
  }
44340
44414
  };
44341
44415
  const applicationDownloadObject = {
@@ -44347,8 +44421,8 @@ const ApplicationDetails$1 = () => {
44347
44421
  order: 4,
44348
44422
  label: t("DOWNLOAD_RECEIPT_HEADER"),
44349
44423
  onClick: () => {
44350
- var _reciept_data, _reciept_data$Payment, _applicationDetails$a14;
44351
- return getRecieptSearch(Digit.ULBService.getStateId(), (_reciept_data = reciept_data) === null || _reciept_data === void 0 ? void 0 : (_reciept_data$Payment = _reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment[0], applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a14 = applicationDetails.applicationData) === null || _applicationDetails$a14 === void 0 ? void 0 : _applicationDetails$a14.applicationNo, receiptKey);
44424
+ var _reciept_data$Payment, _applicationDetails$a17;
44425
+ return getRecieptSearch(Digit.ULBService.getStateId(), reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment[0], applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.applicationNo, receiptKey);
44352
44426
  }
44353
44427
  };
44354
44428
  switch (appStatus) {
@@ -44363,7 +44437,7 @@ const ApplicationDetails$1 = () => {
44363
44437
  break;
44364
44438
  case "PENDING_FOR_CONNECTION_ACTIVATION":
44365
44439
  case "CONNECTION_ACTIVATED":
44366
- if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a15 = applicationDetails.applicationData) !== null && _applicationDetails$a15 !== void 0 && (_applicationDetails$a16 = _applicationDetails$a15.applicationType) !== null && _applicationDetails$a16 !== void 0 && _applicationDetails$a16.includes("NEW_") && ((_reciept_data2 = reciept_data) === null || _reciept_data2 === void 0 ? void 0 : (_reciept_data2$Paymen = _reciept_data2.Payments) === null || _reciept_data2$Paymen === void 0 ? void 0 : _reciept_data2$Paymen.length) > 0) dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject, appFeeDownloadReceipt];else dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject];
44440
+ if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a18 = applicationDetails.applicationData) !== null && _applicationDetails$a18 !== void 0 && (_applicationDetails$a19 = _applicationDetails$a18.applicationType) !== null && _applicationDetails$a19 !== void 0 && _applicationDetails$a19.includes("NEW_") && (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.length) > 0) dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject, appFeeDownloadReceipt];else dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject];
44367
44441
  break;
44368
44442
  case "REJECTED":
44369
44443
  dowloadOptions = [applicationDownloadObject];
@@ -48754,31 +48828,21 @@ const CheckPage$4 = _ref2 => {
48754
48828
  const OLDApplication = () => {
48755
48829
  const _useTranslation = useTranslation(),
48756
48830
  t = _useTranslation.t;
48757
- const location = useLocation();
48758
48831
  const history = useHistory();
48759
- let filters = getQueryStringParams(location.search);
48760
48832
  const _useState = useState(false),
48761
- setSubmitValve = _useState[1];
48762
- const _useState2 = useState(false),
48763
- isEnableLoader = _useState2[0],
48764
- setIsEnableLoader = _useState2[1];
48765
- const _useState3 = useState(null),
48766
- showToast = _useState3[0],
48767
- setShowToast = _useState3[1];
48768
- const _useState4 = useState({}),
48769
- setAppDetails = _useState4[1];
48770
- const _useState5 = useState(null),
48771
- setWaterAndSewerageBoth = _useState5[1];
48772
- const _useState6 = useState({
48833
+ isEnableLoader = _useState[0],
48834
+ setIsEnableLoader = _useState[1];
48835
+ const _useState2 = useState(null),
48836
+ showToast = _useState2[0],
48837
+ setShowToast = _useState2[1];
48838
+ const _useState3 = useState({
48773
48839
  body: []
48774
48840
  }),
48775
- config = _useState6[0],
48776
- setConfig = _useState6[1];
48777
- const _useState7 = useState(1),
48778
- currentStep = _useState7[0];
48779
- const _useState8 = useState(false),
48780
- showCheckPage = _useState8[0],
48781
- setShowCheckPage = _useState8[1];
48841
+ config = _useState3[0],
48842
+ setConfig = _useState3[1];
48843
+ const _useState4 = useState(false),
48844
+ showCheckPage = _useState4[0],
48845
+ setShowCheckPage = _useState4[1];
48782
48846
  const timelineConfig = [{
48783
48847
  label: "WS_COMMON_PROPERTY_DETAILS"
48784
48848
  }, {
@@ -48813,9 +48877,9 @@ const OLDApplication = () => {
48813
48877
  let _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.WSCreateConfig(stateId, {}),
48814
48878
  newConfig = _Digit$Hooks$ws$useWS.data,
48815
48879
  isLoading = _Digit$Hooks$ws$useWS.isLoading;
48816
- const _useState9 = useState(new URLSearchParams(useLocation().search).get("propertyId")),
48817
- propertyId = _useState9[0],
48818
- setPropertyId = _useState9[1];
48880
+ const _useState5 = useState(new URLSearchParams(useLocation().search).get("propertyId")),
48881
+ propertyId = _useState5[0],
48882
+ setPropertyId = _useState5[1];
48819
48883
  const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("PT_CREATE_EMP_WS_NEW_FORM", {}),
48820
48884
  sessionFormData = _Digit$Hooks$useSessi[0],
48821
48885
  setSessionFormData = _Digit$Hooks$useSessi[1],
@@ -48830,7 +48894,7 @@ const OLDApplication = () => {
48830
48894
  propertyIds: propertyId
48831
48895
  },
48832
48896
  tenantId: tenantId,
48833
- enabled: propertyId && propertyId != "" ? true : false
48897
+ enabled: propertyId && propertyId !== "" ? true : false
48834
48898
  }),
48835
48899
  propertyDetails = _Digit$Hooks$pt$usePr.data;
48836
48900
  useEffect(() => {
@@ -48842,7 +48906,7 @@ const OLDApplication = () => {
48842
48906
  if (config) {
48843
48907
  var _config$body;
48844
48908
  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)) || [];
48845
- const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "CPTPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
48909
+ const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
48846
48910
  const reorderedBody = [];
48847
48911
  desiredComponentOrder.forEach(compName => {
48848
48912
  const section = allCreateSections.find(s => {
@@ -48852,13 +48916,13 @@ const OLDApplication = () => {
48852
48916
  });
48853
48917
  if (section) {
48854
48918
  reorderedBody.push(section);
48855
- } else if (compName === "CPTPropertyLocationDetails") {
48919
+ } else if (compName === "WSPropertyLocationDetails") {
48856
48920
  reorderedBody.push({
48857
48921
  isCreateConnection: true,
48858
48922
  body: [{
48859
48923
  type: "component",
48860
48924
  key: "propertyAddress",
48861
- component: "CPTPropertyLocationDetails",
48925
+ component: "WSPropertyLocationDetails",
48862
48926
  withoutLabel: true,
48863
48927
  isAutomaticFill: true
48864
48928
  }]
@@ -48938,23 +49002,18 @@ const OLDApplication = () => {
48938
49002
  updatingSewerageApplicationLoading = _Digit$Hooks$ws$useWS3.isLoading,
48939
49003
  sewerageUpdateMutation = _Digit$Hooks$ws$useWS3.mutate;
48940
49004
  const onFormValueChange = (setValue, formData, formState) => {
48941
- var _formState$errors, _formState$errors$Con, _Object$keys, _formState$errors2, _formState$errors2$Co;
48942
49005
  const updatedFormData = _extends({}, sessionFormData, formData);
48943
49006
  const cleanedFormData = JSON.parse(JSON.stringify(updatedFormData));
48944
49007
  if (!lodash.isEqual(sessionFormData, cleanedFormData)) {
48945
49008
  setSessionFormData(cleanedFormData);
48946
49009
  sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
48947
49010
  }
48948
- if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length == 1 && formState !== null && formState !== void 0 && (_formState$errors = formState.errors) !== null && _formState$errors !== void 0 && (_formState$errors$Con = _formState$errors["ConnectionHolderDetails"]) !== null && _formState$errors$Con !== void 0 && _formState$errors$Con.type && ((_Object$keys = Object.keys(formState === null || formState === void 0 ? void 0 : (_formState$errors2 = formState.errors) === null || _formState$errors2 === void 0 ? void 0 : (_formState$errors2$Co = _formState$errors2["ConnectionHolderDetails"]) === null || _formState$errors2$Co === void 0 ? void 0 : _formState$errors2$Co.type)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) == 1 && formState.errors["ConnectionHolderDetails"] && Object.values(formState.errors["ConnectionHolderDetails"].type).filter(ob => {
48949
- var _ob$ref;
48950
- return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$ref = ob.ref) === null || _ob$ref === void 0 ? void 0 : _ob$ref.value) !== "";
48951
- }).length > 0) setSubmitValve(true);else setSubmitValve(!Object.keys(formState.errors).length);
48952
49011
  };
48953
49012
  const closeToastOfError = () => {
48954
49013
  setShowToast(null);
48955
49014
  };
48956
49015
  const onFormSubmit = data => {
48957
- var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$keys2, _formStateErros$Conne2;
49016
+ var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$keys, _formStateErros$Conne2;
48958
49017
  if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
48959
49018
  var _data$cpt2;
48960
49019
  if (!(data !== null && data !== void 0 && (_data$cpt2 = data.cpt) !== null && _data$cpt2 !== void 0 && _data$cpt2.details) || !propertyDetails) {
@@ -48971,9 +49030,9 @@ const OLDApplication = () => {
48971
49030
  }
48972
49031
  const errors = sessionStorage.getItem("FORMSTATE_ERRORS");
48973
49032
  const formStateErros = typeof errors === "string" && errors !== "null" ? JSON.parse(errors) : {};
48974
- if (Object.keys(formStateErros).length > 0 && !(Object.keys(formStateErros).length == 1 && formStateErros !== null && formStateErros !== void 0 && (_formStateErros$Conne = formStateErros["ConnectionHolderDetails"]) !== null && _formStateErros$Conne !== void 0 && _formStateErros$Conne.type && ((_Object$keys2 = Object.keys(formStateErros === null || formStateErros === void 0 ? void 0 : (_formStateErros$Conne2 = formStateErros["ConnectionHolderDetails"]) === null || _formStateErros$Conne2 === void 0 ? void 0 : _formStateErros$Conne2.type)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.length) == 1 && formStateErros["ConnectionHolderDetails"] && Object.values(formStateErros["ConnectionHolderDetails"].type).filter(ob => {
48975
- var _ob$ref2;
48976
- return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$ref2 = ob.ref) === null || _ob$ref2 === void 0 ? void 0 : _ob$ref2.value) !== "";
49033
+ if (Object.keys(formStateErros).length > 0 && !(Object.keys(formStateErros).length === 1 && formStateErros !== null && formStateErros !== void 0 && (_formStateErros$Conne = formStateErros["ConnectionHolderDetails"]) !== null && _formStateErros$Conne !== void 0 && _formStateErros$Conne.type && ((_Object$keys = Object.keys(formStateErros === null || formStateErros === void 0 ? void 0 : (_formStateErros$Conne2 = formStateErros["ConnectionHolderDetails"]) === null || _formStateErros$Conne2 === void 0 ? void 0 : _formStateErros$Conne2.type)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 1 && formStateErros["ConnectionHolderDetails"] && Object.values(formStateErros["ConnectionHolderDetails"].type).filter(ob => {
49034
+ var _ob$ref;
49035
+ return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$ref = ob.ref) === null || _ob$ref === void 0 ? void 0 : _ob$ref.value) !== "";
48977
49036
  }).length > 0)) {
48978
49037
  console.warn("[WS] onSubmit EXIT: formState errors blocking submit", formStateErros);
48979
49038
  setShowToast({
@@ -49098,7 +49157,6 @@ const OLDApplication = () => {
49098
49157
  waterDemandType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.waterDemandType,
49099
49158
  ownerContactNumber: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde6 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde6 === void 0 ? void 0 : (_data$ConnectionHolde7 = _data$ConnectionHolde6[0]) === null || _data$ConnectionHolde7 === void 0 ? void 0 : _data$ConnectionHolde7.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$cpt4 = data.cpt) === null || _data$cpt4 === void 0 ? void 0 : (_data$cpt4$details = _data$cpt4.details) === null || _data$cpt4$details === void 0 ? void 0 : (_data$cpt4$details$ow = _data$cpt4$details.owners) === null || _data$cpt4$details$ow === void 0 ? void 0 : (_data$cpt4$details$ow2 = _data$cpt4$details$ow[0]) === null || _data$cpt4$details$ow2 === void 0 ? void 0 : _data$cpt4$details$ow2.mobileNumber)
49100
49159
  };
49101
- const allDetails = cloneDeep_1(data);
49102
49160
  return Promise.resolve(createPayloadOfWS(data)).then(function (payload) {
49103
49161
  if (!(payload !== null && payload !== void 0 && payload.water) && !(payload !== null && payload !== void 0 && payload.sewerage)) {
49104
49162
  console.error("[WS] onSubmit EXIT: payload has neither water nor sewerage", payload);
@@ -49108,12 +49166,8 @@ const OLDApplication = () => {
49108
49166
  });
49109
49167
  return;
49110
49168
  }
49111
- let waterAndSewerageLoader = false,
49112
- waterLoader = false,
49113
- sewerageLoader = false;
49169
+ let waterAndSewerageLoader = false;
49114
49170
  if (payload !== null && payload !== void 0 && payload.water && payload !== null && payload !== void 0 && payload.sewerage) waterAndSewerageLoader = true;
49115
- if (payload !== null && payload !== void 0 && payload.water && !(payload !== null && payload !== void 0 && payload.sewerage)) waterLoader = true;
49116
- if (!(payload !== null && payload !== void 0 && payload.water) && payload !== null && payload !== void 0 && payload.sewerage) sewerageLoader = true;
49117
49171
  let waterConnection = {
49118
49172
  WaterConnection: payload,
49119
49173
  disconnectRequest: false,
@@ -49125,7 +49179,6 @@ const OLDApplication = () => {
49125
49179
  reconnectRequest: false
49126
49180
  };
49127
49181
  if (waterAndSewerageLoader) {
49128
- setWaterAndSewerageBoth(true);
49129
49182
  sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(true));
49130
49183
  } else {
49131
49184
  sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(false));
@@ -49166,12 +49219,6 @@ const OLDApplication = () => {
49166
49219
  },
49167
49220
  onSuccess: function (waterUpdateData) {
49168
49221
  try {
49169
- setAppDetails(prev => {
49170
- var _waterUpdateData$Wate;
49171
- return _extends({}, prev, {
49172
- waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
49173
- });
49174
- });
49175
49222
  return Promise.resolve(sewerageMutation(sewerageConnection, {
49176
49223
  onError: error => {
49177
49224
  var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
@@ -49203,15 +49250,9 @@ const OLDApplication = () => {
49203
49250
  },
49204
49251
  onSuccess: function (sewerageUpdateData) {
49205
49252
  try {
49206
- var _waterUpdateData$Wate2, _waterUpdateData$Wate3, _sewerageUpdateData$S2, _sewerageUpdateData$S3;
49207
- setAppDetails(prev => {
49208
- var _sewerageUpdateData$S;
49209
- return _extends({}, prev, {
49210
- sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
49211
- });
49212
- });
49253
+ var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
49213
49254
  clearSessionFormData();
49214
- history.push(basePath + "/ws-response?applicationNumber=" + (waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate2 = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : (_waterUpdateData$Wate3 = _waterUpdateData$Wate2[0]) === null || _waterUpdateData$Wate3 === void 0 ? void 0 : _waterUpdateData$Wate3.applicationNo) + "&applicationNumber1=" + (sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S2 = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : (_sewerageUpdateData$S3 = _sewerageUpdateData$S2[0]) === null || _sewerageUpdateData$S3 === void 0 ? void 0 : _sewerageUpdateData$S3.applicationNo));
49255
+ history.push(basePath + "/ws-response?applicationNumber=" + (waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : (_waterUpdateData$Wate2 = _waterUpdateData$Wate[0]) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : _waterUpdateData$Wate2.applicationNo) + "&applicationNumber1=" + (sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : (_sewerageUpdateData$S2 = _sewerageUpdateData$S[0]) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : _sewerageUpdateData$S2.applicationNo));
49215
49256
  return Promise.resolve();
49216
49257
  } catch (e) {
49217
49258
  return Promise.reject(e);
@@ -49274,15 +49315,9 @@ const OLDApplication = () => {
49274
49315
  setTimeout(closeToastOfError, 5000);
49275
49316
  },
49276
49317
  onSuccess: data => {
49277
- var _data$WaterConnection3, _data$WaterConnection4;
49278
- setAppDetails(prev => {
49279
- var _data$WaterConnection2;
49280
- return _extends({}, prev, {
49281
- waterConnection: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
49282
- });
49283
- });
49318
+ var _data$WaterConnection2, _data$WaterConnection3;
49284
49319
  clearSessionFormData();
49285
- history.push(basePath + "/ws-response?applicationNumber=" + (data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnection) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3[0]) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4.applicationNo));
49320
+ history.push(basePath + "/ws-response?applicationNumber=" + (data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : (_data$WaterConnection3 = _data$WaterConnection2[0]) === null || _data$WaterConnection3 === void 0 ? void 0 : _data$WaterConnection3.applicationNo));
49286
49321
  }
49287
49322
  });
49288
49323
  });
@@ -49330,15 +49365,9 @@ const OLDApplication = () => {
49330
49365
  setTimeout(closeToastOfError, 5000);
49331
49366
  },
49332
49367
  onSuccess: data => {
49333
- var _data$SewerageConnect3, _data$SewerageConnect4;
49334
- setAppDetails(prev => {
49335
- var _data$SewerageConnect2;
49336
- return _extends({}, prev, {
49337
- sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
49338
- });
49339
- });
49368
+ var _data$SewerageConnect2, _data$SewerageConnect3;
49340
49369
  clearSessionFormData();
49341
- history.push(basePath + "/ws-response?applicationNumber1=" + (data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.applicationNo));
49370
+ history.push(basePath + "/ws-response?applicationNumber1=" + (data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : (_data$SewerageConnect3 = _data$SewerageConnect2[0]) === null || _data$SewerageConnect3 === void 0 ? void 0 : _data$SewerageConnect3.applicationNo));
49342
49371
  }
49343
49372
  })).then(function () {});
49344
49373
  });
@@ -49387,7 +49416,7 @@ const OLDApplication = () => {
49387
49416
  className: "employee-form-section-wrapper"
49388
49417
  }, /*#__PURE__*/React.createElement(VerticalTimeline, {
49389
49418
  config: timelineConfig,
49390
- currentActiveIndex: currentStep - 1,
49419
+ currentActiveIndex: 0,
49391
49420
  showFinalStep: false
49392
49421
  }), /*#__PURE__*/React.createElement(FormComposer, {
49393
49422
  config: config.body,
@@ -49472,8 +49501,7 @@ const componentsToRegister = {
49472
49501
  WSLinks,
49473
49502
  WSServiceName: WSConnectionDetails,
49474
49503
  WSWaterConnectionDetails,
49475
- CPTPropertyLocationDetails: WSPropertyLocationDetails,
49476
- PTPropertyLocationDetails: WSPropertyLocationDetails,
49504
+ WSPropertyLocationDetails,
49477
49505
  WSPropertyWaterConnection,
49478
49506
  WSDocsRequired,
49479
49507
  WSDocumentDetails: WSDocumentsEmployee,