@djb25/digit-ui-module-ws 1.0.54 → 1.0.56

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);
@@ -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
  }),
@@ -9713,7 +9715,7 @@ const WSCalculation = _ref => {
9713
9715
  const watchPropertyCategory = watch("useDetails.propertyCategory");
9714
9716
  const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
9715
9717
  const watchColonyName = watch("useDetails.colonyName");
9716
- const isCalculateButtonEnabled = watchCategoryType && watchPropertyCategory && watchPropertyType && watchWaterConnectionUsageType && watchColonyName && !calculationData;
9718
+ const isCalculateButtonEnabled = watchCategoryType && watchPropertyCategory && watchPropertyType && watchWaterConnectionUsageType && watchColonyName;
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";
@@ -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);
@@ -10357,7 +10360,21 @@ const WSCalculation = _ref => {
10357
10360
  name: "useDetails.servantQuarterArea"
10358
10361
  }))) : 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
10362
  style: errorStyle
10360
- }, errors.useDetails.servantQuarterArea.message))), /*#__PURE__*/React.createElement("div", {
10363
+ }, errors.useDetails.servantQuarterArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", {
10364
+ className: "form-field"
10365
+ }, /*#__PURE__*/React.createElement(Controller, {
10366
+ control: control,
10367
+ name: "useDetails.is12ABCertificate",
10368
+ render: _ref3 => {
10369
+ let value = _ref3.value,
10370
+ onChange = _ref3.onChange;
10371
+ return /*#__PURE__*/React.createElement(CheckBox, {
10372
+ checked: value,
10373
+ onChange: e => onChange(e.target.checked),
10374
+ label: t("WS_12_AB_CERTIFICATE_LABEL")
10375
+ });
10376
+ }
10377
+ }))))), /*#__PURE__*/React.createElement("div", {
10361
10378
  style: {
10362
10379
  display: "flex",
10363
10380
  marginTop: "24px",
@@ -15124,7 +15141,7 @@ const WSActivationConnectionDetails = _ref => {
15124
15141
  }, commonProps)))));
15125
15142
  };
15126
15143
  const ConnectionDetails$2 = _props => {
15127
- var _errors$connectionTyp2, _errors$waterSource2, _errors$sourceSubData2, _errors$pipeSize2, _errors$noOfTaps2, _errors$noOfWaterClos2, _errors$noOfToilets2;
15144
+ 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
15145
  const connectionDetail = _props.connectionDetail,
15129
15146
  focusIndex = _props.focusIndex,
15130
15147
  setFocusIndex = _props.setFocusIndex,
@@ -15191,35 +15208,17 @@ const ConnectionDetails$2 = _props => {
15191
15208
  }
15192
15209
  }, [errors]);
15193
15210
  const errorStyle = {
15194
- width: "70%",
15195
- marginLeft: "30%",
15211
+ width: "100%",
15212
+ marginLeft: "0px",
15196
15213
  fontSize: "12px",
15197
15214
  marginTop: "-21px"
15198
15215
  };
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", {
15216
+ 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
15217
  className: "field"
15211
15218
  }, /*#__PURE__*/React.createElement(TextInput, {
15212
15219
  disabled: true,
15213
15220
  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, {
15221
+ }))) : 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
15222
  control: control,
15224
15223
  name: "connectionType",
15225
15224
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.connectionType,
@@ -15243,17 +15242,9 @@ const ConnectionDetails$2 = _props => {
15243
15242
  t: t
15244
15243
  });
15245
15244
  }
15246
- })), localFormState.touched.connectionType ? /*#__PURE__*/React.createElement(CardLabelError, {
15245
+ }), 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
15246
  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, {
15247
+ }, " ", 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
15248
  control: control,
15258
15249
  name: "waterSource",
15259
15250
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterSource,
@@ -15293,17 +15284,9 @@ const ConnectionDetails$2 = _props => {
15293
15284
  t: t
15294
15285
  });
15295
15286
  }
15296
- })), localFormState.touched.waterSource ? /*#__PURE__*/React.createElement(CardLabelError, {
15287
+ }), 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
15288
  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, {
15289
+ }, " ", 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
15290
  control: control,
15308
15291
  name: "sourceSubData",
15309
15292
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.sourceSubData,
@@ -15327,17 +15310,9 @@ const ConnectionDetails$2 = _props => {
15327
15310
  t: t
15328
15311
  });
15329
15312
  }
15330
- })), localFormState.touched.sourceSubData ? /*#__PURE__*/React.createElement(CardLabelError, {
15313
+ }), 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
15314
  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, {
15315
+ }, " ", 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
15316
  control: control,
15342
15317
  name: "pipeSize",
15343
15318
  defaultValue: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.pipeSize,
@@ -15361,17 +15336,9 @@ const ConnectionDetails$2 = _props => {
15361
15336
  t: t
15362
15337
  });
15363
15338
  }
15364
- })), localFormState.touched.pipeSize ? /*#__PURE__*/React.createElement(CardLabelError, {
15339
+ }), 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
15340
  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", {
15341
+ }, " ", 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
15342
  className: "field"
15376
15343
  }, /*#__PURE__*/React.createElement(Controller, {
15377
15344
  control: control,
@@ -15403,17 +15370,9 @@ const ConnectionDetails$2 = _props => {
15403
15370
  onBlur: props.onBlur
15404
15371
  });
15405
15372
  }
15406
- }))), localFormState.touched.noOfTaps ? /*#__PURE__*/React.createElement(CardLabelError, {
15373
+ })), 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
15374
  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", {
15375
+ }, " ", 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
15376
  className: "field"
15418
15377
  }, /*#__PURE__*/React.createElement(Controller, {
15419
15378
  control: control,
@@ -15445,17 +15404,9 @@ const ConnectionDetails$2 = _props => {
15445
15404
  onBlur: props.onBlur
15446
15405
  });
15447
15406
  }
15448
- }))), localFormState.touched.noOfWaterClosets ? /*#__PURE__*/React.createElement(CardLabelError, {
15407
+ })), 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
15408
  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", {
15409
+ }, " ", 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
15410
  className: "field"
15460
15411
  }, /*#__PURE__*/React.createElement(Controller, {
15461
15412
  control: control,
@@ -15487,9 +15438,9 @@ const ConnectionDetails$2 = _props => {
15487
15438
  onBlur: props.onBlur
15488
15439
  });
15489
15440
  }
15490
- }))), localFormState.touched.noOfToilets ? /*#__PURE__*/React.createElement(CardLabelError, {
15441
+ })), 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
15442
  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)));
15443
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$noOfToilets3 = errors.noOfToilets) === null || _errors$noOfToilets3 === void 0 ? void 0 : _errors$noOfToilets3.message) : null)));
15493
15444
  };
15494
15445
 
15495
15446
  const createPlumberDetails = () => ({
@@ -15559,7 +15510,7 @@ const WSActivationPlumberDetails = _ref => {
15559
15510
  }, commonProps))));
15560
15511
  };
15561
15512
  const PlumberDetails = _props => {
15562
- var _plumberDetails$, _formData$disConnecti, _errors$detailsProvid2, _plumberDetail$detail, _plumberDetail$detail2, _errors$plumberLicens2, _errors$plumberName2, _errors$plumberMobile2;
15513
+ 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
15514
  const plumberDetail = _props.plumberDetail,
15564
15515
  focusIndex = _props.focusIndex,
15565
15516
  setFocusIndex = _props.setFocusIndex,
@@ -15621,22 +15572,12 @@ const PlumberDetails = _props => {
15621
15572
  }
15622
15573
  }, [errors]);
15623
15574
  const errorStyle = {
15624
- width: "70%",
15625
- marginLeft: "30%",
15575
+ width: "100%",
15576
+ marginLeft: "0px",
15626
15577
  fontSize: "12px",
15627
15578
  marginTop: "-21px"
15628
15579
  };
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, {
15580
+ 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
15581
  control: control,
15641
15582
  name: "detailsProvidedBy",
15642
15583
  defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.detailsProvidedBy,
@@ -15674,17 +15615,9 @@ const PlumberDetails = _props => {
15674
15615
  t: t
15675
15616
  });
15676
15617
  }
15677
- })), localFormState.touched.detailsProvidedBy ? /*#__PURE__*/React.createElement(CardLabelError, {
15618
+ }), 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
15619
  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", {
15620
+ }, " ", 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
15621
  className: "field"
15689
15622
  }, /*#__PURE__*/React.createElement(Controller, {
15690
15623
  control: control,
@@ -15714,17 +15647,9 @@ const PlumberDetails = _props => {
15714
15647
  onBlur: props.onBlur
15715
15648
  });
15716
15649
  }
15717
- }))), localFormState.touched.plumberLicenseNo ? /*#__PURE__*/React.createElement(CardLabelError, {
15650
+ })), 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
15651
  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", {
15652
+ }, 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
15653
  className: "field"
15729
15654
  }, /*#__PURE__*/React.createElement(Controller, {
15730
15655
  control: control,
@@ -15754,17 +15679,9 @@ const PlumberDetails = _props => {
15754
15679
  onBlur: props.onBlur
15755
15680
  });
15756
15681
  }
15757
- }))), localFormState.touched.plumberName ? /*#__PURE__*/React.createElement(CardLabelError, {
15682
+ })), 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
15683
  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", {
15684
+ }, " ", 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
15685
  className: "field"
15769
15686
  }, /*#__PURE__*/React.createElement(Controller, {
15770
15687
  control: control,
@@ -15839,9 +15756,9 @@ const PlumberDetails = _props => {
15839
15756
  }
15840
15757
  })));
15841
15758
  }
15842
- }))), localFormState.touched.plumberMobileNo ? /*#__PURE__*/React.createElement(CardLabelError, {
15759
+ })), 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
15760
  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);
15761
+ }, " ", errors === null || errors === void 0 ? void 0 : (_errors$plumberMobile3 = errors.plumberMobileNo) === null || _errors$plumberMobile3 === void 0 ? void 0 : _errors$plumberMobile3.message) : null)) : null);
15845
15762
  };
15846
15763
 
15847
15764
  const createActivationDetails = () => ({
@@ -15910,7 +15827,7 @@ const WSActivationPageDetails = _ref => {
15910
15827
  }, commonProps))));
15911
15828
  };
15912
15829
  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;
15830
+ 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
15831
  const activationDetail = _props.activationDetail,
15915
15832
  focusIndex = _props.focusIndex,
15916
15833
  setFocusIndex = _props.setFocusIndex,
@@ -15975,25 +15892,12 @@ const ConnectionDetails$3 = _props => {
15975
15892
  }
15976
15893
  }, [errors]);
15977
15894
  const errorStyle = {
15978
- width: "70%",
15979
- marginLeft: "30%",
15895
+ width: "100%",
15896
+ marginLeft: "0px",
15980
15897
  fontSize: "12px",
15981
15898
  marginTop: "-21px"
15982
15899
  };
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", {
15900
+ 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
15901
  className: "field"
15998
15902
  }, /*#__PURE__*/React.createElement(Controller, {
15999
15903
  control: control,
@@ -16025,18 +15929,9 @@ const ConnectionDetails$3 = _props => {
16025
15929
  onBlur: props.onBlur
16026
15930
  });
16027
15931
  }
16028
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
15932
+ })), 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
15933
  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", {
15934
+ }, 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
15935
  className: "field"
16041
15936
  }, /*#__PURE__*/React.createElement(Controller, {
16042
15937
  name: "meterInstallationDate",
@@ -16050,18 +15945,9 @@ const ConnectionDetails$3 = _props => {
16050
15945
  name: "meterInstallationDate",
16051
15946
  onChange: props.onChange
16052
15947
  })
16053
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
15948
+ })), 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
15949
  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", {
15950
+ }, 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
15951
  className: "field"
16066
15952
  }, /*#__PURE__*/React.createElement(Controller, {
16067
15953
  type: "number",
@@ -16093,18 +15979,9 @@ const ConnectionDetails$3 = _props => {
16093
15979
  onBlur: props.onBlur
16094
15980
  });
16095
15981
  }
16096
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
15982
+ })), 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
15983
  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", {
15984
+ }, 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
15985
  className: "field"
16109
15986
  }, /*#__PURE__*/React.createElement(Controller, {
16110
15987
  name: "connectionExecutionDate",
@@ -16123,18 +16000,9 @@ const ConnectionDetails$3 = _props => {
16123
16000
  errorStyle: localFormState.touched.connectionExecutionDate && errors !== null && errors !== void 0 && (_errors$connectionExe = errors.connectionExecutionDate) !== null && _errors$connectionExe !== void 0 && _errors$connectionExe.message ? true : false
16124
16001
  });
16125
16002
  }
16126
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
16003
+ })), 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
16004
  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", {
16005
+ }, 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
16006
  className: "field"
16139
16007
  }, /*#__PURE__*/React.createElement(Controller, {
16140
16008
  name: "dateEffectiveFrom",
@@ -16154,9 +16022,9 @@ const ConnectionDetails$3 = _props => {
16154
16022
  errorStyle: localFormState.touched.dateEffectiveFrom && errors !== null && errors !== void 0 && (_errors$dateEffective = errors.dateEffectiveFrom) !== null && _errors$dateEffective !== void 0 && _errors$dateEffective.message ? true : false
16155
16023
  });
16156
16024
  }
16157
- }))), /*#__PURE__*/React.createElement(CardLabelError, {
16025
+ })), 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
16026
  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));
16027
+ }, errors === null || errors === void 0 ? void 0 : (_errors$dateEffective3 = errors.dateEffectiveFrom) === null || _errors$dateEffective3 === void 0 ? void 0 : _errors$dateEffective3.message) : null) : null);
16160
16028
  };
16161
16029
 
16162
16030
  const WSActivationCommentsDetails = _ref => {
@@ -16178,12 +16046,7 @@ const WSActivationCommentsDetails = _ref => {
16178
16046
  onSelect(config.key, _extends({}, formData[config.key], comments));
16179
16047
  }
16180
16048
  }, [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", {
16049
+ 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
16050
  className: "field"
16188
16051
  }, /*#__PURE__*/React.createElement(TextInput, {
16189
16052
  key: config.key,
@@ -16286,12 +16149,7 @@ const WSActivationSupportingDocuments = _ref => {
16286
16149
  });
16287
16150
  }
16288
16151
  }, [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", {
16152
+ 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
16153
  className: "field"
16296
16154
  }, /*#__PURE__*/React.createElement(UploadFile, {
16297
16155
  onUpload: e => {
@@ -44536,8 +44394,8 @@ const DueVerification = _ref => {
44536
44394
  return newData;
44537
44395
  });
44538
44396
  }, [applicationData]);
44539
- const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
44540
- const isActivation = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
44397
+ const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION";
44398
+ 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);
44541
44399
  const columns = useMemo(() => {
44542
44400
  const baseColumns = [{
44543
44401
  Header: t("K No."),
@@ -44555,7 +44413,7 @@ const DueVerification = _ref => {
44555
44413
  Header: t("Total Amount"),
44556
44414
  accessor: "totalAmount"
44557
44415
  }];
44558
- if (isPendingApproval) {
44416
+ if (isPendingApproval || isActivation) {
44559
44417
  baseColumns.push({
44560
44418
  Header: t("Remarks"),
44561
44419
  accessor: "remarks",
@@ -44574,7 +44432,7 @@ const DueVerification = _ref => {
44574
44432
  });
44575
44433
  }
44576
44434
  return baseColumns;
44577
- }, [t, handleRemarkChange, isPendingApproval]);
44435
+ }, [t, handleRemarkChange, isPendingApproval, isActivation]);
44578
44436
  useEffect(() => {
44579
44437
  if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
44580
44438
  setTableData(applicationData.dueVerification);
@@ -44676,7 +44534,11 @@ const InspectionInformation = _ref => {
44676
44534
  let applicationData = _ref.applicationData;
44677
44535
  const _useTranslation = useTranslation(),
44678
44536
  t = _useTranslation.t;
44679
- const _useState = useState(null),
44537
+ const defaultInspectionType = {
44538
+ i18nKey: "New Connection Visit",
44539
+ code: "new_connection_visit"
44540
+ };
44541
+ const _useState = useState(defaultInspectionType),
44680
44542
  inspectionType = _useState[0],
44681
44543
  setInspectionType = _useState[1];
44682
44544
  const _useState2 = useState(""),
@@ -44686,20 +44548,23 @@ const InspectionInformation = _ref => {
44686
44548
  inspectorName = _useState3[0],
44687
44549
  setInspectorName = _useState3[1];
44688
44550
  useEffect(() => {
44689
- if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
44551
+ if (applicationData) {
44552
+ if (!applicationData.inspectionInformation) {
44553
+ applicationData.inspectionInformation = {};
44554
+ }
44555
+ if (!applicationData.inspectionInformation.inspectionType) {
44556
+ applicationData.inspectionInformation.inspectionType = defaultInspectionType;
44557
+ }
44690
44558
  const apiInspectionType = applicationData.inspectionInformation.inspectionType;
44691
44559
  let matchedType = null;
44692
44560
  const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
44693
44561
  if (inspectionCode) {
44694
44562
  matchedType = [{
44695
- i18nKey: "ES_COMMON_SELECT",
44696
- code: ""
44697
- }, {
44698
44563
  i18nKey: "New Connection Visit",
44699
44564
  code: "new_connection_visit"
44700
44565
  }].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
44701
44566
  }
44702
- setInspectionType(matchedType || null);
44567
+ setInspectionType(matchedType || defaultInspectionType);
44703
44568
  let dateValue = applicationData.inspectionInformation.inspectionDate || "";
44704
44569
  if (dateValue && typeof dateValue === 'number') {
44705
44570
  const d = new Date(dateValue);
@@ -44716,9 +44581,6 @@ const InspectionInformation = _ref => {
44716
44581
  }
44717
44582
  }, [applicationData]);
44718
44583
  const inspectionTypeOptions = [{
44719
- i18nKey: "ES_COMMON_SELECT",
44720
- code: ""
44721
- }, {
44722
44584
  i18nKey: "New Connection Visit",
44723
44585
  code: "new_connection_visit"
44724
44586
  }];
@@ -44738,7 +44600,7 @@ const InspectionInformation = _ref => {
44738
44600
  if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
44739
44601
  applicationData.inspectionInformation.inspectorName = val;
44740
44602
  };
44741
- const readOnly = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
44603
+ 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);
44742
44604
  return /*#__PURE__*/React.createElement("div", {
44743
44605
  style: {
44744
44606
  marginBottom: "20px"
@@ -45320,9 +45182,9 @@ function ApplicationDetailsContent(_ref) {
45320
45182
  }), (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, {
45321
45183
  documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
45322
45184
  applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
45323
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_RECONNECTION") && /*#__PURE__*/React.createElement(DueVerification, {
45185
+ }), (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"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
45324
45186
  applicationData: applicationData
45325
- }), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION") && /*#__PURE__*/React.createElement(InspectionInformation, {
45187
+ }), " ", (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"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(InspectionInformation, {
45326
45188
  applicationData: applicationData
45327
45189
  }), (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, {
45328
45190
  taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
@@ -45965,7 +45827,7 @@ const ApplicationDetails = props => {
45965
45827
  };
45966
45828
 
45967
45829
  const ApplicationDetails$1 = () => {
45968
- 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;
45830
+ 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$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$data19, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data31, _workflowDetails$data38, _workflowDetails$data39, _workflowDetails$data40, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a18, _applicationDetails$a19, _reciept_data$Payment2, _applicationDetails$p14, _applicationDetails$p15, _applicationDetails$p16, _applicationDetails$p17, _applicationDetails$p18, _applicationDetails$p19;
45969
45831
  const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
45970
45832
  try {
45971
45833
  let response = null;
@@ -46124,7 +45986,37 @@ const ApplicationDetails$1 = () => {
46124
45986
  };
46125
45987
  let dowloadOptions = [],
46126
45988
  appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.applicationStatus) || "";
46127
- 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 => {
45989
+ 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") {
45990
+ var _applicationDetails$p0, _workflowDetails$data;
45991
+ const landArea = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p0 = applicationDetails.propertyDetails) === null || _applicationDetails$p0 === void 0 ? void 0 : _applicationDetails$p0.landArea;
45992
+ if ((_workflowDetails$data = workflowDetails.data.actionState) !== null && _workflowDetails$data !== void 0 && _workflowDetails$data.nextActions) {
45993
+ workflowDetails.data.actionState.nextActions = workflowDetails.data.actionState.nextActions.filter(action => {
45994
+ if (action.action === "VERIFY_AND_FORWARD") {
45995
+ if (landArea && landArea >= 200) {
45996
+ return action.state === "PENDING_FOR_AE_APPROVAL" || action.applicationStatus === "PENDING_FOR_AE_APPROVAL";
45997
+ } else {
45998
+ return action.state === "PENDING_FOR_ASO_APPROVAL" || action.applicationStatus === "PENDING_FOR_ASO_APPROVAL";
45999
+ }
46000
+ }
46001
+ return true;
46002
+ });
46003
+ }
46004
+ if (workflowDetails.data.nextActions) {
46005
+ workflowDetails.data.nextActions = workflowDetails.data.nextActions.filter(action => {
46006
+ if (action.action === "VERIFY_AND_FORWARD") {
46007
+ var _action$state;
46008
+ const targetStateCode = (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.state;
46009
+ if (landArea && landArea >= 200) {
46010
+ return targetStateCode === "PENDING_FOR_AE_APPROVAL";
46011
+ } else {
46012
+ return targetStateCode === "PENDING_FOR_ASO_APPROVAL";
46013
+ }
46014
+ }
46015
+ return true;
46016
+ });
46017
+ }
46018
+ }
46019
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data2 = workflowDetails.data) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.actionState) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.nextActions) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.forEach(action => {
46128
46020
  if ((action === null || action === void 0 ? void 0 : action.action) === "ACTIVATE_CONNECTION") {
46129
46021
  action.redirectionUrll = {
46130
46022
  action: "ACTIVATE_CONNECTION",
@@ -46133,8 +46025,8 @@ const ApplicationDetails$1 = () => {
46133
46025
  };
46134
46026
  }
46135
46027
  if ((action === null || action === void 0 ? void 0 : action.action) === "RESUBMIT_APPLICATION") {
46136
- var _applicationDetails$p8, _servicesMasterData$w, _userConfig$, _userConfig$2;
46137
- 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);
46028
+ var _applicationDetails$p1, _servicesMasterData$w, _userConfig$, _userConfig$2;
46029
+ 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);
46138
46030
  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) || [];
46139
46031
  const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$ = userConfig[0]) === null || _userConfig$ === void 0 ? void 0 : _userConfig$.roles) || [];
46140
46032
  const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$2 = userConfig[0]) === null || _userConfig$2 === void 0 ? void 0 : _userConfig$2.status;
@@ -46144,8 +46036,8 @@ const ApplicationDetails$1 = () => {
46144
46036
  if (isFieldInspector) return false;else return true;
46145
46037
  });
46146
46038
  if (isFieldInspector && appStatus === mdmsApplicationStatus) {
46147
- var _applicationDetails$p9;
46148
- 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);
46039
+ var _applicationDetails$p10;
46040
+ 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);
46149
46041
  }
46150
46042
  action.redirectionUrll = {
46151
46043
  action: "ACTIVATE_CONNECTION",
@@ -46157,24 +46049,24 @@ const ApplicationDetails$1 = () => {
46157
46049
  };
46158
46050
  }
46159
46051
  if ((action === null || action === void 0 ? void 0 : action.action) === "SUBMIT_APPLICATION") {
46160
- var _applicationDetails$p0;
46052
+ var _applicationDetails$p11;
46161
46053
  action.redirectionUrll = {
46162
46054
  action: "ACTIVATE_CONNECTION",
46163
- 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),
46055
+ pathname: "/digit-ui/employee/ws/modify-application-edit?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),
46164
46056
  state: applicationDetails
46165
46057
  };
46166
46058
  }
46167
46059
  });
46168
- 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"))) {
46169
- var _workflowDetails$data19, _workflowDetails$data20;
46170
- 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 => {
46060
+ if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.nextActions) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.length) > 0 && (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.length) > 0 && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data0 = workflowDetails.data) !== null && _workflowDetails$data0 !== void 0 && (_workflowDetails$data1 = _workflowDetails$data0.actionState) !== null && _workflowDetails$data1 !== void 0 && (_workflowDetails$data10 = _workflowDetails$data1.nextActions) !== null && _workflowDetails$data10 !== void 0 && _workflowDetails$data10.find(e => e.action === "EDIT")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data11 = workflowDetails.data) !== null && _workflowDetails$data11 !== void 0 && (_workflowDetails$data12 = _workflowDetails$data11.actionState) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.nextActions) !== null && _workflowDetails$data13 !== void 0 && _workflowDetails$data13.find(e => e.action === "RESUBMIT_APPLICATION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data14 = workflowDetails.data) !== null && _workflowDetails$data14 !== void 0 && (_workflowDetails$data15 = _workflowDetails$data14.actionState) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.nextActions) !== null && _workflowDetails$data16 !== void 0 && _workflowDetails$data16.find(e => e.action === "ACTIVATE_CONNECTION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data17 = workflowDetails.data) !== null && _workflowDetails$data17 !== void 0 && (_workflowDetails$data18 = _workflowDetails$data17.actionState) !== null && _workflowDetails$data18 !== void 0 && (_workflowDetails$data19 = _workflowDetails$data18.nextActions) !== null && _workflowDetails$data19 !== void 0 && _workflowDetails$data19.find(e => e.action === "SUBMIT_APPLICATION"))) {
46061
+ var _workflowDetails$data20, _workflowDetails$data21;
46062
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data20 = workflowDetails.data) === null || _workflowDetails$data20 === void 0 ? void 0 : (_workflowDetails$data21 = _workflowDetails$data20.nextActions) === null || _workflowDetails$data21 === void 0 ? void 0 : _workflowDetails$data21.forEach(data => {
46171
46063
  if (data.action === "EDIT") workflowDetails.data.actionState.nextActions.push(data);
46172
46064
  });
46173
46065
  }
46174
- 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 => {
46066
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data22 = workflowDetails.data) === null || _workflowDetails$data22 === void 0 ? void 0 : (_workflowDetails$data23 = _workflowDetails$data22.actionState) === null || _workflowDetails$data23 === void 0 ? void 0 : (_workflowDetails$data24 = _workflowDetails$data23.nextActions) === null || _workflowDetails$data24 === void 0 ? void 0 : _workflowDetails$data24.forEach(action => {
46175
46067
  if ((action === null || action === void 0 ? void 0 : action.action) === "EDIT") {
46176
- var _applicationDetails$p1, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
46177
- 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);
46068
+ var _applicationDetails$p12, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
46069
+ let pathName = "/digit-ui/employee/ws/edit-application?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);
46178
46070
  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) || [];
46179
46071
  const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$3 = userConfig[0]) === null || _userConfig$3 === void 0 ? void 0 : _userConfig$3.roles) || [];
46180
46072
  const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$4 = userConfig[0]) === null || _userConfig$4 === void 0 ? void 0 : _userConfig$4.status;
@@ -46184,8 +46076,8 @@ const ApplicationDetails$1 = () => {
46184
46076
  if (isFieldInspector) return false;else return true;
46185
46077
  });
46186
46078
  if (isFieldInspector && appStatus === mdmsApplicationStatus) {
46187
- var _applicationDetails$p10;
46188
- 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);
46079
+ var _applicationDetails$p13;
46080
+ pathName = "/digit-ui/employee/ws/edit-application-by-config?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);
46189
46081
  }
46190
46082
  action.redirectionUrll = {
46191
46083
  action: "ACTIVATE_CONNECTION",
@@ -46197,27 +46089,27 @@ const ApplicationDetails$1 = () => {
46197
46089
  };
46198
46090
  }
46199
46091
  });
46200
- 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 => {
46092
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data25 = workflowDetails.data) === null || _workflowDetails$data25 === void 0 ? void 0 : (_workflowDetails$data26 = _workflowDetails$data25.nextActions) === null || _workflowDetails$data26 === void 0 ? void 0 : _workflowDetails$data26.forEach(action => {
46201
46093
  if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
46202
46094
  action.isToast = true;
46203
46095
  action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
46204
46096
  }
46205
46097
  });
46206
- 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 => {
46098
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data27 = workflowDetails.data) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.actionState) === null || _workflowDetails$data28 === void 0 ? void 0 : (_workflowDetails$data29 = _workflowDetails$data28.nextActions) === null || _workflowDetails$data29 === void 0 ? void 0 : _workflowDetails$data29.forEach(action => {
46207
46099
  if ((action === null || action === void 0 ? void 0 : action.action) === "VERIFY_AND_FORWARD" && appStatus === "PENDING_FOR_FIELD_INSPECTION" && !checkWSAdditionalDetails()) {
46208
46100
  action.isToast = true;
46209
46101
  action.toastMessage = "MISSING_ADDITIONAL_DETAILS";
46210
46102
  }
46211
46103
  });
46212
- 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 => {
46104
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data30 = workflowDetails.data) === null || _workflowDetails$data30 === void 0 ? void 0 : (_workflowDetails$data31 = _workflowDetails$data30.nextActions) === null || _workflowDetails$data31 === void 0 ? void 0 : _workflowDetails$data31.forEach(action => {
46213
46105
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
46214
- var _workflowDetails$data31, _workflowDetails$data32, _workflowDetails$data33, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36;
46215
- 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") {
46106
+ var _workflowDetails$data32, _workflowDetails$data33, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36, _workflowDetails$data37;
46107
+ if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data32 = workflowDetails.data) === null || _workflowDetails$data32 === void 0 ? void 0 : (_workflowDetails$data33 = _workflowDetails$data32.processInstances) === null || _workflowDetails$data33 === void 0 ? void 0 : (_workflowDetails$data34 = _workflowDetails$data33[0]) === null || _workflowDetails$data34 === void 0 ? void 0 : _workflowDetails$data34.businessService) === "WSReconnection") {
46216
46108
  action.redirectionUrll = {
46217
46109
  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),
46218
46110
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
46219
46111
  };
46220
- } 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") {
46112
+ } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data35 = workflowDetails.data) === null || _workflowDetails$data35 === void 0 ? void 0 : (_workflowDetails$data36 = _workflowDetails$data35.processInstances) === null || _workflowDetails$data36 === void 0 ? void 0 : (_workflowDetails$data37 = _workflowDetails$data36[0]) === null || _workflowDetails$data37 === void 0 ? void 0 : _workflowDetails$data37.businessService) === "SWReconnection") {
46221
46113
  action.redirectionUrll = {
46222
46114
  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),
46223
46115
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
@@ -46230,15 +46122,15 @@ const ApplicationDetails$1 = () => {
46230
46122
  }
46231
46123
  }
46232
46124
  });
46233
- 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 => {
46125
+ workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data38 = workflowDetails.data) === null || _workflowDetails$data38 === void 0 ? void 0 : (_workflowDetails$data39 = _workflowDetails$data38.actionState) === null || _workflowDetails$data39 === void 0 ? void 0 : (_workflowDetails$data40 = _workflowDetails$data39.nextActions) === null || _workflowDetails$data40 === void 0 ? void 0 : _workflowDetails$data40.forEach(action => {
46234
46126
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
46235
- var _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45;
46236
- 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") {
46127
+ var _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45, _workflowDetails$data46;
46128
+ if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data41 = workflowDetails.data) === null || _workflowDetails$data41 === void 0 ? void 0 : (_workflowDetails$data42 = _workflowDetails$data41.processInstances) === null || _workflowDetails$data42 === void 0 ? void 0 : (_workflowDetails$data43 = _workflowDetails$data42[0]) === null || _workflowDetails$data43 === void 0 ? void 0 : _workflowDetails$data43.businessService) === "WSReconnection") {
46237
46129
  action.redirectionUrll = {
46238
46130
  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),
46239
46131
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
46240
46132
  };
46241
- } 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") {
46133
+ } else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data44 = workflowDetails.data) === null || _workflowDetails$data44 === void 0 ? void 0 : (_workflowDetails$data45 = _workflowDetails$data44.processInstances) === null || _workflowDetails$data45 === void 0 ? void 0 : (_workflowDetails$data46 = _workflowDetails$data45[0]) === null || _workflowDetails$data46 === void 0 ? void 0 : _workflowDetails$data46.businessService) === "SWReconnection") {
46242
46134
  action.redirectionUrll = {
46243
46135
  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),
46244
46136
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
@@ -46408,12 +46300,12 @@ const ApplicationDetails$1 = () => {
46408
46300
  mutate: mutate,
46409
46301
  id: "timeline",
46410
46302
  workflowDetails: workflowDetails,
46411
- 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(),
46303
+ businessService: 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(),
46412
46304
  moduleCode: "WS",
46413
46305
  showToast: showToast,
46414
46306
  setShowToast: setShowToast,
46415
46307
  closeToast: closeToast,
46416
- 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()) + "_",
46308
+ timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p17 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p17 === void 0 ? void 0 : (_applicationDetails$p18 = _applicationDetails$p17[0]) === null || _applicationDetails$p18 === void 0 ? void 0 : (_applicationDetails$p19 = _applicationDetails$p18.businessService) === null || _applicationDetails$p19 === void 0 ? void 0 : _applicationDetails$p19.toUpperCase()) + "_",
46417
46309
  oldValue: res,
46418
46310
  isInfoLabel: checkforPrivacyenablement(),
46419
46311
  clearDataDetails: clearDataDetails,
@@ -46736,17 +46628,7 @@ const GetConnectionDetails = () => {
46736
46628
  style: {
46737
46629
  display: "flex"
46738
46630
  }
46739
- }, /*#__PURE__*/React.createElement("div", {
46740
- style: {
46741
- width: "80%"
46742
- }
46743
- }, /*#__PURE__*/React.createElement(Header, {
46744
- styles: {
46745
- marginLeft: "0px",
46746
- paddingTop: "10px",
46747
- fontSize: "32px"
46748
- }
46749
- }, t("WS_CONNECTION_DETAILS"))), dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
46631
+ }, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
46750
46632
  style: {
46751
46633
  maxWidth: "100% !imnportant",
46752
46634
  zIndex: "10"
@@ -46873,7 +46755,6 @@ const ActivateConnection = () => {
46873
46755
  isAppDetailsPage = _useState5[0],
46874
46756
  setIsAppDetailsPage = _useState5[1];
46875
46757
  const _React$useState = React.useState({
46876
- head: "",
46877
46758
  body: []
46878
46759
  }),
46879
46760
  config = _React$useState[0],
@@ -46906,7 +46787,7 @@ const ActivateConnection = () => {
46906
46787
  } : "",
46907
46788
  waterSource: (_state7 = state) !== null && _state7 !== void 0 && (_state7$data = _state7.data) !== null && _state7$data !== void 0 && _state7$data.waterSource ? {
46908
46789
  code: (_state8 = state) === null || _state8 === void 0 ? void 0 : (_state8$data = _state8.data) === null || _state8$data === void 0 ? void 0 : _state8$data.waterSource,
46909
- 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(), " ", "_")
46790
+ 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(), " ", "_")
46910
46791
  } : "",
46911
46792
  sourceSubData: (_state0 = state) !== null && _state0 !== void 0 && (_state0$data = _state0.data) !== null && _state0$data !== void 0 && _state0$data.waterSource ? {
46912
46793
  code: (_state1 = state) === null || _state1 === void 0 ? void 0 : (_state1$data = _state1.data) === null || _state1$data === void 0 ? void 0 : _state1$data.waterSource,
@@ -46955,9 +46836,18 @@ const ActivateConnection = () => {
46955
46836
  }, []);
46956
46837
  useEffect(() => {
46957
46838
  if (!isLoading && newConfig && Array.isArray(newConfig)) {
46958
- const config = newConfig.find(conf => conf.hideInCitizen);
46959
- if (config) {
46960
- setConfig(config);
46839
+ const configObj = newConfig.find(conf => conf.hideInCitizen);
46840
+ if (configObj && configObj.body) {
46841
+ let flattenedBody = [];
46842
+ configObj.body.forEach(section => {
46843
+ if (section.body && Array.isArray(section.body)) {
46844
+ flattenedBody = [...flattenedBody, ...section.body];
46845
+ }
46846
+ });
46847
+ setConfig([{
46848
+ head: "WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION",
46849
+ body: flattenedBody
46850
+ }]);
46961
46851
  }
46962
46852
  }
46963
46853
  }, [newConfig]);
@@ -47090,19 +46980,37 @@ const ActivateConnection = () => {
47090
46980
  if (isEnableLoader || isLoading || isappdetailsLoading) {
47091
46981
  return /*#__PURE__*/React.createElement(Loader, null);
47092
46982
  }
47093
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormComposer, {
47094
- config: config.body,
46983
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
46984
+ className: "employee-form-section-wrapper"
46985
+ }, /*#__PURE__*/React.createElement(VerticalTimeline, {
46986
+ config: [{
46987
+ timeLine: [{
46988
+ actions: t("WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION"),
46989
+ currentStep: 1
46990
+ }]
46991
+ }],
46992
+ showFinalStep: false
46993
+ }), /*#__PURE__*/React.createElement(FormComposer, {
46994
+ config: config.map(config => {
46995
+ return _extends({}, config, {
46996
+ isCollapsible: true,
46997
+ isDefaultOpen: true,
46998
+ body: config.body
46999
+ });
47000
+ }),
47095
47001
  userType: "employee",
47096
47002
  defaultValues: defaultValues,
47097
47003
  onSubmit: onSubmit,
47098
47004
  label: t("WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION"),
47099
- onFormValueChange: onFormValueChange
47005
+ onFormValueChange: onFormValueChange,
47006
+ noBreakLine: true,
47007
+ noCard: true
47100
47008
  }), showToast && /*#__PURE__*/React.createElement(Toast, {
47101
47009
  error: showToast.key,
47102
47010
  label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
47103
47011
  warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
47104
47012
  onClose: closeToast
47105
- }));
47013
+ })));
47106
47014
  };
47107
47015
 
47108
47016
  const ApplicationDetailsBillAmendment = () => {
@@ -47613,7 +47521,7 @@ const EditApplication$1 = () => {
47613
47521
  };
47614
47522
 
47615
47523
  const ConsumptionDetails = _ref => {
47616
- var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _details$4, _details$5;
47524
+ var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _details$4, _details$5;
47617
47525
  const _useTranslation = useTranslation(),
47618
47526
  t = _useTranslation.t;
47619
47527
  const user = Digit.UserService.getUser();
@@ -47717,7 +47625,7 @@ const ConsumptionDetails = _ref => {
47717
47625
  return dateString;
47718
47626
  }
47719
47627
  };
47720
- 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");
47628
+ 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");
47721
47629
  const popUp = () => {
47722
47630
  var _response$meterReadin, _response$meterReadin2;
47723
47631
  setOpenModal(true);
@@ -47823,7 +47731,7 @@ const ConsumptionDetails = _ref => {
47823
47731
  return Promise.reject(e);
47824
47732
  }
47825
47733
  };
47826
- 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 => ({
47734
+ 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 => ({
47827
47735
  code: status,
47828
47736
  i18nKey: "WS_SERVICES_CALCULATION_METERSTATUS_" + Digit.Utils.locale.getTransformedLocale(status)
47829
47737
  }));