@djb25/digit-ui-module-ws 1.0.55 → 1.0.57

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, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, LayoutWrapper, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, DatePicker, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, WrapUnMaskComponent, MobileNumber, CheckBox, StatusTable, Row, Header, CardSectionHeader, InfoIcon, TextArea, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, AddIcon, CheckPoint, ConnectingCheckPoints, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
4
+ import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, LayoutWrapper, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, DatePicker, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, WrapUnMaskComponent, MobileNumber, StatusTable, Row, Header, CardSectionHeader, InfoIcon, TextArea, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$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';
@@ -1870,7 +1870,8 @@ const WSCalculationPayload = (data, tenantId) => {
1870
1870
  numberOfFloors: useDetails !== null && useDetails !== void 0 && (_useDetails$noOfFloor = useDetails.noOfFloors) !== null && _useDetails$noOfFloor !== void 0 && _useDetails$noOfFloor.code ? Number(useDetails.noOfFloors.code) : 0,
1871
1871
  numberOfStudents: useDetails !== null && useDetails !== void 0 && useDetails.numberOfStudents ? Number(useDetails.numberOfStudents) : 0,
1872
1872
  numberOfBeds: useDetails !== null && useDetails !== void 0 && useDetails.numberOfBeds ? Number(useDetails.numberOfBeds) : 0,
1873
- servantQuarterArea: useDetails !== null && useDetails !== void 0 && useDetails.servantQuarterArea ? Number(useDetails.servantQuarterArea) : 0
1873
+ servantQuarterArea: useDetails !== null && useDetails !== void 0 && useDetails.servantQuarterArea ? Number(useDetails.servantQuarterArea) : 0,
1874
+ is12ABCertificate: useDetails !== null && useDetails !== void 0 && useDetails.is12ABCertificate ? true : false
1874
1875
  };
1875
1876
  if (useDetails !== null && useDetails !== void 0 && useDetails.NumberofRooms) payload.numberOfRooms = Number(useDetails.NumberofRooms);
1876
1877
  if (useDetails !== null && useDetails !== void 0 && useDetails.NumberofDwellingUnits) payload.numberOfDwellingUnits = Number(useDetails.NumberofDwellingUnits);
@@ -9645,7 +9646,7 @@ const colonyNameOptions = [{
9645
9646
  const NUMBER_PATTERN = /^\d+$/;
9646
9647
  const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
9647
9648
  const WSCalculation = _ref => {
9648
- var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
9649
+ var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _formValue$useDetails3, _formValue$useDetails4, _formValue$useDetails5, _formValue$useDetails6, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
9649
9650
  let config = _ref.config,
9650
9651
  onSelect = _ref.onSelect,
9651
9652
  formData = _ref.formData,
@@ -9666,7 +9667,8 @@ const WSCalculation = _ref => {
9666
9667
  numberOfBeds: "",
9667
9668
  numberOfStudents: "",
9668
9669
  servantQuarterArea: "",
9669
- colonyName: ""
9670
+ colonyName: "",
9671
+ is12ABCertificate: false
9670
9672
  }
9671
9673
  }
9672
9674
  }),
@@ -9717,7 +9719,7 @@ const WSCalculation = _ref => {
9717
9719
  const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
9718
9720
  const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
9719
9721
  const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
9720
- const isDwellingUnit = (watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : watchPropertyCategory.code) === "RESIDENTIAL" || (watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : watchPropertyCategory.code) === "RESIDENTIAL";
9722
+ const isDwellingUnit = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "Apartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "FlatOrApartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "IndividualHouse";
9721
9723
  const isServentHouse = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "Apartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "FlatOrApartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "IndividualHouse";
9722
9724
  const categoryOptions = useMemo(() => {
9723
9725
  var _ptServicesMastersDat, _ptServicesMastersDat2;
@@ -9825,6 +9827,7 @@ const WSCalculation = _ref => {
9825
9827
  setValue("useDetails.numberOfStudents", "");
9826
9828
  setValue("useDetails.servantQuarterArea", "");
9827
9829
  setValue("useDetails.colonyName", "");
9830
+ setValue("useDetails.is12ABCertificate", false);
9828
9831
  }
9829
9832
  }, [formData === null || formData === void 0 ? void 0 : (_formData$cpt2 = formData.cpt) === null || _formData$cpt2 === void 0 ? void 0 : _formData$cpt2.details, formData === null || formData === void 0 ? void 0 : formData.cpt, categoryOptions, propertyTypeOptions, usageTypeOptions, categoryTypeList, setValue]);
9830
9833
  const lastErrorState = React.useRef(null);
@@ -10264,7 +10267,7 @@ const WSCalculation = _ref => {
10264
10267
  name: "useDetails.plotArea"
10265
10268
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails6 = errors.useDetails) === null || _errors$useDetails6 === void 0 ? void 0 : _errors$useDetails6.plotArea) && /*#__PURE__*/React.createElement(CardLabelError, {
10266
10269
  style: errorStyle
10267
- }, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React.createElement("div", {
10270
+ }, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React.createElement("div", {
10268
10271
  className: "form-field"
10269
10272
  }, /*#__PURE__*/React.createElement(TextInput, {
10270
10273
  t: t,
@@ -10277,7 +10280,7 @@ const WSCalculation = _ref => {
10277
10280
  name: "useDetails.builtUpArea"
10278
10281
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails7 = errors.useDetails) === null || _errors$useDetails7 === void 0 ? void 0 : _errors$useDetails7.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
10279
10282
  style: errorStyle
10280
- }, errors.useDetails.builtUpArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React.createElement("div", {
10283
+ }, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React.createElement("div", {
10281
10284
  className: "form-field"
10282
10285
  }, /*#__PURE__*/React.createElement(TextInput, {
10283
10286
  t: t,
@@ -10285,12 +10288,25 @@ const WSCalculation = _ref => {
10285
10288
  pattern: {
10286
10289
  value: DECIMAL_PATTERN,
10287
10290
  message: t("ERR_INVALID_DECIMAL")
10291
+ },
10292
+ validate: value => {
10293
+ var _formValue$useDetails, _formValue$useDetails2;
10294
+ if (formValue !== null && formValue !== void 0 && (_formValue$useDetails = formValue.useDetails) !== null && _formValue$useDetails !== void 0 && _formValue$useDetails.builtUpArea && parseFloat(value) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea)) {
10295
+ return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
10296
+ }
10288
10297
  }
10289
10298
  }),
10290
10299
  name: "useDetails.farArea"
10291
10300
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React.createElement(CardLabelError, {
10292
10301
  style: errorStyle
10293
- }, errors.useDetails.farArea.message), isDwellingUnit ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_NUMBER_OF_DWELLING_UNITS")), /*#__PURE__*/React.createElement("div", {
10302
+ }, errors.useDetails.farArea.message), (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.farArea) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.builtUpArea) && parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.farArea) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails6 = formValue.useDetails) === null || _formValue$useDetails6 === void 0 ? void 0 : _formValue$useDetails6.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
10303
+ style: {
10304
+ width: "70%",
10305
+ marginLeft: "30%",
10306
+ fontSize: "12px",
10307
+ marginTop: "5px"
10308
+ }
10309
+ }, t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA"))), isDwellingUnit ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_NUMBER_OF_DWELLING_UNITS")), /*#__PURE__*/React.createElement("div", {
10294
10310
  className: "form-field"
10295
10311
  }, /*#__PURE__*/React.createElement(TextInput, {
10296
10312
  t: t,
@@ -10357,7 +10373,21 @@ const WSCalculation = _ref => {
10357
10373
  name: "useDetails.servantQuarterArea"
10358
10374
  }))) : null, isServentHouse && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails11 = errors.useDetails) === null || _errors$useDetails11 === void 0 ? void 0 : _errors$useDetails11.servantQuarterArea) && /*#__PURE__*/React.createElement(CardLabelError, {
10359
10375
  style: errorStyle
10360
- }, errors.useDetails.servantQuarterArea.message))), /*#__PURE__*/React.createElement("div", {
10376
+ }, errors.useDetails.servantQuarterArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
10377
+ className: "form-field"
10378
+ }, /*#__PURE__*/React.createElement(Controller, {
10379
+ control: control,
10380
+ name: "useDetails.is12ABCertificate",
10381
+ render: _ref3 => {
10382
+ let value = _ref3.value,
10383
+ onChange = _ref3.onChange;
10384
+ return /*#__PURE__*/React.createElement(CheckBox, {
10385
+ checked: value,
10386
+ onChange: e => onChange(e.target.checked),
10387
+ label: t("WS_12_AB_CERTIFICATE_LABEL")
10388
+ });
10389
+ }
10390
+ }))))), /*#__PURE__*/React.createElement("div", {
10361
10391
  style: {
10362
10392
  display: "flex",
10363
10393
  marginTop: "24px",
@@ -10833,7 +10863,7 @@ const BILLSBreadCrumbs = _ref => {
10833
10863
  }), /*#__PURE__*/React.createElement(ModuleHeader, {
10834
10864
  leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
10835
10865
  className: "icon"
10836
- }), "Back"),
10866
+ }), t("CS_COMMON_BACK")),
10837
10867
  onLeftClick: () => window.history.back(),
10838
10868
  breadcrumbs: getDynamicBreadcrumbs()
10839
10869
  }));
@@ -15124,7 +15154,7 @@ const WSActivationConnectionDetails = _ref => {
15124
15154
  }, commonProps)))));
15125
15155
  };
15126
15156
  const ConnectionDetails$2 = _props => {
15127
- var _errors$connectionTyp2, _errors$waterSource2, _errors$sourceSubData2, _errors$pipeSize2, _errors$noOfTaps2, _errors$noOfWaterClos2, _errors$noOfToilets2;
15157
+ var _errors$connectionTyp2, _errors$connectionTyp3, _errors$waterSource2, _errors$waterSource3, _errors$sourceSubData2, _errors$sourceSubData3, _errors$pipeSize2, _errors$pipeSize3, _errors$noOfTaps2, _errors$noOfTaps3, _errors$noOfWaterClos2, _errors$noOfWaterClos3, _errors$noOfToilets2, _errors$noOfToilets3;
15128
15158
  const connectionDetail = _props.connectionDetail,
15129
15159
  focusIndex = _props.focusIndex,
15130
15160
  setFocusIndex = _props.setFocusIndex,
@@ -15191,35 +15221,17 @@ const ConnectionDetails$2 = _props => {
15191
15221
  }
15192
15222
  }, [errors]);
15193
15223
  const errorStyle = {
15194
- width: "70%",
15195
- marginLeft: "30%",
15224
+ width: "100%",
15225
+ marginLeft: "0px",
15196
15226
  fontSize: "12px",
15197
15227
  marginTop: "-21px"
15198
15228
  };
15199
- return /*#__PURE__*/React.createElement("div", {
15200
- className: "formcomposer-section-grid"
15201
- }, !window.location.href.includes("by-config") && !window.location.href.includes("ws/modify-application") ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15202
- style: isMobile && isEmployee ? {
15203
- fontWeight: "700",
15204
- width: "100%"
15205
- } : {
15206
- fontWeight: "700"
15207
- },
15208
- className: "card-label-smaller"
15209
- }, t("WS_ACK_COMMON_APP_NO_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15229
+ return /*#__PURE__*/React.createElement(React.Fragment, null, !window.location.href.includes("by-config") && !window.location.href.includes("ws/modify-application") ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_ACK_COMMON_APP_NO_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15210
15230
  className: "field"
15211
15231
  }, /*#__PURE__*/React.createElement(TextInput, {
15212
15232
  disabled: true,
15213
15233
  value: filters === null || filters === void 0 ? void 0 : filters.applicationNumber
15214
- }))) : null, (filters === null || filters === void 0 ? void 0 : filters.service) === "WATER" ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15215
- style: isMobile && isEmployee ? {
15216
- fontWeight: "700",
15217
- width: "100%"
15218
- } : {
15219
- fontWeight: "700"
15220
- },
15221
- className: "card-label-smaller"
15222
- }, t("WS_SERV_DETAIL_CONN_TYPE") + "*"), /*#__PURE__*/React.createElement(Controller, {
15234
+ }))) : null, (filters === null || filters === void 0 ? void 0 : filters.service) === "WATER" ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SERV_DETAIL_CONN_TYPE") + "*"), /*#__PURE__*/React.createElement(Controller, {
15223
15235
  control: control,
15224
15236
  name: "connectionType",
15225
15237
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.connectionType,
@@ -15243,17 +15255,9 @@ const ConnectionDetails$2 = _props => {
15243
15255
  t: t
15244
15256
  });
15245
15257
  }
15246
- })), localFormState.touched.connectionType ? /*#__PURE__*/React.createElement(CardLabelError, {
15258
+ }), localFormState.touched.connectionType && errors !== null && errors !== void 0 && (_errors$connectionTyp2 = errors.connectionType) !== null && _errors$connectionTyp2 !== void 0 && _errors$connectionTyp2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15247
15259
  style: errorStyle
15248
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$connectionTyp2 = errors.connectionType) === null || _errors$connectionTyp2 === void 0 ? void 0 : _errors$connectionTyp2.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15249
- style: isMobile && isEmployee ? {
15250
- fontWeight: "700",
15251
- width: "100%"
15252
- } : {
15253
- fontWeight: "700"
15254
- },
15255
- className: "card-label-smaller"
15256
- }, t("WS_SERV_DETAIL_WATER_SOURCE") + "*"), /*#__PURE__*/React.createElement(Controller, {
15260
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$connectionTyp3 = errors.connectionType) === null || _errors$connectionTyp3 === void 0 ? void 0 : _errors$connectionTyp3.message) : null), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SERV_DETAIL_WATER_SOURCE") + "*"), /*#__PURE__*/React.createElement(Controller, {
15257
15261
  control: control,
15258
15262
  name: "waterSource",
15259
15263
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterSource,
@@ -15293,17 +15297,9 @@ const ConnectionDetails$2 = _props => {
15293
15297
  t: t
15294
15298
  });
15295
15299
  }
15296
- })), localFormState.touched.waterSource ? /*#__PURE__*/React.createElement(CardLabelError, {
15300
+ }), localFormState.touched.waterSource && errors !== null && errors !== void 0 && (_errors$waterSource2 = errors.waterSource) !== null && _errors$waterSource2 !== void 0 && _errors$waterSource2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15297
15301
  style: errorStyle
15298
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$waterSource2 = errors.waterSource) === null || _errors$waterSource2 === void 0 ? void 0 : _errors$waterSource2.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15299
- style: isMobile && isEmployee ? {
15300
- fontWeight: "700",
15301
- width: "100%"
15302
- } : {
15303
- fontWeight: "700"
15304
- },
15305
- className: "card-label-smaller"
15306
- }, t("WS_SERV_DETAIL_WATER_SUB_SOURCE") + "*"), /*#__PURE__*/React.createElement(Controller, {
15302
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$waterSource3 = errors.waterSource) === null || _errors$waterSource3 === void 0 ? void 0 : _errors$waterSource3.message) : null), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SERV_DETAIL_WATER_SUB_SOURCE") + "*"), /*#__PURE__*/React.createElement(Controller, {
15307
15303
  control: control,
15308
15304
  name: "sourceSubData",
15309
15305
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.sourceSubData,
@@ -15327,17 +15323,9 @@ const ConnectionDetails$2 = _props => {
15327
15323
  t: t
15328
15324
  });
15329
15325
  }
15330
- })), localFormState.touched.sourceSubData ? /*#__PURE__*/React.createElement(CardLabelError, {
15326
+ }), localFormState.touched.sourceSubData && errors !== null && errors !== void 0 && (_errors$sourceSubData2 = errors.sourceSubData) !== null && _errors$sourceSubData2 !== void 0 && _errors$sourceSubData2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15331
15327
  style: errorStyle
15332
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$sourceSubData2 = errors.sourceSubData) === null || _errors$sourceSubData2 === void 0 ? void 0 : _errors$sourceSubData2.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15333
- style: isMobile && isEmployee ? {
15334
- fontWeight: "700",
15335
- width: "100%"
15336
- } : {
15337
- fontWeight: "700"
15338
- },
15339
- className: "card-label-smaller"
15340
- }, t("WS_PIPE_SIZE_IN_INCHES_LABEL") + "*"), /*#__PURE__*/React.createElement(Controller, {
15328
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$sourceSubData3 = errors.sourceSubData) === null || _errors$sourceSubData3 === void 0 ? void 0 : _errors$sourceSubData3.message) : null), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_PIPE_SIZE_IN_INCHES_LABEL") + "*"), /*#__PURE__*/React.createElement(Controller, {
15341
15329
  control: control,
15342
15330
  name: "pipeSize",
15343
15331
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.pipeSize,
@@ -15361,17 +15349,9 @@ const ConnectionDetails$2 = _props => {
15361
15349
  t: t
15362
15350
  });
15363
15351
  }
15364
- })), localFormState.touched.pipeSize ? /*#__PURE__*/React.createElement(CardLabelError, {
15352
+ }), localFormState.touched.pipeSize && errors !== null && errors !== void 0 && (_errors$pipeSize2 = errors.pipeSize) !== null && _errors$pipeSize2 !== void 0 && _errors$pipeSize2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15365
15353
  style: errorStyle
15366
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$pipeSize2 = errors.pipeSize) === null || _errors$pipeSize2 === void 0 ? void 0 : _errors$pipeSize2.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15367
- style: isMobile && isEmployee ? {
15368
- fontWeight: "700",
15369
- width: "100%"
15370
- } : {
15371
- fontWeight: "700"
15372
- },
15373
- className: "card-label-smaller"
15374
- }, t("WS_SERV_DETAIL_NO_OF_TAPS") + "*"), /*#__PURE__*/React.createElement("div", {
15354
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$pipeSize3 = errors.pipeSize) === null || _errors$pipeSize3 === void 0 ? void 0 : _errors$pipeSize3.message) : null), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SERV_DETAIL_NO_OF_TAPS") + "*"), /*#__PURE__*/React.createElement("div", {
15375
15355
  className: "field"
15376
15356
  }, /*#__PURE__*/React.createElement(Controller, {
15377
15357
  control: control,
@@ -15403,17 +15383,9 @@ const ConnectionDetails$2 = _props => {
15403
15383
  onBlur: props.onBlur
15404
15384
  });
15405
15385
  }
15406
- }))), localFormState.touched.noOfTaps ? /*#__PURE__*/React.createElement(CardLabelError, {
15386
+ })), localFormState.touched.noOfTaps && errors !== null && errors !== void 0 && (_errors$noOfTaps2 = errors.noOfTaps) !== null && _errors$noOfTaps2 !== void 0 && _errors$noOfTaps2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15407
15387
  style: errorStyle
15408
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfTaps2 = errors.noOfTaps) === null || _errors$noOfTaps2 === void 0 ? void 0 : _errors$noOfTaps2.message) : null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15409
- style: isMobile && isEmployee ? {
15410
- fontWeight: "700",
15411
- width: "100%"
15412
- } : {
15413
- fontWeight: "700"
15414
- },
15415
- className: "card-label-smaller"
15416
- }, t("WS_NUMBER_WATER_CLOSETS_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15388
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfTaps3 = errors.noOfTaps) === null || _errors$noOfTaps3 === void 0 ? void 0 : _errors$noOfTaps3.message) : null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_NUMBER_WATER_CLOSETS_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15417
15389
  className: "field"
15418
15390
  }, /*#__PURE__*/React.createElement(Controller, {
15419
15391
  control: control,
@@ -15445,17 +15417,9 @@ const ConnectionDetails$2 = _props => {
15445
15417
  onBlur: props.onBlur
15446
15418
  });
15447
15419
  }
15448
- }))), localFormState.touched.noOfWaterClosets ? /*#__PURE__*/React.createElement(CardLabelError, {
15420
+ })), localFormState.touched.noOfWaterClosets && errors !== null && errors !== void 0 && (_errors$noOfWaterClos2 = errors.noOfWaterClosets) !== null && _errors$noOfWaterClos2 !== void 0 && _errors$noOfWaterClos2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15449
15421
  style: errorStyle
15450
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfWaterClos2 = errors.noOfWaterClosets) === null || _errors$noOfWaterClos2 === void 0 ? void 0 : _errors$noOfWaterClos2.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15451
- style: isMobile && isEmployee ? {
15452
- fontWeight: "700",
15453
- width: "100%"
15454
- } : {
15455
- fontWeight: "700"
15456
- },
15457
- className: "card-label-smaller"
15458
- }, t("WS_SERV_DETAIL_NO_OF_TOILETS") + "*"), /*#__PURE__*/React.createElement("div", {
15422
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfWaterClos3 = errors.noOfWaterClosets) === null || _errors$noOfWaterClos3 === void 0 ? void 0 : _errors$noOfWaterClos3.message) : null), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SERV_DETAIL_NO_OF_TOILETS") + "*"), /*#__PURE__*/React.createElement("div", {
15459
15423
  className: "field"
15460
15424
  }, /*#__PURE__*/React.createElement(Controller, {
15461
15425
  control: control,
@@ -15487,9 +15451,9 @@ const ConnectionDetails$2 = _props => {
15487
15451
  onBlur: props.onBlur
15488
15452
  });
15489
15453
  }
15490
- }))), localFormState.touched.noOfToilets ? /*#__PURE__*/React.createElement(CardLabelError, {
15454
+ })), localFormState.touched.noOfToilets && errors !== null && errors !== void 0 && (_errors$noOfToilets2 = errors.noOfToilets) !== null && _errors$noOfToilets2 !== void 0 && _errors$noOfToilets2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15491
15455
  style: errorStyle
15492
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfToilets2 = errors.noOfToilets) === null || _errors$noOfToilets2 === void 0 ? void 0 : _errors$noOfToilets2.message) : null)));
15456
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfToilets3 = errors.noOfToilets) === null || _errors$noOfToilets3 === void 0 ? void 0 : _errors$noOfToilets3.message) : null)));
15493
15457
  };
15494
15458
 
15495
15459
  const createPlumberDetails = () => ({
@@ -15559,7 +15523,7 @@ const WSActivationPlumberDetails = _ref => {
15559
15523
  }, commonProps))));
15560
15524
  };
15561
15525
  const PlumberDetails = _props => {
15562
- var _plumberDetails$, _formData$disConnecti, _errors$detailsProvid2, _plumberDetail$detail, _plumberDetail$detail2, _errors$plumberLicens2, _errors$plumberName2, _errors$plumberMobile2;
15526
+ var _plumberDetails$, _formData$disConnecti, _errors$detailsProvid2, _errors$detailsProvid3, _plumberDetail$detail, _plumberDetail$detail2, _errors$plumberLicens2, _errors$plumberLicens3, _errors$plumberName2, _errors$plumberName3, _errors$plumberMobile2, _errors$plumberMobile3;
15563
15527
  const plumberDetail = _props.plumberDetail,
15564
15528
  focusIndex = _props.focusIndex,
15565
15529
  setFocusIndex = _props.setFocusIndex,
@@ -15621,22 +15585,12 @@ const PlumberDetails = _props => {
15621
15585
  }
15622
15586
  }, [errors]);
15623
15587
  const errorStyle = {
15624
- width: "70%",
15625
- marginLeft: "30%",
15588
+ width: "100%",
15589
+ marginLeft: "0px",
15626
15590
  fontSize: "12px",
15627
15591
  marginTop: "-21px"
15628
15592
  };
15629
- return /*#__PURE__*/React.createElement("div", {
15630
- className: "formcomposer-section-grid"
15631
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15632
- style: isMobile && isEmployee ? {
15633
- fontWeight: "700",
15634
- width: "100%"
15635
- } : {
15636
- fontWeight: "700"
15637
- },
15638
- className: "card-label-smaller"
15639
- }, t("WS_ADDN_DETAILS_PLUMBER_PROVIDED_BY") + "*"), /*#__PURE__*/React.createElement(Controller, {
15593
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_ADDN_DETAILS_PLUMBER_PROVIDED_BY") + "*"), /*#__PURE__*/React.createElement(Controller, {
15640
15594
  control: control,
15641
15595
  name: "detailsProvidedBy",
15642
15596
  defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.detailsProvidedBy,
@@ -15674,17 +15628,9 @@ const PlumberDetails = _props => {
15674
15628
  t: t
15675
15629
  });
15676
15630
  }
15677
- })), localFormState.touched.detailsProvidedBy ? /*#__PURE__*/React.createElement(CardLabelError, {
15631
+ }), localFormState.touched.detailsProvidedBy && errors !== null && errors !== void 0 && (_errors$detailsProvid2 = errors.detailsProvidedBy) !== null && _errors$detailsProvid2 !== void 0 && _errors$detailsProvid2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15678
15632
  style: errorStyle
15679
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$detailsProvid2 = errors.detailsProvidedBy) === null || _errors$detailsProvid2 === void 0 ? void 0 : _errors$detailsProvid2.message) : null), !(plumberDetail !== null && plumberDetail !== void 0 && (_plumberDetail$detail = plumberDetail.detailsProvidedBy) !== null && _plumberDetail$detail !== void 0 && _plumberDetail$detail.code) || (plumberDetail === null || plumberDetail === void 0 ? void 0 : (_plumberDetail$detail2 = plumberDetail.detailsProvidedBy) === null || _plumberDetail$detail2 === void 0 ? void 0 : _plumberDetail$detail2.code) == "ULB" ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15680
- style: isMobile && isEmployee ? {
15681
- fontWeight: "700",
15682
- width: "100%"
15683
- } : {
15684
- fontWeight: "700"
15685
- },
15686
- className: "card-label-smaller"
15687
- }, t("WS_PLIMBER_LICENSE_NO_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15633
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$detailsProvid3 = errors.detailsProvidedBy) === null || _errors$detailsProvid3 === void 0 ? void 0 : _errors$detailsProvid3.message) : null), !(plumberDetail !== null && plumberDetail !== void 0 && (_plumberDetail$detail = plumberDetail.detailsProvidedBy) !== null && _plumberDetail$detail !== void 0 && _plumberDetail$detail.code) || (plumberDetail === null || plumberDetail === void 0 ? void 0 : (_plumberDetail$detail2 = plumberDetail.detailsProvidedBy) === null || _plumberDetail$detail2 === void 0 ? void 0 : _plumberDetail$detail2.code) == "ULB" ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_PLIMBER_LICENSE_NO_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15688
15634
  className: "field"
15689
15635
  }, /*#__PURE__*/React.createElement(Controller, {
15690
15636
  control: control,
@@ -15714,17 +15660,9 @@ const PlumberDetails = _props => {
15714
15660
  onBlur: props.onBlur
15715
15661
  });
15716
15662
  }
15717
- }))), localFormState.touched.plumberLicenseNo ? /*#__PURE__*/React.createElement(CardLabelError, {
15663
+ })), localFormState.touched.plumberLicenseNo && errors !== null && errors !== void 0 && (_errors$plumberLicens2 = errors.plumberLicenseNo) !== null && _errors$plumberLicens2 !== void 0 && _errors$plumberLicens2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15718
15664
  style: errorStyle
15719
- }, errors === null || errors === void 0 ? void 0 : (_errors$plumberLicens2 = errors.plumberLicenseNo) === null || _errors$plumberLicens2 === void 0 ? void 0 : _errors$plumberLicens2.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15720
- style: isMobile && isEmployee ? {
15721
- fontWeight: "700",
15722
- width: "100%"
15723
- } : {
15724
- fontWeight: "700"
15725
- },
15726
- className: "card-label-smaller"
15727
- }, t("WS_ADDN_DETAILS_PLUMBER_NAME_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15665
+ }, errors === null || errors === void 0 ? void 0 : (_errors$plumberLicens3 = errors.plumberLicenseNo) === null || _errors$plumberLicens3 === void 0 ? void 0 : _errors$plumberLicens3.message) : null), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_ADDN_DETAILS_PLUMBER_NAME_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15728
15666
  className: "field"
15729
15667
  }, /*#__PURE__*/React.createElement(Controller, {
15730
15668
  control: control,
@@ -15754,17 +15692,9 @@ const PlumberDetails = _props => {
15754
15692
  onBlur: props.onBlur
15755
15693
  });
15756
15694
  }
15757
- }))), localFormState.touched.plumberName ? /*#__PURE__*/React.createElement(CardLabelError, {
15695
+ })), localFormState.touched.plumberName && errors !== null && errors !== void 0 && (_errors$plumberName2 = errors.plumberName) !== null && _errors$plumberName2 !== void 0 && _errors$plumberName2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15758
15696
  style: errorStyle
15759
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberName2 = errors.plumberName) === null || _errors$plumberName2 === void 0 ? void 0 : _errors$plumberName2.message) : null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15760
- style: isMobile && isEmployee ? {
15761
- fontWeight: "700",
15762
- width: "100%"
15763
- } : {
15764
- fontWeight: "700"
15765
- },
15766
- className: "card-label-smaller"
15767
- }, t("WS_PLUMBER_MOBILE_NO_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15697
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberName3 = errors.plumberName) === null || _errors$plumberName3 === void 0 ? void 0 : _errors$plumberName3.message) : null), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_PLUMBER_MOBILE_NO_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15768
15698
  className: "field"
15769
15699
  }, /*#__PURE__*/React.createElement(Controller, {
15770
15700
  control: control,
@@ -15839,9 +15769,9 @@ const PlumberDetails = _props => {
15839
15769
  }
15840
15770
  })));
15841
15771
  }
15842
- }))), localFormState.touched.plumberMobileNo ? /*#__PURE__*/React.createElement(CardLabelError, {
15772
+ })), localFormState.touched.plumberMobileNo && errors !== null && errors !== void 0 && (_errors$plumberMobile2 = errors.plumberMobileNo) !== null && _errors$plumberMobile2 !== void 0 && _errors$plumberMobile2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
15843
15773
  style: errorStyle
15844
- }, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberMobile2 = errors.plumberMobileNo) === null || _errors$plumberMobile2 === void 0 ? void 0 : _errors$plumberMobile2.message) : null)) : null);
15774
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberMobile3 = errors.plumberMobileNo) === null || _errors$plumberMobile3 === void 0 ? void 0 : _errors$plumberMobile3.message) : null)) : null);
15845
15775
  };
15846
15776
 
15847
15777
  const createActivationDetails = () => ({
@@ -15910,7 +15840,7 @@ const WSActivationPageDetails = _ref => {
15910
15840
  }, commonProps))));
15911
15841
  };
15912
15842
  const ConnectionDetails$3 = _props => {
15913
- var _formData$connectionD, _formData$connectionD2, _formData$connectionD3, _formData$connectionD4, _formData$connectionD5, _formData$connectionD6, _formData2$connection, _formData2$connection2, _formData2$connection3, _formData2$connection4, _errors$meterId2, _errors$meterInstalla, _errors$meterInitialR2, _errors$connectionExe2, _errors$dateEffective2;
15843
+ var _formData$connectionD, _formData$connectionD2, _formData$connectionD3, _formData$connectionD4, _formData$connectionD5, _formData$connectionD6, _formData2$connection, _formData2$connection2, _formData2$connection3, _formData2$connection4, _errors$meterId2, _errors$meterId3, _errors$meterInstalla, _errors$meterInstalla2, _errors$meterInitialR2, _errors$meterInitialR3, _errors$connectionExe2, _errors$connectionExe3, _errors$dateEffective2, _errors$dateEffective3;
15914
15844
  const activationDetail = _props.activationDetail,
15915
15845
  focusIndex = _props.focusIndex,
15916
15846
  setFocusIndex = _props.setFocusIndex,
@@ -15975,25 +15905,12 @@ const ConnectionDetails$3 = _props => {
15975
15905
  }
15976
15906
  }, [errors]);
15977
15907
  const errorStyle = {
15978
- width: "70%",
15979
- marginLeft: "30%",
15908
+ width: "100%",
15909
+ marginLeft: "0px",
15980
15910
  fontSize: "12px",
15981
15911
  marginTop: "-21px"
15982
15912
  };
15983
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
15984
- style: {
15985
- marginBottom: "16px"
15986
- }
15987
- }, (filters === null || filters === void 0 ? void 0 : filters.service) === "WATER" && (formData === null || formData === void 0 ? void 0 : (_formData$connectionD3 = formData.connectionDetails) === null || _formData$connectionD3 === void 0 ? void 0 : (_formData$connectionD4 = _formData$connectionD3[0]) === null || _formData$connectionD4 === void 0 ? void 0 : (_formData$connectionD5 = _formData$connectionD4.connectionType) === null || _formData$connectionD5 === void 0 ? void 0 : (_formData$connectionD6 = _formData$connectionD5.code) === null || _formData$connectionD6 === void 0 ? void 0 : _formData$connectionD6.toUpperCase()) === "METERED" && (formData2 === null || formData2 === void 0 ? void 0 : (_formData2$connection = formData2.connectionDetails) === null || _formData2$connection === void 0 ? void 0 : (_formData2$connection2 = _formData2$connection[0]) === null || _formData2$connection2 === void 0 ? void 0 : (_formData2$connection3 = _formData2$connection2.formDetails) === null || _formData2$connection3 === void 0 ? void 0 : (_formData2$connection4 = _formData2$connection3.applicationData) === null || _formData2$connection4 === void 0 ? void 0 : _formData2$connection4.applicationType) !== "WATER_RECONNECTION" ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
15988
- style: isMobile && isEmployee ? {
15989
- fontWeight: "700",
15990
- width: "100%"
15991
- } : {
15992
- marginTop: "-5px",
15993
- fontWeight: "700"
15994
- },
15995
- className: "card-label-smaller"
15996
- }, t("WS_SERV_DETAIL_METER_ID") + "*"), /*#__PURE__*/React.createElement("div", {
15913
+ return /*#__PURE__*/React.createElement(React.Fragment, null, (filters === null || filters === void 0 ? void 0 : filters.service) === "WATER" && (formData === null || formData === void 0 ? void 0 : (_formData$connectionD3 = formData.connectionDetails) === null || _formData$connectionD3 === void 0 ? void 0 : (_formData$connectionD4 = _formData$connectionD3[0]) === null || _formData$connectionD4 === void 0 ? void 0 : (_formData$connectionD5 = _formData$connectionD4.connectionType) === null || _formData$connectionD5 === void 0 ? void 0 : (_formData$connectionD6 = _formData$connectionD5.code) === null || _formData$connectionD6 === void 0 ? void 0 : _formData$connectionD6.toUpperCase()) === "METERED" && (formData2 === null || formData2 === void 0 ? void 0 : (_formData2$connection = formData2.connectionDetails) === null || _formData2$connection === void 0 ? void 0 : (_formData2$connection2 = _formData2$connection[0]) === null || _formData2$connection2 === void 0 ? void 0 : (_formData2$connection3 = _formData2$connection2.formDetails) === null || _formData2$connection3 === void 0 ? void 0 : (_formData2$connection4 = _formData2$connection3.applicationData) === null || _formData2$connection4 === void 0 ? void 0 : _formData2$connection4.applicationType) !== "WATER_RECONNECTION" ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SERV_DETAIL_METER_ID") + "*"), /*#__PURE__*/React.createElement("div", {
15997
15914
  className: "field"
15998
15915
  }, /*#__PURE__*/React.createElement(Controller, {
15999
15916
  control: control,
@@ -16025,18 +15942,9 @@ const ConnectionDetails$3 = _props => {
16025
15942
  onBlur: props.onBlur
16026
15943
  });
16027
15944
  }
16028
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
15945
+ })), localFormState.touched.meterId && errors !== null && errors !== void 0 && (_errors$meterId2 = errors.meterId) !== null && _errors$meterId2 !== void 0 && _errors$meterId2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
16029
15946
  style: errorStyle
16030
- }, localFormState.touched.meterId ? errors === null || errors === void 0 ? void 0 : (_errors$meterId2 = errors.meterId) === null || _errors$meterId2 === void 0 ? void 0 : _errors$meterId2.message : ""), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
16031
- style: isMobile && isEmployee ? {
16032
- fontWeight: "700",
16033
- width: "100%"
16034
- } : {
16035
- marginTop: "-5px",
16036
- fontWeight: "700"
16037
- },
16038
- className: "card-label-smaller"
16039
- }, t("WS_ADDN_DETAIL_METER_INSTALL_DATE") + "*"), /*#__PURE__*/React.createElement("div", {
15947
+ }, errors === null || errors === void 0 ? void 0 : (_errors$meterId3 = errors.meterId) === null || _errors$meterId3 === void 0 ? void 0 : _errors$meterId3.message) : null), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_ADDN_DETAIL_METER_INSTALL_DATE") + "*"), /*#__PURE__*/React.createElement("div", {
16040
15948
  className: "field"
16041
15949
  }, /*#__PURE__*/React.createElement(Controller, {
16042
15950
  name: "meterInstallationDate",
@@ -16050,18 +15958,9 @@ const ConnectionDetails$3 = _props => {
16050
15958
  name: "meterInstallationDate",
16051
15959
  onChange: props.onChange
16052
15960
  })
16053
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
15961
+ })), localFormState.touched.meterInstallationDate && errors !== null && errors !== void 0 && (_errors$meterInstalla = errors.meterInstallationDate) !== null && _errors$meterInstalla !== void 0 && _errors$meterInstalla.message ? /*#__PURE__*/React.createElement(CardLabelError, {
16054
15962
  style: errorStyle
16055
- }, localFormState.touched.meterInstallationDate ? errors === null || errors === void 0 ? void 0 : (_errors$meterInstalla = errors.meterInstallationDate) === null || _errors$meterInstalla === void 0 ? void 0 : _errors$meterInstalla.message : ""), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
16056
- style: isMobile && isEmployee ? {
16057
- fontWeight: "700",
16058
- width: "100%"
16059
- } : {
16060
- marginTop: "-5px",
16061
- fontWeight: "700"
16062
- },
16063
- className: "card-label-smaller"
16064
- }, t("WS_INITIAL_METER_READING_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
15963
+ }, errors === null || errors === void 0 ? void 0 : (_errors$meterInstalla2 = errors.meterInstallationDate) === null || _errors$meterInstalla2 === void 0 ? void 0 : _errors$meterInstalla2.message) : null), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_INITIAL_METER_READING_LABEL") + "*"), /*#__PURE__*/React.createElement("div", {
16065
15964
  className: "field"
16066
15965
  }, /*#__PURE__*/React.createElement(Controller, {
16067
15966
  type: "number",
@@ -16093,18 +15992,9 @@ const ConnectionDetails$3 = _props => {
16093
15992
  onBlur: props.onBlur
16094
15993
  });
16095
15994
  }
16096
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
15995
+ })), localFormState.touched.meterInitialReading && errors !== null && errors !== void 0 && (_errors$meterInitialR2 = errors.meterInitialReading) !== null && _errors$meterInitialR2 !== void 0 && _errors$meterInitialR2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
16097
15996
  style: errorStyle
16098
- }, localFormState.touched.meterInitialReading ? errors === null || errors === void 0 ? void 0 : (_errors$meterInitialR2 = errors.meterInitialReading) === null || _errors$meterInitialR2 === void 0 ? void 0 : _errors$meterInitialR2.message : "")) : null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
16099
- style: isMobile && isEmployee ? {
16100
- fontWeight: "700",
16101
- width: "100%"
16102
- } : {
16103
- marginTop: "-5px",
16104
- fontWeight: "700"
16105
- },
16106
- className: "card-label-smaller"
16107
- }, t("WS_SERV_DETAIL_CONN_EXECUTION_DATE") + "*"), /*#__PURE__*/React.createElement("div", {
15997
+ }, errors === null || errors === void 0 ? void 0 : (_errors$meterInitialR3 = errors.meterInitialReading) === null || _errors$meterInitialR3 === void 0 ? void 0 : _errors$meterInitialR3.message) : null)) : null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SERV_DETAIL_CONN_EXECUTION_DATE") + "*"), /*#__PURE__*/React.createElement("div", {
16108
15998
  className: "field"
16109
15999
  }, /*#__PURE__*/React.createElement(Controller, {
16110
16000
  name: "connectionExecutionDate",
@@ -16123,18 +16013,9 @@ const ConnectionDetails$3 = _props => {
16123
16013
  errorStyle: localFormState.touched.connectionExecutionDate && errors !== null && errors !== void 0 && (_errors$connectionExe = errors.connectionExecutionDate) !== null && _errors$connectionExe !== void 0 && _errors$connectionExe.message ? true : false
16124
16014
  });
16125
16015
  }
16126
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
16016
+ })), localFormState.touched.connectionExecutionDate && errors !== null && errors !== void 0 && (_errors$connectionExe2 = errors.connectionExecutionDate) !== null && _errors$connectionExe2 !== void 0 && _errors$connectionExe2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
16127
16017
  style: errorStyle
16128
- }, localFormState.touched.connectionExecutionDate ? errors === null || errors === void 0 ? void 0 : (_errors$connectionExe2 = errors.connectionExecutionDate) === null || _errors$connectionExe2 === void 0 ? void 0 : _errors$connectionExe2.message : ""), window.location.href.includes("modify") || window.location.href.includes("mutation") ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
16129
- style: isMobile && isEmployee ? {
16130
- fontWeight: "700",
16131
- width: "100%"
16132
- } : {
16133
- marginTop: "-5px",
16134
- fontWeight: "700"
16135
- },
16136
- className: "card-label-smaller"
16137
- }, t("WS_MODIFICATIONS_EFFECTIVE_FROM") + "*"), /*#__PURE__*/React.createElement("div", {
16018
+ }, errors === null || errors === void 0 ? void 0 : (_errors$connectionExe3 = errors.connectionExecutionDate) === null || _errors$connectionExe3 === void 0 ? void 0 : _errors$connectionExe3.message) : null), window.location.href.includes("modify") || window.location.href.includes("mutation") ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_MODIFICATIONS_EFFECTIVE_FROM") + "*"), /*#__PURE__*/React.createElement("div", {
16138
16019
  className: "field"
16139
16020
  }, /*#__PURE__*/React.createElement(Controller, {
16140
16021
  name: "dateEffectiveFrom",
@@ -16154,9 +16035,9 @@ const ConnectionDetails$3 = _props => {
16154
16035
  errorStyle: localFormState.touched.dateEffectiveFrom && errors !== null && errors !== void 0 && (_errors$dateEffective = errors.dateEffectiveFrom) !== null && _errors$dateEffective !== void 0 && _errors$dateEffective.message ? true : false
16155
16036
  });
16156
16037
  }
16157
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
16038
+ })), localFormState.touched.dateEffectiveFrom && errors !== null && errors !== void 0 && (_errors$dateEffective2 = errors.dateEffectiveFrom) !== null && _errors$dateEffective2 !== void 0 && _errors$dateEffective2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
16158
16039
  style: errorStyle
16159
- }, localFormState.touched.dateEffectiveFrom ? errors === null || errors === void 0 ? void 0 : (_errors$dateEffective2 = errors.dateEffectiveFrom) === null || _errors$dateEffective2 === void 0 ? void 0 : _errors$dateEffective2.message : "")) : null));
16040
+ }, errors === null || errors === void 0 ? void 0 : (_errors$dateEffective3 = errors.dateEffectiveFrom) === null || _errors$dateEffective3 === void 0 ? void 0 : _errors$dateEffective3.message) : null) : null);
16160
16041
  };
16161
16042
 
16162
16043
  const WSActivationCommentsDetails = _ref => {
@@ -16178,12 +16059,7 @@ const WSActivationCommentsDetails = _ref => {
16178
16059
  onSelect(config.key, _extends({}, formData[config.key], comments));
16179
16060
  }
16180
16061
  }, [comments]);
16181
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
16182
- style: {
16183
- fontWeight: "700"
16184
- },
16185
- className: "card-label-smaller"
16186
- }, t("WF_COMMON_COMMENTS"), ":"), /*#__PURE__*/React.createElement("div", {
16062
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WF_COMMON_COMMENTS"), ":"), /*#__PURE__*/React.createElement("div", {
16187
16063
  className: "field"
16188
16064
  }, /*#__PURE__*/React.createElement(TextInput, {
16189
16065
  key: config.key,
@@ -16286,12 +16162,7 @@ const WSActivationSupportingDocuments = _ref => {
16286
16162
  });
16287
16163
  }
16288
16164
  }, [uploadedFile]);
16289
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
16290
- className: "card-label-smaller",
16291
- style: {
16292
- fontWeight: "700"
16293
- }
16294
- }, t("WF_APPROVAL_UPLOAD_HEAD"), ":"), /*#__PURE__*/React.createElement("div", {
16165
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WF_APPROVAL_UPLOAD_HEAD"), ":"), /*#__PURE__*/React.createElement("div", {
16295
16166
  className: "field"
16296
16167
  }, /*#__PURE__*/React.createElement(UploadFile, {
16297
16168
  onUpload: e => {
@@ -21432,7 +21303,7 @@ const _excluded$1 = ["t", "config", "onSelect", "formData", "formState", "setErr
21432
21303
  const NUMBER_PATTERN$1 = /^\d+$/;
21433
21304
  const DECIMAL_PATTERN$1 = /^\d+(\.\d{1,2})?$/;
21434
21305
  const PropertyWaterConnection = _ref => {
21435
- var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11, _errors$useDetails12;
21306
+ var _formData$cpt2, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _formValue$useDetails3, _formValue$useDetails4, _formValue$useDetails5, _formValue$useDetails6, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11, _errors$useDetails12;
21436
21307
  let t = _ref.t,
21437
21308
  config = _ref.config,
21438
21309
  onSelect = _ref.onSelect,
@@ -21494,7 +21365,7 @@ const PropertyWaterConnection = _ref => {
21494
21365
  const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
21495
21366
  const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
21496
21367
  const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
21497
- const isDwellingUnit = (watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : watchPropertyCategory.code) === "RESIDENTIAL" || (watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : watchPropertyCategory.code) === "RESIDENTIAL";
21368
+ const isDwellingUnit = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "Apartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "FlatOrApartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "IndividualHouse";
21498
21369
  const isServentHouse = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "Apartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "FlatOrApartment" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "IndividualHouse";
21499
21370
  const yearOptions = useMemo(() => {
21500
21371
  const currentYear = new Date().getFullYear();
@@ -21763,7 +21634,7 @@ const PropertyWaterConnection = _ref => {
21763
21634
  disabled: isPropertyFound
21764
21635
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails6 = errors.useDetails) === null || _errors$useDetails6 === void 0 ? void 0 : _errors$useDetails6.plotArea) && /*#__PURE__*/React.createElement(CardLabelError, {
21765
21636
  style: errorStyle
21766
- }, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React.createElement("div", {
21637
+ }, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_BUILT_UP_AREA")), /*#__PURE__*/React.createElement("div", {
21767
21638
  className: "form-field"
21768
21639
  }, /*#__PURE__*/React.createElement(TextInput, {
21769
21640
  t: t,
@@ -21777,7 +21648,7 @@ const PropertyWaterConnection = _ref => {
21777
21648
  disabled: isPropertyFound
21778
21649
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails7 = errors.useDetails) === null || _errors$useDetails7 === void 0 ? void 0 : _errors$useDetails7.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
21779
21650
  style: errorStyle
21780
- }, errors.useDetails.builtUpArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React.createElement("div", {
21651
+ }, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, "" + t("WS_FAR_AREA")), /*#__PURE__*/React.createElement("div", {
21781
21652
  className: "form-field"
21782
21653
  }, /*#__PURE__*/React.createElement(TextInput, {
21783
21654
  t: t,
@@ -21785,13 +21656,26 @@ const PropertyWaterConnection = _ref => {
21785
21656
  pattern: {
21786
21657
  value: DECIMAL_PATTERN$1,
21787
21658
  message: t("ERR_INVALID_DECIMAL")
21659
+ },
21660
+ validate: value => {
21661
+ var _formValue$useDetails, _formValue$useDetails2;
21662
+ if (formValue !== null && formValue !== void 0 && (_formValue$useDetails = formValue.useDetails) !== null && _formValue$useDetails !== void 0 && _formValue$useDetails.builtUpArea && parseFloat(value) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea)) {
21663
+ return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
21664
+ }
21788
21665
  }
21789
21666
  }),
21790
21667
  name: "useDetails.farArea",
21791
21668
  disabled: isPropertyFound
21792
21669
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React.createElement(CardLabelError, {
21793
21670
  style: errorStyle
21794
- }, errors.useDetails.farArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SELECT_YEAR_OF_CONSTRUCTION") + "*"), /*#__PURE__*/React.createElement("div", {
21671
+ }, errors.useDetails.farArea.message), (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.farArea) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.builtUpArea) && parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.farArea) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails6 = formValue.useDetails) === null || _formValue$useDetails6 === void 0 ? void 0 : _formValue$useDetails6.builtUpArea) && /*#__PURE__*/React.createElement(CardLabelError, {
21672
+ style: {
21673
+ width: "70%",
21674
+ marginLeft: "30%",
21675
+ fontSize: "12px",
21676
+ marginTop: "5px"
21677
+ }
21678
+ }, t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA"))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_SELECT_YEAR_OF_CONSTRUCTION") + "*"), /*#__PURE__*/React.createElement("div", {
21795
21679
  className: "form-field"
21796
21680
  }, /*#__PURE__*/React.createElement(Controller, {
21797
21681
  control: control,
@@ -29468,23 +29352,30 @@ const WSFeeEstimation = _ref => {
29468
29352
  var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
29469
29353
  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);
29470
29354
  if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
29471
- var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0;
29472
- 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) || [];
29473
- const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
29474
- title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
29475
- value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
29476
- })) : [{
29355
+ var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
29356
+ 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) || (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.taxHeadEstimates) || [];
29357
+ const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => {
29358
+ var _bill$status;
29359
+ return {
29360
+ title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
29361
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2), bill !== null && bill !== void 0 && bill.status ? /*#__PURE__*/React.createElement("span", {
29362
+ style: {
29363
+ color: (bill === null || bill === void 0 ? void 0 : (_bill$status = bill.status) === null || _bill$status === void 0 ? void 0 : _bill$status.toUpperCase()) === "PAID" ? "green" : "red"
29364
+ }
29365
+ }, " (" + (bill === null || bill === void 0 ? void 0 : bill.status) + ")") : "")
29366
+ };
29367
+ }) : [{
29477
29368
  title: "WS_APPLICATION_FEE_HEADER",
29478
- 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)
29369
+ 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.fee)
29479
29370
  }, {
29480
29371
  title: "WS_SERVICE_FEE_HEADER",
29481
- 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)
29372
+ 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.charge)
29482
29373
  }, {
29483
29374
  title: "WS_TAX_HEADER",
29484
- 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)
29375
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : (_sessionFormData$bill1 = _sessionFormData$bill0[0]) === null || _sessionFormData$bill1 === void 0 ? void 0 : _sessionFormData$bill1.taxAmount)
29485
29376
  }];
29486
29377
  setValues(values);
29487
- setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : _sessionFormData$bill0[0]);
29378
+ setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill10 = sessionFormData.billDetails) === null || _sessionFormData$bill10 === void 0 ? void 0 : _sessionFormData$bill10[0]);
29488
29379
  } else {
29489
29380
  setSessionFormData(data);
29490
29381
  setFields(data);
@@ -29555,10 +29446,17 @@ const WSFeeEstimation = _ref => {
29555
29446
  }
29556
29447
  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");
29557
29448
  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) || [];
29558
- const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
29559
- title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
29560
- value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
29561
- })) : [{
29449
+ const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => {
29450
+ var _data$status;
29451
+ return {
29452
+ title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
29453
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2), data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
29454
+ style: {
29455
+ color: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()) === "PAID" ? "green" : "red"
29456
+ }
29457
+ }, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : "")
29458
+ };
29459
+ }) : [{
29562
29460
  title: "WS_APPLICATION_FEE_HEADER",
29563
29461
  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
29564
29462
  }, {
@@ -29893,10 +29791,17 @@ const ViewBreakup = _ref => {
29893
29791
  if (rows === void 0) {
29894
29792
  rows = [];
29895
29793
  }
29896
- return rows.map(row => ({
29897
- title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
29898
- value: "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount)
29899
- }));
29794
+ return rows.map(row => {
29795
+ var _row$status;
29796
+ return {
29797
+ title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
29798
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount), row !== null && row !== void 0 && row.status ? /*#__PURE__*/React.createElement("span", {
29799
+ style: {
29800
+ color: (row === null || row === void 0 ? void 0 : (_row$status = row.status) === null || _row$status === void 0 ? void 0 : _row$status.toUpperCase()) === "PAID" ? "green" : "red"
29801
+ }
29802
+ }, " (" + (row === null || row === void 0 ? void 0 : row.status) + ")") : "")
29803
+ };
29804
+ });
29900
29805
  };
29901
29806
  const connectionHolder = 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$4 = _wsAdditionalDetails$3.connectionHolders) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4[0];
29902
29807
  const applicantName = [connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.name, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.middleName, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.lastName].filter(Boolean).join(" ") || "-";
@@ -30151,49 +30056,70 @@ const ViewBreakup = _ref => {
30151
30056
  style: {
30152
30057
  margin: "10px 0px"
30153
30058
  }
30154
- }, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => /*#__PURE__*/React.createElement(Row, {
30155
- className: "border-none",
30156
- rowContainerStyle: {
30157
- margin: "0px"
30158
- },
30159
- labelStyle: {
30160
- width: "50%"
30161
- },
30162
- key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
30163
- label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
30164
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
30165
- textStyle: {
30166
- textAlign: "right"
30167
- }
30168
- })), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab6 = breakUpData.billSlabData) === null || _breakUpData$billSlab6 === void 0 ? void 0 : (_breakUpData$billSlab7 = _breakUpData$billSlab6.CHARGES) === null || _breakUpData$billSlab7 === void 0 ? void 0 : _breakUpData$billSlab7.map(data => /*#__PURE__*/React.createElement(Row, {
30169
- className: "border-none",
30170
- rowContainerStyle: {
30171
- margin: "0px"
30172
- },
30173
- labelStyle: {
30174
- width: "50%"
30175
- },
30176
- key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
30177
- label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
30178
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
30179
- textStyle: {
30180
- textAlign: "right"
30181
- }
30182
- })), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab8 = breakUpData.billSlabData) === null || _breakUpData$billSlab8 === void 0 ? void 0 : (_breakUpData$billSlab9 = _breakUpData$billSlab8.TAX) === null || _breakUpData$billSlab9 === void 0 ? void 0 : _breakUpData$billSlab9.map(data => /*#__PURE__*/React.createElement(Row, {
30183
- className: "border-none",
30184
- rowContainerStyle: {
30185
- margin: "0px"
30186
- },
30187
- labelStyle: {
30188
- width: "50%"
30189
- },
30190
- key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
30191
- label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
30192
- text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
30193
- textStyle: {
30194
- textAlign: "right"
30195
- }
30196
- })), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
30059
+ }, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => {
30060
+ var _data$status;
30061
+ return /*#__PURE__*/React.createElement(Row, {
30062
+ className: "border-none",
30063
+ rowContainerStyle: {
30064
+ margin: "0px"
30065
+ },
30066
+ labelStyle: {
30067
+ width: "50%"
30068
+ },
30069
+ key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
30070
+ label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
30071
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
30072
+ style: {
30073
+ color: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()) === "PAID" ? "green" : "red"
30074
+ }
30075
+ }, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
30076
+ textStyle: {
30077
+ textAlign: "right"
30078
+ }
30079
+ });
30080
+ }), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab6 = breakUpData.billSlabData) === null || _breakUpData$billSlab6 === void 0 ? void 0 : (_breakUpData$billSlab7 = _breakUpData$billSlab6.CHARGES) === null || _breakUpData$billSlab7 === void 0 ? void 0 : _breakUpData$billSlab7.map(data => {
30081
+ var _data$status2;
30082
+ return /*#__PURE__*/React.createElement(Row, {
30083
+ className: "border-none",
30084
+ rowContainerStyle: {
30085
+ margin: "0px"
30086
+ },
30087
+ labelStyle: {
30088
+ width: "50%"
30089
+ },
30090
+ key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
30091
+ label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
30092
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
30093
+ style: {
30094
+ color: (data === null || data === void 0 ? void 0 : (_data$status2 = data.status) === null || _data$status2 === void 0 ? void 0 : _data$status2.toUpperCase()) === "PAID" ? "green" : "red"
30095
+ }
30096
+ }, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
30097
+ textStyle: {
30098
+ textAlign: "right"
30099
+ }
30100
+ });
30101
+ }), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab8 = breakUpData.billSlabData) === null || _breakUpData$billSlab8 === void 0 ? void 0 : (_breakUpData$billSlab9 = _breakUpData$billSlab8.TAX) === null || _breakUpData$billSlab9 === void 0 ? void 0 : _breakUpData$billSlab9.map(data => {
30102
+ var _data$status3;
30103
+ return /*#__PURE__*/React.createElement(Row, {
30104
+ className: "border-none",
30105
+ rowContainerStyle: {
30106
+ margin: "0px"
30107
+ },
30108
+ labelStyle: {
30109
+ width: "50%"
30110
+ },
30111
+ key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
30112
+ label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
30113
+ text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
30114
+ style: {
30115
+ color: (data === null || data === void 0 ? void 0 : (_data$status3 = data.status) === null || _data$status3 === void 0 ? void 0 : _data$status3.toUpperCase()) === "PAID" ? "green" : "red"
30116
+ }
30117
+ }, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
30118
+ textStyle: {
30119
+ textAlign: "right"
30120
+ }
30121
+ });
30122
+ }), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
30197
30123
  style: {
30198
30124
  margin: "10px 0px"
30199
30125
  }
@@ -30240,31 +30166,31 @@ const checkForNA$1 = value => {
30240
30166
  return value ? value : "CS_NA";
30241
30167
  };
30242
30168
  const WSApplicationDetails = () => {
30243
- 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$SewerageConnect14, _data$SewerageConnect15, _appDetailsData$appli, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect30, _data$SewerageConnect31, _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$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _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$WaterConnection66, _data$WaterConnection67, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _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$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect118, _data$SewerageConnect119, _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$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _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$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$WaterConnection137, _data$WaterConnection138, _data$SewerageConnect132, _data$SewerageConnect133, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect155, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection162, _data$WaterConnection163, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170;
30169
+ 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$SewerageConnect14, _data$SewerageConnect15, _appDetailsData$appli, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect30, _data$SewerageConnect31, _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$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _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$WaterConnection66, _data$WaterConnection67, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _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$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect118, _data$SewerageConnect119, _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$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _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$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$WaterConnection137, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect132, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect142, _data$SewerageConnect143, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection158, _data$WaterConnection159, _data$SewerageConnect153, _data$SewerageConnect154, _data$WaterConnection160, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect155, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$WaterConnection164, _data$WaterConnection165, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174;
30244
30170
  const getDisconnectionNoticeSearch = function () {
30245
30171
  try {
30246
- var _data$WaterConnection172, _data$WaterConnection173, _data$SewerageConnect167, _data$SewerageConnect168;
30172
+ var _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect171, _data$SewerageConnect172;
30247
30173
  let key = "ws-waterdisconnectionnotice";
30248
30174
  let details = {};
30249
30175
  if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
30250
- var _data$WaterConnection171, _PTData$Properties9;
30176
+ var _data$WaterConnection175, _PTData$Properties9;
30251
30177
  details = {
30252
- WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection171 = data.WaterConnection) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171[0], {
30178
+ WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection175 = data.WaterConnection) === null || _data$WaterConnection175 === void 0 ? void 0 : _data$WaterConnection175[0], {
30253
30179
  property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : _PTData$Properties9[0]
30254
30180
  })]
30255
30181
  };
30256
30182
  } else {
30257
- var _data$SewerageConnect166, _PTData$Properties0;
30183
+ var _data$SewerageConnect170, _PTData$Properties0;
30258
30184
  key = "ws-seweragedisconnectionnotice";
30259
30185
  details = {
30260
- SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect166 = data.SewerageConnections) === null || _data$SewerageConnect166 === void 0 ? void 0 : _data$SewerageConnect166[0], {
30186
+ SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect170 = data.SewerageConnections) === null || _data$SewerageConnect170 === void 0 ? void 0 : _data$SewerageConnect170[0], {
30261
30187
  property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : _PTData$Properties0[0]
30262
30188
  })]
30263
30189
  };
30264
30190
  }
30265
- return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection172 = data.WaterConnection) === null || _data$WaterConnection172 === void 0 ? void 0 : (_data$WaterConnection173 = _data$WaterConnection172[0]) === null || _data$WaterConnection173 === void 0 ? void 0 : _data$WaterConnection173.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect167 = data.SewerageConnections) === null || _data$SewerageConnect167 === void 0 ? void 0 : (_data$SewerageConnect168 = _data$SewerageConnect167[0]) === null || _data$SewerageConnect168 === void 0 ? void 0 : _data$SewerageConnect168.tenantId), details, key)).then(function (response) {
30266
- var _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect169, _data$SewerageConnect170;
30267
- return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection174 = data.WaterConnection) === null || _data$WaterConnection174 === void 0 ? void 0 : (_data$WaterConnection175 = _data$WaterConnection174[0]) === null || _data$WaterConnection175 === void 0 ? void 0 : _data$WaterConnection175.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect169 = data.SewerageConnections) === null || _data$SewerageConnect169 === void 0 ? void 0 : (_data$SewerageConnect170 = _data$SewerageConnect169[0]) === null || _data$SewerageConnect170 === void 0 ? void 0 : _data$SewerageConnect170.tenantId), {
30191
+ return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection176 = data.WaterConnection) === null || _data$WaterConnection176 === void 0 ? void 0 : (_data$WaterConnection177 = _data$WaterConnection176[0]) === null || _data$WaterConnection177 === void 0 ? void 0 : _data$WaterConnection177.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect171 = data.SewerageConnections) === null || _data$SewerageConnect171 === void 0 ? void 0 : (_data$SewerageConnect172 = _data$SewerageConnect171[0]) === null || _data$SewerageConnect172 === void 0 ? void 0 : _data$SewerageConnect172.tenantId), details, key)).then(function (response) {
30192
+ var _data$WaterConnection178, _data$WaterConnection179, _data$SewerageConnect173, _data$SewerageConnect174;
30193
+ return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection178 = data.WaterConnection) === null || _data$WaterConnection178 === void 0 ? void 0 : (_data$WaterConnection179 = _data$WaterConnection178[0]) === null || _data$WaterConnection179 === void 0 ? void 0 : _data$WaterConnection179.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect173 = data.SewerageConnections) === null || _data$SewerageConnect173 === void 0 ? void 0 : (_data$SewerageConnect174 = _data$SewerageConnect173[0]) === null || _data$SewerageConnect174 === void 0 ? void 0 : _data$SewerageConnect174.tenantId), {
30268
30194
  fileStoreIds: response.filestoreIds[0]
30269
30195
  })).then(function (fileStore) {
30270
30196
  window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
@@ -30355,7 +30281,7 @@ const WSApplicationDetails = () => {
30355
30281
  }
30356
30282
  }) || false;
30357
30283
  const applicationStatus = (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) || (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);
30358
- const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_FOR_PAYMENT" ? true : false;
30284
+ const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "PENDING_FOR_FINAL_PAYMENT" && applicationStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" ? true : false;
30359
30285
  const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, applicationNobyData, applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SEWERAGE" : "WATER", user),
30360
30286
  isAppDetailsLoading = _Digit$Hooks$ws$useWS.isLoading,
30361
30287
  appDetailsData = _Digit$Hooks$ws$useWS.data;
@@ -31006,36 +30932,36 @@ const WSApplicationDetails = () => {
31006
30932
  marginBottom: "20px"
31007
30933
  }
31008
30934
  }) : null)));
31009
- })), (data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : (_data$WaterConnection138 = _data$WaterConnection137[0]) === null || _data$WaterConnection138 === void 0 ? void 0 : _data$WaterConnection138.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : (_data$SewerageConnect133 = _data$SewerageConnect132[0]) === null || _data$SewerageConnect133 === void 0 ? void 0 : _data$SewerageConnect133.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
30935
+ })), (data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : (_data$WaterConnection138 = _data$WaterConnection137[0]) === null || _data$WaterConnection138 === void 0 ? void 0 : _data$WaterConnection138.applicationStatus) === "PENDING_FOR_PAYMENT" || (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_FINAL_PAYMENT" || (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.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : (_data$SewerageConnect133 = _data$SewerageConnect132[0]) === null || _data$SewerageConnect133 === void 0 ? void 0 : _data$SewerageConnect133.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_FINAL_PAYMENT" || (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.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
31010
30936
  to: {
31011
- 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$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139[0]) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.connectionNo, "/", "+") || stringReplaceAll(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.connectionNo, "/", "+") : 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.applicationNo, "/", "+") || 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.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + ((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.tenantId) || (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.tenantId)) + "&ConsumerName=" + ((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$WaterConnection147 = _data$WaterConnection146.connectionHolders) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.map(owner => owner.name).join(",")) || (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$SewerageConnect142 = _data$SewerageConnect141.connectionHolders) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.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),
30937
+ 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$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : (_data$WaterConnection144 = _data$WaterConnection143[0]) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144.connectionNo, "/", "+") || 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.connectionNo, "/", "+") : stringReplaceAll(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.applicationNo, "/", "+") || stringReplaceAll(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.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + ((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$WaterConnection148.tenantId) || (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$SewerageConnect143.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection149 = data.WaterConnection) === null || _data$WaterConnection149 === void 0 ? void 0 : (_data$WaterConnection150 = _data$WaterConnection149[0]) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150.connectionHolders) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect144 = data.SewerageConnections) === null || _data$SewerageConnect144 === void 0 ? void 0 : (_data$SewerageConnect145 = _data$SewerageConnect144[0]) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145.connectionHolders) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.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),
31012
30938
  state: {}
31013
30939
  }
31014
30940
  }, /*#__PURE__*/React.createElement(SubmitBar, {
31015
30941
  label: t("MAKE_PAYMENT")
31016
- })) : null, !(data !== null && data !== void 0 && (_data$WaterConnection148 = data.WaterConnection) !== null && _data$WaterConnection148 !== void 0 && (_data$WaterConnection149 = _data$WaterConnection148[0]) !== null && _data$WaterConnection149 !== void 0 && _data$WaterConnection149.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection150 = data.WaterConnection) !== null && _data$WaterConnection150 !== void 0 && (_data$WaterConnection151 = _data$WaterConnection150[0]) !== null && _data$WaterConnection151 !== void 0 && _data$WaterConnection151.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect143 = data.SewerageConnections) !== null && _data$SewerageConnect143 !== void 0 && (_data$SewerageConnect144 = _data$SewerageConnect143[0]) !== null && _data$SewerageConnect144 !== void 0 && _data$SewerageConnect144.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect145 = data.SewerageConnections) !== null && _data$SewerageConnect145 !== void 0 && (_data$SewerageConnect146 = _data$SewerageConnect145[0]) !== null && _data$SewerageConnect146 !== void 0 && _data$SewerageConnect146.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
30942
+ })) : null, !(data !== null && data !== void 0 && (_data$WaterConnection152 = data.WaterConnection) !== null && _data$WaterConnection152 !== void 0 && (_data$WaterConnection153 = _data$WaterConnection152[0]) !== null && _data$WaterConnection153 !== void 0 && _data$WaterConnection153.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection154 = data.WaterConnection) !== null && _data$WaterConnection154 !== void 0 && (_data$WaterConnection155 = _data$WaterConnection154[0]) !== null && _data$WaterConnection155 !== void 0 && _data$WaterConnection155.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect147 = data.SewerageConnections) !== null && _data$SewerageConnect147 !== void 0 && (_data$SewerageConnect148 = _data$SewerageConnect147[0]) !== null && _data$SewerageConnect148 !== void 0 && _data$SewerageConnect148.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect149 = data.SewerageConnections) !== null && _data$SewerageConnect149 !== void 0 && (_data$SewerageConnect150 = _data$SewerageConnect149[0]) !== null && _data$SewerageConnect150 !== void 0 && _data$SewerageConnect150.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
31017
30943
  to: {
31018
- pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)),
30944
+ pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection156 = data.WaterConnection) === null || _data$WaterConnection156 === void 0 ? void 0 : (_data$WaterConnection157 = _data$WaterConnection156[0]) === null || _data$WaterConnection157 === void 0 ? void 0 : _data$WaterConnection157.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect151 = data.SewerageConnections) === null || _data$SewerageConnect151 === void 0 ? void 0 : (_data$SewerageConnect152 = _data$SewerageConnect151[0]) === null || _data$SewerageConnect152 === void 0 ? void 0 : _data$SewerageConnect152.tenantId)),
31019
30945
  state: {
31020
- id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : _data$WaterConnection155.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : _data$SewerageConnect150.applicationNo))
30946
+ id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection158 = data.WaterConnection) === null || _data$WaterConnection158 === void 0 ? void 0 : (_data$WaterConnection159 = _data$WaterConnection158[0]) === null || _data$WaterConnection159 === void 0 ? void 0 : _data$WaterConnection159.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect153 = data.SewerageConnections) === null || _data$SewerageConnect153 === void 0 ? void 0 : (_data$SewerageConnect154 = _data$SewerageConnect153[0]) === null || _data$SewerageConnect154 === void 0 ? void 0 : _data$SewerageConnect154.applicationNo))
31021
30947
  }
31022
30948
  }
31023
30949
  }, /*#__PURE__*/React.createElement(SubmitBar, {
31024
30950
  label: t("COMMON_EDIT")
31025
- })) : null, data !== null && data !== void 0 && (_data$WaterConnection156 = data.WaterConnection) !== null && _data$WaterConnection156 !== void 0 && (_data$WaterConnection157 = _data$WaterConnection156[0]) !== null && _data$WaterConnection157 !== void 0 && _data$WaterConnection157.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection158 = data.WaterConnection) !== null && _data$WaterConnection158 !== void 0 && (_data$WaterConnection159 = _data$WaterConnection158[0]) !== null && _data$WaterConnection159 !== void 0 && _data$WaterConnection159.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect151 = data.SewerageConnections) !== null && _data$SewerageConnect151 !== void 0 && (_data$SewerageConnect152 = _data$SewerageConnect151[0]) !== null && _data$SewerageConnect152 !== void 0 && _data$SewerageConnect152.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect153 = data.SewerageConnections) !== null && _data$SewerageConnect153 !== void 0 && (_data$SewerageConnect154 = _data$SewerageConnect153[0]) !== null && _data$SewerageConnect154 !== void 0 && _data$SewerageConnect154.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
30951
+ })) : null, data !== null && data !== void 0 && (_data$WaterConnection160 = data.WaterConnection) !== null && _data$WaterConnection160 !== void 0 && (_data$WaterConnection161 = _data$WaterConnection160[0]) !== null && _data$WaterConnection161 !== void 0 && _data$WaterConnection161.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection162 = data.WaterConnection) !== null && _data$WaterConnection162 !== void 0 && (_data$WaterConnection163 = _data$WaterConnection162[0]) !== null && _data$WaterConnection163 !== void 0 && _data$WaterConnection163.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect155 = data.SewerageConnections) !== null && _data$SewerageConnect155 !== void 0 && (_data$SewerageConnect156 = _data$SewerageConnect155[0]) !== null && _data$SewerageConnect156 !== void 0 && _data$SewerageConnect156.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect157 = data.SewerageConnections) !== null && _data$SewerageConnect157 !== void 0 && (_data$SewerageConnect158 = _data$SewerageConnect157[0]) !== null && _data$SewerageConnect158 !== void 0 && _data$SewerageConnect158.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
31026
30952
  to: {
31027
30953
  pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
31028
30954
  state: {
31029
- id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection160 = data.WaterConnection) === null || _data$WaterConnection160 === void 0 ? void 0 : (_data$WaterConnection161 = _data$WaterConnection160[0]) === null || _data$WaterConnection161 === void 0 ? void 0 : _data$WaterConnection161.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect155 = data.SewerageConnections) === null || _data$SewerageConnect155 === void 0 ? void 0 : (_data$SewerageConnect156 = _data$SewerageConnect155[0]) === null || _data$SewerageConnect156 === void 0 ? void 0 : _data$SewerageConnect156.applicationNo))
30955
+ id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection164 = data.WaterConnection) === null || _data$WaterConnection164 === void 0 ? void 0 : (_data$WaterConnection165 = _data$WaterConnection164[0]) === null || _data$WaterConnection165 === void 0 ? void 0 : _data$WaterConnection165.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect159 = data.SewerageConnections) === null || _data$SewerageConnect159 === void 0 ? void 0 : (_data$SewerageConnect160 = _data$SewerageConnect159[0]) === null || _data$SewerageConnect160 === void 0 ? void 0 : _data$SewerageConnect160.applicationNo))
31030
30956
  }
31031
30957
  }
31032
30958
  }, /*#__PURE__*/React.createElement(SubmitBar, {
31033
30959
  label: t("RESUBMIT_APPLICATION"),
31034
30960
  onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
31035
- applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect157 = data.SewerageConnections) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157[0],
30961
+ applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect161 = data.SewerageConnections) === null || _data$SewerageConnect161 === void 0 ? void 0 : _data$SewerageConnect161[0],
31036
30962
  serviceType: "SEWERAGE",
31037
30963
  WSDisconnectionForm: {
31038
- type: data !== null && data !== void 0 && (_data$SewerageConnect158 = data.SewerageConnections) !== null && _data$SewerageConnect158 !== void 0 && (_data$SewerageConnect159 = _data$SewerageConnect158[0]) !== null && _data$SewerageConnect159 !== void 0 && _data$SewerageConnect159.isDisconnectionTemporary ? {
30964
+ type: data !== null && data !== void 0 && (_data$SewerageConnect162 = data.SewerageConnections) !== null && _data$SewerageConnect162 !== void 0 && (_data$SewerageConnect163 = _data$SewerageConnect162[0]) !== null && _data$SewerageConnect163 !== void 0 && _data$SewerageConnect163.isDisconnectionTemporary ? {
31039
30965
  code: "type",
31040
30966
  value: {
31041
30967
  name: "Temporary",
@@ -31052,18 +30978,18 @@ const WSApplicationDetails = () => {
31052
30978
  code: "Permanent"
31053
30979
  }
31054
30980
  },
31055
- date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect160 = data.SewerageConnections) === null || _data$SewerageConnect160 === void 0 ? void 0 : (_data$SewerageConnect161 = _data$SewerageConnect160[0]) === null || _data$SewerageConnect161 === void 0 ? void 0 : _data$SewerageConnect161.dateEffectiveFrom, true),
30981
+ date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.dateEffectiveFrom, true),
31056
30982
  reason: {
31057
30983
  code: "reason",
31058
- value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect162 = data.SewerageConnections) === null || _data$SewerageConnect162 === void 0 ? void 0 : (_data$SewerageConnect163 = _data$SewerageConnect162[0]) === null || _data$SewerageConnect163 === void 0 ? void 0 : _data$SewerageConnect163.disconnectionReason
30984
+ value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect166 = data.SewerageConnections) === null || _data$SewerageConnect166 === void 0 ? void 0 : (_data$SewerageConnect167 = _data$SewerageConnect166[0]) === null || _data$SewerageConnect167 === void 0 ? void 0 : _data$SewerageConnect167.disconnectionReason
31059
30985
  },
31060
- documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.documents
30986
+ documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect168 = data.SewerageConnections) === null || _data$SewerageConnect168 === void 0 ? void 0 : (_data$SewerageConnect169 = _data$SewerageConnect168[0]) === null || _data$SewerageConnect169 === void 0 ? void 0 : _data$SewerageConnect169.documents
31061
30987
  }
31062
30988
  } : {
31063
- applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection162 = data.WaterConnection) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162[0],
30989
+ applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection166 = data.WaterConnection) === null || _data$WaterConnection166 === void 0 ? void 0 : _data$WaterConnection166[0],
31064
30990
  serviceType: "WATER",
31065
30991
  WSDisconnectionForm: {
31066
- type: data !== null && data !== void 0 && (_data$WaterConnection163 = data.WaterConnection) !== null && _data$WaterConnection163 !== void 0 && (_data$WaterConnection164 = _data$WaterConnection163[0]) !== null && _data$WaterConnection164 !== void 0 && _data$WaterConnection164.isDisconnectionTemporary ? {
30992
+ type: data !== null && data !== void 0 && (_data$WaterConnection167 = data.WaterConnection) !== null && _data$WaterConnection167 !== void 0 && (_data$WaterConnection168 = _data$WaterConnection167[0]) !== null && _data$WaterConnection168 !== void 0 && _data$WaterConnection168.isDisconnectionTemporary ? {
31067
30993
  code: "type",
31068
30994
  value: {
31069
30995
  name: "Temporary",
@@ -31080,12 +31006,12 @@ const WSApplicationDetails = () => {
31080
31006
  code: "Permanent"
31081
31007
  }
31082
31008
  },
31083
- date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection165 = data.WaterConnection) === null || _data$WaterConnection165 === void 0 ? void 0 : (_data$WaterConnection166 = _data$WaterConnection165[0]) === null || _data$WaterConnection166 === void 0 ? void 0 : _data$WaterConnection166.dateEffectiveFrom, true),
31009
+ date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection169 = data.WaterConnection) === null || _data$WaterConnection169 === void 0 ? void 0 : (_data$WaterConnection170 = _data$WaterConnection169[0]) === null || _data$WaterConnection170 === void 0 ? void 0 : _data$WaterConnection170.dateEffectiveFrom, true),
31084
31010
  reason: {
31085
31011
  code: "reason",
31086
- value: data === null || data === void 0 ? void 0 : (_data$WaterConnection167 = data.WaterConnection) === null || _data$WaterConnection167 === void 0 ? void 0 : (_data$WaterConnection168 = _data$WaterConnection167[0]) === null || _data$WaterConnection168 === void 0 ? void 0 : _data$WaterConnection168.disconnectionReason
31012
+ value: data === null || data === void 0 ? void 0 : (_data$WaterConnection171 = data.WaterConnection) === null || _data$WaterConnection171 === void 0 ? void 0 : (_data$WaterConnection172 = _data$WaterConnection171[0]) === null || _data$WaterConnection172 === void 0 ? void 0 : _data$WaterConnection172.disconnectionReason
31087
31013
  },
31088
- documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection169 = data.WaterConnection) === null || _data$WaterConnection169 === void 0 ? void 0 : (_data$WaterConnection170 = _data$WaterConnection169[0]) === null || _data$WaterConnection170 === void 0 ? void 0 : _data$WaterConnection170.documents
31014
+ documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection173 = data.WaterConnection) === null || _data$WaterConnection173 === void 0 ? void 0 : (_data$WaterConnection174 = _data$WaterConnection173[0]) === null || _data$WaterConnection174 === void 0 ? void 0 : _data$WaterConnection174.documents
31089
31015
  }
31090
31016
  })
31091
31017
  })) : null)))));
@@ -44537,7 +44463,7 @@ const DueVerification = _ref => {
44537
44463
  });
44538
44464
  }, [applicationData]);
44539
44465
  const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION";
44540
- const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
44466
+ const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
44541
44467
  const columns = useMemo(() => {
44542
44468
  const baseColumns = [{
44543
44469
  Header: t("K No."),
@@ -44742,7 +44668,7 @@ const InspectionInformation = _ref => {
44742
44668
  if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
44743
44669
  applicationData.inspectionInformation.inspectorName = val;
44744
44670
  };
44745
- const readOnly = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
44671
+ const readOnly = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
44746
44672
  return /*#__PURE__*/React.createElement("div", {
44747
44673
  style: {
44748
44674
  marginBottom: "20px"
@@ -45324,9 +45250,9 @@ function ApplicationDetailsContent(_ref) {
45324
45250
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
45325
45251
  documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
45326
45252
  applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
45327
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
45253
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
45328
45254
  applicationData: applicationData
45329
- }), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(InspectionInformation, {
45255
+ }), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(InspectionInformation, {
45330
45256
  applicationData: applicationData
45331
45257
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
45332
45258
  taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
@@ -45969,7 +45895,7 @@ const ApplicationDetails = props => {
45969
45895
  };
45970
45896
 
45971
45897
  const ApplicationDetails$1 = () => {
45972
- var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data37, _workflowDetails$data38, _workflowDetails$data39, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a18, _applicationDetails$a19, _reciept_data$Payment2, _applicationDetails$p11, _applicationDetails$p12, _applicationDetails$p13, _applicationDetails$p14, _applicationDetails$p15, _applicationDetails$p16;
45898
+ var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$p8, _applicationDetails$p9, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a18, _applicationDetails$a19, _reciept_data$Payment2, _applicationDetails$p16, _applicationDetails$p17, _applicationDetails$p18, _applicationDetails$p19, _applicationDetails$p20, _applicationDetails$p21;
45973
45899
  const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
45974
45900
  try {
45975
45901
  let response = null;
@@ -46128,7 +46054,35 @@ const ApplicationDetails$1 = () => {
46128
46054
  };
46129
46055
  let dowloadOptions = [],
46130
46056
  appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.applicationStatus) || "";
46131
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.actionState) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.nextActions) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.forEach(action => {
46057
+ if (workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.data && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p8 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p8 === void 0 ? void 0 : (_applicationDetails$p9 = _applicationDetails$p8[0]) === null || _applicationDetails$p9 === void 0 ? void 0 : _applicationDetails$p9.businessService) === "NewWS1" && appStatus === "PENDING_FOR_BILLING_CLERK_REVIEW") {
46058
+ var _applicationDetails$p0, _applicationDetails$p1, _applicationDetails$p10, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3;
46059
+ const plotArea = Number((_applicationDetails$p0 = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p1 = applicationDetails.propertyDetails) === null || _applicationDetails$p1 === void 0 ? void 0 : (_applicationDetails$p10 = _applicationDetails$p1.additionalDetails) === null || _applicationDetails$p10 === void 0 ? void 0 : _applicationDetails$p10.plotArea) != null ? _applicationDetails$p0 : 0);
46060
+ if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data = workflowDetails.data) !== null && _workflowDetails$data !== void 0 && (_workflowDetails$data2 = _workflowDetails$data.actionState) !== null && _workflowDetails$data2 !== void 0 && _workflowDetails$data2.nextActions) {
46061
+ workflowDetails.data.actionState.nextActions = workflowDetails.data.actionState.nextActions.filter(action => {
46062
+ if (action.action !== "VERIFY_AND_FORWARD") {
46063
+ return true;
46064
+ }
46065
+ if (plotArea > 200) {
46066
+ return action.state === "PENDING_FOR_AE_APPROVAL" || action.applicationStatus === "PENDING_FOR_AE_APPROVAL";
46067
+ }
46068
+ return action.state === "PENDING_FOR_ASO_APPROVAL" || action.applicationStatus === "PENDING_FOR_ASO_APPROVAL";
46069
+ });
46070
+ }
46071
+ if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data3 = workflowDetails.data) !== null && _workflowDetails$data3 !== void 0 && _workflowDetails$data3.nextActions) {
46072
+ workflowDetails.data.nextActions = workflowDetails.data.nextActions.filter(action => {
46073
+ var _action$state;
46074
+ if (action.action !== "VERIFY_AND_FORWARD") {
46075
+ return true;
46076
+ }
46077
+ const targetStateCode = (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.state;
46078
+ if (plotArea > 200) {
46079
+ return targetStateCode === "PENDING_FOR_AE_APPROVAL";
46080
+ }
46081
+ return targetStateCode === "PENDING_FOR_ASO_APPROVAL";
46082
+ });
46083
+ }
46084
+ }
46085
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4.actionState) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.nextActions) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.forEach(action => {
46132
46086
  if ((action === null || action === void 0 ? void 0 : action.action) === "ACTIVATE_CONNECTION") {
46133
46087
  action.redirectionUrll = {
46134
46088
  action: "ACTIVATE_CONNECTION",
@@ -46137,8 +46091,8 @@ const ApplicationDetails$1 = () => {
46137
46091
  };
46138
46092
  }
46139
46093
  if ((action === null || action === void 0 ? void 0 : action.action) === "RESUBMIT_APPLICATION") {
46140
- var _applicationDetails$p8, _servicesMasterData$w, _userConfig$, _userConfig$2;
46141
- let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p8 = applicationDetails.propertyDetails) === null || _applicationDetails$p8 === void 0 ? void 0 : _applicationDetails$p8.propertyId);
46094
+ var _applicationDetails$p11, _servicesMasterData$w, _userConfig$, _userConfig$2;
46095
+ let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p11 = applicationDetails.propertyDetails) === null || _applicationDetails$p11 === void 0 ? void 0 : _applicationDetails$p11.propertyId);
46142
46096
  const userConfig = (servicesMasterData === null || servicesMasterData === void 0 ? void 0 : (_servicesMasterData$w = servicesMasterData["ws-services-masters"]) === null || _servicesMasterData$w === void 0 ? void 0 : _servicesMasterData$w.WSEditApplicationByConfigUser) || [];
46143
46097
  const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$ = userConfig[0]) === null || _userConfig$ === void 0 ? void 0 : _userConfig$.roles) || [];
46144
46098
  const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$2 = userConfig[0]) === null || _userConfig$2 === void 0 ? void 0 : _userConfig$2.status;
@@ -46148,8 +46102,8 @@ const ApplicationDetails$1 = () => {
46148
46102
  if (isFieldInspector) return false;else return true;
46149
46103
  });
46150
46104
  if (isFieldInspector && appStatus === mdmsApplicationStatus) {
46151
- var _applicationDetails$p9;
46152
- pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p9 = applicationDetails.propertyDetails) === null || _applicationDetails$p9 === void 0 ? void 0 : _applicationDetails$p9.propertyId);
46105
+ var _applicationDetails$p12;
46106
+ pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p12 = applicationDetails.propertyDetails) === null || _applicationDetails$p12 === void 0 ? void 0 : _applicationDetails$p12.propertyId);
46153
46107
  }
46154
46108
  action.redirectionUrll = {
46155
46109
  action: "ACTIVATE_CONNECTION",
@@ -46161,24 +46115,18 @@ const ApplicationDetails$1 = () => {
46161
46115
  };
46162
46116
  }
46163
46117
  if ((action === null || action === void 0 ? void 0 : action.action) === "SUBMIT_APPLICATION") {
46164
- var _applicationDetails$p0;
46118
+ var _applicationDetails$p13;
46165
46119
  action.redirectionUrll = {
46166
46120
  action: "ACTIVATE_CONNECTION",
46167
- pathname: "/digit-ui/employee/ws/modify-application-edit?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p0 = applicationDetails.propertyDetails) === null || _applicationDetails$p0 === void 0 ? void 0 : _applicationDetails$p0.propertyId),
46121
+ pathname: "/digit-ui/employee/ws/modify-application-edit?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p13 = applicationDetails.propertyDetails) === null || _applicationDetails$p13 === void 0 ? void 0 : _applicationDetails$p13.propertyId),
46168
46122
  state: applicationDetails
46169
46123
  };
46170
46124
  }
46171
46125
  });
46172
- if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4.nextActions) === null || _workflowDetails$data5 === void 0 ? void 0 : _workflowDetails$data5.length) > 0 && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.actionState) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.nextActions) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.length) > 0 && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data9 = workflowDetails.data) !== null && _workflowDetails$data9 !== void 0 && (_workflowDetails$data0 = _workflowDetails$data9.actionState) !== null && _workflowDetails$data0 !== void 0 && (_workflowDetails$data1 = _workflowDetails$data0.nextActions) !== null && _workflowDetails$data1 !== void 0 && _workflowDetails$data1.find(e => e.action === "EDIT")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data10 = workflowDetails.data) !== null && _workflowDetails$data10 !== void 0 && (_workflowDetails$data11 = _workflowDetails$data10.actionState) !== null && _workflowDetails$data11 !== void 0 && (_workflowDetails$data12 = _workflowDetails$data11.nextActions) !== null && _workflowDetails$data12 !== void 0 && _workflowDetails$data12.find(e => e.action === "RESUBMIT_APPLICATION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data13 = workflowDetails.data) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.actionState) !== null && _workflowDetails$data14 !== void 0 && (_workflowDetails$data15 = _workflowDetails$data14.nextActions) !== null && _workflowDetails$data15 !== void 0 && _workflowDetails$data15.find(e => e.action === "ACTIVATE_CONNECTION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data16 = workflowDetails.data) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.actionState) !== null && _workflowDetails$data17 !== void 0 && (_workflowDetails$data18 = _workflowDetails$data17.nextActions) !== null && _workflowDetails$data18 !== void 0 && _workflowDetails$data18.find(e => e.action === "SUBMIT_APPLICATION"))) {
46173
- var _workflowDetails$data19, _workflowDetails$data20;
46174
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19.nextActions) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.forEach(data => {
46175
- if (data.action === "EDIT") workflowDetails.data.actionState.nextActions.push(data);
46176
- });
46177
- }
46178
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.actionState) === null || _workflowDetails$data22 === void 0 ? void 0 : (_workflowDetails$data23 = _workflowDetails$data22.nextActions) === null || _workflowDetails$data23 === void 0 ? void 0 : _workflowDetails$data23.forEach(action => {
46126
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.actionState) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.nextActions) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.forEach(action => {
46179
46127
  if ((action === null || action === void 0 ? void 0 : action.action) === "EDIT") {
46180
- var _applicationDetails$p1, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
46181
- let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p1 = applicationDetails.propertyDetails) === null || _applicationDetails$p1 === void 0 ? void 0 : _applicationDetails$p1.propertyId);
46128
+ var _applicationDetails$p14, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
46129
+ let pathName = "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p14 = applicationDetails.propertyDetails) === null || _applicationDetails$p14 === void 0 ? void 0 : _applicationDetails$p14.propertyId);
46182
46130
  const userConfig = (servicesMasterData === null || servicesMasterData === void 0 ? void 0 : (_servicesMasterData$w2 = servicesMasterData["ws-services-masters"]) === null || _servicesMasterData$w2 === void 0 ? void 0 : _servicesMasterData$w2.WSEditApplicationByConfigUser) || [];
46183
46131
  const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$3 = userConfig[0]) === null || _userConfig$3 === void 0 ? void 0 : _userConfig$3.roles) || [];
46184
46132
  const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$4 = userConfig[0]) === null || _userConfig$4 === void 0 ? void 0 : _userConfig$4.status;
@@ -46188,8 +46136,8 @@ const ApplicationDetails$1 = () => {
46188
46136
  if (isFieldInspector) return false;else return true;
46189
46137
  });
46190
46138
  if (isFieldInspector && appStatus === mdmsApplicationStatus) {
46191
- var _applicationDetails$p10;
46192
- pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p10 = applicationDetails.propertyDetails) === null || _applicationDetails$p10 === void 0 ? void 0 : _applicationDetails$p10.propertyId);
46139
+ var _applicationDetails$p15;
46140
+ pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p15 = applicationDetails.propertyDetails) === null || _applicationDetails$p15 === void 0 ? void 0 : _applicationDetails$p15.propertyId);
46193
46141
  }
46194
46142
  action.redirectionUrll = {
46195
46143
  action: "ACTIVATE_CONNECTION",
@@ -46201,27 +46149,27 @@ const ApplicationDetails$1 = () => {
46201
46149
  };
46202
46150
  }
46203
46151
  });
46204
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data24 = workflowDetails.data) === null || _workflowDetails$data24 === void 0 ? void 0 : (_workflowDetails$data25 = _workflowDetails$data24.nextActions) === null || _workflowDetails$data25 === void 0 ? void 0 : _workflowDetails$data25.forEach(action => {
46152
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data0 = workflowDetails.data) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0.nextActions) === null || _workflowDetails$data1 === void 0 ? void 0 : _workflowDetails$data1.forEach(action => {
46205
46153
  if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
46206
46154
  action.isToast = true;
46207
46155
  action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
46208
46156
  }
46209
46157
  });
46210
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data26 = workflowDetails.data) === null || _workflowDetails$data26 === void 0 ? void 0 : (_workflowDetails$data27 = _workflowDetails$data26.actionState) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.nextActions) === null || _workflowDetails$data28 === void 0 ? void 0 : _workflowDetails$data28.forEach(action => {
46158
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data10 = workflowDetails.data) === null || _workflowDetails$data10 === void 0 ? void 0 : (_workflowDetails$data11 = _workflowDetails$data10.actionState) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.nextActions) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.forEach(action => {
46211
46159
  if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
46212
46160
  action.isToast = true;
46213
46161
  action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
46214
46162
  }
46215
46163
  });
46216
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data29 = workflowDetails.data) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.nextActions) === null || _workflowDetails$data30 === void 0 ? void 0 : _workflowDetails$data30.forEach(action => {
46164
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data13 = workflowDetails.data) === null || _workflowDetails$data13 === void 0 ? void 0 : (_workflowDetails$data14 = _workflowDetails$data13.nextActions) === null || _workflowDetails$data14 === void 0 ? void 0 : _workflowDetails$data14.forEach(action => {
46217
46165
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
46218
- var _workflowDetails$data31, _workflowDetails$data32, _workflowDetails$data33, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36;
46219
- if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data31 = workflowDetails.data) === null || _workflowDetails$data31 === void 0 ? void 0 : (_workflowDetails$data32 = _workflowDetails$data31.processInstances) === null || _workflowDetails$data32 === void 0 ? void 0 : (_workflowDetails$data33 = _workflowDetails$data32[0]) === null || _workflowDetails$data33 === void 0 ? void 0 : _workflowDetails$data33.businessService) === "WSReconnection") {
46166
+ var _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data20;
46167
+ if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data15 = workflowDetails.data) === null || _workflowDetails$data15 === void 0 ? void 0 : (_workflowDetails$data16 = _workflowDetails$data15.processInstances) === null || _workflowDetails$data16 === void 0 ? void 0 : (_workflowDetails$data17 = _workflowDetails$data16[0]) === null || _workflowDetails$data17 === void 0 ? void 0 : _workflowDetails$data17.businessService) === "WSReconnection") {
46220
46168
  action.redirectionUrll = {
46221
46169
  pathname: "WSReconnection/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46222
46170
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
46223
46171
  };
46224
- } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data34 = workflowDetails.data) === null || _workflowDetails$data34 === void 0 ? void 0 : (_workflowDetails$data35 = _workflowDetails$data34.processInstances) === null || _workflowDetails$data35 === void 0 ? void 0 : (_workflowDetails$data36 = _workflowDetails$data35[0]) === null || _workflowDetails$data36 === void 0 ? void 0 : _workflowDetails$data36.businessService) === "SWReconnection") {
46172
+ } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data18 = workflowDetails.data) === null || _workflowDetails$data18 === void 0 ? void 0 : (_workflowDetails$data19 = _workflowDetails$data18.processInstances) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19[0]) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.businessService) === "SWReconnection") {
46225
46173
  action.redirectionUrll = {
46226
46174
  pathname: "SWReconnection/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46227
46175
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
@@ -46234,15 +46182,15 @@ const ApplicationDetails$1 = () => {
46234
46182
  }
46235
46183
  }
46236
46184
  });
46237
- workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data37 = workflowDetails.data) === null || _workflowDetails$data37 === void 0 ? void 0 : (_workflowDetails$data38 = _workflowDetails$data37.actionState) === null || _workflowDetails$data38 === void 0 ? void 0 : (_workflowDetails$data39 = _workflowDetails$data38.nextActions) === null || _workflowDetails$data39 === void 0 ? void 0 : _workflowDetails$data39.forEach(action => {
46185
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.actionState) === null || _workflowDetails$data22 === void 0 ? void 0 : (_workflowDetails$data23 = _workflowDetails$data22.nextActions) === null || _workflowDetails$data23 === void 0 ? void 0 : _workflowDetails$data23.forEach(action => {
46238
46186
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
46239
- var _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45;
46240
- if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data40 = workflowDetails.data) === null || _workflowDetails$data40 === void 0 ? void 0 : (_workflowDetails$data41 = _workflowDetails$data40.processInstances) === null || _workflowDetails$data41 === void 0 ? void 0 : (_workflowDetails$data42 = _workflowDetails$data41[0]) === null || _workflowDetails$data42 === void 0 ? void 0 : _workflowDetails$data42.businessService) === "WSReconnection") {
46187
+ var _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29;
46188
+ if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data24 = workflowDetails.data) === null || _workflowDetails$data24 === void 0 ? void 0 : (_workflowDetails$data25 = _workflowDetails$data24.processInstances) === null || _workflowDetails$data25 === void 0 ? void 0 : (_workflowDetails$data26 = _workflowDetails$data25[0]) === null || _workflowDetails$data26 === void 0 ? void 0 : _workflowDetails$data26.businessService) === "WSReconnection") {
46241
46189
  action.redirectionUrll = {
46242
46190
  pathname: "WSReconnection/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46243
46191
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
46244
46192
  };
46245
- } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data43 = workflowDetails.data) === null || _workflowDetails$data43 === void 0 ? void 0 : (_workflowDetails$data44 = _workflowDetails$data43.processInstances) === null || _workflowDetails$data44 === void 0 ? void 0 : (_workflowDetails$data45 = _workflowDetails$data44[0]) === null || _workflowDetails$data45 === void 0 ? void 0 : _workflowDetails$data45.businessService) === "SWReconnection") {
46193
+ } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data27 = workflowDetails.data) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.processInstances) === null || _workflowDetails$data28 === void 0 ? void 0 : (_workflowDetails$data29 = _workflowDetails$data28[0]) === null || _workflowDetails$data29 === void 0 ? void 0 : _workflowDetails$data29.businessService) === "SWReconnection") {
46246
46194
  action.redirectionUrll = {
46247
46195
  pathname: "SWReconnection/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo) + "/" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "?tenantId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId) + "&ISWSAPP&applicationNumber=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo),
46248
46196
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
@@ -46412,12 +46360,12 @@ const ApplicationDetails$1 = () => {
46412
46360
  mutate: mutate,
46413
46361
  id: "timeline",
46414
46362
  workflowDetails: workflowDetails,
46415
- businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p11 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p11 === void 0 ? void 0 : (_applicationDetails$p12 = _applicationDetails$p11[0]) === null || _applicationDetails$p12 === void 0 ? void 0 : (_applicationDetails$p13 = _applicationDetails$p12.businessService) === null || _applicationDetails$p13 === void 0 ? void 0 : _applicationDetails$p13.toUpperCase(),
46363
+ businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p16 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p16 === void 0 ? void 0 : (_applicationDetails$p17 = _applicationDetails$p16[0]) === null || _applicationDetails$p17 === void 0 ? void 0 : (_applicationDetails$p18 = _applicationDetails$p17.businessService) === null || _applicationDetails$p18 === void 0 ? void 0 : _applicationDetails$p18.toUpperCase(),
46416
46364
  moduleCode: "WS",
46417
46365
  showToast: showToast,
46418
46366
  setShowToast: setShowToast,
46419
46367
  closeToast: closeToast,
46420
- timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p14 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p14 === void 0 ? void 0 : (_applicationDetails$p15 = _applicationDetails$p14[0]) === null || _applicationDetails$p15 === void 0 ? void 0 : (_applicationDetails$p16 = _applicationDetails$p15.businessService) === null || _applicationDetails$p16 === void 0 ? void 0 : _applicationDetails$p16.toUpperCase()) + "_",
46368
+ timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p19 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p19 === void 0 ? void 0 : (_applicationDetails$p20 = _applicationDetails$p19[0]) === null || _applicationDetails$p20 === void 0 ? void 0 : (_applicationDetails$p21 = _applicationDetails$p20.businessService) === null || _applicationDetails$p21 === void 0 ? void 0 : _applicationDetails$p21.toUpperCase()) + "_",
46421
46369
  oldValue: res,
46422
46370
  isInfoLabel: checkforPrivacyenablement(),
46423
46371
  clearDataDetails: clearDataDetails,
@@ -46740,17 +46688,7 @@ const GetConnectionDetails = () => {
46740
46688
  style: {
46741
46689
  display: "flex"
46742
46690
  }
46743
- }, /*#__PURE__*/React.createElement("div", {
46744
- style: {
46745
- width: "80%"
46746
- }
46747
- }, /*#__PURE__*/React.createElement(Header, {
46748
- styles: {
46749
- marginLeft: "0px",
46750
- paddingTop: "10px",
46751
- fontSize: "32px"
46752
- }
46753
- }, t("WS_CONNECTION_DETAILS"))), dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
46691
+ }, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
46754
46692
  style: {
46755
46693
  maxWidth: "100% !imnportant",
46756
46694
  zIndex: "10"
@@ -46877,7 +46815,6 @@ const ActivateConnection = () => {
46877
46815
  isAppDetailsPage = _useState5[0],
46878
46816
  setIsAppDetailsPage = _useState5[1];
46879
46817
  const _React$useState = React.useState({
46880
- head: "",
46881
46818
  body: []
46882
46819
  }),
46883
46820
  config = _React$useState[0],
@@ -46910,7 +46847,7 @@ const ActivateConnection = () => {
46910
46847
  } : "",
46911
46848
  waterSource: (_state7 = state) !== null && _state7 !== void 0 && (_state7$data = _state7.data) !== null && _state7$data !== void 0 && _state7$data.waterSource ? {
46912
46849
  code: (_state8 = state) === null || _state8 === void 0 ? void 0 : (_state8$data = _state8.data) === null || _state8$data === void 0 ? void 0 : _state8$data.waterSource,
46913
- i18nKey: "WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state9 = state) === null || _state9 === void 0 ? void 0 : (_state9$data = _state9.data) === null || _state9$data === void 0 ? void 0 : (_state9$data$waterSou = _state9$data.waterSource) === null || _state9$data$waterSou === void 0 ? void 0 : (_state9$data$waterSou2 = _state9$data$waterSou.split('.')[0]) === null || _state9$data$waterSou2 === void 0 ? void 0 : _state9$data$waterSou2.toUpperCase(), " ", "_")
46850
+ i18nKey: "WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state9 = state) === null || _state9 === void 0 ? void 0 : (_state9$data = _state9.data) === null || _state9$data === void 0 ? void 0 : (_state9$data$waterSou = _state9$data.waterSource) === null || _state9$data$waterSou === void 0 ? void 0 : (_state9$data$waterSou2 = _state9$data$waterSou.split(".")[0]) === null || _state9$data$waterSou2 === void 0 ? void 0 : _state9$data$waterSou2.toUpperCase(), " ", "_")
46914
46851
  } : "",
46915
46852
  sourceSubData: (_state0 = state) !== null && _state0 !== void 0 && (_state0$data = _state0.data) !== null && _state0$data !== void 0 && _state0$data.waterSource ? {
46916
46853
  code: (_state1 = state) === null || _state1 === void 0 ? void 0 : (_state1$data = _state1.data) === null || _state1$data === void 0 ? void 0 : _state1$data.waterSource,
@@ -46959,9 +46896,18 @@ const ActivateConnection = () => {
46959
46896
  }, []);
46960
46897
  useEffect(() => {
46961
46898
  if (!isLoading && newConfig && Array.isArray(newConfig)) {
46962
- const config = newConfig.find(conf => conf.hideInCitizen);
46963
- if (config) {
46964
- setConfig(config);
46899
+ const configObj = newConfig.find(conf => conf.hideInCitizen);
46900
+ if (configObj && configObj.body) {
46901
+ let flattenedBody = [];
46902
+ configObj.body.forEach(section => {
46903
+ if (section.body && Array.isArray(section.body)) {
46904
+ flattenedBody = [...flattenedBody, ...section.body];
46905
+ }
46906
+ });
46907
+ setConfig([{
46908
+ head: "WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION",
46909
+ body: flattenedBody
46910
+ }]);
46965
46911
  }
46966
46912
  }
46967
46913
  }, [newConfig]);
@@ -47094,19 +47040,37 @@ const ActivateConnection = () => {
47094
47040
  if (isEnableLoader || isLoading || isappdetailsLoading) {
47095
47041
  return /*#__PURE__*/React.createElement(Loader, null);
47096
47042
  }
47097
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormComposer, {
47098
- config: config.body,
47043
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
47044
+ className: "employee-form-section-wrapper"
47045
+ }, /*#__PURE__*/React.createElement(VerticalTimeline, {
47046
+ config: [{
47047
+ timeLine: [{
47048
+ actions: t("WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION"),
47049
+ currentStep: 1
47050
+ }]
47051
+ }],
47052
+ showFinalStep: false
47053
+ }), /*#__PURE__*/React.createElement(FormComposer, {
47054
+ config: config.map(config => {
47055
+ return _extends({}, config, {
47056
+ isCollapsible: true,
47057
+ isDefaultOpen: true,
47058
+ body: config.body
47059
+ });
47060
+ }),
47099
47061
  userType: "employee",
47100
47062
  defaultValues: defaultValues,
47101
47063
  onSubmit: onSubmit,
47102
47064
  label: t("WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION"),
47103
- onFormValueChange: onFormValueChange
47065
+ onFormValueChange: onFormValueChange,
47066
+ noBreakLine: true,
47067
+ noCard: true
47104
47068
  }), showToast && /*#__PURE__*/React.createElement(Toast, {
47105
47069
  error: showToast.key,
47106
47070
  label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
47107
47071
  warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
47108
47072
  onClose: closeToast
47109
- }));
47073
+ })));
47110
47074
  };
47111
47075
 
47112
47076
  const ApplicationDetailsBillAmendment = () => {
@@ -47617,7 +47581,7 @@ const EditApplication$1 = () => {
47617
47581
  };
47618
47582
 
47619
47583
  const ConsumptionDetails = _ref => {
47620
- var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _details$4, _details$5;
47584
+ var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _details$4, _details$5;
47621
47585
  const _useTranslation = useTranslation(),
47622
47586
  t = _useTranslation.t;
47623
47587
  const user = Digit.UserService.getUser();
@@ -47721,7 +47685,7 @@ const ConsumptionDetails = _ref => {
47721
47685
  return dateString;
47722
47686
  }
47723
47687
  };
47724
- const getBillingPeriodFromMdms = mdmsBillingPeriod === null || mdmsBillingPeriod === void 0 ? void 0 : (_mdmsBillingPeriod$Md = mdmsBillingPeriod.MdmsRes) === null || _mdmsBillingPeriod$Md === void 0 ? void 0 : (_mdmsBillingPeriod$Md2 = _mdmsBillingPeriod$Md["ws-services-masters"]) === null || _mdmsBillingPeriod$Md2 === void 0 ? void 0 : _mdmsBillingPeriod$Md2.billingPeriod.filter(e => e.connectionType === "Metered");
47688
+ const getBillingPeriodFromMdms = mdmsBillingPeriod === null || mdmsBillingPeriod === void 0 ? void 0 : (_mdmsBillingPeriod$Md = mdmsBillingPeriod.MdmsRes) === null || _mdmsBillingPeriod$Md === void 0 ? void 0 : (_mdmsBillingPeriod$Md2 = _mdmsBillingPeriod$Md["ws-services-masters"]) === null || _mdmsBillingPeriod$Md2 === void 0 ? void 0 : (_mdmsBillingPeriod$Md3 = _mdmsBillingPeriod$Md2.billingPeriod) === null || _mdmsBillingPeriod$Md3 === void 0 ? void 0 : _mdmsBillingPeriod$Md3.filter(e => e.connectionType === "Metered");
47725
47689
  const popUp = () => {
47726
47690
  var _response$meterReadin, _response$meterReadin2;
47727
47691
  setOpenModal(true);
@@ -47827,7 +47791,7 @@ const ConsumptionDetails = _ref => {
47827
47791
  return Promise.reject(e);
47828
47792
  }
47829
47793
  };
47830
- let optionsList = mdmsMeterStatus === null || mdmsMeterStatus === void 0 ? void 0 : (_mdmsMeterStatus$Mdms = mdmsMeterStatus.MdmsRes) === null || _mdmsMeterStatus$Mdms === void 0 ? void 0 : (_mdmsMeterStatus$Mdms2 = _mdmsMeterStatus$Mdms["ws-services-calculation"]) === null || _mdmsMeterStatus$Mdms2 === void 0 ? void 0 : _mdmsMeterStatus$Mdms2.MeterStatus.map(status => ({
47794
+ let optionsList = mdmsMeterStatus === null || mdmsMeterStatus === void 0 ? void 0 : (_mdmsMeterStatus$Mdms = mdmsMeterStatus.MdmsRes) === null || _mdmsMeterStatus$Mdms === void 0 ? void 0 : (_mdmsMeterStatus$Mdms2 = _mdmsMeterStatus$Mdms["ws-services-calculation"]) === null || _mdmsMeterStatus$Mdms2 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms3 = _mdmsMeterStatus$Mdms2.MeterStatus) === null || _mdmsMeterStatus$Mdms3 === void 0 ? void 0 : _mdmsMeterStatus$Mdms3.map(status => ({
47831
47795
  code: status,
47832
47796
  i18nKey: "WS_SERVICES_CALCULATION_METERSTATUS_" + Digit.Utils.locale.getTransformedLocale(status)
47833
47797
  }));