@djb25/digit-ui-module-ws 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$2, useReducer, useCallback } from 'react';
1
+ import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$1, useReducer, useCallback } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import { Link, useLocation, Switch, Route, useHistory, useRouteMatch, Redirect, useParams } from 'react-router-dom';
4
- import { Loader as Loader$1, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, BackButton, PrivateRoute, Banner, CardText, ActionBar, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, BreadcrumbHeader, ArrowLeft, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CardLabelError, DeleteIcon, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, CollapsibleCardPage, Table, Localities, Modal, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, ViewsIcon, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
4
+ import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, BackButton, PrivateRoute, Banner, CardText, ActionBar, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, BreadcrumbHeader, ArrowLeft, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, LabelFieldPair, Dropdown, CardLabelError, UploadFile, CheckBox, RadioButtons, MobileNumber, DatePicker, DeleteIcon, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, CollapsibleCardPage, Table, Localities, Modal, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, ViewsIcon, 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';
@@ -7510,7 +7510,7 @@ const WSApplication = ({
7510
7510
  consumerCode: application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.connectionNo
7511
7511
  };
7512
7512
  if (isLoading) {
7513
- return /*#__PURE__*/React.createElement(Loader$1, null);
7513
+ return /*#__PURE__*/React.createElement(Loader, null);
7514
7514
  }
7515
7515
  return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(KeyNote, {
7516
7516
  keyValue: t("WS_MYCONNECTIONS_APPLICATION_NO"),
@@ -7694,7 +7694,7 @@ const WSMyApplications = () => {
7694
7694
  enabled: propertyNos ? true : false
7695
7695
  });
7696
7696
  if (isLoading || isSWLoading || PTisLoading) {
7697
- return /*#__PURE__*/React.createElement(Loader$1, null);
7697
+ return /*#__PURE__*/React.createElement(Loader, null);
7698
7698
  }
7699
7699
  let {
7700
7700
  WaterConnection: WSapplicationsList
@@ -8498,7 +8498,7 @@ const Response = () => {
8498
8498
  const handleDownloadPdf = () => {
8499
8499
  getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails);
8500
8500
  };
8501
- return /*#__PURE__*/React.createElement("div", null, isLoading || isLoadingAppDetails ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
8501
+ return /*#__PURE__*/React.createElement("div", null, isLoading || isLoadingAppDetails ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
8502
8502
  message: isSuccess ? t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL") : t("CS_WATER_UPDATE_APPLICATION_FAILED"),
8503
8503
  applicationNumber: data === null || data === void 0 ? void 0 : (_data$Amendments2 = data.Amendments) === null || _data$Amendments2 === void 0 ? void 0 : (_data$Amendments2$ = _data$Amendments2[0]) === null || _data$Amendments2$ === void 0 ? void 0 : _data$Amendments2$.amendmentId,
8504
8504
  info: isSuccess ? t("WS_MYCONNECTIONS_APPLICATION_NO") : "",
@@ -9166,17 +9166,14 @@ const BILLSBreadCrumbs = ({
9166
9166
  content: t("ES_COMMON_WS_DOCUMENTS_REQUIRED"),
9167
9167
  show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application"),
9168
9168
  rightContent: location.pathname.includes("/create-application") && /*#__PURE__*/React.createElement("div", {
9169
- onClick: printDiv,
9170
- style: {
9171
- cursor: "pointer",
9172
- display: "flex"
9173
- }
9174
- }, /*#__PURE__*/React.createElement(PrintBtnCommon, null), /*#__PURE__*/React.createElement("div", {
9175
- style: {
9176
- fontSize: "24px",
9177
- fontWeight: "400",
9178
- color: "#0B0C0C"
9179
- }
9169
+ className: "flex-center flex-gap-1 .cursorPointer",
9170
+ onClick: printDiv
9171
+ }, /*#__PURE__*/React.createElement(PrintBtnCommon, {
9172
+ width: 24,
9173
+ heigth: 24,
9174
+ fill: "#fff"
9175
+ }), /*#__PURE__*/React.createElement("div", {
9176
+ className: "bread-crumb-item"
9180
9177
  }, "Print"))
9181
9178
  }, {
9182
9179
  path: "/digit-ui/employee/water/inbox",
@@ -9836,7 +9833,7 @@ const WSWaterConnectionDetails = ({
9836
9833
  optionKey: "i18nKey",
9837
9834
  onSelect: setProposedPipeSizeSelect,
9838
9835
  t: t
9839
- })) : /*#__PURE__*/React.createElement(Loader$1, null), showToast && /*#__PURE__*/React.createElement(Toast, {
9836
+ })) : /*#__PURE__*/React.createElement(Loader, null), showToast && /*#__PURE__*/React.createElement(Toast, {
9840
9837
  error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? true : false,
9841
9838
  label: error,
9842
9839
  isDleteBtn: true,
@@ -9863,6 +9860,15 @@ const WSDocsRequired = ({
9863
9860
  const goNext = () => {
9864
9861
  onSelect("DocsReq", "");
9865
9862
  };
9863
+ const {
9864
+ control,
9865
+ formState: localFormState,
9866
+ getValues
9867
+ } = useForm();
9868
+ const [zro, setZro] = useState({
9869
+ value: "",
9870
+ error: ""
9871
+ });
9866
9872
  sessionStorage.removeItem("Digit.PT_CREATE_EMP_WS_NEW_FORM");
9867
9873
  sessionStorage.removeItem("IsDetailsExists");
9868
9874
  sessionStorage.removeItem("FORMSTATE_ERRORS");
@@ -9897,7 +9903,7 @@ const WSDocsRequired = ({
9897
9903
  color: "#0B0C0C",
9898
9904
  marginTop: "12px"
9899
9905
  }
9900
- }, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(React.Fragment, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Documents = wsDocs.Documents) === null || _wsDocs$Documents === void 0 ? void 0 : _wsDocs$Documents.map((doc, index) => {
9906
+ }, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(React.Fragment, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Documents = wsDocs.Documents) === null || _wsDocs$Documents === void 0 ? void 0 : _wsDocs$Documents.map((doc, index) => {
9901
9907
  var _doc$dropdownData;
9902
9908
  return /*#__PURE__*/React.createElement("div", {
9903
9909
  key: index
@@ -9929,16 +9935,33 @@ const WSDocsRequired = ({
9929
9935
  onSubmit: goNext
9930
9936
  })));
9931
9937
  }
9938
+ const menu = [{
9939
+ i18nKey: "ASHOK VIHAR",
9940
+ code: "ASHOK VIHAR",
9941
+ value: "ASHOK VIHAR"
9942
+ }, {
9943
+ i18nKey: "BURARI",
9944
+ code: "BURARI",
9945
+ value: "BURARI"
9946
+ }, {
9947
+ i18nKey: "DWARKA",
9948
+ code: "DWARKA",
9949
+ value: "DWARKA"
9950
+ }, {
9951
+ i18nKey: "OKHLA",
9952
+ code: "OKHLA",
9953
+ value: "OKHLA"
9954
+ }];
9932
9955
  return /*#__PURE__*/React.createElement("div", {
9933
9956
  className: "employee-form-content-with-action-bar"
9934
- }, /*#__PURE__*/React.createElement(Card, {
9957
+ }, /*#__PURE__*/React.createElement("div", {
9935
9958
  className: "overflow-y-scroll"
9936
- }, wsDocsLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement("div", {
9959
+ }, wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
9937
9960
  id: "documents-div",
9938
9961
  className: "ws-docs-container"
9939
9962
  }, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Documents2 = wsDocs.Documents) === null || _wsDocs$Documents2 === void 0 ? void 0 : _wsDocs$Documents2.map((doc, index) => {
9940
9963
  var _doc$dropdownData3;
9941
- return /*#__PURE__*/React.createElement("div", {
9964
+ return /*#__PURE__*/React.createElement(Card, {
9942
9965
  key: index,
9943
9966
  className: "ws-doc-card"
9944
9967
  }, /*#__PURE__*/React.createElement("div", {
@@ -9957,7 +9980,37 @@ const WSDocsRequired = ({
9957
9980
  }, /*#__PURE__*/React.createElement("span", {
9958
9981
  className: "ws-doc-bullet"
9959
9982
  }, idx + 1, "."), /*#__PURE__*/React.createElement("span", null, t(value === null || value === void 0 ? void 0 : value.i18nKey))))));
9960
- })), /*#__PURE__*/React.createElement(ActionBar, {
9983
+ }), /*#__PURE__*/React.createElement(Card, {
9984
+ className: "ws-doc-card"
9985
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
9986
+ className: "card-label-smaller"
9987
+ }, "ZRO Location"), /*#__PURE__*/React.createElement("div", {
9988
+ className: "field"
9989
+ }, /*#__PURE__*/React.createElement(Controller, {
9990
+ control: control,
9991
+ name: "zro",
9992
+ defaultValue: zro,
9993
+ rules: {
9994
+ required: t("REQUIRED_FIELD")
9995
+ },
9996
+ isMandatory: true,
9997
+ render: props => /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Dropdown, {
9998
+ className: "form-field",
9999
+ selected: getValues("gender"),
10000
+ disable: false,
10001
+ option: menu,
10002
+ errorStyle: localFormState.touched.gender && zro.error ? true : false,
10003
+ select: e => {
10004
+ setZro(prev => ({
10005
+ ...prev,
10006
+ value: e
10007
+ }));
10008
+ },
10009
+ optionKey: "i18nKey",
10010
+ onBlur: props.onBlur,
10011
+ t: t
10012
+ }))
10013
+ }))), localFormState && zro.error && /*#__PURE__*/React.createElement(CardLabelError, null, zro.error)))), /*#__PURE__*/React.createElement(ActionBar, {
9961
10014
  style: {
9962
10015
  display: "flex",
9963
10016
  justifyContent: "flex-end",
@@ -9968,7 +10021,7 @@ const WSDocsRequired = ({
9968
10021
  onSubmit: () => {
9969
10022
  history.push(match.path.replace("create-application", "new-application"));
9970
10023
  },
9971
- disabled: wsDocsLoading ? true : false
10024
+ disabled: wsDocsLoading || !zro.value ? true : false
9972
10025
  }))));
9973
10026
  };
9974
10027
 
@@ -10038,7 +10091,7 @@ const WSDocumentDetails = ({
10038
10091
  label: error,
10039
10092
  onClose: () => setError(null),
10040
10093
  error: true
10041
- })) : /*#__PURE__*/React.createElement(Loader$1, null));
10094
+ })) : /*#__PURE__*/React.createElement(Loader, null));
10042
10095
  };
10043
10096
  function SelectDocument({
10044
10097
  t,
@@ -10812,7 +10865,7 @@ const WSConnectionHolder = ({
10812
10865
  style: {
10813
10866
  color: "red"
10814
10867
  }
10815
- }, error)))) : /*#__PURE__*/React.createElement(Loader$1, null));
10868
+ }, error)))) : /*#__PURE__*/React.createElement(Loader, null));
10816
10869
  };
10817
10870
 
10818
10871
  const WSActivationDetails = ({
@@ -10971,7 +11024,7 @@ const WSConnectionDetails = ({
10971
11024
  setConnectionDetails([createConnectionDetails()]);
10972
11025
  }
10973
11026
  }, [formData === null || formData === void 0 ? void 0 : formData.ConnectionDetails]);
10974
- if (isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
11027
+ if (isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader, null);
10975
11028
  const commonProps = {
10976
11029
  focusIndex,
10977
11030
  connectionDetails,
@@ -11455,7 +11508,7 @@ const WSRoadCuttingDetails = ({
11455
11508
  });
11456
11509
  const addroadCutt = () => {
11457
11510
  const newRoadCutting = createRoadCuttingDetails();
11458
- setRoadCuttingDetails(prev => [...prev, newRoadCutting]);
11511
+ setRoadCuttingDetails(prev => [...(Array.isArray(prev) ? prev : []), newRoadCutting]);
11459
11512
  };
11460
11513
  const removeroadCutt = roadCutt => {
11461
11514
  (roadCutt === null || roadCutt === void 0 ? void 0 : roadCutt.id) !== null ? setRoadCuttingDetails(prev => prev.map(e => e.key == roadCutt.key && e.id !== null ? {
@@ -11485,7 +11538,7 @@ const WSRoadCuttingDetails = ({
11485
11538
  isEditScreen
11486
11539
  };
11487
11540
  if (isMdmsLoading) return /*#__PURE__*/React.createElement(Loader, null);
11488
- return /*#__PURE__*/React.createElement(React.Fragment, null, roadCuttingDetails.filter(o => o.status !== "INACTIVE").map((roadCutt, index) => /*#__PURE__*/React.createElement(RoadCuttForm, Object.assign({
11541
+ return /*#__PURE__*/React.createElement(React.Fragment, null, (roadCuttingDetails === null || roadCuttingDetails === void 0 ? void 0 : roadCuttingDetails.length) && roadCuttingDetails.filter(o => o.status !== "INACTIVE").map((roadCutt, index) => /*#__PURE__*/React.createElement(RoadCuttForm, Object.assign({
11489
11542
  key: roadCutt.key,
11490
11543
  index: index,
11491
11544
  roadCutt: roadCutt
@@ -11718,7 +11771,7 @@ const WSPropertyDetails = ({
11718
11771
  ${pinCode ? ", " + pinCode : ""}`;
11719
11772
  };
11720
11773
  if (loading) {
11721
- return /*#__PURE__*/React.createElement(Loader$1, null);
11774
+ return /*#__PURE__*/React.createElement(Loader, null);
11722
11775
  }
11723
11776
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
11724
11777
  className: "card-label-smaller"
@@ -13735,7 +13788,7 @@ const WSActivationConnectionDetails = ({
13735
13788
  data: wsServicesCalculationData
13736
13789
  } = Digit.Hooks.ws.useMDMS(stateCode, "ws-services-calculation", ["PipeSize"]);
13737
13790
  useEffect(() => {
13738
- const data = connectionDetails.map(e => {
13791
+ const data = (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.length) && connectionDetails.map(e => {
13739
13792
  return e;
13740
13793
  });
13741
13794
  onSelect(config === null || config === void 0 ? void 0 : config.key, data);
@@ -13792,7 +13845,7 @@ const WSActivationConnectionDetails = ({
13792
13845
  });
13793
13846
  }
13794
13847
  }, [connectionDetails]);
13795
- if (isMdmsLoading || isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
13848
+ if (isMdmsLoading || isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader, null);
13796
13849
  const commonProps = {
13797
13850
  focusIndex,
13798
13851
  allOwners: connectionDetails,
@@ -13815,11 +13868,11 @@ const WSActivationConnectionDetails = ({
13815
13868
  setWaterSubSourceList,
13816
13869
  mdmsData
13817
13870
  };
13818
- return /*#__PURE__*/React.createElement(React.Fragment, null, connectionDetails.map((connectionDetail, index) => /*#__PURE__*/React.createElement(ConnectionDetails$2, Object.assign({
13871
+ return /*#__PURE__*/React.createElement(React.Fragment, null, (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.length) && (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.map((connectionDetail, index) => /*#__PURE__*/React.createElement(ConnectionDetails$2, Object.assign({
13819
13872
  key: connectionDetail.key || index,
13820
13873
  index: index,
13821
13874
  connectionDetail: connectionDetail
13822
- }, commonProps))));
13875
+ }, commonProps)))));
13823
13876
  };
13824
13877
  const ConnectionDetails$2 = _props => {
13825
13878
  var _errors$connectionTyp2, _errors$waterSource2, _errors$sourceSubData2, _errors$pipeSize2, _errors$noOfTaps2, _errors$noOfWaterClos2, _errors$noOfToilets2;
@@ -14239,7 +14292,7 @@ const WSActivationPlumberDetails = ({
14239
14292
  code: "Self"
14240
14293
  }];
14241
14294
  useEffect(() => {
14242
- const data = plumberDetails.map(e => {
14295
+ const data = plumberDetails.length && plumberDetails.map(e => {
14243
14296
  return e;
14244
14297
  });
14245
14298
  onSelect(config === null || config === void 0 ? void 0 : config.key, data);
@@ -14262,7 +14315,7 @@ const WSActivationPlumberDetails = ({
14262
14315
  options,
14263
14316
  setPlumberDetails
14264
14317
  };
14265
- return /*#__PURE__*/React.createElement(React.Fragment, null, plumberDetails.map((plumberDetail, index) => /*#__PURE__*/React.createElement(PlumberDetails, Object.assign({
14318
+ return /*#__PURE__*/React.createElement(React.Fragment, null, (plumberDetails === null || plumberDetails === void 0 ? void 0 : plumberDetails.length) && plumberDetails.map((plumberDetail, index) => /*#__PURE__*/React.createElement(PlumberDetails, Object.assign({
14266
14319
  key: plumberDetail.key || index,
14267
14320
  index: index,
14268
14321
  plumberDetail: plumberDetail
@@ -15069,7 +15122,7 @@ const WSDocumentsEmployee = ({
15069
15122
  goNext();
15070
15123
  }, [documents]);
15071
15124
  if (isLoading) {
15072
- return /*#__PURE__*/React.createElement(Loader$1, null);
15125
+ return /*#__PURE__*/React.createElement(Loader, null);
15073
15126
  }
15074
15127
  const applicationDetailsData = JSON.parse(sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS"));
15075
15128
  if (window.location.href.includes("edit") && (applicationDetailsData === null || applicationDetailsData === void 0 ? void 0 : (_applicationDetailsDa = applicationDetailsData.applicationData) === null || _applicationDetailsDa === void 0 ? void 0 : (_applicationDetailsDa2 = _applicationDetailsDa.documents) === null || _applicationDetailsDa2 === void 0 ? void 0 : _applicationDetailsDa2.length) > 0) {
@@ -15360,7 +15413,7 @@ const WSEditConnectionDetails = ({
15360
15413
  setConnectionDetails([createConnectionDetails$2()]);
15361
15414
  }
15362
15415
  }, [formData === null || formData === void 0 ? void 0 : formData.ConnectionDetails]);
15363
- if (isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
15416
+ if (isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader, null);
15364
15417
  const commonProps = {
15365
15418
  focusIndex,
15366
15419
  connectionDetails,
@@ -15756,7 +15809,7 @@ const WSDisconnectionDocsRequired = ({
15756
15809
  } = Digit.Hooks.ws.WSSearchMdmsTypes.useWSServicesMasters(tenantId, "DisconnectionDocuments");
15757
15810
  if (userType === "citizen") {
15758
15811
  var _wsDocs$Disconnection;
15759
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`WS_COMMON_APPLICATION_DISCONNECTION`)), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
15812
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`WS_COMMON_APPLICATION_DISCONNECTION`)), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
15760
15813
  style: {
15761
15814
  margin: "0px"
15762
15815
  },
@@ -15782,7 +15835,7 @@ const WSDisconnectionDocsRequired = ({
15782
15835
  color: "#0B0C0C",
15783
15836
  marginTop: "12px"
15784
15837
  }
15785
- }, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(Fragment$2, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((doc, index) => {
15838
+ }, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((doc, index) => {
15786
15839
  var _doc$dropdownData;
15787
15840
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
15788
15841
  style: {
@@ -15828,7 +15881,7 @@ const WSDisconnectionDocsRequired = ({
15828
15881
  fontSize: "32px",
15829
15882
  marginLeft: "18px"
15830
15883
  }
15831
- }, t("WS_WATER_AND_SEWERAGE_DISCONNECTION")), /*#__PURE__*/React.createElement(Card, null, wsDocsLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement("div", {
15884
+ }, t("WS_WATER_AND_SEWERAGE_DISCONNECTION")), /*#__PURE__*/React.createElement(Card, null, wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
15832
15885
  id: "documents-div"
15833
15886
  }, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection2 = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection2 === void 0 ? void 0 : _wsDocs$Disconnection2.map((doc, index) => {
15834
15887
  var _doc$dropdownData3;
@@ -17664,7 +17717,7 @@ const WSDisconnectionForm = ({
17664
17717
  }
17665
17718
  }
17666
17719
  };
17667
- if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
17720
+ if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader, null);
17668
17721
  if (userType === 'citizen') {
17669
17722
  var _disconnectionData$ty, _disconnectionData$ty2, _disconnectionData$ty3, _disconnectionData$ty4, _disconnectionData$ty5, _disconnectionData$re2, _disconnectionData$re3, _disconnectionData$re4, _disconnectionData$re5;
17670
17723
  return /*#__PURE__*/React.createElement("div", null, userType === "citizen" && /*#__PURE__*/React.createElement(DisconnectTimeline, {
@@ -18341,7 +18394,7 @@ const WSRestorationForm = ({
18341
18394
  }
18342
18395
  }
18343
18396
  };
18344
- if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
18397
+ if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader, null);
18345
18398
  if (userType === 'citizen') {
18346
18399
  var _disconnectionData$re2, _disconnectionData$re3;
18347
18400
  return /*#__PURE__*/React.createElement("div", null, userType === "citizen" && /*#__PURE__*/React.createElement(DisconnectTimeline, {
@@ -18551,7 +18604,7 @@ function WSDisconnectionDocumentsForm({
18551
18604
  data: wsDocs
18552
18605
  } = Digit.Hooks.ws.WSSearchMdmsTypes.useWSServicesMasters(tenantId, 'DisconnectionDocuments');
18553
18606
  if (wsDocsLoading) {
18554
- return /*#__PURE__*/React.createElement(Loader$1, null);
18607
+ return /*#__PURE__*/React.createElement(Loader, null);
18555
18608
  }
18556
18609
  return /*#__PURE__*/React.createElement("div", {
18557
18610
  style: {
@@ -19216,7 +19269,7 @@ const FilterFormFieldsComponent = ({
19216
19269
  });
19217
19270
  return props.onChange(res);
19218
19271
  };
19219
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
19272
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
19220
19273
  name: "assignee",
19221
19274
  control: controlFilterForm,
19222
19275
  render: props => {
@@ -19247,7 +19300,7 @@ const FilterFormFieldsComponent = ({
19247
19300
  });
19248
19301
  });
19249
19302
  }, [props === null || props === void 0 ? void 0 : props.value]);
19250
- return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
19303
+ return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
19251
19304
  className: "filter-label sub-filter-label"
19252
19305
  }, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
19253
19306
  options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
@@ -19282,9 +19335,9 @@ const FilterFormFieldsComponent = ({
19282
19335
  key: index + 1
19283
19336
  });
19284
19337
  }), [props.value, statuses]);
19285
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
19338
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
19286
19339
  className: "filter-label sub-filter-label"
19287
- }, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(Fragment$2, null, " ", renderStatusCheckBoxess));
19340
+ }, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
19288
19341
  }
19289
19342
  })), (selectedApplicationType === null || selectedApplicationType === void 0 ? void 0 : selectedApplicationType.length) > 0 ? /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
19290
19343
  name: "applicationStatus",
@@ -19311,9 +19364,9 @@ const FilterFormFieldsComponent = ({
19311
19364
  });
19312
19365
  });
19313
19366
  }, [props.value, statuses, selectedApplicationType]);
19314
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
19367
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
19315
19368
  className: "filter-label sub-filter-label"
19316
- }, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(Fragment$2, null, renderStatusCheckBoxes));
19369
+ }, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, renderStatusCheckBoxes));
19317
19370
  }
19318
19371
  })) : null);
19319
19372
  };
@@ -20021,7 +20074,7 @@ const SearchFields = ({
20021
20074
  name: "mobileNumber",
20022
20075
  type: "number",
20023
20076
  inputRef: register({})
20024
- }, propsForMobileNumber))), applicationTypesLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_APPLICATION_TYPE_LABEL")), /*#__PURE__*/React.createElement(Controller, {
20077
+ }, propsForMobileNumber))), applicationTypesLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_APPLICATION_TYPE_LABEL")), /*#__PURE__*/React.createElement(Controller, {
20025
20078
  control: control,
20026
20079
  name: "applicationType",
20027
20080
  render: props => /*#__PURE__*/React.createElement(Dropdown, {
@@ -20032,7 +20085,7 @@ const SearchFields = ({
20032
20085
  optionKey: "i18nKey",
20033
20086
  t: t
20034
20087
  })
20035
- })), isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_COMMON_TABLE_COL_APPLICATION_STATUS_LABEL")), /*#__PURE__*/React.createElement(Controller, {
20088
+ })), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_COMMON_TABLE_COL_APPLICATION_STATUS_LABEL")), /*#__PURE__*/React.createElement(Controller, {
20036
20089
  control: control,
20037
20090
  name: "applicationStatus",
20038
20091
  render: props => /*#__PURE__*/React.createElement(Dropdown, {
@@ -20474,7 +20527,7 @@ const SearchApplication = ({
20474
20527
  sortOrder: "DESC"
20475
20528
  });
20476
20529
  }
20477
- }, t(`CS_COMMON_CLEAR_SEARCH`))))), isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
20530
+ }, t(`CS_COMMON_CLEAR_SEARCH`))))), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
20478
20531
  style: {
20479
20532
  marginTop: 20
20480
20533
  }
@@ -20530,7 +20583,7 @@ const SearchFields$1 = ({
20530
20583
  title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
20531
20584
  };
20532
20585
  let validation = {};
20533
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
20586
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
20534
20587
  name: "connectionNumber",
20535
20588
  inputRef: register({})
20536
20589
  }, validation = {
@@ -21073,7 +21126,7 @@ const SearchWaterConnection = ({
21073
21126
  oldConnectionNumber: ""
21074
21127
  });
21075
21128
  }
21076
- }, t("WS_SEARCH_CONNECTION_RESET_BUTTON"))))), isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
21129
+ }, t("WS_SEARCH_CONNECTION_RESET_BUTTON"))))), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
21077
21130
  style: {
21078
21131
  marginTop: 20
21079
21132
  }
@@ -21164,7 +21217,7 @@ const BulkBillSearchFields = ({
21164
21217
  setValue('tenantId', tenant);
21165
21218
  setLocality(value);
21166
21219
  }
21167
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_CITY")), /*#__PURE__*/React.createElement(TextInput, {
21220
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_CITY")), /*#__PURE__*/React.createElement(TextInput, {
21168
21221
  name: "city",
21169
21222
  disable: true,
21170
21223
  value: t(tenant),
@@ -21569,7 +21622,7 @@ const BulkBillSearch = ({
21569
21622
  return GetCell((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["status"]);
21570
21623
  }
21571
21624
  }]);
21572
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, {
21625
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
21573
21626
  styles: {
21574
21627
  fontSize: "32px"
21575
21628
  }
@@ -21584,7 +21637,7 @@ const BulkBillSearch = ({
21584
21637
  tenantId,
21585
21638
  t,
21586
21639
  setValue
21587
- })), isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : null, isLoadingBulkMeterReading && /*#__PURE__*/React.createElement(Loader$1, null), data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
21640
+ })), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, isLoadingBulkMeterReading && /*#__PURE__*/React.createElement(Loader, null), data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
21588
21641
  style: {
21589
21642
  marginTop: 20
21590
21643
  }
@@ -21937,7 +21990,7 @@ const SearchFormFieldsComponents$1 = ({
21937
21990
  componentInFront: "+91"
21938
21991
  };
21939
21992
  let validation = {};
21940
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, {
21993
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
21941
21994
  className: "wns-search-field"
21942
21995
  }, /*#__PURE__*/React.createElement("label", null, t("BILLAMEND_APPLICATIONNO")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
21943
21996
  name: "applicationNumber",
@@ -22004,7 +22057,7 @@ const FilterFormFieldsComponent$1 = ({
22004
22057
  });
22005
22058
  return props.onChange(res);
22006
22059
  };
22007
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
22060
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
22008
22061
  name: "assignee",
22009
22062
  control: controlFilterForm,
22010
22063
  render: props => /*#__PURE__*/React.createElement(RadioButtons, {
@@ -22033,7 +22086,7 @@ const FilterFormFieldsComponent$1 = ({
22033
22086
  });
22034
22087
  });
22035
22088
  }, [props === null || props === void 0 ? void 0 : props.value]);
22036
- return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
22089
+ return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
22037
22090
  className: "filter-label sub-filter-label"
22038
22091
  }, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
22039
22092
  options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
@@ -22072,9 +22125,9 @@ const FilterFormFieldsComponent$1 = ({
22072
22125
  key: index + 1
22073
22126
  });
22074
22127
  }), [props.value, statuses]);
22075
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
22128
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
22076
22129
  className: "filter-label sub-filter-label"
22077
- }, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(Fragment$2, null, " ", renderStatusCheckBoxess));
22130
+ }, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
22078
22131
  }
22079
22132
  })));
22080
22133
  };
@@ -22102,7 +22155,7 @@ const useInboxTableConfig$1 = ({
22102
22155
  if (value === "Approved") {
22103
22156
  return /*#__PURE__*/React.createElement("span", {
22104
22157
  style: {
22105
- color: "#00703C"
22158
+ color: "#2E9E8F"
22106
22159
  }
22107
22160
  }, value);
22108
22161
  }
@@ -22582,7 +22635,7 @@ const Inbox = ({
22582
22635
  sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
22583
22636
  onSortFormReset
22584
22637
  };
22585
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, null, t("ES_COMMON_INBOX"), totalCount ? /*#__PURE__*/React.createElement("p", {
22638
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, null, t("ES_COMMON_INBOX"), totalCount ? /*#__PURE__*/React.createElement("p", {
22586
22639
  className: "inbox-count"
22587
22640
  }, totalCount) : null), /*#__PURE__*/React.createElement(InboxComposer, _extends({
22588
22641
  isInboxLoading,
@@ -23696,7 +23749,7 @@ var ContextConsumer = k;
23696
23749
  var ContextProvider = h;
23697
23750
  var Element = c;
23698
23751
  var ForwardRef = n;
23699
- var Fragment$1 = e;
23752
+ var Fragment = e;
23700
23753
  var Lazy = t;
23701
23754
  var Memo = r;
23702
23755
  var Portal = d;
@@ -23751,7 +23804,7 @@ var reactIs_production_min = {
23751
23804
  ContextProvider: ContextProvider,
23752
23805
  Element: Element,
23753
23806
  ForwardRef: ForwardRef,
23754
- Fragment: Fragment$1,
23807
+ Fragment: Fragment,
23755
23808
  Lazy: Lazy,
23756
23809
  Memo: Memo,
23757
23810
  Portal: Portal,
@@ -24567,7 +24620,7 @@ const SearchConnection = ({
24567
24620
  }
24568
24621
  });
24569
24622
  if (isLoading) {
24570
- return /*#__PURE__*/React.createElement(Loader$1, null);
24623
+ return /*#__PURE__*/React.createElement(Loader, null);
24571
24624
  }
24572
24625
  const onConnectionSearch = async data => {
24573
24626
  if (searchType.code === "CONSUMER_NUMBER") {
@@ -25828,7 +25881,7 @@ const ChallanSearchResults = ({
25828
25881
  privacy: Digit.Utils.getPrivacyObject()
25829
25882
  });
25830
25883
  if (isWSLoading || isSWLoading) {
25831
- return /*#__PURE__*/React.createElement(Loader$1, null);
25884
+ return /*#__PURE__*/React.createElement(Loader, null);
25832
25885
  }
25833
25886
  const onSubmit = data => {
25834
25887
  history.push(`/digit-ui/citizen/payment/my-bills/${data === null || data === void 0 ? void 0 : data.ConsumerNumber.split("/")[0]}/${stringReplaceAll(data === null || data === void 0 ? void 0 : data.ConsumerNumber, "/", "+")}?workflow=WNS&tenantId=${tenantId}&ConsumerName=${data === null || data === void 0 ? void 0 : data.ConsumerName}`);
@@ -26056,12 +26109,12 @@ const WSWFApplicationTimeline = props => {
26056
26109
  }
26057
26110
  };
26058
26111
  if (isLoading) {
26059
- return /*#__PURE__*/React.createElement(Loader$1, null);
26112
+ return /*#__PURE__*/React.createElement(Loader, null);
26060
26113
  }
26061
26114
  const toggleTimeline = () => {
26062
26115
  setShowAllTimeline(prev => !prev);
26063
26116
  };
26064
- return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading && /*#__PURE__*/React.createElement(Fragment$2, null, (data === null || data === void 0 ? void 0 : (_data$timeline = data.timeline) === null || _data$timeline === void 0 ? void 0 : _data$timeline.length) > 0 && /*#__PURE__*/React.createElement(CardSectionHeader, {
26117
+ return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading && /*#__PURE__*/React.createElement(Fragment$1, null, (data === null || data === void 0 ? void 0 : (_data$timeline = data.timeline) === null || _data$timeline === void 0 ? void 0 : _data$timeline.length) > 0 && /*#__PURE__*/React.createElement(CardSectionHeader, {
26065
26118
  style: {
26066
26119
  marginBottom: "16px"
26067
26120
  }
@@ -26111,7 +26164,7 @@ function WSDocument({
26111
26164
  documents.push(ob);
26112
26165
  });
26113
26166
  if (isLoading) {
26114
- return /*#__PURE__*/React.createElement(Loader$1, null);
26167
+ return /*#__PURE__*/React.createElement(Loader, null);
26115
26168
  }
26116
26169
  return /*#__PURE__*/React.createElement("div", {
26117
26170
  style: {
@@ -26339,7 +26392,7 @@ const WSApplicationDetails = () => {
26339
26392
  }) || false;
26340
26393
  const isPaid = (data === null || data === void 0 ? void 0 : (_data$WaterConnection13 = data.WaterConnection) === null || _data$WaterConnection13 === void 0 ? void 0 : (_data$WaterConnection14 = _data$WaterConnection13[0]) === null || _data$WaterConnection14 === void 0 ? void 0 : _data$WaterConnection14.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection15 = data.WaterConnection) === null || _data$WaterConnection15 === void 0 ? void 0 : (_data$WaterConnection16 = _data$WaterConnection15[0]) === null || _data$WaterConnection16 === void 0 ? void 0 : _data$WaterConnection16.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect1 = data.SewerageConnections) === null || _data$SewerageConnect1 === void 0 ? void 0 : (_data$SewerageConnect10 = _data$SewerageConnect1[0]) === null || _data$SewerageConnect10 === void 0 ? void 0 : _data$SewerageConnect10.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect11 = data.SewerageConnections) === null || _data$SewerageConnect11 === void 0 ? void 0 : (_data$SewerageConnect12 = _data$SewerageConnect11[0]) === null || _data$SewerageConnect12 === void 0 ? void 0 : _data$SewerageConnect12.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" ? true : false;
26341
26394
  if (isLoading) {
26342
- return /*#__PURE__*/React.createElement(Loader$1, null);
26395
+ return /*#__PURE__*/React.createElement(Loader, null);
26343
26396
  }
26344
26397
  const handleDownloadPdf = async () => {
26345
26398
  var _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection19, _data$SewerageConnect15, _PTData$Properties;
@@ -27040,7 +27093,7 @@ const WSAdditionalDetails = () => {
27040
27093
  filters: filter1
27041
27094
  });
27042
27095
  if (isLoading) {
27043
- return /*#__PURE__*/React.createElement(Loader$1, null);
27096
+ return /*#__PURE__*/React.createElement(Loader, null);
27044
27097
  }
27045
27098
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, t("WS_COMMON_ADDN_DETAILS")), /*#__PURE__*/React.createElement("div", {
27046
27099
  className: "hide-seperator"
@@ -27604,7 +27657,7 @@ const ConnectionDetails$5 = () => {
27604
27657
  }, /*#__PURE__*/React.createElement(Close, null));
27605
27658
  };
27606
27659
  if (isLoading || isPTLoading) {
27607
- return /*#__PURE__*/React.createElement(Loader$1, null);
27660
+ return /*#__PURE__*/React.createElement(Loader, null);
27608
27661
  }
27609
27662
  sessionStorage.setItem("ApplicationNoState", (_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.applicationNo);
27610
27663
  let serviceType = (_state4 = state) !== null && _state4 !== void 0 && (_state4$applicationTy = _state4.applicationType) !== null && _state4$applicationTy !== void 0 && _state4$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
@@ -28089,7 +28142,7 @@ const consumptionDetails = ({
28089
28142
  } else return t("NA");
28090
28143
  };
28091
28144
  if (isLoading) {
28092
- return /*#__PURE__*/React.createElement(Loader$1, null);
28145
+ return /*#__PURE__*/React.createElement(Loader, null);
28093
28146
  }
28094
28147
  let {
28095
28148
  meterReadings
@@ -28279,7 +28332,7 @@ const WSMyPayments = () => {
28279
28332
  enabled: connectionNoSW !== null ? true : false
28280
28333
  });
28281
28334
  if (isLoading || iswsLoading || isswLoading || isSWLoading || isPropertyLoading) {
28282
- return /*#__PURE__*/React.createElement(Loader$1, null);
28335
+ return /*#__PURE__*/React.createElement(Loader, null);
28283
28336
  }
28284
28337
  const wspayment = wspayments && (wspayments === null || wspayments === void 0 ? void 0 : wspayments.Payments) || [];
28285
28338
  const swpayment = swpayments && (swpayments === null || swpayments === void 0 ? void 0 : swpayments.Payments) || [];
@@ -28642,7 +28695,7 @@ const EditApplication = ({
28642
28695
  });
28643
28696
  config.indexRoute = "property-details";
28644
28697
  if ((Waterresult && Object.keys(Waterresult).length > 0 || !Sewarageresult) && Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || configLoading) {
28645
- return /*#__PURE__*/React.createElement(Loader$1, null);
28698
+ return /*#__PURE__*/React.createElement(Loader, null);
28646
28699
  }
28647
28700
  const CheckPage = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent('WSCheckPage');
28648
28701
  const Acknowledgement = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent('WSAcknowledgement');
@@ -29122,7 +29175,7 @@ const MyConnections = ({
29122
29175
  };
29123
29176
  });
29124
29177
  if (isLoading || PTisLoading || isSWLoading) {
29125
- return /*#__PURE__*/React.createElement(Loader$1, null);
29178
+ return /*#__PURE__*/React.createElement(Loader, null);
29126
29179
  }
29127
29180
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, `${t("WS_MYCONNECTIONS_HEADER")} ${connectionList ? `(${connectionList.length})` : ""}`), /*#__PURE__*/React.createElement(WSInfoLabel, {
29128
29181
  t: t
@@ -29246,7 +29299,7 @@ const WSAcknowledgement = ({
29246
29299
  }, tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.code, t);
29247
29300
  data2.then(ress => Digit.Utils.pdf.generatev1(ress));
29248
29301
  };
29249
- return ((data === null || data === void 0 ? void 0 : (_data$serviceName7 = data.serviceName) === null || _data$serviceName7 === void 0 ? void 0 : _data$serviceName7.code) === "WATER" ? WSmutation.isLoading || WSmutation.isIdle : (data === null || data === void 0 ? void 0 : (_data$serviceName8 = data.serviceName) === null || _data$serviceName8 === void 0 ? void 0 : _data$serviceName8.code) === "SEWERAGE" ? SWmutation.isLoading || SWmutation.isIdle : WSmutation.isLoading || WSmutation.isIdle || SWmutation.isLoading || SWmutation.isIdle) ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(BannerPicker$2, {
29302
+ return ((data === null || data === void 0 ? void 0 : (_data$serviceName7 = data.serviceName) === null || _data$serviceName7 === void 0 ? void 0 : _data$serviceName7.code) === "WATER" ? WSmutation.isLoading || WSmutation.isIdle : (data === null || data === void 0 ? void 0 : (_data$serviceName8 = data.serviceName) === null || _data$serviceName8 === void 0 ? void 0 : _data$serviceName8.code) === "SEWERAGE" ? SWmutation.isLoading || SWmutation.isIdle : WSmutation.isLoading || WSmutation.isIdle || SWmutation.isLoading || SWmutation.isIdle) ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(BannerPicker$2, {
29250
29303
  t: t,
29251
29304
  clearParams: clearParams,
29252
29305
  Waterdata: WSmutation.data,
@@ -29438,7 +29491,7 @@ const CheckPage$1 = () => {
29438
29491
  }
29439
29492
  };
29440
29493
  if (isEnableLoader) {
29441
- return /*#__PURE__*/React.createElement(Loader$1, null);
29494
+ return /*#__PURE__*/React.createElement(Loader, null);
29442
29495
  }
29443
29496
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
29444
29497
  styles: {
@@ -29701,7 +29754,7 @@ const CheckPage$2 = () => {
29701
29754
  }
29702
29755
  };
29703
29756
  if (isEnableLoader) {
29704
- return /*#__PURE__*/React.createElement(Loader$1, null);
29757
+ return /*#__PURE__*/React.createElement(Loader, null);
29705
29758
  }
29706
29759
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
29707
29760
  styles: {
@@ -29847,7 +29900,7 @@ const CheckPage$3 = () => {
29847
29900
  }
29848
29901
  };
29849
29902
  if (isEnableLoader) {
29850
- return /*#__PURE__*/React.createElement(Loader$1, null);
29903
+ return /*#__PURE__*/React.createElement(Loader, null);
29851
29904
  }
29852
29905
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
29853
29906
  styles: {
@@ -30041,7 +30094,7 @@ const WNSMyBills = ({
30041
30094
  privacy: Digit.Utils.getPrivacyObject()
30042
30095
  });
30043
30096
  if (Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || Waterresult == undefined || Sewarageresult == undefined) {
30044
- return /*#__PURE__*/React.createElement(Loader$1, null);
30097
+ return /*#__PURE__*/React.createElement(Loader, null);
30045
30098
  }
30046
30099
  const onSubmit = data => {
30047
30100
  history.push(`/digit-ui/citizen/payment/my-bills/${data === null || data === void 0 ? void 0 : data.ConsumerNumber.split("/")[0]}/${stringReplaceAll(data === null || data === void 0 ? void 0 : data.ConsumerNumber, "/", "+")}?workflow=WNS&tenantId=${tenantId}&ConsumerName=${data === null || data === void 0 ? void 0 : data.ConsumerName}`);
@@ -30481,7 +30534,7 @@ const ApplicationBillAmendment = () => {
30481
30534
  style: {
30482
30535
  paddingLeft: "150px"
30483
30536
  }
30484
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Controller, {
30537
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
30485
30538
  name: `${servicev1}_REDUCED_AMOUNT.VALUE`,
30486
30539
  key: `${servicev1}_REDUCED_AMOUNT.VALUE`,
30487
30540
  control: control,
@@ -30516,7 +30569,7 @@ const ApplicationBillAmendment = () => {
30516
30569
  checked: props === null || props === void 0 ? void 0 : props.value
30517
30570
  }));
30518
30571
  }
30519
- }), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Controller, {
30572
+ }), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
30520
30573
  name: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
30521
30574
  key: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
30522
30575
  control: control,
@@ -30567,7 +30620,7 @@ const ApplicationBillAmendment = () => {
30567
30620
  paddingRight: "60px",
30568
30621
  paddingLeft: "150px"
30569
30622
  }
30570
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
30623
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
30571
30624
  disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
30572
30625
  type: "number",
30573
30626
  name: `${servicev1}_REDUCED_AMOUNT.${node.taxHeadCode}`,
@@ -30597,7 +30650,7 @@ const ApplicationBillAmendment = () => {
30597
30650
  style: {
30598
30651
  paddingRight: "60px"
30599
30652
  }
30600
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
30653
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
30601
30654
  disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
30602
30655
  type: "number",
30603
30656
  name: `${servicev1}_ADDITIONAL_AMOUNT.${node.taxHeadCode}`,
@@ -30645,7 +30698,7 @@ const ApplicationBillAmendment = () => {
30645
30698
  paddingRight: "60px",
30646
30699
  paddingLeft: "150px"
30647
30700
  }
30648
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
30701
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
30649
30702
  disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
30650
30703
  name: `${servicev1}_REBATE`,
30651
30704
  inputRef: register()
@@ -30653,11 +30706,11 @@ const ApplicationBillAmendment = () => {
30653
30706
  style: {
30654
30707
  paddingRight: "60px"
30655
30708
  }
30656
- }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
30709
+ }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
30657
30710
  disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
30658
30711
  name: `${servicev1}_PENALTY`,
30659
30712
  inputRef: register()
30660
- }))))))) : /*#__PURE__*/React.createElement(Loader$1, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
30713
+ }))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
30661
30714
  style: {
30662
30715
  marginBottom: "16px"
30663
30716
  }
@@ -30867,7 +30920,7 @@ const RequiredDocuments = ({
30867
30920
  }));
30868
30921
  };
30869
30922
  const handlePrint = () => Digit.Download.PDF(fullPageRef, t("ES_COMMON_WS_DOCUMENTS_REQUIRED"));
30870
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
30923
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
30871
30924
  ref: fullPageRef
30872
30925
  }, /*#__PURE__*/React.createElement("div", {
30873
30926
  className: "options"
@@ -30884,40 +30937,397 @@ const RequiredDocuments = ({
30884
30937
  position: "relative"
30885
30938
  },
30886
30939
  className: "employeeCard-override"
30887
- }, BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : BillAmendmentMDMS === null || BillAmendmentMDMS === void 0 ? void 0 : BillAmendmentMDMS.map(e => {
30888
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardHeader, null, t(e.code).replaceAll("_", " ")), /*#__PURE__*/React.createElement(CardLabel, null, t(`WS_DOCS_REQ_INFO`)), e.allowedDocuments.allowedDocs.map((e, i) => /*#__PURE__*/React.createElement(CardLabelDesc, null, i + 1, ". ", t(`${e.documentType}`))));
30940
+ }, BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : BillAmendmentMDMS === null || BillAmendmentMDMS === void 0 ? void 0 : BillAmendmentMDMS.map(e => {
30941
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, null, t(e.code).replaceAll("_", " ")), /*#__PURE__*/React.createElement(CardLabel, null, t(`WS_DOCS_REQ_INFO`)), e.allowedDocuments.allowedDocs.map((e, i) => /*#__PURE__*/React.createElement(CardLabelDesc, null, i + 1, ". ", t(`${e.documentType}`))));
30889
30942
  }))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
30890
30943
  label: t("WS_COMMON_BUTTON_APPLY"),
30891
30944
  onSubmit: () => redirectToBillAmdmentPage()
30892
30945
  })));
30893
30946
  };
30894
30947
 
30948
+ const FORM_STORAGE_KEY = "WS_EMPLOYEE_NEW_APPLICATION_FORM";
30949
+ const MAX_FILE_SIZE = 5242880;
30950
+ const SUPPORTED_FILE_TYPES = /(\.pdf|\.png|\.jpe?g)$/i;
30951
+ const NAME_PATTERN = /^[a-zA-Z\s.'-]{1,50}$/;
30952
+ const EMAIL_PATTERN = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;
30953
+ const MOBILE_PATTERN = /^[6-9][0-9]{9}$/;
30954
+ const OFFICE_PATTERN = /^[0-9]{6,12}$/;
30955
+ const PINCODE_PATTERN = /^[1-9][0-9]{5}$/;
30956
+ const NUMBER_PATTERN = /^\d+$/;
30957
+ const DECIMAL_PATTERN = /^\d+(\.\d{1,2})?$/;
30958
+ const IFSC_PATTERN = /^[A-Z]{4}0[A-Z0-9]{6}$/;
30959
+ const ACCOUNT_PATTERN = /^[0-9]{9,18}$/;
30960
+ const COLLAPSIBLE_CONTENT_TAB = "__WS_SECTION_CONTENT__";
30961
+ const createOption = (code, name) => ({
30962
+ code,
30963
+ name
30964
+ });
30965
+ const TYPE_OF_REQUEST_OPTIONS = [createOption("NEW_CONNECTION", "New Connection"), createOption("TEMPORARY_CONNECTION", "Temporary Connection"), createOption("CHANGE_REQUEST", "Change Request")];
30966
+ const CONNECTION_TYPE_OPTIONS = [createOption("METERED", "Metered"), createOption("NON_METERED", "Non Metered")];
30967
+ const LOCALITY_OPTIONS = [createOption("DWARKA", "Dwarka"), createOption("ROHINI", "Rohini"), createOption("KAROL_BAGH", "Karol Bagh")];
30968
+ const SUB_LOCALITY_OPTIONS = {
30969
+ DWARKA: [createOption("SECTOR_6", "Sector 6"), createOption("SECTOR_10", "Sector 10"), createOption("SECTOR_12", "Sector 12")],
30970
+ ROHINI: [createOption("SECTOR_3", "Sector 3"), createOption("SECTOR_8", "Sector 8"), createOption("SECTOR_16", "Sector 16")],
30971
+ KAROL_BAGH: [createOption("DEV_NAGAR", "Dev Nagar"), createOption("PAHAR_GANJ", "Pahar Ganj"), createOption("PATEL_NAGAR", "Patel Nagar")]
30972
+ };
30973
+ const ASSEMBLY_OPTIONS = [createOption("DWARKA_ASSEMBLY", "Dwarka Assembly"), createOption("ROHINI_ASSEMBLY", "Rohini Assembly"), createOption("KAROL_BAGH_ASSEMBLY", "Karol Bagh Assembly")];
30974
+ const WARD_OPTIONS = [createOption("WARD_101", "Ward 101"), createOption("WARD_102", "Ward 102"), createOption("WARD_103", "Ward 103")];
30975
+ const PROPERTY_TYPE_OPTIONS = [createOption("RESIDENTIAL", "Residential"), createOption("COMMERCIAL", "Commercial"), createOption("INDUSTRIAL", "Industrial"), createOption("INSTITUTIONAL", "Institutional"), createOption("HOSPITAL_NURSING_HOME", "Hospital / Nursing Home")];
30976
+ const WATER_CONNECTION_CATEGORY_OPTIONS = [createOption("DOMESTIC", "Domestic"), createOption("NON_DOMESTIC", "Non-Domestic"), createOption("MIXED_USE", "Mixed Use")];
30977
+ const WATER_CONNECTION_USED_BY_OPTIONS = [createOption("OWNER", "Owner"), createOption("TENANT", "Tenant"), createOption("AUTHORIZED_OCCUPIER", "Authorized Occupier")];
30978
+ const PROOF_OF_IDENTITY_OPTIONS = [createOption("AADHAAR", "Aadhaar"), createOption("PAN", "PAN"), createOption("VOTER_ID", "Voter ID"), createOption("PASSPORT", "Passport"), createOption("DRIVING_LICENSE", "Driving License")];
30979
+ const OWNERSHIP_STATUS_OPTIONS = [createOption("SELF_OWNED", "Self Owned"), createOption("LEASED", "Leased"), createOption("RENTED", "Rented"), createOption("GOVERNMENT_ALLOTTED", "Government Allotted")];
30980
+ const SUBMITTED_BY_OPTIONS = [createOption("APPLICANT", "Applicant"), createOption("AUTHORIZED_SIGNATORY", "Authorized Signatory"), createOption("DJB_COUNTER", "DJB Counter")];
30981
+ const DEFAULT_SECTION_STATE = {
30982
+ application: true,
30983
+ applicant: true,
30984
+ contact: true,
30985
+ employee: true,
30986
+ address: true,
30987
+ usage: true,
30988
+ bank: true,
30989
+ rainWaterHarvesting: true,
30990
+ documents: true,
30991
+ declaration: true
30992
+ };
30993
+ const DEFAULT_FORM_VALUES = {
30994
+ typeOfRequest: null,
30995
+ connectionType: null,
30996
+ applicant: {
30997
+ firstName: "",
30998
+ middleName: "",
30999
+ lastName: "",
31000
+ fatherOrHusbandName: "",
31001
+ isGovernmentOrganization: false,
31002
+ applicantIdProofFile: null,
31003
+ governmentOrganizationName: ""
31004
+ },
31005
+ contact: {
31006
+ emailId: "",
31007
+ mobileNumber: "",
31008
+ officeNumber: ""
31009
+ },
31010
+ djbEmployee: {
31011
+ isDjbEmployee: false,
31012
+ employeeId: "",
31013
+ retirementDate: "",
31014
+ officeNameAndAddress: ""
31015
+ },
31016
+ propertyAddress: {
31017
+ address: "",
31018
+ landmark: "",
31019
+ pinCode: "",
31020
+ locality: null,
31021
+ subLocality: null,
31022
+ assembly: null,
31023
+ ward: null
31024
+ },
31025
+ useDetails: {
31026
+ propertyType: null,
31027
+ noOfFloors: "",
31028
+ hospitalBeds: "",
31029
+ plotArea: "",
31030
+ builtUpArea: "",
31031
+ waterConnectionCategory: null,
31032
+ waterConnectionUsedBy: null
31033
+ },
31034
+ bankDetails: {
31035
+ bankName: "",
31036
+ branchName: "",
31037
+ ifscCode: "",
31038
+ bankAccountNumber: ""
31039
+ },
31040
+ rainWaterHarvesting: {
31041
+ applyForAdequacyCertificate: false
31042
+ },
31043
+ documents: {
31044
+ proofOfIdentity: null,
31045
+ identityProofFile: null,
31046
+ ownershipStatus: null,
31047
+ ownershipDocumentFile: null,
31048
+ otherDocumentFile: null
31049
+ },
31050
+ declaration: {
31051
+ submittedBy: null,
31052
+ signatureFile: null,
31053
+ captcha: "",
31054
+ agree: false
31055
+ },
31056
+ cpt: {
31057
+ id: "",
31058
+ details: null
31059
+ }
31060
+ };
31061
+ const fieldWrapperStyle = {
31062
+ display: "flex",
31063
+ flexDirection: "column",
31064
+ gap: "8px",
31065
+ minWidth: 0
31066
+ };
31067
+ const secondaryButtonStyle = {
31068
+ background: "#FFFFFF",
31069
+ border: "1px solid #0B4B66",
31070
+ boxShadow: "none",
31071
+ color: "#0B4B66"
31072
+ };
31073
+ const actionBarStyle = {
31074
+ display: "flex",
31075
+ justifyContent: "flex-end",
31076
+ alignItems: "center",
31077
+ gap: "16px",
31078
+ flexWrap: "wrap"
31079
+ };
31080
+ const captchaBoxStyle = {
31081
+ background: "#F3F7F9",
31082
+ border: "1px dashed #0B4B66",
31083
+ borderRadius: "4px",
31084
+ fontFamily: "monospace",
31085
+ fontSize: "20px",
31086
+ fontWeight: "700",
31087
+ letterSpacing: "4px",
31088
+ padding: "12px 16px"
31089
+ };
31090
+ const linkButtonStyle = {
31091
+ background: "transparent",
31092
+ border: "none",
31093
+ color: "#0B4B66",
31094
+ cursor: "pointer",
31095
+ fontSize: "14px",
31096
+ fontWeight: "600",
31097
+ padding: 0,
31098
+ textDecoration: "underline"
31099
+ };
31100
+ const getStoredFormData = () => {
31101
+ if (typeof window === "undefined") return {};
31102
+ try {
31103
+ const savedData = window.sessionStorage.getItem(FORM_STORAGE_KEY);
31104
+ return savedData ? JSON.parse(savedData) : {};
31105
+ } catch (error) {
31106
+ return {};
31107
+ }
31108
+ };
31109
+ const buildDefaultValues = (savedFormData = {}) => ({
31110
+ typeOfRequest: (savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.typeOfRequest) || DEFAULT_FORM_VALUES.typeOfRequest,
31111
+ connectionType: (savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.connectionType) || DEFAULT_FORM_VALUES.connectionType,
31112
+ applicant: {
31113
+ ...DEFAULT_FORM_VALUES.applicant,
31114
+ ...((savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.applicant) || {})
31115
+ },
31116
+ contact: {
31117
+ ...DEFAULT_FORM_VALUES.contact,
31118
+ ...((savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.contact) || {})
31119
+ },
31120
+ djbEmployee: {
31121
+ ...DEFAULT_FORM_VALUES.djbEmployee,
31122
+ ...((savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.djbEmployee) || {})
31123
+ },
31124
+ propertyAddress: {
31125
+ ...DEFAULT_FORM_VALUES.propertyAddress,
31126
+ ...((savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.propertyAddress) || {})
31127
+ },
31128
+ useDetails: {
31129
+ ...DEFAULT_FORM_VALUES.useDetails,
31130
+ ...((savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.useDetails) || {})
31131
+ },
31132
+ bankDetails: {
31133
+ ...DEFAULT_FORM_VALUES.bankDetails,
31134
+ ...((savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.bankDetails) || {})
31135
+ },
31136
+ rainWaterHarvesting: {
31137
+ ...DEFAULT_FORM_VALUES.rainWaterHarvesting,
31138
+ ...((savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.rainWaterHarvesting) || {})
31139
+ },
31140
+ documents: {
31141
+ ...DEFAULT_FORM_VALUES.documents,
31142
+ ...((savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.documents) || {})
31143
+ },
31144
+ declaration: {
31145
+ ...DEFAULT_FORM_VALUES.declaration,
31146
+ ...((savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.declaration) || {})
31147
+ },
31148
+ cpt: (savedFormData === null || savedFormData === void 0 ? void 0 : savedFormData.cpt) || {
31149
+ id: "",
31150
+ details: null
31151
+ }
31152
+ });
31153
+ const resolveNestedValue = (value, path) => path.split(".").reduce((accumulator, currentKey) => {
31154
+ if (accumulator === null || accumulator === undefined) return undefined;
31155
+ return accumulator[currentKey];
31156
+ }, value);
31157
+ const getDisplayValue = value => {
31158
+ if (value === null || value === undefined || value === "") return "Not provided";
31159
+ if (typeof value === "boolean") return value ? "Yes" : "No";
31160
+ if (typeof value === "object") {
31161
+ if (value !== null && value !== void 0 && value.fileName) return value.fileName;
31162
+ if (value !== null && value !== void 0 && value.name) return value.name;
31163
+ if (value !== null && value !== void 0 && value.code) return value.code;
31164
+ }
31165
+ return String(value);
31166
+ };
31167
+ const generateCaptcha = () => {
31168
+ const characters = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
31169
+ let captcha = "";
31170
+ for (let index = 0; index < 6; index += 1) {
31171
+ captcha += characters.charAt(Math.floor(Math.random() * characters.length));
31172
+ }
31173
+ return captcha;
31174
+ };
31175
+ const FieldBlock = ({
31176
+ label,
31177
+ required,
31178
+ error,
31179
+ children,
31180
+ hint,
31181
+ isFullWidth
31182
+ }) => {
31183
+ return /*#__PURE__*/React.createElement("div", {
31184
+ style: {
31185
+ ...fieldWrapperStyle,
31186
+ ...(isFullWidth ? {
31187
+ gridColumn: "1 / -1"
31188
+ } : {})
31189
+ }
31190
+ }, /*#__PURE__*/React.createElement(CardLabel, {
31191
+ style: {
31192
+ fontWeight: "600",
31193
+ marginBottom: "0px"
31194
+ }
31195
+ }, required ? `${label} *` : label), children, hint ? /*#__PURE__*/React.createElement(CardText, {
31196
+ style: {
31197
+ color: "#505A5F",
31198
+ fontSize: "14px",
31199
+ marginBottom: "0px",
31200
+ marginTop: "0px"
31201
+ }
31202
+ }, hint) : null, error ? /*#__PURE__*/React.createElement(CardLabelError, null, (error === null || error === void 0 ? void 0 : error.message) || error) : null);
31203
+ };
31204
+ const SectionCard = ({
31205
+ title,
31206
+ description,
31207
+ isOpen: _isOpen = true,
31208
+ children
31209
+ }) => {
31210
+ return /*#__PURE__*/React.createElement("div", {
31211
+ className: "ws-new-application-collapsible",
31212
+ style: {
31213
+ marginBottom: "16px"
31214
+ }
31215
+ }, /*#__PURE__*/React.createElement(CollapsibleCardPage, {
31216
+ defaultOpen: _isOpen,
31217
+ defaultTab: COLLAPSIBLE_CONTENT_TAB,
31218
+ tabs: [COLLAPSIBLE_CONTENT_TAB],
31219
+ title: title
31220
+ }, () => /*#__PURE__*/React.createElement(React.Fragment, null, description ? /*#__PURE__*/React.createElement(CardSectionSubText, {
31221
+ style: {
31222
+ marginBottom: "16px"
31223
+ }
31224
+ }, description) : null, /*#__PURE__*/React.createElement("div", {
31225
+ className: "formcomposer-section-grid"
31226
+ }, children))));
31227
+ };
31228
+ const PreviewItem = ({
31229
+ label,
31230
+ value,
31231
+ isFullWidth
31232
+ }) => {
31233
+ return /*#__PURE__*/React.createElement("div", {
31234
+ style: {
31235
+ ...fieldWrapperStyle,
31236
+ ...(isFullWidth ? {
31237
+ gridColumn: "1 / -1"
31238
+ } : {})
31239
+ }
31240
+ }, /*#__PURE__*/React.createElement(CardLabel, {
31241
+ style: {
31242
+ fontWeight: "600",
31243
+ marginBottom: "0px"
31244
+ }
31245
+ }, label), /*#__PURE__*/React.createElement(CardText, {
31246
+ style: {
31247
+ marginBottom: "0px",
31248
+ marginTop: "0px"
31249
+ }
31250
+ }, getDisplayValue(value)));
31251
+ };
31252
+ const FileUploadField = ({
31253
+ id,
31254
+ label,
31255
+ value,
31256
+ onUpload,
31257
+ onDelete,
31258
+ error,
31259
+ isUploading,
31260
+ helperText,
31261
+ required
31262
+ }) => {
31263
+ return /*#__PURE__*/React.createElement(FieldBlock, {
31264
+ label: label,
31265
+ required: required,
31266
+ error: error,
31267
+ hint: helperText
31268
+ }, /*#__PURE__*/React.createElement(UploadFile, {
31269
+ accept: "image/*,.pdf,.png,.jpeg,.jpg",
31270
+ buttonType: "button",
31271
+ error: !!error,
31272
+ id: id,
31273
+ message: value !== null && value !== void 0 && value.fileStoreId ? "1 file uploaded" : "No file uploaded",
31274
+ onDelete: onDelete,
31275
+ onUpload: onUpload
31276
+ }), /*#__PURE__*/React.createElement(CardText, {
31277
+ style: {
31278
+ marginBottom: "0px",
31279
+ marginTop: "0px"
31280
+ }
31281
+ }, isUploading ? "Uploading file..." : (value === null || value === void 0 ? void 0 : value.fileName) || "No file selected"));
31282
+ };
30895
31283
  const NewApplication = () => {
30896
- var _Digit$SessionStorage;
31284
+ var _Digit$SessionStorage, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$useDetail, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$rainWater, _formValues$documents, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4;
30897
31285
  const {
30898
31286
  t
30899
31287
  } = useTranslation();
30900
31288
  const history = useHistory();
30901
- const [canSubmit, setSubmitValve] = useState(false);
30902
- const [isEnableLoader, setIsEnableLoader] = useState(false);
31289
+ const location = useLocation();
31290
+ const stateId = Digit.ULBService.getStateId();
31291
+ const tenantId = Digit.ULBService.getCurrentTenantId() || ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code);
31292
+ const [previewMode, setPreviewMode] = useState(false);
31293
+ const [collapsedSections, setCollapsedSections] = useState(DEFAULT_SECTION_STATE);
30903
31294
  const [showToast, setShowToast] = useState(null);
31295
+ const [generatedCaptcha, setGeneratedCaptcha] = useState(generateCaptcha());
31296
+ const [uploadingFields, setUploadingFields] = useState({});
31297
+ const [isEnableLoader, setIsEnableLoader] = useState(false);
30904
31298
  const [appDetails, setAppDetails] = useState({});
30905
31299
  const [waterAndSewerageBoth, setWaterAndSewerageBoth] = useState(null);
30906
- const [config, setConfig] = useState({
30907
- head: "",
30908
- body: []
30909
- });
30910
- let tenantId = Digit.ULBService.getCurrentTenantId();
30911
- tenantId ? tenantId : (_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code;
30912
- const stateId = Digit.ULBService.getStateId();
30913
- let {
30914
- data: newConfig,
30915
- isLoading
30916
- } = Digit.Hooks.ws.useWSConfigMDMS.WSCreateConfig(stateId, {});
30917
- const [propertyId, setPropertyId] = useState(new URLSearchParams(useLocation().search).get("propertyId"));
30918
- const [sessionFormData, setSessionFormData, clearSessionFormData] = Digit.Hooks.useSessionStorage("PT_CREATE_EMP_WS_NEW_FORM", {});
31300
+ const [propertyId, setPropertyId] = useState(new URLSearchParams(location.search).get("propertyId"));
31301
+ console.log(propertyId, 'property idddddd');
31302
+ const initialFormValues = buildDefaultValues(getStoredFormData());
30919
31303
  const {
30920
- data: propertyDetails
31304
+ register,
31305
+ control,
31306
+ handleSubmit,
31307
+ watch,
31308
+ setValue,
31309
+ setError,
31310
+ clearErrors,
31311
+ reset,
31312
+ formState: {
31313
+ errors
31314
+ }
31315
+ } = useForm({
31316
+ defaultValues: initialFormValues,
31317
+ shouldUnregister: false
31318
+ });
31319
+ const formValues = watch();
31320
+ const isGovernmentOrganization = watch("applicant.isGovernmentOrganization");
31321
+ const isDjbEmployee = watch("djbEmployee.isDjbEmployee");
31322
+ const selectedPropertyType = watch("useDetails.propertyType");
31323
+ const selectedLocality = watch("propertyAddress.locality");
31324
+ const selectedSubLocality = watch("propertyAddress.subLocality");
31325
+ const subLocalityOptions = selectedLocality ? SUB_LOCALITY_OPTIONS[selectedLocality.code] || [] : [];
31326
+ const hasPendingUpload = Object.values(uploadingFields).some(Boolean);
31327
+ const isHospitalProperty = (selectedPropertyType === null || selectedPropertyType === void 0 ? void 0 : selectedPropertyType.code) === "HOSPITAL_NURSING_HOME";
31328
+ const {
31329
+ data: propertyDetails,
31330
+ isLoading: isPropertyLoading
30921
31331
  } = Digit.Hooks.pt.usePropertySearch({
30922
31332
  filters: {
30923
31333
  propertyIds: propertyId
@@ -30928,114 +31338,189 @@ const NewApplication = () => {
30928
31338
  propertyIds: propertyId
30929
31339
  },
30930
31340
  tenantId: tenantId,
30931
- enabled: propertyId && propertyId != "" ? true : false
31341
+ enabled: !!propertyId
30932
31342
  });
30933
- useEffect(() => {
30934
- if (!isLoading) {
30935
- var _config$body;
30936
- const config = newConfig.find(conf => conf.hideInCitizen && conf.isCreate);
30937
- config.head = "WS_APP_FOR_WATER_AND_SEWERAGE_LABEL";
30938
- let bodyDetails = [];
30939
- config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.forEach(data => {
30940
- if (data !== null && data !== void 0 && data.isCreateConnection) bodyDetails.push(data);
30941
- });
30942
- config.body = bodyDetails;
30943
- setConfig(config);
30944
- }
30945
- }, [newConfig]);
30946
- useEffect(() => {
30947
- var _sessionFormData$cpt, _sessionFormData$cpt$, _sessionFormData$cpt2, _sessionFormData$cpt3;
30948
- !propertyId && (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$cpt = sessionFormData.cpt) === null || _sessionFormData$cpt === void 0 ? void 0 : (_sessionFormData$cpt$ = _sessionFormData$cpt.details) === null || _sessionFormData$cpt$ === void 0 ? void 0 : _sessionFormData$cpt$.propertyId) && setPropertyId(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$cpt2 = sessionFormData.cpt) === null || _sessionFormData$cpt2 === void 0 ? void 0 : (_sessionFormData$cpt3 = _sessionFormData$cpt2.details) === null || _sessionFormData$cpt3 === void 0 ? void 0 : _sessionFormData$cpt3.propertyId);
30949
- }, [sessionFormData === null || sessionFormData === void 0 ? void 0 : sessionFormData.cpt]);
30950
- useEffect(() => {
30951
- var _propertyDetails$Prop;
30952
- setSessionFormData({
30953
- ...sessionFormData,
30954
- cpt: {
30955
- details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop = propertyDetails.Properties) === null || _propertyDetails$Prop === void 0 ? void 0 : _propertyDetails$Prop[0]
30956
- }
30957
- });
30958
- }, [propertyDetails]);
30959
31343
  const {
30960
- isLoading: creatingWaterApplicationLoading,
30961
- isError: createWaterApplicationError,
30962
- data: createWaterResponse,
30963
- error: createWaterError,
30964
31344
  mutate: waterMutation
30965
31345
  } = Digit.Hooks.ws.useWaterCreateAPI("WATER");
30966
31346
  const {
30967
- isLoading: updatingWaterApplicationLoading,
30968
- isError: updateWaterApplicationError,
30969
- data: updateWaterResponse,
30970
- error: updateWaterError,
30971
31347
  mutate: waterUpdateMutation
30972
31348
  } = Digit.Hooks.ws.useWSApplicationActions("WATER");
30973
31349
  const {
30974
- isLoading: creatingSewerageApplicationLoading,
30975
- isError: createSewerageApplicationError,
30976
- data: createSewerageResponse,
30977
- error: createSewerageError,
30978
31350
  mutate: sewerageMutation
30979
31351
  } = Digit.Hooks.ws.useWaterCreateAPI("SEWERAGE");
30980
31352
  const {
30981
- isLoading: updatingSewerageApplicationLoading,
30982
- isError: updateSewerageApplicationError,
30983
- data: updateSewerageResponse,
30984
- error: updateSewerageError,
30985
31353
  mutate: sewerageUpdateMutation
30986
31354
  } = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE");
30987
- const onFormValueChange = (setValue, formData, formState) => {
30988
- var _formState$errors, _formState$errors$Con, _Object$keys, _formState$errors2, _formState$errors2$Co;
30989
- if (!lodash.isEqual(sessionFormData, formData)) {
30990
- setSessionFormData({
30991
- ...sessionFormData,
30992
- ...formData
31355
+ useEffect(() => {
31356
+ if (typeof window === "undefined") return;
31357
+ window.sessionStorage.setItem(FORM_STORAGE_KEY, JSON.stringify(formValues));
31358
+ }, [formValues]);
31359
+ useEffect(() => {
31360
+ if (!isGovernmentOrganization) {
31361
+ setValue("applicant.governmentOrganizationName", "");
31362
+ clearErrors("applicant.governmentOrganizationName");
31363
+ }
31364
+ }, [isGovernmentOrganization, setValue, clearErrors]);
31365
+ useEffect(() => {
31366
+ if (!isDjbEmployee) {
31367
+ setValue("djbEmployee.employeeId", "");
31368
+ setValue("djbEmployee.retirementDate", "");
31369
+ setValue("djbEmployee.officeNameAndAddress", "");
31370
+ clearErrors("djbEmployee.employeeId");
31371
+ clearErrors("djbEmployee.retirementDate");
31372
+ clearErrors("djbEmployee.officeNameAndAddress");
31373
+ }
31374
+ }, [isDjbEmployee, setValue, clearErrors]);
31375
+ useEffect(() => {
31376
+ if (!isHospitalProperty) {
31377
+ setValue("useDetails.hospitalBeds", "");
31378
+ clearErrors("useDetails.hospitalBeds");
31379
+ }
31380
+ }, [isHospitalProperty, setValue, clearErrors]);
31381
+ useEffect(() => {
31382
+ const isValidSubLocality = selectedSubLocality ? subLocalityOptions.some(option => option.code === selectedSubLocality.code) : true;
31383
+ if (!isValidSubLocality) {
31384
+ setValue("propertyAddress.subLocality", null);
31385
+ }
31386
+ }, [selectedLocality === null || selectedLocality === void 0 ? void 0 : selectedLocality.code, selectedSubLocality === null || selectedSubLocality === void 0 ? void 0 : selectedSubLocality.code, setValue]);
31387
+ const closeToast = () => setShowToast(null);
31388
+ const closeToastOfError = () => setShowToast(null);
31389
+ const toggleSection = sectionKey => {
31390
+ setCollapsedSections(previousState => ({
31391
+ ...previousState,
31392
+ [sectionKey]: !previousState[sectionKey]
31393
+ }));
31394
+ };
31395
+ const getFieldError = fieldName => resolveNestedValue(errors, fieldName);
31396
+ const refreshCaptcha = () => {
31397
+ setGeneratedCaptcha(generateCaptcha());
31398
+ setValue("declaration.captcha", "");
31399
+ clearErrors("declaration.captcha");
31400
+ };
31401
+ const uploadFile = async (event, fieldName, onChange) => {
31402
+ var _event$target, _event$target$files;
31403
+ const file = event === null || event === void 0 ? void 0 : (_event$target = event.target) === null || _event$target === void 0 ? void 0 : (_event$target$files = _event$target.files) === null || _event$target$files === void 0 ? void 0 : _event$target$files[0];
31404
+ if (!file) {
31405
+ onChange(null);
31406
+ return;
31407
+ }
31408
+ setUploadingFields(previousState => ({
31409
+ ...previousState,
31410
+ [fieldName]: true
31411
+ }));
31412
+ clearErrors(fieldName);
31413
+ try {
31414
+ var _response$data, _response$data$files, _response$data$files$;
31415
+ if (file.size > MAX_FILE_SIZE) {
31416
+ throw new Error("File size should be 5 MB or less.");
31417
+ }
31418
+ if (!SUPPORTED_FILE_TYPES.test(file.name)) {
31419
+ throw new Error("Only PDF, PNG, JPG and JPEG files are supported.");
31420
+ }
31421
+ const response = await Digit.UploadServices.Filestorage("WS", file, stateId);
31422
+ const fileStoreId = response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : (_response$data$files$ = _response$data$files[0]) === null || _response$data$files$ === void 0 ? void 0 : _response$data$files$.fileStoreId;
31423
+ if (!fileStoreId) {
31424
+ throw new Error("File upload failed. Please try again.");
31425
+ }
31426
+ onChange({
31427
+ fileName: file.name,
31428
+ fileSize: file.size,
31429
+ fileStoreId,
31430
+ fileType: file.type
31431
+ });
31432
+ clearErrors(fieldName);
31433
+ } catch (error) {
31434
+ onChange(null);
31435
+ setError(fieldName, {
31436
+ type: "manual",
31437
+ message: (error === null || error === void 0 ? void 0 : error.message) || "File upload failed. Please try again."
31438
+ });
31439
+ setShowToast({
31440
+ key: "error",
31441
+ message: (error === null || error === void 0 ? void 0 : error.message) || "File upload failed. Please try again."
31442
+ });
31443
+ } finally {
31444
+ setUploadingFields(previousState => ({
31445
+ ...previousState,
31446
+ [fieldName]: false
31447
+ }));
31448
+ }
31449
+ };
31450
+ const clearUploadedFile = (fieldName, onChange) => {
31451
+ onChange(null);
31452
+ clearErrors(fieldName);
31453
+ };
31454
+ const scrollToTop = () => {
31455
+ if (typeof window !== "undefined") {
31456
+ window.scrollTo({
31457
+ top: 0,
31458
+ behavior: "smooth"
30993
31459
  });
30994
- sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
30995
31460
  }
30996
- if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length == 1 && formState !== null && formState !== void 0 && (_formState$errors = formState.errors) !== null && _formState$errors !== void 0 && (_formState$errors$Con = _formState$errors["ConnectionHolderDetails"]) !== null && _formState$errors$Con !== void 0 && _formState$errors$Con.type && ((_Object$keys = Object.keys(formState === null || formState === void 0 ? void 0 : (_formState$errors2 = formState.errors) === null || _formState$errors2 === void 0 ? void 0 : (_formState$errors2$Co = _formState$errors2["ConnectionHolderDetails"]) === null || _formState$errors2$Co === void 0 ? void 0 : _formState$errors2$Co.type)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) == 1 && formState.errors["ConnectionHolderDetails"] && Object.values(formState.errors["ConnectionHolderDetails"].type).filter(ob => {
30997
- var _ob$ref;
30998
- return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$ref = ob.ref) === null || _ob$ref === void 0 ? void 0 : _ob$ref.value) !== "";
30999
- }).length > 0) setSubmitValve(true);else setSubmitValve(!Object.keys(formState.errors).length);
31000
31461
  };
31001
- const closeToastOfError = () => {
31002
- setShowToast(null);
31462
+ const validateCaptcha = data => {
31463
+ var _data$declaration, _data$declaration$cap, _data$declaration$cap2;
31464
+ if ((data === null || data === void 0 ? void 0 : (_data$declaration = data.declaration) === null || _data$declaration === void 0 ? void 0 : (_data$declaration$cap = _data$declaration.captcha) === null || _data$declaration$cap === void 0 ? void 0 : (_data$declaration$cap2 = _data$declaration$cap.trim()) === null || _data$declaration$cap2 === void 0 ? void 0 : _data$declaration$cap2.toUpperCase()) !== generatedCaptcha) {
31465
+ setError("declaration.captcha", {
31466
+ type: "manual",
31467
+ message: "Captcha does not match."
31468
+ });
31469
+ setShowToast({
31470
+ warning: true,
31471
+ message: "Captcha does not match."
31472
+ });
31473
+ return false;
31474
+ }
31475
+ clearErrors("declaration.captcha");
31476
+ return true;
31003
31477
  };
31004
- const onSubmit = async data => {
31005
- var _data$cpt, _propertyDetails$Prop2, _formStateErros$Conne, _Object$keys2, _formStateErros$Conne2;
31006
- if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop2 = propertyDetails.Properties) !== null && _propertyDetails$Prop2 !== void 0 && _propertyDetails$Prop2[0])) {
31007
- var _data$cpt2;
31008
- if (!(data !== null && data !== void 0 && (_data$cpt2 = data.cpt) !== null && _data$cpt2 !== void 0 && _data$cpt2.details) || !propertyDetails) {
31009
- setShowToast({
31010
- key: "error",
31011
- message: "ERR_INVALID_PROPERTY_ID"
31012
- });
31013
- return;
31014
- }
31478
+ const onPreview = data => {
31479
+ if (hasPendingUpload) {
31480
+ setShowToast({
31481
+ warning: true,
31482
+ message: "Please wait for all file uploads to complete."
31483
+ });
31484
+ return;
31015
31485
  }
31016
- const errors = sessionStorage.getItem("FORMSTATE_ERRORS");
31017
- const formStateErros = typeof errors == "string" ? JSON.parse(errors) : {};
31018
- if (Object.keys(formStateErros).length > 0 && !(Object.keys(formStateErros).length == 1 && formStateErros !== null && formStateErros !== void 0 && (_formStateErros$Conne = formStateErros["ConnectionHolderDetails"]) !== null && _formStateErros$Conne !== void 0 && _formStateErros$Conne.type && ((_Object$keys2 = Object.keys(formStateErros === null || formStateErros === void 0 ? void 0 : (_formStateErros$Conne2 = formStateErros["ConnectionHolderDetails"]) === null || _formStateErros$Conne2 === void 0 ? void 0 : _formStateErros$Conne2.type)) === null || _Object$keys2 === void 0 ? void 0 : _Object$keys2.length) == 1 && formStateErros["ConnectionHolderDetails"] && Object.values(formStateErros["ConnectionHolderDetails"].type).filter(ob => {
31019
- var _ob$ref2;
31020
- return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$ref2 = ob.ref) === null || _ob$ref2 === void 0 ? void 0 : _ob$ref2.value) !== "";
31021
- }).length > 0)) {
31486
+ if (!validateCaptcha(data)) return;
31487
+ setPreviewMode(true);
31488
+ scrollToTop();
31489
+ };
31490
+ const onSubmit = async data => {
31491
+ var _propertyDetails$Prop;
31492
+ if (hasPendingUpload) {
31022
31493
  setShowToast({
31023
31494
  warning: true,
31024
- message: "PLEASE_FILL_MANDATORY_DETAILS"
31495
+ message: "Please wait for all file uploads to complete."
31025
31496
  });
31026
31497
  return;
31027
- } else {
31028
- var _data$cpt3;
31029
- if (!(data !== null && data !== void 0 && (_data$cpt3 = data.cpt) !== null && _data$cpt3 !== void 0 && _data$cpt3.details)) {
31030
- var _propertyDetails$Prop3;
31031
- data.cpt = {
31032
- details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop3 = propertyDetails.Properties) === null || _propertyDetails$Prop3 === void 0 ? void 0 : _propertyDetails$Prop3[0]
31033
- };
31034
- }
31035
- const allDetails = cloneDeep_1(data);
31036
- const payload = await createPayloadOfWS(data);
31498
+ }
31499
+ if (!validateCaptcha(data)) return;
31500
+ if (!(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
31501
+ setShowToast({
31502
+ key: "error",
31503
+ message: "ERR_INVALID_PROPERTY_ID"
31504
+ });
31505
+ return;
31506
+ }
31507
+ try {
31508
+ var _propertyDetails$Prop2;
31509
+ const formDataWithProperty = {
31510
+ ...data,
31511
+ cpt: {
31512
+ details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop2 = propertyDetails.Properties) === null || _propertyDetails$Prop2 === void 0 ? void 0 : _propertyDetails$Prop2[0]
31513
+ }
31514
+ };
31515
+ const payload = await createPayloadOfWS(formDataWithProperty);
31037
31516
  let waterAndSewerageLoader = false;
31038
31517
  if (payload !== null && payload !== void 0 && payload.water && payload !== null && payload !== void 0 && payload.sewerage) waterAndSewerageLoader = true;
31518
+ if (waterAndSewerageLoader) {
31519
+ setWaterAndSewerageBoth(true);
31520
+ sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(true));
31521
+ } else {
31522
+ sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(false));
31523
+ }
31039
31524
  let waterConnection = {
31040
31525
  WaterConnection: payload,
31041
31526
  disconnectRequest: false,
@@ -31046,26 +31531,20 @@ const NewApplication = () => {
31046
31531
  disconnectRequest: false,
31047
31532
  reconnectRequest: false
31048
31533
  };
31049
- if (waterAndSewerageLoader) {
31050
- setWaterAndSewerageBoth(true);
31051
- sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(true));
31052
- } else {
31053
- sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(false));
31054
- }
31055
31534
  if (payload !== null && payload !== void 0 && payload.water && payload !== null && payload !== void 0 && payload.sewerage) {
31056
31535
  if (waterMutation && sewerageMutation) {
31057
31536
  setIsEnableLoader(true);
31058
31537
  await waterMutation(waterConnection, {
31059
- onError: (error, variables) => {
31060
- var _error$response, _error$response$data, _error$response$data$, _error$response2, _error$response2$data, _error$response2$data2;
31538
+ onError: error => {
31539
+ var _error$response, _error$response$data, _error$response$data$;
31061
31540
  setIsEnableLoader(false);
31062
31541
  setShowToast({
31063
31542
  key: "error",
31064
- message: error !== null && error !== void 0 && (_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$data = _error$response.data) !== null && _error$response$data !== void 0 && (_error$response$data$ = _error$response$data.Errors) !== null && _error$response$data$ !== void 0 && _error$response$data$[0].message ? error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : _error$response2$data2[0].message : error
31543
+ message: (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : (_error$response$data$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : _error$response$data$[0].message) || error
31065
31544
  });
31066
31545
  setTimeout(closeToastOfError, 5000);
31067
31546
  },
31068
- onSuccess: async (waterData, variables) => {
31547
+ onSuccess: async waterData => {
31069
31548
  var _waterData$WaterConne;
31070
31549
  let response = await updatePayloadOfWS(waterData === null || waterData === void 0 ? void 0 : (_waterData$WaterConne = waterData.WaterConnection) === null || _waterData$WaterConne === void 0 ? void 0 : _waterData$WaterConne[0], "WATER");
31071
31550
  let waterConnectionUpdate = {
@@ -31074,32 +31553,34 @@ const NewApplication = () => {
31074
31553
  reconnectRequest: false
31075
31554
  };
31076
31555
  waterUpdateMutation(waterConnectionUpdate, {
31077
- onError: (error, variables) => {
31078
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
31556
+ onError: error => {
31557
+ var _error$response2, _error$response2$data, _error$response2$data2;
31079
31558
  setIsEnableLoader(false);
31080
31559
  setShowToast({
31081
31560
  key: "error",
31082
- message: error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.Errors) !== null && _error$response3$data2 !== void 0 && _error$response3$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message : error
31561
+ message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : _error$response2$data2[0].message) || error
31083
31562
  });
31084
31563
  setTimeout(closeToastOfError, 5000);
31085
31564
  },
31086
- onSuccess: async (waterUpdateData, variables) => {
31087
- var _waterUpdateData$Wate;
31088
- setAppDetails({
31089
- ...appDetails,
31090
- waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
31565
+ onSuccess: async waterUpdateData => {
31566
+ setAppDetails(prev => {
31567
+ var _waterUpdateData$Wate;
31568
+ return {
31569
+ ...prev,
31570
+ waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
31571
+ };
31091
31572
  });
31092
31573
  await sewerageMutation(sewerageConnection, {
31093
- onError: (error, variables) => {
31094
- var _error$response5, _error$response5$data, _error$response5$data2, _error$response6, _error$response6$data, _error$response6$data2;
31574
+ onError: error => {
31575
+ var _error$response3, _error$response3$data, _error$response3$data2;
31095
31576
  setIsEnableLoader(false);
31096
31577
  setShowToast({
31097
31578
  key: "error",
31098
- message: error !== null && error !== void 0 && (_error$response5 = error.response) !== null && _error$response5 !== void 0 && (_error$response5$data = _error$response5.data) !== null && _error$response5$data !== void 0 && (_error$response5$data2 = _error$response5$data.Errors) !== null && _error$response5$data2 !== void 0 && _error$response5$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : _error$response6$data2[0].message : error
31579
+ message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : _error$response3$data2[0].message) || error
31099
31580
  });
31100
31581
  setTimeout(closeToastOfError, 5000);
31101
31582
  },
31102
- onSuccess: async (sewerageData, variables) => {
31583
+ onSuccess: async sewerageData => {
31103
31584
  var _sewerageData$Sewerag;
31104
31585
  let response = await updatePayloadOfWS(sewerageData === null || sewerageData === void 0 ? void 0 : (_sewerageData$Sewerag = sewerageData.SewerageConnections) === null || _sewerageData$Sewerag === void 0 ? void 0 : _sewerageData$Sewerag[0], "SEWERAGE");
31105
31586
  let sewerageConnectionUpdate = {
@@ -31108,22 +31589,25 @@ const NewApplication = () => {
31108
31589
  reconnectRequest: false
31109
31590
  };
31110
31591
  await sewerageUpdateMutation(sewerageConnectionUpdate, {
31111
- onError: (error, variables) => {
31112
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
31592
+ onError: error => {
31593
+ var _error$response4, _error$response4$data, _error$response4$data2;
31113
31594
  setIsEnableLoader(false);
31114
31595
  setShowToast({
31115
31596
  key: "error",
31116
- message: error !== null && error !== void 0 && (_error$response7 = error.response) !== null && _error$response7 !== void 0 && (_error$response7$data = _error$response7.data) !== null && _error$response7$data !== void 0 && (_error$response7$data2 = _error$response7$data.Errors) !== null && _error$response7$data2 !== void 0 && _error$response7$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message : error
31597
+ message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message) || error
31117
31598
  });
31118
31599
  setTimeout(closeToastOfError, 5000);
31119
31600
  },
31120
- onSuccess: async (sewerageUpdateData, variables) => {
31121
- var _sewerageUpdateData$S, _waterUpdateData$Wate2, _waterUpdateData$Wate3, _sewerageUpdateData$S2, _sewerageUpdateData$S3;
31122
- setAppDetails({
31123
- ...appDetails,
31124
- sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
31601
+ onSuccess: async sewerageUpdateData => {
31602
+ var _waterUpdateData$Wate2, _waterUpdateData$Wate3, _sewerageUpdateData$S2, _sewerageUpdateData$S3;
31603
+ setAppDetails(prev => {
31604
+ var _sewerageUpdateData$S;
31605
+ return {
31606
+ ...prev,
31607
+ sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
31608
+ };
31125
31609
  });
31126
- clearSessionFormData();
31610
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
31127
31611
  history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate2 = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : (_waterUpdateData$Wate3 = _waterUpdateData$Wate2[0]) === null || _waterUpdateData$Wate3 === void 0 ? void 0 : _waterUpdateData$Wate3.applicationNo}&applicationNumber1=${sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S2 = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : (_sewerageUpdateData$S3 = _sewerageUpdateData$S2[0]) === null || _sewerageUpdateData$S3 === void 0 ? void 0 : _sewerageUpdateData$S3.applicationNo}`);
31128
31612
  }
31129
31613
  });
@@ -31138,38 +31622,41 @@ const NewApplication = () => {
31138
31622
  if (waterMutation) {
31139
31623
  setIsEnableLoader(true);
31140
31624
  await waterMutation(waterConnection, {
31141
- onError: (error, variables) => {
31142
- var _error$response9, _error$response9$data, _error$response9$data2, _error$response0, _error$response0$data, _error$response0$data2;
31625
+ onError: error => {
31626
+ var _error$response5, _error$response5$data, _error$response5$data2;
31143
31627
  setIsEnableLoader(false);
31144
31628
  setShowToast({
31145
31629
  key: "error",
31146
- message: error !== null && error !== void 0 && (_error$response9 = error.response) !== null && _error$response9 !== void 0 && (_error$response9$data = _error$response9.data) !== null && _error$response9$data !== void 0 && (_error$response9$data2 = _error$response9$data.Errors) !== null && _error$response9$data2 !== void 0 && _error$response9$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response0 = error.response) === null || _error$response0 === void 0 ? void 0 : (_error$response0$data = _error$response0.data) === null || _error$response0$data === void 0 ? void 0 : (_error$response0$data2 = _error$response0$data.Errors) === null || _error$response0$data2 === void 0 ? void 0 : _error$response0$data2[0].message : error
31630
+ message: (error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : (_error$response5$data2 = _error$response5$data.Errors) === null || _error$response5$data2 === void 0 ? void 0 : _error$response5$data2[0].message) || error
31147
31631
  });
31148
31632
  setTimeout(closeToastOfError, 5000);
31149
31633
  },
31150
- onSuccess: async (data, variables) => {
31634
+ onSuccess: async data => {
31151
31635
  var _data$WaterConnection;
31152
31636
  let response = await updatePayloadOfWS(data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : _data$WaterConnection[0], "WATER");
31153
31637
  let waterConnectionUpdate = {
31154
31638
  WaterConnection: response
31155
31639
  };
31156
31640
  waterUpdateMutation(waterConnectionUpdate, {
31157
- onError: (error, variables) => {
31158
- var _error$response1, _error$response1$data, _error$response1$data2, _error$response10, _error$response10$dat, _error$response10$dat2;
31641
+ onError: error => {
31642
+ var _error$response6, _error$response6$data, _error$response6$data2;
31159
31643
  setIsEnableLoader(false);
31160
31644
  setShowToast({
31161
31645
  key: "error",
31162
- message: error !== null && error !== void 0 && (_error$response1 = error.response) !== null && _error$response1 !== void 0 && (_error$response1$data = _error$response1.data) !== null && _error$response1$data !== void 0 && (_error$response1$data2 = _error$response1$data.Errors) !== null && _error$response1$data2 !== void 0 && _error$response1$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response10 = error.response) === null || _error$response10 === void 0 ? void 0 : (_error$response10$dat = _error$response10.data) === null || _error$response10$dat === void 0 ? void 0 : (_error$response10$dat2 = _error$response10$dat.Errors) === null || _error$response10$dat2 === void 0 ? void 0 : _error$response10$dat2[0].message : error
31646
+ message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : _error$response6$data2[0].message) || error
31163
31647
  });
31164
31648
  setTimeout(closeToastOfError, 5000);
31165
31649
  },
31166
- onSuccess: (data, variables) => {
31167
- var _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4;
31168
- setAppDetails({
31169
- ...appDetails,
31170
- waterConnection: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
31650
+ onSuccess: data => {
31651
+ var _data$WaterConnection3, _data$WaterConnection4;
31652
+ setAppDetails(prev => {
31653
+ var _data$WaterConnection2;
31654
+ return {
31655
+ ...prev,
31656
+ waterConnection: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
31657
+ };
31171
31658
  });
31172
- clearSessionFormData();
31659
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
31173
31660
  history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnection) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3[0]) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4.applicationNo}`);
31174
31661
  }
31175
31662
  });
@@ -31180,38 +31667,41 @@ const NewApplication = () => {
31180
31667
  if (sewerageMutation) {
31181
31668
  setIsEnableLoader(true);
31182
31669
  await sewerageMutation(sewerageConnection, {
31183
- onError: (error, variables) => {
31184
- var _error$response11, _error$response11$dat, _error$response11$dat2, _error$response12, _error$response12$dat, _error$response12$dat2;
31670
+ onError: error => {
31671
+ var _error$response7, _error$response7$data, _error$response7$data2;
31185
31672
  setIsEnableLoader(false);
31186
31673
  setShowToast({
31187
31674
  key: "error",
31188
- message: error !== null && error !== void 0 && (_error$response11 = error.response) !== null && _error$response11 !== void 0 && (_error$response11$dat = _error$response11.data) !== null && _error$response11$dat !== void 0 && (_error$response11$dat2 = _error$response11$dat.Errors) !== null && _error$response11$dat2 !== void 0 && _error$response11$dat2[0].message ? error === null || error === void 0 ? void 0 : (_error$response12 = error.response) === null || _error$response12 === void 0 ? void 0 : (_error$response12$dat = _error$response12.data) === null || _error$response12$dat === void 0 ? void 0 : (_error$response12$dat2 = _error$response12$dat.Errors) === null || _error$response12$dat2 === void 0 ? void 0 : _error$response12$dat2[0].message : error
31675
+ message: (error === null || error === void 0 ? void 0 : (_error$response7 = error.response) === null || _error$response7 === void 0 ? void 0 : (_error$response7$data = _error$response7.data) === null || _error$response7$data === void 0 ? void 0 : (_error$response7$data2 = _error$response7$data.Errors) === null || _error$response7$data2 === void 0 ? void 0 : _error$response7$data2[0].message) || error
31189
31676
  });
31190
31677
  setTimeout(closeToastOfError, 5000);
31191
31678
  },
31192
- onSuccess: async (data, variables) => {
31679
+ onSuccess: async data => {
31193
31680
  var _data$SewerageConnect;
31194
31681
  let response = await updatePayloadOfWS(data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : _data$SewerageConnect[0], "SEWERAGE");
31195
31682
  let sewerageConnectionUpdate = {
31196
31683
  SewerageConnection: response
31197
31684
  };
31198
31685
  await sewerageUpdateMutation(sewerageConnectionUpdate, {
31199
- onError: (error, variables) => {
31200
- var _error$response13, _error$response13$dat, _error$response13$dat2, _error$response14, _error$response14$dat, _error$response14$dat2;
31686
+ onError: error => {
31687
+ var _error$response8, _error$response8$data, _error$response8$data2;
31201
31688
  setIsEnableLoader(false);
31202
31689
  setShowToast({
31203
31690
  key: "error",
31204
- message: error !== null && error !== void 0 && (_error$response13 = error.response) !== null && _error$response13 !== void 0 && (_error$response13$dat = _error$response13.data) !== null && _error$response13$dat !== void 0 && (_error$response13$dat2 = _error$response13$dat.Errors) !== null && _error$response13$dat2 !== void 0 && _error$response13$dat2[0].message ? error === null || error === void 0 ? void 0 : (_error$response14 = error.response) === null || _error$response14 === void 0 ? void 0 : (_error$response14$dat = _error$response14.data) === null || _error$response14$dat === void 0 ? void 0 : (_error$response14$dat2 = _error$response14$dat.Errors) === null || _error$response14$dat2 === void 0 ? void 0 : _error$response14$dat2[0].message : error
31691
+ message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message) || error
31205
31692
  });
31206
31693
  setTimeout(closeToastOfError, 5000);
31207
31694
  },
31208
- onSuccess: (data, variables) => {
31209
- var _data$SewerageConnect2, _data$SewerageConnect3, _data$SewerageConnect4;
31210
- setAppDetails({
31211
- ...appDetails,
31212
- sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
31695
+ onSuccess: data => {
31696
+ var _data$SewerageConnect3, _data$SewerageConnect4;
31697
+ setAppDetails(prev => {
31698
+ var _data$SewerageConnect2;
31699
+ return {
31700
+ ...prev,
31701
+ sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
31702
+ };
31213
31703
  });
31214
- clearSessionFormData();
31704
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
31215
31705
  history.push(`/digit-ui/employee/ws/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.applicationNo}`);
31216
31706
  }
31217
31707
  });
@@ -31219,32 +31709,979 @@ const NewApplication = () => {
31219
31709
  });
31220
31710
  }
31221
31711
  }
31712
+ } catch (error) {
31713
+ setIsEnableLoader(false);
31714
+ setShowToast({
31715
+ key: "error",
31716
+ message: "Failed to generate payload or submit application."
31717
+ });
31222
31718
  }
31223
31719
  };
31224
- const closeToast = () => {
31720
+ const onEdit = () => {
31721
+ setPreviewMode(false);
31722
+ scrollToTop();
31723
+ };
31724
+ const onReset = () => {
31725
+ reset(DEFAULT_FORM_VALUES);
31726
+ setPreviewMode(false);
31727
+ setGeneratedCaptcha(generateCaptcha());
31728
+ setCollapsedSections(DEFAULT_SECTION_STATE);
31729
+ setUploadingFields({});
31225
31730
  setShowToast(null);
31731
+ if (typeof window !== "undefined") {
31732
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
31733
+ }
31734
+ scrollToTop();
31226
31735
  };
31227
- if (isEnableLoader || isLoading) {
31228
- return /*#__PURE__*/React.createElement(Loader$1, null);
31736
+ if (isEnableLoader || isPropertyLoading) {
31737
+ return /*#__PURE__*/React.createElement(Loader, null);
31229
31738
  }
31230
31739
  return /*#__PURE__*/React.createElement("div", {
31231
31740
  className: "employee-form-content-with-action-bar"
31232
- }, /*#__PURE__*/React.createElement(FormComposer, {
31233
- config: config.body,
31234
- userType: "employee",
31235
- onFormValueChange: onFormValueChange,
31236
- label: t("CS_COMMON_SUBMIT"),
31237
- onSubmit: onSubmit,
31238
- defaultValues: sessionFormData,
31239
- cardFormWrapperClassName: "new-application-card"
31240
- }), showToast && /*#__PURE__*/React.createElement(Toast, {
31241
- isDleteBtn: true,
31242
- error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? true : false,
31243
- warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
31244
- label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
31741
+ }, /*#__PURE__*/React.createElement("style", null, `
31742
+ .ws-new-application-collapsible .collapsible-card-tabs {
31743
+ display: none;
31744
+ }
31745
+
31746
+ .ws-new-application-collapsible .collapsible-card-tab-content {
31747
+ padding: 0;
31748
+ }
31749
+ `), /*#__PURE__*/React.createElement(Header, null, t("New Water / Sewerage Application")), /*#__PURE__*/React.createElement(Card, {
31750
+ style: {
31751
+ marginBottom: "16px"
31752
+ }
31753
+ }, /*#__PURE__*/React.createElement(CardSubHeader, null, previewMode ? t("Preview Application") : t("Application Form"))), /*#__PURE__*/React.createElement("div", {
31754
+ style: {
31755
+ display: previewMode ? "none" : "block"
31756
+ }
31757
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionCard, {
31758
+ description: "Primary request selections",
31759
+ isOpen: collapsedSections.application,
31760
+ onToggle: toggleSection,
31761
+ sectionKey: "application",
31762
+ title: "Application Selection"
31763
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
31764
+ error: getFieldError("typeOfRequest"),
31765
+ label: "Type of Request",
31766
+ required: true
31767
+ }, /*#__PURE__*/React.createElement(Controller, {
31768
+ control: control,
31769
+ name: "typeOfRequest",
31770
+ rules: {
31771
+ required: "Type of Request is required."
31772
+ },
31773
+ render: props => /*#__PURE__*/React.createElement(RadioButtons, {
31774
+ name: "typeOfRequest",
31775
+ options: TYPE_OF_REQUEST_OPTIONS,
31776
+ optionsKey: "name",
31777
+ onSelect: props.onChange,
31778
+ selectedOption: props.value
31779
+ })
31780
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31781
+ error: getFieldError("connectionType"),
31782
+ label: "Connection Type",
31783
+ required: true
31784
+ }, /*#__PURE__*/React.createElement(Controller, {
31785
+ control: control,
31786
+ name: "connectionType",
31787
+ rules: {
31788
+ required: "Connection Type is required."
31789
+ },
31790
+ render: props => /*#__PURE__*/React.createElement(RadioButtons, {
31791
+ name: "connectionType",
31792
+ options: CONNECTION_TYPE_OPTIONS,
31793
+ optionsKey: "name",
31794
+ onSelect: props.onChange,
31795
+ selectedOption: props.value
31796
+ })
31797
+ }))), /*#__PURE__*/React.createElement(SectionCard, {
31798
+ description: "Applicant name, organization details, and supporting ID proof.",
31799
+ isOpen: collapsedSections.applicant,
31800
+ onToggle: toggleSection,
31801
+ sectionKey: "applicant",
31802
+ title: "Details of Applicant"
31803
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
31804
+ error: getFieldError("applicant.firstName"),
31805
+ label: "First Name",
31806
+ required: true
31807
+ }, /*#__PURE__*/React.createElement(TextInput, {
31808
+ errorStyle: !!getFieldError("applicant.firstName"),
31809
+ inputRef: register({
31810
+ pattern: {
31811
+ value: NAME_PATTERN,
31812
+ message: "Use letters only."
31813
+ },
31814
+ required: "First Name is required."
31815
+ }),
31816
+ name: "applicant.firstName"
31817
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31818
+ error: getFieldError("applicant.middleName"),
31819
+ label: "Middle Name"
31820
+ }, /*#__PURE__*/React.createElement(TextInput, {
31821
+ errorStyle: !!getFieldError("applicant.middleName"),
31822
+ inputRef: register({
31823
+ pattern: {
31824
+ value: NAME_PATTERN,
31825
+ message: "Use letters only."
31826
+ }
31827
+ }),
31828
+ name: "applicant.middleName"
31829
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31830
+ error: getFieldError("applicant.lastName"),
31831
+ label: "Last Name",
31832
+ required: true
31833
+ }, /*#__PURE__*/React.createElement(TextInput, {
31834
+ errorStyle: !!getFieldError("applicant.lastName"),
31835
+ inputRef: register({
31836
+ pattern: {
31837
+ value: NAME_PATTERN,
31838
+ message: "Use letters only."
31839
+ },
31840
+ required: "Last Name is required."
31841
+ }),
31842
+ name: "applicant.lastName"
31843
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31844
+ error: getFieldError("applicant.fatherOrHusbandName"),
31845
+ label: "Father / Husband Name",
31846
+ required: true
31847
+ }, /*#__PURE__*/React.createElement(TextInput, {
31848
+ errorStyle: !!getFieldError("applicant.fatherOrHusbandName"),
31849
+ inputRef: register({
31850
+ pattern: {
31851
+ value: NAME_PATTERN,
31852
+ message: "Use letters only."
31853
+ },
31854
+ required: "Father / Husband Name is required."
31855
+ }),
31856
+ name: "applicant.fatherOrHusbandName"
31857
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31858
+ label: "Government Organization"
31859
+ }, /*#__PURE__*/React.createElement(Controller, {
31860
+ control: control,
31861
+ name: "applicant.isGovernmentOrganization",
31862
+ render: props => /*#__PURE__*/React.createElement(CheckBox, {
31863
+ checked: !!props.value,
31864
+ label: "Applicant belongs to a Government Organization",
31865
+ onChange: event => props.onChange(event.target.checked)
31866
+ })
31867
+ })), isGovernmentOrganization ? /*#__PURE__*/React.createElement(FieldBlock, {
31868
+ error: getFieldError("applicant.governmentOrganizationName"),
31869
+ isFullWidth: true,
31870
+ label: "Name of Government Organization",
31871
+ required: true
31872
+ }, /*#__PURE__*/React.createElement(TextInput, {
31873
+ errorStyle: !!getFieldError("applicant.governmentOrganizationName"),
31874
+ inputRef: register({
31875
+ required: isGovernmentOrganization ? "Government Organization Name is required." : false
31876
+ }),
31877
+ name: "applicant.governmentOrganizationName"
31878
+ })) : null, /*#__PURE__*/React.createElement(Controller, {
31879
+ control: control,
31880
+ name: "applicant.applicantIdProofFile",
31881
+ rules: {
31882
+ validate: value => !!value || "Applicant ID Proof is required."
31883
+ },
31884
+ render: props => /*#__PURE__*/React.createElement(FileUploadField, {
31885
+ error: getFieldError("applicant.applicantIdProofFile"),
31886
+ helperText: "Max size 5 MB. Allowed types: PDF, PNG, JPG, JPEG.",
31887
+ id: "applicant-id-proof",
31888
+ isUploading: !!uploadingFields["applicant.applicantIdProofFile"],
31889
+ label: "Upload ID Proof",
31890
+ onDelete: () => clearUploadedFile("applicant.applicantIdProofFile", props.onChange),
31891
+ onUpload: event => uploadFile(event, "applicant.applicantIdProofFile", props.onChange),
31892
+ required: true,
31893
+ value: props.value
31894
+ })
31895
+ })), /*#__PURE__*/React.createElement(SectionCard, {
31896
+ description: "Basic communication details for the application.",
31897
+ isOpen: collapsedSections.contact,
31898
+ onToggle: toggleSection,
31899
+ sectionKey: "contact",
31900
+ title: "Contact Details"
31901
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
31902
+ error: getFieldError("contact.emailId"),
31903
+ label: "Email ID",
31904
+ required: true
31905
+ }, /*#__PURE__*/React.createElement(TextInput, {
31906
+ errorStyle: !!getFieldError("contact.emailId"),
31907
+ inputRef: register({
31908
+ pattern: {
31909
+ value: EMAIL_PATTERN,
31910
+ message: "Enter a valid email address."
31911
+ },
31912
+ required: "Email ID is required."
31913
+ }),
31914
+ name: "contact.emailId"
31915
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31916
+ error: getFieldError("contact.mobileNumber"),
31917
+ label: "Mobile Number",
31918
+ required: true
31919
+ }, /*#__PURE__*/React.createElement(TextInput, {
31920
+ errorStyle: !!getFieldError("contact.mobileNumber"),
31921
+ inputRef: register({
31922
+ pattern: {
31923
+ value: MOBILE_PATTERN,
31924
+ message: "Enter a valid 10-digit mobile number."
31925
+ },
31926
+ required: "Mobile Number is required."
31927
+ }),
31928
+ maxlength: 10,
31929
+ name: "contact.mobileNumber"
31930
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31931
+ error: getFieldError("contact.officeNumber"),
31932
+ label: "Office No."
31933
+ }, /*#__PURE__*/React.createElement(TextInput, {
31934
+ errorStyle: !!getFieldError("contact.officeNumber"),
31935
+ inputRef: register({
31936
+ pattern: {
31937
+ value: OFFICE_PATTERN,
31938
+ message: "Enter a valid office number."
31939
+ }
31940
+ }),
31941
+ name: "contact.officeNumber"
31942
+ }))), /*#__PURE__*/React.createElement(SectionCard, {
31943
+ description: "Enable this section only when the applicant is a DJB employee.",
31944
+ isOpen: collapsedSections.employee,
31945
+ onToggle: toggleSection,
31946
+ sectionKey: "employee",
31947
+ title: "For DJB Employee"
31948
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
31949
+ label: "DJB Employee"
31950
+ }, /*#__PURE__*/React.createElement(Controller, {
31951
+ control: control,
31952
+ name: "djbEmployee.isDjbEmployee",
31953
+ render: props => /*#__PURE__*/React.createElement(CheckBox, {
31954
+ checked: !!props.value,
31955
+ label: "Applicant is a DJB Employee",
31956
+ onChange: event => props.onChange(event.target.checked)
31957
+ })
31958
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31959
+ error: getFieldError("djbEmployee.employeeId"),
31960
+ label: "Employee ID",
31961
+ required: isDjbEmployee
31962
+ }, /*#__PURE__*/React.createElement(TextInput, {
31963
+ errorStyle: !!getFieldError("djbEmployee.employeeId"),
31964
+ inputRef: register({
31965
+ required: isDjbEmployee ? "Employee ID is required." : false
31966
+ }),
31967
+ name: "djbEmployee.employeeId"
31968
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31969
+ error: getFieldError("djbEmployee.retirementDate"),
31970
+ label: "Date of Retirement",
31971
+ required: isDjbEmployee
31972
+ }, /*#__PURE__*/React.createElement(Controller, {
31973
+ control: control,
31974
+ name: "djbEmployee.retirementDate",
31975
+ rules: {
31976
+ required: isDjbEmployee ? "Date of Retirement is required." : false
31977
+ },
31978
+ render: props => /*#__PURE__*/React.createElement(DatePicker, {
31979
+ date: props.value,
31980
+ onChange: props.onChange
31981
+ })
31982
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
31983
+ error: getFieldError("djbEmployee.officeNameAndAddress"),
31984
+ isFullWidth: true,
31985
+ label: "Office Name & Address",
31986
+ required: isDjbEmployee
31987
+ }, /*#__PURE__*/React.createElement(TextArea, {
31988
+ className: getFieldError("djbEmployee.officeNameAndAddress") ? "employee-card-input-error" : "",
31989
+ inputRef: register({
31990
+ required: isDjbEmployee ? "Office Name & Address is required." : false
31991
+ }),
31992
+ name: "djbEmployee.officeNameAndAddress",
31993
+ style: {
31994
+ minHeight: "96px"
31995
+ }
31996
+ }))), /*#__PURE__*/React.createElement(SectionCard, {
31997
+ description: "Property location and administrative boundary details.",
31998
+ isOpen: collapsedSections.address,
31999
+ onToggle: toggleSection,
32000
+ sectionKey: "address",
32001
+ title: "Property Address"
32002
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
32003
+ error: getFieldError("propertyAddress.address"),
32004
+ isFullWidth: true,
32005
+ label: "Address",
32006
+ required: true
32007
+ }, /*#__PURE__*/React.createElement(TextArea, {
32008
+ className: getFieldError("propertyAddress.address") ? "employee-card-input-error" : "",
32009
+ inputRef: register({
32010
+ required: "Address is required."
32011
+ }),
32012
+ name: "propertyAddress.address",
32013
+ style: {
32014
+ minHeight: "96px"
32015
+ }
32016
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32017
+ error: getFieldError("propertyAddress.landmark"),
32018
+ label: "Landmark"
32019
+ }, /*#__PURE__*/React.createElement(TextInput, {
32020
+ errorStyle: !!getFieldError("propertyAddress.landmark"),
32021
+ inputRef: register(),
32022
+ name: "propertyAddress.landmark"
32023
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32024
+ error: getFieldError("propertyAddress.pinCode"),
32025
+ label: "Pin Code",
32026
+ required: true
32027
+ }, /*#__PURE__*/React.createElement(TextInput, {
32028
+ errorStyle: !!getFieldError("propertyAddress.pinCode"),
32029
+ inputRef: register({
32030
+ pattern: {
32031
+ value: PINCODE_PATTERN,
32032
+ message: "Enter a valid 6-digit pin code."
32033
+ },
32034
+ required: "Pin Code is required."
32035
+ }),
32036
+ maxlength: 6,
32037
+ name: "propertyAddress.pinCode"
32038
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32039
+ error: getFieldError("propertyAddress.locality"),
32040
+ label: "Locality",
32041
+ required: true
32042
+ }, /*#__PURE__*/React.createElement(Controller, {
32043
+ control: control,
32044
+ name: "propertyAddress.locality",
32045
+ rules: {
32046
+ required: "Locality is required."
32047
+ },
32048
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32049
+ option: LOCALITY_OPTIONS,
32050
+ optionKey: "name",
32051
+ selected: props.value,
32052
+ select: props.onChange,
32053
+ t: t
32054
+ })
32055
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32056
+ error: getFieldError("propertyAddress.subLocality"),
32057
+ label: "Sub Locality",
32058
+ required: true
32059
+ }, /*#__PURE__*/React.createElement(Controller, {
32060
+ control: control,
32061
+ name: "propertyAddress.subLocality",
32062
+ rules: {
32063
+ required: "Sub Locality is required."
32064
+ },
32065
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32066
+ disable: !selectedLocality,
32067
+ option: subLocalityOptions,
32068
+ optionKey: "name",
32069
+ selected: props.value,
32070
+ select: props.onChange,
32071
+ t: t
32072
+ })
32073
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32074
+ error: getFieldError("propertyAddress.assembly"),
32075
+ label: "Assembly",
32076
+ required: true
32077
+ }, /*#__PURE__*/React.createElement(Controller, {
32078
+ control: control,
32079
+ name: "propertyAddress.assembly",
32080
+ rules: {
32081
+ required: "Assembly is required."
32082
+ },
32083
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32084
+ option: ASSEMBLY_OPTIONS,
32085
+ optionKey: "name",
32086
+ selected: props.value,
32087
+ select: props.onChange,
32088
+ t: t
32089
+ })
32090
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32091
+ error: getFieldError("propertyAddress.ward"),
32092
+ label: "Ward",
32093
+ required: true
32094
+ }, /*#__PURE__*/React.createElement(Controller, {
32095
+ control: control,
32096
+ name: "propertyAddress.ward",
32097
+ rules: {
32098
+ required: "Ward is required."
32099
+ },
32100
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32101
+ option: WARD_OPTIONS,
32102
+ optionKey: "name",
32103
+ selected: props.value,
32104
+ select: props.onChange,
32105
+ t: t
32106
+ })
32107
+ }))), /*#__PURE__*/React.createElement(SectionCard, {
32108
+ description: "Usage attributes for the property and the requested water connection.",
32109
+ isOpen: collapsedSections.usage,
32110
+ onToggle: toggleSection,
32111
+ sectionKey: "usage",
32112
+ title: "Property and Water Connection Use Details"
32113
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
32114
+ error: getFieldError("useDetails.propertyType"),
32115
+ label: "Property Type",
32116
+ required: true
32117
+ }, /*#__PURE__*/React.createElement(Controller, {
32118
+ control: control,
32119
+ name: "useDetails.propertyType",
32120
+ rules: {
32121
+ required: "Property Type is required."
32122
+ },
32123
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32124
+ option: PROPERTY_TYPE_OPTIONS,
32125
+ optionKey: "name",
32126
+ selected: props.value,
32127
+ select: props.onChange,
32128
+ t: t
32129
+ })
32130
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32131
+ error: getFieldError("useDetails.noOfFloors"),
32132
+ label: "No. of Floors",
32133
+ required: true
32134
+ }, /*#__PURE__*/React.createElement(TextInput, {
32135
+ errorStyle: !!getFieldError("useDetails.noOfFloors"),
32136
+ inputRef: register({
32137
+ pattern: {
32138
+ value: NUMBER_PATTERN,
32139
+ message: "Enter a valid whole number."
32140
+ },
32141
+ required: "No. of Floors is required."
32142
+ }),
32143
+ name: "useDetails.noOfFloors"
32144
+ })), isHospitalProperty ? /*#__PURE__*/React.createElement(FieldBlock, {
32145
+ error: getFieldError("useDetails.hospitalBeds"),
32146
+ label: "No. of Beds for Hospitals & Nursing Home",
32147
+ required: true
32148
+ }, /*#__PURE__*/React.createElement(TextInput, {
32149
+ errorStyle: !!getFieldError("useDetails.hospitalBeds"),
32150
+ inputRef: register({
32151
+ pattern: {
32152
+ value: NUMBER_PATTERN,
32153
+ message: "Enter a valid whole number."
32154
+ },
32155
+ required: isHospitalProperty ? "No. of Beds is required for Hospital / Nursing Home." : false
32156
+ }),
32157
+ name: "useDetails.hospitalBeds"
32158
+ })) : null, /*#__PURE__*/React.createElement(FieldBlock, {
32159
+ error: getFieldError("useDetails.plotArea"),
32160
+ label: "Plot Area in Sqm",
32161
+ required: true
32162
+ }, /*#__PURE__*/React.createElement(TextInput, {
32163
+ errorStyle: !!getFieldError("useDetails.plotArea"),
32164
+ inputRef: register({
32165
+ pattern: {
32166
+ value: DECIMAL_PATTERN,
32167
+ message: "Enter a valid numeric value."
32168
+ },
32169
+ required: "Plot Area is required."
32170
+ }),
32171
+ name: "useDetails.plotArea"
32172
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32173
+ error: getFieldError("useDetails.builtUpArea"),
32174
+ label: "Built Up Area",
32175
+ required: true
32176
+ }, /*#__PURE__*/React.createElement(TextInput, {
32177
+ errorStyle: !!getFieldError("useDetails.builtUpArea"),
32178
+ inputRef: register({
32179
+ pattern: {
32180
+ value: DECIMAL_PATTERN,
32181
+ message: "Enter a valid numeric value."
32182
+ },
32183
+ required: "Built Up Area is required."
32184
+ }),
32185
+ name: "useDetails.builtUpArea"
32186
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32187
+ error: getFieldError("useDetails.waterConnectionCategory"),
32188
+ label: "Water Connection Category",
32189
+ required: true
32190
+ }, /*#__PURE__*/React.createElement(Controller, {
32191
+ control: control,
32192
+ name: "useDetails.waterConnectionCategory",
32193
+ rules: {
32194
+ required: "Water Connection Category is required."
32195
+ },
32196
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32197
+ option: WATER_CONNECTION_CATEGORY_OPTIONS,
32198
+ optionKey: "name",
32199
+ selected: props.value,
32200
+ select: props.onChange,
32201
+ t: t
32202
+ })
32203
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32204
+ error: getFieldError("useDetails.waterConnectionUsedBy"),
32205
+ label: "Water Connection Used By",
32206
+ required: true
32207
+ }, /*#__PURE__*/React.createElement(Controller, {
32208
+ control: control,
32209
+ name: "useDetails.waterConnectionUsedBy",
32210
+ rules: {
32211
+ required: "Water Connection Used By is required."
32212
+ },
32213
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32214
+ option: WATER_CONNECTION_USED_BY_OPTIONS,
32215
+ optionKey: "name",
32216
+ selected: props.value,
32217
+ select: props.onChange,
32218
+ t: t
32219
+ })
32220
+ }))), /*#__PURE__*/React.createElement(SectionCard, {
32221
+ description: "Refund or payment-linked bank account details.",
32222
+ isOpen: collapsedSections.bank,
32223
+ onToggle: toggleSection,
32224
+ sectionKey: "bank",
32225
+ title: "Bank Details"
32226
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
32227
+ error: getFieldError("bankDetails.bankName"),
32228
+ label: "Name of the Bank",
32229
+ required: true
32230
+ }, /*#__PURE__*/React.createElement(TextInput, {
32231
+ errorStyle: !!getFieldError("bankDetails.bankName"),
32232
+ inputRef: register({
32233
+ required: "Bank Name is required."
32234
+ }),
32235
+ name: "bankDetails.bankName"
32236
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32237
+ error: getFieldError("bankDetails.branchName"),
32238
+ label: "Name of the Branch",
32239
+ required: true
32240
+ }, /*#__PURE__*/React.createElement(TextInput, {
32241
+ errorStyle: !!getFieldError("bankDetails.branchName"),
32242
+ inputRef: register({
32243
+ required: "Branch Name is required."
32244
+ }),
32245
+ name: "bankDetails.branchName"
32246
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32247
+ error: getFieldError("bankDetails.ifscCode"),
32248
+ label: "IFSC Code",
32249
+ required: true
32250
+ }, /*#__PURE__*/React.createElement(TextInput, {
32251
+ errorStyle: !!getFieldError("bankDetails.ifscCode"),
32252
+ inputRef: register({
32253
+ pattern: {
32254
+ value: IFSC_PATTERN,
32255
+ message: "Enter a valid IFSC code."
32256
+ },
32257
+ required: "IFSC Code is required."
32258
+ }),
32259
+ name: "bankDetails.ifscCode",
32260
+ onChange: event => {
32261
+ event.target.value = event.target.value.toUpperCase();
32262
+ }
32263
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32264
+ error: getFieldError("bankDetails.bankAccountNumber"),
32265
+ label: "Bank Account No.",
32266
+ required: true
32267
+ }, /*#__PURE__*/React.createElement(TextInput, {
32268
+ errorStyle: !!getFieldError("bankDetails.bankAccountNumber"),
32269
+ inputRef: register({
32270
+ pattern: {
32271
+ value: ACCOUNT_PATTERN,
32272
+ message: "Enter a valid bank account number."
32273
+ },
32274
+ required: "Bank Account Number is required."
32275
+ }),
32276
+ name: "bankDetails.bankAccountNumber"
32277
+ }))), /*#__PURE__*/React.createElement(SectionCard, {
32278
+ description: "Optional rain water harvesting certificate request.",
32279
+ isOpen: collapsedSections.rainWaterHarvesting,
32280
+ onToggle: toggleSection,
32281
+ sectionKey: "rainWaterHarvesting",
32282
+ title: "Rain Water Harvesting"
32283
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
32284
+ isFullWidth: true,
32285
+ label: "Apply for RWH Adequacy Certificate"
32286
+ }, /*#__PURE__*/React.createElement(Controller, {
32287
+ control: control,
32288
+ name: "rainWaterHarvesting.applyForAdequacyCertificate",
32289
+ render: props => /*#__PURE__*/React.createElement(CheckBox, {
32290
+ checked: !!props.value,
32291
+ label: "Apply for RWH Adequacy Certificate",
32292
+ onChange: event => props.onChange(event.target.checked)
32293
+ })
32294
+ }))), /*#__PURE__*/React.createElement(SectionCard, {
32295
+ description: "Documents to be attached. Maximum allowed file size is 5 MB.",
32296
+ isOpen: collapsedSections.documents,
32297
+ onToggle: toggleSection,
32298
+ sectionKey: "documents",
32299
+ title: "Documents to be Attached"
32300
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
32301
+ error: getFieldError("documents.proofOfIdentity"),
32302
+ label: "Proof of Identity",
32303
+ required: true
32304
+ }, /*#__PURE__*/React.createElement(Controller, {
32305
+ control: control,
32306
+ name: "documents.proofOfIdentity",
32307
+ rules: {
32308
+ required: "Proof of Identity is required."
32309
+ },
32310
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32311
+ option: PROOF_OF_IDENTITY_OPTIONS,
32312
+ optionKey: "name",
32313
+ selected: props.value,
32314
+ select: props.onChange,
32315
+ t: t
32316
+ })
32317
+ })), /*#__PURE__*/React.createElement(Controller, {
32318
+ control: control,
32319
+ name: "documents.identityProofFile",
32320
+ rules: {
32321
+ validate: value => !!value || "Upload Identity Proof is required."
32322
+ },
32323
+ render: props => /*#__PURE__*/React.createElement(FileUploadField, {
32324
+ error: getFieldError("documents.identityProofFile"),
32325
+ helperText: "Max size 5 MB. Allowed types: PDF, PNG, JPG, JPEG.",
32326
+ id: "identity-proof-file",
32327
+ isUploading: !!uploadingFields["documents.identityProofFile"],
32328
+ label: "Upload Identity Proof",
32329
+ onDelete: () => clearUploadedFile("documents.identityProofFile", props.onChange),
32330
+ onUpload: event => uploadFile(event, "documents.identityProofFile", props.onChange),
32331
+ required: true,
32332
+ value: props.value
32333
+ })
32334
+ }), /*#__PURE__*/React.createElement(FieldBlock, {
32335
+ error: getFieldError("documents.ownershipStatus"),
32336
+ label: "Ownership Status",
32337
+ required: true
32338
+ }, /*#__PURE__*/React.createElement(Controller, {
32339
+ control: control,
32340
+ name: "documents.ownershipStatus",
32341
+ rules: {
32342
+ required: "Ownership Status is required."
32343
+ },
32344
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32345
+ option: OWNERSHIP_STATUS_OPTIONS,
32346
+ optionKey: "name",
32347
+ selected: props.value,
32348
+ select: props.onChange,
32349
+ t: t
32350
+ })
32351
+ })), /*#__PURE__*/React.createElement(Controller, {
32352
+ control: control,
32353
+ name: "documents.ownershipDocumentFile",
32354
+ rules: {
32355
+ validate: value => !!value || "Upload Ownership Document is required."
32356
+ },
32357
+ render: props => /*#__PURE__*/React.createElement(FileUploadField, {
32358
+ error: getFieldError("documents.ownershipDocumentFile"),
32359
+ helperText: "Max size 5 MB. Allowed types: PDF, PNG, JPG, JPEG.",
32360
+ id: "ownership-document-file",
32361
+ isUploading: !!uploadingFields["documents.ownershipDocumentFile"],
32362
+ label: "Upload Ownership Document",
32363
+ onDelete: () => clearUploadedFile("documents.ownershipDocumentFile", props.onChange),
32364
+ onUpload: event => uploadFile(event, "documents.ownershipDocumentFile", props.onChange),
32365
+ required: true,
32366
+ value: props.value
32367
+ })
32368
+ }), /*#__PURE__*/React.createElement(Controller, {
32369
+ control: control,
32370
+ name: "documents.otherDocumentFile",
32371
+ render: props => /*#__PURE__*/React.createElement(FileUploadField, {
32372
+ error: getFieldError("documents.otherDocumentFile"),
32373
+ helperText: "Optional. Max size 5 MB. Allowed types: PDF, PNG, JPG, JPEG.",
32374
+ id: "other-document-file",
32375
+ isUploading: !!uploadingFields["documents.otherDocumentFile"],
32376
+ label: "Other Document",
32377
+ onDelete: () => clearUploadedFile("documents.otherDocumentFile", props.onChange),
32378
+ onUpload: event => uploadFile(event, "documents.otherDocumentFile", props.onChange),
32379
+ value: props.value
32380
+ })
32381
+ })), /*#__PURE__*/React.createElement(SectionCard, {
32382
+ description: "Final undertaking details before preview and submit.",
32383
+ isOpen: collapsedSections.declaration,
32384
+ onToggle: toggleSection,
32385
+ sectionKey: "declaration",
32386
+ title: "Declaration / Undertaking"
32387
+ }, /*#__PURE__*/React.createElement(FieldBlock, {
32388
+ error: getFieldError("declaration.submittedBy"),
32389
+ label: "Submitted By",
32390
+ required: true
32391
+ }, /*#__PURE__*/React.createElement(Controller, {
32392
+ control: control,
32393
+ name: "declaration.submittedBy",
32394
+ rules: {
32395
+ required: "Submitted By is required."
32396
+ },
32397
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
32398
+ option: SUBMITTED_BY_OPTIONS,
32399
+ optionKey: "name",
32400
+ selected: props.value,
32401
+ select: props.onChange,
32402
+ t: t
32403
+ })
32404
+ })), /*#__PURE__*/React.createElement(Controller, {
32405
+ control: control,
32406
+ name: "declaration.signatureFile",
32407
+ rules: {
32408
+ validate: value => !!value || "Upload Signature is required."
32409
+ },
32410
+ render: props => /*#__PURE__*/React.createElement(FileUploadField, {
32411
+ error: getFieldError("declaration.signatureFile"),
32412
+ helperText: "Max size 5 MB. Allowed types: PDF, PNG, JPG, JPEG.",
32413
+ id: "signature-file",
32414
+ isUploading: !!uploadingFields["declaration.signatureFile"],
32415
+ label: "Upload Signature",
32416
+ onDelete: () => clearUploadedFile("declaration.signatureFile", props.onChange),
32417
+ onUpload: event => uploadFile(event, "declaration.signatureFile", props.onChange),
32418
+ required: true,
32419
+ value: props.value
32420
+ })
32421
+ }), /*#__PURE__*/React.createElement(FieldBlock, {
32422
+ isFullWidth: true,
32423
+ label: "Captcha",
32424
+ required: true
32425
+ }, /*#__PURE__*/React.createElement("div", {
32426
+ style: {
32427
+ display: "flex",
32428
+ gap: "16px",
32429
+ flexWrap: "wrap",
32430
+ alignItems: "center"
32431
+ }
32432
+ }, /*#__PURE__*/React.createElement("div", {
32433
+ style: captchaBoxStyle
32434
+ }, generatedCaptcha), /*#__PURE__*/React.createElement("button", {
32435
+ type: "button",
32436
+ onClick: refreshCaptcha,
32437
+ style: linkButtonStyle
32438
+ }, "Refresh Captcha"))), /*#__PURE__*/React.createElement(FieldBlock, {
32439
+ error: getFieldError("declaration.captcha"),
32440
+ label: "Enter Captcha",
32441
+ required: true
32442
+ }, /*#__PURE__*/React.createElement(TextInput, {
32443
+ errorStyle: !!getFieldError("declaration.captcha"),
32444
+ inputRef: register({
32445
+ required: "Captcha is required."
32446
+ }),
32447
+ name: "declaration.captcha"
32448
+ })), /*#__PURE__*/React.createElement(FieldBlock, {
32449
+ error: getFieldError("declaration.agree"),
32450
+ isFullWidth: true,
32451
+ label: "Declaration",
32452
+ required: true
32453
+ }, /*#__PURE__*/React.createElement(Controller, {
32454
+ control: control,
32455
+ name: "declaration.agree",
32456
+ rules: {
32457
+ validate: value => value || "Please accept the declaration to continue."
32458
+ },
32459
+ render: props => /*#__PURE__*/React.createElement(CheckBox, {
32460
+ checked: !!props.value,
32461
+ label: "I Agree",
32462
+ onChange: event => props.onChange(event.target.checked)
32463
+ })
32464
+ }))))), previewMode && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionCard, {
32465
+ description: "Selected request and connection type.",
32466
+ isOpen: collapsedSections.application,
32467
+ onToggle: toggleSection,
32468
+ sectionKey: "application",
32469
+ title: "Application Selection"
32470
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32471
+ label: "Type of Request",
32472
+ value: formValues === null || formValues === void 0 ? void 0 : formValues.typeOfRequest
32473
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32474
+ label: "Connection Type",
32475
+ value: formValues === null || formValues === void 0 ? void 0 : formValues.connectionType
32476
+ })), /*#__PURE__*/React.createElement(SectionCard, {
32477
+ description: "Applicant identity and organization information.",
32478
+ isOpen: collapsedSections.applicant,
32479
+ onToggle: toggleSection,
32480
+ sectionKey: "applicant",
32481
+ title: "Details of Applicant"
32482
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32483
+ label: "First Name",
32484
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicant = formValues.applicant) === null || _formValues$applicant === void 0 ? void 0 : _formValues$applicant.firstName
32485
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32486
+ label: "Middle Name",
32487
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicant2 = formValues.applicant) === null || _formValues$applicant2 === void 0 ? void 0 : _formValues$applicant2.middleName
32488
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32489
+ label: "Last Name",
32490
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicant3 = formValues.applicant) === null || _formValues$applicant3 === void 0 ? void 0 : _formValues$applicant3.lastName
32491
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32492
+ label: "Father / Husband Name",
32493
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicant4 = formValues.applicant) === null || _formValues$applicant4 === void 0 ? void 0 : _formValues$applicant4.fatherOrHusbandName
32494
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32495
+ label: "Government Organization",
32496
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicant5 = formValues.applicant) === null || _formValues$applicant5 === void 0 ? void 0 : _formValues$applicant5.isGovernmentOrganization
32497
+ }), formValues !== null && formValues !== void 0 && (_formValues$applicant6 = formValues.applicant) !== null && _formValues$applicant6 !== void 0 && _formValues$applicant6.isGovernmentOrganization ? /*#__PURE__*/React.createElement(PreviewItem, {
32498
+ isFullWidth: true,
32499
+ label: "Name of Government Organization",
32500
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicant7 = formValues.applicant) === null || _formValues$applicant7 === void 0 ? void 0 : _formValues$applicant7.governmentOrganizationName
32501
+ }) : null, /*#__PURE__*/React.createElement(PreviewItem, {
32502
+ isFullWidth: true,
32503
+ label: "Uploaded ID Proof",
32504
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$applicant8 = formValues.applicant) === null || _formValues$applicant8 === void 0 ? void 0 : _formValues$applicant8.applicantIdProofFile
32505
+ })), /*#__PURE__*/React.createElement(SectionCard, {
32506
+ description: "Communication details captured in the application.",
32507
+ isOpen: collapsedSections.contact,
32508
+ onToggle: toggleSection,
32509
+ sectionKey: "contact",
32510
+ title: "Contact Details"
32511
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32512
+ label: "Email ID",
32513
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$contact = formValues.contact) === null || _formValues$contact === void 0 ? void 0 : _formValues$contact.emailId
32514
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32515
+ label: "Mobile Number",
32516
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$contact2 = formValues.contact) === null || _formValues$contact2 === void 0 ? void 0 : _formValues$contact2.mobileNumber
32517
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32518
+ label: "Office No.",
32519
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$contact3 = formValues.contact) === null || _formValues$contact3 === void 0 ? void 0 : _formValues$contact3.officeNumber
32520
+ })), /*#__PURE__*/React.createElement(SectionCard, {
32521
+ description: "DJB employee-specific information.",
32522
+ isOpen: collapsedSections.employee,
32523
+ onToggle: toggleSection,
32524
+ sectionKey: "employee",
32525
+ title: "For DJB Employee"
32526
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32527
+ label: "DJB Employee",
32528
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$djbEmploy = formValues.djbEmployee) === null || _formValues$djbEmploy === void 0 ? void 0 : _formValues$djbEmploy.isDjbEmployee
32529
+ }), formValues !== null && formValues !== void 0 && (_formValues$djbEmploy2 = formValues.djbEmployee) !== null && _formValues$djbEmploy2 !== void 0 && _formValues$djbEmploy2.isDjbEmployee ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PreviewItem, {
32530
+ label: "Employee ID",
32531
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$djbEmploy3 = formValues.djbEmployee) === null || _formValues$djbEmploy3 === void 0 ? void 0 : _formValues$djbEmploy3.employeeId
32532
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32533
+ label: "Date of Retirement",
32534
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$djbEmploy4 = formValues.djbEmployee) === null || _formValues$djbEmploy4 === void 0 ? void 0 : _formValues$djbEmploy4.retirementDate
32535
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32536
+ isFullWidth: true,
32537
+ label: "Office Name & Address",
32538
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$djbEmploy5 = formValues.djbEmployee) === null || _formValues$djbEmploy5 === void 0 ? void 0 : _formValues$djbEmploy5.officeNameAndAddress
32539
+ })) : null), /*#__PURE__*/React.createElement(SectionCard, {
32540
+ description: "Property address and administrative boundary values.",
32541
+ isOpen: collapsedSections.address,
32542
+ onToggle: toggleSection,
32543
+ sectionKey: "address",
32544
+ title: "Property Address"
32545
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32546
+ isFullWidth: true,
32547
+ label: "Address",
32548
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$propertyA = formValues.propertyAddress) === null || _formValues$propertyA === void 0 ? void 0 : _formValues$propertyA.address
32549
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32550
+ label: "Landmark",
32551
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$propertyA2 = formValues.propertyAddress) === null || _formValues$propertyA2 === void 0 ? void 0 : _formValues$propertyA2.landmark
32552
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32553
+ label: "Pin Code",
32554
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$propertyA3 = formValues.propertyAddress) === null || _formValues$propertyA3 === void 0 ? void 0 : _formValues$propertyA3.pinCode
32555
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32556
+ label: "Locality",
32557
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$propertyA4 = formValues.propertyAddress) === null || _formValues$propertyA4 === void 0 ? void 0 : _formValues$propertyA4.locality
32558
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32559
+ label: "Sub Locality",
32560
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$propertyA5 = formValues.propertyAddress) === null || _formValues$propertyA5 === void 0 ? void 0 : _formValues$propertyA5.subLocality
32561
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32562
+ label: "Assembly",
32563
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$propertyA6 = formValues.propertyAddress) === null || _formValues$propertyA6 === void 0 ? void 0 : _formValues$propertyA6.assembly
32564
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32565
+ label: "Ward",
32566
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$propertyA7 = formValues.propertyAddress) === null || _formValues$propertyA7 === void 0 ? void 0 : _formValues$propertyA7.ward
32567
+ })), /*#__PURE__*/React.createElement(SectionCard, {
32568
+ description: "Property and connection usage values.",
32569
+ isOpen: collapsedSections.usage,
32570
+ onToggle: toggleSection,
32571
+ sectionKey: "usage",
32572
+ title: "Property and Water Connection Use Details"
32573
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32574
+ label: "Property Type",
32575
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail = formValues.useDetails) === null || _formValues$useDetail === void 0 ? void 0 : _formValues$useDetail.propertyType
32576
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32577
+ label: "No. of Floors",
32578
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail2 = formValues.useDetails) === null || _formValues$useDetail2 === void 0 ? void 0 : _formValues$useDetail2.noOfFloors
32579
+ }), (formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail3 = formValues.useDetails) === null || _formValues$useDetail3 === void 0 ? void 0 : (_formValues$useDetail4 = _formValues$useDetail3.propertyType) === null || _formValues$useDetail4 === void 0 ? void 0 : _formValues$useDetail4.code) === "HOSPITAL_NURSING_HOME" ? /*#__PURE__*/React.createElement(PreviewItem, {
32580
+ label: "No. of Beds for Hospitals & Nursing Home",
32581
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail5 = formValues.useDetails) === null || _formValues$useDetail5 === void 0 ? void 0 : _formValues$useDetail5.hospitalBeds
32582
+ }) : null, /*#__PURE__*/React.createElement(PreviewItem, {
32583
+ label: "Plot Area in Sqm",
32584
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail6 = formValues.useDetails) === null || _formValues$useDetail6 === void 0 ? void 0 : _formValues$useDetail6.plotArea
32585
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32586
+ label: "Built Up Area",
32587
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail7 = formValues.useDetails) === null || _formValues$useDetail7 === void 0 ? void 0 : _formValues$useDetail7.builtUpArea
32588
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32589
+ label: "Water Connection Category",
32590
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail8 = formValues.useDetails) === null || _formValues$useDetail8 === void 0 ? void 0 : _formValues$useDetail8.waterConnectionCategory
32591
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32592
+ label: "Water Connection Used By",
32593
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail9 = formValues.useDetails) === null || _formValues$useDetail9 === void 0 ? void 0 : _formValues$useDetail9.waterConnectionUsedBy
32594
+ })), /*#__PURE__*/React.createElement(SectionCard, {
32595
+ description: "Banking information as entered in the form.",
32596
+ isOpen: collapsedSections.bank,
32597
+ onToggle: toggleSection,
32598
+ sectionKey: "bank",
32599
+ title: "Bank Details"
32600
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32601
+ label: "Name of the Bank",
32602
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai = formValues.bankDetails) === null || _formValues$bankDetai === void 0 ? void 0 : _formValues$bankDetai.bankName
32603
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32604
+ label: "Name of the Branch",
32605
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai2 = formValues.bankDetails) === null || _formValues$bankDetai2 === void 0 ? void 0 : _formValues$bankDetai2.branchName
32606
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32607
+ label: "IFSC Code",
32608
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai3 = formValues.bankDetails) === null || _formValues$bankDetai3 === void 0 ? void 0 : _formValues$bankDetai3.ifscCode
32609
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32610
+ label: "Bank Account No.",
32611
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai4 = formValues.bankDetails) === null || _formValues$bankDetai4 === void 0 ? void 0 : _formValues$bankDetai4.bankAccountNumber
32612
+ })), /*#__PURE__*/React.createElement(SectionCard, {
32613
+ description: "Rain water harvesting request status.",
32614
+ isOpen: collapsedSections.rainWaterHarvesting,
32615
+ onToggle: toggleSection,
32616
+ sectionKey: "rainWaterHarvesting",
32617
+ title: "Rain Water Harvesting"
32618
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32619
+ isFullWidth: true,
32620
+ label: "Apply for RWH Adequacy Certificate",
32621
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$rainWater = formValues.rainWaterHarvesting) === null || _formValues$rainWater === void 0 ? void 0 : _formValues$rainWater.applyForAdequacyCertificate
32622
+ })), /*#__PURE__*/React.createElement(SectionCard, {
32623
+ description: "Uploaded supporting documents.",
32624
+ isOpen: collapsedSections.documents,
32625
+ onToggle: toggleSection,
32626
+ sectionKey: "documents",
32627
+ title: "Documents to be Attached"
32628
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32629
+ label: "Proof of Identity",
32630
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$documents = formValues.documents) === null || _formValues$documents === void 0 ? void 0 : _formValues$documents.proofOfIdentity
32631
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32632
+ label: "Upload Identity Proof",
32633
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$documents2 = formValues.documents) === null || _formValues$documents2 === void 0 ? void 0 : _formValues$documents2.identityProofFile
32634
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32635
+ label: "Ownership Status",
32636
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$documents3 = formValues.documents) === null || _formValues$documents3 === void 0 ? void 0 : _formValues$documents3.ownershipStatus
32637
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32638
+ label: "Upload Ownership Document",
32639
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$documents4 = formValues.documents) === null || _formValues$documents4 === void 0 ? void 0 : _formValues$documents4.ownershipDocumentFile
32640
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32641
+ label: "Other Document",
32642
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$documents5 = formValues.documents) === null || _formValues$documents5 === void 0 ? void 0 : _formValues$documents5.otherDocumentFile
32643
+ })), /*#__PURE__*/React.createElement(SectionCard, {
32644
+ description: "Declaration and undertaking details.",
32645
+ isOpen: collapsedSections.declaration,
32646
+ onToggle: toggleSection,
32647
+ sectionKey: "declaration",
32648
+ title: "Declaration / Undertaking"
32649
+ }, /*#__PURE__*/React.createElement(PreviewItem, {
32650
+ label: "Submitted By",
32651
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$declarati = formValues.declaration) === null || _formValues$declarati === void 0 ? void 0 : _formValues$declarati.submittedBy
32652
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32653
+ label: "Upload Signature",
32654
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$declarati2 = formValues.declaration) === null || _formValues$declarati2 === void 0 ? void 0 : _formValues$declarati2.signatureFile
32655
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32656
+ label: "Entered Captcha",
32657
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$declarati3 = formValues.declaration) === null || _formValues$declarati3 === void 0 ? void 0 : _formValues$declarati3.captcha
32658
+ }), /*#__PURE__*/React.createElement(PreviewItem, {
32659
+ label: "I Agree",
32660
+ value: formValues === null || formValues === void 0 ? void 0 : (_formValues$declarati4 = formValues.declaration) === null || _formValues$declarati4 === void 0 ? void 0 : _formValues$declarati4.agree
32661
+ }))), /*#__PURE__*/React.createElement(ActionBar, {
32662
+ style: actionBarStyle
32663
+ }, !previewMode ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubmitBar, {
32664
+ label: "Reset",
32665
+ onSubmit: onReset,
32666
+ style: secondaryButtonStyle
32667
+ }), /*#__PURE__*/React.createElement(SubmitBar, {
32668
+ disabled: hasPendingUpload,
32669
+ label: hasPendingUpload ? "Uploading..." : "Preview",
32670
+ onSubmit: handleSubmit(onPreview)
32671
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubmitBar, {
32672
+ label: "Edit Details",
32673
+ onSubmit: onEdit,
32674
+ style: secondaryButtonStyle
32675
+ }), /*#__PURE__*/React.createElement(SubmitBar, {
32676
+ disabled: hasPendingUpload,
32677
+ label: hasPendingUpload ? "Uploading..." : "Submit",
32678
+ onSubmit: handleSubmit(onSubmit)
32679
+ }))), showToast ? /*#__PURE__*/React.createElement(Toast, {
32680
+ error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error",
32681
+ label: showToast === null || showToast === void 0 ? void 0 : showToast.message,
31245
32682
  onClose: closeToast,
31246
- isWarning: showToast === null || showToast === void 0 ? void 0 : showToast.isWarning
31247
- }));
32683
+ warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning
32684
+ }) : null);
31248
32685
  };
31249
32686
 
31250
32687
  const configPTApproverApplication = ({
@@ -32145,7 +33582,7 @@ const ActionModal = ({
32145
33582
  actionSaveOnSubmit: () => {},
32146
33583
  isDisabled: !action.showFinancialYearsModal ? PTALoading || (action === null || action === void 0 ? void 0 : action.docUploadRequired) && !uploadedFile : !selectedFinancialYear,
32147
33584
  formId: "modal-action"
32148
- }, financialYearsLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(FormComposer, {
33585
+ }, financialYearsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
32149
33586
  config: config.form,
32150
33587
  noBoxShadow: true,
32151
33588
  inline: true,
@@ -32153,7 +33590,7 @@ const ActionModal = ({
32153
33590
  onSubmit: submit,
32154
33591
  defaultValues: defaultValues,
32155
33592
  formId: "modal-action"
32156
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
33593
+ })) : /*#__PURE__*/React.createElement(Loader, null);
32157
33594
  };
32158
33595
 
32159
33596
  const Heading$1 = props => {
@@ -32311,7 +33748,7 @@ const ActionModal$1 = ({
32311
33748
  actionSaveLabel: t(config.label.submit),
32312
33749
  actionSaveOnSubmit: () => {},
32313
33750
  formId: "modal-action"
32314
- }, financialYearsLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(FormComposer, {
33751
+ }, financialYearsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
32315
33752
  config: config.form,
32316
33753
  noBoxShadow: true,
32317
33754
  inline: true,
@@ -32319,7 +33756,7 @@ const ActionModal$1 = ({
32319
33756
  onSubmit: submit,
32320
33757
  defaultValues: defaultValues,
32321
33758
  formId: "modal-action"
32322
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
33759
+ })) : /*#__PURE__*/React.createElement(Loader, null);
32323
33760
  };
32324
33761
 
32325
33762
  const Heading$2 = props => {
@@ -32481,7 +33918,7 @@ const ActionModal$2 = ({
32481
33918
  popupModuleMianStyles: mobileView ? {
32482
33919
  paddingLeft: "5px"
32483
33920
  } : {}
32484
- }, PTALoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(FormComposer, {
33921
+ }, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
32485
33922
  config: config.form,
32486
33923
  cardStyle: {
32487
33924
  marginLeft: "0px",
@@ -32495,7 +33932,7 @@ const ActionModal$2 = ({
32495
33932
  onSubmit: submit,
32496
33933
  defaultValues: defaultValues,
32497
33934
  formId: "modal-action"
32498
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
33935
+ })) : /*#__PURE__*/React.createElement(Loader, null);
32499
33936
  };
32500
33937
 
32501
33938
  const Heading$3 = props => {
@@ -32786,7 +34223,7 @@ const ActionModal$3 = ({
32786
34223
  popupModuleMianStyles: mobileView ? {
32787
34224
  paddingLeft: "5px"
32788
34225
  } : {}
32789
- }, PTALoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(FormComposer, {
34226
+ }, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
32790
34227
  config: config.form,
32791
34228
  cardStyle: {
32792
34229
  marginLeft: "0px",
@@ -32800,7 +34237,7 @@ const ActionModal$3 = ({
32800
34237
  onSubmit: submit,
32801
34238
  defaultValues: defaultValues,
32802
34239
  formId: "modal-action"
32803
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
34240
+ })) : /*#__PURE__*/React.createElement(Loader, null);
32804
34241
  };
32805
34242
 
32806
34243
  const Heading$4 = props => {
@@ -32973,7 +34410,7 @@ const ActionModal$4 = ({
32973
34410
  popupModuleMianStyles: mobileView ? {
32974
34411
  paddingLeft: "5px"
32975
34412
  } : {}
32976
- }, PTALoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(FormComposer, {
34413
+ }, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
32977
34414
  config: config.form,
32978
34415
  cardStyle: {
32979
34416
  marginLeft: "0px",
@@ -32987,7 +34424,7 @@ const ActionModal$4 = ({
32987
34424
  onSubmit: submit,
32988
34425
  defaultValues: defaultValues,
32989
34426
  formId: "modal-action"
32990
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
34427
+ })) : /*#__PURE__*/React.createElement(Loader, null);
32991
34428
  };
32992
34429
 
32993
34430
  const Heading$5 = props => {
@@ -33281,7 +34718,7 @@ const ActionModal$5 = ({
33281
34718
  width: "100%",
33282
34719
  height: "auto"
33283
34720
  } : {}
33284
- }, PTALoading ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(FormComposer, {
34721
+ }, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
33285
34722
  config: config.form,
33286
34723
  noBoxShadow: true,
33287
34724
  inline: true,
@@ -33293,7 +34730,7 @@ const ActionModal$5 = ({
33293
34730
  cardFormWrapperClassName: cardFormWrapperClassName,
33294
34731
  cardClassName: cardClassName,
33295
34732
  formClassName: formClassName
33296
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
34733
+ })) : /*#__PURE__*/React.createElement(Loader, null);
33297
34734
  };
33298
34735
 
33299
34736
  const Heading$6 = props => {
@@ -33441,7 +34878,7 @@ const ActionModal$6 = ({
33441
34878
  onSubmit: submit,
33442
34879
  defaultValues: defaultValues,
33443
34880
  formId: "modal-action"
33444
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
34881
+ })) : /*#__PURE__*/React.createElement(Loader, null);
33445
34882
  };
33446
34883
 
33447
34884
  const Heading$7 = props => {
@@ -33565,7 +35002,7 @@ const ActionModal$7 = ({
33565
35002
  cardFormWrapperClassName: cardFormWrapperClassName,
33566
35003
  cardClassName: cardClassName,
33567
35004
  formClassName: formClassName
33568
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
35005
+ })) : /*#__PURE__*/React.createElement(Loader, null);
33569
35006
  };
33570
35007
 
33571
35008
  const Heading$8 = props => {
@@ -33712,7 +35149,7 @@ const ActionModal$8 = ({
33712
35149
  onSubmit: submit,
33713
35150
  defaultValues: defaultValues,
33714
35151
  formId: "modal-action"
33715
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
35152
+ })) : /*#__PURE__*/React.createElement(Loader, null);
33716
35153
  };
33717
35154
 
33718
35155
  const Heading$9 = props => {
@@ -33866,7 +35303,7 @@ const ActionModal$9 = ({
33866
35303
  onSubmit: submit,
33867
35304
  defaultValues: defaultValues,
33868
35305
  formId: "modal-action"
33869
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
35306
+ })) : /*#__PURE__*/React.createElement(Loader, null);
33870
35307
  };
33871
35308
 
33872
35309
  const Heading$a = props => {
@@ -34018,7 +35455,7 @@ const ActionModal$a = ({
34018
35455
  onSubmit: submit,
34019
35456
  defaultValues: defaultValues,
34020
35457
  formId: "modal-action"
34021
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
35458
+ })) : /*#__PURE__*/React.createElement(Loader, null);
34022
35459
  };
34023
35460
 
34024
35461
  const configWTApproverApplication = ({
@@ -34305,7 +35742,7 @@ const ActionModal$b = ({
34305
35742
  cardFormWrapperClassName: cardFormWrapperClassName,
34306
35743
  cardClassName: cardClassName,
34307
35744
  formClassName: formClassName
34308
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
35745
+ })) : /*#__PURE__*/React.createElement(Loader, null);
34309
35746
  };
34310
35747
 
34311
35748
  const ActionModal$c = props => {
@@ -35004,7 +36441,7 @@ const NOCDocuments = ({
35004
36441
  }
35005
36442
  }, [nocDocs, commonDocMaping]);
35006
36443
  useEffect(() => {
35007
- if (bpaApplicationStatus === 'NOC_VERIFICATION_INPROGRESS' && (actions === null || actions === void 0 ? void 0 : actions.length) > 0) setCheckEnablingDocs(true);else setCheckEnablingDocs(false);
36444
+ if (bpaApplicationStatus === "NOC_VERIFICATION_INPROGRESS" && (actions === null || actions === void 0 ? void 0 : actions.length) > 0) setCheckEnablingDocs(true);else setCheckEnablingDocs(false);
35008
36445
  }, [applicationData, bpaActionsDetails]);
35009
36446
  return /*#__PURE__*/React.createElement("div", {
35010
36447
  style: {
@@ -35029,9 +36466,9 @@ const NOCDocuments = ({
35029
36466
  label: isEmployee ? `${t(noc === null || noc === void 0 ? void 0 : noc.title)}` : t(noc === null || noc === void 0 ? void 0 : noc.title),
35030
36467
  text: noc !== null && noc !== void 0 && noc.value ? t(noc === null || noc === void 0 ? void 0 : noc.value) : t("CS_NA"),
35031
36468
  textStyle: (noc === null || noc === void 0 ? void 0 : noc.value) == "APPROVED" || (noc === null || noc === void 0 ? void 0 : noc.value) == "AUTO_APPROVED" ? {
35032
- color: "#00703C"
36469
+ color: "#2E9E8F"
35033
36470
  } : {
35034
- color: "#D4351C"
36471
+ color: "#D83A2F"
35035
36472
  }
35036
36473
  });
35037
36474
  } else {
@@ -35583,11 +37020,11 @@ const ScruntinyDetails = ({
35583
37020
  const getTextValues = data => {
35584
37021
  if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return /*#__PURE__*/React.createElement("span", {
35585
37022
  style: {
35586
- color: "#00703C"
37023
+ color: "#2E9E8F"
35587
37024
  }
35588
37025
  }, t(data === null || data === void 0 ? void 0 : data.value));else if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return t(data === null || data === void 0 ? void 0 : data.value);else if (data !== null && data !== void 0 && data.value) return data === null || data === void 0 ? void 0 : data.value;else t("NA");
35589
37026
  };
35590
- return /*#__PURE__*/React.createElement(Fragment$2, null, !(scrutinyDetails !== null && scrutinyDetails !== void 0 && scrutinyDetails.isChecklist) && /*#__PURE__*/React.createElement("div", {
37027
+ return /*#__PURE__*/React.createElement(Fragment$1, null, !(scrutinyDetails !== null && scrutinyDetails !== void 0 && scrutinyDetails.isChecklist) && /*#__PURE__*/React.createElement("div", {
35591
37028
  style: {
35592
37029
  background: "#FAFAFA",
35593
37030
  border: "1px solid #D6D5D4",
@@ -35645,7 +37082,7 @@ const ScruntinyDetails = ({
35645
37082
  }
35646
37083
  }, value === null || value === void 0 ? void 0 : value.title);
35647
37084
  })), /*#__PURE__*/React.createElement("div", null, scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$scru = scrutinyDetails.scruntinyDetails) === null || _scrutinyDetails$scru === void 0 ? void 0 : _scrutinyDetails$scru.map((report, index) => {
35648
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Row, {
37085
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Row, {
35649
37086
  className: "border-none",
35650
37087
  label: `${t(report === null || report === void 0 ? void 0 : report.title)}`,
35651
37088
  labelStyle: {
@@ -35744,7 +37181,7 @@ const SubOccupancyTable = ({
35744
37181
  }
35745
37182
  return returnValue ? returnValue : "NA";
35746
37183
  }
35747
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
37184
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
35748
37185
  style: {
35749
37186
  background: "#FAFAFA",
35750
37187
  border: "1px solid #D6D5D4",
@@ -36255,7 +37692,7 @@ const WSFeeEstimation = ({
36255
37692
  var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
36256
37693
  result === null || result === void 0 ? void 0 : (_result$Calculation2 = result.Calculation) === null || _result$Calculation2 === void 0 ? void 0 : (_result$Calculation2$ = _result$Calculation2[0]) === null || _result$Calculation2$ === void 0 ? void 0 : (_result$Calculation2$2 = _result$Calculation2$.taxHeadEstimates) === null || _result$Calculation2$2 === void 0 ? void 0 : _result$Calculation2$2.forEach(data => data.amount = data.estimateAmount);
36257
37694
  }
36258
- result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, 'category');
37695
+ result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
36259
37696
  const values = [{
36260
37697
  title: "WS_APPLICATION_FEE_HEADER",
36261
37698
  value: (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.fee
@@ -36301,7 +37738,7 @@ const WSFeeEstimation = ({
36301
37738
  if (targetValueSign == 1) {
36302
37739
  values[value] = e.target.value;
36303
37740
  } else {
36304
- values[value] = '';
37741
+ values[value] = "";
36305
37742
  }
36306
37743
  } else if (isDropDownValue) {
36307
37744
  values[`${value}_data`] = e;
@@ -36313,10 +37750,10 @@ const WSFeeEstimation = ({
36313
37750
  }
36314
37751
  setFields(values);
36315
37752
  };
36316
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
37753
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
36317
37754
  style: {
36318
37755
  lineHeight: "19px",
36319
- maxWidth: "950px",
37756
+ maxWidth: "100%",
36320
37757
  minWidth: "280px"
36321
37758
  }
36322
37759
  }, values && /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", null, values === null || values === void 0 ? void 0 : values.map((value, index) => {
@@ -36347,15 +37784,16 @@ const WSFeeEstimation = ({
36347
37784
  label: `${t(`CS_INBOX_STATUS_FILTER`)}`,
36348
37785
  text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
36349
37786
  textStyle: !isPaid ? {
36350
- color: "#D4351C"
37787
+ color: "#D83A2F"
36351
37788
  } : {
36352
- color: "#00703C"
37789
+ color: "#2E9E8F"
36353
37790
  }
36354
37791
  }))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
36355
37792
  onClick: e => {
36356
37793
  showPopUp(true);
36357
37794
  }
36358
37795
  }, /*#__PURE__*/React.createElement("span", {
37796
+ className: "add-details-link hover-button",
36359
37797
  style: {
36360
37798
  cursor: "pointer",
36361
37799
  color: "#a82227"
@@ -36379,14 +37817,16 @@ const WSFeeEstimation = ({
36379
37817
  actionSaveOnSubmit: e => addAdhocRebatePenality(),
36380
37818
  hideSubmit: false,
36381
37819
  popupStyles: {
36382
- overflowY: "auto"
37820
+ overflowY: "auto",
37821
+ background: "#f0f3f7"
36383
37822
  }
36384
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, {
37823
+ }, /*#__PURE__*/React.createElement("div", {
36385
37824
  style: {
36386
- padding: "10px 10px 1px 10px",
36387
- margin: "0px 0px 15px 0px"
37825
+ display: "flex",
37826
+ flexDirection: "column",
37827
+ gap: "16px"
36388
37828
  }
36389
- }, /*#__PURE__*/React.createElement(CardSectionHeader, {
37829
+ }, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
36390
37830
  style: {
36391
37831
  fontSize: "16px",
36392
37832
  fontWeight: "700",
@@ -36394,7 +37834,7 @@ const WSFeeEstimation = ({
36394
37834
  padding: "0px",
36395
37835
  margin: "0px 0px 10px 0px"
36396
37836
  }
36397
- }, t("PT_AD_PENALTY")), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
37837
+ }, t("PT_AD_PENALTY")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
36398
37838
  className: "field"
36399
37839
  }, /*#__PURE__*/React.createElement(Dropdown, {
36400
37840
  isMandatory: true,
@@ -36405,9 +37845,7 @@ const WSFeeEstimation = ({
36405
37845
  isPropertyAssess: true,
36406
37846
  name: "adhocPenaltyReason_data",
36407
37847
  t: t
36408
- })), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement("div", {
36409
- className: "field"
36410
- }, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement("div", {
37848
+ }))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement("div", {
36411
37849
  className: "field"
36412
37850
  }, /*#__PURE__*/React.createElement(TextInput, Object.assign({
36413
37851
  style: {
@@ -36424,7 +37862,7 @@ const WSFeeEstimation = ({
36424
37862
  pattern: "^[a-zA-Z ]*$",
36425
37863
  type: "text",
36426
37864
  title: t("TL_NAME_ERROR_MESSAGE")
36427
- })))), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
37865
+ })))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
36428
37866
  className: "field"
36429
37867
  }, /*#__PURE__*/React.createElement(TextInput, Object.assign({
36430
37868
  style: {
@@ -36440,12 +37878,7 @@ const WSFeeEstimation = ({
36440
37878
  isRequired: true,
36441
37879
  pattern: "^[1-9]+[0-9]*$",
36442
37880
  title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
36443
- })))), /*#__PURE__*/React.createElement(Card, {
36444
- style: {
36445
- padding: "10px 10px 1px 10px",
36446
- margin: "0px 0px 15px 0px"
36447
- }
36448
- }, /*#__PURE__*/React.createElement(CardSectionHeader, {
37881
+ }))))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
36449
37882
  style: {
36450
37883
  fontSize: "16px",
36451
37884
  fontWeight: "700",
@@ -36453,7 +37886,7 @@ const WSFeeEstimation = ({
36453
37886
  padding: "0px",
36454
37887
  margin: "0px 0px 10px 0px"
36455
37888
  }
36456
- }, t("PT_AD_REBATE")), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
37889
+ }, t("PT_AD_REBATE")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
36457
37890
  className: "field"
36458
37891
  }, /*#__PURE__*/React.createElement(Dropdown, {
36459
37892
  isMandatory: true,
@@ -36464,9 +37897,7 @@ const WSFeeEstimation = ({
36464
37897
  name: "adhocRebateReason_data",
36465
37898
  isPropertyAssess: true,
36466
37899
  t: t
36467
- })), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement("div", {
36468
- className: "field"
36469
- }, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
37900
+ }))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
36470
37901
  style: {
36471
37902
  background: "#FAFAFA"
36472
37903
  },
@@ -36481,7 +37912,7 @@ const WSFeeEstimation = ({
36481
37912
  pattern: "^[a-zA-Z ]*$",
36482
37913
  type: "text",
36483
37914
  title: t("TL_NAME_ERROR_MESSAGE")
36484
- }))), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
37915
+ }))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
36485
37916
  className: "field"
36486
37917
  }, /*#__PURE__*/React.createElement(TextInput, Object.assign({
36487
37918
  style: {
@@ -36497,7 +37928,7 @@ const WSFeeEstimation = ({
36497
37928
  isRequired: true,
36498
37929
  pattern: "^[1-9]+[0-9]*$",
36499
37930
  title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
36500
- }))))), " "), showToast && /*#__PURE__*/React.createElement(Toast, {
37931
+ }))))))), showToast && /*#__PURE__*/React.createElement(Toast, {
36501
37932
  style: {
36502
37933
  zIndex: "10000"
36503
37934
  },
@@ -36599,7 +38030,7 @@ const ViewBreakup = ({
36599
38030
  setBreakUpData(breakupData);
36600
38031
  showPopUp(true);
36601
38032
  };
36602
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
38033
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
36603
38034
  style: {
36604
38035
  lineHeight: "19px",
36605
38036
  maxWidth: "950px",
@@ -36611,10 +38042,7 @@ const ViewBreakup = ({
36611
38042
  marginTop: "12px"
36612
38043
  }
36613
38044
  }, /*#__PURE__*/React.createElement("span", {
36614
- style: {
36615
- cursor: "pointer",
36616
- color: "#a82227"
36617
- }
38045
+ className: "add-details-link hover-button"
36618
38046
  }, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
36619
38047
  headerBarMain: /*#__PURE__*/React.createElement(Heading, {
36620
38048
  label: t("WS_CALCULATION_BREAKUP")
@@ -37056,15 +38484,11 @@ function ApplicationDetailsContent({
37056
38484
  oldValue,
37057
38485
  isInfoLabel = false
37058
38486
  }) {
37059
- var _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
38487
+ var _applicationDetails$a, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
37060
38488
  const {
37061
38489
  t
37062
38490
  } = useTranslation();
37063
- const history = useHistory();
37064
- const location = useLocation();
37065
38491
  const [showPopup, setShowPopup] = useState(false);
37066
- const [selectedData, setSelectedData] = useState(null);
37067
- const searchParams = new URLSearchParams(location.search);
37068
38492
  let {
37069
38493
  id: applicationNo
37070
38494
  } = useParams();
@@ -37100,7 +38524,7 @@ function ApplicationDetailsContent({
37100
38524
  loaded: false,
37101
38525
  canLoad: false
37102
38526
  });
37103
- if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) == "ACTIVE" && !billData.loading && !billData.loaded && !billData.canLoad) {
38527
+ if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) === "ACTIVE" && !billData.loading && !billData.loaded && !billData.canLoad) {
37104
38528
  updateCanFetchBillData({
37105
38529
  loading: false,
37106
38530
  loaded: false,
@@ -37116,7 +38540,7 @@ function ApplicationDetailsContent({
37116
38540
  setBillData((applicationData === null || applicationData === void 0 ? void 0 : applicationData.tenantId) || tenantId, applicationData === null || applicationData === void 0 ? void 0 : applicationData.propertyId, updatefetchBillData, updateCanFetchBillData);
37117
38541
  }
37118
38542
  const convertEpochToDateDMY = dateEpoch => {
37119
- if (dateEpoch == null || dateEpoch == undefined || dateEpoch == "") {
38543
+ if (dateEpoch == null || dateEpoch === undefined || dateEpoch === "") {
37120
38544
  return "NA";
37121
38545
  }
37122
38546
  const dateFromApi = new Date(dateEpoch);
@@ -37200,7 +38624,6 @@ function ApplicationDetailsContent({
37200
38624
  const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc");
37201
38625
  const isNocLocation = window.location.href.includes("employee/noc");
37202
38626
  const isBPALocation = window.location.href.includes("employee/obps");
37203
- const isWS = window.location.href.includes("employee/ws");
37204
38627
  const getRowStyles = () => {
37205
38628
  if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc")) {
37206
38629
  return {
@@ -37239,13 +38662,13 @@ function ApplicationDetailsContent({
37239
38662
  if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc") || window.location.href.includes("employee/ws")) {
37240
38663
  return {
37241
38664
  lineHeight: "19px",
37242
- maxWidth: "950px",
38665
+ maxWidth: "100%",
37243
38666
  minWidth: "280px"
37244
38667
  };
37245
38668
  } else if (checkLocation) {
37246
38669
  return {
37247
38670
  lineHeight: "19px",
37248
- maxWidth: "600px",
38671
+ maxWidth: "100%",
37249
38672
  minWidth: "280px"
37250
38673
  };
37251
38674
  } else {
@@ -37293,7 +38716,6 @@ function ApplicationDetailsContent({
37293
38716
  });
37294
38717
  };
37295
38718
  const handleViewClick = data => {
37296
- setSelectedData(data);
37297
38719
  setShowPopup(true);
37298
38720
  };
37299
38721
  return /*#__PURE__*/React.createElement(Card, {
@@ -37308,8 +38730,8 @@ function ApplicationDetailsContent({
37308
38730
  infoClickLable: "WS_CLICK_ON_LABEL",
37309
38731
  infoClickInfoLabel: getClickInfoDetails(),
37310
38732
  infoClickInfoLabel1: getClickInfoDetails1()
37311
- }) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationDetails) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.map((detail, index) => {
37312
- var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _detail$additionalDet2, _applicationDetails$a6, _applicationDetails$a7, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
38733
+ }) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
38734
+ var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
37313
38735
  return /*#__PURE__*/React.createElement(React.Fragment, {
37314
38736
  key: index
37315
38737
  }, /*#__PURE__*/React.createElement("div", {
@@ -37402,7 +38824,7 @@ function ApplicationDetailsContent({
37402
38824
  }
37403
38825
  }, /*#__PURE__*/React.createElement("button", null, " ", /*#__PURE__*/React.createElement(EditIcon, null), " ")), /*#__PURE__*/React.createElement("div", {
37404
38826
  key: index,
37405
- onClick: () => handleViewClick(element.data),
38827
+ onClick: () => handleViewClick(),
37406
38828
  style: {
37407
38829
  cursor: "pointer"
37408
38830
  }
@@ -37503,8 +38925,8 @@ function ApplicationDetailsContent({
37503
38925
  })))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
37504
38926
  scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
37505
38927
  paymentsList: paymentsList
37506
- }), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.additionalDetails) === null || _applicationDetails$a4 === void 0 ? void 0 : (_applicationDetails$a5 = _applicationDetails$a4.fieldinspection_pending) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React.createElement(InspectionReport, {
37507
- fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : (_applicationDetails$a7 = _applicationDetails$a6.additionalDetails) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.fieldinspection_pending
38928
+ }), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : (_applicationDetails$a3 = _applicationDetails$a2.additionalDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.fieldinspection_pending) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React.createElement(InspectionReport, {
38929
+ fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : (_applicationDetails$a6 = _applicationDetails$a5.additionalDetails) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.fieldinspection_pending
37508
38930
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React.createElement(PropertyFloors, {
37509
38931
  floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
37510
38932
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.owners) && /*#__PURE__*/React.createElement(PropertyOwners, {
@@ -37546,28 +38968,18 @@ function ApplicationDetailsContent({
37546
38968
  }), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
37547
38969
  wsAdditionalDetails: detail,
37548
38970
  oldValue: oldValue
37549
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement("div", {
37550
- style: {
37551
- fontSize: "16px",
37552
- lineHeight: "24px",
37553
- fontWeight: "400",
37554
- padding: "10px 0px"
37555
- }
37556
- }, /*#__PURE__*/React.createElement(Link, {
38971
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
37557
38972
  to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.url
37558
38973
  }, /*#__PURE__*/React.createElement("span", {
37559
- className: "link",
37560
- style: {
37561
- color: "#a82227"
37562
- }
37563
- }, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
38974
+ className: "add-details-link hover-button"
38975
+ }, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title)), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
37564
38976
  wsAdditionalDetails: detail,
37565
38977
  workflowDetails: workflowDetails
37566
38978
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
37567
38979
  wsAdditionalDetails: detail,
37568
38980
  workflowDetails: workflowDetails
37569
38981
  }));
37570
- }), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader$1, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
38982
+ }), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
37571
38983
  id: "timeline"
37572
38984
  }, /*#__PURE__*/React.createElement(CardSectionHeader, {
37573
38985
  style: {
@@ -38085,7 +39497,7 @@ const ApplicationDetails = props => {
38085
39497
  }
38086
39498
  };
38087
39499
  if (isLoading || isEnableLoader) {
38088
- return /*#__PURE__*/React.createElement(Loader$1, null);
39500
+ return /*#__PURE__*/React.createElement(Loader, null);
38089
39501
  }
38090
39502
  return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ApplicationDetailsContent, {
38091
39503
  applicationDetails: applicationDetails,
@@ -38137,7 +39549,7 @@ const ApplicationDetails = props => {
38137
39549
  ActionBarStyle: ActionBarStyle,
38138
39550
  MenuStyle: MenuStyle,
38139
39551
  applicationDetails: applicationDetails
38140
- })) : /*#__PURE__*/React.createElement(Loader$1, null));
39552
+ })) : /*#__PURE__*/React.createElement(Loader, null));
38141
39553
  };
38142
39554
 
38143
39555
  const ApplicationDetails$1 = () => {
@@ -38172,7 +39584,7 @@ const ApplicationDetails$1 = () => {
38172
39584
  } = Digit.Hooks.ws.useMDMS(stateCode, "ws-services-masters", ["WSEditApplicationByConfigUser"]);
38173
39585
  const commonPayDetails = (mdmsCommonmastersData === null || mdmsCommonmastersData === void 0 ? void 0 : (_mdmsCommonmastersDat = mdmsCommonmastersData["common-masters"]) === null || _mdmsCommonmastersDat === void 0 ? void 0 : _mdmsCommonmastersDat.uiCommonPay) || [];
38174
39586
  const index = commonPayDetails && commonPayDetails.findIndex(item => {
38175
- return item.code == "WS.ONE_TIME_FEE";
39587
+ return item.code === "WS.ONE_TIME_FEE";
38176
39588
  });
38177
39589
  let commonPayInfo = "";
38178
39590
  if (index > -1) commonPayInfo = commonPayDetails[index];else commonPayInfo = commonPayDetails && commonPayDetails.filter(item => item.code === "DEFAULT");
@@ -38185,7 +39597,7 @@ const ApplicationDetails$1 = () => {
38185
39597
  }], {
38186
39598
  select: data => {
38187
39599
  var _data$DataSecurity, _data$DataSecurity$Se;
38188
- return (data === null || data === void 0 ? void 0 : (_data$DataSecurity = data.DataSecurity) === null || _data$DataSecurity === void 0 ? void 0 : (_data$DataSecurity$Se = _data$DataSecurity.SecurityPolicy) === null || _data$DataSecurity$Se === void 0 ? void 0 : _data$DataSecurity$Se.find(elem => (elem === null || elem === void 0 ? void 0 : elem.model) == "User")) || {};
39600
+ return (data === null || data === void 0 ? void 0 : (_data$DataSecurity = data.DataSecurity) === null || _data$DataSecurity === void 0 ? void 0 : (_data$DataSecurity$Se = _data$DataSecurity.SecurityPolicy) === null || _data$DataSecurity$Se === void 0 ? void 0 : _data$DataSecurity$Se.find(elem => (elem === null || elem === void 0 ? void 0 : elem.model) === "User")) || {};
38189
39601
  }
38190
39602
  });
38191
39603
  let {
@@ -38250,7 +39662,7 @@ const ApplicationDetails$1 = () => {
38250
39662
  };
38251
39663
  const checkWSAdditionalDetails = () => {
38252
39664
  var _applicationDetails$p8, _applicationDetails$p9, _applicationDetails$p0, _applicationDetails$p1;
38253
- if ((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) == "WSReconnection" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p0 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p0 === void 0 ? void 0 : (_applicationDetails$p1 = _applicationDetails$p0[0]) === null || _applicationDetails$p1 === void 0 ? void 0 : _applicationDetails$p1.businessService) == "SWReconnection") {
39665
+ if ((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) === "WSReconnection" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p0 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p0 === void 0 ? void 0 : (_applicationDetails$p1 = _applicationDetails$p0[0]) === null || _applicationDetails$p1 === void 0 ? void 0 : _applicationDetails$p1.businessService) === "SWReconnection") {
38254
39666
  return true;
38255
39667
  } else {
38256
39668
  var _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _applicationDetails$a13, _applicationDetails$a14, _applicationDetails$a15, _applicationDetails$a16;
@@ -38314,7 +39726,7 @@ const ApplicationDetails$1 = () => {
38314
39726
  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"))) {
38315
39727
  var _workflowDetails$data19, _workflowDetails$data20;
38316
39728
  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 => {
38317
- if (data.action == "EDIT") workflowDetails.data.actionState.nextActions.push(data);
39729
+ if (data.action === "EDIT") workflowDetails.data.actionState.nextActions.push(data);
38318
39730
  });
38319
39731
  }
38320
39732
  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 => {
@@ -38358,12 +39770,12 @@ const ApplicationDetails$1 = () => {
38358
39770
  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 => {
38359
39771
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
38360
39772
  var _workflowDetails$data31, _workflowDetails$data32, _workflowDetails$data33, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36;
38361
- 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") {
39773
+ 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") {
38362
39774
  action.redirectionUrll = {
38363
39775
  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}`,
38364
39776
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
38365
39777
  };
38366
- } 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") {
39778
+ } 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") {
38367
39779
  action.redirectionUrll = {
38368
39780
  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}`,
38369
39781
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
@@ -38379,12 +39791,12 @@ const ApplicationDetails$1 = () => {
38379
39791
  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 => {
38380
39792
  if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
38381
39793
  var _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45;
38382
- 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") {
39794
+ 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") {
38383
39795
  action.redirectionUrll = {
38384
39796
  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}`,
38385
39797
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
38386
39798
  };
38387
- } 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") {
39799
+ } 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") {
38388
39800
  action.redirectionUrll = {
38389
39801
  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}`,
38390
39802
  state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
@@ -38449,7 +39861,7 @@ const ApplicationDetails$1 = () => {
38449
39861
  } else {
38450
39862
  const warningCount = sessionStorage.getItem("WARINIG_COUNT") || "0";
38451
39863
  const warningCountDetails = JSON.parse(warningCount);
38452
- if (warningCountDetails == 0) {
39864
+ if (warningCountDetails === 0) {
38453
39865
  var _response$WaterConnec, _response$SewerageCon, _details$additionalDe;
38454
39866
  const filters = {
38455
39867
  applicationNumber
@@ -38459,9 +39871,9 @@ const ApplicationDetails$1 = () => {
38459
39871
  filters: {
38460
39872
  ...filters
38461
39873
  },
38462
- businessService: serviceType == "WATER" ? "WS" : "SW"
39874
+ businessService: serviceType === "WATER" ? "WS" : "SW"
38463
39875
  });
38464
- let details = serviceType == "WATER" ? response === null || response === void 0 ? void 0 : (_response$WaterConnec = response.WaterConnection) === null || _response$WaterConnec === void 0 ? void 0 : _response$WaterConnec[0] : response === null || response === void 0 ? void 0 : (_response$SewerageCon = response.SewerageConnections) === null || _response$SewerageCon === void 0 ? void 0 : _response$SewerageCon[0];
39876
+ let details = serviceType === "WATER" ? response === null || response === void 0 ? void 0 : (_response$WaterConnec = response.WaterConnection) === null || _response$WaterConnec === void 0 ? void 0 : _response$WaterConnec[0] : response === null || response === void 0 ? void 0 : (_response$SewerageCon = response.SewerageConnections) === null || _response$SewerageCon === void 0 ? void 0 : _response$SewerageCon[0];
38465
39877
  if (details !== null && details !== void 0 && (_details$additionalDe = details.additionalDetails) !== null && _details$additionalDe !== void 0 && _details$additionalDe.estimationFileStoreId) {
38466
39878
  var _details$additionalDe2;
38467
39879
  getFiles([details === null || details === void 0 ? void 0 : (_details$additionalDe2 = details.additionalDetails) === null || _details$additionalDe2 === void 0 ? void 0 : _details$additionalDe2.estimationFileStoreId], tenantId);
@@ -38513,20 +39925,6 @@ const ApplicationDetails$1 = () => {
38513
39925
  return getRecieptSearch(Digit.ULBService.getStateId(), (_reciept_data = reciept_data) === null || _reciept_data === void 0 ? void 0 : (_reciept_data$Payment = _reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment[0], applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a27 = applicationDetails.applicationData) === null || _applicationDetails$a27 === void 0 ? void 0 : _applicationDetails$a27.applicationNo, receiptKey);
38514
39926
  }
38515
39927
  };
38516
- const applicationFeeReceipt = {
38517
- order: 4,
38518
- label: t("WS_APLICATION_RECEIPT"),
38519
- onClick: async () => {
38520
- const tenant = Digit.ULBService.getStateId();
38521
- const ConnectionDetailsfile = await Digit.PaymentService.generatePdf(tenantId, {
38522
- WaterConnection: [applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData]
38523
- }, "ws-consolidatedacknowlegment");
38524
- const file = await Digit.PaymentService.printReciept(tenant, {
38525
- fileStoreIds: ConnectionDetailsfile.filestoreIds[0]
38526
- });
38527
- window.open(file[ConnectionDetailsfile.filestoreIds[0]], "_blank");
38528
- }
38529
- };
38530
39928
  switch (appStatus) {
38531
39929
  case "PENDING_FOR_DOCUMENT_VERIFICATION":
38532
39930
  case "PENDING_FOR_CITIZEN_ACTION":
@@ -38843,7 +40241,7 @@ const GetConnectionDetails = () => {
38843
40241
  onClick: props.onClick
38844
40242
  }, /*#__PURE__*/React.createElement(Close, null));
38845
40243
  };
38846
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
40244
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
38847
40245
  className: "employee-application-details",
38848
40246
  style: {
38849
40247
  marginBottom: "15px"
@@ -39182,7 +40580,7 @@ const ActivateConnection = () => {
39182
40580
  }
39183
40581
  };
39184
40582
  if (isEnableLoader || isLoading || isappdetailsLoading) {
39185
- return /*#__PURE__*/React.createElement(Loader$1, null);
40583
+ return /*#__PURE__*/React.createElement(Loader, null);
39186
40584
  }
39187
40585
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
39188
40586
  style: {
@@ -39270,7 +40668,7 @@ const ApplicationDetailsBillAmendment = () => {
39270
40668
  label: t("WS_ACK_PDF"),
39271
40669
  onClick: () => getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails)
39272
40670
  }];
39273
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
40671
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
39274
40672
  className: "employee-main-application-details"
39275
40673
  }, /*#__PURE__*/React.createElement("div", {
39276
40674
  className: "employee-application-details",
@@ -39366,7 +40764,7 @@ const Search = ({
39366
40764
  });
39367
40765
  const isMobile = window.Digit.Utils.browser.isMobile();
39368
40766
  if (result !== null && result !== void 0 && result.isLoading && isMobile) {
39369
- return /*#__PURE__*/React.createElement(Loader$1, null);
40767
+ return /*#__PURE__*/React.createElement(Loader, null);
39370
40768
  }
39371
40769
  const getData = () => {
39372
40770
  var _result$data, _result$data2;
@@ -39384,7 +40782,7 @@ const Search = ({
39384
40782
  var _result$data3;
39385
40783
  return (result === null || result === void 0 ? void 0 : (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : _result$data3.length) > 0 ? true : false;
39386
40784
  };
39387
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Search, {
40785
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Search, {
39388
40786
  t: t,
39389
40787
  tenantId: tenantId,
39390
40788
  onSubmit: onSubmit,
@@ -39458,7 +40856,7 @@ const SearchWater = ({
39458
40856
  });
39459
40857
  const isMobile = window.Digit.Utils.browser.isMobile();
39460
40858
  if (result !== null && result !== void 0 && result.isLoading && isMobile) {
39461
- return /*#__PURE__*/React.createElement(Loader$1, null);
40859
+ return /*#__PURE__*/React.createElement(Loader, null);
39462
40860
  }
39463
40861
  const getData = () => {
39464
40862
  var _result$data, _result$data2;
@@ -39485,7 +40883,7 @@ const SearchWater = ({
39485
40883
  }
39486
40884
  return item;
39487
40885
  });
39488
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SWater, {
40886
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
39489
40887
  t: t,
39490
40888
  tenantId: tenantId,
39491
40889
  onSubmit: onSubmit,
@@ -39683,7 +41081,7 @@ const EditApplication$1 = () => {
39683
41081
  setShowToast(null);
39684
41082
  };
39685
41083
  if (enabledLoader || isConfigLoading) {
39686
- return /*#__PURE__*/React.createElement(Loader$1, null);
41084
+ return /*#__PURE__*/React.createElement(Loader, null);
39687
41085
  }
39688
41086
  console.log(config.body);
39689
41087
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -40041,7 +41439,7 @@ const ConsumptionDetails = ({
40041
41439
  } else return t("NA");
40042
41440
  };
40043
41441
  if (isLoading || isConnectionDetailsLoading) {
40044
- return /*#__PURE__*/React.createElement(Loader$1, null);
41442
+ return /*#__PURE__*/React.createElement(Loader, null);
40045
41443
  }
40046
41444
  let {
40047
41445
  meterReadings
@@ -40118,7 +41516,7 @@ const ConsumptionDetails = ({
40118
41516
  popupModuleMianStyles: mobileView ? {
40119
41517
  paddingLeft: "5px"
40120
41518
  } : {}
40121
- }, isEnableLoader ? /*#__PURE__*/React.createElement(Loader$1, null) : /*#__PURE__*/React.createElement(FormComposer, {
41519
+ }, isEnableLoader ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
40122
41520
  config: config.form,
40123
41521
  onFormValueChange: onFormValueChange,
40124
41522
  cardStyle: {
@@ -40427,7 +41825,7 @@ const ModifyApplication = () => {
40427
41825
  setShowToast(null);
40428
41826
  };
40429
41827
  if (enabledLoader || isEnableLoader || isConfigLoading) {
40430
- return /*#__PURE__*/React.createElement(Loader$1, null);
41828
+ return /*#__PURE__*/React.createElement(Loader, null);
40431
41829
  }
40432
41830
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
40433
41831
  style: {
@@ -40609,7 +42007,7 @@ const EditModifyApplication = () => {
40609
42007
  setShowToast(null);
40610
42008
  };
40611
42009
  if (enabledLoader || isConfigLoading) {
40612
- return /*#__PURE__*/React.createElement(Loader$1, null);
42010
+ return /*#__PURE__*/React.createElement(Loader, null);
40613
42011
  }
40614
42012
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
40615
42013
  style: {
@@ -40653,7 +42051,7 @@ const DisconnectionApplication = () => {
40653
42051
  });
40654
42052
  config.indexRoute = "docsrequired";
40655
42053
  } else {
40656
- return /*#__PURE__*/React.createElement(Loader$1, null);
42054
+ return /*#__PURE__*/React.createElement(Loader, null);
40657
42055
  }
40658
42056
  return /*#__PURE__*/React.createElement(Switch, null, config.map((routeObj, index) => {
40659
42057
  const {
@@ -40705,7 +42103,7 @@ const DisconnectionApplication$1 = () => {
40705
42103
  });
40706
42104
  config.indexRoute = "new-restoration";
40707
42105
  } else {
40708
- return /*#__PURE__*/React.createElement(Loader$1, null);
42106
+ return /*#__PURE__*/React.createElement(Loader, null);
40709
42107
  }
40710
42108
  console.log("configconfig", config);
40711
42109
  return /*#__PURE__*/React.createElement(Switch, null, config.map((routeObj, index) => {
@@ -40975,7 +42373,7 @@ const WSEditApplicationByConfig = () => {
40975
42373
  }
40976
42374
  };
40977
42375
  if (enabledLoader || isConfigLoading) {
40978
- return /*#__PURE__*/React.createElement(Loader$1, null);
42376
+ return /*#__PURE__*/React.createElement(Loader, null);
40979
42377
  }
40980
42378
  return /*#__PURE__*/React.createElement("div", {
40981
42379
  className: "employee-form-content-with-action-bar "
@@ -41173,7 +42571,7 @@ const GetDisconnectionDetails = () => {
41173
42571
  dowloadOptions.sort(function (a, b) {
41174
42572
  return a.order - b.order;
41175
42573
  });
41176
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
42574
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
41177
42575
  className: "employee-application-details",
41178
42576
  style: {
41179
42577
  marginBottom: "15px"
@@ -41411,7 +42809,7 @@ const ModifyApplicationDetails = () => {
41411
42809
  dowloadOptions.sort(function (a, b) {
41412
42810
  return a.order - b.order;
41413
42811
  });
41414
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
42812
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
41415
42813
  className: "employee-main-application-details"
41416
42814
  }, /*#__PURE__*/React.createElement("div", {
41417
42815
  className: "employee-application-details",
@@ -41549,7 +42947,7 @@ const EditDisconnectionByConfig = () => {
41549
42947
  };
41550
42948
  const IsDetailsExists = sessionStorage.getItem("IsDetailsExists") ? JSON.parse(sessionStorage.getItem("IsDetailsExists")) : false;
41551
42949
  if (isLoading || !IsDetailsExists || isConfigLoading) {
41552
- return /*#__PURE__*/React.createElement(Loader$1, null);
42950
+ return /*#__PURE__*/React.createElement(Loader, null);
41553
42951
  }
41554
42952
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
41555
42953
  style: {
@@ -41672,7 +43070,7 @@ const EditDisconnectionByConfig$1 = () => {
41672
43070
  };
41673
43071
  const IsDetailsExists = sessionStorage.getItem("IsDetailsExists") ? JSON.parse(sessionStorage.getItem("IsDetailsExists")) : false;
41674
43072
  if (isLoading || !IsDetailsExists || isConfigLoading) {
41675
- return /*#__PURE__*/React.createElement(Loader$1, null);
43073
+ return /*#__PURE__*/React.createElement(Loader, null);
41676
43074
  }
41677
43075
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
41678
43076
  style: {
@@ -41834,7 +43232,7 @@ const ResubmitDisconnection = () => {
41834
43232
  };
41835
43233
  const IsDetailsExists = sessionStorage.getItem("IsDetailsExists") ? JSON.parse(sessionStorage.getItem("IsDetailsExists")) : false;
41836
43234
  if (isLoading || !IsDetailsExists || isConfigLoading) {
41837
- return /*#__PURE__*/React.createElement(Loader$1, null);
43235
+ return /*#__PURE__*/React.createElement(Loader, null);
41838
43236
  }
41839
43237
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
41840
43238
  style: {
@@ -41876,7 +43274,7 @@ const SearchFields$2 = ({
41876
43274
  },
41877
43275
  title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
41878
43276
  };
41879
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, {
43277
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
41880
43278
  style: {
41881
43279
  width: "100%"
41882
43280
  }
@@ -42082,7 +43480,7 @@ const SearchWaterConnectionIntegrated = ({
42082
43480
  return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
42083
43481
  }
42084
43482
  }], []);
42085
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, {
43483
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
42086
43484
  styles: {
42087
43485
  fontSize: "32px"
42088
43486
  }
@@ -42096,7 +43494,7 @@ const SearchWaterConnectionIntegrated = ({
42096
43494
  reset,
42097
43495
  tenantId,
42098
43496
  t
42099
- })), isLoading ? /*#__PURE__*/React.createElement(Loader$1, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
43497
+ })), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
42100
43498
  style: {
42101
43499
  marginTop: 20
42102
43500
  }
@@ -42221,7 +43619,7 @@ const SearchIntegrated = ({
42221
43619
  var _result12$data5, _result$data5;
42222
43620
  return (result12 === null || result12 === void 0 ? void 0 : (_result12$data5 = result12.data) === null || _result12$data5 === void 0 ? void 0 : _result12$data5.length) > 0 || (result === null || result === void 0 ? void 0 : (_result$data5 = result.data) === null || _result$data5 === void 0 ? void 0 : _result$data5.length) > 0 ? true : false;
42223
43621
  };
42224
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SWater, {
43622
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
42225
43623
  t: t,
42226
43624
  tenantId: tenantId,
42227
43625
  onSubmit: onSubmit,
@@ -42245,7 +43643,7 @@ const SearchWaterConnectionViewIntegrated = ({
42245
43643
  count,
42246
43644
  resultOk
42247
43645
  }) => {
42248
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchWaterConnectionIntegrated, {
43646
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchWaterConnectionIntegrated, {
42249
43647
  onSubmit: onSubmit,
42250
43648
  data: data,
42251
43649
  count: count,
@@ -42284,7 +43682,7 @@ const BulkBillGeneration = ({
42284
43682
  });
42285
43683
  const isMobile = window.Digit.Utils.browser.isMobile();
42286
43684
  if (result !== null && result !== void 0 && result.isLoading && isMobile) {
42287
- return /*#__PURE__*/React.createElement(Loader$1, null);
43685
+ return /*#__PURE__*/React.createElement(Loader, null);
42288
43686
  }
42289
43687
  const getData = () => {
42290
43688
  console.log("result", result);
@@ -42313,7 +43711,7 @@ const BulkBillGeneration = ({
42313
43711
  var _result$meterReadings;
42314
43712
  return (result === null || result === void 0 ? void 0 : (_result$meterReadings = result.meterReadings) === null || _result$meterReadings === void 0 ? void 0 : _result$meterReadings.length) > 0 ? true : false;
42315
43713
  };
42316
- return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(WSBulkBillSearch, {
43714
+ return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(WSBulkBillSearch, {
42317
43715
  t: t,
42318
43716
  tenantId: tenantId,
42319
43717
  onSubmit: onSubmit,
@@ -42356,7 +43754,7 @@ const WSModule = ({
42356
43754
  Digit.SessionStorage.set("WS_TENANTS", tenants);
42357
43755
  Digit.SessionStorage.set("PT_TENANTS", tenants);
42358
43756
  if (isLoading) {
42359
- return /*#__PURE__*/React.createElement(Loader$1, null);
43757
+ return /*#__PURE__*/React.createElement(Loader, null);
42360
43758
  }
42361
43759
  if (userType === "citizen") {
42362
43760
  return /*#__PURE__*/React.createElement(App, {