@djb25/digit-ui-module-ws 1.0.43 → 1.0.45

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
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, 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';
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, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, VerticalTimeline, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, AddIcon, CheckPoint, ConnectingCheckPoints, 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';
@@ -15493,7 +15493,7 @@ function SelectDocument(_ref2) {
15493
15493
  const _useState6 = useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null),
15494
15494
  uploadedFile = _useState6[0],
15495
15495
  setUploadedFile = _useState6[1];
15496
- const _useState7 = useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid) || ""),
15496
+ const _useState7 = useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || ""),
15497
15497
  documentUid = _useState7[0],
15498
15498
  setDocumentUid = _useState7[1];
15499
15499
  const _useState8 = useState(false),
@@ -20505,6 +20505,7 @@ const PropertyWaterConnection = _ref => {
20505
20505
  const watchCategoryType = watch("useDetails.categoryType");
20506
20506
  const watchPropertyType = watch("useDetails.propertyType");
20507
20507
  const watchPropertyCategory = watch("useDetails.propertyCategory");
20508
+ const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
20508
20509
  const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
20509
20510
  const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
20510
20511
  const yearOptions = useMemo(() => {
@@ -20564,11 +20565,29 @@ const PropertyWaterConnection = _ref => {
20564
20565
  }, [watchPropertyCategory, propertyTypeOptions, setValue, watchPropertyType]);
20565
20566
  const usageTypeOptions = useMemo(() => {
20566
20567
  var _ptServicesMastersDat5, _ptServicesMastersDat6;
20567
- return ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat5 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat5 === void 0 ? void 0 : (_ptServicesMastersDat6 = _ptServicesMastersDat5.PropertyNewUsageType) === null || _ptServicesMastersDat6 === void 0 ? void 0 : _ptServicesMastersDat6.filter(item => item.active).map(item => ({
20568
+ let options = (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat5 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat5 === void 0 ? void 0 : (_ptServicesMastersDat6 = _ptServicesMastersDat5.PropertyNewUsageType) === null || _ptServicesMastersDat6 === void 0 ? void 0 : _ptServicesMastersDat6.filter(item => item.active)) || [];
20569
+ if (watchPropertyCategory !== null && watchPropertyCategory !== void 0 && watchPropertyCategory.code) {
20570
+ var _watchPropertyCategor3;
20571
+ if ((watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : (_watchPropertyCategor3 = watchPropertyCategory.code) === null || _watchPropertyCategor3 === void 0 ? void 0 : _watchPropertyCategor3.toUpperCase()) !== "MIXED") {
20572
+ options = options.filter(item => {
20573
+ var _item$type2, _watchPropertyCategor4;
20574
+ return ((_item$type2 = item.type) === null || _item$type2 === void 0 ? void 0 : _item$type2.toUpperCase()) === ((_watchPropertyCategor4 = watchPropertyCategory.code) === null || _watchPropertyCategor4 === void 0 ? void 0 : _watchPropertyCategor4.toUpperCase());
20575
+ });
20576
+ }
20577
+ }
20578
+ return options.map(item => ({
20568
20579
  code: item.code,
20569
20580
  name: item.name
20570
20581
  }));
20571
- }, [ptServicesMastersData]);
20582
+ }, [ptServicesMastersData, watchPropertyCategory]);
20583
+ useEffect(() => {
20584
+ if (watchPropertyType && watchWaterConnectionUsageType) {
20585
+ const isUsageTypeValid = usageTypeOptions.some(opt => opt.code === watchWaterConnectionUsageType.code);
20586
+ if (!isUsageTypeValid) {
20587
+ setValue("useDetails.WaterConnectionUsageType", null);
20588
+ }
20589
+ }
20590
+ }, [watchPropertyType, usageTypeOptions, setValue, watchWaterConnectionUsageType]);
20572
20591
  const floorOptions = useMemo(() => {
20573
20592
  var _ptServicesMastersDat7, _ptServicesMastersDat8;
20574
20593
  return ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat7 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat7 === void 0 ? void 0 : (_ptServicesMastersDat8 = _ptServicesMastersDat7.NoOfFloors) === null || _ptServicesMastersDat8 === void 0 ? void 0 : _ptServicesMastersDat8.filter(item => item.active).map(item => ({
@@ -27622,35 +27641,382 @@ const CitizenSearchResults = () => {
27622
27641
  })));
27623
27642
  };
27624
27643
 
27625
- const WSWFCaption = _ref => {
27644
+ const TOKEN = {
27645
+ textPri: "#1e293b",
27646
+ textSec: "#475569",
27647
+ textMut: "#94a3b8",
27648
+ active: "#0284c7",
27649
+ border: "#dde4f0",
27650
+ surface: "#f0f9ff",
27651
+ quote: "#eff6ff"
27652
+ };
27653
+ const MetaRow = _ref => {
27654
+ let icon = _ref.icon,
27655
+ children = _ref.children;
27656
+ return children ? /*#__PURE__*/React.createElement("div", {
27657
+ style: {
27658
+ display: "flex",
27659
+ alignItems: "center",
27660
+ gap: "7px",
27661
+ marginBottom: "6px"
27662
+ }
27663
+ }, /*#__PURE__*/React.createElement("span", {
27664
+ style: {
27665
+ fontSize: "14px",
27666
+ opacity: 0.6
27667
+ }
27668
+ }, icon), /*#__PURE__*/React.createElement("span", {
27669
+ style: {
27670
+ fontSize: "12px",
27671
+ color: TOKEN.textSec
27672
+ }
27673
+ }, children)) : null;
27674
+ };
27675
+ const WSWFCaption = _ref2 => {
27626
27676
  var _data$wfComment, _data$thumbnailsToSho, _data$thumbnailsToSho2;
27627
- let data = _ref.data,
27628
- OpenImage = _ref.OpenImage;
27677
+ let data = _ref2.data,
27678
+ OpenImage = _ref2.OpenImage;
27629
27679
  const _useTranslation = useTranslation(),
27630
27680
  t = _useTranslation.t;
27631
- return /*#__PURE__*/React.createElement("div", null, data.date && /*#__PURE__*/React.createElement("p", null, data.date), /*#__PURE__*/React.createElement("p", null, data.name), data.mobileNumber && /*#__PURE__*/React.createElement(TelePhone, {
27681
+ if (!data) return null;
27682
+ const hasComments = (data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.length) > 0;
27683
+ const hasThumbs = (data === null || data === void 0 ? void 0 : (_data$thumbnailsToSho = data.thumbnailsToShow) === null || _data$thumbnailsToSho === void 0 ? void 0 : (_data$thumbnailsToSho2 = _data$thumbnailsToSho.thumbs) === null || _data$thumbnailsToSho2 === void 0 ? void 0 : _data$thumbnailsToSho2.length) > 0;
27684
+ return /*#__PURE__*/React.createElement("div", {
27685
+ style: {
27686
+ display: "flex",
27687
+ flexDirection: "column",
27688
+ gap: "4px"
27689
+ }
27690
+ }, data.date && /*#__PURE__*/React.createElement(MetaRow, {
27691
+ icon: "\uD83D\uDD50"
27692
+ }, typeof data.date === "number" ? (() => {
27693
+ try {
27694
+ return Digit.DateUtils.ConvertTimestampToDate(data.date);
27695
+ } catch (_unused) {
27696
+ return null;
27697
+ }
27698
+ })() : data.date), data.name && /*#__PURE__*/React.createElement(MetaRow, {
27699
+ icon: "\uD83D\uDC64"
27700
+ }, data.name), data.mobileNumber && /*#__PURE__*/React.createElement("div", {
27701
+ style: {
27702
+ display: "flex",
27703
+ alignItems: "center",
27704
+ gap: "7px",
27705
+ marginBottom: "6px"
27706
+ }
27707
+ }, /*#__PURE__*/React.createElement("span", {
27708
+ style: {
27709
+ fontSize: "14px",
27710
+ opacity: 0.6
27711
+ }
27712
+ }, "\uD83D\uDCDE"), /*#__PURE__*/React.createElement("span", {
27713
+ style: {
27714
+ fontSize: "12px",
27715
+ color: TOKEN.textSec
27716
+ }
27717
+ }, /*#__PURE__*/React.createElement(TelePhone, {
27632
27718
  mobile: data.mobileNumber
27633
- }), data.source && /*#__PURE__*/React.createElement("p", null, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React.createElement(Reason, {
27634
- otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
27635
- headComment: data === null || data === void 0 ? void 0 : data.comment
27636
- }), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map(e => /*#__PURE__*/React.createElement("div", {
27637
- className: "TLComments"
27638
- }, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
27719
+ }))), data.source && /*#__PURE__*/React.createElement(MetaRow, {
27720
+ icon: "\uD83D\uDCE1"
27721
+ }, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React.createElement("p", {
27639
27722
  style: {
27640
- overflowX: "scroll"
27723
+ margin: "0 0 6px",
27724
+ fontSize: "12px",
27725
+ color: TOKEN.textSec
27641
27726
  }
27642
- }, e)))) : null, (data === null || data === void 0 ? void 0 : (_data$thumbnailsToSho = data.thumbnailsToShow) === null || _data$thumbnailsToSho === void 0 ? void 0 : (_data$thumbnailsToSho2 = _data$thumbnailsToSho.thumbs) === null || _data$thumbnailsToSho2 === void 0 ? void 0 : _data$thumbnailsToSho2.length) > 0 ? /*#__PURE__*/React.createElement("div", {
27643
- className: "TLComments"
27644
- }, /*#__PURE__*/React.createElement("h3", null, t("CS_COMMON_ATTACHMENTS")), /*#__PURE__*/React.createElement(DisplayPhotos, {
27645
- srcs: data === null || data === void 0 ? void 0 : data.thumbnailsToShow.thumbs,
27646
- onClick: (src, index) => {
27647
- OpenImage(src, index, data === null || data === void 0 ? void 0 : data.thumbnailsToShow);
27727
+ }, data.comment), hasComments && /*#__PURE__*/React.createElement("div", {
27728
+ style: {
27729
+ marginTop: "8px"
27648
27730
  }
27649
- })) : null);
27731
+ }, /*#__PURE__*/React.createElement("div", {
27732
+ style: {
27733
+ display: "flex",
27734
+ alignItems: "center",
27735
+ gap: "6px",
27736
+ marginBottom: "6px"
27737
+ }
27738
+ }, /*#__PURE__*/React.createElement("div", {
27739
+ style: {
27740
+ width: "3px",
27741
+ height: "14px",
27742
+ borderRadius: "2px",
27743
+ background: TOKEN.active,
27744
+ flexShrink: 0
27745
+ }
27746
+ }), /*#__PURE__*/React.createElement("span", {
27747
+ style: {
27748
+ fontSize: "11px",
27749
+ fontWeight: 700,
27750
+ letterSpacing: "0.07em",
27751
+ textTransform: "uppercase",
27752
+ color: TOKEN.active
27753
+ }
27754
+ }, t("WF_COMMON_COMMENTS"))), data.wfComment.map((comment, i) => /*#__PURE__*/React.createElement("div", {
27755
+ key: i,
27756
+ style: {
27757
+ position: "relative",
27758
+ background: TOKEN.quote,
27759
+ border: "1px solid " + TOKEN.border,
27760
+ borderLeft: "3px solid " + TOKEN.active,
27761
+ borderRadius: "0 8px 8px 0",
27762
+ padding: "8px 12px",
27763
+ marginBottom: "6px",
27764
+ overflowX: "auto"
27765
+ }
27766
+ }, /*#__PURE__*/React.createElement("span", {
27767
+ style: {
27768
+ position: "absolute",
27769
+ top: "4px",
27770
+ left: "6px",
27771
+ fontSize: "22px",
27772
+ opacity: 0.15,
27773
+ lineHeight: 1,
27774
+ color: TOKEN.active,
27775
+ userSelect: "none"
27776
+ }
27777
+ }, "\""), /*#__PURE__*/React.createElement("p", {
27778
+ style: {
27779
+ margin: "0",
27780
+ fontSize: "12px",
27781
+ color: TOKEN.textPri,
27782
+ lineHeight: "1.6",
27783
+ paddingLeft: "8px",
27784
+ wordBreak: "break-word"
27785
+ }
27786
+ }, comment)))), hasThumbs && /*#__PURE__*/React.createElement("div", {
27787
+ style: {
27788
+ marginTop: "10px"
27789
+ }
27790
+ }, /*#__PURE__*/React.createElement("div", {
27791
+ style: {
27792
+ display: "flex",
27793
+ alignItems: "center",
27794
+ gap: "6px",
27795
+ marginBottom: "8px"
27796
+ }
27797
+ }, /*#__PURE__*/React.createElement("div", {
27798
+ style: {
27799
+ width: "3px",
27800
+ height: "14px",
27801
+ borderRadius: "2px",
27802
+ background: "#ff9800",
27803
+ flexShrink: 0
27804
+ }
27805
+ }), /*#__PURE__*/React.createElement("span", {
27806
+ style: {
27807
+ fontSize: "11px",
27808
+ fontWeight: 700,
27809
+ letterSpacing: "0.07em",
27810
+ textTransform: "uppercase",
27811
+ color: "#ff9800"
27812
+ }
27813
+ }, t("CS_COMMON_ATTACHMENTS"))), /*#__PURE__*/React.createElement("div", {
27814
+ style: {
27815
+ background: TOKEN.surface,
27816
+ border: "1px solid " + TOKEN.border,
27817
+ borderRadius: "8px",
27818
+ padding: "8px"
27819
+ }
27820
+ }, /*#__PURE__*/React.createElement(DisplayPhotos, {
27821
+ srcs: data.thumbnailsToShow.thumbs,
27822
+ onClick: (src, index) => OpenImage === null || OpenImage === void 0 ? void 0 : OpenImage(src, index, data.thumbnailsToShow)
27823
+ }))));
27650
27824
  };
27651
27825
 
27826
+ const safeDate = ts => {
27827
+ if (!ts || isNaN(Number(ts)) || Number(ts) <= 0) return null;
27828
+ try {
27829
+ return Digit.DateUtils.ConvertTimestampToDate(Number(ts));
27830
+ } catch (_unused) {
27831
+ return null;
27832
+ }
27833
+ };
27834
+ const TOKEN$1 = {
27835
+ surface: "#f8faff",
27836
+ surfaceHov: "#eef4ff",
27837
+ border: "#dde4f0",
27838
+ borderAct: "#0284c7",
27839
+ active: "#0284c7",
27840
+ done: "#16a34a",
27841
+ textPri: "#1e293b",
27842
+ textSec: "#475569",
27843
+ textMut: "#94a3b8",
27844
+ accent: "linear-gradient(135deg,#7c3aed,#0284c7)"
27845
+ };
27846
+ const StatusPill = _ref => {
27847
+ let label = _ref.label,
27848
+ isActive = _ref.isActive;
27849
+ return /*#__PURE__*/React.createElement("span", {
27850
+ style: {
27851
+ display: "inline-block",
27852
+ fontSize: "10px",
27853
+ fontWeight: 700,
27854
+ letterSpacing: "0.06em",
27855
+ textTransform: "uppercase",
27856
+ padding: "2px 10px",
27857
+ borderRadius: "999px",
27858
+ background: isActive ? "rgba(0,195,255,0.15)" : "rgba(0,230,118,0.12)",
27859
+ color: isActive ? TOKEN$1.active : TOKEN$1.done,
27860
+ border: "1px solid " + (isActive ? TOKEN$1.active : TOKEN$1.done),
27861
+ lineHeight: "18px"
27862
+ }
27863
+ }, label);
27864
+ };
27865
+ const StepCard = _ref2 => {
27866
+ var _checkpoint$auditDeta, _checkpoint$auditDeta2;
27867
+ let checkpoint = _ref2.checkpoint,
27868
+ isActive = _ref2.isActive,
27869
+ t = _ref2.t,
27870
+ getTimelineCaptions = _ref2.getTimelineCaptions;
27871
+ const _useState = useState(isActive),
27872
+ expanded = _useState[0],
27873
+ setExpanded = _useState[1];
27874
+ const stateLabel = checkpoint.state ? t("CS_" + checkpoint.state) : "NA";
27875
+ const dotColor = isActive ? TOKEN$1.active : TOKEN$1.done;
27876
+ const glowColor = isActive ? "0 0 14px rgba(0,195,255,0.5)" : "0 0 10px rgba(0,230,118,0.35)";
27877
+ return /*#__PURE__*/React.createElement("div", {
27878
+ style: {
27879
+ display: "flex",
27880
+ gap: "0",
27881
+ alignItems: "flex-start",
27882
+ position: "relative"
27883
+ }
27884
+ }, /*#__PURE__*/React.createElement("div", {
27885
+ style: {
27886
+ display: "flex",
27887
+ flexDirection: "column",
27888
+ alignItems: "center",
27889
+ width: "36px",
27890
+ flexShrink: 0
27891
+ }
27892
+ }, /*#__PURE__*/React.createElement("div", {
27893
+ style: {
27894
+ width: "18px",
27895
+ height: "18px",
27896
+ borderRadius: "50%",
27897
+ background: dotColor,
27898
+ boxShadow: glowColor,
27899
+ border: "2px solid " + dotColor,
27900
+ zIndex: 1,
27901
+ flexShrink: 0,
27902
+ marginTop: "16px"
27903
+ }
27904
+ }), /*#__PURE__*/React.createElement("div", {
27905
+ style: {
27906
+ width: "2px",
27907
+ flex: 1,
27908
+ minHeight: "24px",
27909
+ background: "linear-gradient(to bottom, " + dotColor + ", " + TOKEN$1.border + ")",
27910
+ marginTop: "2px"
27911
+ }
27912
+ })), /*#__PURE__*/React.createElement("div", {
27913
+ style: {
27914
+ flex: 1,
27915
+ marginLeft: "12px",
27916
+ marginBottom: "16px",
27917
+ borderRadius: "12px",
27918
+ border: "1px solid " + (expanded ? TOKEN$1.borderAct : TOKEN$1.border),
27919
+ background: TOKEN$1.surface,
27920
+ boxShadow: expanded ? "0 2px 12px rgba(2,132,199,0.10)" : "0 1px 4px rgba(0,0,0,0.06)",
27921
+ overflow: "hidden",
27922
+ transition: "all 0.3s ease"
27923
+ }
27924
+ }, /*#__PURE__*/React.createElement("div", {
27925
+ onClick: () => setExpanded(v => !v),
27926
+ style: {
27927
+ padding: "12px 16px",
27928
+ cursor: "pointer",
27929
+ display: "flex",
27930
+ justifyContent: "space-between",
27931
+ alignItems: "center",
27932
+ gap: "8px"
27933
+ }
27934
+ }, /*#__PURE__*/React.createElement("div", {
27935
+ style: {
27936
+ display: "flex",
27937
+ flexDirection: "column",
27938
+ gap: "4px"
27939
+ }
27940
+ }, /*#__PURE__*/React.createElement("span", {
27941
+ style: {
27942
+ fontWeight: 600,
27943
+ fontSize: "13px",
27944
+ color: TOKEN$1.textPri,
27945
+ letterSpacing: "0.01em"
27946
+ }
27947
+ }, stateLabel), safeDate(checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified) && /*#__PURE__*/React.createElement("span", {
27948
+ style: {
27949
+ fontSize: "11px",
27950
+ color: TOKEN$1.textSec
27951
+ }
27952
+ }, safeDate(checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta2 = checkpoint.auditDetails) === null || _checkpoint$auditDeta2 === void 0 ? void 0 : _checkpoint$auditDeta2.lastModified))), /*#__PURE__*/React.createElement("div", {
27953
+ style: {
27954
+ display: "flex",
27955
+ alignItems: "center",
27956
+ gap: "8px",
27957
+ flexShrink: 0
27958
+ }
27959
+ }, /*#__PURE__*/React.createElement(StatusPill, {
27960
+ label: isActive ? "Active" : "Done",
27961
+ isActive: isActive
27962
+ }), /*#__PURE__*/React.createElement("span", {
27963
+ style: {
27964
+ color: TOKEN$1.textMut,
27965
+ fontSize: "16px",
27966
+ transform: expanded ? "rotate(180deg)" : "rotate(0deg)",
27967
+ transition: "transform 0.25s",
27968
+ lineHeight: 1,
27969
+ userSelect: "none"
27970
+ }
27971
+ }, "\u25BE"))), expanded && /*#__PURE__*/React.createElement("div", {
27972
+ style: {
27973
+ padding: "0 16px 14px",
27974
+ borderTop: "1px solid " + TOKEN$1.border,
27975
+ background: "#fff"
27976
+ }
27977
+ }, /*#__PURE__*/React.createElement("div", {
27978
+ style: {
27979
+ paddingTop: "12px"
27980
+ }
27981
+ }, getTimelineCaptions(checkpoint)))));
27982
+ };
27983
+ const ActionButton = _ref3 => {
27984
+ let label = _ref3.label,
27985
+ to = _ref3.to,
27986
+ state = _ref3.state;
27987
+ return /*#__PURE__*/React.createElement(Link, {
27988
+ to: {
27989
+ pathname: to,
27990
+ state
27991
+ }
27992
+ }, /*#__PURE__*/React.createElement("button", {
27993
+ style: {
27994
+ width: "100%",
27995
+ marginTop: "8px",
27996
+ padding: "13px 20px",
27997
+ borderRadius: "10px",
27998
+ border: "none",
27999
+ cursor: "pointer",
28000
+ background: TOKEN$1.accent,
28001
+ color: "#fff",
28002
+ fontWeight: 700,
28003
+ fontSize: "14px",
28004
+ letterSpacing: "0.04em",
28005
+ boxShadow: "0 4px 20px rgba(124,58,237,0.4)",
28006
+ transition: "opacity 0.2s, transform 0.2s"
28007
+ },
28008
+ onMouseEnter: e => {
28009
+ e.currentTarget.style.opacity = "0.88";
28010
+ e.currentTarget.style.transform = "translateY(-1px)";
28011
+ },
28012
+ onMouseLeave: e => {
28013
+ e.currentTarget.style.opacity = "1";
28014
+ e.currentTarget.style.transform = "translateY(0)";
28015
+ }
28016
+ }, label));
28017
+ };
27652
28018
  const WSWFApplicationTimeline = props => {
27653
- var _props$application, _props$application2, _data$timeline, _data$timeline2, _data$timeline$, _data$timeline3;
28019
+ var _props$application, _props$application2, _data$timeline, _data$timeline2, _data$timeline3, _data$timeline4;
27654
28020
  const _useTranslation = useTranslation(),
27655
28021
  t = _useTranslation.t;
27656
28022
  const businessService = (_props$application = props.application) === null || _props$application === void 0 ? void 0 : _props$application.applicationNo.split("_")[0];
@@ -27664,9 +28030,9 @@ const WSWFApplicationTimeline = props => {
27664
28030
  }),
27665
28031
  isLoading = _Digit$Hooks$useWorkf.isLoading,
27666
28032
  data = _Digit$Hooks$useWorkf.data;
27667
- const _useState = useState(false),
27668
- showAllTimeline = _useState[0],
27669
- setShowAllTimeline = _useState[1];
28033
+ const _useState2 = useState(true),
28034
+ showAllTimeline = _useState2[0],
28035
+ setShowAllTimeline = _useState2[1];
27670
28036
  function OpenImage(imageSource, index, thumbnailsToShow) {
27671
28037
  var _thumbnailsToShow$ful;
27672
28038
  window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
@@ -27675,7 +28041,7 @@ const WSWFApplicationTimeline = props => {
27675
28041
  if (checkpoint.state === "OPEN") {
27676
28042
  var _props$application3, _props$application3$a, _props$application4;
27677
28043
  const caption = {
27678
- date: Digit.DateUtils.ConvertTimestampToDate((_props$application3 = props.application) === null || _props$application3 === void 0 ? void 0 : (_props$application3$a = _props$application3.auditDetails) === null || _props$application3$a === void 0 ? void 0 : _props$application3$a.createdTime),
28044
+ date: safeDate((_props$application3 = props.application) === null || _props$application3 === void 0 ? void 0 : (_props$application3$a = _props$application3.auditDetails) === null || _props$application3$a === void 0 ? void 0 : _props$application3$a.createdTime),
27679
28045
  source: ((_props$application4 = props.application) === null || _props$application4 === void 0 ? void 0 : _props$application4.channel) || ""
27680
28046
  };
27681
28047
  return /*#__PURE__*/React.createElement(WSWFCaption, {
@@ -27685,12 +28051,19 @@ const WSWFApplicationTimeline = props => {
27685
28051
  var _props$application5, _props$application6;
27686
28052
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
27687
28053
  to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + (props === null || props === void 0 ? void 0 : (_props$application5 = props.application) === null || _props$application5 === void 0 ? void 0 : _props$application5.propertyId) + "&tenantId=" + (props === null || props === void 0 ? void 0 : (_props$application6 = props.application) === null || _props$application6 === void 0 ? void 0 : _props$application6.tenantId)
27688
- }, /*#__PURE__*/React.createElement(ActionLinks, null, t("PT_VIEW_PROPERTY_DETAILS"))));
28054
+ }, /*#__PURE__*/React.createElement("span", {
28055
+ style: {
28056
+ color: TOKEN$1.active,
28057
+ fontSize: "13px",
28058
+ textDecoration: "underline",
28059
+ cursor: "pointer"
28060
+ }
28061
+ }, t("PT_VIEW_PROPERTY_DETAILS"))));
27689
28062
  } else {
27690
- var _props$application7, _checkpoint$auditDeta, _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$assignes2, _checkpoint$assignes3;
28063
+ var _props$application7, _checkpoint$auditDeta3, _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$assignes2, _checkpoint$assignes3;
27691
28064
  const caption = {
27692
28065
  source: ((_props$application7 = props.application) === null || _props$application7 === void 0 ? void 0 : _props$application7.channel) || "",
27693
- date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified,
28066
+ date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta3 = checkpoint.auditDetails) === null || _checkpoint$auditDeta3 === void 0 ? void 0 : _checkpoint$auditDeta3.lastModified,
27694
28067
  name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes = checkpoint.assignes) === null || _checkpoint$assignes === void 0 ? void 0 : (_checkpoint$assignes$ = _checkpoint$assignes[0]) === null || _checkpoint$assignes$ === void 0 ? void 0 : _checkpoint$assignes$.name,
27695
28068
  mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes2 = checkpoint.assignes) === null || _checkpoint$assignes2 === void 0 ? void 0 : (_checkpoint$assignes3 = _checkpoint$assignes2[0]) === null || _checkpoint$assignes3 === void 0 ? void 0 : _checkpoint$assignes3.mobileNumber,
27696
28069
  comment: t(checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.comment),
@@ -27705,92 +28078,110 @@ const WSWFApplicationTimeline = props => {
27705
28078
  };
27706
28079
  const showNextActions = nextActions => {
27707
28080
  var _nextAction;
28081
+ if (!(nextActions !== null && nextActions !== void 0 && nextActions.length)) return null;
27708
28082
  let nextAction = nextActions[0];
27709
28083
  const next = nextActions.map(action => action.action);
27710
28084
  if (next.includes("PAY") || next.includes("EDIT")) {
27711
28085
  let currentIndex = next.indexOf("EDIT") || next.indexOf("PAY");
27712
- currentIndex = currentIndex != -1 ? currentIndex : next.indexOf("PAY");
28086
+ currentIndex = currentIndex !== -1 ? currentIndex : next.indexOf("PAY");
27713
28087
  nextAction = nextActions[currentIndex];
27714
28088
  }
27715
28089
  switch ((_nextAction = nextAction) === null || _nextAction === void 0 ? void 0 : _nextAction.action) {
27716
28090
  case "PAY":
27717
- {
27718
- if ((props === null || props === void 0 ? void 0 : props.paymentbuttonenabled) !== false) return /*#__PURE__*/React.createElement("div", {
27719
- style: {
27720
- marginTop: "1em",
27721
- bottom: "0px",
27722
- width: "100%",
27723
- marginBottom: "1.2em"
27724
- }
27725
- }, /*#__PURE__*/React.createElement(Link, {
27726
- to: {
27727
- pathname: "/digit-ui/citizen/payment/collect/" + businessService + "/" + props.id + "?consumerCode=" + props.id + "&&workflow=WNS",
27728
- state: {
27729
- tenantId: props.application.tenantId
27730
- }
27731
- }
27732
- }, /*#__PURE__*/React.createElement(SubmitBar, {
27733
- label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT")
27734
- })));
27735
- break;
27736
- }
27737
- case "EDIT":
27738
- return /*#__PURE__*/React.createElement("div", {
27739
- style: {
27740
- marginTop: "1em",
27741
- bottom: "0px",
27742
- width: "100%",
27743
- marginBottom: "1.2em"
28091
+ if ((props === null || props === void 0 ? void 0 : props.paymentbuttonenabled) !== false) return /*#__PURE__*/React.createElement(ActionButton, {
28092
+ label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
28093
+ to: "/digit-ui/citizen/payment/collect/" + businessService + "/" + props.id + "?consumerCode=" + props.id + "&&workflow=WNS",
28094
+ state: {
28095
+ tenantId: props.application.tenantId
27744
28096
  }
27745
- }, businessService != "PT.MUTATION" && /*#__PURE__*/React.createElement(Link, {
27746
- to: {
27747
- pathname: "/digit-ui/citizen/pt/property/edit-application/action=edit-" + businessService + "/" + props.id,
27748
- state: {
27749
- tenantId: props.application.tenantId
27750
- }
28097
+ });
28098
+ break;
28099
+ case "EDIT":
28100
+ return businessService !== "PT.MUTATION" ? /*#__PURE__*/React.createElement(ActionButton, {
28101
+ label: t("CS_APPLICATION_DETAILS_EDIT"),
28102
+ to: "/digit-ui/citizen/pt/property/edit-application/action=edit-" + businessService + "/" + props.id,
28103
+ state: {
28104
+ tenantId: props.application.tenantId
27751
28105
  }
27752
- }, /*#__PURE__*/React.createElement(SubmitBar, {
27753
- label: t("CS_APPLICATION_DETAILS_EDIT")
27754
- })));
28106
+ }) : null;
27755
28107
  case "SUBMIT_FEEDBACK":
27756
- return /*#__PURE__*/React.createElement("div", {
27757
- style: {
27758
- marginTop: "24px"
27759
- }
27760
- }, /*#__PURE__*/React.createElement(Link, {
28108
+ return /*#__PURE__*/React.createElement(ActionButton, {
28109
+ label: t("CS_APPLICATION_DETAILS_RATE"),
27761
28110
  to: "/digit-ui/citizen/fsm/rate/" + props.id
27762
- }, /*#__PURE__*/React.createElement(SubmitBar, {
27763
- label: t("CS_APPLICATION_DETAILS_RATE")
27764
- })));
28111
+ });
28112
+ default:
28113
+ return null;
27765
28114
  }
27766
28115
  };
27767
- if (isLoading) {
27768
- return /*#__PURE__*/React.createElement(Loader, null);
27769
- }
27770
- const toggleTimeline = () => {
27771
- setShowAllTimeline(prev => !prev);
27772
- };
27773
- return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading && /*#__PURE__*/React.createElement(Fragment$1, null, (data === null || data === void 0 ? void 0 : (_data$timeline = data.timeline) === null || _data$timeline === void 0 ? void 0 : _data$timeline.length) > 0 && /*#__PURE__*/React.createElement(CardSectionHeader, {
28116
+ if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
28117
+ const visibleTimeline = data !== null && data !== void 0 && data.timeline ? data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2) : [];
28118
+ return /*#__PURE__*/React.createElement(Fragment$1, null, !isLoading && /*#__PURE__*/React.createElement("div", {
27774
28119
  style: {
27775
- marginBottom: "16px"
28120
+ fontFamily: "'Inter', system-ui, sans-serif"
27776
28121
  }
27777
- }, t("CS_APPLICATION_DETAILS_APPLICATION_TIMELINE")), data !== null && data !== void 0 && data.timeline && (data === null || data === void 0 ? void 0 : (_data$timeline2 = data.timeline) === null || _data$timeline2 === void 0 ? void 0 : _data$timeline2.length) === 1 ? /*#__PURE__*/React.createElement(CheckPoint, {
27778
- isCompleted: true,
27779
- label: t((data === null || data === void 0 ? void 0 : (_data$timeline$ = data.timeline[0]) === null || _data$timeline$ === void 0 ? void 0 : _data$timeline$.state) && "CS_" + data.timeline[0].state || "NA"),
27780
- customChild: getTimelineCaptions(data === null || data === void 0 ? void 0 : data.timeline[0])
27781
- }) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (data === null || data === void 0 ? void 0 : data.timeline) && (data === null || data === void 0 ? void 0 : data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2).map((checkpoint, index, arr) => {
27782
- return /*#__PURE__*/React.createElement(React.Fragment, {
27783
- key: index
27784
- }, /*#__PURE__*/React.createElement(CheckPoint, {
27785
- keyValue: index,
27786
- isCompleted: index === 0,
27787
- label: checkpoint.state ? t("CS_" + checkpoint.state) : "NA",
27788
- customChild: getTimelineCaptions(checkpoint)
27789
- }));
27790
- }))), (data === null || data === void 0 ? void 0 : (_data$timeline3 = data.timeline) === null || _data$timeline3 === void 0 ? void 0 : _data$timeline3.length) > 2 && /*#__PURE__*/React.createElement(LinkButton, {
27791
- label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
27792
- onClick: toggleTimeline
27793
- })), data && showNextActions(data === null || data === void 0 ? void 0 : data.nextActions));
28122
+ }, (data === null || data === void 0 ? void 0 : (_data$timeline = data.timeline) === null || _data$timeline === void 0 ? void 0 : _data$timeline.length) > 0 && /*#__PURE__*/React.createElement("div", {
28123
+ style: {
28124
+ display: "flex",
28125
+ alignItems: "center",
28126
+ gap: "10px",
28127
+ marginBottom: "20px"
28128
+ }
28129
+ }, /*#__PURE__*/React.createElement("div", {
28130
+ style: {
28131
+ width: "4px",
28132
+ height: "22px",
28133
+ borderRadius: "2px",
28134
+ background: TOKEN$1.accent,
28135
+ flexShrink: 0
28136
+ }
28137
+ }), /*#__PURE__*/React.createElement("span", {
28138
+ style: {
28139
+ fontWeight: 700,
28140
+ fontSize: "15px",
28141
+ color: TOKEN$1.textPri,
28142
+ letterSpacing: "0.02em"
28143
+ }
28144
+ }, t("CS_APPLICATION_DETAILS_APPLICATION_TIMELINE"))), (data === null || data === void 0 ? void 0 : (_data$timeline2 = data.timeline) === null || _data$timeline2 === void 0 ? void 0 : _data$timeline2.length) === 1 && /*#__PURE__*/React.createElement(StepCard, {
28145
+ checkpoint: data.timeline[0],
28146
+ index: 0,
28147
+ isActive: true,
28148
+ t: t,
28149
+ getTimelineCaptions: getTimelineCaptions
28150
+ }), (data === null || data === void 0 ? void 0 : (_data$timeline3 = data.timeline) === null || _data$timeline3 === void 0 ? void 0 : _data$timeline3.length) > 1 && /*#__PURE__*/React.createElement("div", {
28151
+ style: {
28152
+ position: "relative"
28153
+ }
28154
+ }, visibleTimeline.map((checkpoint, index) => /*#__PURE__*/React.createElement(StepCard, {
28155
+ key: index,
28156
+ checkpoint: checkpoint,
28157
+ index: index,
28158
+ isActive: index === 0,
28159
+ t: t,
28160
+ getTimelineCaptions: getTimelineCaptions
28161
+ }))), (data === null || data === void 0 ? void 0 : (_data$timeline4 = data.timeline) === null || _data$timeline4 === void 0 ? void 0 : _data$timeline4.length) > 2 && /*#__PURE__*/React.createElement("div", {
28162
+ onClick: () => setShowAllTimeline(prev => !prev),
28163
+ style: {
28164
+ marginTop: "4px",
28165
+ marginBottom: "4px",
28166
+ display: "inline-flex",
28167
+ alignItems: "center",
28168
+ gap: "6px",
28169
+ cursor: "pointer",
28170
+ fontSize: "12px",
28171
+ fontWeight: 600,
28172
+ color: TOKEN$1.active,
28173
+ letterSpacing: "0.04em",
28174
+ padding: "6px 0",
28175
+ userSelect: "none"
28176
+ }
28177
+ }, /*#__PURE__*/React.createElement("span", {
28178
+ style: {
28179
+ display: "inline-block",
28180
+ transform: showAllTimeline ? "rotate(180deg)" : "rotate(0deg)",
28181
+ transition: "transform 0.25s",
28182
+ lineHeight: 1
28183
+ }
28184
+ }, "\u25BE"), showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE")), data && showNextActions(data === null || data === void 0 ? void 0 : data.nextActions)));
27794
28185
  };
27795
28186
 
27796
28187
  function WSDocument(_ref) {
@@ -30141,7 +30532,7 @@ const getPath$3 = (path, params) => {
30141
30532
  };
30142
30533
  const getEditDetails = (waterResult, sewerageresult, t) => {
30143
30534
  if (waterResult) {
30144
- var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$connecti27, _waterResult$connecti28, _waterResult$connecti29, _waterResult$connecti30, _waterResult$connecti31, _waterResult$connecti32, _waterResult$applicat, _waterResult$addition, _waterResult$addition2, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23, _waterResult$addition24;
30535
+ var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$connecti27, _waterResult$connecti28, _waterResult$connecti29, _waterResult$connecti30, _waterResult$connecti31, _waterResult$connecti32, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$addition2, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23;
30145
30536
  waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [_extends({}, waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti = waterResult.connectionHolders) === null || _waterResult$connecti === void 0 ? void 0 : _waterResult$connecti[0], {
30146
30537
  address: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti2 = waterResult.connectionHolders) === null || _waterResult$connecti2 === void 0 ? void 0 : (_waterResult$connecti3 = _waterResult$connecti2[0]) === null || _waterResult$connecti3 === void 0 ? void 0 : _waterResult$connecti3.correspondenceAddress,
30147
30538
  documentId: "",
@@ -30154,14 +30545,15 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30154
30545
  guardian: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti0 = waterResult.connectionHolders) === null || _waterResult$connecti0 === void 0 ? void 0 : (_waterResult$connecti1 = _waterResult$connecti0[0]) === null || _waterResult$connecti1 === void 0 ? void 0 : _waterResult$connecti1.fatherOrHusbandName,
30155
30546
  isOwnerSame: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti10 = waterResult.connectionHolders) === null || _waterResult$connecti10 === void 0 ? void 0 : _waterResult$connecti10.length) > 0 ? false : true,
30156
30547
  mobileNumber: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti11 = waterResult.connectionHolders) === null || _waterResult$connecti11 === void 0 ? void 0 : (_waterResult$connecti12 = _waterResult$connecti11[0]) === null || _waterResult$connecti12 === void 0 ? void 0 : _waterResult$connecti12.mobileNumber,
30157
- name: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti13 = waterResult.connectionHolders) === null || _waterResult$connecti13 === void 0 ? void 0 : (_waterResult$connecti14 = _waterResult$connecti13[0]) === null || _waterResult$connecti14 === void 0 ? void 0 : _waterResult$connecti14.name,
30158
- relationship: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti15 = waterResult.connectionHolders) !== null && _waterResult$connecti15 !== void 0 && (_waterResult$connecti16 = _waterResult$connecti15[0]) !== null && _waterResult$connecti16 !== void 0 && _waterResult$connecti16.relationship ? {
30159
- code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti17 = waterResult.connectionHolders) === null || _waterResult$connecti17 === void 0 ? void 0 : (_waterResult$connecti18 = _waterResult$connecti17[0]) === null || _waterResult$connecti18 === void 0 ? void 0 : _waterResult$connecti18.relationship,
30160
- i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti19 = waterResult.connectionHolders) === null || _waterResult$connecti19 === void 0 ? void 0 : (_waterResult$connecti20 = _waterResult$connecti19[0]) === null || _waterResult$connecti20 === void 0 ? void 0 : _waterResult$connecti20.relationship)
30548
+ isWatsappSameAsMobile: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti13 = waterResult.connectionHolders) !== null && _waterResult$connecti13 !== void 0 && (_waterResult$connecti14 = _waterResult$connecti13[0]) !== null && _waterResult$connecti14 !== void 0 && _waterResult$connecti14.mobileNumber && (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti15 = waterResult.connectionHolders) === null || _waterResult$connecti15 === void 0 ? void 0 : (_waterResult$connecti16 = _waterResult$connecti15[0]) === null || _waterResult$connecti16 === void 0 ? void 0 : _waterResult$connecti16.mobileNumber) === (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti17 = waterResult.connectionHolders) === null || _waterResult$connecti17 === void 0 ? void 0 : (_waterResult$connecti18 = _waterResult$connecti17[0]) === null || _waterResult$connecti18 === void 0 ? void 0 : _waterResult$connecti18.watsAppMobileNumber) ? true : false,
30549
+ name: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti19 = waterResult.connectionHolders) === null || _waterResult$connecti19 === void 0 ? void 0 : (_waterResult$connecti20 = _waterResult$connecti19[0]) === null || _waterResult$connecti20 === void 0 ? void 0 : _waterResult$connecti20.name,
30550
+ relationship: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti21 = waterResult.connectionHolders) !== null && _waterResult$connecti21 !== void 0 && (_waterResult$connecti22 = _waterResult$connecti21[0]) !== null && _waterResult$connecti22 !== void 0 && _waterResult$connecti22.relationship ? {
30551
+ code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti23 = waterResult.connectionHolders) === null || _waterResult$connecti23 === void 0 ? void 0 : (_waterResult$connecti24 = _waterResult$connecti23[0]) === null || _waterResult$connecti24 === void 0 ? void 0 : _waterResult$connecti24.relationship,
30552
+ i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti25 = waterResult.connectionHolders) === null || _waterResult$connecti25 === void 0 ? void 0 : (_waterResult$connecti26 = _waterResult$connecti25[0]) === null || _waterResult$connecti26 === void 0 ? void 0 : _waterResult$connecti26.relationship)
30161
30553
  } : null,
30162
- specialCategoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti21 = waterResult.connectionHolders) !== null && _waterResult$connecti21 !== void 0 && (_waterResult$connecti22 = _waterResult$connecti21[0]) !== null && _waterResult$connecti22 !== void 0 && _waterResult$connecti22.ownerType ? {
30163
- code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti23 = waterResult.connectionHolders) === null || _waterResult$connecti23 === void 0 ? void 0 : (_waterResult$connecti24 = _waterResult$connecti23[0]) === null || _waterResult$connecti24 === void 0 ? void 0 : _waterResult$connecti24.ownerType,
30164
- i18nKey: "PROPERTYTAX_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti25 = waterResult.connectionHolders) === null || _waterResult$connecti25 === void 0 ? void 0 : (_waterResult$connecti26 = _waterResult$connecti25[0]) === null || _waterResult$connecti26 === void 0 ? void 0 : _waterResult$connecti26.ownerType)
30554
+ specialCategoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti27 = waterResult.connectionHolders) !== null && _waterResult$connecti27 !== void 0 && (_waterResult$connecti28 = _waterResult$connecti27[0]) !== null && _waterResult$connecti28 !== void 0 && _waterResult$connecti28.ownerType ? {
30555
+ code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti29 = waterResult.connectionHolders) === null || _waterResult$connecti29 === void 0 ? void 0 : (_waterResult$connecti30 = _waterResult$connecti29[0]) === null || _waterResult$connecti30 === void 0 ? void 0 : _waterResult$connecti30.ownerType,
30556
+ i18nKey: "PROPERTYTAX_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti31 = waterResult.connectionHolders) === null || _waterResult$connecti31 === void 0 ? void 0 : (_waterResult$connecti32 = _waterResult$connecti31[0]) === null || _waterResult$connecti32 === void 0 ? void 0 : _waterResult$connecti32.ownerType)
30165
30557
  } : ""
30166
30558
  })] : [{
30167
30559
  address: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$property = waterResult.property) === null || _waterResult$property === void 0 ? void 0 : (_waterResult$property2 = _waterResult$property.owners) === null || _waterResult$property2 === void 0 ? void 0 : (_waterResult$property3 = _waterResult$property2[0]) === null || _waterResult$property3 === void 0 ? void 0 : _waterResult$property3.correspondenceAddress,
@@ -30180,9 +30572,9 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30180
30572
  code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$property23 = waterResult.property) === null || _waterResult$property23 === void 0 ? void 0 : (_waterResult$property24 = _waterResult$property23.owners) === null || _waterResult$property24 === void 0 ? void 0 : (_waterResult$property25 = _waterResult$property24[0]) === null || _waterResult$property25 === void 0 ? void 0 : _waterResult$property25.relationship,
30181
30573
  i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$property26 = waterResult.property) === null || _waterResult$property26 === void 0 ? void 0 : (_waterResult$property27 = _waterResult$property26.owners) === null || _waterResult$property27 === void 0 ? void 0 : (_waterResult$property28 = _waterResult$property27[0]) === null || _waterResult$property28 === void 0 ? void 0 : _waterResult$property28.relationship)
30182
30574
  } : null,
30183
- specialCategoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti27 = waterResult.connectionHolders) !== null && _waterResult$connecti27 !== void 0 && (_waterResult$connecti28 = _waterResult$connecti27[0]) !== null && _waterResult$connecti28 !== void 0 && _waterResult$connecti28.ownerType ? {
30184
- code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti29 = waterResult.connectionHolders) === null || _waterResult$connecti29 === void 0 ? void 0 : (_waterResult$connecti30 = _waterResult$connecti29[0]) === null || _waterResult$connecti30 === void 0 ? void 0 : _waterResult$connecti30.ownerType,
30185
- i18nKey: "PROPERTYTAX_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti31 = waterResult.connectionHolders) === null || _waterResult$connecti31 === void 0 ? void 0 : (_waterResult$connecti32 = _waterResult$connecti31[0]) === null || _waterResult$connecti32 === void 0 ? void 0 : _waterResult$connecti32.ownerType)
30575
+ specialCategoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$connecti33 = waterResult.connectionHolders) !== null && _waterResult$connecti33 !== void 0 && (_waterResult$connecti34 = _waterResult$connecti33[0]) !== null && _waterResult$connecti34 !== void 0 && _waterResult$connecti34.ownerType ? {
30576
+ code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti35 = waterResult.connectionHolders) === null || _waterResult$connecti35 === void 0 ? void 0 : (_waterResult$connecti36 = _waterResult$connecti35[0]) === null || _waterResult$connecti36 === void 0 ? void 0 : _waterResult$connecti36.ownerType,
30577
+ i18nKey: "PROPERTYTAX_OWNERTYPE_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti37 = waterResult.connectionHolders) === null || _waterResult$connecti37 === void 0 ? void 0 : (_waterResult$connecti38 = _waterResult$connecti37[0]) === null || _waterResult$connecti38 === void 0 ? void 0 : _waterResult$connecti38.ownerType)
30186
30578
  } : ""
30187
30579
  }];
30188
30580
  waterResult.WaterConnectionResult = {
@@ -30194,8 +30586,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30194
30586
  waterResult.cptId = {
30195
30587
  id: waterResult === null || waterResult === void 0 ? void 0 : waterResult.propertyId
30196
30588
  };
30197
- waterResult.documents = {
30198
- documents: waterResult === null || waterResult === void 0 ? void 0 : waterResult.documents
30589
+ waterResult.DocumentsRequired = {
30590
+ documents: (waterResult === null || waterResult === void 0 ? void 0 : waterResult.documents) || []
30199
30591
  };
30200
30592
  waterResult.plumberPreference = {
30201
30593
  plumberPreference: {
@@ -30225,18 +30617,21 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30225
30617
  code: "WATER",
30226
30618
  i18nKey: "WS_APPLICATION_TYPE_WATER"
30227
30619
  },
30228
- connectionType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition = waterResult.additionalDetails) !== null && _waterResult$addition !== void 0 && _waterResult$addition.connectionType ? {
30229
- code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition2 = waterResult.additionalDetails) === null || _waterResult$addition2 === void 0 ? void 0 : _waterResult$addition2.connectionType,
30230
- i18nKey: "WS_CONNECTION_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition3 = waterResult.additionalDetails) === null || _waterResult$addition3 === void 0 ? void 0 : _waterResult$addition3.connectionType)
30620
+ connectionType: waterResult !== null && waterResult !== void 0 && waterResult.connectionType ? {
30621
+ code: waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionType,
30622
+ i18nKey: "WS_CONNECTION_" + (waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionType)
30623
+ } : null,
30624
+ waterDemandType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition = waterResult.additionalDetails) !== null && _waterResult$addition !== void 0 && _waterResult$addition.waterDemandType ? {
30625
+ code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition2 = waterResult.additionalDetails) === null || _waterResult$addition2 === void 0 ? void 0 : _waterResult$addition2.waterDemandType,
30626
+ i18nKey: "WS_WATER_DEMAND_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition3 = waterResult.additionalDetails) === null || _waterResult$addition3 === void 0 ? void 0 : _waterResult$addition3.waterDemandType)
30231
30627
  } : null,
30232
- waterDemandType: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition4 = waterResult.additionalDetails) === null || _waterResult$addition4 === void 0 ? void 0 : _waterResult$addition4.waterDemandType) || null,
30233
- applicantType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition5 = waterResult.additionalDetails) !== null && _waterResult$addition5 !== void 0 && _waterResult$addition5.applicantType ? {
30234
- code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition6 = waterResult.additionalDetails) === null || _waterResult$addition6 === void 0 ? void 0 : _waterResult$addition6.applicantType,
30235
- i18nKey: "WS_APPLICANT_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition7 = waterResult.additionalDetails) === null || _waterResult$addition7 === void 0 ? void 0 : _waterResult$addition7.applicantType)
30628
+ applicantType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition4 = waterResult.additionalDetails) !== null && _waterResult$addition4 !== void 0 && _waterResult$addition4.applicantType ? {
30629
+ code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition5 = waterResult.additionalDetails) === null || _waterResult$addition5 === void 0 ? void 0 : _waterResult$addition5.applicantType,
30630
+ i18nKey: "WS_APPLICANT_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition6 = waterResult.additionalDetails) === null || _waterResult$addition6 === void 0 ? void 0 : _waterResult$addition6.applicantType)
30236
30631
  } : null,
30237
- categoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition8 = waterResult.additionalDetails) !== null && _waterResult$addition8 !== void 0 && _waterResult$addition8.categoryType ? {
30238
- code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition9 = waterResult.additionalDetails) === null || _waterResult$addition9 === void 0 ? void 0 : _waterResult$addition9.categoryType,
30239
- i18nKey: "WS_CATEGORY_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition0 = waterResult.additionalDetails) === null || _waterResult$addition0 === void 0 ? void 0 : _waterResult$addition0.categoryType)
30632
+ categoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition7 = waterResult.additionalDetails) !== null && _waterResult$addition7 !== void 0 && _waterResult$addition7.categoryType ? {
30633
+ code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition8 = waterResult.additionalDetails) === null || _waterResult$addition8 === void 0 ? void 0 : _waterResult$addition8.categoryType,
30634
+ i18nKey: "WS_CATEGORY_" + (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition9 = waterResult.additionalDetails) === null || _waterResult$addition9 === void 0 ? void 0 : _waterResult$addition9.categoryType)
30240
30635
  } : null,
30241
30636
  proposedPipeSize: waterResult !== null && waterResult !== void 0 && waterResult.proposedPipeSize ? {
30242
30637
  code: waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedPipeSize,
@@ -30246,21 +30641,21 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30246
30641
  proposedTaps: waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedTaps
30247
30642
  }];
30248
30643
  waterResult.bankDetails = {
30249
- bankName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition1 = waterResult.additionalDetails) === null || _waterResult$addition1 === void 0 ? void 0 : _waterResult$addition1.bankName) || "",
30250
- bankBranchName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.bankBranchName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition11 = waterResult.additionalDetails) === null || _waterResult$addition11 === void 0 ? void 0 : _waterResult$addition11.branchName) || "",
30251
- ifscCode: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition12 = waterResult.additionalDetails) === null || _waterResult$addition12 === void 0 ? void 0 : _waterResult$addition12.ifscCode) || "",
30252
- accountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition13 = waterResult.additionalDetails) === null || _waterResult$addition13 === void 0 ? void 0 : _waterResult$addition13.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition14 = waterResult.additionalDetails) === null || _waterResult$addition14 === void 0 ? void 0 : _waterResult$addition14.accountNumber) || "",
30253
- confirmAccountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition15 = waterResult.additionalDetails) === null || _waterResult$addition15 === void 0 ? void 0 : _waterResult$addition15.confirmAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition16 = waterResult.additionalDetails) === null || _waterResult$addition16 === void 0 ? void 0 : _waterResult$addition16.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition17 = waterResult.additionalDetails) === null || _waterResult$addition17 === void 0 ? void 0 : _waterResult$addition17.accountNumber) || "",
30254
- accountHolderName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition18 = waterResult.additionalDetails) === null || _waterResult$addition18 === void 0 ? void 0 : _waterResult$addition18.accountHolderName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition19 = waterResult.additionalDetails) === null || _waterResult$addition19 === void 0 ? void 0 : _waterResult$addition19.ownerName) || ""
30644
+ bankName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition0 = waterResult.additionalDetails) === null || _waterResult$addition0 === void 0 ? void 0 : _waterResult$addition0.bankName) || "",
30645
+ bankBranchName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition1 = waterResult.additionalDetails) === null || _waterResult$addition1 === void 0 ? void 0 : _waterResult$addition1.bankBranchName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition10 = waterResult.additionalDetails) === null || _waterResult$addition10 === void 0 ? void 0 : _waterResult$addition10.branchName) || "",
30646
+ ifscCode: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition11 = waterResult.additionalDetails) === null || _waterResult$addition11 === void 0 ? void 0 : _waterResult$addition11.ifscCode) || "",
30647
+ accountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition12 = waterResult.additionalDetails) === null || _waterResult$addition12 === void 0 ? void 0 : _waterResult$addition12.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition13 = waterResult.additionalDetails) === null || _waterResult$addition13 === void 0 ? void 0 : _waterResult$addition13.accountNumber) || "",
30648
+ confirmAccountNumber: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition14 = waterResult.additionalDetails) === null || _waterResult$addition14 === void 0 ? void 0 : _waterResult$addition14.confirmAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition15 = waterResult.additionalDetails) === null || _waterResult$addition15 === void 0 ? void 0 : _waterResult$addition15.bankAccountNumber) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition16 = waterResult.additionalDetails) === null || _waterResult$addition16 === void 0 ? void 0 : _waterResult$addition16.accountNumber) || "",
30649
+ accountHolderName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition17 = waterResult.additionalDetails) === null || _waterResult$addition17 === void 0 ? void 0 : _waterResult$addition17.accountHolderName) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition18 = waterResult.additionalDetails) === null || _waterResult$addition18 === void 0 ? void 0 : _waterResult$addition18.ownerName) || ""
30255
30650
  };
30256
30651
  waterResult.djbEmployee = {
30257
- isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.isDjbEmployee) === "true",
30258
- employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.employeeId) || "",
30259
- designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.designation) || "",
30260
- dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition24 = waterResult.additionalDetails) === null || _waterResult$addition24 === void 0 ? void 0 : _waterResult$addition24.dorDate) || ""
30652
+ isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition19 = waterResult.additionalDetails) === null || _waterResult$addition19 === void 0 ? void 0 : _waterResult$addition19.isDjbEmployee) === "true",
30653
+ employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.employeeId) || "",
30654
+ designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.designation) || "",
30655
+ dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.dorDate) || ""
30261
30656
  };
30262
30657
  } else if (sewerageresult) {
30263
- var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$conne27, _sewerageresult$conne28, _sewerageresult$conne29, _sewerageresult$conne30, _sewerageresult$conne31, _sewerageresult$conne32, _sewerageresult$addit, _sewerageresult$addit2, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23, _sewerageresult$addit24;
30658
+ var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$conne27, _sewerageresult$conne28, _sewerageresult$conne29, _sewerageresult$conne30, _sewerageresult$conne31, _sewerageresult$conne32, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$addit2, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23;
30264
30659
  sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [_extends({}, sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0], {
30265
30660
  address: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne2 = sewerageresult.connectionHolders) === null || _sewerageresult$conne2 === void 0 ? void 0 : (_sewerageresult$conne3 = _sewerageresult$conne2[0]) === null || _sewerageresult$conne3 === void 0 ? void 0 : _sewerageresult$conne3.correspondenceAddress,
30266
30661
  documentId: "",
@@ -30273,14 +30668,15 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30273
30668
  guardian: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne0 = sewerageresult.connectionHolders) === null || _sewerageresult$conne0 === void 0 ? void 0 : (_sewerageresult$conne1 = _sewerageresult$conne0[0]) === null || _sewerageresult$conne1 === void 0 ? void 0 : _sewerageresult$conne1.fatherOrHusbandName,
30274
30669
  isOwnerSame: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne10 = sewerageresult.connectionHolders) === null || _sewerageresult$conne10 === void 0 ? void 0 : _sewerageresult$conne10.length) > 0 ? false : true,
30275
30670
  mobileNumber: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne11 = sewerageresult.connectionHolders) === null || _sewerageresult$conne11 === void 0 ? void 0 : (_sewerageresult$conne12 = _sewerageresult$conne11[0]) === null || _sewerageresult$conne12 === void 0 ? void 0 : _sewerageresult$conne12.mobileNumber,
30276
- name: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne13 = sewerageresult.connectionHolders) === null || _sewerageresult$conne13 === void 0 ? void 0 : (_sewerageresult$conne14 = _sewerageresult$conne13[0]) === null || _sewerageresult$conne14 === void 0 ? void 0 : _sewerageresult$conne14.name,
30277
- relationship: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne15 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne15 !== void 0 && (_sewerageresult$conne16 = _sewerageresult$conne15[0]) !== null && _sewerageresult$conne16 !== void 0 && _sewerageresult$conne16.relationship ? {
30278
- code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne17 = sewerageresult.connectionHolders) === null || _sewerageresult$conne17 === void 0 ? void 0 : (_sewerageresult$conne18 = _sewerageresult$conne17[0]) === null || _sewerageresult$conne18 === void 0 ? void 0 : _sewerageresult$conne18.relationship,
30279
- i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne19 = sewerageresult.connectionHolders) === null || _sewerageresult$conne19 === void 0 ? void 0 : (_sewerageresult$conne20 = _sewerageresult$conne19[0]) === null || _sewerageresult$conne20 === void 0 ? void 0 : _sewerageresult$conne20.relationship)
30671
+ isWatsappSameAsMobile: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne13 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne13 !== void 0 && (_sewerageresult$conne14 = _sewerageresult$conne13[0]) !== null && _sewerageresult$conne14 !== void 0 && _sewerageresult$conne14.mobileNumber && (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne15 = sewerageresult.connectionHolders) === null || _sewerageresult$conne15 === void 0 ? void 0 : (_sewerageresult$conne16 = _sewerageresult$conne15[0]) === null || _sewerageresult$conne16 === void 0 ? void 0 : _sewerageresult$conne16.mobileNumber) === (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne17 = sewerageresult.connectionHolders) === null || _sewerageresult$conne17 === void 0 ? void 0 : (_sewerageresult$conne18 = _sewerageresult$conne17[0]) === null || _sewerageresult$conne18 === void 0 ? void 0 : _sewerageresult$conne18.watsAppMobileNumber) ? true : false,
30672
+ name: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne19 = sewerageresult.connectionHolders) === null || _sewerageresult$conne19 === void 0 ? void 0 : (_sewerageresult$conne20 = _sewerageresult$conne19[0]) === null || _sewerageresult$conne20 === void 0 ? void 0 : _sewerageresult$conne20.name,
30673
+ relationship: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne21 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne21 !== void 0 && (_sewerageresult$conne22 = _sewerageresult$conne21[0]) !== null && _sewerageresult$conne22 !== void 0 && _sewerageresult$conne22.relationship ? {
30674
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne23 = sewerageresult.connectionHolders) === null || _sewerageresult$conne23 === void 0 ? void 0 : (_sewerageresult$conne24 = _sewerageresult$conne23[0]) === null || _sewerageresult$conne24 === void 0 ? void 0 : _sewerageresult$conne24.relationship,
30675
+ i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne25 = sewerageresult.connectionHolders) === null || _sewerageresult$conne25 === void 0 ? void 0 : (_sewerageresult$conne26 = _sewerageresult$conne25[0]) === null || _sewerageresult$conne26 === void 0 ? void 0 : _sewerageresult$conne26.relationship)
30280
30676
  } : null,
30281
- specialCategoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne21 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne21 !== void 0 && (_sewerageresult$conne22 = _sewerageresult$conne21[0]) !== null && _sewerageresult$conne22 !== void 0 && _sewerageresult$conne22.ownerType ? {
30282
- code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne23 = sewerageresult.connectionHolders) === null || _sewerageresult$conne23 === void 0 ? void 0 : (_sewerageresult$conne24 = _sewerageresult$conne23[0]) === null || _sewerageresult$conne24 === void 0 ? void 0 : _sewerageresult$conne24.ownerType,
30283
- i18nKey: "PROPERTYTAX_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne25 = sewerageresult.connectionHolders) === null || _sewerageresult$conne25 === void 0 ? void 0 : (_sewerageresult$conne26 = _sewerageresult$conne25[0]) === null || _sewerageresult$conne26 === void 0 ? void 0 : _sewerageresult$conne26.ownerType)
30677
+ specialCategoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne27 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne27 !== void 0 && (_sewerageresult$conne28 = _sewerageresult$conne27[0]) !== null && _sewerageresult$conne28 !== void 0 && _sewerageresult$conne28.ownerType ? {
30678
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne29 = sewerageresult.connectionHolders) === null || _sewerageresult$conne29 === void 0 ? void 0 : (_sewerageresult$conne30 = _sewerageresult$conne29[0]) === null || _sewerageresult$conne30 === void 0 ? void 0 : _sewerageresult$conne30.ownerType,
30679
+ i18nKey: "PROPERTYTAX_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne31 = sewerageresult.connectionHolders) === null || _sewerageresult$conne31 === void 0 ? void 0 : (_sewerageresult$conne32 = _sewerageresult$conne31[0]) === null || _sewerageresult$conne32 === void 0 ? void 0 : _sewerageresult$conne32.ownerType)
30284
30680
  } : ""
30285
30681
  })] : [{
30286
30682
  address: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$prope = sewerageresult.property) === null || _sewerageresult$prope === void 0 ? void 0 : (_sewerageresult$prope2 = _sewerageresult$prope.owners) === null || _sewerageresult$prope2 === void 0 ? void 0 : (_sewerageresult$prope3 = _sewerageresult$prope2[0]) === null || _sewerageresult$prope3 === void 0 ? void 0 : _sewerageresult$prope3.correspondenceAddress,
@@ -30299,9 +30695,9 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30299
30695
  code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$prope23 = sewerageresult.property) === null || _sewerageresult$prope23 === void 0 ? void 0 : (_sewerageresult$prope24 = _sewerageresult$prope23.owners) === null || _sewerageresult$prope24 === void 0 ? void 0 : (_sewerageresult$prope25 = _sewerageresult$prope24[0]) === null || _sewerageresult$prope25 === void 0 ? void 0 : _sewerageresult$prope25.relationship,
30300
30696
  i18nKey: "COMMON_MASTERS_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$prope26 = sewerageresult.property) === null || _sewerageresult$prope26 === void 0 ? void 0 : (_sewerageresult$prope27 = _sewerageresult$prope26.owners) === null || _sewerageresult$prope27 === void 0 ? void 0 : (_sewerageresult$prope28 = _sewerageresult$prope27[0]) === null || _sewerageresult$prope28 === void 0 ? void 0 : _sewerageresult$prope28.relationship)
30301
30697
  } : null,
30302
- specialCategoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne27 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne27 !== void 0 && (_sewerageresult$conne28 = _sewerageresult$conne27[0]) !== null && _sewerageresult$conne28 !== void 0 && _sewerageresult$conne28.ownerType ? {
30303
- code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne29 = sewerageresult.connectionHolders) === null || _sewerageresult$conne29 === void 0 ? void 0 : (_sewerageresult$conne30 = _sewerageresult$conne29[0]) === null || _sewerageresult$conne30 === void 0 ? void 0 : _sewerageresult$conne30.ownerType,
30304
- i18nKey: "PROPERTYTAX_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne31 = sewerageresult.connectionHolders) === null || _sewerageresult$conne31 === void 0 ? void 0 : (_sewerageresult$conne32 = _sewerageresult$conne31[0]) === null || _sewerageresult$conne32 === void 0 ? void 0 : _sewerageresult$conne32.ownerType)
30698
+ specialCategoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$conne33 = sewerageresult.connectionHolders) !== null && _sewerageresult$conne33 !== void 0 && (_sewerageresult$conne34 = _sewerageresult$conne33[0]) !== null && _sewerageresult$conne34 !== void 0 && _sewerageresult$conne34.ownerType ? {
30699
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne35 = sewerageresult.connectionHolders) === null || _sewerageresult$conne35 === void 0 ? void 0 : (_sewerageresult$conne36 = _sewerageresult$conne35[0]) === null || _sewerageresult$conne36 === void 0 ? void 0 : _sewerageresult$conne36.ownerType,
30700
+ i18nKey: "PROPERTYTAX_OWNERTYPE_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne37 = sewerageresult.connectionHolders) === null || _sewerageresult$conne37 === void 0 ? void 0 : (_sewerageresult$conne38 = _sewerageresult$conne37[0]) === null || _sewerageresult$conne38 === void 0 ? void 0 : _sewerageresult$conne38.ownerType)
30305
30701
  } : ""
30306
30702
  }];
30307
30703
  sewerageresult.SewerageConnectionResult = {
@@ -30313,8 +30709,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30313
30709
  sewerageresult.cptId = {
30314
30710
  id: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.propertyId
30315
30711
  };
30316
- sewerageresult.documents = {
30317
- documents: [...(sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.documents)]
30712
+ sewerageresult.DocumentsRequired = {
30713
+ documents: (sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.documents) || []
30318
30714
  };
30319
30715
  sewerageresult.plumberPreference = {
30320
30716
  plumberPreference: {
@@ -30340,41 +30736,47 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30340
30736
  code: "SEWERAGE",
30341
30737
  i18nKey: "WS_APPLICATION_TYPE_SEWERAGE"
30342
30738
  },
30343
- connectionType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit = sewerageresult.additionalDetails) !== null && _sewerageresult$addit !== void 0 && _sewerageresult$addit.connectionType ? {
30344
- code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit2 = sewerageresult.additionalDetails) === null || _sewerageresult$addit2 === void 0 ? void 0 : _sewerageresult$addit2.connectionType,
30345
- i18nKey: "WS_CONNECTION_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit3 = sewerageresult.additionalDetails) === null || _sewerageresult$addit3 === void 0 ? void 0 : _sewerageresult$addit3.connectionType)
30739
+ connectionType: sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionType ? {
30740
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.connectionType,
30741
+ i18nKey: "WS_CONNECTION_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.connectionType)
30742
+ } : {
30743
+ code: "Non Metered",
30744
+ i18nKey: "WS_CONNECTION_Non Metered"
30745
+ },
30746
+ waterDemandType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit = sewerageresult.additionalDetails) !== null && _sewerageresult$addit !== void 0 && _sewerageresult$addit.waterDemandType ? {
30747
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit2 = sewerageresult.additionalDetails) === null || _sewerageresult$addit2 === void 0 ? void 0 : _sewerageresult$addit2.waterDemandType,
30748
+ i18nKey: "WS_WATER_DEMAND_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit3 = sewerageresult.additionalDetails) === null || _sewerageresult$addit3 === void 0 ? void 0 : _sewerageresult$addit3.waterDemandType)
30346
30749
  } : null,
30347
- waterDemandType: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit4 = sewerageresult.additionalDetails) === null || _sewerageresult$addit4 === void 0 ? void 0 : _sewerageresult$addit4.waterDemandType) || null,
30348
- applicantType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit5 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit5 !== void 0 && _sewerageresult$addit5.applicantType ? {
30349
- code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit6 = sewerageresult.additionalDetails) === null || _sewerageresult$addit6 === void 0 ? void 0 : _sewerageresult$addit6.applicantType,
30350
- i18nKey: "WS_APPLICANT_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit7 = sewerageresult.additionalDetails) === null || _sewerageresult$addit7 === void 0 ? void 0 : _sewerageresult$addit7.applicantType)
30750
+ applicantType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit4 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit4 !== void 0 && _sewerageresult$addit4.applicantType ? {
30751
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit5 = sewerageresult.additionalDetails) === null || _sewerageresult$addit5 === void 0 ? void 0 : _sewerageresult$addit5.applicantType,
30752
+ i18nKey: "WS_APPLICANT_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit6 = sewerageresult.additionalDetails) === null || _sewerageresult$addit6 === void 0 ? void 0 : _sewerageresult$addit6.applicantType)
30351
30753
  } : null,
30352
- categoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit8 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit8 !== void 0 && _sewerageresult$addit8.categoryType ? {
30353
- code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit9 = sewerageresult.additionalDetails) === null || _sewerageresult$addit9 === void 0 ? void 0 : _sewerageresult$addit9.categoryType,
30354
- i18nKey: "WS_CATEGORY_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit0 = sewerageresult.additionalDetails) === null || _sewerageresult$addit0 === void 0 ? void 0 : _sewerageresult$addit0.categoryType)
30754
+ categoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit7 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit7 !== void 0 && _sewerageresult$addit7.categoryType ? {
30755
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit8 = sewerageresult.additionalDetails) === null || _sewerageresult$addit8 === void 0 ? void 0 : _sewerageresult$addit8.categoryType,
30756
+ i18nKey: "WS_CATEGORY_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit9 = sewerageresult.additionalDetails) === null || _sewerageresult$addit9 === void 0 ? void 0 : _sewerageresult$addit9.categoryType)
30355
30757
  } : null,
30356
30758
  proposedToilets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedToilets,
30357
30759
  proposedWaterClosets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedWaterClosets
30358
30760
  }];
30359
30761
  sewerageresult.bankDetails = {
30360
- bankName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit1 = sewerageresult.additionalDetails) === null || _sewerageresult$addit1 === void 0 ? void 0 : _sewerageresult$addit1.bankName) || "",
30361
- bankBranchName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit10 = sewerageresult.additionalDetails) === null || _sewerageresult$addit10 === void 0 ? void 0 : _sewerageresult$addit10.bankBranchName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit11 = sewerageresult.additionalDetails) === null || _sewerageresult$addit11 === void 0 ? void 0 : _sewerageresult$addit11.branchName) || "",
30362
- ifscCode: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit12 = sewerageresult.additionalDetails) === null || _sewerageresult$addit12 === void 0 ? void 0 : _sewerageresult$addit12.ifscCode) || "",
30363
- accountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit13 = sewerageresult.additionalDetails) === null || _sewerageresult$addit13 === void 0 ? void 0 : _sewerageresult$addit13.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit14 = sewerageresult.additionalDetails) === null || _sewerageresult$addit14 === void 0 ? void 0 : _sewerageresult$addit14.accountNumber) || "",
30364
- confirmAccountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit15 = sewerageresult.additionalDetails) === null || _sewerageresult$addit15 === void 0 ? void 0 : _sewerageresult$addit15.confirmAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit16 = sewerageresult.additionalDetails) === null || _sewerageresult$addit16 === void 0 ? void 0 : _sewerageresult$addit16.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit17 = sewerageresult.additionalDetails) === null || _sewerageresult$addit17 === void 0 ? void 0 : _sewerageresult$addit17.accountNumber) || "",
30365
- accountHolderName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit18 = sewerageresult.additionalDetails) === null || _sewerageresult$addit18 === void 0 ? void 0 : _sewerageresult$addit18.accountHolderName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit19 = sewerageresult.additionalDetails) === null || _sewerageresult$addit19 === void 0 ? void 0 : _sewerageresult$addit19.ownerName) || ""
30762
+ bankName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit0 = sewerageresult.additionalDetails) === null || _sewerageresult$addit0 === void 0 ? void 0 : _sewerageresult$addit0.bankName) || "",
30763
+ bankBranchName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit1 = sewerageresult.additionalDetails) === null || _sewerageresult$addit1 === void 0 ? void 0 : _sewerageresult$addit1.bankBranchName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit10 = sewerageresult.additionalDetails) === null || _sewerageresult$addit10 === void 0 ? void 0 : _sewerageresult$addit10.branchName) || "",
30764
+ ifscCode: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit11 = sewerageresult.additionalDetails) === null || _sewerageresult$addit11 === void 0 ? void 0 : _sewerageresult$addit11.ifscCode) || "",
30765
+ accountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit12 = sewerageresult.additionalDetails) === null || _sewerageresult$addit12 === void 0 ? void 0 : _sewerageresult$addit12.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit13 = sewerageresult.additionalDetails) === null || _sewerageresult$addit13 === void 0 ? void 0 : _sewerageresult$addit13.accountNumber) || "",
30766
+ confirmAccountNumber: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit14 = sewerageresult.additionalDetails) === null || _sewerageresult$addit14 === void 0 ? void 0 : _sewerageresult$addit14.confirmAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit15 = sewerageresult.additionalDetails) === null || _sewerageresult$addit15 === void 0 ? void 0 : _sewerageresult$addit15.bankAccountNumber) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit16 = sewerageresult.additionalDetails) === null || _sewerageresult$addit16 === void 0 ? void 0 : _sewerageresult$addit16.accountNumber) || "",
30767
+ accountHolderName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit17 = sewerageresult.additionalDetails) === null || _sewerageresult$addit17 === void 0 ? void 0 : _sewerageresult$addit17.accountHolderName) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit18 = sewerageresult.additionalDetails) === null || _sewerageresult$addit18 === void 0 ? void 0 : _sewerageresult$addit18.ownerName) || ""
30366
30768
  };
30367
30769
  sewerageresult.djbEmployee = {
30368
- isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.isDjbEmployee) === "true",
30369
- employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.employeeId) || "",
30370
- designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.designation) || "",
30371
- dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit24 = sewerageresult.additionalDetails) === null || _sewerageresult$addit24 === void 0 ? void 0 : _sewerageresult$addit24.dorDate) || ""
30770
+ isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit19 = sewerageresult.additionalDetails) === null || _sewerageresult$addit19 === void 0 ? void 0 : _sewerageresult$addit19.isDjbEmployee) === "true",
30771
+ employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.employeeId) || "",
30772
+ designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.designation) || "",
30773
+ dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.dorDate) || ""
30372
30774
  };
30373
30775
  }
30374
30776
  if (waterResult) return _extends({}, waterResult);else return _extends({}, sewerageresult);
30375
30777
  };
30376
30778
  const EditApplication = _ref => {
30377
- var _newConfig, _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi;
30779
+ var _newConfig, _Digit, _Digit$ComponentRegis;
30378
30780
  const queryClient = useQueryClient();
30379
30781
  let match = useRouteMatch();
30380
30782
  const _useTranslation = useTranslation(),
@@ -30382,17 +30784,22 @@ const EditApplication = _ref => {
30382
30784
  let _useParams = useParams(),
30383
30785
  tenantId = _useParams.tenantId;
30384
30786
  const _useLocation = useLocation(),
30385
- pathname = _useLocation.pathname,
30386
30787
  state = _useLocation.state;
30387
30788
  const history = useHistory();
30388
30789
  let applicationNumber = (state === null || state === void 0 ? void 0 : state.id) || sessionStorage.getItem("ApplicationNoState");
30389
30790
  let config = [];
30390
30791
  let waterapplication = {};
30391
30792
  let sewerageapplication = {};
30392
- const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("WS_EDIT_APPLICATION_V3", {}),
30793
+ const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("WS_EDIT_APPLICATION_V5", {}),
30393
30794
  params = _Digit$Hooks$useSessi[0],
30394
30795
  setParams = _Digit$Hooks$useSessi[1],
30395
30796
  clearParams = _Digit$Hooks$useSessi[2];
30797
+ let initialConfig = [];
30798
+ newConfig === null || newConfig === void 0 ? void 0 : newConfig.forEach(obj => {
30799
+ if (!obj.hideInCitizen) {
30800
+ initialConfig = initialConfig.concat(obj.body.filter(a => !a.hideInCitizen));
30801
+ }
30802
+ });
30396
30803
  const stateId = Digit.ULBService.getStateId();
30397
30804
  let _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.getFormConfig(stateId, {}),
30398
30805
  newConfig$1 = _Digit$Hooks$ws$useWS.data,
@@ -30455,35 +30862,17 @@ const EditApplication = _ref => {
30455
30862
  setParams(_extends({}, params, EditDetails));
30456
30863
  }
30457
30864
  }, [Waterresult, Sewarageresult]);
30458
- const goNext = skipStep => {
30459
- var _params$cptId, _params$cpt, _params$cpt$details, _params$cpt2, _params$cpt2$details;
30460
- const currentPath = pathname.split("/").pop();
30461
- let _config$find = config.find(routeObj => routeObj.route === currentPath),
30462
- nextStep = _config$find.nextStep;
30463
- let routeObject = config.find(routeObj => routeObj.route === currentPath && routeObj);
30464
- if (typeof nextStep == "object" && nextStep != null) {
30465
- if (nextStep[sessionStorage.getItem("KnowProperty")] && (nextStep[sessionStorage.getItem("KnowProperty")] === "search-property" || nextStep[sessionStorage.getItem("KnowProperty")] === "create-property")) {
30466
- nextStep = "" + nextStep[sessionStorage.getItem("KnowProperty")];
30467
- }
30468
- }
30469
- if (routeObject[sessionStorage.getItem("serviceName")]) nextStep = routeObject[sessionStorage.getItem("serviceName")];
30470
- if ((params !== null && params !== void 0 && (_params$cptId = params.cptId) !== null && _params$cptId !== void 0 && _params$cptId.id || params !== null && params !== void 0 && (_params$cpt = params.cpt) !== null && _params$cpt !== void 0 && (_params$cpt$details = _params$cpt.details) !== null && _params$cpt$details !== void 0 && _params$cpt$details.propertyId || isModifyEdit && params !== null && params !== void 0 && (_params$cpt2 = params.cpt) !== null && _params$cpt2 !== void 0 && (_params$cpt2$details = _params$cpt2.details) !== null && _params$cpt2$details !== void 0 && _params$cpt2$details.propertyId) && nextStep === "know-your-property") {
30471
- nextStep = "property-details";
30472
- }
30473
- if (nextStep === "docsrequired" && sessionStorage.getItem("changePropertySelected") === "yes") {
30474
- nextStep = "property-details";
30475
- }
30476
- let redirectWithHistory = history.push;
30477
- if (nextStep === null) {
30478
- return redirectWithHistory(getPath$3(match.path, match.params) + "/check");
30479
- }
30480
- redirectWithHistory(getPath$3(match.path, match.params) + "/" + nextStep);
30481
- };
30482
30865
  const onSuccess = () => {
30483
30866
  queryClient.invalidateQueries("WS_CREATE");
30484
30867
  };
30485
30868
  const createApplication = function () {
30486
30869
  try {
30870
+ var _params$DocumentsRequ;
30871
+ if (params !== null && params !== void 0 && (_params$DocumentsRequ = params.DocumentsRequired) !== null && _params$DocumentsRequ !== void 0 && _params$DocumentsRequ.documents) {
30872
+ params.documents = {
30873
+ documents: params.DocumentsRequired.documents
30874
+ };
30875
+ }
30487
30876
  history.push(getPath$3(match.path, match.params) + "/acknowledgement");
30488
30877
  return Promise.resolve();
30489
30878
  } catch (e) {
@@ -30494,7 +30883,6 @@ const EditApplication = _ref => {
30494
30883
  if (isFromCreateApi) setParams(data);else if (key === "") setParams(_extends({}, data));else setParams(_extends({}, params, {
30495
30884
  [key]: _extends({}, params[key], data)
30496
30885
  }));
30497
- goNext();
30498
30886
  };
30499
30887
  const handleSkip = () => {};
30500
30888
  newConfig$1 = newConfig;
@@ -30503,21 +30891,62 @@ const EditApplication = _ref => {
30503
30891
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
30504
30892
  }
30505
30893
  });
30506
- config.indexRoute = "property-details";
30507
- if ((Waterresult && Object.keys(Waterresult).length > 0 || !Sewarageresult) && Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || configLoading) {
30894
+ const startIndex = config.findIndex(c => c.route === "connection-details");
30895
+ if (startIndex !== -1) {
30896
+ config = config.slice(startIndex);
30897
+ }
30898
+ config = config.filter(c => c.route !== "docsrequired" && c.route !== "check");
30899
+ config.forEach(c => {
30900
+ if (c.component === "WSDocumentDetails") {
30901
+ c.component = "WSDocumentsEmployee";
30902
+ c.key = "DocumentsRequired";
30903
+ }
30904
+ });
30905
+ config = config.map((routeObj, index) => {
30906
+ var _routeObj$texts;
30907
+ return _extends({}, routeObj, {
30908
+ timeLine: [{
30909
+ currentStep: index + 1,
30910
+ actions: ((_routeObj$texts = routeObj.texts) === null || _routeObj$texts === void 0 ? void 0 : _routeObj$texts.header) || routeObj.route
30911
+ }]
30912
+ });
30913
+ });
30914
+ if ((Waterresult && Object.keys(Waterresult).length > 0 || !Sewarageresult) && Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || configLoading || Object.keys(params).length === 0) {
30508
30915
  return /*#__PURE__*/React.createElement(Loader, null);
30509
30916
  }
30510
- const CheckPage = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSCheckPage");
30511
- const Acknowledgement = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WSAcknowledgement");
30512
- return /*#__PURE__*/React.createElement(Switch, null, config.map((routeObj, index) => {
30917
+ const Acknowledgement = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSAcknowledgement");
30918
+ return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
30919
+ path: getPath$3(match.path, match.params) + "/acknowledgement"
30920
+ }, /*#__PURE__*/React.createElement(Acknowledgement, {
30921
+ data: params,
30922
+ onSuccess: onSuccess,
30923
+ clearParams: clearParams
30924
+ })), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement("div", {
30925
+ className: "citizen-single-screen-edit"
30926
+ }, /*#__PURE__*/React.createElement("style", null, "\n .citizen-single-screen-edit .timeline-container { display: none !important; }\n .citizen-single-screen-edit .form-step-footer { display: none !important; }\n "), /*#__PURE__*/React.createElement("div", {
30927
+ style: {
30928
+ display: "flex",
30929
+ flexDirection: "row",
30930
+ gap: "24px",
30931
+ alignItems: "flex-start",
30932
+ marginBottom: "2rem"
30933
+ }
30934
+ }, /*#__PURE__*/React.createElement("div", {
30935
+ style: {
30936
+ flex: "1",
30937
+ display: "flex",
30938
+ flexDirection: "column",
30939
+ gap: "24px"
30940
+ }
30941
+ }, config.map((routeObj, index) => {
30513
30942
  const component = routeObj.component,
30514
30943
  texts = routeObj.texts,
30515
30944
  inputs = routeObj.inputs,
30516
30945
  key = routeObj.key,
30517
30946
  isSkipEnabled = routeObj.isSkipEnabled;
30518
30947
  const Component = typeof component === "string" ? Digit.ComponentRegistryService.getComponent(component) : component;
30519
- return /*#__PURE__*/React.createElement(Route, {
30520
- path: getPath$3(match.path, match.params) + "/" + routeObj.route,
30948
+ return /*#__PURE__*/React.createElement("div", {
30949
+ id: "step-" + index,
30521
30950
  key: index
30522
30951
  }, /*#__PURE__*/React.createElement(Component, {
30523
30952
  config: {
@@ -30530,22 +30959,16 @@ const EditApplication = _ref => {
30530
30959
  onSkip: handleSkip,
30531
30960
  t: t,
30532
30961
  formData: params,
30533
- userType: "citizen"
30962
+ userType: "employee"
30534
30963
  }));
30535
- }), /*#__PURE__*/React.createElement(Route, {
30536
- path: getPath$3(match.path, match.params) + "/check"
30537
- }, /*#__PURE__*/React.createElement(CheckPage, {
30538
- onSubmit: createApplication,
30539
- value: params
30540
- })), /*#__PURE__*/React.createElement(Route, {
30541
- path: getPath$3(match.path, match.params) + "/acknowledgement"
30542
- }, /*#__PURE__*/React.createElement(Acknowledgement, {
30543
- data: params,
30544
- onSuccess: onSuccess,
30545
- clearParams: clearParams
30546
- })), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(Redirect, {
30547
- to: getPath$3(match.path, match.params) + "/" + config.indexRoute
30548
- })));
30964
+ }), /*#__PURE__*/React.createElement("div", {
30965
+ style: {
30966
+ marginTop: "24px"
30967
+ }
30968
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
30969
+ label: t("SUBMIT"),
30970
+ onSubmit: createApplication
30971
+ })))))));
30549
30972
  };
30550
30973
 
30551
30974
  const getPath$4 = (path, params) => {
@@ -32450,7 +32873,7 @@ const WSPropertyLocationDetails = props => {
32450
32873
  onSelect(config.key, data);
32451
32874
  };
32452
32875
  const onSkip = () => onSelect();
32453
- const PropertyLocationDetails = Digit.ComponentRegistryService.setComponent("PropertyLocationDetails");
32876
+ const PropertyLocationDetails = Digit.ComponentRegistryService.getComponent("PropertyLocationDetails");
32454
32877
  if (userType === "citizen") {
32455
32878
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Timeline, {
32456
32879
  currentStep: 2
@@ -38580,12 +39003,12 @@ const ActionModal$5 = _ref => {
38580
39003
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
38581
39004
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
38582
39005
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
38583
- const dueVerificationData = sessionStorage.getItem("Digit.DUE_VERIFICATION_DATA");
38584
- if (dueVerificationData) {
39006
+ const inspectionInformationData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
39007
+ if (inspectionInformationData) {
38585
39008
  try {
38586
- applicationData.dueVerification = JSON.parse(dueVerificationData);
39009
+ applicationData.inspectionInformation = JSON.parse(inspectionInformationData);
38587
39010
  } catch (e) {
38588
- console.error("Error parsing due verification data", e);
39011
+ console.error("Error parsing inspection information data", e);
38589
39012
  }
38590
39013
  }
38591
39014
  ((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
@@ -41509,7 +41932,7 @@ const SubOccupancyTable = _ref => {
41509
41932
  })));
41510
41933
  };
41511
41934
 
41512
- const Reason$1 = _ref => {
41935
+ const Reason = _ref => {
41513
41936
  let headComment = _ref.headComment,
41514
41937
  otherComment = _ref.otherComment;
41515
41938
  return /*#__PURE__*/React.createElement("div", {
@@ -41534,7 +41957,7 @@ const TLCaption = _ref => {
41534
41957
  }, /*#__PURE__*/React.createElement(TelePhone, {
41535
41958
  mobile: data.mobileNumber,
41536
41959
  privacy: privacy
41537
- }), /*#__PURE__*/React.createElement("p", null, "\xA0\xA0\xA0\xA0")), data.source && /*#__PURE__*/React.createElement("p", null, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React.createElement(Reason$1, {
41960
+ }), /*#__PURE__*/React.createElement("p", null, "\xA0\xA0\xA0\xA0")), data.source && /*#__PURE__*/React.createElement("p", null, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React.createElement(Reason, {
41538
41961
  otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
41539
41962
  headComment: data === null || data === void 0 ? void 0 : data.comment
41540
41963
  }), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map((e, index) => /*#__PURE__*/React.createElement("div", {
@@ -41804,19 +42227,23 @@ const WSFeeEstimation = _ref => {
41804
42227
  var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
41805
42228
  const data = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails);
41806
42229
  if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
41807
- var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8;
41808
- const values = [{
42230
+ var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0;
42231
+ const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || [];
42232
+ const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
42233
+ title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
42234
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
42235
+ })) : [{
41809
42236
  title: "WS_APPLICATION_FEE_HEADER",
41810
- value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.fee)
42237
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.fee)
41811
42238
  }, {
41812
42239
  title: "WS_SERVICE_FEE_HEADER",
41813
- value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.charge)
42240
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.charge)
41814
42241
  }, {
41815
42242
  title: "WS_TAX_HEADER",
41816
- value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.taxAmount)
42243
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill8 = sessionFormData.billDetails) === null || _sessionFormData$bill8 === void 0 ? void 0 : (_sessionFormData$bill9 = _sessionFormData$bill8[0]) === null || _sessionFormData$bill9 === void 0 ? void 0 : _sessionFormData$bill9.taxAmount)
41817
42244
  }];
41818
42245
  setValues(values);
41819
- setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill8 = sessionFormData.billDetails) === null || _sessionFormData$bill8 === void 0 ? void 0 : _sessionFormData$bill8[0]);
42246
+ setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : _sessionFormData$bill0[0]);
41820
42247
  } else {
41821
42248
  setSessionFormData(data);
41822
42249
  setFields(data);
@@ -41880,24 +42307,28 @@ const WSFeeEstimation = _ref => {
41880
42307
  };
41881
42308
  let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$16 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$16 === void 0 ? void 0 : (_wsAdditionalDetails$17 = _wsAdditionalDetails$16.appDetails) === null || _wsAdditionalDetails$17 === void 0 ? void 0 : _wsAdditionalDetails$17.service) == "WATER" ? "WS" : "SW";
41882
42309
  Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
41883
- var _result$Calculation, _result$Calculation$, _result$Calculation$$, _result$Calculation3, _result$Calculation3$, _result$Calculation4, _result$Calculation4$, _result$Calculation5, _result$Calculation5$, _result$Calculation6, _result$Calculation6$, _result$Calculation7;
42310
+ var _result$Calculation, _result$Calculation$, _result$Calculation$$, _result$Calculation3, _result$Calculation3$, _result$Calculation4, _result$Calculation4$, _result$Calculation5, _result$Calculation5$, _result$Calculation6, _result$Calculation6$, _result$Calculation7, _result$Calculation7$, _result$Calculation8;
41884
42311
  if ((result === null || result === void 0 ? void 0 : (_result$Calculation = result.Calculation) === null || _result$Calculation === void 0 ? void 0 : (_result$Calculation$ = _result$Calculation[0]) === null || _result$Calculation$ === void 0 ? void 0 : (_result$Calculation$$ = _result$Calculation$.taxHeadEstimates) === null || _result$Calculation$$ === void 0 ? void 0 : _result$Calculation$$.length) > 0) {
41885
42312
  var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
41886
42313
  result === null || result === void 0 ? void 0 : (_result$Calculation2 = result.Calculation) === null || _result$Calculation2 === void 0 ? void 0 : (_result$Calculation2$ = _result$Calculation2[0]) === null || _result$Calculation2$ === void 0 ? void 0 : (_result$Calculation2$2 = _result$Calculation2$.taxHeadEstimates) === null || _result$Calculation2$2 === void 0 ? void 0 : _result$Calculation2$2.forEach(data => data.amount = data.estimateAmount);
41887
42314
  }
41888
42315
  result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
41889
- const values = [{
42316
+ const taxHeadEstimates = (result === null || result === void 0 ? void 0 : (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.taxHeadEstimates) || [];
42317
+ const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
42318
+ title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
42319
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
42320
+ })) : [{
41890
42321
  title: "WS_APPLICATION_FEE_HEADER",
41891
- value: (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.fee
42322
+ value: (_result$Calculation5 = result.Calculation) === null || _result$Calculation5 === void 0 ? void 0 : (_result$Calculation5$ = _result$Calculation5[0]) === null || _result$Calculation5$ === void 0 ? void 0 : _result$Calculation5$.fee
41892
42323
  }, {
41893
42324
  title: "WS_SERVICE_FEE_HEADER",
41894
- value: (_result$Calculation5 = result.Calculation) === null || _result$Calculation5 === void 0 ? void 0 : (_result$Calculation5$ = _result$Calculation5[0]) === null || _result$Calculation5$ === void 0 ? void 0 : _result$Calculation5$.charge
42325
+ value: (_result$Calculation6 = result.Calculation) === null || _result$Calculation6 === void 0 ? void 0 : (_result$Calculation6$ = _result$Calculation6[0]) === null || _result$Calculation6$ === void 0 ? void 0 : _result$Calculation6$.charge
41895
42326
  }, {
41896
42327
  title: "WS_TAX_HEADER",
41897
- value: (_result$Calculation6 = result.Calculation) === null || _result$Calculation6 === void 0 ? void 0 : (_result$Calculation6$ = _result$Calculation6[0]) === null || _result$Calculation6$ === void 0 ? void 0 : _result$Calculation6$.taxAmount
42328
+ value: (_result$Calculation7 = result.Calculation) === null || _result$Calculation7 === void 0 ? void 0 : (_result$Calculation7$ = _result$Calculation7[0]) === null || _result$Calculation7$ === void 0 ? void 0 : _result$Calculation7$.taxAmount
41898
42329
  }];
41899
42330
  setSessionBillFormData(cloneDeep_1(result.Calculation[0]));
41900
- setBillDetails(result === null || result === void 0 ? void 0 : (_result$Calculation7 = result.Calculation) === null || _result$Calculation7 === void 0 ? void 0 : _result$Calculation7[0]);
42331
+ setBillDetails(result === null || result === void 0 ? void 0 : (_result$Calculation8 = result.Calculation) === null || _result$Calculation8 === void 0 ? void 0 : _result$Calculation8[0]);
41901
42332
  setValues(values);
41902
42333
  fields.billDetails = result === null || result === void 0 ? void 0 : result.Calculation;
41903
42334
  setSessionFormData(fields);
@@ -41967,7 +42398,7 @@ const WSFeeEstimation = _ref => {
41967
42398
  className: "border-none",
41968
42399
  key: "WS_COMMON_TOTAL_AMT",
41969
42400
  label: "" + t("WS_COMMON_TOTAL_AMT"),
41970
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", (billDetails === null || billDetails === void 0 ? void 0 : billDetails.totalAmount) || 0),
42401
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", billDetails !== null && billDetails !== void 0 && billDetails.totalAmount ? Number(billDetails === null || billDetails === void 0 ? void 0 : billDetails.totalAmount).toFixed(2) : "0.00"),
41971
42402
  textStyle: {
41972
42403
  fontSize: "24px",
41973
42404
  fontWeight: "700"
@@ -42657,36 +43088,65 @@ const DueVerification = _ref => {
42657
43088
  const _useState = useState(""),
42658
43089
  kno = _useState[0],
42659
43090
  setKno = _useState[1];
42660
- const _useState2 = useState([]),
42661
- tableData = _useState2[0],
42662
- setTableData = _useState2[1];
42663
- const columns = useMemo(() => [{
42664
- Header: t("K No."),
42665
- accessor: "kno"
42666
- }, {
42667
- Header: t("Full Name"),
42668
- accessor: "fullName"
42669
- }, {
42670
- Header: t("Full Address"),
42671
- accessor: "fullAddress"
42672
- }, {
42673
- Header: t("Due Amount"),
42674
- accessor: "dueAmount"
42675
- }, {
42676
- Header: t("Total Amount"),
42677
- accessor: "totalAmount"
42678
- }], [t]);
43091
+ const _useState2 = useState(""),
43092
+ remarks = _useState2[0],
43093
+ setRemarks = _useState2[1];
43094
+ const _useState3 = useState([]),
43095
+ tableData = _useState3[0],
43096
+ setTableData = _useState3[1];
43097
+ const handleRemarkChange = React.useCallback((index, value) => {
43098
+ setTableData(prevData => {
43099
+ const newData = [...prevData];
43100
+ newData[index] = _extends({}, newData[index], {
43101
+ remarks: value
43102
+ });
43103
+ if (applicationData) {
43104
+ applicationData.dueVerification = newData;
43105
+ }
43106
+ return newData;
43107
+ });
43108
+ }, [applicationData]);
43109
+ const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION";
43110
+ const columns = useMemo(() => {
43111
+ const baseColumns = [{
43112
+ Header: t("K No."),
43113
+ accessor: "kno"
43114
+ }, {
43115
+ Header: t("Full Name"),
43116
+ accessor: "fullName"
43117
+ }, {
43118
+ Header: t("Full Address"),
43119
+ accessor: "fullAddress"
43120
+ }, {
43121
+ Header: t("Due Amount"),
43122
+ accessor: "dueAmount"
43123
+ }, {
43124
+ Header: t("Total Amount"),
43125
+ accessor: "totalAmount"
43126
+ }];
43127
+ if (isPendingApproval) {
43128
+ baseColumns.push({
43129
+ Header: t("Remarks"),
43130
+ accessor: "remarks",
43131
+ Cell: _ref2 => {
43132
+ let row = _ref2.row,
43133
+ value = _ref2.value;
43134
+ return /*#__PURE__*/React.createElement(TextInput, {
43135
+ style: {
43136
+ marginBottom: "0px",
43137
+ minWidth: "150px"
43138
+ },
43139
+ value: value || "",
43140
+ onChange: e => handleRemarkChange(row.index, e.target.value)
43141
+ });
43142
+ }
43143
+ });
43144
+ }
43145
+ return baseColumns;
43146
+ }, [t, handleRemarkChange, isPendingApproval]);
42679
43147
  useEffect(() => {
42680
- const savedData = sessionStorage.getItem("Digit.DUE_VERIFICATION_DATA");
42681
- if (savedData) {
42682
- try {
42683
- setTableData(JSON.parse(savedData));
42684
- } catch (e) {
42685
- console.error("Error parsing due verification data", e);
42686
- }
42687
- } else if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
43148
+ if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
42688
43149
  setTableData(applicationData.dueVerification);
42689
- sessionStorage.setItem("Digit.DUE_VERIFICATION_DATA", JSON.stringify(applicationData.dueVerification));
42690
43150
  }
42691
43151
  }, [applicationData]);
42692
43152
  const handleAdd = () => {
@@ -42696,12 +43156,16 @@ const DueVerification = _ref => {
42696
43156
  fullName: "John Doe",
42697
43157
  fullAddress: "123 Main St, New Delhi, Delhi 110001",
42698
43158
  dueAmount: "1500",
42699
- totalAmount: "1500"
43159
+ totalAmount: "1500",
43160
+ remarks: remarks
42700
43161
  };
42701
43162
  const newTableData = [...tableData, mockData];
42702
43163
  setTableData(newTableData);
42703
- sessionStorage.setItem("Digit.DUE_VERIFICATION_DATA", JSON.stringify(newTableData));
43164
+ if (applicationData) {
43165
+ applicationData.dueVerification = newTableData;
43166
+ }
42704
43167
  setKno("");
43168
+ setRemarks("");
42705
43169
  }
42706
43170
  };
42707
43171
  return /*#__PURE__*/React.createElement("div", {
@@ -42783,7 +43247,8 @@ const DueVerification = _ref => {
42783
43247
  })));
42784
43248
  };
42785
43249
 
42786
- const InspectionInformation = () => {
43250
+ const InspectionInformation = _ref => {
43251
+ let applicationData = _ref.applicationData;
42787
43252
  const _useTranslation = useTranslation(),
42788
43253
  t = _useTranslation.t;
42789
43254
  const _useState = useState(null),
@@ -42795,9 +43260,37 @@ const InspectionInformation = () => {
42795
43260
  const _useState3 = useState(""),
42796
43261
  inspectorName = _useState3[0],
42797
43262
  setInspectorName = _useState3[1];
43263
+ useEffect(() => {
43264
+ const savedData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
43265
+ if (savedData) {
43266
+ try {
43267
+ const parsed = JSON.parse(savedData);
43268
+ setInspectionType(parsed.inspectionType || null);
43269
+ setInspectionDate(parsed.inspectionDate || "");
43270
+ setInspectorName(parsed.inspectorName || "");
43271
+ } catch (e) {
43272
+ console.error("Error parsing inspection information data", e);
43273
+ }
43274
+ } else if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
43275
+ setInspectionType(applicationData.inspectionInformation.inspectionType || null);
43276
+ setInspectionDate(applicationData.inspectionInformation.inspectionDate || "");
43277
+ setInspectorName(applicationData.inspectionInformation.inspectorName || "");
43278
+ sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify(applicationData.inspectionInformation));
43279
+ }
43280
+ }, [applicationData]);
43281
+ useEffect(() => {
43282
+ sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify({
43283
+ inspectionType,
43284
+ inspectionDate,
43285
+ inspectorName
43286
+ }));
43287
+ }, [inspectionType, inspectionDate, inspectorName]);
42798
43288
  const inspectionTypeOptions = [{
42799
- name: "Select",
43289
+ i18nKey: "ES_COMMON_SELECT",
42800
43290
  code: ""
43291
+ }, {
43292
+ i18nKey: "New Connection Visit",
43293
+ code: "new_connection_visit"
42801
43294
  }];
42802
43295
  return /*#__PURE__*/React.createElement("div", {
42803
43296
  style: {
@@ -42833,7 +43326,7 @@ const InspectionInformation = () => {
42833
43326
  }
42834
43327
  }, "*")), /*#__PURE__*/React.createElement(Dropdown, {
42835
43328
  option: inspectionTypeOptions,
42836
- optionKey: "name",
43329
+ optionKey: "i18nKey",
42837
43330
  id: "inspectionType",
42838
43331
  selected: inspectionType,
42839
43332
  select: setInspectionType,
@@ -43808,6 +44301,14 @@ const ApplicationDetails = props => {
43808
44301
  function onActionSelect(action) {
43809
44302
  sessionStorage.setItem("SELECTED_ACTION", action === null || action === void 0 ? void 0 : action.action);
43810
44303
  if (action) {
44304
+ if ((action === null || action === void 0 ? void 0 : action.action) === "PAY" && !(action !== null && action !== void 0 && action.redirectionUrl) && !(action !== null && action !== void 0 && action.redirectionUrll)) {
44305
+ if (window.location.href.includes("/employee")) {
44306
+ history.push("/digit-ui/employee/payment/collect/" + businessService + "/" + applicationNumber + "?tenantId=" + tenantId);
44307
+ } else {
44308
+ history.push("/digit-ui/citizen/payment/my-bills/" + businessService + "/" + applicationNumber + "?tenantId=" + tenantId);
44309
+ }
44310
+ return;
44311
+ }
43811
44312
  if (action !== null && action !== void 0 && action.isToast) {
43812
44313
  setShowToast({
43813
44314
  key: "error",
@@ -45141,11 +45642,7 @@ const ActivateConnection = () => {
45141
45642
  if (isEnableLoader || isLoading || isappdetailsLoading) {
45142
45643
  return /*#__PURE__*/React.createElement(Loader, null);
45143
45644
  }
45144
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
45145
- style: {
45146
- marginLeft: "15px"
45147
- }
45148
- }, /*#__PURE__*/React.createElement(Header, null, t(config.head))), /*#__PURE__*/React.createElement(FormComposer, {
45645
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormComposer, {
45149
45646
  config: config.body,
45150
45647
  userType: "employee",
45151
45648
  defaultValues: defaultValues,
@@ -48363,7 +48860,7 @@ const BulkBillGeneration = _ref => {
48363
48860
  }));
48364
48861
  };
48365
48862
 
48366
- const ActionButton = _ref => {
48863
+ const ActionButton$1 = _ref => {
48367
48864
  let onClick = _ref.onClick;
48368
48865
  return /*#__PURE__*/React.createElement(LinkButton, {
48369
48866
  label: /*#__PURE__*/React.createElement(EditIcon, {
@@ -48482,7 +48979,7 @@ const CheckPage$4 = _ref2 => {
48482
48979
  }, /*#__PURE__*/React.createElement(Row, {
48483
48980
  label: t("WS_PROPERTY_ID_LABEL"),
48484
48981
  text: "" + t(checkForNA(cpt === null || cpt === void 0 ? void 0 : cpt.propertyId)),
48485
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
48982
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48486
48983
  onClick: onEdit
48487
48984
  })
48488
48985
  })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement(StatusTable, {
@@ -48493,7 +48990,7 @@ const CheckPage$4 = _ref2 => {
48493
48990
  }, /*#__PURE__*/React.createElement(Row, {
48494
48991
  label: t("WS_SERVICE_TYPE"),
48495
48992
  text: "" + t(checkForNA(((_connectionDetails = connectionDetails) === null || _connectionDetails === void 0 ? void 0 : (_connectionDetails$se = _connectionDetails.serviceType) === null || _connectionDetails$se === void 0 ? void 0 : _connectionDetails$se.i18nKey) || ((_connectionDetails2 = connectionDetails) === null || _connectionDetails2 === void 0 ? void 0 : (_connectionDetails2$s = _connectionDetails2.serviceType) === null || _connectionDetails2$s === void 0 ? void 0 : _connectionDetails2$s.code) || ((_connectionDetails3 = connectionDetails) === null || _connectionDetails3 === void 0 ? void 0 : _connectionDetails3.serviceType))),
48496
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
48993
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48497
48994
  onClick: onEdit
48498
48995
  })
48499
48996
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48540,7 +49037,7 @@ const CheckPage$4 = _ref2 => {
48540
49037
  }, /*#__PURE__*/React.createElement(Row, {
48541
49038
  label: t("WS_OWN_DETAIL_NAME"),
48542
49039
  text: "" + t(checkForNA((_holderDetails = holderDetails) === null || _holderDetails === void 0 ? void 0 : _holderDetails.name)),
48543
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
49040
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48544
49041
  onClick: onEdit
48545
49042
  })
48546
49043
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48575,7 +49072,7 @@ const CheckPage$4 = _ref2 => {
48575
49072
  }, /*#__PURE__*/React.createElement(Row, {
48576
49073
  label: t("WS_ZRO_LOCATION"),
48577
49074
  text: "" + t(checkForNA(((_propertyAddress = propertyAddress) === null || _propertyAddress === void 0 ? void 0 : (_propertyAddress$zro = _propertyAddress.zro) === null || _propertyAddress$zro === void 0 ? void 0 : _propertyAddress$zro.name) || ((_propertyAddress2 = propertyAddress) === null || _propertyAddress2 === void 0 ? void 0 : _propertyAddress2.zro) || ((_propertyAddress3 = propertyAddress) === null || _propertyAddress3 === void 0 ? void 0 : _propertyAddress3.zroLocation) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zroLocation) || ((_propertyAddress4 = propertyAddress) === null || _propertyAddress4 === void 0 ? void 0 : (_propertyAddress4$add = _propertyAddress4.additionalDetails) === null || _propertyAddress4$add === void 0 ? void 0 : _propertyAddress4$add.zroLocation))),
48578
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
49075
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48579
49076
  onClick: onEdit
48580
49077
  })
48581
49078
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48640,7 +49137,7 @@ const CheckPage$4 = _ref2 => {
48640
49137
  }, /*#__PURE__*/React.createElement(Row, {
48641
49138
  label: t("WS_CATEGORY_TYPE"),
48642
49139
  text: "" + t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType))),
48643
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
49140
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48644
49141
  onClick: onEdit
48645
49142
  })
48646
49143
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48675,7 +49172,7 @@ const CheckPage$4 = _ref2 => {
48675
49172
  }, /*#__PURE__*/React.createElement(Row, {
48676
49173
  label: t("WS_DJB_EMPLOYEE"),
48677
49174
  text: "" + (djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")),
48678
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
49175
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48679
49176
  onClick: onEdit
48680
49177
  })
48681
49178
  }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
@@ -48695,7 +49192,7 @@ const CheckPage$4 = _ref2 => {
48695
49192
  }, /*#__PURE__*/React.createElement(Row, {
48696
49193
  label: t("WS_NAME_OF_BANK"),
48697
49194
  text: "" + t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName)),
48698
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
49195
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48699
49196
  onClick: onEdit
48700
49197
  })
48701
49198
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48719,7 +49216,7 @@ const CheckPage$4 = _ref2 => {
48719
49216
  }, /*#__PURE__*/React.createElement(Row, {
48720
49217
  label: t("" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll(".", "_"))),
48721
49218
  text: checkForNA(doc === null || doc === void 0 ? void 0 : doc.documentUid),
48722
- actionButton: index === 0 ? /*#__PURE__*/React.createElement(ActionButton, {
49219
+ actionButton: index === 0 ? /*#__PURE__*/React.createElement(ActionButton$1, {
48723
49220
  onClick: onEdit
48724
49221
  }) : null
48725
49222
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48742,7 +49239,7 @@ const CheckPage$4 = _ref2 => {
48742
49239
  }, /*#__PURE__*/React.createElement(Row, {
48743
49240
  label: t("WS_SUBMITTED_BY"),
48744
49241
  text: "" + t((declaration === null || declaration === void 0 ? void 0 : (_declaration$submitte = declaration.submittedBy) === null || _declaration$submitte === void 0 ? void 0 : _declaration$submitte.name) || (declaration === null || declaration === void 0 ? void 0 : (_declaration$submitte2 = declaration.submittedBy) === null || _declaration$submitte2 === void 0 ? void 0 : _declaration$submitte2.code) || (declaration === null || declaration === void 0 ? void 0 : declaration.submittedBy)),
48745
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
49242
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48746
49243
  onClick: onEdit
48747
49244
  })
48748
49245
  }), ((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile)) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {