@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.
@@ -547,6 +547,16 @@ const createPayloadOfWS = function (data) {
547
547
  status: "ACTIVE"
548
548
  });
549
549
  }
550
+ if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
551
+ var _connectionDetail$org;
552
+ let documentType = "OWNER.ORGANIZATION_DOCUMENT";
553
+ allDocuments.push({
554
+ documentType: documentType,
555
+ 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),
556
+ documentUid: "",
557
+ status: "ACTIVE"
558
+ });
559
+ }
550
560
  let payload = {
551
561
  water: !!isWater,
552
562
  sewerage: !!isSewerage,
@@ -719,6 +729,18 @@ const getAllDocumentsForUpdate = data => {
719
729
  status: "ACTIVE"
720
730
  });
721
731
  }
732
+ 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") : [];
733
+ const connectionDetail = (connectionDetailsArray === null || connectionDetailsArray === void 0 ? void 0 : connectionDetailsArray[0]) || (data === null || data === void 0 ? void 0 : data.ConnectionDetails) || {};
734
+ if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
735
+ var _connectionDetail$org2;
736
+ let documentType = "OWNER.ORGANIZATION_DOCUMENT";
737
+ allDocuments.push({
738
+ documentType: documentType,
739
+ 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),
740
+ documentUid: "",
741
+ status: "ACTIVE"
742
+ });
743
+ }
722
744
  return allDocuments;
723
745
  };
724
746
  const convertToWSUpdate = data => {
@@ -7869,7 +7891,7 @@ var lodash = createCommonjsModule(function (module, exports) {
7869
7891
  });
7870
7892
 
7871
7893
  const WSApplication = _ref => {
7872
- 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;
7894
+ 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;
7873
7895
  let {
7874
7896
  application
7875
7897
  } = _ref;
@@ -7967,19 +7989,21 @@ const WSApplication = _ref => {
7967
7989
  to: `/digit-ui/citizen/ws/connection/application/${encodeApplicationNo}`
7968
7990
  }, /*#__PURE__*/React.createElement(SubmitBar, {
7969
7991
  label: t("WS_VIEW_DETAILS_LABEL")
7970
- })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
7971
- to: {
7972
- 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, "/", "+")}`,
7973
- 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}`,
7974
- state: {}
7975
- }
7976
- }, /*#__PURE__*/React.createElement("div", {
7992
+ })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
7977
7993
  style: {
7978
7994
  marginTop: "10px"
7979
7995
  }
7980
7996
  }, /*#__PURE__*/React.createElement(SubmitBar, {
7981
- label: t("MAKE_PAYMENT")
7982
- }))) : null);
7997
+ label: t("MAKE_PAYMENT"),
7998
+ onSubmit: () => {
7999
+ var _application$applicat7, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat8, _application$applicat9;
8000
+ history.push({
8001
+ 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, "/", "+")}`,
8002
+ 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}`,
8003
+ state: {}
8004
+ });
8005
+ }
8006
+ })) : null);
7983
8007
  };
7984
8008
 
7985
8009
  const EyeSvgINdex = _ref => {
@@ -8875,7 +8899,7 @@ const getWSAcknowledgementData$1 = function (newApplication, property, tenantInf
8875
8899
  };
8876
8900
 
8877
8901
  const WSResponse = props => {
8878
- 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;
8902
+ var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2, _waterApplicationData8, _sewerageApplicationD8;
8879
8903
  const {
8880
8904
  t
8881
8905
  } = useTranslation();
@@ -9048,30 +9072,66 @@ const WSResponse = props => {
9048
9072
  }, /*#__PURE__*/React.createElement("path", {
9049
9073
  d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
9050
9074
  fill: "#a82227"
9051
- })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.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.createElement(Link, {
9052
- to: {
9053
- 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}`,
9054
- state: {}
9055
- }
9056
- }, /*#__PURE__*/React.createElement("div", {
9075
+ })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.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.createElement("div", {
9057
9076
  style: {
9058
9077
  marginTop: "10px"
9059
9078
  }
9060
9079
  }, /*#__PURE__*/React.createElement(SubmitBar, {
9061
- label: t("MAKE_PAYMENT")
9062
- }))) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
9063
- to: {
9064
- 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}`,
9065
- state: {}
9080
+ label: t("MAKE_PAYMENT"),
9081
+ onSubmit: () => {
9082
+ var _waterApplicationData9, _waterApplicationData0, _waterApplicationData1, _waterApplicationData10, _waterApplicationData11, _waterApplicationData12, _waterApplicationData13, _waterApplicationData14, _waterApplicationData15, _waterApplicationData16, _waterApplicationData17, _waterApplicationData18, _waterApplicationData19;
9083
+ let isEmployee = window.location.href.includes("/employee");
9084
+ 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";
9085
+ 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;
9086
+ let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9087
+ let tenantId = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId;
9088
+ 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(","));
9089
+ 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;
9090
+ if (isEmployee) {
9091
+ history.push({
9092
+ pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
9093
+ search: `?tenantId=${tenantId}&consumerCode=${consumerCodeOriginal}&ISWSAPP&applicationNumber=${consumerCodeOriginal}`,
9094
+ state: {}
9095
+ });
9096
+ } else {
9097
+ history.push({
9098
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${consumerCode}`,
9099
+ search: `?workflow=WNS&tenantId=${tenantId}&ConsumerName=${consumerName}&isDisoconnectFlow=${isDisconnectFlow}&consumerCode=${consumerCodeOriginal}`,
9100
+ state: {}
9101
+ });
9102
+ }
9066
9103
  }
9067
- }, /*#__PURE__*/React.createElement("div", {
9104
+ })) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
9068
9105
  style: {
9069
9106
  marginTop: "10px",
9070
9107
  marginLeft: "10px"
9071
9108
  }
9072
9109
  }, /*#__PURE__*/React.createElement(SubmitBar, {
9073
- label: t("MAKE_PAYMENT")
9074
- }))) : null), /*#__PURE__*/React.createElement(ActionBar, {
9110
+ label: t("MAKE_PAYMENT"),
9111
+ onSubmit: () => {
9112
+ var _sewerageApplicationD9, _sewerageApplicationD0, _sewerageApplicationD1, _sewerageApplicationD10, _sewerageApplicationD11, _sewerageApplicationD12, _sewerageApplicationD13, _sewerageApplicationD14, _sewerageApplicationD15, _sewerageApplicationD16, _sewerageApplicationD17, _sewerageApplicationD18, _sewerageApplicationD19;
9113
+ let isEmployee = window.location.href.includes("/employee");
9114
+ 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";
9115
+ 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;
9116
+ let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9117
+ let tenantId = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId;
9118
+ 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(","));
9119
+ 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;
9120
+ if (isEmployee) {
9121
+ history.push({
9122
+ pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
9123
+ search: `?tenantId=${tenantId}&consumerCode=${consumerCodeOriginal}&ISWSAPP&applicationNumber=${consumerCodeOriginal}`,
9124
+ state: {}
9125
+ });
9126
+ } else {
9127
+ history.push({
9128
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${consumerCode}`,
9129
+ search: `?workflow=WNS&tenantId=${tenantId}&ConsumerName=${consumerName}&isDisoconnectFlow=${isDisconnectFlow}&consumerCode=${consumerCodeOriginal}`,
9130
+ state: {}
9131
+ });
9132
+ }
9133
+ }
9134
+ })) : null), /*#__PURE__*/React.createElement(ActionBar, {
9075
9135
  style: {
9076
9136
  display: "flex",
9077
9137
  justifyContent: "flex-end",
@@ -9434,6 +9494,7 @@ const Response = () => {
9434
9494
  const {
9435
9495
  state
9436
9496
  } = useLocation();
9497
+ const history = useHistory();
9437
9498
  const {
9438
9499
  t
9439
9500
  } = useTranslation();
@@ -9503,14 +9564,13 @@ const Response = () => {
9503
9564
  justifyContent: "flex-end",
9504
9565
  alignItems: "baseline"
9505
9566
  }
9506
- }, /*#__PURE__*/React.createElement(Link, {
9507
- to: `/digit-ui/employee`,
9567
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
9568
+ label: t("CORE_COMMON_GO_TO_HOME"),
9569
+ onSubmit: () => history.push(`/digit-ui/employee`),
9508
9570
  style: {
9509
9571
  marginRight: "1rem"
9510
9572
  }
9511
- }, /*#__PURE__*/React.createElement(SubmitBar, {
9512
- label: t("CORE_COMMON_GO_TO_HOME")
9513
- })))));
9573
+ }))));
9514
9574
  };
9515
9575
 
9516
9576
  const ResponseBillAmend = () => {
@@ -9518,6 +9578,7 @@ const ResponseBillAmend = () => {
9518
9578
  const {
9519
9579
  state
9520
9580
  } = useLocation();
9581
+ const history = useHistory();
9521
9582
  const {
9522
9583
  t
9523
9584
  } = useTranslation();
@@ -9532,14 +9593,13 @@ const ResponseBillAmend = () => {
9532
9593
  justifyContent: "flex-end",
9533
9594
  alignItems: "baseline"
9534
9595
  }
9535
- }, /*#__PURE__*/React.createElement(Link, {
9536
- to: `/digit-ui/employee`,
9596
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
9597
+ label: t("CORE_COMMON_GO_TO_HOME"),
9598
+ onSubmit: () => history.push(`/digit-ui/employee`),
9537
9599
  style: {
9538
9600
  marginRight: "1rem"
9539
9601
  }
9540
- }, /*#__PURE__*/React.createElement(SubmitBar, {
9541
- label: t("CORE_COMMON_GO_TO_HOME")
9542
- })))));
9602
+ }))));
9543
9603
  };
9544
9604
 
9545
9605
  const getPropertyAddress$2 = property => {
@@ -10794,20 +10854,42 @@ const WSZROVerification = () => {
10794
10854
  t
10795
10855
  } = useTranslation();
10796
10856
  const tenantId = Digit.ULBService.getCurrentTenantId();
10857
+ const [connectionNo, setConnectionNo] = useState("");
10858
+ const [filters, setFilters] = useState({
10859
+ status: "PENDING",
10860
+ offset: 0,
10861
+ limit: 20
10862
+ });
10797
10863
  const {
10798
10864
  isLoading,
10799
10865
  data
10800
10866
  } = Digit.Hooks.ws.useWSZROVerification({
10801
10867
  tenantId,
10802
- filters: {
10803
- status: "PENDING",
10804
- offset: 0,
10805
- limit: 20
10806
- },
10868
+ filters,
10807
10869
  config: {
10808
10870
  select: res => (res === null || res === void 0 ? void 0 : res.cases) || []
10809
10871
  }
10810
10872
  });
10873
+ const onSubmit = e => {
10874
+ if (e) e.preventDefault();
10875
+ const newFilters = {
10876
+ status: "PENDING",
10877
+ offset: 0,
10878
+ limit: 20
10879
+ };
10880
+ if (connectionNo !== null && connectionNo !== void 0 && connectionNo.trim()) {
10881
+ newFilters.connectionNo = connectionNo.trim();
10882
+ }
10883
+ setFilters(newFilters);
10884
+ };
10885
+ const clearSearch = () => {
10886
+ setConnectionNo("");
10887
+ setFilters({
10888
+ status: "PENDING",
10889
+ offset: 0,
10890
+ limit: 20
10891
+ });
10892
+ };
10811
10893
  const columns = React.useMemo(() => [{
10812
10894
  Header: t("WS_CONNECTION_NO_LABEL"),
10813
10895
  accessor: "connectionNo",
@@ -10882,10 +10964,25 @@ const WSZROVerification = () => {
10882
10964
  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";
10883
10965
  }
10884
10966
  }], [t]);
10885
- if (isLoading) {
10886
- return /*#__PURE__*/React.createElement(Loader, null);
10887
- }
10888
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Table, {
10967
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(SearchForm, {
10968
+ onSubmit: onSubmit,
10969
+ handleSubmit: fn => fn,
10970
+ className: "formcomposer-section-grid"
10971
+ }, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_CONNECTION_NO_LABEL")), /*#__PURE__*/React.createElement(TextInput, {
10972
+ name: "connectionNo",
10973
+ value: connectionNo,
10974
+ onChange: e => setConnectionNo(e.target.value)
10975
+ })), /*#__PURE__*/React.createElement(SearchField, {
10976
+ className: "ws-submit"
10977
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
10978
+ label: t("ES_COMMON_SEARCH"),
10979
+ submit: true,
10980
+ className: "submit-bar generic-button"
10981
+ }), /*#__PURE__*/React.createElement("button", {
10982
+ type: "button",
10983
+ className: "clear-search generic-button",
10984
+ onClick: clearSearch
10985
+ }, t("ES_COMMON_CLEAR_SEARCH"))))), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
10889
10986
  t: t,
10890
10987
  data: data || [],
10891
10988
  totalRecords: (data === null || data === void 0 ? void 0 : data.length) || 0,
@@ -11588,7 +11685,12 @@ const BILLSBreadCrumbs = _ref => {
11588
11685
  }, {
11589
11686
  path: "/digit-ui/employee/ws/zro-application",
11590
11687
  label: t("WS_ZRO_VERIFICATION"),
11591
- show: location.pathname.includes("/ws/zro-application") ? true : false
11688
+ show: location.pathname.includes("/ws/zro-application") || location.pathname.includes("/ws/zro-verification-details") ? true : false,
11689
+ isclickable: location.pathname.includes("/ws/zro-verification-details") ? true : false
11690
+ }, {
11691
+ path: "/digit-ui/employee/ws/zro-verification-details",
11692
+ label: t("WS_APPLICATION_DETAILS_HEADER"),
11693
+ show: location.pathname.includes("/ws/zro-verification-details") ? true : false
11592
11694
  }];
11593
11695
  let lastCrumbIndex = findLastIndex(crumbs, "show", true);
11594
11696
  crumbs[lastCrumbIndex] = {
@@ -28733,24 +28835,11 @@ const newConfig = [{
28733
28835
  route: "property-water-details",
28734
28836
  component: "WSPropertyWaterConnection",
28735
28837
  key: "waterConnection",
28736
- nextStep: "bank-details",
28737
- WATER: "bank-details",
28738
- hideInEmployee: true,
28739
- texts: {
28740
- header: "WS_PROPERTY_ADDRESS_DETAILS",
28741
- cardText: "",
28742
- submitBarLabel: "CS_COMMON_NEXT"
28743
- }
28744
- }, {
28745
- route: "bank-details",
28746
- component: "WSBankDetails",
28747
- key: "bankDetails",
28748
28838
  nextStep: "disability-details",
28749
28839
  WATER: "disability-details",
28750
28840
  hideInEmployee: true,
28751
28841
  texts: {
28752
- headerCaption: "WS_COMMON_CONNECTION_DETAIL",
28753
- header: "WS_BANK_DETAILS",
28842
+ header: "WS_PROPERTY_ADDRESS_DETAILS",
28754
28843
  cardText: "",
28755
28844
  submitBarLabel: "CS_COMMON_NEXT"
28756
28845
  }
@@ -32755,7 +32844,7 @@ const checkForNA$1 = value => {
32755
32844
  return value ? value : "CS_NA";
32756
32845
  };
32757
32846
  const WSApplicationDetails = () => {
32758
- 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;
32847
+ 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;
32759
32848
  const getDisconnectionNoticeSearch = function () {
32760
32849
  try {
32761
32850
  var _data$WaterConnection188, _data$WaterConnection189, _data$SewerageConnect182, _data$SewerageConnect183;
@@ -32873,7 +32962,6 @@ const WSApplicationDetails = () => {
32873
32962
  const useDetails = additionalDetails;
32874
32963
  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) || {};
32875
32964
  const djbEmployee = additionalDetails;
32876
- const bankDetails = additionalDetails;
32877
32965
  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;
32878
32966
  const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
32879
32967
  privacy: {
@@ -33503,27 +33591,6 @@ const WSApplicationDetails = () => {
33503
33591
  },
33504
33592
  onClick: () => getFiles([djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document], tenantId)
33505
33593
  }, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
33506
- }))), !isMutation && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
33507
- styles: {
33508
- fontSize: "28px"
33509
- }
33510
- }, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
33511
- style: {
33512
- marginTop: "10px",
33513
- marginBottom: "30px"
33514
- }
33515
- }, /*#__PURE__*/React.createElement(Row, {
33516
- label: t("WS_NAME_OF_BANK"),
33517
- text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`
33518
- }), /*#__PURE__*/React.createElement(Row, {
33519
- label: t("WS_NAME_OF_BRANCH"),
33520
- text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
33521
- }), /*#__PURE__*/React.createElement(Row, {
33522
- label: t("WS_IFSC_CODE"),
33523
- text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
33524
- }), /*#__PURE__*/React.createElement(Row, {
33525
- label: t("WS_BANK_ACCOUNT_NO"),
33526
- text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
33527
33594
  }))), /*#__PURE__*/React.createElement(CardHeader, {
33528
33595
  styles: {
33529
33596
  fontSize: "28px"
@@ -33576,16 +33643,22 @@ const WSApplicationDetails = () => {
33576
33643
  marginBottom: "20px"
33577
33644
  }
33578
33645
  }) : null)));
33579
- })), (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.createElement(Link, {
33580
- to: {
33581
- 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, "/", "+")}`,
33582
- 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}`,
33583
- state: {
33584
- fromApplicationDetails: true
33585
- }
33646
+ })), (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.createElement("div", {
33647
+ style: {
33648
+ marginTop: "10px"
33586
33649
  }
33587
33650
  }, /*#__PURE__*/React.createElement(SubmitBar, {
33588
- label: t("MAKE_PAYMENT")
33651
+ label: t("MAKE_PAYMENT"),
33652
+ onSubmit: () => {
33653
+ 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;
33654
+ history.push({
33655
+ 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, "/", "+")}`,
33656
+ 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}`,
33657
+ state: {
33658
+ fromApplicationDetails: true
33659
+ }
33660
+ });
33661
+ }
33589
33662
  })) : 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.createElement(Link, {
33590
33663
  to: {
33591
33664
  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)}`,
@@ -34025,7 +34098,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
34025
34098
  };
34026
34099
 
34027
34100
  const ConnectionDetails$5 = () => {
34028
- 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;
34101
+ 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;
34029
34102
  const {
34030
34103
  t
34031
34104
  } = useTranslation();
@@ -34688,39 +34761,15 @@ const ConnectionDetails$5 = () => {
34688
34761
  isArray: false
34689
34762
  }
34690
34763
  }
34691
- }))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), /*#__PURE__*/React.createElement(CardHeader, {
34692
- styles: {
34693
- fontSize: "28px"
34694
- }
34695
- }, t("WS_COMMON_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
34696
- className: "border-none",
34697
- label: t("WS_BANK_NAME"),
34698
- text: ((_state45 = state) === null || _state45 === void 0 ? void 0 : (_state45$additionalDe = _state45.additionalDetails) === null || _state45$additionalDe === void 0 ? void 0 : _state45$additionalDe.bankName) || "NA"
34699
- }), /*#__PURE__*/React.createElement(Row, {
34700
- className: "border-none",
34701
- label: t("WS_BANK_BRANCH_NAME"),
34702
- text: ((_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$additionalDe = _state46.additionalDetails) === null || _state46$additionalDe === void 0 ? void 0 : _state46$additionalDe.bankBranchName) || "NA"
34703
- }), /*#__PURE__*/React.createElement(Row, {
34704
- className: "border-none",
34705
- label: t("WS_BANK_ACCOUNT_NUMBER"),
34706
- 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"
34707
- }), /*#__PURE__*/React.createElement(Row, {
34708
- className: "border-none",
34709
- label: t("WS_BANK_IFSC_CODE"),
34710
- text: ((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : _state49$additionalDe.ifscCode) || "NA"
34711
- })), /*#__PURE__*/React.createElement(CardHeader, {
34712
- styles: {
34713
- fontSize: "28px"
34714
- }
34715
- }, 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) => {
34716
- var _doc$documentType, _state52, _state53;
34764
+ }))) : /*#__PURE__*/React.createElement(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) => {
34765
+ var _doc$documentType, _state47, _state48;
34717
34766
  return /*#__PURE__*/React.createElement("div", {
34718
34767
  key: `doc-${index}`
34719
34768
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(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.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
34720
- value: (_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.documents,
34769
+ value: (_state47 = state) === null || _state47 === void 0 ? void 0 : _state47.documents,
34721
34770
  Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
34722
34771
  index: index
34723
- }), ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
34772
+ }), ((_state48 = state) === null || _state48 === void 0 ? void 0 : _state48.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
34724
34773
  style: {
34725
34774
  color: "#cccccc",
34726
34775
  backgroundColor: "#cccccc",
@@ -34729,7 +34778,7 @@ const ConnectionDetails$5 = () => {
34729
34778
  marginBottom: "20px"
34730
34779
  }
34731
34780
  }) : null)));
34732
- })), (((_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.createElement("div", {
34781
+ })), (((_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.createElement("div", {
34733
34782
  style: {
34734
34783
  display: "flex",
34735
34784
  justifyContent: "flex-end",
@@ -34739,7 +34788,7 @@ const ConnectionDetails$5 = () => {
34739
34788
  }, /*#__PURE__*/React.createElement(SubmitBar, {
34740
34789
  label: t("WS_DISCONNECTION_BUTTON"),
34741
34790
  onSubmit: onActionSelect
34742
- })) : ((_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.createElement("div", {
34791
+ })) : ((_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.createElement("div", {
34743
34792
  style: {
34744
34793
  display: "flex",
34745
34794
  justifyContent: "flex-end",
@@ -34762,8 +34811,8 @@ const ConnectionDetails$5 = () => {
34762
34811
  actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
34763
34812
  hideSubmit: true,
34764
34813
  actionSingleSubmit: () => {
34765
- var _state60, _state61;
34766
- 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`);
34814
+ var _state55, _state56;
34815
+ 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`);
34767
34816
  setshowModal(false);
34768
34817
  },
34769
34818
  popupStyles: mobileView ? {
@@ -36202,7 +36251,6 @@ const CheckPage = _ref => {
36202
36251
  const useDetails = (value === null || value === void 0 ? void 0 : (_value$waterConnectio = value.waterConnection) === null || _value$waterConnectio === void 0 ? void 0 : _value$waterConnectio.useDetails) || {};
36203
36252
  const djbEmployee = (value === null || value === void 0 ? void 0 : value.djbEmployee) || {};
36204
36253
  const disability = (value === null || value === void 0 ? void 0 : value.disability) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
36205
- const bankDetails = (value === null || value === void 0 ? void 0 : value.bankDetails) || {};
36206
36254
  const additionalDetails = {};
36207
36255
  const checkForNA = val => val ? val : "CS_NA";
36208
36256
  const onEdit = () => {};
@@ -36517,26 +36565,6 @@ const CheckPage = _ref => {
36517
36565
  }, /*#__PURE__*/React.createElement(Row, {
36518
36566
  label: t("WS_DIVYANGJAN"),
36519
36567
  text: `${disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
36520
- })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
36521
- style: {
36522
- marginTop: "10px",
36523
- marginBottom: "30px"
36524
- }
36525
- }, /*#__PURE__*/React.createElement(Row, {
36526
- label: t("WS_NAME_OF_BANK"),
36527
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
36528
- actionButton: /*#__PURE__*/React.createElement(ActionButton, {
36529
- onClick: onEdit
36530
- })
36531
- }), /*#__PURE__*/React.createElement(Row, {
36532
- label: t("WS_NAME_OF_BRANCH"),
36533
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
36534
- }), /*#__PURE__*/React.createElement(Row, {
36535
- label: t("WS_IFSC_CODE"),
36536
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
36537
- }), /*#__PURE__*/React.createElement(Row, {
36538
- label: t("WS_BANK_ACCOUNT_NO"),
36539
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
36540
36568
  })), /*#__PURE__*/React.createElement(Card, {
36541
36569
  style: {
36542
36570
  paddingRight: "16px"
@@ -38137,6 +38165,7 @@ const WSInfoPage = () => {
38137
38165
  i18nKey: "TL_COMMON_NO"
38138
38166
  }];
38139
38167
  const proceedToNext = () => {
38168
+ sessionStorage.removeItem("Digit.PT_CREATE_EMP_WS_NEW_FORM");
38140
38169
  const isEmployee = window.location.href.includes("/employee");
38141
38170
  const baseUrl = isEmployee ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
38142
38171
  if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
@@ -38636,19 +38665,7 @@ const WSInfoPage = () => {
38636
38665
  marginBottom: "24px",
38637
38666
  lineHeight: "2"
38638
38667
  }
38639
- }, /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React.createElement("li", null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_DESIGNATION"))), /*#__PURE__*/React.createElement(CardSubHeader, {
38640
- style: {
38641
- marginTop: "0",
38642
- marginBottom: "0"
38643
- }
38644
- }, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement("ul", {
38645
- style: {
38646
- listStyleType: "disc",
38647
- marginLeft: "20px",
38648
- marginBottom: "24px",
38649
- lineHeight: "2"
38650
- }
38651
- }, /*#__PURE__*/React.createElement("li", null, t("WS_NAME_OF_BANK")), /*#__PURE__*/React.createElement("li", null, t("WS_NAME_OF_BRANCH")), /*#__PURE__*/React.createElement("li", null, t("WS_IFSC_CODE")), /*#__PURE__*/React.createElement("li", null, t("WS_BANK_ACCOUNT_NO"))), /*#__PURE__*/React.createElement("div", {
38668
+ }, /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React.createElement("li", null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_DESIGNATION"))), /*#__PURE__*/React.createElement("div", {
38652
38669
  style: {
38653
38670
  display: "flex",
38654
38671
  justifyContent: "space-between",
@@ -39702,8 +39719,6 @@ const EMAIL_PATTERN = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;
39702
39719
  const MOBILE_PATTERN = /^[6-9][0-9]{9}$/;
39703
39720
  const NUMBER_PATTERN$2 = /^\d+$/;
39704
39721
  const DECIMAL_PATTERN$2 = /^\d+(\.\d{1,2})?$/;
39705
- const IFSC_PATTERN = /^[A-Z]{4}0[A-Z0-9]{6}$/;
39706
- const ACCOUNT_PATTERN = /^[0-9]{9,18}$/;
39707
39722
  const COLLAPSIBLE_CONTENT_TAB = "__WS_SECTION_CONTENT__";
39708
39723
  const createOption = (code, name) => ({
39709
39724
  code,
@@ -40384,7 +40399,7 @@ const FileUploadField = _ref6 => {
40384
40399
  })))));
40385
40400
  };
40386
40401
  const NewApplication = () => {
40387
- 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;
40402
+ 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;
40388
40403
  const {
40389
40404
  t
40390
40405
  } = useTranslation();
@@ -40600,10 +40615,6 @@ const NewApplication = () => {
40600
40615
  sectionId: "useDetails",
40601
40616
  route: "use-details",
40602
40617
  actions: "Property & Connection Use Details"
40603
- }, {
40604
- sectionId: "bankDetails",
40605
- route: "bank-details",
40606
- actions: "Bank Details"
40607
40618
  }, {
40608
40619
  sectionId: "documents",
40609
40620
  route: "documents",
@@ -42203,64 +42214,6 @@ const NewApplication = () => {
42203
42214
  }),
42204
42215
  name: "useDetails.hospitalBeds"
42205
42216
  })) : null), /*#__PURE__*/React.createElement(SectionCard, {
42206
- description: "Refund or payment-linked bank account details.",
42207
- isOpen: collapsedSections.bank,
42208
- onToggle: toggleSection,
42209
- sectionKey: "bankDetails",
42210
- title: "Bank Details",
42211
- sectionRef: sectionRefs.bankDetails
42212
- }, /*#__PURE__*/React.createElement(FieldBlock, {
42213
- error: getFieldError("bankDetails.bankName"),
42214
- label: "Name of the Bank",
42215
- required: true
42216
- }, /*#__PURE__*/React.createElement(TextInput, {
42217
- errorStyle: !!getFieldError("bankDetails.bankName"),
42218
- inputRef: register({
42219
- required: "Bank Name is required."
42220
- }),
42221
- name: "bankDetails.bankName"
42222
- })), /*#__PURE__*/React.createElement(FieldBlock, {
42223
- error: getFieldError("bankDetails.branchName"),
42224
- label: "Name of the Branch",
42225
- required: true
42226
- }, /*#__PURE__*/React.createElement(TextInput, {
42227
- errorStyle: !!getFieldError("bankDetails.branchName"),
42228
- inputRef: register({
42229
- required: "Branch Name is required."
42230
- }),
42231
- name: "bankDetails.branchName"
42232
- })), /*#__PURE__*/React.createElement(FieldBlock, {
42233
- error: getFieldError("bankDetails.ifscCode"),
42234
- label: "IFSC Code",
42235
- required: true
42236
- }, /*#__PURE__*/React.createElement(TextInput, {
42237
- errorStyle: !!getFieldError("bankDetails.ifscCode"),
42238
- inputRef: register({
42239
- pattern: {
42240
- value: IFSC_PATTERN,
42241
- message: "Enter a valid IFSC code."
42242
- },
42243
- required: "IFSC Code is required."
42244
- }),
42245
- name: "bankDetails.ifscCode",
42246
- onChange: event => {
42247
- event.target.value = event.target.value.toUpperCase();
42248
- }
42249
- })), /*#__PURE__*/React.createElement(FieldBlock, {
42250
- error: getFieldError("bankDetails.bankAccountNumber"),
42251
- label: "Bank Account No.",
42252
- required: true
42253
- }, /*#__PURE__*/React.createElement(TextInput, {
42254
- errorStyle: !!getFieldError("bankDetails.bankAccountNumber"),
42255
- inputRef: register({
42256
- pattern: {
42257
- value: ACCOUNT_PATTERN,
42258
- message: "Enter a valid bank account number."
42259
- },
42260
- required: "Bank Account Number is required."
42261
- }),
42262
- name: "bankDetails.bankAccountNumber"
42263
- }))), /*#__PURE__*/React.createElement(SectionCard, {
42264
42217
  description: "Documents to be attached. Maximum allowed file size is 5 MB.",
42265
42218
  isOpen: collapsedSections.documents,
42266
42219
  onToggle: toggleSection,
@@ -42779,25 +42732,6 @@ const NewApplication = () => {
42779
42732
  }), /*#__PURE__*/React.createElement(PreviewItem, {
42780
42733
  label: "Water Connection Usage Type",
42781
42734
  value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail11 = formValues.useDetails) === null || _formValues$useDetail11 === void 0 ? void 0 : _formValues$useDetail11.WaterConnectionUsageType
42782
- })), /*#__PURE__*/React.createElement(SectionCard, {
42783
- description: "Banking information as entered in the form.",
42784
- isOpen: collapsedSections.bank,
42785
- onToggle: toggleSection,
42786
- sectionKey: "bank",
42787
- title: "Bank Details",
42788
- onEditClick: () => handleSectionEdit("bankDetails")
42789
- }, /*#__PURE__*/React.createElement(PreviewItem, {
42790
- label: "Name of the Bank",
42791
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai = formValues.bankDetails) === null || _formValues$bankDetai === void 0 ? void 0 : _formValues$bankDetai.bankName
42792
- }), /*#__PURE__*/React.createElement(PreviewItem, {
42793
- label: "Name of the Branch",
42794
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai2 = formValues.bankDetails) === null || _formValues$bankDetai2 === void 0 ? void 0 : _formValues$bankDetai2.branchName
42795
- }), /*#__PURE__*/React.createElement(PreviewItem, {
42796
- label: "IFSC Code",
42797
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai3 = formValues.bankDetails) === null || _formValues$bankDetai3 === void 0 ? void 0 : _formValues$bankDetai3.ifscCode
42798
- }), /*#__PURE__*/React.createElement(PreviewItem, {
42799
- label: "Bank Account No.",
42800
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai4 = formValues.bankDetails) === null || _formValues$bankDetai4 === void 0 ? void 0 : _formValues$bankDetai4.bankAccountNumber
42801
42735
  })), /*#__PURE__*/React.createElement(SectionCard, {
42802
42736
  description: "Uploaded supporting documents.",
42803
42737
  isOpen: collapsedSections.documents,
@@ -54076,7 +54010,9 @@ const Step2_NewConsumerDetails = _ref => {
54076
54010
  control,
54077
54011
  name: "reasonForNameChange"
54078
54012
  });
54079
- const isOtherReason = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER" || selectedReason === "OTHER";
54013
+ 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");
54014
+ console.log("selectedReason in Step2:", selectedReason);
54015
+ console.log("isDevolutionOrInheritance:", isDevolutionOrInheritance);
54080
54016
  const genderOptions = [{
54081
54017
  code: "MALE",
54082
54018
  i18nKey: "Male"
@@ -54095,7 +54031,7 @@ const Step2_NewConsumerDetails = _ref => {
54095
54031
  i18nKey: "Devolution/Inheritance"
54096
54032
  }, {
54097
54033
  code: "OTHER",
54098
- i18nKey: "Other Reason(Gift Deed, Lease Agreement, etc)"
54034
+ i18nKey: "Other Reason(Registered Sale Deed/Convayed Deed/Transfer Deed, Registered GPA, Possession Letter/Allotment Letter)"
54099
54035
  }];
54100
54036
  const relationshipOptions = [{
54101
54037
  code: "BLOOD_RELATION",
@@ -54364,7 +54300,8 @@ const Step2_NewConsumerDetails = _ref => {
54364
54300
  ...p,
54365
54301
  reasonForNameChange: true
54366
54302
  }));
54367
- if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER" && val !== "OTHER") {
54303
+ 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");
54304
+ if (!isDev) {
54368
54305
  setValue("relationshipWithExistingConsumer", null);
54369
54306
  }
54370
54307
  },
@@ -54377,13 +54314,13 @@ const Step2_NewConsumerDetails = _ref => {
54377
54314
  }, errors === null || errors === void 0 ? void 0 : (_errors$reasonForName = errors.reasonForNameChange) === null || _errors$reasonForName === void 0 ? void 0 : _errors$reasonForName.message)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, {
54378
54315
  style: {
54379
54316
  fontWeight: "bold",
54380
- color: isOtherReason ? "inherit" : "#999"
54317
+ color: isDevolutionOrInheritance ? "inherit" : "#999"
54381
54318
  }
54382
- }, "Relationship with Existing Consumer ", isOtherReason && mandatoryIndicator), /*#__PURE__*/React.createElement(Controller, {
54319
+ }, "Relationship with Existing Consumer ", isDevolutionOrInheritance && mandatoryIndicator), /*#__PURE__*/React.createElement(Controller, {
54383
54320
  control: control,
54384
54321
  name: "relationshipWithExistingConsumer",
54385
54322
  rules: {
54386
- required: isOtherReason ? "Relationship is required when 'Other Reason' is selected" : false
54323
+ required: isDevolutionOrInheritance ? "Relationship is required when 'Devolution/Inheritance' is selected" : false
54387
54324
  },
54388
54325
  render: props => /*#__PURE__*/React.createElement(Dropdown, {
54389
54326
  selected: props.value,
@@ -54398,16 +54335,16 @@ const Step2_NewConsumerDetails = _ref => {
54398
54335
  optionKey: "i18nKey",
54399
54336
  t: t,
54400
54337
  placeholder: "Select relationship",
54401
- disable: !isOtherReason
54338
+ disable: !isDevolutionOrInheritance
54402
54339
  })
54403
- }), !isOtherReason && /*#__PURE__*/React.createElement("span", {
54340
+ }), !isDevolutionOrInheritance && /*#__PURE__*/React.createElement("span", {
54404
54341
  style: {
54405
54342
  fontSize: "11px",
54406
54343
  color: "#999",
54407
54344
  marginTop: "4px",
54408
54345
  display: "block"
54409
54346
  }
54410
- }, "Enabled only when \"Other Reason\" is selected above"), (errors === null || errors === void 0 ? void 0 : errors.relationshipWithExistingConsumer) && /*#__PURE__*/React.createElement(CardLabelError, {
54347
+ }, "Enabled only when \"Devolution/Inheritance\" is selected above"), (errors === null || errors === void 0 ? void 0 : errors.relationshipWithExistingConsumer) && /*#__PURE__*/React.createElement(CardLabelError, {
54411
54348
  style: errorStyle
54412
54349
  }, errors === null || errors === void 0 ? void 0 : (_errors$relationshipW = errors.relationshipWithExistingConsumer) === null || _errors$relationshipW === void 0 ? void 0 : _errors$relationshipW.message))), /*#__PURE__*/React.createElement("div", {
54413
54350
  style: {
@@ -54503,6 +54440,8 @@ const Step3_UploadDocuments = _ref => {
54503
54440
  const [hasAttemptedSubmit, setHasAttemptedSubmit] = useState(false);
54504
54441
  const [digiLockerUpload, setDigilockerUpload] = useState(false);
54505
54442
  const [isDocumentUidLocked, setIsDocumentUidLocked] = useState(false);
54443
+ const [showDocumentNumber, setShowDocumentNumber] = useState(false);
54444
+ const [isDeclarationChecked, setIsDeclarationChecked] = useState((defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.isDeclarationChecked) || false);
54506
54445
  const identityOptions = [{
54507
54446
  code: "AADHAAR",
54508
54447
  i18nKey: "Aadhaar Card"
@@ -54704,11 +54643,12 @@ const Step3_UploadDocuments = _ref => {
54704
54643
  if (!identityProofType) newErrors.identityType = "Please select a document type";
54705
54644
  if (!identityProofFile) newErrors.identityFile = "Please upload your identity proof document";
54706
54645
  if (!mutationDocFile) newErrors.mutationFile = "Please upload the reason-based supporting document";
54646
+ if (!isDeclarationChecked) newErrors.declaration = "You must accept the declaration before proceeding";
54707
54647
  const docError = validateDocumentNumber(documentNumber, identityProofType);
54708
54648
  if (docError) newErrors.documentNumber = docError;
54709
54649
  setFieldErrors(newErrors);
54710
54650
  }
54711
- }, [identityProofType, documentNumber, identityProofFile, mutationDocFile, hasAttemptedSubmit]);
54651
+ }, [identityProofType, documentNumber, identityProofFile, mutationDocFile, isDeclarationChecked, hasAttemptedSubmit]);
54712
54652
  const onProceed = () => {
54713
54653
  setHasAttemptedSubmit(true);
54714
54654
  const newErrors = {};
@@ -54717,6 +54657,7 @@ const Step3_UploadDocuments = _ref => {
54717
54657
  if (docError) newErrors.documentNumber = docError;
54718
54658
  if (!identityProofFile) newErrors.identityFile = "Please upload your identity proof document";
54719
54659
  if (!mutationDocFile) newErrors.mutationFile = "Please upload the reason-based supporting document";
54660
+ if (!isDeclarationChecked) newErrors.declaration = "You must accept the declaration before proceeding";
54720
54661
  setFieldErrors(newErrors);
54721
54662
  if (Object.keys(newErrors).length > 0) {
54722
54663
  const errorCount = Object.keys(newErrors).length;
@@ -54730,7 +54671,8 @@ const Step3_UploadDocuments = _ref => {
54730
54671
  identityProofType,
54731
54672
  documentNumber: documentNumber.trim(),
54732
54673
  identityProofDocumentId: identityProofFile,
54733
- saleDeedDocumentId: mutationDocFile
54674
+ saleDeedDocumentId: mutationDocFile,
54675
+ isDeclarationChecked
54734
54676
  });
54735
54677
  };
54736
54678
  const uploadBoxStyle = (hasError, hasFile) => ({
@@ -54821,7 +54763,7 @@ const Step3_UploadDocuments = _ref => {
54821
54763
  style: {
54822
54764
  fontWeight: "bold"
54823
54765
  }
54824
- }, "1. Address / Identity Proof ", mandatoryIndicator), /*#__PURE__*/React.createElement(Dropdown, {
54766
+ }, "1. Identity Proof ", mandatoryIndicator), /*#__PURE__*/React.createElement(Dropdown, {
54825
54767
  selected: identityProofType,
54826
54768
  option: identityOptions,
54827
54769
  select: val => {
@@ -54853,7 +54795,19 @@ const Step3_UploadDocuments = _ref => {
54853
54795
  fontWeight: "bold",
54854
54796
  marginTop: "8px"
54855
54797
  }
54856
- }, "Document Number ", mandatoryIndicator), /*#__PURE__*/React.createElement(TextInput, {
54798
+ }, "Document Number ", mandatoryIndicator), /*#__PURE__*/React.createElement("div", {
54799
+ style: {
54800
+ display: "flex",
54801
+ alignItems: "flex-start",
54802
+ gap: "8px",
54803
+ marginBottom: "4px"
54804
+ }
54805
+ }, /*#__PURE__*/React.createElement("div", {
54806
+ style: {
54807
+ flex: 1
54808
+ }
54809
+ }, /*#__PURE__*/React.createElement(TextInput, {
54810
+ type: showDocumentNumber ? "text" : "password",
54857
54811
  value: documentNumber,
54858
54812
  onChange: e => {
54859
54813
  if (!isDocumentUidLocked) {
@@ -54876,7 +54830,7 @@ const Step3_UploadDocuments = _ref => {
54876
54830
  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",
54877
54831
  disabled: isDocumentUidLocked,
54878
54832
  style: {
54879
- marginBottom: "4px",
54833
+ marginBottom: "0",
54880
54834
  ...(fieldErrors.documentNumber ? {
54881
54835
  border: "1px solid #d32f2f"
54882
54836
  } : {}),
@@ -54886,7 +54840,23 @@ const Step3_UploadDocuments = _ref => {
54886
54840
  color: "#555"
54887
54841
  } : {})
54888
54842
  }
54889
- }), fieldErrors.documentNumber && /*#__PURE__*/React.createElement("div", {
54843
+ })), /*#__PURE__*/React.createElement("button", {
54844
+ type: "button",
54845
+ onClick: () => setShowDocumentNumber(!showDocumentNumber),
54846
+ style: {
54847
+ padding: "8px 16px",
54848
+ backgroundColor: "#f4f9fc",
54849
+ border: "1px solid #ccc",
54850
+ borderRadius: "4px",
54851
+ cursor: "pointer",
54852
+ fontWeight: "500",
54853
+ fontSize: "14px",
54854
+ height: "40px",
54855
+ display: "flex",
54856
+ alignItems: "center",
54857
+ justifyContent: "center"
54858
+ }
54859
+ }, showDocumentNumber ? "Hide" : "View")), fieldErrors.documentNumber && /*#__PURE__*/React.createElement("div", {
54890
54860
  style: errorTextStyle
54891
54861
  }, fieldErrors.documentNumber), (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "AADHAAR" && !fieldErrors.documentNumber && /*#__PURE__*/React.createElement("span", {
54892
54862
  style: {
@@ -55062,6 +55032,37 @@ const Step3_UploadDocuments = _ref => {
55062
55032
  marginRight: "4px"
55063
55033
  }
55064
55034
  }), " View ", mutationFileName)))), /*#__PURE__*/React.createElement("div", {
55035
+ style: {
55036
+ marginTop: "24px",
55037
+ padding: "16px",
55038
+ backgroundColor: fieldErrors.declaration ? "#fef2f2" : "#f8f9fa",
55039
+ borderRadius: "8px",
55040
+ border: fieldErrors.declaration ? "1px solid #d32f2f" : "1px solid #e9ecef"
55041
+ }
55042
+ }, /*#__PURE__*/React.createElement(CheckBox, {
55043
+ label: "I declare that the documents uploaded by me are genuine, valid, and accurate to the best of my knowledge.",
55044
+ onChange: e => {
55045
+ setIsDeclarationChecked(e.target.checked);
55046
+ if (e.target.checked) {
55047
+ setFieldErrors(prev => ({
55048
+ ...prev,
55049
+ declaration: null
55050
+ }));
55051
+ }
55052
+ },
55053
+ checked: isDeclarationChecked,
55054
+ style: isMobileView ? {
55055
+ fontSize: "12px",
55056
+ alignItems: "flex-start"
55057
+ } : {
55058
+ alignItems: "center"
55059
+ }
55060
+ }), fieldErrors.declaration && /*#__PURE__*/React.createElement("div", {
55061
+ style: {
55062
+ ...errorTextStyle,
55063
+ marginLeft: "28px"
55064
+ }
55065
+ }, fieldErrors.declaration)), /*#__PURE__*/React.createElement("div", {
55065
55066
  style: {
55066
55067
  display: "flex",
55067
55068
  flexDirection: isMobileView ? "column" : "row",
@@ -55141,7 +55142,8 @@ const Step4_Preview = _ref => {
55141
55142
  resolvedServiceType,
55142
55143
  onBack,
55143
55144
  onSubmit,
55144
- isLoading
55145
+ isLoading,
55146
+ isEditFlow
55145
55147
  } = _ref;
55146
55148
  const [agreed, setAgreed] = useState(false);
55147
55149
  const [fee, setFee] = useState(0);
@@ -55323,7 +55325,7 @@ const Step4_Preview = _ref => {
55323
55325
  gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(150px, 1fr))",
55324
55326
  gap: isMobileView ? "12px" : "16px"
55325
55327
  }
55326
- }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), /*#__PURE__*/React.createElement("div", {
55328
+ }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), !isEditFlow && /*#__PURE__*/React.createElement("div", {
55327
55329
  style: {
55328
55330
  ...sectionStyle,
55329
55331
  borderLeft: "4px solid #f29c1f"
@@ -56375,7 +56377,8 @@ const MutationApplication = () => {
56375
56377
  resolvedServiceType: resolvedServiceType,
56376
56378
  onBack: () => history.push(`${path}/document`),
56377
56379
  onSubmit: submitApplication,
56378
- isLoading: isSubmitting
56380
+ isLoading: isSubmitting,
56381
+ isEditFlow: isEditFlow
56379
56382
  })), /*#__PURE__*/React.createElement(Route, {
56380
56383
  path: `${path}/submission`
56381
56384
  }, /*#__PURE__*/React.createElement(Step5_Submission, {
@@ -58252,7 +58255,7 @@ const openFilePDF = fileId => {
58252
58255
  }).catch(error => console.error("Error fetching file:", error));
58253
58256
  };
58254
58257
  const CheckPage$4 = _ref2 => {
58255
- 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;
58258
+ 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;
58256
58259
  let {
58257
58260
  data,
58258
58261
  onSubmit,
@@ -58327,7 +58330,6 @@ const CheckPage$4 = _ref2 => {
58327
58330
  holderDetails = holderDetails[0] || {};
58328
58331
  }
58329
58332
  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) || {};
58330
- 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) || {};
58331
58333
  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) || [];
58332
58334
  const declaration = (data === null || data === void 0 ? void 0 : data.declarationData) || (data === null || data === void 0 ? void 0 : data.declaration) || {};
58333
58335
  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) || {};
@@ -58567,26 +58569,6 @@ const CheckPage$4 = _ref2 => {
58567
58569
  }, /*#__PURE__*/React.createElement(Row, {
58568
58570
  label: "Divyangjan/Person with Disability?",
58569
58571
  text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
58570
- })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
58571
- style: {
58572
- marginTop: "10px",
58573
- marginBottom: "30px"
58574
- }
58575
- }, /*#__PURE__*/React.createElement(Row, {
58576
- label: t("WS_NAME_OF_BANK"),
58577
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
58578
- actionButton: /*#__PURE__*/React.createElement(ActionButton$1, {
58579
- onClick: onEdit
58580
- })
58581
- }), /*#__PURE__*/React.createElement(Row, {
58582
- label: t("WS_NAME_OF_BRANCH"),
58583
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
58584
- }), /*#__PURE__*/React.createElement(Row, {
58585
- label: t("WS_IFSC_CODE"),
58586
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
58587
- }), /*#__PURE__*/React.createElement(Row, {
58588
- label: t("WS_BANK_ACCOUNT_NO"),
58589
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
58590
58572
  })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, {
58591
58573
  style: {
58592
58574
  marginTop: "10px",
@@ -58731,8 +58713,6 @@ const OLDApplication = () => {
58731
58713
  label: "WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS"
58732
58714
  }, {
58733
58715
  label: "WS_DJB_EMPLOYEE"
58734
- }, {
58735
- label: "WS_BANK_DETAILS"
58736
58716
  }, {
58737
58717
  label: "WS_DOCUMENTS"
58738
58718
  }, {
@@ -58777,7 +58757,7 @@ const OLDApplication = () => {
58777
58757
  if (requestedPropertyId !== initialPropertyId.current || requestedPropertyId && requestedPropertyId !== verifiedPropertyId.current) {
58778
58758
  clearSessionFormData();
58779
58759
  sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
58780
- history.replace("/digit-ui/employee/ws/info");
58760
+ history.replace(window.location.href.includes("/employee") ? "/digit-ui/employee/ws/info" : "/digit-ui/citizen/ws/info");
58781
58761
  }
58782
58762
  }, [clearSessionFormData, history, requestedPropertyId]);
58783
58763
  useEffect(() => {
@@ -58789,7 +58769,7 @@ const OLDApplication = () => {
58789
58769
  if (config) {
58790
58770
  var _config$body;
58791
58771
  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)) || [];
58792
- const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", ...(isCitizen ? [] : ["WSDjbEmployee"]), "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
58772
+ const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", ...(isCitizen ? [] : ["WSDjbEmployee"]), "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee", "WSDeclaration"];
58793
58773
  const reorderedBody = [];
58794
58774
  desiredComponentOrder.forEach(compName => {
58795
58775
  const section = allCreateSections.find(s => {
@@ -58825,16 +58805,6 @@ const OLDApplication = () => {
58825
58805
  isAutomaticFill: true
58826
58806
  }]
58827
58807
  });
58828
- } else if (compName === "WSBankDetails") {
58829
- reorderedBody.push({
58830
- isCreateConnection: true,
58831
- body: [{
58832
- type: "component",
58833
- key: "bankDetails",
58834
- component: "WSBankDetails",
58835
- withoutLabel: true
58836
- }]
58837
- });
58838
58808
  } else if (compName === "WSDeclaration") {
58839
58809
  reorderedBody.push({
58840
58810
  isCreateConnection: true,