@djb25/digit-ui-module-ws 1.0.90 → 1.0.91

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.
package/dist/index.js CHANGED
@@ -550,6 +550,16 @@ const createPayloadOfWS = function (data) {
550
550
  status: "ACTIVE"
551
551
  });
552
552
  }
553
+ if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
554
+ var _connectionDetail$org;
555
+ let documentType = "OWNER.ORGANIZATION_DOCUMENT";
556
+ allDocuments.push({
557
+ documentType: documentType,
558
+ fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org = connectionDetail.orgDeptDocument) === null || _connectionDetail$org === void 0 ? void 0 : _connectionDetail$org.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
559
+ documentUid: "",
560
+ status: "ACTIVE"
561
+ });
562
+ }
553
563
  let payload = {
554
564
  water: !!isWater,
555
565
  sewerage: !!isSewerage,
@@ -722,6 +732,18 @@ const getAllDocumentsForUpdate = data => {
722
732
  status: "ACTIVE"
723
733
  });
724
734
  }
735
+ const connectionDetailsArray = Array.isArray(data === null || data === void 0 ? void 0 : data.ConnectionDetails) ? data.ConnectionDetails : data !== null && data !== void 0 && data.ConnectionDetails ? Object.values(data.ConnectionDetails).filter(i => typeof i === "object") : [];
736
+ const connectionDetail = (connectionDetailsArray === null || connectionDetailsArray === void 0 ? void 0 : connectionDetailsArray[0]) || (data === null || data === void 0 ? void 0 : data.ConnectionDetails) || {};
737
+ if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
738
+ var _connectionDetail$org2;
739
+ let documentType = "OWNER.ORGANIZATION_DOCUMENT";
740
+ allDocuments.push({
741
+ documentType: documentType,
742
+ fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org2 = connectionDetail.orgDeptDocument) === null || _connectionDetail$org2 === void 0 ? void 0 : _connectionDetail$org2.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
743
+ documentUid: "",
744
+ status: "ACTIVE"
745
+ });
746
+ }
725
747
  return allDocuments;
726
748
  };
727
749
  const convertToWSUpdate = data => {
@@ -7872,7 +7894,7 @@ var lodash = createCommonjsModule(function (module, exports) {
7872
7894
  });
7873
7895
 
7874
7896
  const WSApplication = _ref => {
7875
- var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6, _application$applicat7, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat8, _application$applicat9;
7897
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6;
7876
7898
  let {
7877
7899
  application
7878
7900
  } = _ref;
@@ -7970,19 +7992,21 @@ const WSApplication = _ref => {
7970
7992
  to: `/digit-ui/citizen/ws/connection/application/${encodeApplicationNo}`
7971
7993
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
7972
7994
  label: t("WS_VIEW_DETAILS_LABEL")
7973
- })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
7974
- to: {
7975
- pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")}`,
7976
- search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat8 = application.applicationNo) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DC") ? true : false}&consumerCode=${application !== null && application !== void 0 && (_application$applicat9 = application.applicationNo) !== null && _application$applicat9 !== void 0 && _application$applicat9.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo}`,
7977
- state: {}
7978
- }
7979
- }, /*#__PURE__*/React__default.createElement("div", {
7995
+ })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
7980
7996
  style: {
7981
7997
  marginTop: "10px"
7982
7998
  }
7983
7999
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
7984
- label: t("MAKE_PAYMENT")
7985
- }))) : null);
8000
+ label: t("MAKE_PAYMENT"),
8001
+ onSubmit: () => {
8002
+ var _application$applicat7, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat8, _application$applicat9;
8003
+ history.push({
8004
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")}`,
8005
+ search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat8 = application.applicationNo) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DC") ? true : false}&consumerCode=${application !== null && application !== void 0 && (_application$applicat9 = application.applicationNo) !== null && _application$applicat9 !== void 0 && _application$applicat9.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo}`,
8006
+ state: {}
8007
+ });
8008
+ }
8009
+ })) : null);
7986
8010
  };
7987
8011
 
7988
8012
  const EyeSvgINdex = _ref => {
@@ -8878,7 +8902,7 @@ const getWSAcknowledgementData$1 = function (newApplication, property, tenantInf
8878
8902
  };
8879
8903
 
8880
8904
  const WSResponse = props => {
8881
- var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2, _waterApplicationData8, _waterApplicationData9, _waterApplicationData0, _waterApplicationData1, _waterApplicationData10, _waterApplicationData11, _waterApplicationData12, _waterApplicationData13, _waterApplicationData14, _waterApplicationData15, _waterApplicationData16, _waterApplicationData17, _waterApplicationData18, _waterApplicationData19, _waterApplicationData20, _sewerageApplicationD8, _sewerageApplicationD9, _sewerageApplicationD0, _sewerageApplicationD1, _sewerageApplicationD10, _sewerageApplicationD11, _sewerageApplicationD12, _sewerageApplicationD13, _sewerageApplicationD14, _sewerageApplicationD15, _sewerageApplicationD16, _sewerageApplicationD17, _sewerageApplicationD18, _sewerageApplicationD19, _sewerageApplicationD20;
8905
+ var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2, _waterApplicationData8, _sewerageApplicationD8;
8882
8906
  const {
8883
8907
  t
8884
8908
  } = reactI18next.useTranslation();
@@ -9051,30 +9075,66 @@ const WSResponse = props => {
9051
9075
  }, /*#__PURE__*/React__default.createElement("path", {
9052
9076
  d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
9053
9077
  fill: "#a82227"
9054
- })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
9055
- to: {
9056
- pathname: `/digit-ui/employee/payment/collect/${waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData9 = waterApplicationData.applicationData) !== null && _waterApplicationData9 !== void 0 && (_waterApplicationData0 = _waterApplicationData9.applicationNo) !== null && _waterApplicationData0 !== void 0 && _waterApplicationData0.includes("DC") ? "WS" : "WS.ONE_TIME_FEE"}/${waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? stringReplaceAll(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData11 = waterApplicationData.applicationData) === null || _waterApplicationData11 === void 0 ? void 0 : _waterApplicationData11.connectionNo, "/", "+") : stringReplaceAll(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData12 = waterApplicationData.applicationData) === null || _waterApplicationData12 === void 0 ? void 0 : _waterApplicationData12.applicationNo, "/", "+")}/${waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId}?workflow=WNS&tenantId=${waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData14 = waterApplicationData.applicationData) === null || _waterApplicationData14 === void 0 ? void 0 : _waterApplicationData14.tenantId}&ConsumerName=${(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData15 = waterApplicationData.applicationData) === null || _waterApplicationData15 === void 0 ? void 0 : (_waterApplicationData16 = _waterApplicationData15.connectionHolders) === null || _waterApplicationData16 === void 0 ? void 0 : _waterApplicationData16.map(owner => owner.name).join(",")) || (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData17 = waterApplicationData.propertyDetails) === null || _waterApplicationData17 === void 0 ? void 0 : (_waterApplicationData18 = _waterApplicationData17.owners) === null || _waterApplicationData18 === void 0 ? void 0 : _waterApplicationData18.map(owner => owner.name).join(","))}&isDisconnectFlow=${waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData19 = waterApplicationData.applicationData) !== null && _waterApplicationData19 !== void 0 && (_waterApplicationData20 = _waterApplicationData19.applicationNo) !== null && _waterApplicationData20 !== void 0 && _waterApplicationData20.includes("DC") ? true : false}`,
9057
- state: {}
9058
- }
9059
- }, /*#__PURE__*/React__default.createElement("div", {
9078
+ })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
9060
9079
  style: {
9061
9080
  marginTop: "10px"
9062
9081
  }
9063
9082
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9064
- label: t("MAKE_PAYMENT")
9065
- }))) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
9066
- to: {
9067
- pathname: `/digit-ui/employee/payment/collect/${sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD9 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD9 !== void 0 && (_sewerageApplicationD0 = _sewerageApplicationD9.applicationNo) !== null && _sewerageApplicationD0 !== void 0 && _sewerageApplicationD0.includes("DC") ? "SW" : "SW.ONE_TIME_FEE"}/${sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? stringReplaceAll(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD11 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD11 === void 0 ? void 0 : _sewerageApplicationD11.connectionNo, "/", "+") : stringReplaceAll(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD12 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD12 === void 0 ? void 0 : _sewerageApplicationD12.applicationNo, "/", "+")}/${sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId}?workflow=WNS&tenantId=${sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD14 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD14 === void 0 ? void 0 : _sewerageApplicationD14.tenantId}&ConsumerName=${(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD15 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD15 === void 0 ? void 0 : (_sewerageApplicationD16 = _sewerageApplicationD15.connectionHolders) === null || _sewerageApplicationD16 === void 0 ? void 0 : _sewerageApplicationD16.map(owner => owner.name).join(",")) || (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD17 = sewerageApplicationData.propertyDetails) === null || _sewerageApplicationD17 === void 0 ? void 0 : (_sewerageApplicationD18 = _sewerageApplicationD17.owners) === null || _sewerageApplicationD18 === void 0 ? void 0 : _sewerageApplicationD18.map(owner => owner.name).join(","))}&isDisconnectFlow=${sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD19 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD19 !== void 0 && (_sewerageApplicationD20 = _sewerageApplicationD19.applicationNo) !== null && _sewerageApplicationD20 !== void 0 && _sewerageApplicationD20.includes("DC") ? true : false}`,
9068
- state: {}
9083
+ label: t("MAKE_PAYMENT"),
9084
+ onSubmit: () => {
9085
+ var _waterApplicationData9, _waterApplicationData0, _waterApplicationData1, _waterApplicationData10, _waterApplicationData11, _waterApplicationData12, _waterApplicationData13, _waterApplicationData14, _waterApplicationData15, _waterApplicationData16, _waterApplicationData17, _waterApplicationData18, _waterApplicationData19;
9086
+ let isEmployee = window.location.href.includes("/employee");
9087
+ let businessService = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData9 = waterApplicationData.applicationData) !== null && _waterApplicationData9 !== void 0 && (_waterApplicationData0 = _waterApplicationData9.applicationNo) !== null && _waterApplicationData0 !== void 0 && _waterApplicationData0.includes("DC") ? "WS" : "WS.ONE_TIME_FEE";
9088
+ let consumerCodeOriginal = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData11 = waterApplicationData.applicationData) === null || _waterApplicationData11 === void 0 ? void 0 : _waterApplicationData11.connectionNo : waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData12 = waterApplicationData.applicationData) === null || _waterApplicationData12 === void 0 ? void 0 : _waterApplicationData12.applicationNo;
9089
+ let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9090
+ let tenantId = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId;
9091
+ let consumerName = (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData14 = waterApplicationData.applicationData) === null || _waterApplicationData14 === void 0 ? void 0 : (_waterApplicationData15 = _waterApplicationData14.connectionHolders) === null || _waterApplicationData15 === void 0 ? void 0 : _waterApplicationData15.map(owner => owner.name).join(",")) || (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData16 = waterApplicationData.propertyDetails) === null || _waterApplicationData16 === void 0 ? void 0 : (_waterApplicationData17 = _waterApplicationData16.owners) === null || _waterApplicationData17 === void 0 ? void 0 : _waterApplicationData17.map(owner => owner.name).join(","));
9092
+ let isDisconnectFlow = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData18 = waterApplicationData.applicationData) !== null && _waterApplicationData18 !== void 0 && (_waterApplicationData19 = _waterApplicationData18.applicationNo) !== null && _waterApplicationData19 !== void 0 && _waterApplicationData19.includes("DC") ? true : false;
9093
+ if (isEmployee) {
9094
+ history.push({
9095
+ pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
9096
+ search: `?tenantId=${tenantId}&consumerCode=${consumerCodeOriginal}&ISWSAPP&applicationNumber=${consumerCodeOriginal}`,
9097
+ state: {}
9098
+ });
9099
+ } else {
9100
+ history.push({
9101
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${consumerCode}`,
9102
+ search: `?workflow=WNS&tenantId=${tenantId}&ConsumerName=${consumerName}&isDisoconnectFlow=${isDisconnectFlow}&consumerCode=${consumerCodeOriginal}`,
9103
+ state: {}
9104
+ });
9105
+ }
9069
9106
  }
9070
- }, /*#__PURE__*/React__default.createElement("div", {
9107
+ })) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
9071
9108
  style: {
9072
9109
  marginTop: "10px",
9073
9110
  marginLeft: "10px"
9074
9111
  }
9075
9112
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9076
- label: t("MAKE_PAYMENT")
9077
- }))) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
9113
+ label: t("MAKE_PAYMENT"),
9114
+ onSubmit: () => {
9115
+ var _sewerageApplicationD9, _sewerageApplicationD0, _sewerageApplicationD1, _sewerageApplicationD10, _sewerageApplicationD11, _sewerageApplicationD12, _sewerageApplicationD13, _sewerageApplicationD14, _sewerageApplicationD15, _sewerageApplicationD16, _sewerageApplicationD17, _sewerageApplicationD18, _sewerageApplicationD19;
9116
+ let isEmployee = window.location.href.includes("/employee");
9117
+ let businessService = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD9 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD9 !== void 0 && (_sewerageApplicationD0 = _sewerageApplicationD9.applicationNo) !== null && _sewerageApplicationD0 !== void 0 && _sewerageApplicationD0.includes("DC") ? "SW" : "SW.ONE_TIME_FEE";
9118
+ let consumerCodeOriginal = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD11 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD11 === void 0 ? void 0 : _sewerageApplicationD11.connectionNo : sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD12 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD12 === void 0 ? void 0 : _sewerageApplicationD12.applicationNo;
9119
+ let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9120
+ let tenantId = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId;
9121
+ let consumerName = (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD14 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD14 === void 0 ? void 0 : (_sewerageApplicationD15 = _sewerageApplicationD14.connectionHolders) === null || _sewerageApplicationD15 === void 0 ? void 0 : _sewerageApplicationD15.map(owner => owner.name).join(",")) || (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD16 = sewerageApplicationData.propertyDetails) === null || _sewerageApplicationD16 === void 0 ? void 0 : (_sewerageApplicationD17 = _sewerageApplicationD16.owners) === null || _sewerageApplicationD17 === void 0 ? void 0 : _sewerageApplicationD17.map(owner => owner.name).join(","));
9122
+ let isDisconnectFlow = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD18 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD18 !== void 0 && (_sewerageApplicationD19 = _sewerageApplicationD18.applicationNo) !== null && _sewerageApplicationD19 !== void 0 && _sewerageApplicationD19.includes("DC") ? true : false;
9123
+ if (isEmployee) {
9124
+ history.push({
9125
+ pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
9126
+ search: `?tenantId=${tenantId}&consumerCode=${consumerCodeOriginal}&ISWSAPP&applicationNumber=${consumerCodeOriginal}`,
9127
+ state: {}
9128
+ });
9129
+ } else {
9130
+ history.push({
9131
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${consumerCode}`,
9132
+ search: `?workflow=WNS&tenantId=${tenantId}&ConsumerName=${consumerName}&isDisoconnectFlow=${isDisconnectFlow}&consumerCode=${consumerCodeOriginal}`,
9133
+ state: {}
9134
+ });
9135
+ }
9136
+ }
9137
+ })) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
9078
9138
  style: {
9079
9139
  display: "flex",
9080
9140
  justifyContent: "flex-end",
@@ -9437,6 +9497,7 @@ const Response = () => {
9437
9497
  const {
9438
9498
  state
9439
9499
  } = reactRouterDom.useLocation();
9500
+ const history = reactRouterDom.useHistory();
9440
9501
  const {
9441
9502
  t
9442
9503
  } = reactI18next.useTranslation();
@@ -9506,14 +9567,13 @@ const Response = () => {
9506
9567
  justifyContent: "flex-end",
9507
9568
  alignItems: "baseline"
9508
9569
  }
9509
- }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
9510
- to: `/digit-ui/employee`,
9570
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9571
+ label: t("CORE_COMMON_GO_TO_HOME"),
9572
+ onSubmit: () => history.push(`/digit-ui/employee`),
9511
9573
  style: {
9512
9574
  marginRight: "1rem"
9513
9575
  }
9514
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9515
- label: t("CORE_COMMON_GO_TO_HOME")
9516
- })))));
9576
+ }))));
9517
9577
  };
9518
9578
 
9519
9579
  const ResponseBillAmend = () => {
@@ -9521,6 +9581,7 @@ const ResponseBillAmend = () => {
9521
9581
  const {
9522
9582
  state
9523
9583
  } = reactRouterDom.useLocation();
9584
+ const history = reactRouterDom.useHistory();
9524
9585
  const {
9525
9586
  t
9526
9587
  } = reactI18next.useTranslation();
@@ -9535,14 +9596,13 @@ const ResponseBillAmend = () => {
9535
9596
  justifyContent: "flex-end",
9536
9597
  alignItems: "baseline"
9537
9598
  }
9538
- }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
9539
- to: `/digit-ui/employee`,
9599
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9600
+ label: t("CORE_COMMON_GO_TO_HOME"),
9601
+ onSubmit: () => history.push(`/digit-ui/employee`),
9540
9602
  style: {
9541
9603
  marginRight: "1rem"
9542
9604
  }
9543
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9544
- label: t("CORE_COMMON_GO_TO_HOME")
9545
- })))));
9605
+ }))));
9546
9606
  };
9547
9607
 
9548
9608
  const getPropertyAddress$2 = property => {
@@ -10797,20 +10857,42 @@ const WSZROVerification = () => {
10797
10857
  t
10798
10858
  } = reactI18next.useTranslation();
10799
10859
  const tenantId = Digit.ULBService.getCurrentTenantId();
10860
+ const [connectionNo, setConnectionNo] = React.useState("");
10861
+ const [filters, setFilters] = React.useState({
10862
+ status: "PENDING",
10863
+ offset: 0,
10864
+ limit: 20
10865
+ });
10800
10866
  const {
10801
10867
  isLoading,
10802
10868
  data
10803
10869
  } = Digit.Hooks.ws.useWSZROVerification({
10804
10870
  tenantId,
10805
- filters: {
10806
- status: "PENDING",
10807
- offset: 0,
10808
- limit: 20
10809
- },
10871
+ filters,
10810
10872
  config: {
10811
10873
  select: res => (res === null || res === void 0 ? void 0 : res.cases) || []
10812
10874
  }
10813
10875
  });
10876
+ const onSubmit = e => {
10877
+ if (e) e.preventDefault();
10878
+ const newFilters = {
10879
+ status: "PENDING",
10880
+ offset: 0,
10881
+ limit: 20
10882
+ };
10883
+ if (connectionNo !== null && connectionNo !== void 0 && connectionNo.trim()) {
10884
+ newFilters.connectionNo = connectionNo.trim();
10885
+ }
10886
+ setFilters(newFilters);
10887
+ };
10888
+ const clearSearch = () => {
10889
+ setConnectionNo("");
10890
+ setFilters({
10891
+ status: "PENDING",
10892
+ offset: 0,
10893
+ limit: 20
10894
+ });
10895
+ };
10814
10896
  const columns = React__default.useMemo(() => [{
10815
10897
  Header: t("WS_CONNECTION_NO_LABEL"),
10816
10898
  accessor: "connectionNo",
@@ -10885,10 +10967,25 @@ const WSZROVerification = () => {
10885
10967
  return (_row$original8 = row.original) !== null && _row$original8 !== void 0 && (_row$original8$verifi = _row$original8.verification) !== null && _row$original8$verifi !== void 0 && _row$original8$verifi.status ? t(`WS_ZRO_STATUS_${row.original.verification.status}`) : "NA";
10886
10968
  }
10887
10969
  }], [t]);
10888
- if (isLoading) {
10889
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
10890
- }
10891
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
10970
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchForm, {
10971
+ onSubmit: onSubmit,
10972
+ handleSubmit: fn => fn,
10973
+ className: "formcomposer-section-grid"
10974
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, null, /*#__PURE__*/React__default.createElement("label", null, t("WS_CONNECTION_NO_LABEL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
10975
+ name: "connectionNo",
10976
+ value: connectionNo,
10977
+ onChange: e => setConnectionNo(e.target.value)
10978
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, {
10979
+ className: "ws-submit"
10980
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
10981
+ label: t("ES_COMMON_SEARCH"),
10982
+ submit: true,
10983
+ className: "submit-bar generic-button"
10984
+ }), /*#__PURE__*/React__default.createElement("button", {
10985
+ type: "button",
10986
+ className: "clear-search generic-button",
10987
+ onClick: clearSearch
10988
+ }, t("ES_COMMON_CLEAR_SEARCH"))))), isLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
10892
10989
  t: t,
10893
10990
  data: data || [],
10894
10991
  totalRecords: (data === null || data === void 0 ? void 0 : data.length) || 0,
@@ -11591,7 +11688,12 @@ const BILLSBreadCrumbs = _ref => {
11591
11688
  }, {
11592
11689
  path: "/digit-ui/employee/ws/zro-application",
11593
11690
  label: t("WS_ZRO_VERIFICATION"),
11594
- show: location.pathname.includes("/ws/zro-application") ? true : false
11691
+ show: location.pathname.includes("/ws/zro-application") || location.pathname.includes("/ws/zro-verification-details") ? true : false,
11692
+ isclickable: location.pathname.includes("/ws/zro-verification-details") ? true : false
11693
+ }, {
11694
+ path: "/digit-ui/employee/ws/zro-verification-details",
11695
+ label: t("WS_APPLICATION_DETAILS_HEADER"),
11696
+ show: location.pathname.includes("/ws/zro-verification-details") ? true : false
11595
11697
  }];
11596
11698
  let lastCrumbIndex = findLastIndex(crumbs, "show", true);
11597
11699
  crumbs[lastCrumbIndex] = {
@@ -28736,24 +28838,11 @@ const newConfig = [{
28736
28838
  route: "property-water-details",
28737
28839
  component: "WSPropertyWaterConnection",
28738
28840
  key: "waterConnection",
28739
- nextStep: "bank-details",
28740
- WATER: "bank-details",
28741
- hideInEmployee: true,
28742
- texts: {
28743
- header: "WS_PROPERTY_ADDRESS_DETAILS",
28744
- cardText: "",
28745
- submitBarLabel: "CS_COMMON_NEXT"
28746
- }
28747
- }, {
28748
- route: "bank-details",
28749
- component: "WSBankDetails",
28750
- key: "bankDetails",
28751
28841
  nextStep: "disability-details",
28752
28842
  WATER: "disability-details",
28753
28843
  hideInEmployee: true,
28754
28844
  texts: {
28755
- headerCaption: "WS_COMMON_CONNECTION_DETAIL",
28756
- header: "WS_BANK_DETAILS",
28845
+ header: "WS_PROPERTY_ADDRESS_DETAILS",
28757
28846
  cardText: "",
28758
28847
  submitBarLabel: "CS_COMMON_NEXT"
28759
28848
  }
@@ -32758,7 +32847,7 @@ const checkForNA$1 = value => {
32758
32847
  return value ? value : "CS_NA";
32759
32848
  };
32760
32849
  const WSApplicationDetails = () => {
32761
- var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
32850
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
32762
32851
  const getDisconnectionNoticeSearch = function () {
32763
32852
  try {
32764
32853
  var _data$WaterConnection188, _data$WaterConnection189, _data$SewerageConnect182, _data$SewerageConnect183;
@@ -32876,7 +32965,6 @@ const WSApplicationDetails = () => {
32876
32965
  const useDetails = additionalDetails;
32877
32966
  const propertyAdditionalDetails = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.additionalDetails) || {};
32878
32967
  const djbEmployee = additionalDetails;
32879
- const bankDetails = additionalDetails;
32880
32968
  const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : (_PTData$Properties2$ = _PTData$Properties2[0]) === null || _PTData$Properties2$ === void 0 ? void 0 : _PTData$Properties2$.address) || additionalDetails;
32881
32969
  const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
32882
32970
  privacy: {
@@ -33506,27 +33594,6 @@ const WSApplicationDetails = () => {
33506
33594
  },
33507
33595
  onClick: () => getFiles([djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document], tenantId)
33508
33596
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
33509
- }))), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
33510
- styles: {
33511
- fontSize: "28px"
33512
- }
33513
- }, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
33514
- style: {
33515
- marginTop: "10px",
33516
- marginBottom: "30px"
33517
- }
33518
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33519
- label: t("WS_NAME_OF_BANK"),
33520
- text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`
33521
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33522
- label: t("WS_NAME_OF_BRANCH"),
33523
- text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
33524
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33525
- label: t("WS_IFSC_CODE"),
33526
- text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
33527
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33528
- label: t("WS_BANK_ACCOUNT_NO"),
33529
- text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
33530
33597
  }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
33531
33598
  styles: {
33532
33599
  fontSize: "28px"
@@ -33579,16 +33646,22 @@ const WSApplicationDetails = () => {
33579
33646
  marginBottom: "20px"
33580
33647
  }
33581
33648
  }) : null)));
33582
- })), (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
33583
- to: {
33584
- pathname: `/digit-ui/citizen/payment/my-bills/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService}/${stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+")}`,
33585
- search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155.connectionHolders) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150.connectionHolders) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
33586
- state: {
33587
- fromApplicationDetails: true
33588
- }
33649
+ })), (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
33650
+ style: {
33651
+ marginTop: "10px"
33589
33652
  }
33590
33653
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
33591
- label: t("MAKE_PAYMENT")
33654
+ label: t("MAKE_PAYMENT"),
33655
+ onSubmit: () => {
33656
+ var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
33657
+ history.push({
33658
+ pathname: `/digit-ui/citizen/payment/my-bills/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService}/${stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+")}`,
33659
+ search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155.connectionHolders) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150.connectionHolders) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
33660
+ state: {
33661
+ fromApplicationDetails: true
33662
+ }
33663
+ });
33664
+ }
33592
33665
  })) : null, !(data !== null && data !== void 0 && (_data$WaterConnection157 = data.WaterConnection) !== null && _data$WaterConnection157 !== void 0 && (_data$WaterConnection158 = _data$WaterConnection157[0]) !== null && _data$WaterConnection158 !== void 0 && _data$WaterConnection158.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection159 = data.WaterConnection) !== null && _data$WaterConnection159 !== void 0 && (_data$WaterConnection160 = _data$WaterConnection159[0]) !== null && _data$WaterConnection160 !== void 0 && _data$WaterConnection160.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect152 = data.SewerageConnections) !== null && _data$SewerageConnect152 !== void 0 && (_data$SewerageConnect153 = _data$SewerageConnect152[0]) !== null && _data$SewerageConnect153 !== void 0 && _data$SewerageConnect153.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect154 = data.SewerageConnections) !== null && _data$SewerageConnect154 !== void 0 && (_data$SewerageConnect155 = _data$SewerageConnect154[0]) !== null && _data$SewerageConnect155 !== void 0 && _data$SewerageConnect155.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
33593
33666
  to: {
33594
33667
  pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : (_data$WaterConnection162 = _data$WaterConnection161[0]) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.tenantId)}`,
@@ -34028,7 +34101,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
34028
34101
  };
34029
34102
 
34030
34103
  const ConnectionDetails$5 = () => {
34031
- var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Water2, _connectionData$Sewer, _connectionData$Sewer2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state42, _state43, _state44, _state44$connectionHo, _state44$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state45, _state45$additionalDe, _state46, _state46$additionalDe, _state47, _state47$additionalDe, _state48, _state48$additionalDe, _state49, _state49$additionalDe, _state50, _state51, _state54, _state55, _state56, _state57, _state58, _state59, _paymentDetails$data17, _paymentDetails$data18;
34104
+ var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Water2, _connectionData$Sewer, _connectionData$Sewer2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state42, _state43, _state44, _state44$connectionHo, _state44$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state45, _state46, _state49, _state50, _state51, _state52, _state53, _state54, _paymentDetails$data17, _paymentDetails$data18;
34032
34105
  const {
34033
34106
  t
34034
34107
  } = reactI18next.useTranslation();
@@ -34691,39 +34764,15 @@ const ConnectionDetails$5 = () => {
34691
34764
  isArray: false
34692
34765
  }
34693
34766
  }
34694
- }))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
34695
- styles: {
34696
- fontSize: "28px"
34697
- }
34698
- }, t("WS_COMMON_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34699
- className: "border-none",
34700
- label: t("WS_BANK_NAME"),
34701
- text: ((_state45 = state) === null || _state45 === void 0 ? void 0 : (_state45$additionalDe = _state45.additionalDetails) === null || _state45$additionalDe === void 0 ? void 0 : _state45$additionalDe.bankName) || "NA"
34702
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34703
- className: "border-none",
34704
- label: t("WS_BANK_BRANCH_NAME"),
34705
- text: ((_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$additionalDe = _state46.additionalDetails) === null || _state46$additionalDe === void 0 ? void 0 : _state46$additionalDe.bankBranchName) || "NA"
34706
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34707
- className: "border-none",
34708
- label: t("WS_BANK_ACCOUNT_NUMBER"),
34709
- text: ((_state47 = state) === null || _state47 === void 0 ? void 0 : (_state47$additionalDe = _state47.additionalDetails) === null || _state47$additionalDe === void 0 ? void 0 : _state47$additionalDe.accountNumber) || ((_state48 = state) === null || _state48 === void 0 ? void 0 : (_state48$additionalDe = _state48.additionalDetails) === null || _state48$additionalDe === void 0 ? void 0 : _state48$additionalDe.bankAccountNumber) || "NA"
34710
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34711
- className: "border-none",
34712
- label: t("WS_BANK_IFSC_CODE"),
34713
- text: ((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : _state49$additionalDe.ifscCode) || "NA"
34714
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
34715
- styles: {
34716
- fontSize: "28px"
34717
- }
34718
- }, t("WS_COMMON_BANK_DETAILS")), ((_state50 = state) === null || _state50 === void 0 ? void 0 : _state50.documents) && ((_state51 = state) === null || _state51 === void 0 ? void 0 : _state51.documents.map((doc, index) => {
34719
- var _doc$documentType, _state52, _state53;
34767
+ }))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), ((_state45 = state) === null || _state45 === void 0 ? void 0 : _state45.documents) && ((_state46 = state) === null || _state46 === void 0 ? void 0 : _state46.documents.map((doc, index) => {
34768
+ var _doc$documentType, _state47, _state48;
34720
34769
  return /*#__PURE__*/React__default.createElement("div", {
34721
34770
  key: `doc-${index}`
34722
34771
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
34723
- value: (_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.documents,
34772
+ value: (_state47 = state) === null || _state47 === void 0 ? void 0 : _state47.documents,
34724
34773
  Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
34725
34774
  index: index
34726
- }), ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
34775
+ }), ((_state48 = state) === null || _state48 === void 0 ? void 0 : _state48.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
34727
34776
  style: {
34728
34777
  color: "#cccccc",
34729
34778
  backgroundColor: "#cccccc",
@@ -34732,7 +34781,7 @@ const ConnectionDetails$5 = () => {
34732
34781
  marginBottom: "20px"
34733
34782
  }
34734
34783
  }) : null)));
34735
- })), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React__default.createElement("div", {
34784
+ })), (((_state49 = state) === null || _state49 === void 0 ? void 0 : _state49.status) !== "inactive" || ((_state50 = state) === null || _state50 === void 0 ? void 0 : _state50.applicationStatus) !== "Inactive" || ((_state51 = state) === null || _state51 === void 0 ? void 0 : _state51.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React__default.createElement("div", {
34736
34785
  style: {
34737
34786
  display: "flex",
34738
34787
  justifyContent: "flex-end",
@@ -34742,7 +34791,7 @@ const ConnectionDetails$5 = () => {
34742
34791
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
34743
34792
  label: t("WS_DISCONNECTION_BUTTON"),
34744
34793
  onSubmit: onActionSelect
34745
- })) : ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.status) == "Inactive" && ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.isDisconnectionTemporary) && /*#__PURE__*/React__default.createElement("div", {
34794
+ })) : ((_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.status) == "Inactive" && ((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.isDisconnectionTemporary) && /*#__PURE__*/React__default.createElement("div", {
34746
34795
  style: {
34747
34796
  display: "flex",
34748
34797
  justifyContent: "flex-end",
@@ -34765,8 +34814,8 @@ const ConnectionDetails$5 = () => {
34765
34814
  actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
34766
34815
  hideSubmit: true,
34767
34816
  actionSingleSubmit: () => {
34768
- var _state60, _state61;
34769
- history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state60 = state) === null || _state60 === void 0 ? void 0 : _state60.connectionNo)}/${tenantId}?consumerCode=${(_state61 = state) === null || _state61 === void 0 ? void 0 : _state61.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
34817
+ var _state55, _state56;
34818
+ history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.connectionNo)}/${tenantId}?consumerCode=${(_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
34770
34819
  setshowModal(false);
34771
34820
  },
34772
34821
  popupStyles: mobileView ? {
@@ -36205,7 +36254,6 @@ const CheckPage = _ref => {
36205
36254
  const useDetails = (value === null || value === void 0 ? void 0 : (_value$waterConnectio = value.waterConnection) === null || _value$waterConnectio === void 0 ? void 0 : _value$waterConnectio.useDetails) || {};
36206
36255
  const djbEmployee = (value === null || value === void 0 ? void 0 : value.djbEmployee) || {};
36207
36256
  const disability = (value === null || value === void 0 ? void 0 : value.disability) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
36208
- const bankDetails = (value === null || value === void 0 ? void 0 : value.bankDetails) || {};
36209
36257
  const additionalDetails = {};
36210
36258
  const checkForNA = val => val ? val : "CS_NA";
36211
36259
  const onEdit = () => {};
@@ -36520,26 +36568,6 @@ const CheckPage = _ref => {
36520
36568
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
36521
36569
  label: t("WS_DIVYANGJAN"),
36522
36570
  text: `${disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
36523
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
36524
- style: {
36525
- marginTop: "10px",
36526
- marginBottom: "30px"
36527
- }
36528
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
36529
- label: t("WS_NAME_OF_BANK"),
36530
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
36531
- actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
36532
- onClick: onEdit
36533
- })
36534
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
36535
- label: t("WS_NAME_OF_BRANCH"),
36536
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
36537
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
36538
- label: t("WS_IFSC_CODE"),
36539
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
36540
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
36541
- label: t("WS_BANK_ACCOUNT_NO"),
36542
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
36543
36571
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
36544
36572
  style: {
36545
36573
  paddingRight: "16px"
@@ -38140,6 +38168,7 @@ const WSInfoPage = () => {
38140
38168
  i18nKey: "TL_COMMON_NO"
38141
38169
  }];
38142
38170
  const proceedToNext = () => {
38171
+ sessionStorage.removeItem("Digit.PT_CREATE_EMP_WS_NEW_FORM");
38143
38172
  const isEmployee = window.location.href.includes("/employee");
38144
38173
  const baseUrl = isEmployee ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
38145
38174
  if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
@@ -38639,19 +38668,7 @@ const WSInfoPage = () => {
38639
38668
  marginBottom: "24px",
38640
38669
  lineHeight: "2"
38641
38670
  }
38642
- }, /*#__PURE__*/React__default.createElement("li", null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_EMPLOYEE_DESIGNATION"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
38643
- style: {
38644
- marginTop: "0",
38645
- marginBottom: "0"
38646
- }
38647
- }, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement("ul", {
38648
- style: {
38649
- listStyleType: "disc",
38650
- marginLeft: "20px",
38651
- marginBottom: "24px",
38652
- lineHeight: "2"
38653
- }
38654
- }, /*#__PURE__*/React__default.createElement("li", null, t("WS_NAME_OF_BANK")), /*#__PURE__*/React__default.createElement("li", null, t("WS_NAME_OF_BRANCH")), /*#__PURE__*/React__default.createElement("li", null, t("WS_IFSC_CODE")), /*#__PURE__*/React__default.createElement("li", null, t("WS_BANK_ACCOUNT_NO"))), /*#__PURE__*/React__default.createElement("div", {
38671
+ }, /*#__PURE__*/React__default.createElement("li", null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_EMPLOYEE_DESIGNATION"))), /*#__PURE__*/React__default.createElement("div", {
38655
38672
  style: {
38656
38673
  display: "flex",
38657
38674
  justifyContent: "space-between",
@@ -39705,8 +39722,6 @@ const EMAIL_PATTERN = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;
39705
39722
  const MOBILE_PATTERN = /^[6-9][0-9]{9}$/;
39706
39723
  const NUMBER_PATTERN$2 = /^\d+$/;
39707
39724
  const DECIMAL_PATTERN$2 = /^\d+(\.\d{1,2})?$/;
39708
- const IFSC_PATTERN = /^[A-Z]{4}0[A-Z0-9]{6}$/;
39709
- const ACCOUNT_PATTERN = /^[0-9]{9,18}$/;
39710
39725
  const COLLAPSIBLE_CONTENT_TAB = "__WS_SECTION_CONTENT__";
39711
39726
  const createOption = (code, name) => ({
39712
39727
  code,
@@ -40387,7 +40402,7 @@ const FileUploadField = _ref6 => {
40387
40402
  })))));
40388
40403
  };
40389
40404
  const NewApplication = () => {
40390
- var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
40405
+ var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
40391
40406
  const {
40392
40407
  t
40393
40408
  } = reactI18next.useTranslation();
@@ -40603,10 +40618,6 @@ const NewApplication = () => {
40603
40618
  sectionId: "useDetails",
40604
40619
  route: "use-details",
40605
40620
  actions: "Property & Connection Use Details"
40606
- }, {
40607
- sectionId: "bankDetails",
40608
- route: "bank-details",
40609
- actions: "Bank Details"
40610
40621
  }, {
40611
40622
  sectionId: "documents",
40612
40623
  route: "documents",
@@ -42206,64 +42217,6 @@ const NewApplication = () => {
42206
42217
  }),
42207
42218
  name: "useDetails.hospitalBeds"
42208
42219
  })) : null), /*#__PURE__*/React__default.createElement(SectionCard, {
42209
- description: "Refund or payment-linked bank account details.",
42210
- isOpen: collapsedSections.bank,
42211
- onToggle: toggleSection,
42212
- sectionKey: "bankDetails",
42213
- title: "Bank Details",
42214
- sectionRef: sectionRefs.bankDetails
42215
- }, /*#__PURE__*/React__default.createElement(FieldBlock, {
42216
- error: getFieldError("bankDetails.bankName"),
42217
- label: "Name of the Bank",
42218
- required: true
42219
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
42220
- errorStyle: !!getFieldError("bankDetails.bankName"),
42221
- inputRef: register({
42222
- required: "Bank Name is required."
42223
- }),
42224
- name: "bankDetails.bankName"
42225
- })), /*#__PURE__*/React__default.createElement(FieldBlock, {
42226
- error: getFieldError("bankDetails.branchName"),
42227
- label: "Name of the Branch",
42228
- required: true
42229
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
42230
- errorStyle: !!getFieldError("bankDetails.branchName"),
42231
- inputRef: register({
42232
- required: "Branch Name is required."
42233
- }),
42234
- name: "bankDetails.branchName"
42235
- })), /*#__PURE__*/React__default.createElement(FieldBlock, {
42236
- error: getFieldError("bankDetails.ifscCode"),
42237
- label: "IFSC Code",
42238
- required: true
42239
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
42240
- errorStyle: !!getFieldError("bankDetails.ifscCode"),
42241
- inputRef: register({
42242
- pattern: {
42243
- value: IFSC_PATTERN,
42244
- message: "Enter a valid IFSC code."
42245
- },
42246
- required: "IFSC Code is required."
42247
- }),
42248
- name: "bankDetails.ifscCode",
42249
- onChange: event => {
42250
- event.target.value = event.target.value.toUpperCase();
42251
- }
42252
- })), /*#__PURE__*/React__default.createElement(FieldBlock, {
42253
- error: getFieldError("bankDetails.bankAccountNumber"),
42254
- label: "Bank Account No.",
42255
- required: true
42256
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
42257
- errorStyle: !!getFieldError("bankDetails.bankAccountNumber"),
42258
- inputRef: register({
42259
- pattern: {
42260
- value: ACCOUNT_PATTERN,
42261
- message: "Enter a valid bank account number."
42262
- },
42263
- required: "Bank Account Number is required."
42264
- }),
42265
- name: "bankDetails.bankAccountNumber"
42266
- }))), /*#__PURE__*/React__default.createElement(SectionCard, {
42267
42220
  description: "Documents to be attached. Maximum allowed file size is 5 MB.",
42268
42221
  isOpen: collapsedSections.documents,
42269
42222
  onToggle: toggleSection,
@@ -42782,25 +42735,6 @@ const NewApplication = () => {
42782
42735
  }), /*#__PURE__*/React__default.createElement(PreviewItem, {
42783
42736
  label: "Water Connection Usage Type",
42784
42737
  value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail11 = formValues.useDetails) === null || _formValues$useDetail11 === void 0 ? void 0 : _formValues$useDetail11.WaterConnectionUsageType
42785
- })), /*#__PURE__*/React__default.createElement(SectionCard, {
42786
- description: "Banking information as entered in the form.",
42787
- isOpen: collapsedSections.bank,
42788
- onToggle: toggleSection,
42789
- sectionKey: "bank",
42790
- title: "Bank Details",
42791
- onEditClick: () => handleSectionEdit("bankDetails")
42792
- }, /*#__PURE__*/React__default.createElement(PreviewItem, {
42793
- label: "Name of the Bank",
42794
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai = formValues.bankDetails) === null || _formValues$bankDetai === void 0 ? void 0 : _formValues$bankDetai.bankName
42795
- }), /*#__PURE__*/React__default.createElement(PreviewItem, {
42796
- label: "Name of the Branch",
42797
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai2 = formValues.bankDetails) === null || _formValues$bankDetai2 === void 0 ? void 0 : _formValues$bankDetai2.branchName
42798
- }), /*#__PURE__*/React__default.createElement(PreviewItem, {
42799
- label: "IFSC Code",
42800
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai3 = formValues.bankDetails) === null || _formValues$bankDetai3 === void 0 ? void 0 : _formValues$bankDetai3.ifscCode
42801
- }), /*#__PURE__*/React__default.createElement(PreviewItem, {
42802
- label: "Bank Account No.",
42803
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai4 = formValues.bankDetails) === null || _formValues$bankDetai4 === void 0 ? void 0 : _formValues$bankDetai4.bankAccountNumber
42804
42738
  })), /*#__PURE__*/React__default.createElement(SectionCard, {
42805
42739
  description: "Uploaded supporting documents.",
42806
42740
  isOpen: collapsedSections.documents,
@@ -54079,7 +54013,9 @@ const Step2_NewConsumerDetails = _ref => {
54079
54013
  control,
54080
54014
  name: "reasonForNameChange"
54081
54015
  });
54082
- const isOtherReason = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER" || selectedReason === "OTHER";
54016
+ const isDevolutionOrInheritance = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "DEVOLUTION_INHERITANCE" || selectedReason === "DEVOLUTION_INHERITANCE" || String((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) || "").toUpperCase().includes("DEVOLUTION") || String(selectedReason || "").toUpperCase().includes("DEVOLUTION");
54017
+ console.log("selectedReason in Step2:", selectedReason);
54018
+ console.log("isDevolutionOrInheritance:", isDevolutionOrInheritance);
54083
54019
  const genderOptions = [{
54084
54020
  code: "MALE",
54085
54021
  i18nKey: "Male"
@@ -54098,7 +54034,7 @@ const Step2_NewConsumerDetails = _ref => {
54098
54034
  i18nKey: "Devolution/Inheritance"
54099
54035
  }, {
54100
54036
  code: "OTHER",
54101
- i18nKey: "Other Reason(Gift Deed, Lease Agreement, etc)"
54037
+ i18nKey: "Other Reason(Registered Sale Deed/Convayed Deed/Transfer Deed, Registered GPA, Possession Letter/Allotment Letter)"
54102
54038
  }];
54103
54039
  const relationshipOptions = [{
54104
54040
  code: "BLOOD_RELATION",
@@ -54367,7 +54303,8 @@ const Step2_NewConsumerDetails = _ref => {
54367
54303
  ...p,
54368
54304
  reasonForNameChange: true
54369
54305
  }));
54370
- if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER" && val !== "OTHER") {
54306
+ const isDev = (val === null || val === void 0 ? void 0 : val.code) === "DEVOLUTION_INHERITANCE" || val === "DEVOLUTION_INHERITANCE" || String((val === null || val === void 0 ? void 0 : val.code) || "").toUpperCase().includes("DEVOLUTION") || String(val || "").toUpperCase().includes("DEVOLUTION");
54307
+ if (!isDev) {
54371
54308
  setValue("relationshipWithExistingConsumer", null);
54372
54309
  }
54373
54310
  },
@@ -54380,13 +54317,13 @@ const Step2_NewConsumerDetails = _ref => {
54380
54317
  }, errors === null || errors === void 0 ? void 0 : (_errors$reasonForName = errors.reasonForNameChange) === null || _errors$reasonForName === void 0 ? void 0 : _errors$reasonForName.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
54381
54318
  style: {
54382
54319
  fontWeight: "bold",
54383
- color: isOtherReason ? "inherit" : "#999"
54320
+ color: isDevolutionOrInheritance ? "inherit" : "#999"
54384
54321
  }
54385
- }, "Relationship with Existing Consumer ", isOtherReason && mandatoryIndicator), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
54322
+ }, "Relationship with Existing Consumer ", isDevolutionOrInheritance && mandatoryIndicator), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
54386
54323
  control: control,
54387
54324
  name: "relationshipWithExistingConsumer",
54388
54325
  rules: {
54389
- required: isOtherReason ? "Relationship is required when 'Other Reason' is selected" : false
54326
+ required: isDevolutionOrInheritance ? "Relationship is required when 'Devolution/Inheritance' is selected" : false
54390
54327
  },
54391
54328
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
54392
54329
  selected: props.value,
@@ -54401,16 +54338,16 @@ const Step2_NewConsumerDetails = _ref => {
54401
54338
  optionKey: "i18nKey",
54402
54339
  t: t,
54403
54340
  placeholder: "Select relationship",
54404
- disable: !isOtherReason
54341
+ disable: !isDevolutionOrInheritance
54405
54342
  })
54406
- }), !isOtherReason && /*#__PURE__*/React__default.createElement("span", {
54343
+ }), !isDevolutionOrInheritance && /*#__PURE__*/React__default.createElement("span", {
54407
54344
  style: {
54408
54345
  fontSize: "11px",
54409
54346
  color: "#999",
54410
54347
  marginTop: "4px",
54411
54348
  display: "block"
54412
54349
  }
54413
- }, "Enabled only when \"Other Reason\" is selected above"), (errors === null || errors === void 0 ? void 0 : errors.relationshipWithExistingConsumer) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
54350
+ }, "Enabled only when \"Devolution/Inheritance\" is selected above"), (errors === null || errors === void 0 ? void 0 : errors.relationshipWithExistingConsumer) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
54414
54351
  style: errorStyle
54415
54352
  }, errors === null || errors === void 0 ? void 0 : (_errors$relationshipW = errors.relationshipWithExistingConsumer) === null || _errors$relationshipW === void 0 ? void 0 : _errors$relationshipW.message))), /*#__PURE__*/React__default.createElement("div", {
54416
54353
  style: {
@@ -54506,6 +54443,8 @@ const Step3_UploadDocuments = _ref => {
54506
54443
  const [hasAttemptedSubmit, setHasAttemptedSubmit] = React.useState(false);
54507
54444
  const [digiLockerUpload, setDigilockerUpload] = React.useState(false);
54508
54445
  const [isDocumentUidLocked, setIsDocumentUidLocked] = React.useState(false);
54446
+ const [showDocumentNumber, setShowDocumentNumber] = React.useState(false);
54447
+ const [isDeclarationChecked, setIsDeclarationChecked] = React.useState((defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.isDeclarationChecked) || false);
54509
54448
  const identityOptions = [{
54510
54449
  code: "AADHAAR",
54511
54450
  i18nKey: "Aadhaar Card"
@@ -54707,11 +54646,12 @@ const Step3_UploadDocuments = _ref => {
54707
54646
  if (!identityProofType) newErrors.identityType = "Please select a document type";
54708
54647
  if (!identityProofFile) newErrors.identityFile = "Please upload your identity proof document";
54709
54648
  if (!mutationDocFile) newErrors.mutationFile = "Please upload the reason-based supporting document";
54649
+ if (!isDeclarationChecked) newErrors.declaration = "You must accept the declaration before proceeding";
54710
54650
  const docError = validateDocumentNumber(documentNumber, identityProofType);
54711
54651
  if (docError) newErrors.documentNumber = docError;
54712
54652
  setFieldErrors(newErrors);
54713
54653
  }
54714
- }, [identityProofType, documentNumber, identityProofFile, mutationDocFile, hasAttemptedSubmit]);
54654
+ }, [identityProofType, documentNumber, identityProofFile, mutationDocFile, isDeclarationChecked, hasAttemptedSubmit]);
54715
54655
  const onProceed = () => {
54716
54656
  setHasAttemptedSubmit(true);
54717
54657
  const newErrors = {};
@@ -54720,6 +54660,7 @@ const Step3_UploadDocuments = _ref => {
54720
54660
  if (docError) newErrors.documentNumber = docError;
54721
54661
  if (!identityProofFile) newErrors.identityFile = "Please upload your identity proof document";
54722
54662
  if (!mutationDocFile) newErrors.mutationFile = "Please upload the reason-based supporting document";
54663
+ if (!isDeclarationChecked) newErrors.declaration = "You must accept the declaration before proceeding";
54723
54664
  setFieldErrors(newErrors);
54724
54665
  if (Object.keys(newErrors).length > 0) {
54725
54666
  const errorCount = Object.keys(newErrors).length;
@@ -54733,7 +54674,8 @@ const Step3_UploadDocuments = _ref => {
54733
54674
  identityProofType,
54734
54675
  documentNumber: documentNumber.trim(),
54735
54676
  identityProofDocumentId: identityProofFile,
54736
- saleDeedDocumentId: mutationDocFile
54677
+ saleDeedDocumentId: mutationDocFile,
54678
+ isDeclarationChecked
54737
54679
  });
54738
54680
  };
54739
54681
  const uploadBoxStyle = (hasError, hasFile) => ({
@@ -54824,7 +54766,7 @@ const Step3_UploadDocuments = _ref => {
54824
54766
  style: {
54825
54767
  fontWeight: "bold"
54826
54768
  }
54827
- }, "1. Address / Identity Proof ", mandatoryIndicator), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
54769
+ }, "1. Identity Proof ", mandatoryIndicator), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
54828
54770
  selected: identityProofType,
54829
54771
  option: identityOptions,
54830
54772
  select: val => {
@@ -54856,7 +54798,19 @@ const Step3_UploadDocuments = _ref => {
54856
54798
  fontWeight: "bold",
54857
54799
  marginTop: "8px"
54858
54800
  }
54859
- }, "Document Number ", mandatoryIndicator), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
54801
+ }, "Document Number ", mandatoryIndicator), /*#__PURE__*/React__default.createElement("div", {
54802
+ style: {
54803
+ display: "flex",
54804
+ alignItems: "flex-start",
54805
+ gap: "8px",
54806
+ marginBottom: "4px"
54807
+ }
54808
+ }, /*#__PURE__*/React__default.createElement("div", {
54809
+ style: {
54810
+ flex: 1
54811
+ }
54812
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
54813
+ type: showDocumentNumber ? "text" : "password",
54860
54814
  value: documentNumber,
54861
54815
  onChange: e => {
54862
54816
  if (!isDocumentUidLocked) {
@@ -54879,7 +54833,7 @@ const Step3_UploadDocuments = _ref => {
54879
54833
  placeholder: (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "AADHAAR" ? "Enter 12-digit Aadhaar number" : (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "PAN" ? "Enter PAN (e.g. ABCDE1234F)" : "Enter Document Number",
54880
54834
  disabled: isDocumentUidLocked,
54881
54835
  style: {
54882
- marginBottom: "4px",
54836
+ marginBottom: "0",
54883
54837
  ...(fieldErrors.documentNumber ? {
54884
54838
  border: "1px solid #d32f2f"
54885
54839
  } : {}),
@@ -54889,7 +54843,23 @@ const Step3_UploadDocuments = _ref => {
54889
54843
  color: "#555"
54890
54844
  } : {})
54891
54845
  }
54892
- }), fieldErrors.documentNumber && /*#__PURE__*/React__default.createElement("div", {
54846
+ })), /*#__PURE__*/React__default.createElement("button", {
54847
+ type: "button",
54848
+ onClick: () => setShowDocumentNumber(!showDocumentNumber),
54849
+ style: {
54850
+ padding: "8px 16px",
54851
+ backgroundColor: "#f4f9fc",
54852
+ border: "1px solid #ccc",
54853
+ borderRadius: "4px",
54854
+ cursor: "pointer",
54855
+ fontWeight: "500",
54856
+ fontSize: "14px",
54857
+ height: "40px",
54858
+ display: "flex",
54859
+ alignItems: "center",
54860
+ justifyContent: "center"
54861
+ }
54862
+ }, showDocumentNumber ? "Hide" : "View")), fieldErrors.documentNumber && /*#__PURE__*/React__default.createElement("div", {
54893
54863
  style: errorTextStyle
54894
54864
  }, fieldErrors.documentNumber), (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "AADHAAR" && !fieldErrors.documentNumber && /*#__PURE__*/React__default.createElement("span", {
54895
54865
  style: {
@@ -55065,6 +55035,37 @@ const Step3_UploadDocuments = _ref => {
55065
55035
  marginRight: "4px"
55066
55036
  }
55067
55037
  }), " View ", mutationFileName)))), /*#__PURE__*/React__default.createElement("div", {
55038
+ style: {
55039
+ marginTop: "24px",
55040
+ padding: "16px",
55041
+ backgroundColor: fieldErrors.declaration ? "#fef2f2" : "#f8f9fa",
55042
+ borderRadius: "8px",
55043
+ border: fieldErrors.declaration ? "1px solid #d32f2f" : "1px solid #e9ecef"
55044
+ }
55045
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
55046
+ label: "I declare that the documents uploaded by me are genuine, valid, and accurate to the best of my knowledge.",
55047
+ onChange: e => {
55048
+ setIsDeclarationChecked(e.target.checked);
55049
+ if (e.target.checked) {
55050
+ setFieldErrors(prev => ({
55051
+ ...prev,
55052
+ declaration: null
55053
+ }));
55054
+ }
55055
+ },
55056
+ checked: isDeclarationChecked,
55057
+ style: isMobileView ? {
55058
+ fontSize: "12px",
55059
+ alignItems: "flex-start"
55060
+ } : {
55061
+ alignItems: "center"
55062
+ }
55063
+ }), fieldErrors.declaration && /*#__PURE__*/React__default.createElement("div", {
55064
+ style: {
55065
+ ...errorTextStyle,
55066
+ marginLeft: "28px"
55067
+ }
55068
+ }, fieldErrors.declaration)), /*#__PURE__*/React__default.createElement("div", {
55068
55069
  style: {
55069
55070
  display: "flex",
55070
55071
  flexDirection: isMobileView ? "column" : "row",
@@ -55144,7 +55145,8 @@ const Step4_Preview = _ref => {
55144
55145
  resolvedServiceType,
55145
55146
  onBack,
55146
55147
  onSubmit,
55147
- isLoading
55148
+ isLoading,
55149
+ isEditFlow
55148
55150
  } = _ref;
55149
55151
  const [agreed, setAgreed] = React.useState(false);
55150
55152
  const [fee, setFee] = React.useState(0);
@@ -55326,7 +55328,7 @@ const Step4_Preview = _ref => {
55326
55328
  gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(150px, 1fr))",
55327
55329
  gap: isMobileView ? "12px" : "16px"
55328
55330
  }
55329
- }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), /*#__PURE__*/React__default.createElement("div", {
55331
+ }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), !isEditFlow && /*#__PURE__*/React__default.createElement("div", {
55330
55332
  style: {
55331
55333
  ...sectionStyle,
55332
55334
  borderLeft: "4px solid #f29c1f"
@@ -56378,7 +56380,8 @@ const MutationApplication = () => {
56378
56380
  resolvedServiceType: resolvedServiceType,
56379
56381
  onBack: () => history.push(`${path}/document`),
56380
56382
  onSubmit: submitApplication,
56381
- isLoading: isSubmitting
56383
+ isLoading: isSubmitting,
56384
+ isEditFlow: isEditFlow
56382
56385
  })), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
56383
56386
  path: `${path}/submission`
56384
56387
  }, /*#__PURE__*/React__default.createElement(Step5_Submission, {
@@ -58255,7 +58258,7 @@ const openFilePDF = fileId => {
58255
58258
  }).catch(error => console.error("Error fetching file:", error));
58256
58259
  };
58257
58260
  const CheckPage$4 = _ref2 => {
58258
- var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
58261
+ var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
58259
58262
  let {
58260
58263
  data,
58261
58264
  onSubmit,
@@ -58330,7 +58333,6 @@ const CheckPage$4 = _ref2 => {
58330
58333
  holderDetails = holderDetails[0] || {};
58331
58334
  }
58332
58335
  const useDetails = (data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : _data$useDetails.useDetails) || (data === null || data === void 0 ? void 0 : data.useDetails) || {};
58333
- const bankDetails = (data === null || data === void 0 ? void 0 : (_data$bankDetails = data.bankDetails) === null || _data$bankDetails === void 0 ? void 0 : _data$bankDetails.bankDetails) || (data === null || data === void 0 ? void 0 : data.bankDetails) || {};
58334
58336
  const documents = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents) || (data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.documents) || [];
58335
58337
  const declaration = (data === null || data === void 0 ? void 0 : data.declarationData) || (data === null || data === void 0 ? void 0 : data.declaration) || {};
58336
58338
  const djbEmployee = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : _data$djbEmployee.djbEmployee) || (data === null || data === void 0 ? void 0 : data.djbEmployee) || {};
@@ -58570,26 +58572,6 @@ const CheckPage$4 = _ref2 => {
58570
58572
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58571
58573
  label: "Divyangjan/Person with Disability?",
58572
58574
  text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
58573
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
58574
- style: {
58575
- marginTop: "10px",
58576
- marginBottom: "30px"
58577
- }
58578
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58579
- label: t("WS_NAME_OF_BANK"),
58580
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
58581
- actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
58582
- onClick: onEdit
58583
- })
58584
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58585
- label: t("WS_NAME_OF_BRANCH"),
58586
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
58587
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58588
- label: t("WS_IFSC_CODE"),
58589
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
58590
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58591
- label: t("WS_BANK_ACCOUNT_NO"),
58592
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
58593
58575
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DOCUMENTS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
58594
58576
  style: {
58595
58577
  marginTop: "10px",
@@ -58734,8 +58716,6 @@ const OLDApplication = () => {
58734
58716
  label: "WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS"
58735
58717
  }, {
58736
58718
  label: "WS_DJB_EMPLOYEE"
58737
- }, {
58738
- label: "WS_BANK_DETAILS"
58739
58719
  }, {
58740
58720
  label: "WS_DOCUMENTS"
58741
58721
  }, {
@@ -58780,7 +58760,7 @@ const OLDApplication = () => {
58780
58760
  if (requestedPropertyId !== initialPropertyId.current || requestedPropertyId && requestedPropertyId !== verifiedPropertyId.current) {
58781
58761
  clearSessionFormData();
58782
58762
  sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
58783
- history.replace("/digit-ui/employee/ws/info");
58763
+ history.replace(window.location.href.includes("/employee") ? "/digit-ui/employee/ws/info" : "/digit-ui/citizen/ws/info");
58784
58764
  }
58785
58765
  }, [clearSessionFormData, history, requestedPropertyId]);
58786
58766
  React.useEffect(() => {
@@ -58792,7 +58772,7 @@ const OLDApplication = () => {
58792
58772
  if (config) {
58793
58773
  var _config$body;
58794
58774
  const allCreateSections = (config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
58795
- const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", ...(isCitizen ? [] : ["WSDjbEmployee"]), "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
58775
+ const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", ...(isCitizen ? [] : ["WSDjbEmployee"]), "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee", "WSDeclaration"];
58796
58776
  const reorderedBody = [];
58797
58777
  desiredComponentOrder.forEach(compName => {
58798
58778
  const section = allCreateSections.find(s => {
@@ -58828,16 +58808,6 @@ const OLDApplication = () => {
58828
58808
  isAutomaticFill: true
58829
58809
  }]
58830
58810
  });
58831
- } else if (compName === "WSBankDetails") {
58832
- reorderedBody.push({
58833
- isCreateConnection: true,
58834
- body: [{
58835
- type: "component",
58836
- key: "bankDetails",
58837
- component: "WSBankDetails",
58838
- withoutLabel: true
58839
- }]
58840
- });
58841
58811
  } else if (compName === "WSDeclaration") {
58842
58812
  reorderedBody.push({
58843
58813
  isCreateConnection: true,