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

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),
@@ -20475,8 +20475,7 @@ const PropertyWaterConnection = _ref => {
20475
20475
  }),
20476
20476
  control = _useForm.control,
20477
20477
  register = _useForm.register,
20478
- _useForm$formState = _useForm.formState,
20479
- errors = _useForm$formState.errors,
20478
+ errors = _useForm.formState.errors,
20480
20479
  watch = _useForm.watch,
20481
20480
  setValue = _useForm.setValue;
20482
20481
  const tenantId = Digit.ULBService.getCurrentTenantId();
@@ -20505,6 +20504,7 @@ const PropertyWaterConnection = _ref => {
20505
20504
  const watchCategoryType = watch("useDetails.categoryType");
20506
20505
  const watchPropertyType = watch("useDetails.propertyType");
20507
20506
  const watchPropertyCategory = watch("useDetails.propertyCategory");
20507
+ const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
20508
20508
  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
20509
  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
20510
  const yearOptions = useMemo(() => {
@@ -20564,11 +20564,29 @@ const PropertyWaterConnection = _ref => {
20564
20564
  }, [watchPropertyCategory, propertyTypeOptions, setValue, watchPropertyType]);
20565
20565
  const usageTypeOptions = useMemo(() => {
20566
20566
  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 => ({
20567
+ 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)) || [];
20568
+ if (watchPropertyCategory !== null && watchPropertyCategory !== void 0 && watchPropertyCategory.code) {
20569
+ var _watchPropertyCategor3;
20570
+ if ((watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : (_watchPropertyCategor3 = watchPropertyCategory.code) === null || _watchPropertyCategor3 === void 0 ? void 0 : _watchPropertyCategor3.toUpperCase()) !== "MIXED") {
20571
+ options = options.filter(item => {
20572
+ var _item$type2, _watchPropertyCategor4;
20573
+ 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());
20574
+ });
20575
+ }
20576
+ }
20577
+ return options.map(item => ({
20568
20578
  code: item.code,
20569
20579
  name: item.name
20570
20580
  }));
20571
- }, [ptServicesMastersData]);
20581
+ }, [ptServicesMastersData, watchPropertyCategory]);
20582
+ useEffect(() => {
20583
+ if (watchPropertyType && watchWaterConnectionUsageType) {
20584
+ const isUsageTypeValid = usageTypeOptions.some(opt => opt.code === watchWaterConnectionUsageType.code);
20585
+ if (!isUsageTypeValid) {
20586
+ setValue("useDetails.WaterConnectionUsageType", null);
20587
+ }
20588
+ }
20589
+ }, [watchPropertyType, usageTypeOptions, setValue, watchWaterConnectionUsageType]);
20572
20590
  const floorOptions = useMemo(() => {
20573
20591
  var _ptServicesMastersDat7, _ptServicesMastersDat8;
20574
20592
  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 => ({
@@ -20642,8 +20660,8 @@ const PropertyWaterConnection = _ref => {
20642
20660
  marginTop: "-21px"
20643
20661
  };
20644
20662
  return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
20645
- title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property )" : ""),
20646
- defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true,
20663
+ title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
20664
+ defaultOpen: false,
20647
20665
  style: props.style
20648
20666
  }, /*#__PURE__*/React.createElement("div", {
20649
20667
  className: "formcomposer-section-grid"
@@ -27622,35 +27640,382 @@ const CitizenSearchResults = () => {
27622
27640
  })));
27623
27641
  };
27624
27642
 
27625
- const WSWFCaption = _ref => {
27643
+ const TOKEN = {
27644
+ textPri: "#1e293b",
27645
+ textSec: "#475569",
27646
+ textMut: "#94a3b8",
27647
+ active: "#0284c7",
27648
+ border: "#dde4f0",
27649
+ surface: "#f0f9ff",
27650
+ quote: "#eff6ff"
27651
+ };
27652
+ const MetaRow = _ref => {
27653
+ let icon = _ref.icon,
27654
+ children = _ref.children;
27655
+ return children ? /*#__PURE__*/React.createElement("div", {
27656
+ style: {
27657
+ display: "flex",
27658
+ alignItems: "center",
27659
+ gap: "7px",
27660
+ marginBottom: "6px"
27661
+ }
27662
+ }, /*#__PURE__*/React.createElement("span", {
27663
+ style: {
27664
+ fontSize: "14px",
27665
+ opacity: 0.6
27666
+ }
27667
+ }, icon), /*#__PURE__*/React.createElement("span", {
27668
+ style: {
27669
+ fontSize: "12px",
27670
+ color: TOKEN.textSec
27671
+ }
27672
+ }, children)) : null;
27673
+ };
27674
+ const WSWFCaption = _ref2 => {
27626
27675
  var _data$wfComment, _data$thumbnailsToSho, _data$thumbnailsToSho2;
27627
- let data = _ref.data,
27628
- OpenImage = _ref.OpenImage;
27676
+ let data = _ref2.data,
27677
+ OpenImage = _ref2.OpenImage;
27629
27678
  const _useTranslation = useTranslation(),
27630
27679
  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, {
27680
+ if (!data) return null;
27681
+ const hasComments = (data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.length) > 0;
27682
+ 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;
27683
+ return /*#__PURE__*/React.createElement("div", {
27684
+ style: {
27685
+ display: "flex",
27686
+ flexDirection: "column",
27687
+ gap: "4px"
27688
+ }
27689
+ }, data.date && /*#__PURE__*/React.createElement(MetaRow, {
27690
+ icon: "\uD83D\uDD50"
27691
+ }, typeof data.date === "number" ? (() => {
27692
+ try {
27693
+ return Digit.DateUtils.ConvertTimestampToDate(data.date);
27694
+ } catch (_unused) {
27695
+ return null;
27696
+ }
27697
+ })() : data.date), data.name && /*#__PURE__*/React.createElement(MetaRow, {
27698
+ icon: "\uD83D\uDC64"
27699
+ }, data.name), data.mobileNumber && /*#__PURE__*/React.createElement("div", {
27700
+ style: {
27701
+ display: "flex",
27702
+ alignItems: "center",
27703
+ gap: "7px",
27704
+ marginBottom: "6px"
27705
+ }
27706
+ }, /*#__PURE__*/React.createElement("span", {
27707
+ style: {
27708
+ fontSize: "14px",
27709
+ opacity: 0.6
27710
+ }
27711
+ }, "\uD83D\uDCDE"), /*#__PURE__*/React.createElement("span", {
27712
+ style: {
27713
+ fontSize: "12px",
27714
+ color: TOKEN.textSec
27715
+ }
27716
+ }, /*#__PURE__*/React.createElement(TelePhone, {
27632
27717
  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", {
27718
+ }))), data.source && /*#__PURE__*/React.createElement(MetaRow, {
27719
+ icon: "\uD83D\uDCE1"
27720
+ }, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React.createElement("p", {
27639
27721
  style: {
27640
- overflowX: "scroll"
27722
+ margin: "0 0 6px",
27723
+ fontSize: "12px",
27724
+ color: TOKEN.textSec
27641
27725
  }
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);
27726
+ }, data.comment), hasComments && /*#__PURE__*/React.createElement("div", {
27727
+ style: {
27728
+ marginTop: "8px"
27648
27729
  }
27649
- })) : null);
27730
+ }, /*#__PURE__*/React.createElement("div", {
27731
+ style: {
27732
+ display: "flex",
27733
+ alignItems: "center",
27734
+ gap: "6px",
27735
+ marginBottom: "6px"
27736
+ }
27737
+ }, /*#__PURE__*/React.createElement("div", {
27738
+ style: {
27739
+ width: "3px",
27740
+ height: "14px",
27741
+ borderRadius: "2px",
27742
+ background: TOKEN.active,
27743
+ flexShrink: 0
27744
+ }
27745
+ }), /*#__PURE__*/React.createElement("span", {
27746
+ style: {
27747
+ fontSize: "11px",
27748
+ fontWeight: 700,
27749
+ letterSpacing: "0.07em",
27750
+ textTransform: "uppercase",
27751
+ color: TOKEN.active
27752
+ }
27753
+ }, t("WF_COMMON_COMMENTS"))), data.wfComment.map((comment, i) => /*#__PURE__*/React.createElement("div", {
27754
+ key: i,
27755
+ style: {
27756
+ position: "relative",
27757
+ background: TOKEN.quote,
27758
+ border: "1px solid " + TOKEN.border,
27759
+ borderLeft: "3px solid " + TOKEN.active,
27760
+ borderRadius: "0 8px 8px 0",
27761
+ padding: "8px 12px",
27762
+ marginBottom: "6px",
27763
+ overflowX: "auto"
27764
+ }
27765
+ }, /*#__PURE__*/React.createElement("span", {
27766
+ style: {
27767
+ position: "absolute",
27768
+ top: "4px",
27769
+ left: "6px",
27770
+ fontSize: "22px",
27771
+ opacity: 0.15,
27772
+ lineHeight: 1,
27773
+ color: TOKEN.active,
27774
+ userSelect: "none"
27775
+ }
27776
+ }, "\""), /*#__PURE__*/React.createElement("p", {
27777
+ style: {
27778
+ margin: "0",
27779
+ fontSize: "12px",
27780
+ color: TOKEN.textPri,
27781
+ lineHeight: "1.6",
27782
+ paddingLeft: "8px",
27783
+ wordBreak: "break-word"
27784
+ }
27785
+ }, comment)))), hasThumbs && /*#__PURE__*/React.createElement("div", {
27786
+ style: {
27787
+ marginTop: "10px"
27788
+ }
27789
+ }, /*#__PURE__*/React.createElement("div", {
27790
+ style: {
27791
+ display: "flex",
27792
+ alignItems: "center",
27793
+ gap: "6px",
27794
+ marginBottom: "8px"
27795
+ }
27796
+ }, /*#__PURE__*/React.createElement("div", {
27797
+ style: {
27798
+ width: "3px",
27799
+ height: "14px",
27800
+ borderRadius: "2px",
27801
+ background: "#ff9800",
27802
+ flexShrink: 0
27803
+ }
27804
+ }), /*#__PURE__*/React.createElement("span", {
27805
+ style: {
27806
+ fontSize: "11px",
27807
+ fontWeight: 700,
27808
+ letterSpacing: "0.07em",
27809
+ textTransform: "uppercase",
27810
+ color: "#ff9800"
27811
+ }
27812
+ }, t("CS_COMMON_ATTACHMENTS"))), /*#__PURE__*/React.createElement("div", {
27813
+ style: {
27814
+ background: TOKEN.surface,
27815
+ border: "1px solid " + TOKEN.border,
27816
+ borderRadius: "8px",
27817
+ padding: "8px"
27818
+ }
27819
+ }, /*#__PURE__*/React.createElement(DisplayPhotos, {
27820
+ srcs: data.thumbnailsToShow.thumbs,
27821
+ onClick: (src, index) => OpenImage === null || OpenImage === void 0 ? void 0 : OpenImage(src, index, data.thumbnailsToShow)
27822
+ }))));
27650
27823
  };
27651
27824
 
27825
+ const safeDate = ts => {
27826
+ if (!ts || isNaN(Number(ts)) || Number(ts) <= 0) return null;
27827
+ try {
27828
+ return Digit.DateUtils.ConvertTimestampToDate(Number(ts));
27829
+ } catch (_unused) {
27830
+ return null;
27831
+ }
27832
+ };
27833
+ const TOKEN$1 = {
27834
+ surface: "#f8faff",
27835
+ surfaceHov: "#eef4ff",
27836
+ border: "#dde4f0",
27837
+ borderAct: "#0284c7",
27838
+ active: "#0284c7",
27839
+ done: "#16a34a",
27840
+ textPri: "#1e293b",
27841
+ textSec: "#475569",
27842
+ textMut: "#94a3b8",
27843
+ accent: "linear-gradient(135deg,#7c3aed,#0284c7)"
27844
+ };
27845
+ const StatusPill = _ref => {
27846
+ let label = _ref.label,
27847
+ isActive = _ref.isActive;
27848
+ return /*#__PURE__*/React.createElement("span", {
27849
+ style: {
27850
+ display: "inline-block",
27851
+ fontSize: "10px",
27852
+ fontWeight: 700,
27853
+ letterSpacing: "0.06em",
27854
+ textTransform: "uppercase",
27855
+ padding: "2px 10px",
27856
+ borderRadius: "999px",
27857
+ background: isActive ? "rgba(0,195,255,0.15)" : "rgba(0,230,118,0.12)",
27858
+ color: isActive ? TOKEN$1.active : TOKEN$1.done,
27859
+ border: "1px solid " + (isActive ? TOKEN$1.active : TOKEN$1.done),
27860
+ lineHeight: "18px"
27861
+ }
27862
+ }, label);
27863
+ };
27864
+ const StepCard = _ref2 => {
27865
+ var _checkpoint$auditDeta, _checkpoint$auditDeta2;
27866
+ let checkpoint = _ref2.checkpoint,
27867
+ isActive = _ref2.isActive,
27868
+ t = _ref2.t,
27869
+ getTimelineCaptions = _ref2.getTimelineCaptions;
27870
+ const _useState = useState(isActive),
27871
+ expanded = _useState[0],
27872
+ setExpanded = _useState[1];
27873
+ const stateLabel = checkpoint.state ? t("CS_" + checkpoint.state) : "NA";
27874
+ const dotColor = isActive ? TOKEN$1.active : TOKEN$1.done;
27875
+ const glowColor = isActive ? "0 0 14px rgba(0,195,255,0.5)" : "0 0 10px rgba(0,230,118,0.35)";
27876
+ return /*#__PURE__*/React.createElement("div", {
27877
+ style: {
27878
+ display: "flex",
27879
+ gap: "0",
27880
+ alignItems: "flex-start",
27881
+ position: "relative"
27882
+ }
27883
+ }, /*#__PURE__*/React.createElement("div", {
27884
+ style: {
27885
+ display: "flex",
27886
+ flexDirection: "column",
27887
+ alignItems: "center",
27888
+ width: "36px",
27889
+ flexShrink: 0
27890
+ }
27891
+ }, /*#__PURE__*/React.createElement("div", {
27892
+ style: {
27893
+ width: "18px",
27894
+ height: "18px",
27895
+ borderRadius: "50%",
27896
+ background: dotColor,
27897
+ boxShadow: glowColor,
27898
+ border: "2px solid " + dotColor,
27899
+ zIndex: 1,
27900
+ flexShrink: 0,
27901
+ marginTop: "16px"
27902
+ }
27903
+ }), /*#__PURE__*/React.createElement("div", {
27904
+ style: {
27905
+ width: "2px",
27906
+ flex: 1,
27907
+ minHeight: "24px",
27908
+ background: "linear-gradient(to bottom, " + dotColor + ", " + TOKEN$1.border + ")",
27909
+ marginTop: "2px"
27910
+ }
27911
+ })), /*#__PURE__*/React.createElement("div", {
27912
+ style: {
27913
+ flex: 1,
27914
+ marginLeft: "12px",
27915
+ marginBottom: "16px",
27916
+ borderRadius: "12px",
27917
+ border: "1px solid " + (expanded ? TOKEN$1.borderAct : TOKEN$1.border),
27918
+ background: TOKEN$1.surface,
27919
+ boxShadow: expanded ? "0 2px 12px rgba(2,132,199,0.10)" : "0 1px 4px rgba(0,0,0,0.06)",
27920
+ overflow: "hidden",
27921
+ transition: "all 0.3s ease"
27922
+ }
27923
+ }, /*#__PURE__*/React.createElement("div", {
27924
+ onClick: () => setExpanded(v => !v),
27925
+ style: {
27926
+ padding: "12px 16px",
27927
+ cursor: "pointer",
27928
+ display: "flex",
27929
+ justifyContent: "space-between",
27930
+ alignItems: "center",
27931
+ gap: "8px"
27932
+ }
27933
+ }, /*#__PURE__*/React.createElement("div", {
27934
+ style: {
27935
+ display: "flex",
27936
+ flexDirection: "column",
27937
+ gap: "4px"
27938
+ }
27939
+ }, /*#__PURE__*/React.createElement("span", {
27940
+ style: {
27941
+ fontWeight: 600,
27942
+ fontSize: "13px",
27943
+ color: TOKEN$1.textPri,
27944
+ letterSpacing: "0.01em"
27945
+ }
27946
+ }, 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", {
27947
+ style: {
27948
+ fontSize: "11px",
27949
+ color: TOKEN$1.textSec
27950
+ }
27951
+ }, 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", {
27952
+ style: {
27953
+ display: "flex",
27954
+ alignItems: "center",
27955
+ gap: "8px",
27956
+ flexShrink: 0
27957
+ }
27958
+ }, /*#__PURE__*/React.createElement(StatusPill, {
27959
+ label: isActive ? "Active" : "Done",
27960
+ isActive: isActive
27961
+ }), /*#__PURE__*/React.createElement("span", {
27962
+ style: {
27963
+ color: TOKEN$1.textMut,
27964
+ fontSize: "16px",
27965
+ transform: expanded ? "rotate(180deg)" : "rotate(0deg)",
27966
+ transition: "transform 0.25s",
27967
+ lineHeight: 1,
27968
+ userSelect: "none"
27969
+ }
27970
+ }, "\u25BE"))), expanded && /*#__PURE__*/React.createElement("div", {
27971
+ style: {
27972
+ padding: "0 16px 14px",
27973
+ borderTop: "1px solid " + TOKEN$1.border,
27974
+ background: "#fff"
27975
+ }
27976
+ }, /*#__PURE__*/React.createElement("div", {
27977
+ style: {
27978
+ paddingTop: "12px"
27979
+ }
27980
+ }, getTimelineCaptions(checkpoint)))));
27981
+ };
27982
+ const ActionButton = _ref3 => {
27983
+ let label = _ref3.label,
27984
+ to = _ref3.to,
27985
+ state = _ref3.state;
27986
+ return /*#__PURE__*/React.createElement(Link, {
27987
+ to: {
27988
+ pathname: to,
27989
+ state
27990
+ }
27991
+ }, /*#__PURE__*/React.createElement("button", {
27992
+ style: {
27993
+ width: "100%",
27994
+ marginTop: "8px",
27995
+ padding: "13px 20px",
27996
+ borderRadius: "10px",
27997
+ border: "none",
27998
+ cursor: "pointer",
27999
+ background: TOKEN$1.accent,
28000
+ color: "#fff",
28001
+ fontWeight: 700,
28002
+ fontSize: "14px",
28003
+ letterSpacing: "0.04em",
28004
+ boxShadow: "0 4px 20px rgba(124,58,237,0.4)",
28005
+ transition: "opacity 0.2s, transform 0.2s"
28006
+ },
28007
+ onMouseEnter: e => {
28008
+ e.currentTarget.style.opacity = "0.88";
28009
+ e.currentTarget.style.transform = "translateY(-1px)";
28010
+ },
28011
+ onMouseLeave: e => {
28012
+ e.currentTarget.style.opacity = "1";
28013
+ e.currentTarget.style.transform = "translateY(0)";
28014
+ }
28015
+ }, label));
28016
+ };
27652
28017
  const WSWFApplicationTimeline = props => {
27653
- var _props$application, _props$application2, _data$timeline, _data$timeline2, _data$timeline$, _data$timeline3;
28018
+ var _props$application, _props$application2, _data$timeline, _data$timeline2, _data$timeline3, _data$timeline4;
27654
28019
  const _useTranslation = useTranslation(),
27655
28020
  t = _useTranslation.t;
27656
28021
  const businessService = (_props$application = props.application) === null || _props$application === void 0 ? void 0 : _props$application.applicationNo.split("_")[0];
@@ -27664,9 +28029,9 @@ const WSWFApplicationTimeline = props => {
27664
28029
  }),
27665
28030
  isLoading = _Digit$Hooks$useWorkf.isLoading,
27666
28031
  data = _Digit$Hooks$useWorkf.data;
27667
- const _useState = useState(false),
27668
- showAllTimeline = _useState[0],
27669
- setShowAllTimeline = _useState[1];
28032
+ const _useState2 = useState(true),
28033
+ showAllTimeline = _useState2[0],
28034
+ setShowAllTimeline = _useState2[1];
27670
28035
  function OpenImage(imageSource, index, thumbnailsToShow) {
27671
28036
  var _thumbnailsToShow$ful;
27672
28037
  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 +28040,7 @@ const WSWFApplicationTimeline = props => {
27675
28040
  if (checkpoint.state === "OPEN") {
27676
28041
  var _props$application3, _props$application3$a, _props$application4;
27677
28042
  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),
28043
+ 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
28044
  source: ((_props$application4 = props.application) === null || _props$application4 === void 0 ? void 0 : _props$application4.channel) || ""
27680
28045
  };
27681
28046
  return /*#__PURE__*/React.createElement(WSWFCaption, {
@@ -27685,12 +28050,19 @@ const WSWFApplicationTimeline = props => {
27685
28050
  var _props$application5, _props$application6;
27686
28051
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
27687
28052
  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"))));
28053
+ }, /*#__PURE__*/React.createElement("span", {
28054
+ style: {
28055
+ color: TOKEN$1.active,
28056
+ fontSize: "13px",
28057
+ textDecoration: "underline",
28058
+ cursor: "pointer"
28059
+ }
28060
+ }, t("PT_VIEW_PROPERTY_DETAILS"))));
27689
28061
  } else {
27690
- var _props$application7, _checkpoint$auditDeta, _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$assignes2, _checkpoint$assignes3;
28062
+ var _props$application7, _checkpoint$auditDeta3, _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$assignes2, _checkpoint$assignes3;
27691
28063
  const caption = {
27692
28064
  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,
28065
+ date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta3 = checkpoint.auditDetails) === null || _checkpoint$auditDeta3 === void 0 ? void 0 : _checkpoint$auditDeta3.lastModified,
27694
28066
  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
28067
  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
28068
  comment: t(checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.comment),
@@ -27705,92 +28077,110 @@ const WSWFApplicationTimeline = props => {
27705
28077
  };
27706
28078
  const showNextActions = nextActions => {
27707
28079
  var _nextAction;
28080
+ if (!(nextActions !== null && nextActions !== void 0 && nextActions.length)) return null;
27708
28081
  let nextAction = nextActions[0];
27709
28082
  const next = nextActions.map(action => action.action);
27710
28083
  if (next.includes("PAY") || next.includes("EDIT")) {
27711
28084
  let currentIndex = next.indexOf("EDIT") || next.indexOf("PAY");
27712
- currentIndex = currentIndex != -1 ? currentIndex : next.indexOf("PAY");
28085
+ currentIndex = currentIndex !== -1 ? currentIndex : next.indexOf("PAY");
27713
28086
  nextAction = nextActions[currentIndex];
27714
28087
  }
27715
28088
  switch ((_nextAction = nextAction) === null || _nextAction === void 0 ? void 0 : _nextAction.action) {
27716
28089
  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"
28090
+ if ((props === null || props === void 0 ? void 0 : props.paymentbuttonenabled) !== false) return /*#__PURE__*/React.createElement(ActionButton, {
28091
+ label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
28092
+ to: "/digit-ui/citizen/payment/collect/" + businessService + "/" + props.id + "?consumerCode=" + props.id + "&&workflow=WNS",
28093
+ state: {
28094
+ tenantId: props.application.tenantId
27744
28095
  }
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
- }
28096
+ });
28097
+ break;
28098
+ case "EDIT":
28099
+ return businessService !== "PT.MUTATION" ? /*#__PURE__*/React.createElement(ActionButton, {
28100
+ label: t("CS_APPLICATION_DETAILS_EDIT"),
28101
+ to: "/digit-ui/citizen/pt/property/edit-application/action=edit-" + businessService + "/" + props.id,
28102
+ state: {
28103
+ tenantId: props.application.tenantId
27751
28104
  }
27752
- }, /*#__PURE__*/React.createElement(SubmitBar, {
27753
- label: t("CS_APPLICATION_DETAILS_EDIT")
27754
- })));
28105
+ }) : null;
27755
28106
  case "SUBMIT_FEEDBACK":
27756
- return /*#__PURE__*/React.createElement("div", {
27757
- style: {
27758
- marginTop: "24px"
27759
- }
27760
- }, /*#__PURE__*/React.createElement(Link, {
28107
+ return /*#__PURE__*/React.createElement(ActionButton, {
28108
+ label: t("CS_APPLICATION_DETAILS_RATE"),
27761
28109
  to: "/digit-ui/citizen/fsm/rate/" + props.id
27762
- }, /*#__PURE__*/React.createElement(SubmitBar, {
27763
- label: t("CS_APPLICATION_DETAILS_RATE")
27764
- })));
28110
+ });
28111
+ default:
28112
+ return null;
27765
28113
  }
27766
28114
  };
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, {
28115
+ if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
28116
+ const visibleTimeline = data !== null && data !== void 0 && data.timeline ? data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2) : [];
28117
+ return /*#__PURE__*/React.createElement(Fragment$1, null, !isLoading && /*#__PURE__*/React.createElement("div", {
27774
28118
  style: {
27775
- marginBottom: "16px"
28119
+ fontFamily: "'Inter', system-ui, sans-serif"
27776
28120
  }
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));
28121
+ }, (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", {
28122
+ style: {
28123
+ display: "flex",
28124
+ alignItems: "center",
28125
+ gap: "10px",
28126
+ marginBottom: "20px"
28127
+ }
28128
+ }, /*#__PURE__*/React.createElement("div", {
28129
+ style: {
28130
+ width: "4px",
28131
+ height: "22px",
28132
+ borderRadius: "2px",
28133
+ background: TOKEN$1.accent,
28134
+ flexShrink: 0
28135
+ }
28136
+ }), /*#__PURE__*/React.createElement("span", {
28137
+ style: {
28138
+ fontWeight: 700,
28139
+ fontSize: "15px",
28140
+ color: TOKEN$1.textPri,
28141
+ letterSpacing: "0.02em"
28142
+ }
28143
+ }, 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, {
28144
+ checkpoint: data.timeline[0],
28145
+ index: 0,
28146
+ isActive: true,
28147
+ t: t,
28148
+ getTimelineCaptions: getTimelineCaptions
28149
+ }), (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", {
28150
+ style: {
28151
+ position: "relative"
28152
+ }
28153
+ }, visibleTimeline.map((checkpoint, index) => /*#__PURE__*/React.createElement(StepCard, {
28154
+ key: index,
28155
+ checkpoint: checkpoint,
28156
+ index: index,
28157
+ isActive: index === 0,
28158
+ t: t,
28159
+ getTimelineCaptions: getTimelineCaptions
28160
+ }))), (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", {
28161
+ onClick: () => setShowAllTimeline(prev => !prev),
28162
+ style: {
28163
+ marginTop: "4px",
28164
+ marginBottom: "4px",
28165
+ display: "inline-flex",
28166
+ alignItems: "center",
28167
+ gap: "6px",
28168
+ cursor: "pointer",
28169
+ fontSize: "12px",
28170
+ fontWeight: 600,
28171
+ color: TOKEN$1.active,
28172
+ letterSpacing: "0.04em",
28173
+ padding: "6px 0",
28174
+ userSelect: "none"
28175
+ }
28176
+ }, /*#__PURE__*/React.createElement("span", {
28177
+ style: {
28178
+ display: "inline-block",
28179
+ transform: showAllTimeline ? "rotate(180deg)" : "rotate(0deg)",
28180
+ transition: "transform 0.25s",
28181
+ lineHeight: 1
28182
+ }
28183
+ }, "\u25BE"), showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE")), data && showNextActions(data === null || data === void 0 ? void 0 : data.nextActions)));
27794
28184
  };
27795
28185
 
27796
28186
  function WSDocument(_ref) {
@@ -27982,11 +28372,604 @@ const getWSDisconnectionApplicationForm = function (application, property, tenan
27982
28372
  }
27983
28373
  };
27984
28374
 
28375
+ const Penality_menu = [{
28376
+ title: "PT_PENDING_DUES_FROM_EARLIER",
28377
+ value: "Pending dues from earlier"
28378
+ }, {
28379
+ title: "PT_MISCALCULATION_OF_EARLIER_ASSESSMENT",
28380
+ value: "Miscalculation of earlier Assessment"
28381
+ }, {
28382
+ title: "PT_ONE_TIME_PENALITY",
28383
+ value: "One time penality"
28384
+ }, {
28385
+ title: "PT_OTHERS",
28386
+ value: "Others"
28387
+ }];
28388
+ const Rebate_menu = [{
28389
+ title: "PT_ADVANCED_PAID_BY_CITIZEN_EARLIER",
28390
+ value: "Advanced Paid By Citizen Earlier"
28391
+ }, {
28392
+ title: "PT_REBATE_PROVIDED_BY_COMMISSIONER_EO",
28393
+ value: "Rebate provided by commissioner/EO"
28394
+ }, {
28395
+ title: "PT_ADDITIONAL_AMOUNT_CHARGED_FROM_THE_CITIZEN",
28396
+ value: "Additional amount charged from the citizen"
28397
+ }, {
28398
+ title: "PT_OTHERS",
28399
+ value: "Others"
28400
+ }];
28401
+ const WSFeeEstimation = _ref => {
28402
+ var _wsAdditionalDetails$, _wsAdditionalDetails$18, _fields$adhocPenaltyR, _fields$adhocRebateRe;
28403
+ let wsAdditionalDetails = _ref.wsAdditionalDetails;
28404
+ const _useTranslation = useTranslation(),
28405
+ t = _useTranslation.t;
28406
+ const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("ADHOC_ADD_REBATE_DATA", {}),
28407
+ sessionFormData = _Digit$Hooks$useSessi[0],
28408
+ setSessionFormData = _Digit$Hooks$useSessi[1];
28409
+ const _Digit$Hooks$useSessi2 = Digit.Hooks.useSessionStorage("ADHOC_BILL_ADD_REBATE_DATA", {}),
28410
+ setSessionBillFormData = _Digit$Hooks$useSessi2[1];
28411
+ const isPaid = wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isPaid ? true : false;
28412
+ const _useState = useState(false),
28413
+ popup = _useState[0],
28414
+ showPopUp = _useState[1];
28415
+ const _useState2 = useState(sessionFormData ? sessionFormData : {}),
28416
+ fields = _useState2[0],
28417
+ setFields = _useState2[1];
28418
+ const _useState3 = useState(null),
28419
+ showToast = _useState3[0],
28420
+ setShowToast = _useState3[1];
28421
+ const _useState4 = useState(wsAdditionalDetails.additionalDetails.data ? wsAdditionalDetails.additionalDetails.data : {}),
28422
+ billDetails = _useState4[0],
28423
+ setBillDetails = _useState4[1];
28424
+ const _useState5 = useState(wsAdditionalDetails.additionalDetails.values ? wsAdditionalDetails.additionalDetails.values : []),
28425
+ values = _useState5[0],
28426
+ setValues = _useState5[1];
28427
+ const stateCode = Digit.ULBService.getStateId();
28428
+ const _Digit$Hooks$ws$useMD = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
28429
+ useEffect(() => {
28430
+ var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
28431
+ 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);
28432
+ if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
28433
+ var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0;
28434
+ 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) || [];
28435
+ const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
28436
+ title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
28437
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
28438
+ })) : [{
28439
+ title: "WS_APPLICATION_FEE_HEADER",
28440
+ 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)
28441
+ }, {
28442
+ title: "WS_SERVICE_FEE_HEADER",
28443
+ 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)
28444
+ }, {
28445
+ title: "WS_TAX_HEADER",
28446
+ 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)
28447
+ }];
28448
+ setValues(values);
28449
+ setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : _sessionFormData$bill0[0]);
28450
+ } else {
28451
+ setSessionFormData(data);
28452
+ setFields(data);
28453
+ }
28454
+ }, []);
28455
+ let validation = {};
28456
+ const Heading = props => {
28457
+ return /*#__PURE__*/React.createElement("h1", {
28458
+ className: "heading-m"
28459
+ }, props.label);
28460
+ };
28461
+ const Close = () => /*#__PURE__*/React.createElement("svg", {
28462
+ xmlns: "http://www.w3.org/2000/svg",
28463
+ viewBox: "0 0 24 24",
28464
+ fill: "#FFFFFF"
28465
+ }, /*#__PURE__*/React.createElement("path", {
28466
+ d: "M0 0h24v24H0V0z",
28467
+ fill: "none"
28468
+ }), /*#__PURE__*/React.createElement("path", {
28469
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
28470
+ }));
28471
+ const CloseBtn = props => {
28472
+ return /*#__PURE__*/React.createElement("div", {
28473
+ className: "icon-bg-secondary",
28474
+ onClick: props.onClick
28475
+ }, /*#__PURE__*/React.createElement(Close, null));
28476
+ };
28477
+ const closeToast = () => {
28478
+ setShowToast(false);
28479
+ };
28480
+ const addAdhocRebatePenality = e => {
28481
+ const adhocAmount = fields !== null && fields !== void 0 && fields.adhocPenalty ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) : 0;
28482
+ const rebateAmount = fields !== null && fields !== void 0 && fields.adhocRebate ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocRebate) : 0;
28483
+ if (adhocAmount || rebateAmount) {
28484
+ var _wsAdditionalDetails$4, _wsAdditionalDetails$5;
28485
+ const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$4 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : (_wsAdditionalDetails$5 = _wsAdditionalDetails$4.data) === null || _wsAdditionalDetails$5 === void 0 ? void 0 : _wsAdditionalDetails$5.totalAmount;
28486
+ if (rebateAmount > totalAmount) {
28487
+ setShowToast({
28488
+ isError: false,
28489
+ isWarning: true,
28490
+ key: "error",
28491
+ message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
28492
+ });
28493
+ } else {
28494
+ var _wsAdditionalDetails$0, _wsAdditionalDetails$1, _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17;
28495
+ const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$0 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$0 === void 0 ? void 0 : (_wsAdditionalDetails$1 = _wsAdditionalDetails$0.appDetails) === null || _wsAdditionalDetails$1 === void 0 ? void 0 : _wsAdditionalDetails$1.applicationNo;
28496
+ const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$10 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : (_wsAdditionalDetails$11 = _wsAdditionalDetails$10.appDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : _wsAdditionalDetails$11.tenantId;
28497
+ const appAdditionalDetails = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$12 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : (_wsAdditionalDetails$13 = _wsAdditionalDetails$12.appDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : _wsAdditionalDetails$13.additionalDetails, fields);
28498
+ wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
28499
+ const data = {
28500
+ CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$14 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : (_wsAdditionalDetails$15 = _wsAdditionalDetails$14.appDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : _wsAdditionalDetails$15.service) == "WATER" ? [{
28501
+ applicationNo: applicationNo,
28502
+ tenantId: tenantId,
28503
+ waterConnection: wsAdditionalDetails.additionalDetails.appDetails
28504
+ }] : [{
28505
+ applicationNo: applicationNo,
28506
+ tenantId: tenantId,
28507
+ sewerageConnection: wsAdditionalDetails.additionalDetails.appDetails
28508
+ }],
28509
+ isconnectionCalculation: false
28510
+ };
28511
+ 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";
28512
+ Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
28513
+ 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;
28514
+ 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) {
28515
+ var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
28516
+ 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);
28517
+ }
28518
+ 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");
28519
+ 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) || [];
28520
+ const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
28521
+ title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
28522
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
28523
+ })) : [{
28524
+ title: "WS_APPLICATION_FEE_HEADER",
28525
+ 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
28526
+ }, {
28527
+ title: "WS_SERVICE_FEE_HEADER",
28528
+ 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
28529
+ }, {
28530
+ title: "WS_TAX_HEADER",
28531
+ 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
28532
+ }];
28533
+ setSessionBillFormData(cloneDeep_1(result.Calculation[0]));
28534
+ setBillDetails(result === null || result === void 0 ? void 0 : (_result$Calculation8 = result.Calculation) === null || _result$Calculation8 === void 0 ? void 0 : _result$Calculation8[0]);
28535
+ setValues(values);
28536
+ fields.billDetails = result === null || result === void 0 ? void 0 : result.Calculation;
28537
+ setSessionFormData(fields);
28538
+ showPopUp(false);
28539
+ }).catch(e => {
28540
+ var _e$response, _e$response$data, _e$response$data$Erro, _e$response2, _e$response2$data, _e$response2$data$Err;
28541
+ setShowToast({
28542
+ isError: true,
28543
+ isWarning: false,
28544
+ key: "error",
28545
+ message: e !== null && e !== void 0 && (_e$response = e.response) !== null && _e$response !== void 0 && (_e$response$data = _e$response.data) !== null && _e$response$data !== void 0 && (_e$response$data$Erro = _e$response$data.Errors[0]) !== null && _e$response$data$Erro !== void 0 && _e$response$data$Erro.message ? t("" + (e === null || e === void 0 ? void 0 : (_e$response2 = e.response) === null || _e$response2 === void 0 ? void 0 : (_e$response2$data = _e$response2.data) === null || _e$response2$data === void 0 ? void 0 : (_e$response2$data$Err = _e$response2$data.Errors[0]) === null || _e$response2$data$Err === void 0 ? void 0 : _e$response2$data$Err.code)) : t("PT_COMMON_ADD_REBATE_PENALITY")
28546
+ });
28547
+ });
28548
+ }
28549
+ } else {
28550
+ setShowToast({
28551
+ isError: false,
28552
+ isWarning: true,
28553
+ key: "warning",
28554
+ message: t("ERR_WS_ENTER_ATLEAST_ONE_FIELD")
28555
+ });
28556
+ }
28557
+ };
28558
+ const selectedValuesData = function (value, isDropDownValue, e) {
28559
+ if (isDropDownValue === void 0) {
28560
+ isDropDownValue = false;
28561
+ }
28562
+ let values = _extends({}, fields);
28563
+ if ((value == "adhocPenalty" || value == "adhocRebate") && e.target.value) {
28564
+ var _e$target, _e$target2;
28565
+ const targetValueSign = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) == 0 ? 1 : Math.sign(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || -1;
28566
+ if (targetValueSign == 1) {
28567
+ values[value] = e.target.value;
28568
+ } else {
28569
+ values[value] = "";
28570
+ }
28571
+ } else if (isDropDownValue) {
28572
+ values[value + "_data"] = e;
28573
+ values[value] = e.title;
28574
+ if (e.title == "PT_OTHERS" && value == "adhocPenaltyReason") values["adhocPenaltyComment"] = "";
28575
+ if (e.title == "PT_OTHERS" && value == "adhocRebateReason") values["adhocRebateComment"] = "";
28576
+ } else {
28577
+ values[value] = e.target.value;
28578
+ }
28579
+ setFields(values);
28580
+ };
28581
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
28582
+ style: {
28583
+ lineHeight: "19px",
28584
+ maxWidth: "100%",
28585
+ minWidth: "280px"
28586
+ }
28587
+ }, values && /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", null, values === null || values === void 0 ? void 0 : values.map((value, index) => {
28588
+ return /*#__PURE__*/React.createElement(Row, {
28589
+ className: "border-none",
28590
+ key: "" + value.title,
28591
+ label: "" + t("" + value.title),
28592
+ text: value !== null && value !== void 0 && value.value ? value === null || value === void 0 ? void 0 : value.value : ""
28593
+ });
28594
+ })), /*#__PURE__*/React.createElement("hr", {
28595
+ style: {
28596
+ border: "1px solid #D6D5D4",
28597
+ color: "#D6D5D4",
28598
+ margin: "16px 0px"
28599
+ }
28600
+ }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
28601
+ className: "border-none",
28602
+ key: "WS_COMMON_TOTAL_AMT",
28603
+ label: "" + t("WS_COMMON_TOTAL_AMT"),
28604
+ 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"),
28605
+ textStyle: {
28606
+ fontSize: "24px",
28607
+ fontWeight: "700"
28608
+ }
28609
+ }), /*#__PURE__*/React.createElement(Row, {
28610
+ className: "border-none",
28611
+ key: "CS_INBOX_STATUS_FILTER",
28612
+ label: "" + t("CS_INBOX_STATUS_FILTER"),
28613
+ text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
28614
+ textStyle: !isPaid ? {
28615
+ color: "#D83A2F"
28616
+ } : {
28617
+ color: "#2E9E8F"
28618
+ }
28619
+ }))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
28620
+ onClick: e => {
28621
+ showPopUp(true);
28622
+ }
28623
+ }, /*#__PURE__*/React.createElement("span", {
28624
+ className: "add-details-link hover-button",
28625
+ style: {
28626
+ cursor: "pointer",
28627
+ color: "#a82227"
28628
+ }
28629
+ }, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
28630
+ headerBarMain: /*#__PURE__*/React.createElement(Heading, {
28631
+ label: t("PT_ADD_REBATE_PENALITY")
28632
+ }),
28633
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
28634
+ onClick: () => {
28635
+ setFields(sessionFormData);
28636
+ showPopUp(false);
28637
+ }
28638
+ }),
28639
+ actionCancelLabel: t("PT_CANCEL"),
28640
+ actionCancelOnSubmit: () => {
28641
+ setFields(sessionFormData);
28642
+ showPopUp(false);
28643
+ },
28644
+ actionSaveLabel: t("PT_ADD"),
28645
+ actionSaveOnSubmit: e => addAdhocRebatePenality(),
28646
+ hideSubmit: false,
28647
+ popupStyles: {
28648
+ overflowY: "auto",
28649
+ background: "#f0f3f7"
28650
+ }
28651
+ }, /*#__PURE__*/React.createElement("div", {
28652
+ style: {
28653
+ display: "flex",
28654
+ flexDirection: "column",
28655
+ gap: "16px"
28656
+ }
28657
+ }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
28658
+ style: {
28659
+ fontSize: "16px",
28660
+ fontWeight: "700",
28661
+ lineHeight: "18px",
28662
+ padding: "0px",
28663
+ margin: "0px 0px 10px 0px"
28664
+ }
28665
+ }, t("PT_AD_PENALTY")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
28666
+ className: "field"
28667
+ }, /*#__PURE__*/React.createElement(Dropdown, {
28668
+ isMandatory: true,
28669
+ option: Penality_menu,
28670
+ optionKey: "title",
28671
+ select: e => selectedValuesData("adhocPenaltyReason", true, e),
28672
+ selected: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyReason_data) || "",
28673
+ isPropertyAssess: true,
28674
+ name: "adhocPenaltyReason_data",
28675
+ t: t
28676
+ }))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement("div", {
28677
+ className: "field"
28678
+ }, /*#__PURE__*/React.createElement(TextInput, _extends({
28679
+ style: {
28680
+ background: "#FAFAFA"
28681
+ },
28682
+ t: t,
28683
+ type: "text",
28684
+ isMandatory: false,
28685
+ name: "adhocPenaltyComment",
28686
+ value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyComment) || "",
28687
+ onChange: e => selectedValuesData("adhocPenaltyComment", false, e)
28688
+ }, validation = {
28689
+ isRequired: true,
28690
+ pattern: "^[a-zA-Z ]*$",
28691
+ type: "text",
28692
+ title: t("TL_NAME_ERROR_MESSAGE")
28693
+ })))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
28694
+ className: "field"
28695
+ }, /*#__PURE__*/React.createElement(TextInput, _extends({
28696
+ style: {
28697
+ background: "#FAFAFA"
28698
+ },
28699
+ t: t,
28700
+ type: "number",
28701
+ isMandatory: false,
28702
+ name: "adhocPenalty",
28703
+ value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) || "",
28704
+ onChange: e => selectedValuesData("adhocPenalty", false, e)
28705
+ }, validation = {
28706
+ isRequired: true,
28707
+ pattern: "^[1-9]+[0-9]*$",
28708
+ title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
28709
+ }))))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
28710
+ style: {
28711
+ fontSize: "16px",
28712
+ fontWeight: "700",
28713
+ lineHeight: "18px",
28714
+ padding: "0px",
28715
+ margin: "0px 0px 10px 0px"
28716
+ }
28717
+ }, t("PT_AD_REBATE")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
28718
+ className: "field"
28719
+ }, /*#__PURE__*/React.createElement(Dropdown, {
28720
+ isMandatory: true,
28721
+ option: Rebate_menu,
28722
+ optionKey: "title",
28723
+ select: e => selectedValuesData("adhocRebateReason", true, e),
28724
+ selected: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateReason_data) || "",
28725
+ name: "adhocRebateReason_data",
28726
+ isPropertyAssess: true,
28727
+ t: t
28728
+ }))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement(TextInput, _extends({
28729
+ style: {
28730
+ background: "#FAFAFA"
28731
+ },
28732
+ t: t,
28733
+ type: "text",
28734
+ isMandatory: false,
28735
+ name: "adhocRebateComment",
28736
+ value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateComment) || "",
28737
+ onChange: e => selectedValuesData("adhocRebateComment", false, e)
28738
+ }, validation = {
28739
+ isRequired: true,
28740
+ pattern: "^[a-zA-Z ]*$",
28741
+ type: "text",
28742
+ title: t("TL_NAME_ERROR_MESSAGE")
28743
+ }))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
28744
+ className: "field"
28745
+ }, /*#__PURE__*/React.createElement(TextInput, _extends({
28746
+ style: {
28747
+ background: "#FAFAFA"
28748
+ },
28749
+ t: t,
28750
+ type: "number",
28751
+ isMandatory: false,
28752
+ name: "adhocRebate",
28753
+ value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebate) || "",
28754
+ onChange: e => selectedValuesData("adhocRebate", false, e)
28755
+ }, validation = {
28756
+ isRequired: true,
28757
+ pattern: "^[1-9]+[0-9]*$",
28758
+ title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
28759
+ }))))))), showToast && /*#__PURE__*/React.createElement(Toast, {
28760
+ style: {
28761
+ zIndex: "10000"
28762
+ },
28763
+ warning: showToast === null || showToast === void 0 ? void 0 : showToast.isWarning,
28764
+ error: showToast !== null && showToast !== void 0 && showToast.isWarning ? false : true,
28765
+ label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
28766
+ onClose: closeToast,
28767
+ isDleteBtn: true
28768
+ })));
28769
+ };
28770
+
28771
+ const ViewBreakup = _ref => {
28772
+ var _wsAdditionalDetails$, _breakUpData$billSlab, _breakUpData$billSlab2, _breakUpData$billSlab3, _breakUpData$billSlab4, _breakUpData$billSlab5, _breakUpData$billSlab6;
28773
+ let wsAdditionalDetails = _ref.wsAdditionalDetails;
28774
+ const _useTranslation = useTranslation(),
28775
+ t = _useTranslation.t;
28776
+ const _useState = useState(false),
28777
+ popup = _useState[0],
28778
+ showPopUp = _useState[1];
28779
+ const _useState2 = useState({}),
28780
+ breakUpData = _useState2[0],
28781
+ setBreakUpData = _useState2[1];
28782
+ const Heading = props => {
28783
+ return /*#__PURE__*/React.createElement("h1", {
28784
+ className: "heading-m"
28785
+ }, props.label);
28786
+ };
28787
+ const Close = () => /*#__PURE__*/React.createElement("svg", {
28788
+ xmlns: "http://www.w3.org/2000/svg",
28789
+ viewBox: "0 0 24 24",
28790
+ fill: "#FFFFFF"
28791
+ }, /*#__PURE__*/React.createElement("path", {
28792
+ d: "M0 0h24v24H0V0z",
28793
+ fill: "none"
28794
+ }), /*#__PURE__*/React.createElement("path", {
28795
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
28796
+ }));
28797
+ const CloseBtn = props => {
28798
+ return /*#__PURE__*/React.createElement("div", {
28799
+ className: "icon-bg-secondary",
28800
+ onClick: props.onClick
28801
+ }, /*#__PURE__*/React.createElement(Close, null));
28802
+ };
28803
+ const onPopupOpen = () => {
28804
+ var _sessionBillFormData$;
28805
+ let breakupData = wsAdditionalDetails.additionalDetails.data || {};
28806
+ const sessionBillData = sessionStorage.getItem("Digit.ADHOC_BILL_ADD_REBATE_DATA");
28807
+ const sessionBillFormData = sessionBillData ? JSON.parse(sessionBillData) : {};
28808
+ if (sessionBillFormData !== null && sessionBillFormData !== void 0 && (_sessionBillFormData$ = sessionBillFormData.value) !== null && _sessionBillFormData$ !== void 0 && _sessionBillFormData$.totalAmount) breakupData = sessionBillFormData === null || sessionBillFormData === void 0 ? void 0 : sessionBillFormData.value;
28809
+ setBreakUpData(breakupData);
28810
+ showPopUp(true);
28811
+ };
28812
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
28813
+ style: {
28814
+ lineHeight: "19px",
28815
+ maxWidth: "950px",
28816
+ minWidth: "280px"
28817
+ }
28818
+ }, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isViewBreakup ? /*#__PURE__*/React.createElement("div", {
28819
+ onClick: e => onPopupOpen(),
28820
+ style: {
28821
+ marginTop: "12px"
28822
+ }
28823
+ }, /*#__PURE__*/React.createElement("span", {
28824
+ className: "add-details-link hover-button"
28825
+ }, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
28826
+ headerBarMain: /*#__PURE__*/React.createElement(Heading, {
28827
+ label: t("WS_CALCULATION_BREAKUP")
28828
+ }),
28829
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
28830
+ onClick: () => {
28831
+ showPopUp(false);
28832
+ }
28833
+ }),
28834
+ hideSubmit: true,
28835
+ popupStyles: {
28836
+ overflowY: "auto"
28837
+ },
28838
+ headerBarMainStyle: {
28839
+ marginBottom: "0px"
28840
+ },
28841
+ popupModuleMianStyles: {
28842
+ paddingTop: "0px"
28843
+ }
28844
+ }, /*#__PURE__*/React.createElement(StatusTable, {
28845
+ style: {
28846
+ padding: "10px",
28847
+ paddingTop: "0px"
28848
+ }
28849
+ }, /*#__PURE__*/React.createElement(CardSectionHeader, {
28850
+ style: {
28851
+ margin: "10px 0px"
28852
+ }
28853
+ }, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : (_breakUpData$billSlab2 = _breakUpData$billSlab.FEE) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.map(data => /*#__PURE__*/React.createElement(Row, {
28854
+ className: "border-none",
28855
+ rowContainerStyle: {
28856
+ margin: "0px"
28857
+ },
28858
+ labelStyle: {
28859
+ width: "50%"
28860
+ },
28861
+ key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
28862
+ label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
28863
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
28864
+ textStyle: {
28865
+ textAlign: "right"
28866
+ }
28867
+ })), /*#__PURE__*/React.createElement("hr", {
28868
+ style: {
28869
+ color: "#cccccc",
28870
+ backgroundColor: "#cccccc",
28871
+ marginBottom: "10px"
28872
+ }
28873
+ }), /*#__PURE__*/React.createElement(Row, {
28874
+ className: "border-none",
28875
+ rowContainerStyle: {
28876
+ margin: "0px"
28877
+ },
28878
+ labelStyle: {
28879
+ width: "50%"
28880
+ },
28881
+ key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT1",
28882
+ label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
28883
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.fee) || 0),
28884
+ textStyle: {
28885
+ textAlign: "right",
28886
+ fontWeight: "700",
28887
+ fontSize: "24px"
28888
+ }
28889
+ }), /*#__PURE__*/React.createElement(CardSectionHeader, {
28890
+ style: {
28891
+ margin: "10px 0px"
28892
+ }
28893
+ }, t("WS_SERVICE_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : (_breakUpData$billSlab4 = _breakUpData$billSlab3.CHARGES) === null || _breakUpData$billSlab4 === void 0 ? void 0 : _breakUpData$billSlab4.map(data => /*#__PURE__*/React.createElement(Row, {
28894
+ className: "border-none",
28895
+ rowContainerStyle: {
28896
+ margin: "0px"
28897
+ },
28898
+ labelStyle: {
28899
+ width: "50%"
28900
+ },
28901
+ key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
28902
+ label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
28903
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
28904
+ textStyle: {
28905
+ textAlign: "right"
28906
+ }
28907
+ })), /*#__PURE__*/React.createElement("hr", {
28908
+ style: {
28909
+ color: "#cccccc",
28910
+ backgroundColor: "#cccccc",
28911
+ marginBottom: "10px"
28912
+ }
28913
+ }), /*#__PURE__*/React.createElement(Row, {
28914
+ className: "border-none",
28915
+ rowContainerStyle: {
28916
+ margin: "0px"
28917
+ },
28918
+ labelStyle: {
28919
+ width: "50%"
28920
+ },
28921
+ key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2",
28922
+ label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
28923
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
28924
+ textStyle: {
28925
+ textAlign: "right",
28926
+ fontWeight: "700",
28927
+ fontSize: "24px"
28928
+ }
28929
+ }), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab5 = breakUpData.billSlabData) === null || _breakUpData$billSlab5 === void 0 ? void 0 : (_breakUpData$billSlab6 = _breakUpData$billSlab5.TAX) === null || _breakUpData$billSlab6 === void 0 ? void 0 : _breakUpData$billSlab6.map(data => /*#__PURE__*/React.createElement(Row, {
28930
+ className: "border-none",
28931
+ rowContainerStyle: {
28932
+ margin: "0px"
28933
+ },
28934
+ labelStyle: {
28935
+ width: "50%"
28936
+ },
28937
+ key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
28938
+ label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
28939
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
28940
+ textStyle: {
28941
+ textAlign: "right"
28942
+ }
28943
+ })), /*#__PURE__*/React.createElement("hr", {
28944
+ style: {
28945
+ color: "#cccccc",
28946
+ backgroundColor: "#cccccc",
28947
+ marginBottom: "10px"
28948
+ }
28949
+ }), /*#__PURE__*/React.createElement(Row, {
28950
+ className: "border-none",
28951
+ rowContainerStyle: {
28952
+ margin: "0px"
28953
+ },
28954
+ labelStyle: {
28955
+ width: "50%"
28956
+ },
28957
+ key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT3",
28958
+ label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
28959
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount) || 0),
28960
+ textStyle: {
28961
+ textAlign: "right",
28962
+ fontWeight: "700",
28963
+ fontSize: "24px"
28964
+ }
28965
+ })))));
28966
+ };
28967
+
27985
28968
  const checkForNA$1 = value => {
27986
28969
  return value ? value : "CS_NA";
27987
28970
  };
27988
28971
  const WSApplicationDetails = () => {
27989
- var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect40, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect41, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$SewerageConnect47, _data$SewerageConnect48, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect49, _data$SewerageConnect50, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$SewerageConnect59, _data$SewerageConnect60, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data$3, _paymentDetails$data$4, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _paymentDetails$data8, _paymentDetails$data9, _paymentDetails$data0, _paymentDetails$data1, _paymentDetails$data10, _paymentDetails$data11, _paymentDetails$data12, _paymentDetails$data13, _paymentDetails$data14, _paymentDetails$data15, _paymentDetails$data16, _paymentDetails$data17, _paymentDetails$data18, _paymentDetails$data19, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _data$WaterConnection129, _data$WaterConnection130, _data$SewerageConnect124, _data$SewerageConnect125, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _paymentDetails$data20, _paymentDetails$data21, _paymentDetails$data22, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection150, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172;
28972
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _appDetailsData$appli, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect40, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect41, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$SewerageConnect47, _data$SewerageConnect48, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect49, _data$SewerageConnect50, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$SewerageConnect59, _data$SewerageConnect60, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _data$WaterConnection129, _data$WaterConnection130, _data$SewerageConnect124, _data$SewerageConnect125, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection150, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172;
27990
28973
  const getDisconnectionNoticeSearch = function () {
27991
28974
  try {
27992
28975
  var _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect169, _data$SewerageConnect170;
@@ -28101,7 +29084,14 @@ const WSApplicationDetails = () => {
28101
29084
  }
28102
29085
  }) || false;
28103
29086
  const isPaid = (data === null || data === void 0 ? void 0 : (_data$WaterConnection14 = data.WaterConnection) === null || _data$WaterConnection14 === void 0 ? void 0 : (_data$WaterConnection15 = _data$WaterConnection14[0]) === null || _data$WaterConnection15 === void 0 ? void 0 : _data$WaterConnection15.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection16 = data.WaterConnection) === null || _data$WaterConnection16 === void 0 ? void 0 : (_data$WaterConnection17 = _data$WaterConnection16[0]) === null || _data$WaterConnection17 === void 0 ? void 0 : _data$WaterConnection17.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect14 = data.SewerageConnections) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14[0]) === null || _data$SewerageConnect15 === void 0 ? void 0 : _data$SewerageConnect15.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect16 = data.SewerageConnections) === null || _data$SewerageConnect16 === void 0 ? void 0 : (_data$SewerageConnect17 = _data$SewerageConnect16[0]) === null || _data$SewerageConnect17 === void 0 ? void 0 : _data$SewerageConnect17.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" ? true : false;
28104
- if (isLoading) {
29087
+ const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, applicationNobyData, applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SEWERAGE" : "WATER", user),
29088
+ isAppDetailsLoading = _Digit$Hooks$ws$useWS.isLoading,
29089
+ appDetailsData = _Digit$Hooks$ws$useWS.data;
29090
+ const feeEstimationSection = appDetailsData === null || appDetailsData === void 0 ? void 0 : (_appDetailsData$appli = appDetailsData.applicationDetails) === null || _appDetailsData$appli === void 0 ? void 0 : _appDetailsData$appli.find(section => (section === null || section === void 0 ? void 0 : section.title) === "WS_TASK_DETAILS_FEE_ESTIMATE");
29091
+ if (feeEstimationSection && feeEstimationSection.additionalDetails) {
29092
+ feeEstimationSection.additionalDetails.isPaid = isPaid;
29093
+ }
29094
+ if (isLoading || isAppDetailsLoading) {
28105
29095
  return /*#__PURE__*/React.createElement(Loader, null);
28106
29096
  }
28107
29097
  const handleDownloadPdf = function () {
@@ -28325,25 +29315,19 @@ const WSApplicationDetails = () => {
28325
29315
  textStyle: {
28326
29316
  wordBreak: "break-word"
28327
29317
  }
28328
- })), (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : (_paymentDetails$data$3 = _paymentDetails$data$2.billDetails) === null || _paymentDetails$data$3 === void 0 ? void 0 : (_paymentDetails$data$4 = _paymentDetails$data$3[0]) === null || _paymentDetails$data$4 === void 0 ? void 0 : _paymentDetails$data$4.billAccountDetails.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
28329
- styles: {
28330
- fontSize: "28px"
28331
- }
28332
- }, t("WS_FEE_DEATAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, null, paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : (_paymentDetails$data5 = _paymentDetails$data4.billDetails) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5[0]) === null || _paymentDetails$data6 === void 0 ? void 0 : _paymentDetails$data6.billAccountDetails.map(bill => /*#__PURE__*/React.createElement(Row, {
28333
- label: t(bill === null || bill === void 0 ? void 0 : bill.taxHeadCode),
28334
- text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2)
28335
- })), /*#__PURE__*/React.createElement(Row, {
28336
- label: t("WS_TOTAL_AMOUNT_DUE"),
28337
- text: "\u20B9" + Number(isPaid ? 0 : paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data7 = paymentDetails.data) === null || _paymentDetails$data7 === void 0 ? void 0 : (_paymentDetails$data8 = _paymentDetails$data7.Bill) === null || _paymentDetails$data8 === void 0 ? void 0 : (_paymentDetails$data9 = _paymentDetails$data8[0]) === null || _paymentDetails$data9 === void 0 ? void 0 : (_paymentDetails$data0 = _paymentDetails$data9.billDetails) === null || _paymentDetails$data0 === void 0 ? void 0 : (_paymentDetails$data1 = _paymentDetails$data0[0]) === null || _paymentDetails$data1 === void 0 ? void 0 : _paymentDetails$data1.amount).toFixed(2)
28338
- }), /*#__PURE__*/React.createElement(Row, {
28339
- label: t("WS_COMMON_TABLE_COL_APPLICATION_STATUS"),
28340
- text: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data10 = paymentDetails.data) === null || _paymentDetails$data10 === void 0 ? void 0 : (_paymentDetails$data11 = _paymentDetails$data10.Bill) === null || _paymentDetails$data11 === void 0 ? void 0 : (_paymentDetails$data12 = _paymentDetails$data11[0]) === null || _paymentDetails$data12 === void 0 ? void 0 : (_paymentDetails$data13 = _paymentDetails$data12.billDetails) === null || _paymentDetails$data13 === void 0 ? void 0 : (_paymentDetails$data14 = _paymentDetails$data13[0]) === null || _paymentDetails$data14 === void 0 ? void 0 : _paymentDetails$data14.amount).toFixed(2) == 0 ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
28341
- textStyle: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data15 = paymentDetails.data) === null || _paymentDetails$data15 === void 0 ? void 0 : (_paymentDetails$data16 = _paymentDetails$data15.Bill) === null || _paymentDetails$data16 === void 0 ? void 0 : (_paymentDetails$data17 = _paymentDetails$data16[0]) === null || _paymentDetails$data17 === void 0 ? void 0 : (_paymentDetails$data18 = _paymentDetails$data17.billDetails) === null || _paymentDetails$data18 === void 0 ? void 0 : (_paymentDetails$data19 = _paymentDetails$data18[0]) === null || _paymentDetails$data19 === void 0 ? void 0 : _paymentDetails$data19.amount).toFixed(2) == 0 ? {
28342
- color: "darkgreen"
28343
- } : {
28344
- color: "red"
29318
+ })), feeEstimationSection && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
29319
+ style: {
29320
+ marginBottom: "16px",
29321
+ marginTop: "16px",
29322
+ fontSize: "24px"
28345
29323
  }
28346
- }))), /*#__PURE__*/React.createElement(CardHeader, {
29324
+ }, t(feeEstimationSection.title)), /*#__PURE__*/React.createElement(WSFeeEstimation, {
29325
+ wsAdditionalDetails: feeEstimationSection,
29326
+ workflowDetails: null
29327
+ }), /*#__PURE__*/React.createElement(ViewBreakup, {
29328
+ wsAdditionalDetails: feeEstimationSection,
29329
+ workflowDetails: null
29330
+ })), /*#__PURE__*/React.createElement(CardHeader, {
28347
29331
  styles: {
28348
29332
  fontSize: "28px"
28349
29333
  }
@@ -28752,7 +29736,7 @@ const WSApplicationDetails = () => {
28752
29736
  }) : null)));
28753
29737
  })), (data === null || data === void 0 ? void 0 : (_data$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139[0]) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect134 = data.SewerageConnections) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134[0]) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
28754
29738
  to: {
28755
- pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data20 = paymentDetails.data) === null || _paymentDetails$data20 === void 0 ? void 0 : (_paymentDetails$data21 = _paymentDetails$data20.Bill) === null || _paymentDetails$data21 === void 0 ? void 0 : (_paymentDetails$data22 = _paymentDetails$data21[0]) === null || _paymentDetails$data22 === void 0 ? void 0 : _paymentDetails$data22.businessService) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection141 = data.WaterConnection) === null || _data$WaterConnection141 === void 0 ? void 0 : (_data$WaterConnection142 = _data$WaterConnection141[0]) === null || _data$WaterConnection142 === void 0 ? void 0 : _data$WaterConnection142.connectionNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : (_data$SewerageConnect137 = _data$SewerageConnect136[0]) === null || _data$SewerageConnect137 === void 0 ? void 0 : _data$SewerageConnect137.connectionNo, "/", "+") : stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : (_data$WaterConnection144 = _data$WaterConnection143[0]) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144.applicationNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : (_data$SewerageConnect139 = _data$SewerageConnect138[0]) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection145 = data.WaterConnection) === null || _data$WaterConnection145 === void 0 ? void 0 : (_data$WaterConnection146 = _data$WaterConnection145[0]) === null || _data$WaterConnection146 === void 0 ? void 0 : _data$WaterConnection146.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : (_data$SewerageConnect141 = _data$SewerageConnect140[0]) === null || _data$SewerageConnect141 === void 0 ? void 0 : _data$SewerageConnect141.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection147 = data.WaterConnection) === null || _data$WaterConnection147 === void 0 ? void 0 : (_data$WaterConnection148 = _data$WaterConnection147[0]) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148.connectionHolders) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect142 = data.SewerageConnections) === null || _data$SewerageConnect142 === void 0 ? void 0 : (_data$SewerageConnect143 = _data$SewerageConnect142[0]) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143.connectionHolders) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : (_PTData$Properties8$$ = _PTData$Properties8$.owners) === null || _PTData$Properties8$$ === void 0 ? void 0 : _PTData$Properties8$$.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false),
29739
+ pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection141 = data.WaterConnection) === null || _data$WaterConnection141 === void 0 ? void 0 : (_data$WaterConnection142 = _data$WaterConnection141[0]) === null || _data$WaterConnection142 === void 0 ? void 0 : _data$WaterConnection142.connectionNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : (_data$SewerageConnect137 = _data$SewerageConnect136[0]) === null || _data$SewerageConnect137 === void 0 ? void 0 : _data$SewerageConnect137.connectionNo, "/", "+") : stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : (_data$WaterConnection144 = _data$WaterConnection143[0]) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144.applicationNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : (_data$SewerageConnect139 = _data$SewerageConnect138[0]) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection145 = data.WaterConnection) === null || _data$WaterConnection145 === void 0 ? void 0 : (_data$WaterConnection146 = _data$WaterConnection145[0]) === null || _data$WaterConnection146 === void 0 ? void 0 : _data$WaterConnection146.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : (_data$SewerageConnect141 = _data$SewerageConnect140[0]) === null || _data$SewerageConnect141 === void 0 ? void 0 : _data$SewerageConnect141.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection147 = data.WaterConnection) === null || _data$WaterConnection147 === void 0 ? void 0 : (_data$WaterConnection148 = _data$WaterConnection147[0]) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148.connectionHolders) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect142 = data.SewerageConnections) === null || _data$SewerageConnect142 === void 0 ? void 0 : (_data$SewerageConnect143 = _data$SewerageConnect142[0]) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143.connectionHolders) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : (_PTData$Properties8$$ = _PTData$Properties8$.owners) === null || _PTData$Properties8$$ === void 0 ? void 0 : _PTData$Properties8$$.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false),
28756
29740
  state: {}
28757
29741
  }
28758
29742
  }, /*#__PURE__*/React.createElement(SubmitBar, {
@@ -30141,7 +31125,7 @@ const getPath$3 = (path, params) => {
30141
31125
  };
30142
31126
  const getEditDetails = (waterResult, sewerageresult, t) => {
30143
31127
  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;
31128
+ 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
31129
  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
31130
  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
31131
  documentId: "",
@@ -30154,14 +31138,15 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30154
31138
  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
31139
  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
31140
  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)
31141
+ 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,
31142
+ 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,
31143
+ 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 ? {
31144
+ 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,
31145
+ 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
31146
  } : 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)
31147
+ 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 ? {
31148
+ 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,
31149
+ 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
31150
  } : ""
30166
31151
  })] : [{
30167
31152
  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 +31165,9 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30180
31165
  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
31166
  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
31167
  } : 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)
31168
+ 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 ? {
31169
+ 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,
31170
+ 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
31171
  } : ""
30187
31172
  }];
30188
31173
  waterResult.WaterConnectionResult = {
@@ -30194,8 +31179,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30194
31179
  waterResult.cptId = {
30195
31180
  id: waterResult === null || waterResult === void 0 ? void 0 : waterResult.propertyId
30196
31181
  };
30197
- waterResult.documents = {
30198
- documents: waterResult === null || waterResult === void 0 ? void 0 : waterResult.documents
31182
+ waterResult.DocumentsRequired = {
31183
+ documents: (waterResult === null || waterResult === void 0 ? void 0 : waterResult.documents) || []
30199
31184
  };
30200
31185
  waterResult.plumberPreference = {
30201
31186
  plumberPreference: {
@@ -30225,18 +31210,21 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30225
31210
  code: "WATER",
30226
31211
  i18nKey: "WS_APPLICATION_TYPE_WATER"
30227
31212
  },
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)
31213
+ connectionType: waterResult !== null && waterResult !== void 0 && waterResult.connectionType ? {
31214
+ code: waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionType,
31215
+ i18nKey: "WS_CONNECTION_" + (waterResult === null || waterResult === void 0 ? void 0 : waterResult.connectionType)
31216
+ } : null,
31217
+ waterDemandType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition = waterResult.additionalDetails) !== null && _waterResult$addition !== void 0 && _waterResult$addition.waterDemandType ? {
31218
+ code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition2 = waterResult.additionalDetails) === null || _waterResult$addition2 === void 0 ? void 0 : _waterResult$addition2.waterDemandType,
31219
+ 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
31220
  } : 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)
31221
+ applicantType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition4 = waterResult.additionalDetails) !== null && _waterResult$addition4 !== void 0 && _waterResult$addition4.applicantType ? {
31222
+ code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition5 = waterResult.additionalDetails) === null || _waterResult$addition5 === void 0 ? void 0 : _waterResult$addition5.applicantType,
31223
+ 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
31224
  } : 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)
31225
+ categoryType: waterResult !== null && waterResult !== void 0 && (_waterResult$addition7 = waterResult.additionalDetails) !== null && _waterResult$addition7 !== void 0 && _waterResult$addition7.categoryType ? {
31226
+ code: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition8 = waterResult.additionalDetails) === null || _waterResult$addition8 === void 0 ? void 0 : _waterResult$addition8.categoryType,
31227
+ 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
31228
  } : null,
30241
31229
  proposedPipeSize: waterResult !== null && waterResult !== void 0 && waterResult.proposedPipeSize ? {
30242
31230
  code: waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedPipeSize,
@@ -30246,21 +31234,21 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30246
31234
  proposedTaps: waterResult === null || waterResult === void 0 ? void 0 : waterResult.proposedTaps
30247
31235
  }];
30248
31236
  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) || ""
31237
+ bankName: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition0 = waterResult.additionalDetails) === null || _waterResult$addition0 === void 0 ? void 0 : _waterResult$addition0.bankName) || "",
31238
+ 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) || "",
31239
+ ifscCode: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition11 = waterResult.additionalDetails) === null || _waterResult$addition11 === void 0 ? void 0 : _waterResult$addition11.ifscCode) || "",
31240
+ 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) || "",
31241
+ 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) || "",
31242
+ 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
31243
  };
30256
31244
  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) || ""
31245
+ isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition19 = waterResult.additionalDetails) === null || _waterResult$addition19 === void 0 ? void 0 : _waterResult$addition19.isDjbEmployee) === "true",
31246
+ employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.employeeId) || "",
31247
+ designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.designation) || "",
31248
+ 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
31249
  };
30262
31250
  } 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;
31251
+ 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
31252
  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
31253
  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
31254
  documentId: "",
@@ -30273,14 +31261,15 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30273
31261
  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
31262
  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
31263
  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)
31264
+ 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,
31265
+ 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,
31266
+ 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 ? {
31267
+ 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,
31268
+ 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
31269
  } : 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)
31270
+ 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 ? {
31271
+ 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,
31272
+ 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
31273
  } : ""
30285
31274
  })] : [{
30286
31275
  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 +31288,9 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30299
31288
  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
31289
  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
31290
  } : 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)
31291
+ 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 ? {
31292
+ 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,
31293
+ 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
31294
  } : ""
30306
31295
  }];
30307
31296
  sewerageresult.SewerageConnectionResult = {
@@ -30313,8 +31302,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30313
31302
  sewerageresult.cptId = {
30314
31303
  id: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.propertyId
30315
31304
  };
30316
- sewerageresult.documents = {
30317
- documents: [...(sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.documents)]
31305
+ sewerageresult.DocumentsRequired = {
31306
+ documents: (sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.documents) || []
30318
31307
  };
30319
31308
  sewerageresult.plumberPreference = {
30320
31309
  plumberPreference: {
@@ -30340,41 +31329,47 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
30340
31329
  code: "SEWERAGE",
30341
31330
  i18nKey: "WS_APPLICATION_TYPE_SEWERAGE"
30342
31331
  },
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)
31332
+ connectionType: sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionType ? {
31333
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.connectionType,
31334
+ i18nKey: "WS_CONNECTION_" + (sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.connectionType)
31335
+ } : {
31336
+ code: "Non Metered",
31337
+ i18nKey: "WS_CONNECTION_Non Metered"
31338
+ },
31339
+ waterDemandType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit = sewerageresult.additionalDetails) !== null && _sewerageresult$addit !== void 0 && _sewerageresult$addit.waterDemandType ? {
31340
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit2 = sewerageresult.additionalDetails) === null || _sewerageresult$addit2 === void 0 ? void 0 : _sewerageresult$addit2.waterDemandType,
31341
+ 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
31342
  } : 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)
31343
+ applicantType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit4 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit4 !== void 0 && _sewerageresult$addit4.applicantType ? {
31344
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit5 = sewerageresult.additionalDetails) === null || _sewerageresult$addit5 === void 0 ? void 0 : _sewerageresult$addit5.applicantType,
31345
+ 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
31346
  } : 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)
31347
+ categoryType: sewerageresult !== null && sewerageresult !== void 0 && (_sewerageresult$addit7 = sewerageresult.additionalDetails) !== null && _sewerageresult$addit7 !== void 0 && _sewerageresult$addit7.categoryType ? {
31348
+ code: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit8 = sewerageresult.additionalDetails) === null || _sewerageresult$addit8 === void 0 ? void 0 : _sewerageresult$addit8.categoryType,
31349
+ 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
31350
  } : null,
30356
31351
  proposedToilets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedToilets,
30357
31352
  proposedWaterClosets: sewerageresult === null || sewerageresult === void 0 ? void 0 : sewerageresult.proposedWaterClosets
30358
31353
  }];
30359
31354
  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) || ""
31355
+ bankName: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit0 = sewerageresult.additionalDetails) === null || _sewerageresult$addit0 === void 0 ? void 0 : _sewerageresult$addit0.bankName) || "",
31356
+ 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) || "",
31357
+ ifscCode: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit11 = sewerageresult.additionalDetails) === null || _sewerageresult$addit11 === void 0 ? void 0 : _sewerageresult$addit11.ifscCode) || "",
31358
+ 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) || "",
31359
+ 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) || "",
31360
+ 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
31361
  };
30367
31362
  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) || ""
31363
+ isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit19 = sewerageresult.additionalDetails) === null || _sewerageresult$addit19 === void 0 ? void 0 : _sewerageresult$addit19.isDjbEmployee) === "true",
31364
+ employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.employeeId) || "",
31365
+ designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.designation) || "",
31366
+ 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
31367
  };
30373
31368
  }
30374
31369
  if (waterResult) return _extends({}, waterResult);else return _extends({}, sewerageresult);
30375
31370
  };
30376
31371
  const EditApplication = _ref => {
30377
- var _newConfig, _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi;
31372
+ var _newConfig, _Digit, _Digit$ComponentRegis;
30378
31373
  const queryClient = useQueryClient();
30379
31374
  let match = useRouteMatch();
30380
31375
  const _useTranslation = useTranslation(),
@@ -30382,17 +31377,22 @@ const EditApplication = _ref => {
30382
31377
  let _useParams = useParams(),
30383
31378
  tenantId = _useParams.tenantId;
30384
31379
  const _useLocation = useLocation(),
30385
- pathname = _useLocation.pathname,
30386
31380
  state = _useLocation.state;
30387
31381
  const history = useHistory();
30388
31382
  let applicationNumber = (state === null || state === void 0 ? void 0 : state.id) || sessionStorage.getItem("ApplicationNoState");
30389
31383
  let config = [];
30390
31384
  let waterapplication = {};
30391
31385
  let sewerageapplication = {};
30392
- const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("WS_EDIT_APPLICATION_V3", {}),
31386
+ const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("WS_EDIT_APPLICATION_V5", {}),
30393
31387
  params = _Digit$Hooks$useSessi[0],
30394
31388
  setParams = _Digit$Hooks$useSessi[1],
30395
31389
  clearParams = _Digit$Hooks$useSessi[2];
31390
+ let initialConfig = [];
31391
+ newConfig === null || newConfig === void 0 ? void 0 : newConfig.forEach(obj => {
31392
+ if (!obj.hideInCitizen) {
31393
+ initialConfig = initialConfig.concat(obj.body.filter(a => !a.hideInCitizen));
31394
+ }
31395
+ });
30396
31396
  const stateId = Digit.ULBService.getStateId();
30397
31397
  let _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.getFormConfig(stateId, {}),
30398
31398
  newConfig$1 = _Digit$Hooks$ws$useWS.data,
@@ -30455,35 +31455,17 @@ const EditApplication = _ref => {
30455
31455
  setParams(_extends({}, params, EditDetails));
30456
31456
  }
30457
31457
  }, [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
31458
  const onSuccess = () => {
30483
31459
  queryClient.invalidateQueries("WS_CREATE");
30484
31460
  };
30485
31461
  const createApplication = function () {
30486
31462
  try {
31463
+ var _params$DocumentsRequ;
31464
+ if (params !== null && params !== void 0 && (_params$DocumentsRequ = params.DocumentsRequired) !== null && _params$DocumentsRequ !== void 0 && _params$DocumentsRequ.documents) {
31465
+ params.documents = {
31466
+ documents: params.DocumentsRequired.documents
31467
+ };
31468
+ }
30487
31469
  history.push(getPath$3(match.path, match.params) + "/acknowledgement");
30488
31470
  return Promise.resolve();
30489
31471
  } catch (e) {
@@ -30494,7 +31476,6 @@ const EditApplication = _ref => {
30494
31476
  if (isFromCreateApi) setParams(data);else if (key === "") setParams(_extends({}, data));else setParams(_extends({}, params, {
30495
31477
  [key]: _extends({}, params[key], data)
30496
31478
  }));
30497
- goNext();
30498
31479
  };
30499
31480
  const handleSkip = () => {};
30500
31481
  newConfig$1 = newConfig;
@@ -30503,21 +31484,62 @@ const EditApplication = _ref => {
30503
31484
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
30504
31485
  }
30505
31486
  });
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) {
31487
+ const startIndex = config.findIndex(c => c.route === "connection-details");
31488
+ if (startIndex !== -1) {
31489
+ config = config.slice(startIndex);
31490
+ }
31491
+ config = config.filter(c => c.route !== "docsrequired" && c.route !== "check");
31492
+ config.forEach(c => {
31493
+ if (c.component === "WSDocumentDetails") {
31494
+ c.component = "WSDocumentsEmployee";
31495
+ c.key = "DocumentsRequired";
31496
+ }
31497
+ });
31498
+ config = config.map((routeObj, index) => {
31499
+ var _routeObj$texts;
31500
+ return _extends({}, routeObj, {
31501
+ timeLine: [{
31502
+ currentStep: index + 1,
31503
+ actions: ((_routeObj$texts = routeObj.texts) === null || _routeObj$texts === void 0 ? void 0 : _routeObj$texts.header) || routeObj.route
31504
+ }]
31505
+ });
31506
+ });
31507
+ 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
31508
  return /*#__PURE__*/React.createElement(Loader, null);
30509
31509
  }
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) => {
31510
+ 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");
31511
+ return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
31512
+ path: getPath$3(match.path, match.params) + "/acknowledgement"
31513
+ }, /*#__PURE__*/React.createElement(Acknowledgement, {
31514
+ data: params,
31515
+ onSuccess: onSuccess,
31516
+ clearParams: clearParams
31517
+ })), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement("div", {
31518
+ className: "citizen-single-screen-edit"
31519
+ }, /*#__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", {
31520
+ style: {
31521
+ display: "flex",
31522
+ flexDirection: "row",
31523
+ gap: "24px",
31524
+ alignItems: "flex-start",
31525
+ marginBottom: "2rem"
31526
+ }
31527
+ }, /*#__PURE__*/React.createElement("div", {
31528
+ style: {
31529
+ flex: "1",
31530
+ display: "flex",
31531
+ flexDirection: "column",
31532
+ gap: "24px"
31533
+ }
31534
+ }, config.map((routeObj, index) => {
30513
31535
  const component = routeObj.component,
30514
31536
  texts = routeObj.texts,
30515
31537
  inputs = routeObj.inputs,
30516
31538
  key = routeObj.key,
30517
31539
  isSkipEnabled = routeObj.isSkipEnabled;
30518
31540
  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,
31541
+ return /*#__PURE__*/React.createElement("div", {
31542
+ id: "step-" + index,
30521
31543
  key: index
30522
31544
  }, /*#__PURE__*/React.createElement(Component, {
30523
31545
  config: {
@@ -30530,22 +31552,16 @@ const EditApplication = _ref => {
30530
31552
  onSkip: handleSkip,
30531
31553
  t: t,
30532
31554
  formData: params,
30533
- userType: "citizen"
31555
+ userType: "employee"
30534
31556
  }));
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
- })));
31557
+ }), /*#__PURE__*/React.createElement("div", {
31558
+ style: {
31559
+ marginTop: "24px"
31560
+ }
31561
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
31562
+ label: t("SUBMIT"),
31563
+ onSubmit: createApplication
31564
+ })))))));
30549
31565
  };
30550
31566
 
30551
31567
  const getPath$4 = (path, params) => {
@@ -38580,12 +39596,17 @@ const ActionModal$5 = _ref => {
38580
39596
  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
39597
  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
39598
  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) {
39599
+ const inspectionInformationData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
39600
+ if (inspectionInformationData) {
38585
39601
  try {
38586
- applicationData.dueVerification = JSON.parse(dueVerificationData);
39602
+ const parsedInspectionData = JSON.parse(inspectionInformationData);
39603
+ if (parsedInspectionData !== null && parsedInspectionData !== void 0 && parsedInspectionData.inspectionDate) {
39604
+ const dateVal = parsedInspectionData.inspectionDate;
39605
+ parsedInspectionData.inspectionDate = typeof dateVal === 'string' ? new Date(dateVal).getTime() : dateVal;
39606
+ }
39607
+ applicationData.inspectionInformation = parsedInspectionData;
38587
39608
  } catch (e) {
38588
- console.error("Error parsing due verification data", e);
39609
+ console.error("Error parsing inspection information data", e);
38589
39610
  }
38590
39611
  }
38591
39612
  ((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
@@ -41509,7 +42530,7 @@ const SubOccupancyTable = _ref => {
41509
42530
  })));
41510
42531
  };
41511
42532
 
41512
- const Reason$1 = _ref => {
42533
+ const Reason = _ref => {
41513
42534
  let headComment = _ref.headComment,
41514
42535
  otherComment = _ref.otherComment;
41515
42536
  return /*#__PURE__*/React.createElement("div", {
@@ -41534,7 +42555,7 @@ const TLCaption = _ref => {
41534
42555
  }, /*#__PURE__*/React.createElement(TelePhone, {
41535
42556
  mobile: data.mobileNumber,
41536
42557
  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, {
42558
+ }), /*#__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
42559
  otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
41539
42560
  headComment: data === null || data === void 0 ? void 0 : data.comment
41540
42561
  }), 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", {
@@ -41746,394 +42767,6 @@ const WSAdditonalDetails = _ref => {
41746
42767
  }))))));
41747
42768
  };
41748
42769
 
41749
- const Penality_menu = [{
41750
- title: "PT_PENDING_DUES_FROM_EARLIER",
41751
- value: "Pending dues from earlier"
41752
- }, {
41753
- title: "PT_MISCALCULATION_OF_EARLIER_ASSESSMENT",
41754
- value: "Miscalculation of earlier Assessment"
41755
- }, {
41756
- title: "PT_ONE_TIME_PENALITY",
41757
- value: "One time penality"
41758
- }, {
41759
- title: "PT_OTHERS",
41760
- value: "Others"
41761
- }];
41762
- const Rebate_menu = [{
41763
- title: "PT_ADVANCED_PAID_BY_CITIZEN_EARLIER",
41764
- value: "Advanced Paid By Citizen Earlier"
41765
- }, {
41766
- title: "PT_REBATE_PROVIDED_BY_COMMISSIONER_EO",
41767
- value: "Rebate provided by commissioner/EO"
41768
- }, {
41769
- title: "PT_ADDITIONAL_AMOUNT_CHARGED_FROM_THE_CITIZEN",
41770
- value: "Additional amount charged from the citizen"
41771
- }, {
41772
- title: "PT_OTHERS",
41773
- value: "Others"
41774
- }];
41775
- const WSFeeEstimation = _ref => {
41776
- var _wsAdditionalDetails$, _wsAdditionalDetails$18, _fields$adhocPenaltyR, _fields$adhocRebateRe;
41777
- let wsAdditionalDetails = _ref.wsAdditionalDetails;
41778
- const _useTranslation = useTranslation(),
41779
- t = _useTranslation.t;
41780
- const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("ADHOC_ADD_REBATE_DATA", {}),
41781
- sessionFormData = _Digit$Hooks$useSessi[0],
41782
- setSessionFormData = _Digit$Hooks$useSessi[1];
41783
- const _Digit$Hooks$useSessi2 = Digit.Hooks.useSessionStorage("ADHOC_BILL_ADD_REBATE_DATA", {}),
41784
- setSessionBillFormData = _Digit$Hooks$useSessi2[1];
41785
- const isPaid = wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isPaid ? true : false;
41786
- const _useState = useState(false),
41787
- popup = _useState[0],
41788
- showPopUp = _useState[1];
41789
- const _useState2 = useState(sessionFormData ? sessionFormData : {}),
41790
- fields = _useState2[0],
41791
- setFields = _useState2[1];
41792
- const _useState3 = useState(null),
41793
- showToast = _useState3[0],
41794
- setShowToast = _useState3[1];
41795
- const _useState4 = useState(wsAdditionalDetails.additionalDetails.data ? wsAdditionalDetails.additionalDetails.data : {}),
41796
- billDetails = _useState4[0],
41797
- setBillDetails = _useState4[1];
41798
- const _useState5 = useState(wsAdditionalDetails.additionalDetails.values ? wsAdditionalDetails.additionalDetails.values : []),
41799
- values = _useState5[0],
41800
- setValues = _useState5[1];
41801
- const stateCode = Digit.ULBService.getStateId();
41802
- const _Digit$Hooks$ws$useMD = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
41803
- useEffect(() => {
41804
- var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
41805
- 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
- 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 = [{
41809
- 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)
41811
- }, {
41812
- 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)
41814
- }, {
41815
- 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)
41817
- }];
41818
- 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]);
41820
- } else {
41821
- setSessionFormData(data);
41822
- setFields(data);
41823
- }
41824
- }, []);
41825
- let validation = {};
41826
- const Heading = props => {
41827
- return /*#__PURE__*/React.createElement("h1", {
41828
- className: "heading-m"
41829
- }, props.label);
41830
- };
41831
- const Close = () => /*#__PURE__*/React.createElement("svg", {
41832
- xmlns: "http://www.w3.org/2000/svg",
41833
- viewBox: "0 0 24 24",
41834
- fill: "#FFFFFF"
41835
- }, /*#__PURE__*/React.createElement("path", {
41836
- d: "M0 0h24v24H0V0z",
41837
- fill: "none"
41838
- }), /*#__PURE__*/React.createElement("path", {
41839
- d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
41840
- }));
41841
- const CloseBtn = props => {
41842
- return /*#__PURE__*/React.createElement("div", {
41843
- className: "icon-bg-secondary",
41844
- onClick: props.onClick
41845
- }, /*#__PURE__*/React.createElement(Close, null));
41846
- };
41847
- const closeToast = () => {
41848
- setShowToast(false);
41849
- };
41850
- const addAdhocRebatePenality = e => {
41851
- const adhocAmount = fields !== null && fields !== void 0 && fields.adhocPenalty ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) : 0;
41852
- const rebateAmount = fields !== null && fields !== void 0 && fields.adhocRebate ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocRebate) : 0;
41853
- if (adhocAmount || rebateAmount) {
41854
- var _wsAdditionalDetails$4, _wsAdditionalDetails$5;
41855
- const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$4 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : (_wsAdditionalDetails$5 = _wsAdditionalDetails$4.data) === null || _wsAdditionalDetails$5 === void 0 ? void 0 : _wsAdditionalDetails$5.totalAmount;
41856
- if (rebateAmount > totalAmount) {
41857
- setShowToast({
41858
- isError: false,
41859
- isWarning: true,
41860
- key: "error",
41861
- message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
41862
- });
41863
- } else {
41864
- var _wsAdditionalDetails$0, _wsAdditionalDetails$1, _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17;
41865
- const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$0 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$0 === void 0 ? void 0 : (_wsAdditionalDetails$1 = _wsAdditionalDetails$0.appDetails) === null || _wsAdditionalDetails$1 === void 0 ? void 0 : _wsAdditionalDetails$1.applicationNo;
41866
- const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$10 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : (_wsAdditionalDetails$11 = _wsAdditionalDetails$10.appDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : _wsAdditionalDetails$11.tenantId;
41867
- const appAdditionalDetails = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$12 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : (_wsAdditionalDetails$13 = _wsAdditionalDetails$12.appDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : _wsAdditionalDetails$13.additionalDetails, fields);
41868
- wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
41869
- const data = {
41870
- CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$14 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : (_wsAdditionalDetails$15 = _wsAdditionalDetails$14.appDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : _wsAdditionalDetails$15.service) == "WATER" ? [{
41871
- applicationNo: applicationNo,
41872
- tenantId: tenantId,
41873
- waterConnection: wsAdditionalDetails.additionalDetails.appDetails
41874
- }] : [{
41875
- applicationNo: applicationNo,
41876
- tenantId: tenantId,
41877
- sewerageConnection: wsAdditionalDetails.additionalDetails.appDetails
41878
- }],
41879
- isconnectionCalculation: false
41880
- };
41881
- 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
- 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;
41884
- 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
- var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
41886
- 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
- }
41888
- 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 = [{
41890
- 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
41892
- }, {
41893
- 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
41895
- }, {
41896
- 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
41898
- }];
41899
- 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]);
41901
- setValues(values);
41902
- fields.billDetails = result === null || result === void 0 ? void 0 : result.Calculation;
41903
- setSessionFormData(fields);
41904
- showPopUp(false);
41905
- }).catch(e => {
41906
- var _e$response, _e$response$data, _e$response$data$Erro, _e$response2, _e$response2$data, _e$response2$data$Err;
41907
- setShowToast({
41908
- isError: true,
41909
- isWarning: false,
41910
- key: "error",
41911
- message: e !== null && e !== void 0 && (_e$response = e.response) !== null && _e$response !== void 0 && (_e$response$data = _e$response.data) !== null && _e$response$data !== void 0 && (_e$response$data$Erro = _e$response$data.Errors[0]) !== null && _e$response$data$Erro !== void 0 && _e$response$data$Erro.message ? t("" + (e === null || e === void 0 ? void 0 : (_e$response2 = e.response) === null || _e$response2 === void 0 ? void 0 : (_e$response2$data = _e$response2.data) === null || _e$response2$data === void 0 ? void 0 : (_e$response2$data$Err = _e$response2$data.Errors[0]) === null || _e$response2$data$Err === void 0 ? void 0 : _e$response2$data$Err.code)) : t("PT_COMMON_ADD_REBATE_PENALITY")
41912
- });
41913
- });
41914
- }
41915
- } else {
41916
- setShowToast({
41917
- isError: false,
41918
- isWarning: true,
41919
- key: "warning",
41920
- message: t("ERR_WS_ENTER_ATLEAST_ONE_FIELD")
41921
- });
41922
- }
41923
- };
41924
- const selectedValuesData = function (value, isDropDownValue, e) {
41925
- if (isDropDownValue === void 0) {
41926
- isDropDownValue = false;
41927
- }
41928
- let values = _extends({}, fields);
41929
- if ((value == "adhocPenalty" || value == "adhocRebate") && e.target.value) {
41930
- var _e$target, _e$target2;
41931
- const targetValueSign = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) == 0 ? 1 : Math.sign(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || -1;
41932
- if (targetValueSign == 1) {
41933
- values[value] = e.target.value;
41934
- } else {
41935
- values[value] = "";
41936
- }
41937
- } else if (isDropDownValue) {
41938
- values[value + "_data"] = e;
41939
- values[value] = e.title;
41940
- if (e.title == "PT_OTHERS" && value == "adhocPenaltyReason") values["adhocPenaltyComment"] = "";
41941
- if (e.title == "PT_OTHERS" && value == "adhocRebateReason") values["adhocRebateComment"] = "";
41942
- } else {
41943
- values[value] = e.target.value;
41944
- }
41945
- setFields(values);
41946
- };
41947
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
41948
- style: {
41949
- lineHeight: "19px",
41950
- maxWidth: "100%",
41951
- minWidth: "280px"
41952
- }
41953
- }, values && /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", null, values === null || values === void 0 ? void 0 : values.map((value, index) => {
41954
- return /*#__PURE__*/React.createElement(Row, {
41955
- className: "border-none",
41956
- key: "" + value.title,
41957
- label: "" + t("" + value.title),
41958
- text: value !== null && value !== void 0 && value.value ? value === null || value === void 0 ? void 0 : value.value : ""
41959
- });
41960
- })), /*#__PURE__*/React.createElement("hr", {
41961
- style: {
41962
- border: "1px solid #D6D5D4",
41963
- color: "#D6D5D4",
41964
- margin: "16px 0px"
41965
- }
41966
- }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, {
41967
- className: "border-none",
41968
- key: "WS_COMMON_TOTAL_AMT",
41969
- label: "" + t("WS_COMMON_TOTAL_AMT"),
41970
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", (billDetails === null || billDetails === void 0 ? void 0 : billDetails.totalAmount) || 0),
41971
- textStyle: {
41972
- fontSize: "24px",
41973
- fontWeight: "700"
41974
- }
41975
- }), /*#__PURE__*/React.createElement(Row, {
41976
- className: "border-none",
41977
- key: "CS_INBOX_STATUS_FILTER",
41978
- label: "" + t("CS_INBOX_STATUS_FILTER"),
41979
- text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
41980
- textStyle: !isPaid ? {
41981
- color: "#D83A2F"
41982
- } : {
41983
- color: "#2E9E8F"
41984
- }
41985
- }))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
41986
- onClick: e => {
41987
- showPopUp(true);
41988
- }
41989
- }, /*#__PURE__*/React.createElement("span", {
41990
- className: "add-details-link hover-button",
41991
- style: {
41992
- cursor: "pointer",
41993
- color: "#a82227"
41994
- }
41995
- }, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
41996
- headerBarMain: /*#__PURE__*/React.createElement(Heading, {
41997
- label: t("PT_ADD_REBATE_PENALITY")
41998
- }),
41999
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
42000
- onClick: () => {
42001
- setFields(sessionFormData);
42002
- showPopUp(false);
42003
- }
42004
- }),
42005
- actionCancelLabel: t("PT_CANCEL"),
42006
- actionCancelOnSubmit: () => {
42007
- setFields(sessionFormData);
42008
- showPopUp(false);
42009
- },
42010
- actionSaveLabel: t("PT_ADD"),
42011
- actionSaveOnSubmit: e => addAdhocRebatePenality(),
42012
- hideSubmit: false,
42013
- popupStyles: {
42014
- overflowY: "auto",
42015
- background: "#f0f3f7"
42016
- }
42017
- }, /*#__PURE__*/React.createElement("div", {
42018
- style: {
42019
- display: "flex",
42020
- flexDirection: "column",
42021
- gap: "16px"
42022
- }
42023
- }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
42024
- style: {
42025
- fontSize: "16px",
42026
- fontWeight: "700",
42027
- lineHeight: "18px",
42028
- padding: "0px",
42029
- margin: "0px 0px 10px 0px"
42030
- }
42031
- }, t("PT_AD_PENALTY")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
42032
- className: "field"
42033
- }, /*#__PURE__*/React.createElement(Dropdown, {
42034
- isMandatory: true,
42035
- option: Penality_menu,
42036
- optionKey: "title",
42037
- select: e => selectedValuesData("adhocPenaltyReason", true, e),
42038
- selected: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyReason_data) || "",
42039
- isPropertyAssess: true,
42040
- name: "adhocPenaltyReason_data",
42041
- t: t
42042
- }))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement("div", {
42043
- className: "field"
42044
- }, /*#__PURE__*/React.createElement(TextInput, _extends({
42045
- style: {
42046
- background: "#FAFAFA"
42047
- },
42048
- t: t,
42049
- type: "text",
42050
- isMandatory: false,
42051
- name: "adhocPenaltyComment",
42052
- value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyComment) || "",
42053
- onChange: e => selectedValuesData("adhocPenaltyComment", false, e)
42054
- }, validation = {
42055
- isRequired: true,
42056
- pattern: "^[a-zA-Z ]*$",
42057
- type: "text",
42058
- title: t("TL_NAME_ERROR_MESSAGE")
42059
- })))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
42060
- className: "field"
42061
- }, /*#__PURE__*/React.createElement(TextInput, _extends({
42062
- style: {
42063
- background: "#FAFAFA"
42064
- },
42065
- t: t,
42066
- type: "number",
42067
- isMandatory: false,
42068
- name: "adhocPenalty",
42069
- value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) || "",
42070
- onChange: e => selectedValuesData("adhocPenalty", false, e)
42071
- }, validation = {
42072
- isRequired: true,
42073
- pattern: "^[1-9]+[0-9]*$",
42074
- title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
42075
- }))))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
42076
- style: {
42077
- fontSize: "16px",
42078
- fontWeight: "700",
42079
- lineHeight: "18px",
42080
- padding: "0px",
42081
- margin: "0px 0px 10px 0px"
42082
- }
42083
- }, t("PT_AD_REBATE")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
42084
- className: "field"
42085
- }, /*#__PURE__*/React.createElement(Dropdown, {
42086
- isMandatory: true,
42087
- option: Rebate_menu,
42088
- optionKey: "title",
42089
- select: e => selectedValuesData("adhocRebateReason", true, e),
42090
- selected: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateReason_data) || "",
42091
- name: "adhocRebateReason_data",
42092
- isPropertyAssess: true,
42093
- t: t
42094
- }))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement(TextInput, _extends({
42095
- style: {
42096
- background: "#FAFAFA"
42097
- },
42098
- t: t,
42099
- type: "text",
42100
- isMandatory: false,
42101
- name: "adhocRebateComment",
42102
- value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateComment) || "",
42103
- onChange: e => selectedValuesData("adhocRebateComment", false, e)
42104
- }, validation = {
42105
- isRequired: true,
42106
- pattern: "^[a-zA-Z ]*$",
42107
- type: "text",
42108
- title: t("TL_NAME_ERROR_MESSAGE")
42109
- }))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
42110
- className: "field"
42111
- }, /*#__PURE__*/React.createElement(TextInput, _extends({
42112
- style: {
42113
- background: "#FAFAFA"
42114
- },
42115
- t: t,
42116
- type: "number",
42117
- isMandatory: false,
42118
- name: "adhocRebate",
42119
- value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebate) || "",
42120
- onChange: e => selectedValuesData("adhocRebate", false, e)
42121
- }, validation = {
42122
- isRequired: true,
42123
- pattern: "^[1-9]+[0-9]*$",
42124
- title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
42125
- }))))))), showToast && /*#__PURE__*/React.createElement(Toast, {
42126
- style: {
42127
- zIndex: "10000"
42128
- },
42129
- warning: showToast === null || showToast === void 0 ? void 0 : showToast.isWarning,
42130
- error: showToast !== null && showToast !== void 0 && showToast.isWarning ? false : true,
42131
- label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
42132
- onClose: closeToast,
42133
- isDleteBtn: true
42134
- })));
42135
- };
42136
-
42137
42770
  const EyeSvgINdex$1 = _ref => {
42138
42771
  let style = _ref.style;
42139
42772
  return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("svg", {
@@ -42185,203 +42818,6 @@ const InfoDetails = _ref2 => {
42185
42818
  }), " " + t(infoClickInfoLabel), /*#__PURE__*/React.createElement("div", null, " " + t(infoClickInfoLabel1)))));
42186
42819
  };
42187
42820
 
42188
- const ViewBreakup = _ref => {
42189
- var _wsAdditionalDetails$, _breakUpData$billSlab, _breakUpData$billSlab2, _breakUpData$billSlab3, _breakUpData$billSlab4, _breakUpData$billSlab5, _breakUpData$billSlab6;
42190
- let wsAdditionalDetails = _ref.wsAdditionalDetails;
42191
- const _useTranslation = useTranslation(),
42192
- t = _useTranslation.t;
42193
- const _useState = useState(false),
42194
- popup = _useState[0],
42195
- showPopUp = _useState[1];
42196
- const _useState2 = useState({}),
42197
- breakUpData = _useState2[0],
42198
- setBreakUpData = _useState2[1];
42199
- const Heading = props => {
42200
- return /*#__PURE__*/React.createElement("h1", {
42201
- className: "heading-m"
42202
- }, props.label);
42203
- };
42204
- const Close = () => /*#__PURE__*/React.createElement("svg", {
42205
- xmlns: "http://www.w3.org/2000/svg",
42206
- viewBox: "0 0 24 24",
42207
- fill: "#FFFFFF"
42208
- }, /*#__PURE__*/React.createElement("path", {
42209
- d: "M0 0h24v24H0V0z",
42210
- fill: "none"
42211
- }), /*#__PURE__*/React.createElement("path", {
42212
- d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
42213
- }));
42214
- const CloseBtn = props => {
42215
- return /*#__PURE__*/React.createElement("div", {
42216
- className: "icon-bg-secondary",
42217
- onClick: props.onClick
42218
- }, /*#__PURE__*/React.createElement(Close, null));
42219
- };
42220
- const onPopupOpen = () => {
42221
- var _sessionBillFormData$;
42222
- let breakupData = wsAdditionalDetails.additionalDetails.data || {};
42223
- const sessionBillData = sessionStorage.getItem("Digit.ADHOC_BILL_ADD_REBATE_DATA");
42224
- const sessionBillFormData = sessionBillData ? JSON.parse(sessionBillData) : {};
42225
- if (sessionBillFormData !== null && sessionBillFormData !== void 0 && (_sessionBillFormData$ = sessionBillFormData.value) !== null && _sessionBillFormData$ !== void 0 && _sessionBillFormData$.totalAmount) breakupData = sessionBillFormData === null || sessionBillFormData === void 0 ? void 0 : sessionBillFormData.value;
42226
- setBreakUpData(breakupData);
42227
- showPopUp(true);
42228
- };
42229
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
42230
- style: {
42231
- lineHeight: "19px",
42232
- maxWidth: "950px",
42233
- minWidth: "280px"
42234
- }
42235
- }, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isViewBreakup ? /*#__PURE__*/React.createElement("div", {
42236
- onClick: e => onPopupOpen(),
42237
- style: {
42238
- marginTop: "12px"
42239
- }
42240
- }, /*#__PURE__*/React.createElement("span", {
42241
- className: "add-details-link hover-button"
42242
- }, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
42243
- headerBarMain: /*#__PURE__*/React.createElement(Heading, {
42244
- label: t("WS_CALCULATION_BREAKUP")
42245
- }),
42246
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
42247
- onClick: () => {
42248
- showPopUp(false);
42249
- }
42250
- }),
42251
- hideSubmit: true,
42252
- popupStyles: {
42253
- overflowY: "auto"
42254
- },
42255
- headerBarMainStyle: {
42256
- marginBottom: "0px"
42257
- },
42258
- popupModuleMianStyles: {
42259
- paddingTop: "0px"
42260
- }
42261
- }, /*#__PURE__*/React.createElement(StatusTable, {
42262
- style: {
42263
- padding: "10px",
42264
- paddingTop: "0px"
42265
- }
42266
- }, /*#__PURE__*/React.createElement(CardSectionHeader, {
42267
- style: {
42268
- margin: "10px 0px"
42269
- }
42270
- }, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : (_breakUpData$billSlab2 = _breakUpData$billSlab.FEE) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.map(data => /*#__PURE__*/React.createElement(Row, {
42271
- className: "border-none",
42272
- rowContainerStyle: {
42273
- margin: "0px"
42274
- },
42275
- labelStyle: {
42276
- width: "50%"
42277
- },
42278
- key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
42279
- label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
42280
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
42281
- textStyle: {
42282
- textAlign: "right"
42283
- }
42284
- })), /*#__PURE__*/React.createElement("hr", {
42285
- style: {
42286
- color: "#cccccc",
42287
- backgroundColor: "#cccccc",
42288
- marginBottom: "10px"
42289
- }
42290
- }), /*#__PURE__*/React.createElement(Row, {
42291
- className: "border-none",
42292
- rowContainerStyle: {
42293
- margin: "0px"
42294
- },
42295
- labelStyle: {
42296
- width: "50%"
42297
- },
42298
- key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT1",
42299
- label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
42300
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.fee) || 0),
42301
- textStyle: {
42302
- textAlign: "right",
42303
- fontWeight: "700",
42304
- fontSize: "24px"
42305
- }
42306
- }), /*#__PURE__*/React.createElement(CardSectionHeader, {
42307
- style: {
42308
- margin: "10px 0px"
42309
- }
42310
- }, t("WS_SERVICE_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : (_breakUpData$billSlab4 = _breakUpData$billSlab3.CHARGES) === null || _breakUpData$billSlab4 === void 0 ? void 0 : _breakUpData$billSlab4.map(data => /*#__PURE__*/React.createElement(Row, {
42311
- className: "border-none",
42312
- rowContainerStyle: {
42313
- margin: "0px"
42314
- },
42315
- labelStyle: {
42316
- width: "50%"
42317
- },
42318
- key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
42319
- label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
42320
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
42321
- textStyle: {
42322
- textAlign: "right"
42323
- }
42324
- })), /*#__PURE__*/React.createElement("hr", {
42325
- style: {
42326
- color: "#cccccc",
42327
- backgroundColor: "#cccccc",
42328
- marginBottom: "10px"
42329
- }
42330
- }), /*#__PURE__*/React.createElement(Row, {
42331
- className: "border-none",
42332
- rowContainerStyle: {
42333
- margin: "0px"
42334
- },
42335
- labelStyle: {
42336
- width: "50%"
42337
- },
42338
- key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2",
42339
- label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
42340
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
42341
- textStyle: {
42342
- textAlign: "right",
42343
- fontWeight: "700",
42344
- fontSize: "24px"
42345
- }
42346
- }), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab5 = breakUpData.billSlabData) === null || _breakUpData$billSlab5 === void 0 ? void 0 : (_breakUpData$billSlab6 = _breakUpData$billSlab5.TAX) === null || _breakUpData$billSlab6 === void 0 ? void 0 : _breakUpData$billSlab6.map(data => /*#__PURE__*/React.createElement(Row, {
42347
- className: "border-none",
42348
- rowContainerStyle: {
42349
- margin: "0px"
42350
- },
42351
- labelStyle: {
42352
- width: "50%"
42353
- },
42354
- key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
42355
- label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
42356
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
42357
- textStyle: {
42358
- textAlign: "right"
42359
- }
42360
- })), /*#__PURE__*/React.createElement("hr", {
42361
- style: {
42362
- color: "#cccccc",
42363
- backgroundColor: "#cccccc",
42364
- marginBottom: "10px"
42365
- }
42366
- }), /*#__PURE__*/React.createElement(Row, {
42367
- className: "border-none",
42368
- rowContainerStyle: {
42369
- margin: "0px"
42370
- },
42371
- labelStyle: {
42372
- width: "50%"
42373
- },
42374
- key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT3",
42375
- label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
42376
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount) || 0),
42377
- textStyle: {
42378
- textAlign: "right",
42379
- fontWeight: "700",
42380
- fontSize: "24px"
42381
- }
42382
- })))));
42383
- };
42384
-
42385
42821
  const styles = {
42386
42822
  root: {
42387
42823
  width: "100%",
@@ -42657,36 +43093,65 @@ const DueVerification = _ref => {
42657
43093
  const _useState = useState(""),
42658
43094
  kno = _useState[0],
42659
43095
  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]);
43096
+ const _useState2 = useState(""),
43097
+ remarks = _useState2[0],
43098
+ setRemarks = _useState2[1];
43099
+ const _useState3 = useState([]),
43100
+ tableData = _useState3[0],
43101
+ setTableData = _useState3[1];
43102
+ const handleRemarkChange = React.useCallback((index, value) => {
43103
+ setTableData(prevData => {
43104
+ const newData = [...prevData];
43105
+ newData[index] = _extends({}, newData[index], {
43106
+ remarks: value
43107
+ });
43108
+ if (applicationData) {
43109
+ applicationData.dueVerification = newData;
43110
+ }
43111
+ return newData;
43112
+ });
43113
+ }, [applicationData]);
43114
+ const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION";
43115
+ const columns = useMemo(() => {
43116
+ const baseColumns = [{
43117
+ Header: t("K No."),
43118
+ accessor: "kno"
43119
+ }, {
43120
+ Header: t("Full Name"),
43121
+ accessor: "fullName"
43122
+ }, {
43123
+ Header: t("Full Address"),
43124
+ accessor: "fullAddress"
43125
+ }, {
43126
+ Header: t("Due Amount"),
43127
+ accessor: "dueAmount"
43128
+ }, {
43129
+ Header: t("Total Amount"),
43130
+ accessor: "totalAmount"
43131
+ }];
43132
+ if (isPendingApproval) {
43133
+ baseColumns.push({
43134
+ Header: t("Remarks"),
43135
+ accessor: "remarks",
43136
+ Cell: _ref2 => {
43137
+ let row = _ref2.row,
43138
+ value = _ref2.value;
43139
+ return /*#__PURE__*/React.createElement(TextInput, {
43140
+ style: {
43141
+ marginBottom: "0px",
43142
+ minWidth: "150px"
43143
+ },
43144
+ value: value || "",
43145
+ onChange: e => handleRemarkChange(row.index, e.target.value)
43146
+ });
43147
+ }
43148
+ });
43149
+ }
43150
+ return baseColumns;
43151
+ }, [t, handleRemarkChange, isPendingApproval]);
42679
43152
  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)) {
43153
+ if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
42688
43154
  setTableData(applicationData.dueVerification);
42689
- sessionStorage.setItem("Digit.DUE_VERIFICATION_DATA", JSON.stringify(applicationData.dueVerification));
42690
43155
  }
42691
43156
  }, [applicationData]);
42692
43157
  const handleAdd = () => {
@@ -42696,12 +43161,16 @@ const DueVerification = _ref => {
42696
43161
  fullName: "John Doe",
42697
43162
  fullAddress: "123 Main St, New Delhi, Delhi 110001",
42698
43163
  dueAmount: "1500",
42699
- totalAmount: "1500"
43164
+ totalAmount: "1500",
43165
+ remarks: remarks
42700
43166
  };
42701
43167
  const newTableData = [...tableData, mockData];
42702
43168
  setTableData(newTableData);
42703
- sessionStorage.setItem("Digit.DUE_VERIFICATION_DATA", JSON.stringify(newTableData));
43169
+ if (applicationData) {
43170
+ applicationData.dueVerification = newTableData;
43171
+ }
42704
43172
  setKno("");
43173
+ setRemarks("");
42705
43174
  }
42706
43175
  };
42707
43176
  return /*#__PURE__*/React.createElement("div", {
@@ -42783,7 +43252,8 @@ const DueVerification = _ref => {
42783
43252
  })));
42784
43253
  };
42785
43254
 
42786
- const InspectionInformation = () => {
43255
+ const InspectionInformation = _ref => {
43256
+ let applicationData = _ref.applicationData;
42787
43257
  const _useTranslation = useTranslation(),
42788
43258
  t = _useTranslation.t;
42789
43259
  const _useState = useState(null),
@@ -42795,9 +43265,37 @@ const InspectionInformation = () => {
42795
43265
  const _useState3 = useState(""),
42796
43266
  inspectorName = _useState3[0],
42797
43267
  setInspectorName = _useState3[1];
43268
+ useEffect(() => {
43269
+ const savedData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
43270
+ if (savedData) {
43271
+ try {
43272
+ const parsed = JSON.parse(savedData);
43273
+ setInspectionType(parsed.inspectionType || null);
43274
+ setInspectionDate(parsed.inspectionDate || "");
43275
+ setInspectorName(parsed.inspectorName || "");
43276
+ } catch (e) {
43277
+ console.error("Error parsing inspection information data", e);
43278
+ }
43279
+ } else if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
43280
+ setInspectionType(applicationData.inspectionInformation.inspectionType || null);
43281
+ setInspectionDate(applicationData.inspectionInformation.inspectionDate || "");
43282
+ setInspectorName(applicationData.inspectionInformation.inspectorName || "");
43283
+ sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify(applicationData.inspectionInformation));
43284
+ }
43285
+ }, [applicationData]);
43286
+ useEffect(() => {
43287
+ sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify({
43288
+ inspectionType,
43289
+ inspectionDate,
43290
+ inspectorName
43291
+ }));
43292
+ }, [inspectionType, inspectionDate, inspectorName]);
42798
43293
  const inspectionTypeOptions = [{
42799
- name: "Select",
43294
+ i18nKey: "ES_COMMON_SELECT",
42800
43295
  code: ""
43296
+ }, {
43297
+ i18nKey: "New Connection Visit",
43298
+ code: "new_connection_visit"
42801
43299
  }];
42802
43300
  return /*#__PURE__*/React.createElement("div", {
42803
43301
  style: {
@@ -42833,7 +43331,7 @@ const InspectionInformation = () => {
42833
43331
  }
42834
43332
  }, "*")), /*#__PURE__*/React.createElement(Dropdown, {
42835
43333
  option: inspectionTypeOptions,
42836
- optionKey: "name",
43334
+ optionKey: "i18nKey",
42837
43335
  id: "inspectionType",
42838
43336
  selected: inspectionType,
42839
43337
  select: setInspectionType,
@@ -43808,6 +44306,14 @@ const ApplicationDetails = props => {
43808
44306
  function onActionSelect(action) {
43809
44307
  sessionStorage.setItem("SELECTED_ACTION", action === null || action === void 0 ? void 0 : action.action);
43810
44308
  if (action) {
44309
+ 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)) {
44310
+ if (window.location.href.includes("/employee")) {
44311
+ history.push("/digit-ui/employee/payment/collect/" + businessService + "/" + applicationNumber + "?tenantId=" + tenantId);
44312
+ } else {
44313
+ history.push("/digit-ui/citizen/payment/my-bills/" + businessService + "/" + applicationNumber + "?tenantId=" + tenantId);
44314
+ }
44315
+ return;
44316
+ }
43811
44317
  if (action !== null && action !== void 0 && action.isToast) {
43812
44318
  setShowToast({
43813
44319
  key: "error",
@@ -45141,11 +45647,7 @@ const ActivateConnection = () => {
45141
45647
  if (isEnableLoader || isLoading || isappdetailsLoading) {
45142
45648
  return /*#__PURE__*/React.createElement(Loader, null);
45143
45649
  }
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, {
45650
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormComposer, {
45149
45651
  config: config.body,
45150
45652
  userType: "employee",
45151
45653
  defaultValues: defaultValues,
@@ -45517,7 +46019,7 @@ const EditApplication$1 = () => {
45517
46019
  propertyIds: propertyId
45518
46020
  },
45519
46021
  tenantId: tenantId,
45520
- enabled: propertyId && propertyId != "" ? true : false,
46022
+ enabled: propertyId && propertyId !== "" ? true : false,
45521
46023
  privacy: Digit.Utils.getPrivacyObject()
45522
46024
  }),
45523
46025
  propertyDetails = _Digit$Hooks$pt$usePr.data;
@@ -45584,7 +46086,7 @@ const EditApplication$1 = () => {
45584
46086
  if (!lodash.isEqual(sessionFormData, formData)) {
45585
46087
  setSessionFormData(_extends({}, sessionFormData, formData));
45586
46088
  }
45587
- if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length == 1 && formState.errors["owners"] && Object.values(formState.errors["owners"].type).filter(ob => ob.type === "required").length == 0 && !(formData !== null && formData !== void 0 && (_formData$cpt = formData.cpt) !== null && _formData$cpt !== void 0 && (_formData$cpt$details = _formData$cpt.details) !== null && _formData$cpt$details !== void 0 && _formData$cpt$details.propertyId)) setSubmitValve(true);else setSubmitValve(!Object.keys(formState.errors).length);
46089
+ if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length === 1 && formState.errors["owners"] && Object.values(formState.errors["owners"].type).filter(ob => ob.type === "required").length === 0 && !(formData !== null && formData !== void 0 && (_formData$cpt = formData.cpt) !== null && _formData$cpt !== void 0 && (_formData$cpt$details = _formData$cpt.details) !== null && _formData$cpt$details !== void 0 && _formData$cpt$details.propertyId)) setSubmitValve(true);else setSubmitValve(!Object.keys(formState.errors).length);
45588
46090
  };
45589
46091
  const onSubmit = function (data) {
45590
46092
  try {
@@ -45601,7 +46103,7 @@ const EditApplication$1 = () => {
45601
46103
  const details = sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS") ? JSON.parse(sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS")) : {};
45602
46104
  return Promise.resolve(convertEditApplicationDetails(data, details, actionData)).then(function (convertAppData) {
45603
46105
  var _data$ConnectionDetai, _data$ConnectionDetai2, _details$processInsta, _details$processInsta2, _details$processInsta3, _details$processInsta4;
45604
- const reqDetails = (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai = data.ConnectionDetails) === null || _data$ConnectionDetai === void 0 ? void 0 : (_data$ConnectionDetai2 = _data$ConnectionDetai[0]) === null || _data$ConnectionDetai2 === void 0 ? void 0 : _data$ConnectionDetai2.serviceName) == "WATER" ? {
46106
+ const reqDetails = (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai = data.ConnectionDetails) === null || _data$ConnectionDetai === void 0 ? void 0 : (_data$ConnectionDetai2 = _data$ConnectionDetai[0]) === null || _data$ConnectionDetai2 === void 0 ? void 0 : _data$ConnectionDetai2.serviceName) === "WATER" ? {
45605
46107
  WaterConnection: convertAppData
45606
46108
  } : {
45607
46109
  SewerageConnection: convertAppData
@@ -45615,7 +46117,6 @@ const EditApplication$1 = () => {
45615
46117
  key: "error",
45616
46118
  message: error !== null && error !== void 0 && error.message ? error.message : error
45617
46119
  });
45618
- setTimeout(closeToastOfError, 5000);
45619
46120
  setSubmitValve(true);
45620
46121
  },
45621
46122
  onSuccess: (data, variables) => {
@@ -45647,7 +46148,6 @@ const EditApplication$1 = () => {
45647
46148
  if (enabledLoader || isConfigLoading) {
45648
46149
  return /*#__PURE__*/React.createElement(Loader, null);
45649
46150
  }
45650
- console.log(config.body);
45651
46151
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
45652
46152
  className: "employee-form-content"
45653
46153
  }, /*#__PURE__*/React.createElement(FormComposer, {
@@ -48363,7 +48863,7 @@ const BulkBillGeneration = _ref => {
48363
48863
  }));
48364
48864
  };
48365
48865
 
48366
- const ActionButton = _ref => {
48866
+ const ActionButton$1 = _ref => {
48367
48867
  let onClick = _ref.onClick;
48368
48868
  return /*#__PURE__*/React.createElement(LinkButton, {
48369
48869
  label: /*#__PURE__*/React.createElement(EditIcon, {
@@ -48482,7 +48982,7 @@ const CheckPage$4 = _ref2 => {
48482
48982
  }, /*#__PURE__*/React.createElement(Row, {
48483
48983
  label: t("WS_PROPERTY_ID_LABEL"),
48484
48984
  text: "" + t(checkForNA(cpt === null || cpt === void 0 ? void 0 : cpt.propertyId)),
48485
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
48985
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48486
48986
  onClick: onEdit
48487
48987
  })
48488
48988
  })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement(StatusTable, {
@@ -48493,7 +48993,7 @@ const CheckPage$4 = _ref2 => {
48493
48993
  }, /*#__PURE__*/React.createElement(Row, {
48494
48994
  label: t("WS_SERVICE_TYPE"),
48495
48995
  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, {
48996
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48497
48997
  onClick: onEdit
48498
48998
  })
48499
48999
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48540,7 +49040,7 @@ const CheckPage$4 = _ref2 => {
48540
49040
  }, /*#__PURE__*/React.createElement(Row, {
48541
49041
  label: t("WS_OWN_DETAIL_NAME"),
48542
49042
  text: "" + t(checkForNA((_holderDetails = holderDetails) === null || _holderDetails === void 0 ? void 0 : _holderDetails.name)),
48543
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
49043
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48544
49044
  onClick: onEdit
48545
49045
  })
48546
49046
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48575,7 +49075,7 @@ const CheckPage$4 = _ref2 => {
48575
49075
  }, /*#__PURE__*/React.createElement(Row, {
48576
49076
  label: t("WS_ZRO_LOCATION"),
48577
49077
  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, {
49078
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48579
49079
  onClick: onEdit
48580
49080
  })
48581
49081
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48640,7 +49140,7 @@ const CheckPage$4 = _ref2 => {
48640
49140
  }, /*#__PURE__*/React.createElement(Row, {
48641
49141
  label: t("WS_CATEGORY_TYPE"),
48642
49142
  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, {
49143
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48644
49144
  onClick: onEdit
48645
49145
  })
48646
49146
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48675,7 +49175,7 @@ const CheckPage$4 = _ref2 => {
48675
49175
  }, /*#__PURE__*/React.createElement(Row, {
48676
49176
  label: t("WS_DJB_EMPLOYEE"),
48677
49177
  text: "" + (djbEmployee !== null && djbEmployee !== void 0 && djbEmployee.isDjbEmployee ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")),
48678
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
49178
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48679
49179
  onClick: onEdit
48680
49180
  })
48681
49181
  }), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
@@ -48695,7 +49195,7 @@ const CheckPage$4 = _ref2 => {
48695
49195
  }, /*#__PURE__*/React.createElement(Row, {
48696
49196
  label: t("WS_NAME_OF_BANK"),
48697
49197
  text: "" + t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName)),
48698
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
49198
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48699
49199
  onClick: onEdit
48700
49200
  })
48701
49201
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48719,7 +49219,7 @@ const CheckPage$4 = _ref2 => {
48719
49219
  }, /*#__PURE__*/React.createElement(Row, {
48720
49220
  label: t("" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll(".", "_"))),
48721
49221
  text: checkForNA(doc === null || doc === void 0 ? void 0 : doc.documentUid),
48722
- actionButton: index === 0 ? /*#__PURE__*/React.createElement(ActionButton, {
49222
+ actionButton: index === 0 ? /*#__PURE__*/React.createElement(ActionButton$1, {
48723
49223
  onClick: onEdit
48724
49224
  }) : null
48725
49225
  }), /*#__PURE__*/React.createElement(Row, {
@@ -48742,7 +49242,7 @@ const CheckPage$4 = _ref2 => {
48742
49242
  }, /*#__PURE__*/React.createElement(Row, {
48743
49243
  label: t("WS_SUBMITTED_BY"),
48744
49244
  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, {
49245
+ actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
48746
49246
  onClick: onEdit
48747
49247
  })
48748
49248
  }), ((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, {
@@ -48924,7 +49424,11 @@ const OLDApplication = () => {
48924
49424
  key: "propertyAddress",
48925
49425
  component: "WSPropertyLocationDetails",
48926
49426
  withoutLabel: true,
48927
- isAutomaticFill: true
49427
+ isAutomaticFill: true,
49428
+ texts: {
49429
+ header: "PT_LOCATION_DETAILS " + t("(Automatic Fill by Property)")
49430
+ },
49431
+ defaultOpen: false
48928
49432
  }]
48929
49433
  });
48930
49434
  } else if (compName === "PropertyWaterConnection") {
@@ -49009,9 +49513,6 @@ const OLDApplication = () => {
49009
49513
  sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
49010
49514
  }
49011
49515
  };
49012
- const closeToastOfError = () => {
49013
- setShowToast(null);
49014
- };
49015
49516
  const onFormSubmit = data => {
49016
49517
  var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$keys, _formStateErros$Conne2;
49017
49518
  if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
@@ -49196,7 +49697,6 @@ const OLDApplication = () => {
49196
49697
  key: "error",
49197
49698
  message: (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : (_error$response$data$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : (_error$response$data$2 = _error$response$data$[0]) === null || _error$response$data$2 === void 0 ? void 0 : _error$response$data$2.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
49198
49699
  });
49199
- setTimeout(closeToastOfError, 5000);
49200
49700
  },
49201
49701
  onSuccess: function (waterData) {
49202
49702
  try {
@@ -49215,7 +49715,6 @@ const OLDApplication = () => {
49215
49715
  key: "error",
49216
49716
  message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : (_error$response2$data3 = _error$response2$data2[0]) === null || _error$response2$data3 === void 0 ? void 0 : _error$response2$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
49217
49717
  });
49218
- setTimeout(closeToastOfError, 5000);
49219
49718
  },
49220
49719
  onSuccess: function (waterUpdateData) {
49221
49720
  try {
@@ -49227,7 +49726,6 @@ const OLDApplication = () => {
49227
49726
  key: "error",
49228
49727
  message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
49229
49728
  });
49230
- setTimeout(closeToastOfError, 5000);
49231
49729
  },
49232
49730
  onSuccess: function (sewerageData) {
49233
49731
  try {
@@ -49246,7 +49744,6 @@ const OLDApplication = () => {
49246
49744
  key: "error",
49247
49745
  message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : (_error$response4$data3 = _error$response4$data2[0]) === null || _error$response4$data3 === void 0 ? void 0 : _error$response4$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
49248
49746
  });
49249
- setTimeout(closeToastOfError, 5000);
49250
49747
  },
49251
49748
  onSuccess: function (sewerageUpdateData) {
49252
49749
  try {
@@ -49294,7 +49791,6 @@ const OLDApplication = () => {
49294
49791
  key: "error",
49295
49792
  message: (error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : (_error$response5$data2 = _error$response5$data.Errors) === null || _error$response5$data2 === void 0 ? void 0 : (_error$response5$data3 = _error$response5$data2[0]) === null || _error$response5$data3 === void 0 ? void 0 : _error$response5$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
49296
49793
  });
49297
- setTimeout(closeToastOfError, 5000);
49298
49794
  },
49299
49795
  onSuccess: function (data) {
49300
49796
  try {
@@ -49312,7 +49808,6 @@ const OLDApplication = () => {
49312
49808
  key: "error",
49313
49809
  message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : (_error$response6$data3 = _error$response6$data2[0]) === null || _error$response6$data3 === void 0 ? void 0 : _error$response6$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
49314
49810
  });
49315
- setTimeout(closeToastOfError, 5000);
49316
49811
  },
49317
49812
  onSuccess: data => {
49318
49813
  var _data$WaterConnection2, _data$WaterConnection3;
@@ -49344,7 +49839,6 @@ const OLDApplication = () => {
49344
49839
  key: "error",
49345
49840
  message: (error === null || error === void 0 ? void 0 : (_error$response7 = error.response) === null || _error$response7 === void 0 ? void 0 : (_error$response7$data = _error$response7.data) === null || _error$response7$data === void 0 ? void 0 : (_error$response7$data2 = _error$response7$data.Errors) === null || _error$response7$data2 === void 0 ? void 0 : (_error$response7$data3 = _error$response7$data2[0]) === null || _error$response7$data3 === void 0 ? void 0 : _error$response7$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
49346
49841
  });
49347
- setTimeout(closeToastOfError, 5000);
49348
49842
  },
49349
49843
  onSuccess: function (data) {
49350
49844
  try {
@@ -49362,7 +49856,6 @@ const OLDApplication = () => {
49362
49856
  key: "error",
49363
49857
  message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : (_error$response8$data3 = _error$response8$data2[0]) === null || _error$response8$data3 === void 0 ? void 0 : _error$response8$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
49364
49858
  });
49365
- setTimeout(closeToastOfError, 5000);
49366
49859
  },
49367
49860
  onSuccess: data => {
49368
49861
  var _data$SewerageConnect2, _data$SewerageConnect3;
@@ -49430,6 +49923,7 @@ const OLDApplication = () => {
49430
49923
  cardFormWrapperClassName: "new-application-card"
49431
49924
  }), showToast && /*#__PURE__*/React.createElement(Toast, {
49432
49925
  isDleteBtn: true,
49926
+ duration: 5000,
49433
49927
  error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? true : false,
49434
49928
  warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
49435
49929
  label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),