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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -9,36 +9,29 @@ var reactHookForm = require('react-hook-form');
9
9
  var XLSX = require('xlsx');
10
10
  var reactQuery = require('react-query');
11
11
 
12
- // A type of promise-like that resolves synchronously and supports only one observer
13
-
14
- const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
15
-
16
- const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
17
-
18
- // Asynchronously call a function and send errors to recovery continuation
12
+ const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
13
+ const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
19
14
  function _catch(body, recover) {
20
- try {
21
- var result = body();
22
- } catch(e) {
23
- return recover(e);
24
- }
25
- if (result && result.then) {
26
- return result.then(void 0, recover);
27
- }
28
- return result;
15
+ try {
16
+ var result = body();
17
+ } catch (e) {
18
+ return recover(e);
19
+ }
20
+ if (result && result.then) {
21
+ return result.then(void 0, recover);
22
+ }
23
+ return result;
29
24
  }
30
-
31
- // Asynchronously await a promise and pass the result to a finally continuation
32
25
  function _finallyRethrows(body, finalizer) {
33
- try {
34
- var result = body();
35
- } catch (e) {
36
- return finalizer(true, e);
37
- }
38
- if (result && result.then) {
39
- return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
40
- }
41
- return finalizer(false, result);
26
+ try {
27
+ var result = body();
28
+ } catch (e) {
29
+ return finalizer(true, e);
30
+ }
31
+ if (result && result.then) {
32
+ return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
33
+ }
34
+ return finalizer(false, result);
42
35
  }
43
36
 
44
37
  const TestAcknowledgment = () => {
@@ -557,6 +550,16 @@ const createPayloadOfWS = function (data) {
557
550
  status: "ACTIVE"
558
551
  });
559
552
  }
553
+ if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
554
+ var _connectionDetail$org;
555
+ let documentType = "OWNER.ORGANIZATION_DOCUMENT";
556
+ allDocuments.push({
557
+ documentType: documentType,
558
+ fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org = connectionDetail.orgDeptDocument) === null || _connectionDetail$org === void 0 ? void 0 : _connectionDetail$org.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
559
+ documentUid: "",
560
+ status: "ACTIVE"
561
+ });
562
+ }
560
563
  let payload = {
561
564
  water: !!isWater,
562
565
  sewerage: !!isSewerage,
@@ -729,6 +732,18 @@ const getAllDocumentsForUpdate = data => {
729
732
  status: "ACTIVE"
730
733
  });
731
734
  }
735
+ const connectionDetailsArray = Array.isArray(data === null || data === void 0 ? void 0 : data.ConnectionDetails) ? data.ConnectionDetails : data !== null && data !== void 0 && data.ConnectionDetails ? Object.values(data.ConnectionDetails).filter(i => typeof i === "object") : [];
736
+ const connectionDetail = (connectionDetailsArray === null || connectionDetailsArray === void 0 ? void 0 : connectionDetailsArray[0]) || (data === null || data === void 0 ? void 0 : data.ConnectionDetails) || {};
737
+ if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
738
+ var _connectionDetail$org2;
739
+ let documentType = "OWNER.ORGANIZATION_DOCUMENT";
740
+ allDocuments.push({
741
+ documentType: documentType,
742
+ fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org2 = connectionDetail.orgDeptDocument) === null || _connectionDetail$org2 === void 0 ? void 0 : _connectionDetail$org2.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
743
+ documentUid: "",
744
+ status: "ACTIVE"
745
+ });
746
+ }
732
747
  return allDocuments;
733
748
  };
734
749
  const convertToWSUpdate = data => {
@@ -7879,7 +7894,7 @@ var lodash = createCommonjsModule(function (module, exports) {
7879
7894
  });
7880
7895
 
7881
7896
  const WSApplication = _ref => {
7882
- var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6, _application$applicat7, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat8, _application$applicat9;
7897
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6;
7883
7898
  let {
7884
7899
  application
7885
7900
  } = _ref;
@@ -7977,19 +7992,21 @@ const WSApplication = _ref => {
7977
7992
  to: `/digit-ui/citizen/ws/connection/application/${encodeApplicationNo}`
7978
7993
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
7979
7994
  label: t("WS_VIEW_DETAILS_LABEL")
7980
- })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
7981
- to: {
7982
- 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, "/", "+")}`,
7983
- 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}`,
7984
- state: {}
7985
- }
7986
- }, /*#__PURE__*/React__default.createElement("div", {
7995
+ })), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
7987
7996
  style: {
7988
7997
  marginTop: "10px"
7989
7998
  }
7990
7999
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
7991
- label: t("MAKE_PAYMENT")
7992
- }))) : null);
8000
+ label: t("MAKE_PAYMENT"),
8001
+ onSubmit: () => {
8002
+ var _application$applicat7, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat8, _application$applicat9;
8003
+ history.push({
8004
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")}`,
8005
+ search: `?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat8 = application.applicationNo) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DC") ? true : false}&consumerCode=${application !== null && application !== void 0 && (_application$applicat9 = application.applicationNo) !== null && _application$applicat9 !== void 0 && _application$applicat9.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo}`,
8006
+ state: {}
8007
+ });
8008
+ }
8009
+ })) : null);
7993
8010
  };
7994
8011
 
7995
8012
  const EyeSvgINdex = _ref => {
@@ -8282,8 +8299,8 @@ const WSMyApplications = () => {
8282
8299
  };
8283
8300
  });
8284
8301
  const sortedApplications = ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 ? applicationsList.sort((a, b) => {
8285
- var _b$auditDetails, _a$auditDetails;
8286
- return ((_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.lastModifiedTime) - ((_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.lastModifiedTime);
8302
+ var _b$auditDetails, _b$auditDetails2, _a$auditDetails, _a$auditDetails2;
8303
+ return (((_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.createdTime) || ((_b$auditDetails2 = b.auditDetails) === null || _b$auditDetails2 === void 0 ? void 0 : _b$auditDetails2.lastModifiedTime) || 0) - (((_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.createdTime) || ((_a$auditDetails2 = a.auditDetails) === null || _a$auditDetails2 === void 0 ? void 0 : _a$auditDetails2.lastModifiedTime) || 0);
8287
8304
  }) : [];
8288
8305
  let filteredApplications = sortedApplications;
8289
8306
  if (searchParams) {
@@ -8885,7 +8902,7 @@ const getWSAcknowledgementData$1 = function (newApplication, property, tenantInf
8885
8902
  };
8886
8903
 
8887
8904
  const WSResponse = props => {
8888
- var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2, _waterApplicationData8, _waterApplicationData9, _waterApplicationData0, _waterApplicationData1, _waterApplicationData10, _waterApplicationData11, _waterApplicationData12, _waterApplicationData13, _waterApplicationData14, _waterApplicationData15, _waterApplicationData16, _waterApplicationData17, _waterApplicationData18, _waterApplicationData19, _waterApplicationData20, _sewerageApplicationD8, _sewerageApplicationD9, _sewerageApplicationD0, _sewerageApplicationD1, _sewerageApplicationD10, _sewerageApplicationD11, _sewerageApplicationD12, _sewerageApplicationD13, _sewerageApplicationD14, _sewerageApplicationD15, _sewerageApplicationD16, _sewerageApplicationD17, _sewerageApplicationD18, _sewerageApplicationD19, _sewerageApplicationD20;
8905
+ var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2, _waterApplicationData8, _sewerageApplicationD8;
8889
8906
  const {
8890
8907
  t
8891
8908
  } = reactI18next.useTranslation();
@@ -9058,30 +9075,66 @@ const WSResponse = props => {
9058
9075
  }, /*#__PURE__*/React__default.createElement("path", {
9059
9076
  d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
9060
9077
  fill: "#a82227"
9061
- })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
9062
- to: {
9063
- 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}`,
9064
- state: {}
9065
- }
9066
- }, /*#__PURE__*/React__default.createElement("div", {
9078
+ })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
9067
9079
  style: {
9068
9080
  marginTop: "10px"
9069
9081
  }
9070
9082
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9071
- label: t("MAKE_PAYMENT")
9072
- }))) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
9073
- to: {
9074
- 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}`,
9075
- state: {}
9083
+ label: t("MAKE_PAYMENT"),
9084
+ onSubmit: () => {
9085
+ var _waterApplicationData9, _waterApplicationData0, _waterApplicationData1, _waterApplicationData10, _waterApplicationData11, _waterApplicationData12, _waterApplicationData13, _waterApplicationData14, _waterApplicationData15, _waterApplicationData16, _waterApplicationData17, _waterApplicationData18, _waterApplicationData19;
9086
+ let isEmployee = window.location.href.includes("/employee");
9087
+ let businessService = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData9 = waterApplicationData.applicationData) !== null && _waterApplicationData9 !== void 0 && (_waterApplicationData0 = _waterApplicationData9.applicationNo) !== null && _waterApplicationData0 !== void 0 && _waterApplicationData0.includes("DC") ? "WS" : "WS.ONE_TIME_FEE";
9088
+ let consumerCodeOriginal = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData11 = waterApplicationData.applicationData) === null || _waterApplicationData11 === void 0 ? void 0 : _waterApplicationData11.connectionNo : waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData12 = waterApplicationData.applicationData) === null || _waterApplicationData12 === void 0 ? void 0 : _waterApplicationData12.applicationNo;
9089
+ let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9090
+ let tenantId = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId;
9091
+ let consumerName = (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData14 = waterApplicationData.applicationData) === null || _waterApplicationData14 === void 0 ? void 0 : (_waterApplicationData15 = _waterApplicationData14.connectionHolders) === null || _waterApplicationData15 === void 0 ? void 0 : _waterApplicationData15.map(owner => owner.name).join(",")) || (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData16 = waterApplicationData.propertyDetails) === null || _waterApplicationData16 === void 0 ? void 0 : (_waterApplicationData17 = _waterApplicationData16.owners) === null || _waterApplicationData17 === void 0 ? void 0 : _waterApplicationData17.map(owner => owner.name).join(","));
9092
+ let isDisconnectFlow = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData18 = waterApplicationData.applicationData) !== null && _waterApplicationData18 !== void 0 && (_waterApplicationData19 = _waterApplicationData18.applicationNo) !== null && _waterApplicationData19 !== void 0 && _waterApplicationData19.includes("DC") ? true : false;
9093
+ if (isEmployee) {
9094
+ history.push({
9095
+ pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
9096
+ search: `?tenantId=${tenantId}&consumerCode=${consumerCodeOriginal}&ISWSAPP&applicationNumber=${consumerCodeOriginal}`,
9097
+ state: {}
9098
+ });
9099
+ } else {
9100
+ history.push({
9101
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${consumerCode}`,
9102
+ search: `?workflow=WNS&tenantId=${tenantId}&ConsumerName=${consumerName}&isDisoconnectFlow=${isDisconnectFlow}&consumerCode=${consumerCodeOriginal}`,
9103
+ state: {}
9104
+ });
9105
+ }
9076
9106
  }
9077
- }, /*#__PURE__*/React__default.createElement("div", {
9107
+ })) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
9078
9108
  style: {
9079
9109
  marginTop: "10px",
9080
9110
  marginLeft: "10px"
9081
9111
  }
9082
9112
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9083
- label: t("MAKE_PAYMENT")
9084
- }))) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
9113
+ label: t("MAKE_PAYMENT"),
9114
+ onSubmit: () => {
9115
+ var _sewerageApplicationD9, _sewerageApplicationD0, _sewerageApplicationD1, _sewerageApplicationD10, _sewerageApplicationD11, _sewerageApplicationD12, _sewerageApplicationD13, _sewerageApplicationD14, _sewerageApplicationD15, _sewerageApplicationD16, _sewerageApplicationD17, _sewerageApplicationD18, _sewerageApplicationD19;
9116
+ let isEmployee = window.location.href.includes("/employee");
9117
+ let businessService = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD9 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD9 !== void 0 && (_sewerageApplicationD0 = _sewerageApplicationD9.applicationNo) !== null && _sewerageApplicationD0 !== void 0 && _sewerageApplicationD0.includes("DC") ? "SW" : "SW.ONE_TIME_FEE";
9118
+ let consumerCodeOriginal = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD11 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD11 === void 0 ? void 0 : _sewerageApplicationD11.connectionNo : sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD12 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD12 === void 0 ? void 0 : _sewerageApplicationD12.applicationNo;
9119
+ let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9120
+ let tenantId = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId;
9121
+ let consumerName = (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD14 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD14 === void 0 ? void 0 : (_sewerageApplicationD15 = _sewerageApplicationD14.connectionHolders) === null || _sewerageApplicationD15 === void 0 ? void 0 : _sewerageApplicationD15.map(owner => owner.name).join(",")) || (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD16 = sewerageApplicationData.propertyDetails) === null || _sewerageApplicationD16 === void 0 ? void 0 : (_sewerageApplicationD17 = _sewerageApplicationD16.owners) === null || _sewerageApplicationD17 === void 0 ? void 0 : _sewerageApplicationD17.map(owner => owner.name).join(","));
9122
+ let isDisconnectFlow = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD18 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD18 !== void 0 && (_sewerageApplicationD19 = _sewerageApplicationD18.applicationNo) !== null && _sewerageApplicationD19 !== void 0 && _sewerageApplicationD19.includes("DC") ? true : false;
9123
+ if (isEmployee) {
9124
+ history.push({
9125
+ pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
9126
+ search: `?tenantId=${tenantId}&consumerCode=${consumerCodeOriginal}&ISWSAPP&applicationNumber=${consumerCodeOriginal}`,
9127
+ state: {}
9128
+ });
9129
+ } else {
9130
+ history.push({
9131
+ pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${consumerCode}`,
9132
+ search: `?workflow=WNS&tenantId=${tenantId}&ConsumerName=${consumerName}&isDisoconnectFlow=${isDisconnectFlow}&consumerCode=${consumerCodeOriginal}`,
9133
+ state: {}
9134
+ });
9135
+ }
9136
+ }
9137
+ })) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
9085
9138
  style: {
9086
9139
  display: "flex",
9087
9140
  justifyContent: "flex-end",
@@ -9444,6 +9497,7 @@ const Response = () => {
9444
9497
  const {
9445
9498
  state
9446
9499
  } = reactRouterDom.useLocation();
9500
+ const history = reactRouterDom.useHistory();
9447
9501
  const {
9448
9502
  t
9449
9503
  } = reactI18next.useTranslation();
@@ -9513,14 +9567,13 @@ const Response = () => {
9513
9567
  justifyContent: "flex-end",
9514
9568
  alignItems: "baseline"
9515
9569
  }
9516
- }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
9517
- to: `/digit-ui/employee`,
9570
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9571
+ label: t("CORE_COMMON_GO_TO_HOME"),
9572
+ onSubmit: () => history.push(`/digit-ui/employee`),
9518
9573
  style: {
9519
9574
  marginRight: "1rem"
9520
9575
  }
9521
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9522
- label: t("CORE_COMMON_GO_TO_HOME")
9523
- })))));
9576
+ }))));
9524
9577
  };
9525
9578
 
9526
9579
  const ResponseBillAmend = () => {
@@ -9528,6 +9581,7 @@ const ResponseBillAmend = () => {
9528
9581
  const {
9529
9582
  state
9530
9583
  } = reactRouterDom.useLocation();
9584
+ const history = reactRouterDom.useHistory();
9531
9585
  const {
9532
9586
  t
9533
9587
  } = reactI18next.useTranslation();
@@ -9542,14 +9596,13 @@ const ResponseBillAmend = () => {
9542
9596
  justifyContent: "flex-end",
9543
9597
  alignItems: "baseline"
9544
9598
  }
9545
- }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
9546
- to: `/digit-ui/employee`,
9599
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9600
+ label: t("CORE_COMMON_GO_TO_HOME"),
9601
+ onSubmit: () => history.push(`/digit-ui/employee`),
9547
9602
  style: {
9548
9603
  marginRight: "1rem"
9549
9604
  }
9550
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
9551
- label: t("CORE_COMMON_GO_TO_HOME")
9552
- })))));
9605
+ }))));
9553
9606
  };
9554
9607
 
9555
9608
  const getPropertyAddress$2 = property => {
@@ -10799,6 +10852,390 @@ const WSCalculation = _ref => {
10799
10852
  })));
10800
10853
  };
10801
10854
 
10855
+ const WSZROVerification = () => {
10856
+ const {
10857
+ t
10858
+ } = reactI18next.useTranslation();
10859
+ const tenantId = Digit.ULBService.getCurrentTenantId();
10860
+ const [connectionNo, setConnectionNo] = React.useState("");
10861
+ const [filters, setFilters] = React.useState({
10862
+ status: "PENDING",
10863
+ offset: 0,
10864
+ limit: 20
10865
+ });
10866
+ const {
10867
+ isLoading,
10868
+ data
10869
+ } = Digit.Hooks.ws.useWSZROVerification({
10870
+ tenantId,
10871
+ filters,
10872
+ config: {
10873
+ select: res => (res === null || res === void 0 ? void 0 : res.cases) || []
10874
+ }
10875
+ });
10876
+ const onSubmit = e => {
10877
+ if (e) e.preventDefault();
10878
+ const newFilters = {
10879
+ status: "PENDING",
10880
+ offset: 0,
10881
+ limit: 20
10882
+ };
10883
+ if (connectionNo !== null && connectionNo !== void 0 && connectionNo.trim()) {
10884
+ newFilters.connectionNo = connectionNo.trim();
10885
+ }
10886
+ setFilters(newFilters);
10887
+ };
10888
+ const clearSearch = () => {
10889
+ setConnectionNo("");
10890
+ setFilters({
10891
+ status: "PENDING",
10892
+ offset: 0,
10893
+ limit: 20
10894
+ });
10895
+ };
10896
+ const columns = React__default.useMemo(() => [{
10897
+ Header: t("WS_CONNECTION_NO_LABEL"),
10898
+ accessor: "connectionNo",
10899
+ Cell: _ref => {
10900
+ var _row$original, _row$original2;
10901
+ let {
10902
+ row
10903
+ } = _ref;
10904
+ return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
10905
+ to: {
10906
+ pathname: `/digit-ui/employee/ws/zro-verification-details`,
10907
+ search: `?connectionNumber=${(_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.connectionNo}&tenantId=${tenantId}`,
10908
+ state: {
10909
+ caseData: row.original
10910
+ }
10911
+ },
10912
+ style: {
10913
+ color: "#f47738",
10914
+ textDecoration: "none"
10915
+ }
10916
+ }, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.connectionNo) || "NA");
10917
+ }
10918
+ }, {
10919
+ Header: t("WS_BILLING_PERIOD_LABEL"),
10920
+ Cell: _ref2 => {
10921
+ var _row$original3, _row$original4;
10922
+ let {
10923
+ row
10924
+ } = _ref2;
10925
+ const from = (_row$original3 = row.original) !== null && _row$original3 !== void 0 && _row$original3.billingPeriodFrom ? Digit.DateUtils.ConvertTimestampToDate(row.original.billingPeriodFrom) : "NA";
10926
+ const to = (_row$original4 = row.original) !== null && _row$original4 !== void 0 && _row$original4.billingPeriodTo ? Digit.DateUtils.ConvertTimestampToDate(row.original.billingPeriodTo) : "NA";
10927
+ return /*#__PURE__*/React__default.createElement("span", null, `${from} - ${to}`);
10928
+ }
10929
+ }, {
10930
+ Header: t("WS_PREVIOUS_READING_LABEL"),
10931
+ accessor: "previousReading",
10932
+ Cell: _ref3 => {
10933
+ var _row$original5;
10934
+ let {
10935
+ row
10936
+ } = _ref3;
10937
+ return ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.previousReading) ?? "NA";
10938
+ }
10939
+ }, {
10940
+ Header: t("WS_CURRENT_READING_LABEL"),
10941
+ accessor: "currentReading",
10942
+ Cell: _ref4 => {
10943
+ var _row$original6;
10944
+ let {
10945
+ row
10946
+ } = _ref4;
10947
+ return ((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.currentReading) ?? "NA";
10948
+ }
10949
+ }, {
10950
+ Header: t("WS_CONSUMPTION_LABEL"),
10951
+ accessor: "actualConsumption",
10952
+ Cell: _ref5 => {
10953
+ var _row$original7;
10954
+ let {
10955
+ row
10956
+ } = _ref5;
10957
+ return ((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.actualConsumption) ?? "NA";
10958
+ }
10959
+ }, {
10960
+ Header: t("WS_COMMON_TABLE_COL_APP_STATUS_LABEL"),
10961
+ accessor: "verification.status",
10962
+ Cell: _ref6 => {
10963
+ var _row$original8, _row$original8$verifi;
10964
+ let {
10965
+ row
10966
+ } = _ref6;
10967
+ return (_row$original8 = row.original) !== null && _row$original8 !== void 0 && (_row$original8$verifi = _row$original8.verification) !== null && _row$original8$verifi !== void 0 && _row$original8$verifi.status ? t(`WS_ZRO_STATUS_${row.original.verification.status}`) : "NA";
10968
+ }
10969
+ }], [t]);
10970
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchForm, {
10971
+ onSubmit: onSubmit,
10972
+ handleSubmit: fn => fn,
10973
+ className: "formcomposer-section-grid"
10974
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, null, /*#__PURE__*/React__default.createElement("label", null, t("WS_CONNECTION_NO_LABEL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
10975
+ name: "connectionNo",
10976
+ value: connectionNo,
10977
+ onChange: e => setConnectionNo(e.target.value)
10978
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, {
10979
+ className: "ws-submit"
10980
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
10981
+ label: t("ES_COMMON_SEARCH"),
10982
+ submit: true,
10983
+ className: "submit-bar generic-button"
10984
+ }), /*#__PURE__*/React__default.createElement("button", {
10985
+ type: "button",
10986
+ className: "clear-search generic-button",
10987
+ onClick: clearSearch
10988
+ }, t("ES_COMMON_CLEAR_SEARCH"))))), isLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
10989
+ t: t,
10990
+ data: data || [],
10991
+ totalRecords: (data === null || data === void 0 ? void 0 : data.length) || 0,
10992
+ isLoading: isLoading,
10993
+ isPaginationRequired: true,
10994
+ csvExportData: data,
10995
+ columns: columns
10996
+ }));
10997
+ };
10998
+
10999
+ const Heading = props => {
11000
+ return /*#__PURE__*/React__default.createElement("h1", {
11001
+ className: "heading-m"
11002
+ }, props.label);
11003
+ };
11004
+ const Close = () => /*#__PURE__*/React__default.createElement("svg", {
11005
+ xmlns: "http://www.w3.org/2000/svg",
11006
+ viewBox: "0 0 24 24",
11007
+ fill: "#FFFFFF"
11008
+ }, /*#__PURE__*/React__default.createElement("path", {
11009
+ d: "M0 0h24v24H0V0z",
11010
+ fill: "none"
11011
+ }), /*#__PURE__*/React__default.createElement("path", {
11012
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
11013
+ }));
11014
+ const CloseBtn = props => {
11015
+ return /*#__PURE__*/React__default.createElement("div", {
11016
+ className: "icon-bg-secondary",
11017
+ onClick: props.onClick
11018
+ }, /*#__PURE__*/React__default.createElement(Close, null));
11019
+ };
11020
+ const WSZROVerificationDetails = () => {
11021
+ var _location$state;
11022
+ const {
11023
+ t
11024
+ } = reactI18next.useTranslation();
11025
+ const location = reactRouterDom.useLocation();
11026
+ const history = reactRouterDom.useHistory();
11027
+ const [displayMenu, setDisplayMenu] = React.useState(false);
11028
+ const [showModal, setShowModal] = React.useState(false);
11029
+ const [selectedAction, setSelectedAction] = React.useState(null);
11030
+ const [comments, setComments] = React.useState("");
11031
+ const [toast, setToast] = React.useState(null);
11032
+ const [isSuccess, setIsSuccess] = React.useState(false);
11033
+ const [apiResponse, setApiResponse] = React.useState(null);
11034
+ React.useEffect(() => {
11035
+ let timer;
11036
+ if (isSuccess) {
11037
+ timer = setTimeout(() => {
11038
+ history.push("/digit-ui/employee/ws/zro-application");
11039
+ }, 10000);
11040
+ }
11041
+ return () => {
11042
+ if (timer) clearTimeout(timer);
11043
+ };
11044
+ }, [isSuccess, history]);
11045
+ const caseDataFromState = (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.caseData;
11046
+ const searchParams = new URLSearchParams(location.search);
11047
+ const connectionNumber = searchParams.get("connectionNumber");
11048
+ const tenantId = searchParams.get("tenantId") || Digit.ULBService.getCurrentTenantId();
11049
+ const {
11050
+ isLoading,
11051
+ data
11052
+ } = Digit.Hooks.ws.useWSZROVerification({
11053
+ tenantId,
11054
+ filters: {
11055
+ connectionNo: connectionNumber,
11056
+ status: "PENDING",
11057
+ offset: 0,
11058
+ limit: 20
11059
+ },
11060
+ config: {
11061
+ enabled: !caseDataFromState && !!connectionNumber,
11062
+ select: res => {
11063
+ var _res$cases;
11064
+ return res === null || res === void 0 ? void 0 : (_res$cases = res.cases) === null || _res$cases === void 0 ? void 0 : _res$cases[0];
11065
+ }
11066
+ }
11067
+ });
11068
+ const caseDetails = caseDataFromState || data;
11069
+ if (isLoading) {
11070
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
11071
+ }
11072
+ if (!caseDetails) {
11073
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
11074
+ style: {
11075
+ textAlign: "center"
11076
+ }
11077
+ }, t("CS_COMMON_NO_DATA")));
11078
+ }
11079
+ const {
11080
+ verification,
11081
+ ...billingData
11082
+ } = caseDetails;
11083
+ const formatDate = timestamp => {
11084
+ if (!timestamp) return "NA";
11085
+ return Digit.DateUtils.ConvertTimestampToDate(timestamp);
11086
+ };
11087
+ const onActionSelect = action => {
11088
+ setSelectedAction(action);
11089
+ setDisplayMenu(false);
11090
+ setShowModal(true);
11091
+ };
11092
+ const closeModal = () => {
11093
+ setShowModal(false);
11094
+ setComments("");
11095
+ setSelectedAction(null);
11096
+ };
11097
+ const submitAction = function () {
11098
+ try {
11099
+ const _temp = _catch(function () {
11100
+ const payload = {
11101
+ billingCycleId: billingData === null || billingData === void 0 ? void 0 : billingData.billingCycleId,
11102
+ action: selectedAction === "VERIFY" ? "APPROVE" : "REJECT",
11103
+ remarks: comments
11104
+ };
11105
+ return Promise.resolve(Digit.WSService.updateZROVerification(payload, tenantId)).then(function (res) {
11106
+ setApiResponse(res);
11107
+ setToast({
11108
+ key: "success",
11109
+ error: false,
11110
+ message: t("WF_ZRO_ACTION_SUCCESS")
11111
+ });
11112
+ setShowModal(false);
11113
+ setIsSuccess(true);
11114
+ });
11115
+ }, function (err) {
11116
+ var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
11117
+ console.error(err);
11118
+ setToast({
11119
+ key: "error",
11120
+ error: true,
11121
+ message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || t("CS_ACTION_ERROR")
11122
+ });
11123
+ closeModal();
11124
+ });
11125
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
11126
+ } catch (e) {
11127
+ return Promise.reject(e);
11128
+ }
11129
+ };
11130
+ if (isSuccess) {
11131
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Banner, {
11132
+ message: t(selectedAction === "VERIFY" ? "WF_ZRO_VERIFY_SUCCESS" : "WF_ZRO_REJECT_SUCCESS"),
11133
+ applicationNumber: apiResponse !== null && apiResponse !== void 0 && apiResponse.connectionno ? apiResponse.connectionno : connectionNumber,
11134
+ info: apiResponse !== null && apiResponse !== void 0 && apiResponse.connectionno ? t("WS_CONNECTION_NO_LABEL") : t("WS_CONNECTION_NO_LABEL"),
11135
+ successful: selectedAction === "VERIFY"
11136
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, apiResponse !== null && apiResponse !== void 0 && apiResponse.message ? apiResponse.message : t("WF_ZRO_SUCCESS_MESSAGE_MAIN")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
11137
+ label: t("CORE_COMMON_GO_TO_HOME"),
11138
+ onSubmit: () => history.push("/digit-ui/employee/ws/zro-application")
11139
+ })));
11140
+ }
11141
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_VERIFICATION_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11142
+ label: t("WS_CONNECTION_NO_LABEL"),
11143
+ text: (verification === null || verification === void 0 ? void 0 : verification.connectionno) || "NA"
11144
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11145
+ label: t("WS_VERIFICATION_STATUS"),
11146
+ text: (verification === null || verification === void 0 ? void 0 : verification.status) || "NA"
11147
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11148
+ label: t("WS_CONSUMPTION_LABEL"),
11149
+ text: (verification === null || verification === void 0 ? void 0 : verification.consumption) ?? "NA"
11150
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11151
+ label: t("WS_PREVIOUS_CONSUMPTION"),
11152
+ text: (verification === null || verification === void 0 ? void 0 : verification.previousconsumption) ?? "NA"
11153
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11154
+ label: t("WS_DEVIATION_FACTOR"),
11155
+ text: verification !== null && verification !== void 0 && verification.deviationfactor ? Number(verification.deviationfactor).toFixed(2) : "NA"
11156
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11157
+ label: t("WS_REMARKS"),
11158
+ text: (verification === null || verification === void 0 ? void 0 : verification.remarks) || "NA"
11159
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
11160
+ style: {
11161
+ marginTop: "32px"
11162
+ }
11163
+ }, t("WS_BILLING_AND_CONSUMPTION_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11164
+ label: t("WS_BILLING_CYCLE_ID"),
11165
+ text: billingData.billingCycleId || "NA"
11166
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11167
+ label: t("WS_BILLING_PERIOD"),
11168
+ text: `${formatDate(billingData.billingPeriodFrom)} - ${formatDate(billingData.billingPeriodTo)}`
11169
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11170
+ label: t("WS_BILLING_DAYS"),
11171
+ text: billingData.billingDays ?? "NA"
11172
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11173
+ label: t("WS_PREVIOUS_READING_LABEL"),
11174
+ text: billingData.previousReading ?? "NA"
11175
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11176
+ label: t("WS_PREVIOUS_OK_READING_DATE"),
11177
+ text: formatDate(billingData.previousOkReadingDate)
11178
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11179
+ label: t("WS_CURRENT_READING_LABEL"),
11180
+ text: billingData.currentReading ?? "NA"
11181
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11182
+ label: t("WS_READING_QUALITY_CODE"),
11183
+ text: billingData.readingQualityCode || "NA"
11184
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11185
+ label: t("WS_BILLING_BASIS"),
11186
+ text: billingData.billingBasis || "NA"
11187
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11188
+ label: t("WS_ACTUAL_CONSUMPTION"),
11189
+ text: billingData.actualConsumption ?? "NA"
11190
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11191
+ label: t("WS_MONTHLY_CONSUMPTION"),
11192
+ text: billingData.monthlyConsumption ? Number(billingData.monthlyConsumption).toFixed(2) : "NA"
11193
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11194
+ label: t("WS_THRESHOLD_CONSUMPTION"),
11195
+ text: billingData.thresholdConsumption ? Number(billingData.thresholdConsumption).toFixed(2) : "NA"
11196
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11197
+ label: t("WS_1_5X_FLAG"),
11198
+ text: billingData.onePointFiveXFlag ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
11199
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11200
+ label: t("WS_BILLING_CYCLE_STATUS"),
11201
+ text: billingData.billingCycleStatus || "NA"
11202
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
11203
+ label: t("WS_CORRECTION_STATUS"),
11204
+ text: billingData.correctionStatus || "NA"
11205
+ }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, displayMenu ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Menu, {
11206
+ localeKeyPrefix: "WF_ZRO",
11207
+ options: ["VERIFY", "REJECT"],
11208
+ t: t,
11209
+ onSelect: onActionSelect
11210
+ }) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
11211
+ label: t("WF_TAKE_ACTION"),
11212
+ onSubmit: () => setDisplayMenu(!displayMenu)
11213
+ })), showModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
11214
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
11215
+ label: selectedAction === "VERIFY" ? t("WF_ZRO_VERIFY") : t("WF_ZRO_REJECT")
11216
+ }),
11217
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
11218
+ onClick: closeModal
11219
+ }),
11220
+ actionCancelLabel: t("CS_COMMON_CANCEL"),
11221
+ actionCancelOnSubmit: closeModal,
11222
+ actionSaveLabel: selectedAction === "VERIFY" ? t("WF_ZRO_VERIFY") : t("WF_ZRO_REJECT"),
11223
+ actionSaveOnSubmit: submitAction
11224
+ }, /*#__PURE__*/React__default.createElement("div", {
11225
+ style: {
11226
+ marginBottom: "16px"
11227
+ }
11228
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextArea, {
11229
+ name: "comments",
11230
+ value: comments,
11231
+ onChange: e => setComments(e.target.value)
11232
+ }))), toast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
11233
+ error: toast.error,
11234
+ label: toast.message,
11235
+ onClose: () => setToast(null)
11236
+ }));
11237
+ };
11238
+
10802
11239
  const BILLSBreadCrumbs = _ref => {
10803
11240
  var _applicationDetails$a, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a13, _applicationDetails$a14, _reciept_data$Payment2;
10804
11241
  const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
@@ -11248,6 +11685,15 @@ const BILLSBreadCrumbs = _ref => {
11248
11685
  path: "/digit-ui/employee/ws/water/calculation",
11249
11686
  label: t("WS_CALCULATION"),
11250
11687
  show: location.pathname.includes("/ws/water/calculation") ? true : false
11688
+ }, {
11689
+ path: "/digit-ui/employee/ws/zro-application",
11690
+ label: t("WS_ZRO_VERIFICATION"),
11691
+ show: location.pathname.includes("/ws/zro-application") || location.pathname.includes("/ws/zro-verification-details") ? true : false,
11692
+ isclickable: location.pathname.includes("/ws/zro-verification-details") ? true : false
11693
+ }, {
11694
+ path: "/digit-ui/employee/ws/zro-verification-details",
11695
+ label: t("WS_APPLICATION_DETAILS_HEADER"),
11696
+ show: location.pathname.includes("/ws/zro-verification-details") ? true : false
11251
11697
  }];
11252
11698
  let lastCrumbIndex = findLastIndex(crumbs, "show", true);
11253
11699
  crumbs[lastCrumbIndex] = {
@@ -11587,6 +12033,12 @@ const App$1 = _ref2 => {
11587
12033
  component: props => /*#__PURE__*/React__default.createElement(WSCalculation, _extends({}, props, {
11588
12034
  parentRoute: path
11589
12035
  }))
12036
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
12037
+ path: `${path}/zro-application`,
12038
+ component: () => /*#__PURE__*/React__default.createElement(WSZROVerification, null)
12039
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
12040
+ path: `${path}/zro-verification-details`,
12041
+ component: () => /*#__PURE__*/React__default.createElement(WSZROVerificationDetails, null)
11590
12042
  }))))));
11591
12043
  };
11592
12044
 
@@ -16759,31 +17211,6 @@ const WSActivationSupportingDocuments = _ref => {
16759
17211
  }))));
16760
17212
  };
16761
17213
 
16762
- const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
16763
- const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
16764
- function _catch$1(body, recover) {
16765
- try {
16766
- var result = body();
16767
- } catch (e) {
16768
- return recover(e);
16769
- }
16770
- if (result && result.then) {
16771
- return result.then(void 0, recover);
16772
- }
16773
- return result;
16774
- }
16775
- function _finallyRethrows$1(body, finalizer) {
16776
- try {
16777
- var result = body();
16778
- } catch (e) {
16779
- return finalizer(true, e);
16780
- }
16781
- if (result && result.then) {
16782
- return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
16783
- }
16784
- return finalizer(false, result);
16785
- }
16786
-
16787
17214
  var b = "function" === typeof Symbol && Symbol.for,
16788
17215
  c = b ? Symbol.for("react.element") : 60103,
16789
17216
  d = b ? Symbol.for("react.portal") : 60106,
@@ -17704,7 +18131,7 @@ ButtonSelector.defaultProps = {
17704
18131
  onSubmit: undefined
17705
18132
  };
17706
18133
 
17707
- const Close = _ref23 => {
18134
+ const Close$1 = _ref23 => {
17708
18135
  let {
17709
18136
  className,
17710
18137
  style
@@ -17740,7 +18167,7 @@ const RemoveableTag = _ref => {
17740
18167
  style: extraStyles ? extraStyles === null || extraStyles === void 0 ? void 0 : extraStyles.textStyles : {}
17741
18168
  }, text), /*#__PURE__*/React__default.createElement("span", {
17742
18169
  onClick: disabled ? null : onClick
17743
- }, /*#__PURE__*/React__default.createElement(Close, {
18170
+ }, /*#__PURE__*/React__default.createElement(Close$1, {
17744
18171
  className: "close",
17745
18172
  style: extraStyles ? extraStyles === null || extraStyles === void 0 ? void 0 : extraStyles.closeIconStyles : {}
17746
18173
  })));
@@ -17936,7 +18363,7 @@ const UploadFileDigiLocker = props => {
17936
18363
  try {
17937
18364
  let _exit = false;
17938
18365
  e.preventDefault();
17939
- return Promise.resolve(_catch$1(function () {
18366
+ return Promise.resolve(_catch(function () {
17940
18367
  function _temp13(_result) {
17941
18368
  if (_exit) return _result;
17942
18369
  let TokenReq = {
@@ -18147,7 +18574,7 @@ const UploadFileDigiLocker = props => {
18147
18574
  function _temp2() {
18148
18575
  _exit = true;
18149
18576
  }
18150
- const _temp = _catch$1(function () {
18577
+ const _temp = _catch(function () {
18151
18578
  const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
18152
18579
  return Promise.resolve(Digit.DigiLockerService.authorization({
18153
18580
  module: "WS",
@@ -27522,7 +27949,11 @@ const WSCard = () => {
27522
27949
  label: t("WS_APPLY_MUTATION"),
27523
27950
  link: `/digit-ui/employee/ws/mutation-application`,
27524
27951
  roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
27525
- }]
27952
+ }, {
27953
+ label: t("WS_ZRO_VERIFICATION"),
27954
+ link: `/digit-ui/employee/ws/zro-application`,
27955
+ roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
27956
+ }].filter(link => link.roles ? checkForEmployee(link.roles) : true)
27526
27957
  };
27527
27958
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.EmployeeModuleCard, propsForModuleCard);
27528
27959
  };
@@ -28407,24 +28838,11 @@ const newConfig = [{
28407
28838
  route: "property-water-details",
28408
28839
  component: "WSPropertyWaterConnection",
28409
28840
  key: "waterConnection",
28410
- nextStep: "bank-details",
28411
- WATER: "bank-details",
28412
- hideInEmployee: true,
28413
- texts: {
28414
- header: "WS_PROPERTY_ADDRESS_DETAILS",
28415
- cardText: "",
28416
- submitBarLabel: "CS_COMMON_NEXT"
28417
- }
28418
- }, {
28419
- route: "bank-details",
28420
- component: "WSBankDetails",
28421
- key: "bankDetails",
28422
28841
  nextStep: "disability-details",
28423
28842
  WATER: "disability-details",
28424
28843
  hideInEmployee: true,
28425
28844
  texts: {
28426
- headerCaption: "WS_COMMON_CONNECTION_DETAIL",
28427
- header: "WS_BANK_DETAILS",
28845
+ header: "WS_PROPERTY_ADDRESS_DETAILS",
28428
28846
  cardText: "",
28429
28847
  submitBarLabel: "CS_COMMON_NEXT"
28430
28848
  }
@@ -29392,1101 +29810,6 @@ const config = [{
29392
29810
  }]
29393
29811
  }];
29394
29812
 
29395
- /** @license React v16.13.1
29396
- * react-is.production.min.js
29397
- *
29398
- * Copyright (c) Facebook, Inc. and its affiliates.
29399
- *
29400
- * This source code is licensed under the MIT license found in the
29401
- * LICENSE file in the root directory of this source tree.
29402
- */
29403
- var b$1="function"===typeof Symbol&&Symbol.for,c$1=b$1?Symbol.for("react.element"):60103,d$1=b$1?Symbol.for("react.portal"):60106,e$1=b$1?Symbol.for("react.fragment"):60107,f$1=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h$1=b$1?Symbol.for("react.provider"):60109,k$1=b$1?Symbol.for("react.context"):60110,l$1=b$1?Symbol.for("react.async_mode"):60111,m$1=b$1?Symbol.for("react.concurrent_mode"):60111,n$1=b$1?Symbol.for("react.forward_ref"):60112,p$1=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?
29404
- Symbol.for("react.suspense_list"):60120,r$1=b$1?Symbol.for("react.memo"):60115,t$1=b$1?Symbol.for("react.lazy"):60116,v$1=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$1=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;
29405
- function z$1(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$1:switch(a=a.type,a){case l$1:case m$1:case e$1:case g$1:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n$1:case t$1:case r$1:case h$1:return a;default:return u}}case d$1:return u}}}function A$1(a){return z$1(a)===m$1}var AsyncMode$1=l$1;var ConcurrentMode$1=m$1;var ContextConsumer$1=k$1;var ContextProvider$1=h$1;var Element$1=c$1;var ForwardRef$1=n$1;var Fragment$1=e$1;var Lazy$1=t$1;var Memo$1=r$1;var Portal$1=d$1;
29406
- var Profiler$1=g$1;var StrictMode$1=f$1;var Suspense$1=p$1;var isAsyncMode$1=function(a){return A$1(a)||z$1(a)===l$1};var isConcurrentMode$1=A$1;var isContextConsumer$1=function(a){return z$1(a)===k$1};var isContextProvider$1=function(a){return z$1(a)===h$1};var isElement$1=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$1};var isForwardRef$1=function(a){return z$1(a)===n$1};var isFragment$1=function(a){return z$1(a)===e$1};var isLazy$1=function(a){return z$1(a)===t$1};
29407
- var isMemo$1=function(a){return z$1(a)===r$1};var isPortal$1=function(a){return z$1(a)===d$1};var isProfiler$1=function(a){return z$1(a)===g$1};var isStrictMode$1=function(a){return z$1(a)===f$1};var isSuspense$1=function(a){return z$1(a)===p$1};
29408
- var isValidElementType$1=function(a){return "string"===typeof a||"function"===typeof a||a===e$1||a===m$1||a===g$1||a===f$1||a===p$1||a===q$1||"object"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r$1||a.$$typeof===h$1||a.$$typeof===k$1||a.$$typeof===n$1||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$1)};var typeOf$1=z$1;
29409
-
29410
- var reactIs_production_min$1 = {
29411
- AsyncMode: AsyncMode$1,
29412
- ConcurrentMode: ConcurrentMode$1,
29413
- ContextConsumer: ContextConsumer$1,
29414
- ContextProvider: ContextProvider$1,
29415
- Element: Element$1,
29416
- ForwardRef: ForwardRef$1,
29417
- Fragment: Fragment$1,
29418
- Lazy: Lazy$1,
29419
- Memo: Memo$1,
29420
- Portal: Portal$1,
29421
- Profiler: Profiler$1,
29422
- StrictMode: StrictMode$1,
29423
- Suspense: Suspense$1,
29424
- isAsyncMode: isAsyncMode$1,
29425
- isConcurrentMode: isConcurrentMode$1,
29426
- isContextConsumer: isContextConsumer$1,
29427
- isContextProvider: isContextProvider$1,
29428
- isElement: isElement$1,
29429
- isForwardRef: isForwardRef$1,
29430
- isFragment: isFragment$1,
29431
- isLazy: isLazy$1,
29432
- isMemo: isMemo$1,
29433
- isPortal: isPortal$1,
29434
- isProfiler: isProfiler$1,
29435
- isStrictMode: isStrictMode$1,
29436
- isSuspense: isSuspense$1,
29437
- isValidElementType: isValidElementType$1,
29438
- typeOf: typeOf$1
29439
- };
29440
-
29441
- var reactIs_development$1 = createCommonjsModule(function (module, exports) {
29442
-
29443
-
29444
-
29445
- if (process.env.NODE_ENV !== "production") {
29446
- (function() {
29447
-
29448
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
29449
- // nor polyfill, then a plain number is used for performance.
29450
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
29451
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
29452
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
29453
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
29454
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
29455
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
29456
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
29457
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
29458
- // (unstable) APIs that have been removed. Can we remove the symbols?
29459
-
29460
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
29461
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
29462
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
29463
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
29464
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
29465
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
29466
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
29467
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
29468
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
29469
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
29470
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
29471
-
29472
- function isValidElementType(type) {
29473
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
29474
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
29475
- }
29476
-
29477
- function typeOf(object) {
29478
- if (typeof object === 'object' && object !== null) {
29479
- var $$typeof = object.$$typeof;
29480
-
29481
- switch ($$typeof) {
29482
- case REACT_ELEMENT_TYPE:
29483
- var type = object.type;
29484
-
29485
- switch (type) {
29486
- case REACT_ASYNC_MODE_TYPE:
29487
- case REACT_CONCURRENT_MODE_TYPE:
29488
- case REACT_FRAGMENT_TYPE:
29489
- case REACT_PROFILER_TYPE:
29490
- case REACT_STRICT_MODE_TYPE:
29491
- case REACT_SUSPENSE_TYPE:
29492
- return type;
29493
-
29494
- default:
29495
- var $$typeofType = type && type.$$typeof;
29496
-
29497
- switch ($$typeofType) {
29498
- case REACT_CONTEXT_TYPE:
29499
- case REACT_FORWARD_REF_TYPE:
29500
- case REACT_LAZY_TYPE:
29501
- case REACT_MEMO_TYPE:
29502
- case REACT_PROVIDER_TYPE:
29503
- return $$typeofType;
29504
-
29505
- default:
29506
- return $$typeof;
29507
- }
29508
-
29509
- }
29510
-
29511
- case REACT_PORTAL_TYPE:
29512
- return $$typeof;
29513
- }
29514
- }
29515
-
29516
- return undefined;
29517
- } // AsyncMode is deprecated along with isAsyncMode
29518
-
29519
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
29520
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
29521
- var ContextConsumer = REACT_CONTEXT_TYPE;
29522
- var ContextProvider = REACT_PROVIDER_TYPE;
29523
- var Element = REACT_ELEMENT_TYPE;
29524
- var ForwardRef = REACT_FORWARD_REF_TYPE;
29525
- var Fragment = REACT_FRAGMENT_TYPE;
29526
- var Lazy = REACT_LAZY_TYPE;
29527
- var Memo = REACT_MEMO_TYPE;
29528
- var Portal = REACT_PORTAL_TYPE;
29529
- var Profiler = REACT_PROFILER_TYPE;
29530
- var StrictMode = REACT_STRICT_MODE_TYPE;
29531
- var Suspense = REACT_SUSPENSE_TYPE;
29532
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
29533
-
29534
- function isAsyncMode(object) {
29535
- {
29536
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
29537
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
29538
-
29539
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
29540
- }
29541
- }
29542
-
29543
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
29544
- }
29545
- function isConcurrentMode(object) {
29546
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
29547
- }
29548
- function isContextConsumer(object) {
29549
- return typeOf(object) === REACT_CONTEXT_TYPE;
29550
- }
29551
- function isContextProvider(object) {
29552
- return typeOf(object) === REACT_PROVIDER_TYPE;
29553
- }
29554
- function isElement(object) {
29555
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
29556
- }
29557
- function isForwardRef(object) {
29558
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
29559
- }
29560
- function isFragment(object) {
29561
- return typeOf(object) === REACT_FRAGMENT_TYPE;
29562
- }
29563
- function isLazy(object) {
29564
- return typeOf(object) === REACT_LAZY_TYPE;
29565
- }
29566
- function isMemo(object) {
29567
- return typeOf(object) === REACT_MEMO_TYPE;
29568
- }
29569
- function isPortal(object) {
29570
- return typeOf(object) === REACT_PORTAL_TYPE;
29571
- }
29572
- function isProfiler(object) {
29573
- return typeOf(object) === REACT_PROFILER_TYPE;
29574
- }
29575
- function isStrictMode(object) {
29576
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
29577
- }
29578
- function isSuspense(object) {
29579
- return typeOf(object) === REACT_SUSPENSE_TYPE;
29580
- }
29581
-
29582
- exports.AsyncMode = AsyncMode;
29583
- exports.ConcurrentMode = ConcurrentMode;
29584
- exports.ContextConsumer = ContextConsumer;
29585
- exports.ContextProvider = ContextProvider;
29586
- exports.Element = Element;
29587
- exports.ForwardRef = ForwardRef;
29588
- exports.Fragment = Fragment;
29589
- exports.Lazy = Lazy;
29590
- exports.Memo = Memo;
29591
- exports.Portal = Portal;
29592
- exports.Profiler = Profiler;
29593
- exports.StrictMode = StrictMode;
29594
- exports.Suspense = Suspense;
29595
- exports.isAsyncMode = isAsyncMode;
29596
- exports.isConcurrentMode = isConcurrentMode;
29597
- exports.isContextConsumer = isContextConsumer;
29598
- exports.isContextProvider = isContextProvider;
29599
- exports.isElement = isElement;
29600
- exports.isForwardRef = isForwardRef;
29601
- exports.isFragment = isFragment;
29602
- exports.isLazy = isLazy;
29603
- exports.isMemo = isMemo;
29604
- exports.isPortal = isPortal;
29605
- exports.isProfiler = isProfiler;
29606
- exports.isStrictMode = isStrictMode;
29607
- exports.isSuspense = isSuspense;
29608
- exports.isValidElementType = isValidElementType;
29609
- exports.typeOf = typeOf;
29610
- })();
29611
- }
29612
- });
29613
-
29614
- var reactIs$1 = createCommonjsModule(function (module) {
29615
-
29616
- if (process.env.NODE_ENV === 'production') {
29617
- module.exports = reactIs_production_min$1;
29618
- } else {
29619
- module.exports = reactIs_development$1;
29620
- }
29621
- });
29622
-
29623
- /*
29624
- object-assign
29625
- (c) Sindre Sorhus
29626
- @license MIT
29627
- */
29628
- /* eslint-disable no-unused-vars */
29629
- var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
29630
- var hasOwnProperty$b = Object.prototype.hasOwnProperty;
29631
- var propIsEnumerable$1 = Object.prototype.propertyIsEnumerable;
29632
-
29633
- function toObject$1(val) {
29634
- if (val === null || val === undefined) {
29635
- throw new TypeError('Object.assign cannot be called with null or undefined');
29636
- }
29637
-
29638
- return Object(val);
29639
- }
29640
-
29641
- function shouldUseNative$1() {
29642
- try {
29643
- if (!Object.assign) {
29644
- return false;
29645
- }
29646
-
29647
- // Detect buggy property enumeration order in older V8 versions.
29648
-
29649
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
29650
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
29651
- test1[5] = 'de';
29652
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
29653
- return false;
29654
- }
29655
-
29656
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
29657
- var test2 = {};
29658
- for (var i = 0; i < 10; i++) {
29659
- test2['_' + String.fromCharCode(i)] = i;
29660
- }
29661
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
29662
- return test2[n];
29663
- });
29664
- if (order2.join('') !== '0123456789') {
29665
- return false;
29666
- }
29667
-
29668
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
29669
- var test3 = {};
29670
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
29671
- test3[letter] = letter;
29672
- });
29673
- if (Object.keys(Object.assign({}, test3)).join('') !==
29674
- 'abcdefghijklmnopqrst') {
29675
- return false;
29676
- }
29677
-
29678
- return true;
29679
- } catch (err) {
29680
- // We don't expect any of the above to throw, but better to be safe.
29681
- return false;
29682
- }
29683
- }
29684
-
29685
- var objectAssign$1 = shouldUseNative$1() ? Object.assign : function (target, source) {
29686
- var from;
29687
- var to = toObject$1(target);
29688
- var symbols;
29689
-
29690
- for (var s = 1; s < arguments.length; s++) {
29691
- from = Object(arguments[s]);
29692
-
29693
- for (var key in from) {
29694
- if (hasOwnProperty$b.call(from, key)) {
29695
- to[key] = from[key];
29696
- }
29697
- }
29698
-
29699
- if (getOwnPropertySymbols$1) {
29700
- symbols = getOwnPropertySymbols$1(from);
29701
- for (var i = 0; i < symbols.length; i++) {
29702
- if (propIsEnumerable$1.call(from, symbols[i])) {
29703
- to[symbols[i]] = from[symbols[i]];
29704
- }
29705
- }
29706
- }
29707
- }
29708
-
29709
- return to;
29710
- };
29711
-
29712
- /**
29713
- * Copyright (c) 2013-present, Facebook, Inc.
29714
- *
29715
- * This source code is licensed under the MIT license found in the
29716
- * LICENSE file in the root directory of this source tree.
29717
- */
29718
-
29719
- var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
29720
-
29721
- var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$2;
29722
-
29723
- var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
29724
-
29725
- var printWarning$2 = function() {};
29726
-
29727
- if (process.env.NODE_ENV !== 'production') {
29728
- var ReactPropTypesSecret$3 = ReactPropTypesSecret_1$1;
29729
- var loggedTypeFailures$1 = {};
29730
- var has$3 = has$2;
29731
-
29732
- printWarning$2 = function(text) {
29733
- var message = 'Warning: ' + text;
29734
- if (typeof console !== 'undefined') {
29735
- console.error(message);
29736
- }
29737
- try {
29738
- // --- Welcome to debugging React ---
29739
- // This error was thrown as a convenience so that you can use this stack
29740
- // to find the callsite that caused this warning to fire.
29741
- throw new Error(message);
29742
- } catch (x) { /**/ }
29743
- };
29744
- }
29745
-
29746
- /**
29747
- * Assert that the values match with the type specs.
29748
- * Error messages are memorized and will only be shown once.
29749
- *
29750
- * @param {object} typeSpecs Map of name to a ReactPropType
29751
- * @param {object} values Runtime values that need to be type-checked
29752
- * @param {string} location e.g. "prop", "context", "child context"
29753
- * @param {string} componentName Name of the component for error messages.
29754
- * @param {?Function} getStack Returns the component stack.
29755
- * @private
29756
- */
29757
- function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
29758
- if (process.env.NODE_ENV !== 'production') {
29759
- for (var typeSpecName in typeSpecs) {
29760
- if (has$3(typeSpecs, typeSpecName)) {
29761
- var error;
29762
- // Prop type validation may throw. In case they do, we don't want to
29763
- // fail the render phase where it didn't fail before. So we log it.
29764
- // After these have been cleaned up, we'll let them throw.
29765
- try {
29766
- // This is intentionally an invariant that gets caught. It's the same
29767
- // behavior as without this statement except with a better message.
29768
- if (typeof typeSpecs[typeSpecName] !== 'function') {
29769
- var err = Error(
29770
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
29771
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
29772
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
29773
- );
29774
- err.name = 'Invariant Violation';
29775
- throw err;
29776
- }
29777
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$3);
29778
- } catch (ex) {
29779
- error = ex;
29780
- }
29781
- if (error && !(error instanceof Error)) {
29782
- printWarning$2(
29783
- (componentName || 'React class') + ': type specification of ' +
29784
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
29785
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
29786
- 'You may have forgotten to pass an argument to the type checker ' +
29787
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
29788
- 'shape all require an argument).'
29789
- );
29790
- }
29791
- if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
29792
- // Only monitor this failure once because there tends to be a lot of the
29793
- // same error.
29794
- loggedTypeFailures$1[error.message] = true;
29795
-
29796
- var stack = getStack ? getStack() : '';
29797
-
29798
- printWarning$2(
29799
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
29800
- );
29801
- }
29802
- }
29803
- }
29804
- }
29805
- }
29806
-
29807
- /**
29808
- * Resets warning cache when testing.
29809
- *
29810
- * @private
29811
- */
29812
- checkPropTypes$1.resetWarningCache = function() {
29813
- if (process.env.NODE_ENV !== 'production') {
29814
- loggedTypeFailures$1 = {};
29815
- }
29816
- };
29817
-
29818
- var checkPropTypes_1$1 = checkPropTypes$1;
29819
-
29820
- var printWarning$3 = function() {};
29821
-
29822
- if (process.env.NODE_ENV !== 'production') {
29823
- printWarning$3 = function(text) {
29824
- var message = 'Warning: ' + text;
29825
- if (typeof console !== 'undefined') {
29826
- console.error(message);
29827
- }
29828
- try {
29829
- // --- Welcome to debugging React ---
29830
- // This error was thrown as a convenience so that you can use this stack
29831
- // to find the callsite that caused this warning to fire.
29832
- throw new Error(message);
29833
- } catch (x) {}
29834
- };
29835
- }
29836
-
29837
- function emptyFunctionThatReturnsNull$1() {
29838
- return null;
29839
- }
29840
-
29841
- var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
29842
- /* global Symbol */
29843
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
29844
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
29845
-
29846
- /**
29847
- * Returns the iterator method function contained on the iterable object.
29848
- *
29849
- * Be sure to invoke the function with the iterable as context:
29850
- *
29851
- * var iteratorFn = getIteratorFn(myIterable);
29852
- * if (iteratorFn) {
29853
- * var iterator = iteratorFn.call(myIterable);
29854
- * ...
29855
- * }
29856
- *
29857
- * @param {?object} maybeIterable
29858
- * @return {?function}
29859
- */
29860
- function getIteratorFn(maybeIterable) {
29861
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
29862
- if (typeof iteratorFn === 'function') {
29863
- return iteratorFn;
29864
- }
29865
- }
29866
-
29867
- /**
29868
- * Collection of methods that allow declaration and validation of props that are
29869
- * supplied to React components. Example usage:
29870
- *
29871
- * var Props = require('ReactPropTypes');
29872
- * var MyArticle = React.createClass({
29873
- * propTypes: {
29874
- * // An optional string prop named "description".
29875
- * description: Props.string,
29876
- *
29877
- * // A required enum prop named "category".
29878
- * category: Props.oneOf(['News','Photos']).isRequired,
29879
- *
29880
- * // A prop named "dialog" that requires an instance of Dialog.
29881
- * dialog: Props.instanceOf(Dialog).isRequired
29882
- * },
29883
- * render: function() { ... }
29884
- * });
29885
- *
29886
- * A more formal specification of how these methods are used:
29887
- *
29888
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
29889
- * decl := ReactPropTypes.{type}(.isRequired)?
29890
- *
29891
- * Each and every declaration produces a function with the same signature. This
29892
- * allows the creation of custom validation functions. For example:
29893
- *
29894
- * var MyLink = React.createClass({
29895
- * propTypes: {
29896
- * // An optional string or URI prop named "href".
29897
- * href: function(props, propName, componentName) {
29898
- * var propValue = props[propName];
29899
- * if (propValue != null && typeof propValue !== 'string' &&
29900
- * !(propValue instanceof URI)) {
29901
- * return new Error(
29902
- * 'Expected a string or an URI for ' + propName + ' in ' +
29903
- * componentName
29904
- * );
29905
- * }
29906
- * }
29907
- * },
29908
- * render: function() {...}
29909
- * });
29910
- *
29911
- * @internal
29912
- */
29913
-
29914
- var ANONYMOUS = '<<anonymous>>';
29915
-
29916
- // Important!
29917
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
29918
- var ReactPropTypes = {
29919
- array: createPrimitiveTypeChecker('array'),
29920
- bigint: createPrimitiveTypeChecker('bigint'),
29921
- bool: createPrimitiveTypeChecker('boolean'),
29922
- func: createPrimitiveTypeChecker('function'),
29923
- number: createPrimitiveTypeChecker('number'),
29924
- object: createPrimitiveTypeChecker('object'),
29925
- string: createPrimitiveTypeChecker('string'),
29926
- symbol: createPrimitiveTypeChecker('symbol'),
29927
-
29928
- any: createAnyTypeChecker(),
29929
- arrayOf: createArrayOfTypeChecker,
29930
- element: createElementTypeChecker(),
29931
- elementType: createElementTypeTypeChecker(),
29932
- instanceOf: createInstanceTypeChecker,
29933
- node: createNodeChecker(),
29934
- objectOf: createObjectOfTypeChecker,
29935
- oneOf: createEnumTypeChecker,
29936
- oneOfType: createUnionTypeChecker,
29937
- shape: createShapeTypeChecker,
29938
- exact: createStrictShapeTypeChecker,
29939
- };
29940
-
29941
- /**
29942
- * inlined Object.is polyfill to avoid requiring consumers ship their own
29943
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
29944
- */
29945
- /*eslint-disable no-self-compare*/
29946
- function is(x, y) {
29947
- // SameValue algorithm
29948
- if (x === y) {
29949
- // Steps 1-5, 7-10
29950
- // Steps 6.b-6.e: +0 != -0
29951
- return x !== 0 || 1 / x === 1 / y;
29952
- } else {
29953
- // Step 6.a: NaN == NaN
29954
- return x !== x && y !== y;
29955
- }
29956
- }
29957
- /*eslint-enable no-self-compare*/
29958
-
29959
- /**
29960
- * We use an Error-like object for backward compatibility as people may call
29961
- * PropTypes directly and inspect their output. However, we don't use real
29962
- * Errors anymore. We don't inspect their stack anyway, and creating them
29963
- * is prohibitively expensive if they are created too often, such as what
29964
- * happens in oneOfType() for any type before the one that matched.
29965
- */
29966
- function PropTypeError(message, data) {
29967
- this.message = message;
29968
- this.data = data && typeof data === 'object' ? data: {};
29969
- this.stack = '';
29970
- }
29971
- // Make `instanceof Error` still work for returned errors.
29972
- PropTypeError.prototype = Error.prototype;
29973
-
29974
- function createChainableTypeChecker(validate) {
29975
- if (process.env.NODE_ENV !== 'production') {
29976
- var manualPropTypeCallCache = {};
29977
- var manualPropTypeWarningCount = 0;
29978
- }
29979
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
29980
- componentName = componentName || ANONYMOUS;
29981
- propFullName = propFullName || propName;
29982
-
29983
- if (secret !== ReactPropTypesSecret_1$1) {
29984
- if (throwOnDirectAccess) {
29985
- // New behavior only for users of `prop-types` package
29986
- var err = new Error(
29987
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
29988
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
29989
- 'Read more at http://fb.me/use-check-prop-types'
29990
- );
29991
- err.name = 'Invariant Violation';
29992
- throw err;
29993
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
29994
- // Old behavior for people using React.PropTypes
29995
- var cacheKey = componentName + ':' + propName;
29996
- if (
29997
- !manualPropTypeCallCache[cacheKey] &&
29998
- // Avoid spamming the console because they are often not actionable except for lib authors
29999
- manualPropTypeWarningCount < 3
30000
- ) {
30001
- printWarning$3(
30002
- 'You are manually calling a React.PropTypes validation ' +
30003
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
30004
- 'and will throw in the standalone `prop-types` package. ' +
30005
- 'You may be seeing this warning due to a third-party PropTypes ' +
30006
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
30007
- );
30008
- manualPropTypeCallCache[cacheKey] = true;
30009
- manualPropTypeWarningCount++;
30010
- }
30011
- }
30012
- }
30013
- if (props[propName] == null) {
30014
- if (isRequired) {
30015
- if (props[propName] === null) {
30016
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
30017
- }
30018
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
30019
- }
30020
- return null;
30021
- } else {
30022
- return validate(props, propName, componentName, location, propFullName);
30023
- }
30024
- }
30025
-
30026
- var chainedCheckType = checkType.bind(null, false);
30027
- chainedCheckType.isRequired = checkType.bind(null, true);
30028
-
30029
- return chainedCheckType;
30030
- }
30031
-
30032
- function createPrimitiveTypeChecker(expectedType) {
30033
- function validate(props, propName, componentName, location, propFullName, secret) {
30034
- var propValue = props[propName];
30035
- var propType = getPropType(propValue);
30036
- if (propType !== expectedType) {
30037
- // `propValue` being instance of, say, date/regexp, pass the 'object'
30038
- // check, but we can offer a more precise error message here rather than
30039
- // 'of type `object`'.
30040
- var preciseType = getPreciseType(propValue);
30041
-
30042
- return new PropTypeError(
30043
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
30044
- {expectedType: expectedType}
30045
- );
30046
- }
30047
- return null;
30048
- }
30049
- return createChainableTypeChecker(validate);
30050
- }
30051
-
30052
- function createAnyTypeChecker() {
30053
- return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
30054
- }
30055
-
30056
- function createArrayOfTypeChecker(typeChecker) {
30057
- function validate(props, propName, componentName, location, propFullName) {
30058
- if (typeof typeChecker !== 'function') {
30059
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
30060
- }
30061
- var propValue = props[propName];
30062
- if (!Array.isArray(propValue)) {
30063
- var propType = getPropType(propValue);
30064
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
30065
- }
30066
- for (var i = 0; i < propValue.length; i++) {
30067
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1$1);
30068
- if (error instanceof Error) {
30069
- return error;
30070
- }
30071
- }
30072
- return null;
30073
- }
30074
- return createChainableTypeChecker(validate);
30075
- }
30076
-
30077
- function createElementTypeChecker() {
30078
- function validate(props, propName, componentName, location, propFullName) {
30079
- var propValue = props[propName];
30080
- if (!isValidElement(propValue)) {
30081
- var propType = getPropType(propValue);
30082
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
30083
- }
30084
- return null;
30085
- }
30086
- return createChainableTypeChecker(validate);
30087
- }
30088
-
30089
- function createElementTypeTypeChecker() {
30090
- function validate(props, propName, componentName, location, propFullName) {
30091
- var propValue = props[propName];
30092
- if (!reactIs$1.isValidElementType(propValue)) {
30093
- var propType = getPropType(propValue);
30094
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
30095
- }
30096
- return null;
30097
- }
30098
- return createChainableTypeChecker(validate);
30099
- }
30100
-
30101
- function createInstanceTypeChecker(expectedClass) {
30102
- function validate(props, propName, componentName, location, propFullName) {
30103
- if (!(props[propName] instanceof expectedClass)) {
30104
- var expectedClassName = expectedClass.name || ANONYMOUS;
30105
- var actualClassName = getClassName(props[propName]);
30106
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
30107
- }
30108
- return null;
30109
- }
30110
- return createChainableTypeChecker(validate);
30111
- }
30112
-
30113
- function createEnumTypeChecker(expectedValues) {
30114
- if (!Array.isArray(expectedValues)) {
30115
- if (process.env.NODE_ENV !== 'production') {
30116
- if (arguments.length > 1) {
30117
- printWarning$3(
30118
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
30119
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
30120
- );
30121
- } else {
30122
- printWarning$3('Invalid argument supplied to oneOf, expected an array.');
30123
- }
30124
- }
30125
- return emptyFunctionThatReturnsNull$1;
30126
- }
30127
-
30128
- function validate(props, propName, componentName, location, propFullName) {
30129
- var propValue = props[propName];
30130
- for (var i = 0; i < expectedValues.length; i++) {
30131
- if (is(propValue, expectedValues[i])) {
30132
- return null;
30133
- }
30134
- }
30135
-
30136
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
30137
- var type = getPreciseType(value);
30138
- if (type === 'symbol') {
30139
- return String(value);
30140
- }
30141
- return value;
30142
- });
30143
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
30144
- }
30145
- return createChainableTypeChecker(validate);
30146
- }
30147
-
30148
- function createObjectOfTypeChecker(typeChecker) {
30149
- function validate(props, propName, componentName, location, propFullName) {
30150
- if (typeof typeChecker !== 'function') {
30151
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
30152
- }
30153
- var propValue = props[propName];
30154
- var propType = getPropType(propValue);
30155
- if (propType !== 'object') {
30156
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
30157
- }
30158
- for (var key in propValue) {
30159
- if (has$2(propValue, key)) {
30160
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
30161
- if (error instanceof Error) {
30162
- return error;
30163
- }
30164
- }
30165
- }
30166
- return null;
30167
- }
30168
- return createChainableTypeChecker(validate);
30169
- }
30170
-
30171
- function createUnionTypeChecker(arrayOfTypeCheckers) {
30172
- if (!Array.isArray(arrayOfTypeCheckers)) {
30173
- process.env.NODE_ENV !== 'production' ? printWarning$3('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
30174
- return emptyFunctionThatReturnsNull$1;
30175
- }
30176
-
30177
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
30178
- var checker = arrayOfTypeCheckers[i];
30179
- if (typeof checker !== 'function') {
30180
- printWarning$3(
30181
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
30182
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
30183
- );
30184
- return emptyFunctionThatReturnsNull$1;
30185
- }
30186
- }
30187
-
30188
- function validate(props, propName, componentName, location, propFullName) {
30189
- var expectedTypes = [];
30190
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
30191
- var checker = arrayOfTypeCheckers[i];
30192
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1$1);
30193
- if (checkerResult == null) {
30194
- return null;
30195
- }
30196
- if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
30197
- expectedTypes.push(checkerResult.data.expectedType);
30198
- }
30199
- }
30200
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
30201
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
30202
- }
30203
- return createChainableTypeChecker(validate);
30204
- }
30205
-
30206
- function createNodeChecker() {
30207
- function validate(props, propName, componentName, location, propFullName) {
30208
- if (!isNode(props[propName])) {
30209
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
30210
- }
30211
- return null;
30212
- }
30213
- return createChainableTypeChecker(validate);
30214
- }
30215
-
30216
- function invalidValidatorError(componentName, location, propFullName, key, type) {
30217
- return new PropTypeError(
30218
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
30219
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
30220
- );
30221
- }
30222
-
30223
- function createShapeTypeChecker(shapeTypes) {
30224
- function validate(props, propName, componentName, location, propFullName) {
30225
- var propValue = props[propName];
30226
- var propType = getPropType(propValue);
30227
- if (propType !== 'object') {
30228
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
30229
- }
30230
- for (var key in shapeTypes) {
30231
- var checker = shapeTypes[key];
30232
- if (typeof checker !== 'function') {
30233
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
30234
- }
30235
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
30236
- if (error) {
30237
- return error;
30238
- }
30239
- }
30240
- return null;
30241
- }
30242
- return createChainableTypeChecker(validate);
30243
- }
30244
-
30245
- function createStrictShapeTypeChecker(shapeTypes) {
30246
- function validate(props, propName, componentName, location, propFullName) {
30247
- var propValue = props[propName];
30248
- var propType = getPropType(propValue);
30249
- if (propType !== 'object') {
30250
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
30251
- }
30252
- // We need to check all keys in case some are required but missing from props.
30253
- var allKeys = objectAssign$1({}, props[propName], shapeTypes);
30254
- for (var key in allKeys) {
30255
- var checker = shapeTypes[key];
30256
- if (has$2(shapeTypes, key) && typeof checker !== 'function') {
30257
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
30258
- }
30259
- if (!checker) {
30260
- return new PropTypeError(
30261
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
30262
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
30263
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
30264
- );
30265
- }
30266
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
30267
- if (error) {
30268
- return error;
30269
- }
30270
- }
30271
- return null;
30272
- }
30273
-
30274
- return createChainableTypeChecker(validate);
30275
- }
30276
-
30277
- function isNode(propValue) {
30278
- switch (typeof propValue) {
30279
- case 'number':
30280
- case 'string':
30281
- case 'undefined':
30282
- return true;
30283
- case 'boolean':
30284
- return !propValue;
30285
- case 'object':
30286
- if (Array.isArray(propValue)) {
30287
- return propValue.every(isNode);
30288
- }
30289
- if (propValue === null || isValidElement(propValue)) {
30290
- return true;
30291
- }
30292
-
30293
- var iteratorFn = getIteratorFn(propValue);
30294
- if (iteratorFn) {
30295
- var iterator = iteratorFn.call(propValue);
30296
- var step;
30297
- if (iteratorFn !== propValue.entries) {
30298
- while (!(step = iterator.next()).done) {
30299
- if (!isNode(step.value)) {
30300
- return false;
30301
- }
30302
- }
30303
- } else {
30304
- // Iterator will provide entry [k,v] tuples rather than values.
30305
- while (!(step = iterator.next()).done) {
30306
- var entry = step.value;
30307
- if (entry) {
30308
- if (!isNode(entry[1])) {
30309
- return false;
30310
- }
30311
- }
30312
- }
30313
- }
30314
- } else {
30315
- return false;
30316
- }
30317
-
30318
- return true;
30319
- default:
30320
- return false;
30321
- }
30322
- }
30323
-
30324
- function isSymbol(propType, propValue) {
30325
- // Native Symbol.
30326
- if (propType === 'symbol') {
30327
- return true;
30328
- }
30329
-
30330
- // falsy value can't be a Symbol
30331
- if (!propValue) {
30332
- return false;
30333
- }
30334
-
30335
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
30336
- if (propValue['@@toStringTag'] === 'Symbol') {
30337
- return true;
30338
- }
30339
-
30340
- // Fallback for non-spec compliant Symbols which are polyfilled.
30341
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
30342
- return true;
30343
- }
30344
-
30345
- return false;
30346
- }
30347
-
30348
- // Equivalent of `typeof` but with special handling for array and regexp.
30349
- function getPropType(propValue) {
30350
- var propType = typeof propValue;
30351
- if (Array.isArray(propValue)) {
30352
- return 'array';
30353
- }
30354
- if (propValue instanceof RegExp) {
30355
- // Old webkits (at least until Android 4.0) return 'function' rather than
30356
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
30357
- // passes PropTypes.object.
30358
- return 'object';
30359
- }
30360
- if (isSymbol(propType, propValue)) {
30361
- return 'symbol';
30362
- }
30363
- return propType;
30364
- }
30365
-
30366
- // This handles more types than `getPropType`. Only used for error messages.
30367
- // See `createPrimitiveTypeChecker`.
30368
- function getPreciseType(propValue) {
30369
- if (typeof propValue === 'undefined' || propValue === null) {
30370
- return '' + propValue;
30371
- }
30372
- var propType = getPropType(propValue);
30373
- if (propType === 'object') {
30374
- if (propValue instanceof Date) {
30375
- return 'date';
30376
- } else if (propValue instanceof RegExp) {
30377
- return 'regexp';
30378
- }
30379
- }
30380
- return propType;
30381
- }
30382
-
30383
- // Returns a string that is postfixed to a warning about an invalid type.
30384
- // For example, "undefined" or "of type array"
30385
- function getPostfixForTypeWarning(value) {
30386
- var type = getPreciseType(value);
30387
- switch (type) {
30388
- case 'array':
30389
- case 'object':
30390
- return 'an ' + type;
30391
- case 'boolean':
30392
- case 'date':
30393
- case 'regexp':
30394
- return 'a ' + type;
30395
- default:
30396
- return type;
30397
- }
30398
- }
30399
-
30400
- // Returns class name of the object, if any.
30401
- function getClassName(propValue) {
30402
- if (!propValue.constructor || !propValue.constructor.name) {
30403
- return ANONYMOUS;
30404
- }
30405
- return propValue.constructor.name;
30406
- }
30407
-
30408
- ReactPropTypes.checkPropTypes = checkPropTypes_1$1;
30409
- ReactPropTypes.resetWarningCache = checkPropTypes_1$1.resetWarningCache;
30410
- ReactPropTypes.PropTypes = ReactPropTypes;
30411
-
30412
- return ReactPropTypes;
30413
- };
30414
-
30415
- function emptyFunction$1() {}
30416
- function emptyFunctionWithReset$1() {}
30417
- emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
30418
-
30419
- var factoryWithThrowingShims$1 = function() {
30420
- function shim(props, propName, componentName, location, propFullName, secret) {
30421
- if (secret === ReactPropTypesSecret_1$1) {
30422
- // It is still safe when called from React.
30423
- return;
30424
- }
30425
- var err = new Error(
30426
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
30427
- 'Use PropTypes.checkPropTypes() to call them. ' +
30428
- 'Read more at http://fb.me/use-check-prop-types'
30429
- );
30430
- err.name = 'Invariant Violation';
30431
- throw err;
30432
- } shim.isRequired = shim;
30433
- function getShim() {
30434
- return shim;
30435
- } // Important!
30436
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
30437
- var ReactPropTypes = {
30438
- array: shim,
30439
- bigint: shim,
30440
- bool: shim,
30441
- func: shim,
30442
- number: shim,
30443
- object: shim,
30444
- string: shim,
30445
- symbol: shim,
30446
-
30447
- any: shim,
30448
- arrayOf: getShim,
30449
- element: shim,
30450
- elementType: shim,
30451
- instanceOf: getShim,
30452
- node: shim,
30453
- objectOf: getShim,
30454
- oneOf: getShim,
30455
- oneOfType: getShim,
30456
- shape: getShim,
30457
- exact: getShim,
30458
-
30459
- checkPropTypes: emptyFunctionWithReset$1,
30460
- resetWarningCache: emptyFunction$1
30461
- };
30462
-
30463
- ReactPropTypes.PropTypes = ReactPropTypes;
30464
-
30465
- return ReactPropTypes;
30466
- };
30467
-
30468
- var propTypes$1 = createCommonjsModule(function (module) {
30469
- /**
30470
- * Copyright (c) 2013-present, Facebook, Inc.
30471
- *
30472
- * This source code is licensed under the MIT license found in the
30473
- * LICENSE file in the root directory of this source tree.
30474
- */
30475
-
30476
- if (process.env.NODE_ENV !== 'production') {
30477
- var ReactIs = reactIs$1;
30478
-
30479
- // By explicitly using `prop-types` you are opting into new development behavior.
30480
- // http://fb.me/prop-types-in-prod
30481
- var throwOnDirectAccess = true;
30482
- module.exports = factoryWithTypeCheckers$1(ReactIs.isElement, throwOnDirectAccess);
30483
- } else {
30484
- // By explicitly using `prop-types` you are opting into new production behavior.
30485
- // http://fb.me/prop-types-in-prod
30486
- module.exports = factoryWithThrowingShims$1();
30487
- }
30488
- });
30489
-
30490
29813
  const SearchConnection = _ref => {
30491
29814
  var _Digit$Hooks$ws$usews;
30492
29815
  let {
@@ -30888,7 +30211,7 @@ const SearchConnection = _ref => {
30888
30211
  }));
30889
30212
  };
30890
30213
  SearchConnection.propTypes = {
30891
- loginParams: propTypes$1.any
30214
+ loginParams: propTypes.any
30892
30215
  };
30893
30216
  SearchConnection.defaultProps = {
30894
30217
  loginParams: null
@@ -31864,9 +31187,9 @@ const ChallanSearchResults = _ref => {
31864
31187
  }, t("WS_CLICK_HERE_TO_APPLY"))))));
31865
31188
  };
31866
31189
  ChallanSearchResults.propTypes = {
31867
- template: propTypes$1.any,
31868
- header: propTypes$1.string,
31869
- actionButtonLabel: propTypes$1.string
31190
+ template: propTypes.any,
31191
+ header: propTypes.string,
31192
+ actionButtonLabel: propTypes.string
31870
31193
  };
31871
31194
  ChallanSearchResults.defaultProps = {
31872
31195
  template: [],
@@ -33524,7 +32847,7 @@ const checkForNA$1 = value => {
33524
32847
  return value ? value : "CS_NA";
33525
32848
  };
33526
32849
  const WSApplicationDetails = () => {
33527
- var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
32850
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
33528
32851
  const getDisconnectionNoticeSearch = function () {
33529
32852
  try {
33530
32853
  var _data$WaterConnection188, _data$WaterConnection189, _data$SewerageConnect182, _data$SewerageConnect183;
@@ -33642,7 +32965,6 @@ const WSApplicationDetails = () => {
33642
32965
  const useDetails = additionalDetails;
33643
32966
  const propertyAdditionalDetails = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.additionalDetails) || {};
33644
32967
  const djbEmployee = additionalDetails;
33645
- const bankDetails = additionalDetails;
33646
32968
  const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : (_PTData$Properties2$ = _PTData$Properties2[0]) === null || _PTData$Properties2$ === void 0 ? void 0 : _PTData$Properties2$.address) || additionalDetails;
33647
32969
  const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
33648
32970
  privacy: {
@@ -34272,27 +33594,6 @@ const WSApplicationDetails = () => {
34272
33594
  },
34273
33595
  onClick: () => getFiles([djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document], tenantId)
34274
33596
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
34275
- }))), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
34276
- styles: {
34277
- fontSize: "28px"
34278
- }
34279
- }, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
34280
- style: {
34281
- marginTop: "10px",
34282
- marginBottom: "30px"
34283
- }
34284
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34285
- label: t("WS_NAME_OF_BANK"),
34286
- text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`
34287
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34288
- label: t("WS_NAME_OF_BRANCH"),
34289
- text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
34290
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34291
- label: t("WS_IFSC_CODE"),
34292
- text: `${t(checkForNA$1(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
34293
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34294
- label: t("WS_BANK_ACCOUNT_NO"),
34295
- text: `${t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
34296
33597
  }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
34297
33598
  styles: {
34298
33599
  fontSize: "28px"
@@ -34345,16 +33646,22 @@ const WSApplicationDetails = () => {
34345
33646
  marginBottom: "20px"
34346
33647
  }
34347
33648
  }) : null)));
34348
- })), (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
34349
- to: {
34350
- 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, "/", "+")}`,
34351
- 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}`,
34352
- state: {
34353
- fromApplicationDetails: true
34354
- }
33649
+ })), (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
33650
+ style: {
33651
+ marginTop: "10px"
34355
33652
  }
34356
33653
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
34357
- label: t("MAKE_PAYMENT")
33654
+ label: t("MAKE_PAYMENT"),
33655
+ onSubmit: () => {
33656
+ var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
33657
+ history.push({
33658
+ pathname: `/digit-ui/citizen/payment/my-bills/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService}/${stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+")}`,
33659
+ search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155.connectionHolders) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150.connectionHolders) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
33660
+ state: {
33661
+ fromApplicationDetails: true
33662
+ }
33663
+ });
33664
+ }
34358
33665
  })) : null, !(data !== null && data !== void 0 && (_data$WaterConnection157 = data.WaterConnection) !== null && _data$WaterConnection157 !== void 0 && (_data$WaterConnection158 = _data$WaterConnection157[0]) !== null && _data$WaterConnection158 !== void 0 && _data$WaterConnection158.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection159 = data.WaterConnection) !== null && _data$WaterConnection159 !== void 0 && (_data$WaterConnection160 = _data$WaterConnection159[0]) !== null && _data$WaterConnection160 !== void 0 && _data$WaterConnection160.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect152 = data.SewerageConnections) !== null && _data$SewerageConnect152 !== void 0 && (_data$SewerageConnect153 = _data$SewerageConnect152[0]) !== null && _data$SewerageConnect153 !== void 0 && _data$SewerageConnect153.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect154 = data.SewerageConnections) !== null && _data$SewerageConnect154 !== void 0 && (_data$SewerageConnect155 = _data$SewerageConnect154[0]) !== null && _data$SewerageConnect155 !== void 0 && _data$SewerageConnect155.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
34359
33666
  to: {
34360
33667
  pathname: isMutation ? `/digit-ui/citizen/ws/mutation-application` : `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : (_data$WaterConnection162 = _data$WaterConnection161[0]) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.tenantId)}`,
@@ -34794,7 +34101,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
34794
34101
  };
34795
34102
 
34796
34103
  const ConnectionDetails$5 = () => {
34797
- var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Water2, _connectionData$Sewer, _connectionData$Sewer2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state42, _state43, _state44, _state44$connectionHo, _state44$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state45, _state45$additionalDe, _state46, _state46$additionalDe, _state47, _state47$additionalDe, _state48, _state48$additionalDe, _state49, _state49$additionalDe, _state50, _state51, _state54, _state55, _state56, _state57, _state58, _state59, _paymentDetails$data17, _paymentDetails$data18;
34104
+ var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Water2, _connectionData$Sewer, _connectionData$Sewer2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state23$applicationT, _state24, _state24$additionalDe, _state24$additionalDe2, _state25, _state25$additionalDe, _state25$additionalDe2, _state26, _state26$additionalDe, _state27, _state27$additionalDe, _state28, _state28$additionalDe, _state28$additionalDe2, _state29, _state29$additionalDe, _state30, _state31, _state32, _state33, _state33$property, _state33$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state34, _state34$additionalDe, _state34$additionalDe2, _state35, _state35$additionalDe, _state35$additionalDe2, _state36, _state36$additionalDe, _state37, _state37$additionalDe, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state42, _state43, _state44, _state44$connectionHo, _state44$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state45, _state46, _state49, _state50, _state51, _state52, _state53, _state54, _paymentDetails$data17, _paymentDetails$data18;
34798
34105
  const {
34799
34106
  t
34800
34107
  } = reactI18next.useTranslation();
@@ -35457,39 +34764,15 @@ const ConnectionDetails$5 = () => {
35457
34764
  isArray: false
35458
34765
  }
35459
34766
  }
35460
- }))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
35461
- styles: {
35462
- fontSize: "28px"
35463
- }
35464
- }, t("WS_COMMON_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35465
- className: "border-none",
35466
- label: t("WS_BANK_NAME"),
35467
- text: ((_state45 = state) === null || _state45 === void 0 ? void 0 : (_state45$additionalDe = _state45.additionalDetails) === null || _state45$additionalDe === void 0 ? void 0 : _state45$additionalDe.bankName) || "NA"
35468
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35469
- className: "border-none",
35470
- label: t("WS_BANK_BRANCH_NAME"),
35471
- text: ((_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$additionalDe = _state46.additionalDetails) === null || _state46$additionalDe === void 0 ? void 0 : _state46$additionalDe.bankBranchName) || "NA"
35472
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35473
- className: "border-none",
35474
- label: t("WS_BANK_ACCOUNT_NUMBER"),
35475
- 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"
35476
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35477
- className: "border-none",
35478
- label: t("WS_BANK_IFSC_CODE"),
35479
- text: ((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : _state49$additionalDe.ifscCode) || "NA"
35480
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
35481
- styles: {
35482
- fontSize: "28px"
35483
- }
35484
- }, 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) => {
35485
- var _doc$documentType, _state52, _state53;
34767
+ }))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), ((_state45 = state) === null || _state45 === void 0 ? void 0 : _state45.documents) && ((_state46 = state) === null || _state46 === void 0 ? void 0 : _state46.documents.map((doc, index) => {
34768
+ var _doc$documentType, _state47, _state48;
35486
34769
  return /*#__PURE__*/React__default.createElement("div", {
35487
34770
  key: `doc-${index}`
35488
34771
  }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
35489
- value: (_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.documents,
34772
+ value: (_state47 = state) === null || _state47 === void 0 ? void 0 : _state47.documents,
35490
34773
  Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
35491
34774
  index: index
35492
- }), ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
34775
+ }), ((_state48 = state) === null || _state48 === void 0 ? void 0 : _state48.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
35493
34776
  style: {
35494
34777
  color: "#cccccc",
35495
34778
  backgroundColor: "#cccccc",
@@ -35498,7 +34781,7 @@ const ConnectionDetails$5 = () => {
35498
34781
  marginBottom: "20px"
35499
34782
  }
35500
34783
  }) : null)));
35501
- })), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React__default.createElement("div", {
34784
+ })), (((_state49 = state) === null || _state49 === void 0 ? void 0 : _state49.status) !== "inactive" || ((_state50 = state) === null || _state50 === void 0 ? void 0 : _state50.applicationStatus) !== "Inactive" || ((_state51 = state) === null || _state51 === void 0 ? void 0 : _state51.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React__default.createElement("div", {
35502
34785
  style: {
35503
34786
  display: "flex",
35504
34787
  justifyContent: "flex-end",
@@ -35508,7 +34791,7 @@ const ConnectionDetails$5 = () => {
35508
34791
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
35509
34792
  label: t("WS_DISCONNECTION_BUTTON"),
35510
34793
  onSubmit: onActionSelect
35511
- })) : ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.status) == "Inactive" && ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.isDisconnectionTemporary) && /*#__PURE__*/React__default.createElement("div", {
34794
+ })) : ((_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.status) == "Inactive" && ((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.isDisconnectionTemporary) && /*#__PURE__*/React__default.createElement("div", {
35512
34795
  style: {
35513
34796
  display: "flex",
35514
34797
  justifyContent: "flex-end",
@@ -35531,8 +34814,8 @@ const ConnectionDetails$5 = () => {
35531
34814
  actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
35532
34815
  hideSubmit: true,
35533
34816
  actionSingleSubmit: () => {
35534
- var _state60, _state61;
35535
- history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state60 = state) === null || _state60 === void 0 ? void 0 : _state60.connectionNo)}/${tenantId}?consumerCode=${(_state61 = state) === null || _state61 === void 0 ? void 0 : _state61.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
34817
+ var _state55, _state56;
34818
+ history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.connectionNo)}/${tenantId}?consumerCode=${(_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
35536
34819
  setshowModal(false);
35537
34820
  },
35538
34821
  popupStyles: mobileView ? {
@@ -36971,7 +36254,6 @@ const CheckPage = _ref => {
36971
36254
  const useDetails = (value === null || value === void 0 ? void 0 : (_value$waterConnectio = value.waterConnection) === null || _value$waterConnectio === void 0 ? void 0 : _value$waterConnectio.useDetails) || {};
36972
36255
  const djbEmployee = (value === null || value === void 0 ? void 0 : value.djbEmployee) || {};
36973
36256
  const disability = (value === null || value === void 0 ? void 0 : value.disability) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
36974
- const bankDetails = (value === null || value === void 0 ? void 0 : value.bankDetails) || {};
36975
36257
  const additionalDetails = {};
36976
36258
  const checkForNA = val => val ? val : "CS_NA";
36977
36259
  const onEdit = () => {};
@@ -37286,26 +36568,6 @@ const CheckPage = _ref => {
37286
36568
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
37287
36569
  label: t("WS_DIVYANGJAN"),
37288
36570
  text: `${disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
37289
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
37290
- style: {
37291
- marginTop: "10px",
37292
- marginBottom: "30px"
37293
- }
37294
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
37295
- label: t("WS_NAME_OF_BANK"),
37296
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
37297
- actionButton: /*#__PURE__*/React__default.createElement(ActionButton, {
37298
- onClick: onEdit
37299
- })
37300
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
37301
- label: t("WS_NAME_OF_BRANCH"),
37302
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
37303
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
37304
- label: t("WS_IFSC_CODE"),
37305
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
37306
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
37307
- label: t("WS_BANK_ACCOUNT_NO"),
37308
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
37309
36571
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
37310
36572
  style: {
37311
36573
  paddingRight: "16px"
@@ -38805,9 +38067,9 @@ const WNSMyBills = _ref => {
38805
38067
  }, t("CS_BILLS_TEXT_NO_BILLS_FOUND")));
38806
38068
  };
38807
38069
  WNSMyBills.propTypes = {
38808
- template: propTypes$1.any,
38809
- header: propTypes$1.string,
38810
- actionButtonLabel: propTypes$1.string
38070
+ template: propTypes.any,
38071
+ header: propTypes.string,
38072
+ actionButtonLabel: propTypes.string
38811
38073
  };
38812
38074
  WNSMyBills.defaultProps = {
38813
38075
  template: [],
@@ -38869,6 +38131,15 @@ const WSInfoPage = () => {
38869
38131
  const [isOtpSending, setIsOtpSending] = React.useState(false);
38870
38132
  const [isOtpVerifying, setIsOtpVerifying] = React.useState(false);
38871
38133
  const [showToast, setShowToast] = React.useState(null);
38134
+ const [isMobileVerified, setIsMobileVerified] = React.useState(false);
38135
+ const [timeLeft, setTimeLeft] = React.useState(0);
38136
+ React.useEffect(() => {
38137
+ let timer;
38138
+ if (timeLeft > 0) {
38139
+ timer = setTimeout(() => setTimeLeft(timeLeft - 1), 1000);
38140
+ }
38141
+ return () => clearTimeout(timer);
38142
+ }, [timeLeft]);
38872
38143
  React.useEffect(() => {
38873
38144
  sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
38874
38145
  }, []);
@@ -38887,7 +38158,7 @@ const WSInfoPage = () => {
38887
38158
  mobileNumber: mobileNumberToSearch
38888
38159
  },
38889
38160
  tenantId: tenantId,
38890
- enabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && (mobileNumberToSearch === null || mobileNumberToSearch === void 0 ? void 0 : mobileNumberToSearch.length) === 10 ? true : false
38161
+ enabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && (mobileNumberToSearch === null || mobileNumberToSearch === void 0 ? void 0 : mobileNumberToSearch.length) === 10 && isMobileVerified ? true : false
38891
38162
  });
38892
38163
  const radioOptions = [{
38893
38164
  code: "YES",
@@ -38897,6 +38168,7 @@ const WSInfoPage = () => {
38897
38168
  i18nKey: "TL_COMMON_NO"
38898
38169
  }];
38899
38170
  const proceedToNext = () => {
38171
+ sessionStorage.removeItem("Digit.PT_CREATE_EMP_WS_NEW_FORM");
38900
38172
  const isEmployee = window.location.href.includes("/employee");
38901
38173
  const baseUrl = isEmployee ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
38902
38174
  if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
@@ -38938,7 +38210,7 @@ const WSInfoPage = () => {
38938
38210
  setIsOtpSending(false);
38939
38211
  setShowToast({
38940
38212
  key: "error",
38941
- message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$fields = errObj.fields) === null || _errObj$fields === void 0 ? void 0 : (_errObj$fields$ = _errObj$fields[0]) === null || _errObj$fields$ === void 0 ? void 0 : _errObj$fields$.message) || (errObj === null || errObj === void 0 ? void 0 : errObj.message) || "Failed to send OTP"
38213
+ message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$fields = errObj.fields) === null || _errObj$fields === void 0 ? void 0 : (_errObj$fields$ = _errObj$fields[0]) === null || _errObj$fields$ === void 0 ? void 0 : _errObj$fields$.message) || (errObj === null || errObj === void 0 ? void 0 : errObj.message) || t("WS_FAILED_TO_SEND_OTP") || "Failed to send OTP"
38942
38214
  });
38943
38215
  return;
38944
38216
  }
@@ -38948,21 +38220,22 @@ const WSInfoPage = () => {
38948
38220
  setIsOtpSending(false);
38949
38221
  setShowToast({
38950
38222
  key: "error",
38951
- message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$ = errObj[0]) === null || _errObj$ === void 0 ? void 0 : _errObj$.message) || "Failed to send OTP"
38223
+ message: (errObj === null || errObj === void 0 ? void 0 : (_errObj$ = errObj[0]) === null || _errObj$ === void 0 ? void 0 : _errObj$.message) || t("WS_FAILED_TO_SEND_OTP") || "Failed to send OTP"
38952
38224
  });
38953
38225
  return;
38954
38226
  }
38955
38227
  setIsOtpSending(false);
38956
38228
  setShowOtpVerification(true);
38229
+ setTimeLeft(30);
38957
38230
  setShowToast({
38958
38231
  key: "success",
38959
- message: "OTP sent successfully!"
38232
+ message: t("PT_SEC_OTP_SENT_SUCEESS") || "OTP sent successfully!"
38960
38233
  });
38961
38234
  });
38962
38235
  }, function (err) {
38963
38236
  var _err$response, _err$response$data, _err$response2, _err$response2$data;
38964
38237
  setIsOtpSending(false);
38965
- let errMsg = "Failed to send OTP";
38238
+ let errMsg = t("WS_FAILED_TO_SEND_OTP") || "Failed to send OTP";
38966
38239
  if (err !== null && err !== void 0 && (_err$response = err.response) !== null && _err$response !== void 0 && (_err$response$data = _err$response.data) !== null && _err$response$data !== void 0 && _err$response$data.error) {
38967
38240
  var _err$response$data$er, _err$response$data$er2, _err$response$data$er3, _err$response$data$er4;
38968
38241
  errMsg = ((_err$response$data$er = err.response.data.error) === null || _err$response$data$er === void 0 ? void 0 : (_err$response$data$er2 = _err$response$data$er.fields) === null || _err$response$data$er2 === void 0 ? void 0 : (_err$response$data$er3 = _err$response$data$er2[0]) === null || _err$response$data$er3 === void 0 ? void 0 : _err$response$data$er3.message) || ((_err$response$data$er4 = err.response.data.error) === null || _err$response$data$er4 === void 0 ? void 0 : _err$response$data$er4.message) || errMsg;
@@ -38990,7 +38263,7 @@ const WSInfoPage = () => {
38990
38263
  if (!otp || otp.length < 6) {
38991
38264
  setShowToast({
38992
38265
  key: "warning",
38993
- message: "Please enter a valid 6-digit OTP"
38266
+ message: t("WS_PLEASE_ENTER_VALID_OTP") || "Please enter a valid 6-digit OTP"
38994
38267
  });
38995
38268
  return Promise.resolve();
38996
38269
  }
@@ -39021,14 +38294,15 @@ const WSInfoPage = () => {
39021
38294
  setIsOtpVerifying(false);
39022
38295
  setShowToast({
39023
38296
  key: "success",
39024
- message: "OTP verified successfully!"
38297
+ message: t("WS_OTP_VERIFIED_SUCCESSFULLY") || "OTP verified successfully!"
39025
38298
  });
39026
- proceedToNext();
38299
+ setShowOtpVerification(false);
38300
+ setIsMobileVerified(true);
39027
38301
  });
39028
38302
  }, function (err) {
39029
38303
  var _err$response3, _err$response3$data, _err$response4, _err$response4$data;
39030
38304
  setIsOtpVerifying(false);
39031
- let errMsg = err.message || "Failed to verify OTP";
38305
+ let errMsg = err.message || t("WS_FAILED_TO_VERIFY_OTP") || "Failed to verify OTP";
39032
38306
  if (err !== null && err !== void 0 && (_err$response3 = err.response) !== null && _err$response3 !== void 0 && (_err$response3$data = _err$response3.data) !== null && _err$response3$data !== void 0 && _err$response3$data.error) {
39033
38307
  var _err$response$data$er5, _err$response$data$er6, _err$response$data$er7, _err$response$data$er8;
39034
38308
  errMsg = ((_err$response$data$er5 = err.response.data.error) === null || _err$response$data$er5 === void 0 ? void 0 : (_err$response$data$er6 = _err$response$data$er5.fields) === null || _err$response$data$er6 === void 0 ? void 0 : (_err$response$data$er7 = _err$response$data$er6[0]) === null || _err$response$data$er7 === void 0 ? void 0 : _err$response$data$er7.message) || ((_err$response$data$er8 = err.response.data.error) === null || _err$response$data$er8 === void 0 ? void 0 : _err$response$data$er8.message) || errMsg;
@@ -39053,7 +38327,14 @@ const WSInfoPage = () => {
39053
38327
  if (e.stopPropagation) e.stopPropagation();
39054
38328
  }
39055
38329
  if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
39056
- handleSendOtp(e);
38330
+ if (!isMobileVerified) {
38331
+ setShowToast({
38332
+ key: "warning",
38333
+ message: t("WS_PLEASE_VERIFY_MOBILE_NUMBER") || "Please verify mobile number first"
38334
+ });
38335
+ return;
38336
+ }
38337
+ proceedToNext();
39057
38338
  } else if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty) {
39058
38339
  return;
39059
38340
  } else {
@@ -39068,72 +38349,6 @@ const WSInfoPage = () => {
39068
38349
  ...prop,
39069
38350
  displayName: `${prop.propertyId} - ${getAddress$1(prop.address, t)}`
39070
38351
  }))) || [];
39071
- if (showOtpVerification) {
39072
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("form", {
39073
- onSubmit: handleVerifyOtp
39074
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t("WS_VERIFY_OTP_HEADER") || "Verify OTP"), /*#__PURE__*/React__default.createElement("div", {
39075
- style: {
39076
- marginBottom: "24px"
39077
- }
39078
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Label, null, t("WS_ENTER_OTP_SENT_TO") || "Enter OTP sent to", " +91 ", getMaskedPhone(mobileNumberToSearch), " *"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
39079
- t: t,
39080
- type: "text",
39081
- inputMode: "numeric",
39082
- pattern: "[0-9]*",
39083
- isMandatory: false,
39084
- value: otp,
39085
- maxLength: 6,
39086
- onChange: e => setOtp(e.target.value.replace(/\D/g, "").slice(0, 6)),
39087
- onKeyDown: e => {
39088
- if (["-", "+", "e", "E", "."].includes(e.key)) e.preventDefault();
39089
- },
39090
- placeholder: t("WS_ENTER_6_DIGIT_OTP") || "Enter 6-digit OTP",
39091
- style: {
39092
- width: "100%",
39093
- maxWidth: "300px"
39094
- }
39095
- })), /*#__PURE__*/React__default.createElement("div", {
39096
- style: {
39097
- display: "flex",
39098
- gap: "16px",
39099
- marginBottom: "24px"
39100
- }
39101
- }, /*#__PURE__*/React__default.createElement("button", {
39102
- type: "button",
39103
- onClick: handleSendOtp,
39104
- disabled: isOtpSending,
39105
- style: {
39106
- color: "#f47738",
39107
- background: "none",
39108
- border: "none",
39109
- cursor: "pointer",
39110
- fontWeight: "bold",
39111
- textDecoration: "underline"
39112
- }
39113
- }, isOtpSending ? t("WS_SENDING_OTP") || "Sending..." : t("WS_RESEND_OTP") || "Resend OTP"), /*#__PURE__*/React__default.createElement("button", {
39114
- type: "button",
39115
- onClick: () => setShowOtpVerification(false),
39116
- style: {
39117
- color: "#f47738",
39118
- background: "none",
39119
- border: "none",
39120
- cursor: "pointer",
39121
- fontWeight: "bold",
39122
- textDecoration: "underline"
39123
- }
39124
- }, t("CS_COMMON_CANCEL") || "Cancel")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
39125
- label: t("WS_VERIFY_OTP_AND_PROCEED") || "Verify & Proceed",
39126
- onSubmit: handleVerifyOtp,
39127
- disabled: otp.length < 6 || isOtpVerifying,
39128
- submit: true
39129
- }))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
39130
- error: showToast.key === "error",
39131
- warning: showToast.key === "warning",
39132
- label: t(showToast.message),
39133
- onClose: () => setShowToast(null),
39134
- isDleteBtn: true
39135
- }));
39136
- }
39137
38352
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t("WS_COMMON_APPL_NEW_CONNECTION")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CitizenInfoLabel, {
39138
38353
  style: {
39139
38354
  margin: "0px",
@@ -39165,30 +38380,7 @@ const WSInfoPage = () => {
39165
38380
  display: "flex",
39166
38381
  gap: "24px"
39167
38382
  }
39168
- })), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && /*#__PURE__*/React__default.createElement("div", {
39169
- style: {
39170
- marginBottom: "24px"
39171
- }
39172
- }, !isEmployee && /*#__PURE__*/React__default.createElement("div", {
39173
- style: {
39174
- marginBottom: "16px"
39175
- }
39176
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
39177
- t: t,
39178
- type: "number",
39179
- isMandatory: false,
39180
- name: "mobileNumber",
39181
- value: searchMobileNumber,
39182
- onChange: e => {
39183
- const val = e.target.value.replace(/\D/g, "").slice(0, 10);
39184
- setSearchMobileNumber(val);
39185
- setSelectedProperty(null);
39186
- setShowOtpVerification(false);
39187
- setOtp("");
39188
- },
39189
- placeholder: t("Enter mobile number"),
39190
- maxLength: 10
39191
- })), isEmployee && /*#__PURE__*/React__default.createElement("div", {
38383
+ })), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
39192
38384
  style: {
39193
38385
  display: "flex",
39194
38386
  flexDirection: "column",
@@ -39197,39 +38389,59 @@ const WSInfoPage = () => {
39197
38389
  }
39198
38390
  }, /*#__PURE__*/React__default.createElement("div", {
39199
38391
  style: {
39200
- display: "flex",
38392
+ display: "grid",
38393
+ gridTemplateColumns: "1fr 1fr",
39201
38394
  gap: "24px",
39202
- alignItems: "flex-end"
38395
+ alignItems: "start"
38396
+ }
38397
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React__default.createElement("div", {
38398
+ style: {
38399
+ display: "flex",
38400
+ gap: "16px",
38401
+ alignItems: "center"
39203
38402
  }
39204
38403
  }, /*#__PURE__*/React__default.createElement("div", {
39205
38404
  style: {
39206
38405
  flex: 1
39207
38406
  }
39208
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
38407
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
39209
38408
  t: t,
39210
38409
  type: "number",
39211
38410
  isMandatory: false,
39212
38411
  name: "mobileNumber",
39213
38412
  value: searchMobileNumber,
39214
38413
  onChange: e => {
39215
- const val = e.target.value;
39216
- if (val.length <= 10) {
39217
- setSearchMobileNumber(val);
39218
- setSelectedProperty(null);
39219
- setShowOtpVerification(false);
39220
- setOtp("");
39221
- }
38414
+ const val = e.target.value.replace(/\D/g, "").slice(0, 10);
38415
+ setSearchMobileNumber(val);
38416
+ setSelectedProperty(null);
38417
+ setShowOtpVerification(false);
38418
+ setOtp("");
38419
+ setIsMobileVerified(false);
39222
38420
  },
39223
- placeholder: t("Enter mobile number"),
39224
- maxLength: 10
39225
- })), /*#__PURE__*/React__default.createElement("div", {
38421
+ placeholder: t("WS_ENTER_MOBILE_NUMBER") || "Enter mobile number",
38422
+ maxLength: 10,
38423
+ disabled: isMobileVerified
38424
+ })), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && !isMobileVerified && !showOtpVerification && /*#__PURE__*/React__default.createElement("button", {
38425
+ type: "button",
38426
+ onClick: handleSendOtp,
38427
+ disabled: isOtpSending,
39226
38428
  style: {
39227
- flex: 1
38429
+ padding: "8px 16px",
38430
+ border: "1px solid #1a67a3",
38431
+ background: "white",
38432
+ color: "#1a67a3",
38433
+ borderRadius: "4px",
38434
+ cursor: "pointer",
38435
+ fontWeight: "bold",
38436
+ whiteSpace: "nowrap"
38437
+ }
38438
+ }, isOtpSending ? t("WS_SENDING_OTP") || "Sending..." : t("PTUPNO_SENDOTP") || "Send OTP"))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Label, null, t("WS_SELECT_EXISTING_PROPERTY")), isLoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement("div", {
38439
+ style: {
38440
+ display: "flex",
38441
+ flexDirection: "column",
38442
+ gap: "8px"
39228
38443
  }
39229
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Label, null, t("WS_SELECT_EXISTING_PROPERTY")), /*#__PURE__*/React__default.createElement("div", {
39230
- className: "field"
39231
38444
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
39232
- className: "form-field",
39233
38445
  option: propertyOptions,
39234
38446
  optionKey: "displayName",
39235
38447
  id: "propertyId",
@@ -39241,51 +38453,125 @@ const WSInfoPage = () => {
39241
38453
  },
39242
38454
  t: t,
39243
38455
  placeholder: t("PT_SELECT_PROPERTY"),
39244
- disable: isLoading || propertyOptions.length === 0
39245
- })))), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && !isLoading && propertyOptions.length === 0 && /*#__PURE__*/React__default.createElement("div", {
38456
+ disable: !isMobileVerified || propertyOptions.length === 0
38457
+ }), propertyOptions.length > 0 && /*#__PURE__*/React__default.createElement("span", {
38458
+ style: {
38459
+ fontSize: "14px",
38460
+ color: "#505A5F"
38461
+ }
38462
+ }, t("WS_PROPERTY_AUTOFILL_MSG"))))), showOtpVerification && !isMobileVerified && /*#__PURE__*/React__default.createElement("div", {
38463
+ style: {
38464
+ border: "1px solid #d6d5d4",
38465
+ borderRadius: "4px",
38466
+ background: "#f8f9fa",
38467
+ padding: "12px"
38468
+ }
38469
+ }, /*#__PURE__*/React__default.createElement("div", {
38470
+ style: {
38471
+ fontWeight: "bold",
38472
+ fontSize: "18px",
38473
+ marginBottom: "8px"
38474
+ }
38475
+ }, t("WS_VERIFY_OTP_HEADER") || "OTP Verification"), /*#__PURE__*/React__default.createElement("div", {
38476
+ style: {
38477
+ color: "#505A5F",
38478
+ marginBottom: "16px"
38479
+ }
38480
+ }, t("WS_ENTER_OTP_SENT_TO") || "Enter the 6-digit OTP sent to", " ", getMaskedPhone(searchMobileNumber)), /*#__PURE__*/React__default.createElement("div", {
39246
38481
  style: {
39247
38482
  display: "flex",
39248
- flexDirection: "column",
39249
- gap: "16px"
38483
+ flexWrap: "wrap",
38484
+ gap: "15px",
38485
+ alignItems: "center"
39250
38486
  }
39251
- }, /*#__PURE__*/React__default.createElement("span", {
38487
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.OTPInput, {
39252
38488
  style: {
39253
- color: "#d63031",
38489
+ marginBottom: "0px"
38490
+ },
38491
+ length: 6,
38492
+ onChange: setOtp,
38493
+ value: otp
38494
+ }), /*#__PURE__*/React__default.createElement("button", {
38495
+ type: "button",
38496
+ onClick: handleVerifyOtp,
38497
+ disabled: otp.length < 6 || isOtpVerifying,
38498
+ style: {
38499
+ padding: "6px 20px",
38500
+ background: otp.length < 6 || isOtpVerifying ? "#ccc" : "#1a67a3",
38501
+ color: "white",
38502
+ border: "none",
38503
+ borderRadius: "4px",
38504
+ cursor: otp.length < 6 || isOtpVerifying ? "not-allowed" : "pointer",
39254
38505
  fontWeight: "bold"
39255
38506
  }
39256
- }, t("WS_NO_PROPERTY_FOUND_ON_THIS_NUMBER") || "No property found on this number, please create the property first."), /*#__PURE__*/React__default.createElement("span", {
39257
- onClick: handleCreateProperty
39258
- }, /*#__PURE__*/React__default.createElement("button", {
39259
- className: "submit-bar",
38507
+ }, isOtpVerifying ? t("WS_VERIFYING_OTP") || "Verifying..." : t("WS_VERIFY_OTP_AND_PROCEED") || "Verify OTP"), /*#__PURE__*/React__default.createElement("button", {
39260
38508
  type: "button",
38509
+ onClick: handleSendOtp,
38510
+ disabled: timeLeft > 0 || isOtpSending,
39261
38511
  style: {
39262
- color: "white",
39263
- margin: 0
38512
+ padding: "6px 20px",
38513
+ background: "white",
38514
+ color: timeLeft > 0 || isOtpSending ? "#ccc" : "#1a67a3",
38515
+ border: `1px solid ${timeLeft > 0 || isOtpSending ? "#ccc" : "#1a67a3"}`,
38516
+ borderRadius: "4px",
38517
+ cursor: timeLeft > 0 || isOtpSending ? "not-allowed" : "pointer",
38518
+ fontWeight: "bold"
38519
+ }
38520
+ }, timeLeft > 0 ? `${t("WS_RESEND_OTP") || "Resend OTP"} (00:${timeLeft < 10 ? `0${timeLeft}` : timeLeft})` : t("WS_RESEND_OTP") || "Resend OTP")), timeLeft > 0 && /*#__PURE__*/React__default.createElement("div", {
38521
+ style: {
38522
+ marginTop: "12px",
38523
+ color: "#505A5F",
38524
+ fontSize: "14px"
39264
38525
  }
39265
- }, t("CPT_CREATE_PROPERTY"))))), !isEmployee && (isLoading || propertyOptions.length > 0) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Label, null, t("WS_SELECT_EXISTING_PROPERTY")), isLoading && !isEmployee ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : !isEmployee ? propertyOptions.length > 0 ? /*#__PURE__*/React__default.createElement("div", {
38526
+ }, t("WS_DIDNT_RECEIVE_OTP_RESEND") || "Didn't receive OTP? You can resend after", " ", timeLeft, " ", t("WS_SECONDS") || "seconds", ".")), isMobileVerified && /*#__PURE__*/React__default.createElement("div", {
39266
38527
  style: {
39267
38528
  display: "flex",
39268
- flexDirection: "column",
38529
+ justifyContent: "space-between",
38530
+ alignItems: "center",
38531
+ background: "#d4edda",
38532
+ border: "1px solid #c3e6cb",
38533
+ color: "#155724",
38534
+ padding: "12px 16px",
38535
+ borderRadius: "4px"
38536
+ }
38537
+ }, /*#__PURE__*/React__default.createElement("div", {
38538
+ style: {
38539
+ display: "flex",
38540
+ alignItems: "center",
39269
38541
  gap: "8px"
39270
38542
  }
39271
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
39272
- option: propertyOptions,
39273
- optionKey: "displayName",
39274
- id: "propertyId",
39275
- selected: selectedProperty,
39276
- select: val => {
39277
- setSelectedProperty(val);
39278
- setShowOtpVerification(false);
38543
+ }, /*#__PURE__*/React__default.createElement("span", {
38544
+ style: {
38545
+ background: "#28a745",
38546
+ color: "white",
38547
+ borderRadius: "50%",
38548
+ width: "24px",
38549
+ height: "24px",
38550
+ display: "inline-flex",
38551
+ justifyContent: "center",
38552
+ alignItems: "center",
38553
+ fontWeight: "bold"
38554
+ }
38555
+ }, "\u2713"), /*#__PURE__*/React__default.createElement("span", {
38556
+ style: {
38557
+ fontWeight: "bold"
38558
+ }
38559
+ }, t("WS_MOBILE_VERIFIED_SUCCESSFULLY") || "Mobile number verified successfully!")), /*#__PURE__*/React__default.createElement("button", {
38560
+ type: "button",
38561
+ onClick: () => {
38562
+ setIsMobileVerified(false);
39279
38563
  setOtp("");
38564
+ setShowOtpVerification(false);
39280
38565
  },
39281
- t: t,
39282
- placeholder: t("PT_SELECT_PROPERTY")
39283
- }), /*#__PURE__*/React__default.createElement("span", {
39284
38566
  style: {
39285
- fontSize: "14px",
39286
- color: "#505A5F"
38567
+ color: "#1a67a3",
38568
+ background: "none",
38569
+ border: "none",
38570
+ cursor: "pointer",
38571
+ fontWeight: "bold",
38572
+ textDecoration: "underline"
39287
38573
  }
39288
- }, t("WS_PROPERTY_AUTOFILL_MSG"))) : /*#__PURE__*/React__default.createElement("div", {
38574
+ }, t("WS_CHANGE_NUMBER") || "Change Number")), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && isMobileVerified && !isLoading && propertyOptions.length === 0 && /*#__PURE__*/React__default.createElement("div", {
39289
38575
  style: {
39290
38576
  display: "flex",
39291
38577
  flexDirection: "column",
@@ -39306,7 +38592,7 @@ const WSInfoPage = () => {
39306
38592
  color: "white",
39307
38593
  margin: 0
39308
38594
  }
39309
- }, t("CPT_CREATE_PROPERTY")))) : null), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" && /*#__PURE__*/React__default.createElement("div", {
38595
+ }, t("CPT_CREATE_PROPERTY")))))), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" && /*#__PURE__*/React__default.createElement("div", {
39310
38596
  style: {
39311
38597
  marginBottom: "24px",
39312
38598
  display: "flex",
@@ -39322,7 +38608,7 @@ const WSInfoPage = () => {
39322
38608
  color: "white",
39323
38609
  margin: 0
39324
38610
  }
39325
- }, t("CPT_CREATE_PROPERTY")))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
38611
+ }, t("CPT_CREATE_PROPERTY")))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
39326
38612
  style: {
39327
38613
  marginTop: "0",
39328
38614
  marginBottom: "0"
@@ -39382,19 +38668,7 @@ const WSInfoPage = () => {
39382
38668
  marginBottom: "24px",
39383
38669
  lineHeight: "2"
39384
38670
  }
39385
- }, /*#__PURE__*/React__default.createElement("li", null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_EMPLOYEE_DESIGNATION"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
39386
- style: {
39387
- marginTop: "0",
39388
- marginBottom: "0"
39389
- }
39390
- }, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement("ul", {
39391
- style: {
39392
- listStyleType: "disc",
39393
- marginLeft: "20px",
39394
- marginBottom: "24px",
39395
- lineHeight: "2"
39396
- }
39397
- }, /*#__PURE__*/React__default.createElement("li", null, t("WS_NAME_OF_BANK")), /*#__PURE__*/React__default.createElement("li", null, t("WS_NAME_OF_BRANCH")), /*#__PURE__*/React__default.createElement("li", null, t("WS_IFSC_CODE")), /*#__PURE__*/React__default.createElement("li", null, t("WS_BANK_ACCOUNT_NO"))), /*#__PURE__*/React__default.createElement("div", {
38671
+ }, /*#__PURE__*/React__default.createElement("li", null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_EMPLOYEE_DESIGNATION"))), /*#__PURE__*/React__default.createElement("div", {
39398
38672
  style: {
39399
38673
  display: "flex",
39400
38674
  justifyContent: "space-between",
@@ -39414,7 +38688,7 @@ const WSInfoPage = () => {
39414
38688
  marginBottom: "24px",
39415
38689
  lineHeight: "2"
39416
38690
  }
39417
- }, /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_IDENTITY_PROOF")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_ADDRESS_PROOF")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_ELECTRICITY_BILL")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_PLUMBER_REPORT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_BUILDING_PLAN")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_PROPERTY_TAX_RECEIPT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_APPLICANT_PHOTOGRAPH"))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
38691
+ }, /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_IDENTITY_PROOF")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_ADDRESS_PROOF")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_ELECTRICITY_BILL")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_PLUMBER_REPORT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_BUILDING_PLAN")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_PROPERTY_TAX_RECEIPT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_APPLICANT_PHOTOGRAPH")))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
39418
38692
  label: t("CS_COMMON_NEXT"),
39419
38693
  onSubmit: () => {},
39420
38694
  disabled: true
@@ -40448,8 +39722,6 @@ const EMAIL_PATTERN = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;
40448
39722
  const MOBILE_PATTERN = /^[6-9][0-9]{9}$/;
40449
39723
  const NUMBER_PATTERN$2 = /^\d+$/;
40450
39724
  const DECIMAL_PATTERN$2 = /^\d+(\.\d{1,2})?$/;
40451
- const IFSC_PATTERN = /^[A-Z]{4}0[A-Z0-9]{6}$/;
40452
- const ACCOUNT_PATTERN = /^[0-9]{9,18}$/;
40453
39725
  const COLLAPSIBLE_CONTENT_TAB = "__WS_SECTION_CONTENT__";
40454
39726
  const createOption = (code, name) => ({
40455
39727
  code,
@@ -41130,7 +40402,7 @@ const FileUploadField = _ref6 => {
41130
40402
  })))));
41131
40403
  };
41132
40404
  const NewApplication = () => {
41133
- var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
40405
+ var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
41134
40406
  const {
41135
40407
  t
41136
40408
  } = reactI18next.useTranslation();
@@ -41346,10 +40618,6 @@ const NewApplication = () => {
41346
40618
  sectionId: "useDetails",
41347
40619
  route: "use-details",
41348
40620
  actions: "Property & Connection Use Details"
41349
- }, {
41350
- sectionId: "bankDetails",
41351
- route: "bank-details",
41352
- actions: "Bank Details"
41353
40621
  }, {
41354
40622
  sectionId: "documents",
41355
40623
  route: "documents",
@@ -42949,64 +42217,6 @@ const NewApplication = () => {
42949
42217
  }),
42950
42218
  name: "useDetails.hospitalBeds"
42951
42219
  })) : null), /*#__PURE__*/React__default.createElement(SectionCard, {
42952
- description: "Refund or payment-linked bank account details.",
42953
- isOpen: collapsedSections.bank,
42954
- onToggle: toggleSection,
42955
- sectionKey: "bankDetails",
42956
- title: "Bank Details",
42957
- sectionRef: sectionRefs.bankDetails
42958
- }, /*#__PURE__*/React__default.createElement(FieldBlock, {
42959
- error: getFieldError("bankDetails.bankName"),
42960
- label: "Name of the Bank",
42961
- required: true
42962
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
42963
- errorStyle: !!getFieldError("bankDetails.bankName"),
42964
- inputRef: register({
42965
- required: "Bank Name is required."
42966
- }),
42967
- name: "bankDetails.bankName"
42968
- })), /*#__PURE__*/React__default.createElement(FieldBlock, {
42969
- error: getFieldError("bankDetails.branchName"),
42970
- label: "Name of the Branch",
42971
- required: true
42972
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
42973
- errorStyle: !!getFieldError("bankDetails.branchName"),
42974
- inputRef: register({
42975
- required: "Branch Name is required."
42976
- }),
42977
- name: "bankDetails.branchName"
42978
- })), /*#__PURE__*/React__default.createElement(FieldBlock, {
42979
- error: getFieldError("bankDetails.ifscCode"),
42980
- label: "IFSC Code",
42981
- required: true
42982
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
42983
- errorStyle: !!getFieldError("bankDetails.ifscCode"),
42984
- inputRef: register({
42985
- pattern: {
42986
- value: IFSC_PATTERN,
42987
- message: "Enter a valid IFSC code."
42988
- },
42989
- required: "IFSC Code is required."
42990
- }),
42991
- name: "bankDetails.ifscCode",
42992
- onChange: event => {
42993
- event.target.value = event.target.value.toUpperCase();
42994
- }
42995
- })), /*#__PURE__*/React__default.createElement(FieldBlock, {
42996
- error: getFieldError("bankDetails.bankAccountNumber"),
42997
- label: "Bank Account No.",
42998
- required: true
42999
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
43000
- errorStyle: !!getFieldError("bankDetails.bankAccountNumber"),
43001
- inputRef: register({
43002
- pattern: {
43003
- value: ACCOUNT_PATTERN,
43004
- message: "Enter a valid bank account number."
43005
- },
43006
- required: "Bank Account Number is required."
43007
- }),
43008
- name: "bankDetails.bankAccountNumber"
43009
- }))), /*#__PURE__*/React__default.createElement(SectionCard, {
43010
42220
  description: "Documents to be attached. Maximum allowed file size is 5 MB.",
43011
42221
  isOpen: collapsedSections.documents,
43012
42222
  onToggle: toggleSection,
@@ -43525,25 +42735,6 @@ const NewApplication = () => {
43525
42735
  }), /*#__PURE__*/React__default.createElement(PreviewItem, {
43526
42736
  label: "Water Connection Usage Type",
43527
42737
  value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail11 = formValues.useDetails) === null || _formValues$useDetail11 === void 0 ? void 0 : _formValues$useDetail11.WaterConnectionUsageType
43528
- })), /*#__PURE__*/React__default.createElement(SectionCard, {
43529
- description: "Banking information as entered in the form.",
43530
- isOpen: collapsedSections.bank,
43531
- onToggle: toggleSection,
43532
- sectionKey: "bank",
43533
- title: "Bank Details",
43534
- onEditClick: () => handleSectionEdit("bankDetails")
43535
- }, /*#__PURE__*/React__default.createElement(PreviewItem, {
43536
- label: "Name of the Bank",
43537
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai = formValues.bankDetails) === null || _formValues$bankDetai === void 0 ? void 0 : _formValues$bankDetai.bankName
43538
- }), /*#__PURE__*/React__default.createElement(PreviewItem, {
43539
- label: "Name of the Branch",
43540
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai2 = formValues.bankDetails) === null || _formValues$bankDetai2 === void 0 ? void 0 : _formValues$bankDetai2.branchName
43541
- }), /*#__PURE__*/React__default.createElement(PreviewItem, {
43542
- label: "IFSC Code",
43543
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai3 = formValues.bankDetails) === null || _formValues$bankDetai3 === void 0 ? void 0 : _formValues$bankDetai3.ifscCode
43544
- }), /*#__PURE__*/React__default.createElement(PreviewItem, {
43545
- label: "Bank Account No.",
43546
- value: formValues === null || formValues === void 0 ? void 0 : (_formValues$bankDetai4 = formValues.bankDetails) === null || _formValues$bankDetai4 === void 0 ? void 0 : _formValues$bankDetai4.bankAccountNumber
43547
42738
  })), /*#__PURE__*/React__default.createElement(SectionCard, {
43548
42739
  description: "Uploaded supporting documents.",
43549
42740
  isOpen: collapsedSections.documents,
@@ -44465,12 +43656,12 @@ const configSVApproverApplication = _ref => {
44465
43656
  };
44466
43657
  };
44467
43658
 
44468
- const Heading = props => {
43659
+ const Heading$1 = props => {
44469
43660
  return /*#__PURE__*/React__default.createElement("h1", {
44470
43661
  className: "heading-m"
44471
43662
  }, props.label);
44472
43663
  };
44473
- const Close$1 = () => /*#__PURE__*/React__default.createElement("svg", {
43664
+ const Close$2 = () => /*#__PURE__*/React__default.createElement("svg", {
44474
43665
  xmlns: "http://www.w3.org/2000/svg",
44475
43666
  viewBox: "0 0 24 24",
44476
43667
  fill: "#FFFFFF"
@@ -44480,11 +43671,11 @@ const Close$1 = () => /*#__PURE__*/React__default.createElement("svg", {
44480
43671
  }), /*#__PURE__*/React__default.createElement("path", {
44481
43672
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
44482
43673
  }));
44483
- const CloseBtn = props => {
43674
+ const CloseBtn$1 = props => {
44484
43675
  return /*#__PURE__*/React__default.createElement("div", {
44485
43676
  className: "icon-bg-secondary",
44486
43677
  onClick: props.onClick
44487
- }, /*#__PURE__*/React__default.createElement(Close$1, null));
43678
+ }, /*#__PURE__*/React__default.createElement(Close$2, null));
44488
43679
  };
44489
43680
  const ActionModal = _ref => {
44490
43681
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -44566,7 +43757,7 @@ const ActionModal = _ref => {
44566
43757
  if (file.size >= 5242880) {
44567
43758
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
44568
43759
  } else {
44569
- const _temp = _catch$1(function () {
43760
+ const _temp = _catch(function () {
44570
43761
  return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
44571
43762
  var _response$data, _response$data$files;
44572
43763
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -44666,10 +43857,10 @@ const ActionModal = _ref => {
44666
43857
  }
44667
43858
  }, [action, approvers, financialYears, selectedFinancialYear, uploadedFile]);
44668
43859
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
44669
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
43860
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$1, {
44670
43861
  label: t(config.label.heading)
44671
43862
  }),
44672
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
43863
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$1, {
44673
43864
  onClick: closeModal
44674
43865
  }),
44675
43866
  actionCancelLabel: t(config.label.cancel),
@@ -44689,12 +43880,12 @@ const ActionModal = _ref => {
44689
43880
  })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
44690
43881
  };
44691
43882
 
44692
- const Heading$1 = props => {
43883
+ const Heading$2 = props => {
44693
43884
  return /*#__PURE__*/React__default.createElement("h1", {
44694
43885
  className: "heading-m"
44695
43886
  }, props.label);
44696
43887
  };
44697
- const Close$2 = () => /*#__PURE__*/React__default.createElement("svg", {
43888
+ const Close$3 = () => /*#__PURE__*/React__default.createElement("svg", {
44698
43889
  xmlns: "http://www.w3.org/2000/svg",
44699
43890
  viewBox: "0 0 24 24",
44700
43891
  fill: "#FFFFFF"
@@ -44704,11 +43895,11 @@ const Close$2 = () => /*#__PURE__*/React__default.createElement("svg", {
44704
43895
  }), /*#__PURE__*/React__default.createElement("path", {
44705
43896
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
44706
43897
  }));
44707
- const CloseBtn$1 = props => {
43898
+ const CloseBtn$2 = props => {
44708
43899
  return /*#__PURE__*/React__default.createElement("div", {
44709
43900
  className: "icon-bg-secondary",
44710
43901
  onClick: props.onClick
44711
- }, /*#__PURE__*/React__default.createElement(Close$2, null));
43902
+ }, /*#__PURE__*/React__default.createElement(Close$3, null));
44712
43903
  };
44713
43904
  const ActionModal$1 = _ref => {
44714
43905
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -44789,7 +43980,7 @@ const ActionModal$1 = _ref => {
44789
43980
  if (file.size >= 5242880) {
44790
43981
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
44791
43982
  } else {
44792
- const _temp = _catch$1(function () {
43983
+ const _temp = _catch(function () {
44793
43984
  return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
44794
43985
  var _response$data, _response$data$files;
44795
43986
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -44846,10 +44037,10 @@ const ActionModal$1 = _ref => {
44846
44037
  }
44847
44038
  }, [action, approvers, financialYears, selectedFinancialYear, uploadedFile]);
44848
44039
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
44849
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$1, {
44040
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$2, {
44850
44041
  label: t(config.label.heading)
44851
44042
  }),
44852
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$1, {
44043
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$2, {
44853
44044
  onClick: closeModal
44854
44045
  }),
44855
44046
  actionCancelLabel: t(config.label.cancel),
@@ -44868,7 +44059,7 @@ const ActionModal$1 = _ref => {
44868
44059
  })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
44869
44060
  };
44870
44061
 
44871
- const Heading$2 = props => {
44062
+ const Heading$3 = props => {
44872
44063
  return /*#__PURE__*/React__default.createElement("h1", {
44873
44064
  style: {
44874
44065
  marginLeft: "22px"
@@ -44876,7 +44067,7 @@ const Heading$2 = props => {
44876
44067
  className: "heading-m BPAheading-m"
44877
44068
  }, props.label);
44878
44069
  };
44879
- const Close$3 = () => /*#__PURE__*/React__default.createElement("svg", {
44070
+ const Close$4 = () => /*#__PURE__*/React__default.createElement("svg", {
44880
44071
  xmlns: "http://www.w3.org/2000/svg",
44881
44072
  viewBox: "0 0 24 24",
44882
44073
  fill: "#FFFFFF"
@@ -44886,11 +44077,11 @@ const Close$3 = () => /*#__PURE__*/React__default.createElement("svg", {
44886
44077
  }), /*#__PURE__*/React__default.createElement("path", {
44887
44078
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
44888
44079
  }));
44889
- const CloseBtn$2 = props => {
44080
+ const CloseBtn$3 = props => {
44890
44081
  return /*#__PURE__*/React__default.createElement("div", {
44891
44082
  className: "icon-bg-secondary",
44892
44083
  onClick: props.onClick
44893
- }, /*#__PURE__*/React__default.createElement(Close$3, null));
44084
+ }, /*#__PURE__*/React__default.createElement(Close$4, null));
44894
44085
  };
44895
44086
  const ActionModal$2 = _ref => {
44896
44087
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -44954,7 +44145,7 @@ const ActionModal$2 = _ref => {
44954
44145
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
44955
44146
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
44956
44147
  } else {
44957
- const _temp = _catch$1(function () {
44148
+ const _temp = _catch(function () {
44958
44149
  return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
44959
44150
  var _response$data, _response$data$files;
44960
44151
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -45018,10 +44209,10 @@ const ActionModal$2 = _ref => {
45018
44209
  }
45019
44210
  }, [action, approvers, uploadedFile, error]);
45020
44211
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
45021
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$2, {
44212
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$3, {
45022
44213
  label: t(config.label.heading)
45023
44214
  }),
45024
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$2, {
44215
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$3, {
45025
44216
  onClick: closeModal
45026
44217
  }),
45027
44218
  actionCancelLabel: t(config.label.cancel),
@@ -45062,7 +44253,7 @@ const ActionModal$2 = _ref => {
45062
44253
  })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
45063
44254
  };
45064
44255
 
45065
- const Heading$3 = props => {
44256
+ const Heading$4 = props => {
45066
44257
  return /*#__PURE__*/React__default.createElement("h1", {
45067
44258
  style: {
45068
44259
  marginLeft: "22px"
@@ -45070,7 +44261,7 @@ const Heading$3 = props => {
45070
44261
  className: "heading-m BPAheading-m"
45071
44262
  }, props.label);
45072
44263
  };
45073
- const Close$4 = () => /*#__PURE__*/React__default.createElement("svg", {
44264
+ const Close$5 = () => /*#__PURE__*/React__default.createElement("svg", {
45074
44265
  xmlns: "http://www.w3.org/2000/svg",
45075
44266
  viewBox: "0 0 24 24",
45076
44267
  fill: "#FFFFFF"
@@ -45080,11 +44271,11 @@ const Close$4 = () => /*#__PURE__*/React__default.createElement("svg", {
45080
44271
  }), /*#__PURE__*/React__default.createElement("path", {
45081
44272
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
45082
44273
  }));
45083
- const CloseBtn$3 = props => {
44274
+ const CloseBtn$4 = props => {
45084
44275
  return /*#__PURE__*/React__default.createElement("div", {
45085
44276
  className: "icon-bg-secondary",
45086
44277
  onClick: props.onClick
45087
- }, /*#__PURE__*/React__default.createElement(Close$4, null));
44278
+ }, /*#__PURE__*/React__default.createElement(Close$5, null));
45088
44279
  };
45089
44280
  const ActionModal$3 = _ref => {
45090
44281
  var _applicationData, _applicationData$land, _applicationData$land2, _applicationData2, _applicationData2$lan, _applicationData2$lan2, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6;
@@ -45233,7 +44424,7 @@ const ActionModal$3 = _ref => {
45233
44424
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
45234
44425
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
45235
44426
  } else {
45236
- const _temp = _catch$1(function () {
44427
+ const _temp = _catch(function () {
45237
44428
  return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
45238
44429
  var _response$data, _response$data$files;
45239
44430
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -45351,10 +44542,10 @@ const ActionModal$3 = _ref => {
45351
44542
  }
45352
44543
  }, [action, approvers, selectedFinancialYear, uploadedFile, error]);
45353
44544
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
45354
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$3, {
44545
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$4, {
45355
44546
  label: t(config.label.heading)
45356
44547
  }),
45357
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$3, {
44548
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$4, {
45358
44549
  onClick: closeModal
45359
44550
  }),
45360
44551
  actionCancelLabel: t(config.label.cancel),
@@ -45397,7 +44588,7 @@ const ActionModal$3 = _ref => {
45397
44588
  })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
45398
44589
  };
45399
44590
 
45400
- const Heading$4 = props => {
44591
+ const Heading$5 = props => {
45401
44592
  return /*#__PURE__*/React__default.createElement("h1", {
45402
44593
  style: {
45403
44594
  marginLeft: "22px"
@@ -45405,7 +44596,7 @@ const Heading$4 = props => {
45405
44596
  className: "heading-m BPAheading-m"
45406
44597
  }, props.label);
45407
44598
  };
45408
- const Close$5 = () => /*#__PURE__*/React__default.createElement("svg", {
44599
+ const Close$6 = () => /*#__PURE__*/React__default.createElement("svg", {
45409
44600
  xmlns: "http://www.w3.org/2000/svg",
45410
44601
  viewBox: "0 0 24 24",
45411
44602
  fill: "#FFFFFF"
@@ -45415,11 +44606,11 @@ const Close$5 = () => /*#__PURE__*/React__default.createElement("svg", {
45415
44606
  }), /*#__PURE__*/React__default.createElement("path", {
45416
44607
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
45417
44608
  }));
45418
- const CloseBtn$4 = props => {
44609
+ const CloseBtn$5 = props => {
45419
44610
  return /*#__PURE__*/React__default.createElement("div", {
45420
44611
  className: "icon-bg-secondary",
45421
44612
  onClick: props.onClick
45422
- }, /*#__PURE__*/React__default.createElement(Close$5, null));
44613
+ }, /*#__PURE__*/React__default.createElement(Close$6, null));
45423
44614
  };
45424
44615
  const ActionModal$4 = _ref => {
45425
44616
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -45485,7 +44676,7 @@ const ActionModal$4 = _ref => {
45485
44676
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
45486
44677
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
45487
44678
  } else {
45488
- const _temp = _catch$1(function () {
44679
+ const _temp = _catch(function () {
45489
44680
  return Promise.resolve(Digit.UploadServices.Filestorage("NOC", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
45490
44681
  var _response$data, _response$data$files;
45491
44682
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -45558,10 +44749,10 @@ const ActionModal$4 = _ref => {
45558
44749
  }
45559
44750
  }, [action, approvers, uploadedFile, error]);
45560
44751
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
45561
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$4, {
44752
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$5, {
45562
44753
  label: t(config.label.heading)
45563
44754
  }),
45564
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$4, {
44755
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$5, {
45565
44756
  onClick: closeModal
45566
44757
  }),
45567
44758
  actionCancelLabel: t(config.label.cancel),
@@ -45602,12 +44793,12 @@ const ActionModal$4 = _ref => {
45602
44793
  })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
45603
44794
  };
45604
44795
 
45605
- const Heading$5 = props => {
44796
+ const Heading$6 = props => {
45606
44797
  return /*#__PURE__*/React__default.createElement("h1", {
45607
44798
  className: "heading-m"
45608
44799
  }, props.label);
45609
44800
  };
45610
- const Close$6 = () => /*#__PURE__*/React__default.createElement("svg", {
44801
+ const Close$7 = () => /*#__PURE__*/React__default.createElement("svg", {
45611
44802
  xmlns: "http://www.w3.org/2000/svg",
45612
44803
  viewBox: "0 0 24 24",
45613
44804
  fill: "#FFFFFF"
@@ -45617,11 +44808,11 @@ const Close$6 = () => /*#__PURE__*/React__default.createElement("svg", {
45617
44808
  }), /*#__PURE__*/React__default.createElement("path", {
45618
44809
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
45619
44810
  }));
45620
- const CloseBtn$5 = props => {
44811
+ const CloseBtn$6 = props => {
45621
44812
  return /*#__PURE__*/React__default.createElement("div", {
45622
44813
  className: "icon-bg-secondary",
45623
44814
  onClick: props.onClick
45624
- }, /*#__PURE__*/React__default.createElement(Close$6, null));
44815
+ }, /*#__PURE__*/React__default.createElement(Close$7, null));
45625
44816
  };
45626
44817
  const convertDateToEpochNew$1 = function (dateString, dayStartOrEnd) {
45627
44818
  if (dayStartOrEnd === void 0) {
@@ -45713,7 +44904,7 @@ const ActionModal$5 = _ref => {
45713
44904
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
45714
44905
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
45715
44906
  } else {
45716
- const _temp = _catch$1(function () {
44907
+ const _temp = _catch(function () {
45717
44908
  return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getCurrentTenantId())).then(function (response) {
45718
44909
  var _response$data, _response$data$files;
45719
44910
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -45934,10 +45125,10 @@ const ActionModal$5 = _ref => {
45934
45125
  }
45935
45126
  }, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText, showApprovalChecklist, approvalChecklist, applicationData]);
45936
45127
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
45937
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$5, {
45128
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$6, {
45938
45129
  label: t(config.label.heading)
45939
45130
  }),
45940
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$5, {
45131
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$6, {
45941
45132
  onClick: closeModal
45942
45133
  }),
45943
45134
  actionCancelLabel: t(config.label.cancel),
@@ -45970,12 +45161,12 @@ const ActionModal$5 = _ref => {
45970
45161
  }))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
45971
45162
  };
45972
45163
 
45973
- const Heading$6 = props => {
45164
+ const Heading$7 = props => {
45974
45165
  return /*#__PURE__*/React__default.createElement("h1", {
45975
45166
  className: "heading-m"
45976
45167
  }, props.label);
45977
45168
  };
45978
- const Close$7 = () => /*#__PURE__*/React__default.createElement("svg", {
45169
+ const Close$8 = () => /*#__PURE__*/React__default.createElement("svg", {
45979
45170
  xmlns: "http://www.w3.org/2000/svg",
45980
45171
  viewBox: "0 0 24 24",
45981
45172
  fill: "#FFFFFF"
@@ -45985,11 +45176,11 @@ const Close$7 = () => /*#__PURE__*/React__default.createElement("svg", {
45985
45176
  }), /*#__PURE__*/React__default.createElement("path", {
45986
45177
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
45987
45178
  }));
45988
- const CloseBtn$6 = props => {
45179
+ const CloseBtn$7 = props => {
45989
45180
  return /*#__PURE__*/React__default.createElement("div", {
45990
45181
  className: "icon-bg-secondary",
45991
45182
  onClick: props.onClick
45992
- }, /*#__PURE__*/React__default.createElement(Close$7, null));
45183
+ }, /*#__PURE__*/React__default.createElement(Close$8, null));
45993
45184
  };
45994
45185
  const ActionModal$6 = _ref => {
45995
45186
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -46049,7 +45240,7 @@ const ActionModal$6 = _ref => {
46049
45240
  if (file.size >= 5242880) {
46050
45241
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46051
45242
  } else {
46052
- const _temp = _catch$1(function () {
45243
+ const _temp = _catch(function () {
46053
45244
  return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
46054
45245
  var _response$data, _response$data$files;
46055
45246
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -46109,10 +45300,10 @@ const ActionModal$6 = _ref => {
46109
45300
  }
46110
45301
  }, [action, approvers, uploadedFile]);
46111
45302
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
46112
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$6, {
45303
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$7, {
46113
45304
  label: t(config.label.heading)
46114
45305
  }),
46115
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$6, {
45306
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$7, {
46116
45307
  onClick: closeModal
46117
45308
  }),
46118
45309
  actionCancelLabel: t(config.label.cancel),
@@ -46131,12 +45322,12 @@ const ActionModal$6 = _ref => {
46131
45322
  })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
46132
45323
  };
46133
45324
 
46134
- const Heading$7 = props => {
45325
+ const Heading$8 = props => {
46135
45326
  return /*#__PURE__*/React__default.createElement("h1", {
46136
45327
  className: "heading-m"
46137
45328
  }, props.label);
46138
45329
  };
46139
- const Close$8 = () => /*#__PURE__*/React__default.createElement("svg", {
45330
+ const Close$9 = () => /*#__PURE__*/React__default.createElement("svg", {
46140
45331
  xmlns: "http://www.w3.org/2000/svg",
46141
45332
  viewBox: "0 0 24 24",
46142
45333
  fill: "#FFFFFF"
@@ -46146,11 +45337,11 @@ const Close$8 = () => /*#__PURE__*/React__default.createElement("svg", {
46146
45337
  }), /*#__PURE__*/React__default.createElement("path", {
46147
45338
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
46148
45339
  }));
46149
- const CloseBtn$7 = props => {
45340
+ const CloseBtn$8 = props => {
46150
45341
  return /*#__PURE__*/React__default.createElement("div", {
46151
45342
  className: "icon-bg-secondary",
46152
45343
  onClick: props.onClick
46153
- }, /*#__PURE__*/React__default.createElement(Close$8, null));
45344
+ }, /*#__PURE__*/React__default.createElement(Close$9, null));
46154
45345
  };
46155
45346
  const ActionModal$7 = _ref => {
46156
45347
  var _action$roles, _action$roles$, _action$roles$$map;
@@ -46230,10 +45421,10 @@ const ActionModal$7 = _ref => {
46230
45421
  }
46231
45422
  }, [action, approvers, uploadedFile]);
46232
45423
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
46233
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$7, {
45424
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$8, {
46234
45425
  label: t(config.label.heading)
46235
45426
  }),
46236
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$7, {
45427
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$8, {
46237
45428
  onClick: closeModal
46238
45429
  }),
46239
45430
  actionCancelLabel: t(config.label.cancel),
@@ -46256,12 +45447,12 @@ const ActionModal$7 = _ref => {
46256
45447
  })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
46257
45448
  };
46258
45449
 
46259
- const Heading$8 = props => {
45450
+ const Heading$9 = props => {
46260
45451
  return /*#__PURE__*/React__default.createElement("h1", {
46261
45452
  className: "heading-m"
46262
45453
  }, props.label);
46263
45454
  };
46264
- const Close$9 = () => /*#__PURE__*/React__default.createElement("svg", {
45455
+ const Close$a = () => /*#__PURE__*/React__default.createElement("svg", {
46265
45456
  xmlns: "http://www.w3.org/2000/svg",
46266
45457
  viewBox: "0 0 24 24",
46267
45458
  fill: "#FFFFFF"
@@ -46271,11 +45462,11 @@ const Close$9 = () => /*#__PURE__*/React__default.createElement("svg", {
46271
45462
  }), /*#__PURE__*/React__default.createElement("path", {
46272
45463
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
46273
45464
  }));
46274
- const CloseBtn$8 = props => {
45465
+ const CloseBtn$9 = props => {
46275
45466
  return /*#__PURE__*/React__default.createElement("div", {
46276
45467
  className: "icon-bg-secondary",
46277
45468
  onClick: props.onClick
46278
- }, /*#__PURE__*/React__default.createElement(Close$9, null));
45469
+ }, /*#__PURE__*/React__default.createElement(Close$a, null));
46279
45470
  };
46280
45471
  const ActionModal$8 = _ref => {
46281
45472
  var _action$assigneeRoles, _action$assigneeRoles2;
@@ -46334,7 +45525,7 @@ const ActionModal$8 = _ref => {
46334
45525
  if (file.size >= 5242880) {
46335
45526
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46336
45527
  } else {
46337
- const _temp = _catch$1(function () {
45528
+ const _temp = _catch(function () {
46338
45529
  return Promise.resolve(Digit.UploadServices.Filestorage("CHB", file, tenantId)).then(function (response) {
46339
45530
  var _response$data, _response$data$files;
46340
45531
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -46393,173 +45584,6 @@ const ActionModal$8 = _ref => {
46393
45584
  }));
46394
45585
  }
46395
45586
  }, [action, approvers, uploadedFile]);
46396
- return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
46397
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$8, {
46398
- label: t(config.label.heading)
46399
- }),
46400
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$8, {
46401
- onClick: closeModal
46402
- }),
46403
- actionCancelLabel: t(config.label.cancel),
46404
- actionCancelOnSubmit: closeModal,
46405
- actionSaveLabel: t(config.label.submit),
46406
- actionSaveOnSubmit: () => {},
46407
- formId: "modal-action"
46408
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
46409
- config: config.form,
46410
- noBoxShadow: true,
46411
- inline: true,
46412
- childrenAtTheBottom: true,
46413
- onSubmit: submit,
46414
- defaultValues: defaultValues,
46415
- formId: "modal-action"
46416
- })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
46417
- };
46418
-
46419
- const Heading$9 = props => {
46420
- return /*#__PURE__*/React__default.createElement("h1", {
46421
- className: "heading-m"
46422
- }, props.label);
46423
- };
46424
- const Close$a = () => /*#__PURE__*/React__default.createElement("svg", {
46425
- xmlns: "http://www.w3.org/2000/svg",
46426
- viewBox: "0 0 24 24",
46427
- fill: "#FFFFFF"
46428
- }, /*#__PURE__*/React__default.createElement("path", {
46429
- d: "M0 0h24v24H0V0z",
46430
- fill: "none"
46431
- }), /*#__PURE__*/React__default.createElement("path", {
46432
- d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
46433
- }));
46434
- const CloseBtn$9 = props => {
46435
- return /*#__PURE__*/React__default.createElement("div", {
46436
- className: "icon-bg-secondary",
46437
- onClick: props.onClick
46438
- }, /*#__PURE__*/React__default.createElement(Close$a, null));
46439
- };
46440
- const ActionModal$9 = _ref => {
46441
- var _action$assigneeRoles, _action$assigneeRoles2;
46442
- let {
46443
- t,
46444
- action,
46445
- tenantId,
46446
- state,
46447
- id,
46448
- closeModal,
46449
- submitAction,
46450
- actionData,
46451
- applicationData,
46452
- businessService,
46453
- moduleCode
46454
- } = _ref;
46455
- console.log("snjdskbjdfbjskfjkbs", action);
46456
- const {
46457
- data: approverData,
46458
- isLoading: PTALoading
46459
- } = Digit.Hooks.useEmployeeSearch(tenantId, {
46460
- roles: action === null || action === void 0 ? void 0 : (_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : (_action$assigneeRoles2 = _action$assigneeRoles.map) === null || _action$assigneeRoles2 === void 0 ? void 0 : _action$assigneeRoles2.call(_action$assigneeRoles, e => ({
46461
- code: e
46462
- })),
46463
- isActive: true
46464
- }, {
46465
- enabled: !(action !== null && action !== void 0 && action.isTerminateState)
46466
- });
46467
- const [config, setConfig] = React.useState({});
46468
- const [defaultValues, setDefaultValues] = React.useState({});
46469
- const [approvers, setApprovers] = React.useState([]);
46470
- const [selectedApprover, setSelectedApprover] = React.useState(null);
46471
- const [pickUpDate, setpickUpDate] = React.useState(null);
46472
- const [file, setFile] = React.useState(null);
46473
- const [uploadedFile, setUploadedFile] = React.useState(null);
46474
- const [error, setError] = React.useState(null);
46475
- const [disableActionSubmit, setDisableActionSubmit] = React.useState(false);
46476
- React.useEffect(() => {
46477
- var _approverData$Employe;
46478
- setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
46479
- var _employee$user;
46480
- return {
46481
- uuid: employee === null || employee === void 0 ? void 0 : employee.uuid,
46482
- name: employee === null || employee === void 0 ? void 0 : (_employee$user = employee.user) === null || _employee$user === void 0 ? void 0 : _employee$user.name
46483
- };
46484
- }));
46485
- }, [approverData]);
46486
- function selectFile(e) {
46487
- setFile(e.target.files[0]);
46488
- }
46489
- React.useEffect(() => {
46490
- (function () {
46491
- try {
46492
- setError(null);
46493
- const _temp3 = function () {
46494
- if (file) {
46495
- const _temp2 = function () {
46496
- if (file.size >= 5242880) {
46497
- setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46498
- } else {
46499
- const _temp = _catch$1(function () {
46500
- return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
46501
- var _response$data, _response$data$files;
46502
- if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
46503
- var _response$data2, _response$data2$files;
46504
- setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId);
46505
- } else {
46506
- setError(t("CS_FILE_UPLOAD_ERROR"));
46507
- }
46508
- });
46509
- }, function () {
46510
- setError(t("CS_FILE_UPLOAD_ERROR"));
46511
- });
46512
- if (_temp && _temp.then) return _temp.then(function () {});
46513
- }
46514
- }();
46515
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
46516
- }
46517
- }();
46518
- return _temp3 && _temp3.then ? _temp3.then(function () {}) : void 0;
46519
- } catch (e) {
46520
- Promise.reject(e);
46521
- }
46522
- })();
46523
- }, [file]);
46524
- function submit(data) {
46525
- let workflow = {
46526
- action: action === null || action === void 0 ? void 0 : action.action,
46527
- comments: data === null || data === void 0 ? void 0 : data.comments,
46528
- businessService,
46529
- moduleName: moduleCode
46530
- };
46531
- console.log("applicationData", data);
46532
- if (uploadedFile) workflow["documents"] = [{
46533
- documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
46534
- fileName: file === null || file === void 0 ? void 0 : file.name,
46535
- filestoreId: uploadedFile
46536
- }, {}];
46537
- applicationData.pickUpDate = data === null || data === void 0 ? void 0 : data.date;
46538
- applicationData.transactionId = data === null || data === void 0 ? void 0 : data.transactionId;
46539
- applicationData.finalAmount = data === null || data === void 0 ? void 0 : data.finalAmount;
46540
- submitAction({
46541
- EwasteApplication: [{
46542
- ...applicationData,
46543
- workflow
46544
- }]
46545
- });
46546
- }
46547
- React.useEffect(() => {
46548
- if (action) {
46549
- setConfig(configEWApproverApplication({
46550
- t,
46551
- action,
46552
- approvers,
46553
- selectedApprover,
46554
- setSelectedApprover,
46555
- selectFile,
46556
- uploadedFile,
46557
- setUploadedFile,
46558
- businessService
46559
- }));
46560
- }
46561
- }, [action, approvers, uploadedFile]);
46562
- console.log("conggg", config);
46563
45587
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
46564
45588
  headerBarMain: /*#__PURE__*/React__default.createElement(Heading$9, {
46565
45589
  label: t(config.label.heading)
@@ -46604,6 +45628,173 @@ const CloseBtn$a = props => {
46604
45628
  onClick: props.onClick
46605
45629
  }, /*#__PURE__*/React__default.createElement(Close$b, null));
46606
45630
  };
45631
+ const ActionModal$9 = _ref => {
45632
+ var _action$assigneeRoles, _action$assigneeRoles2;
45633
+ let {
45634
+ t,
45635
+ action,
45636
+ tenantId,
45637
+ state,
45638
+ id,
45639
+ closeModal,
45640
+ submitAction,
45641
+ actionData,
45642
+ applicationData,
45643
+ businessService,
45644
+ moduleCode
45645
+ } = _ref;
45646
+ console.log("snjdskbjdfbjskfjkbs", action);
45647
+ const {
45648
+ data: approverData,
45649
+ isLoading: PTALoading
45650
+ } = Digit.Hooks.useEmployeeSearch(tenantId, {
45651
+ roles: action === null || action === void 0 ? void 0 : (_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : (_action$assigneeRoles2 = _action$assigneeRoles.map) === null || _action$assigneeRoles2 === void 0 ? void 0 : _action$assigneeRoles2.call(_action$assigneeRoles, e => ({
45652
+ code: e
45653
+ })),
45654
+ isActive: true
45655
+ }, {
45656
+ enabled: !(action !== null && action !== void 0 && action.isTerminateState)
45657
+ });
45658
+ const [config, setConfig] = React.useState({});
45659
+ const [defaultValues, setDefaultValues] = React.useState({});
45660
+ const [approvers, setApprovers] = React.useState([]);
45661
+ const [selectedApprover, setSelectedApprover] = React.useState(null);
45662
+ const [pickUpDate, setpickUpDate] = React.useState(null);
45663
+ const [file, setFile] = React.useState(null);
45664
+ const [uploadedFile, setUploadedFile] = React.useState(null);
45665
+ const [error, setError] = React.useState(null);
45666
+ const [disableActionSubmit, setDisableActionSubmit] = React.useState(false);
45667
+ React.useEffect(() => {
45668
+ var _approverData$Employe;
45669
+ setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
45670
+ var _employee$user;
45671
+ return {
45672
+ uuid: employee === null || employee === void 0 ? void 0 : employee.uuid,
45673
+ name: employee === null || employee === void 0 ? void 0 : (_employee$user = employee.user) === null || _employee$user === void 0 ? void 0 : _employee$user.name
45674
+ };
45675
+ }));
45676
+ }, [approverData]);
45677
+ function selectFile(e) {
45678
+ setFile(e.target.files[0]);
45679
+ }
45680
+ React.useEffect(() => {
45681
+ (function () {
45682
+ try {
45683
+ setError(null);
45684
+ const _temp3 = function () {
45685
+ if (file) {
45686
+ const _temp2 = function () {
45687
+ if (file.size >= 5242880) {
45688
+ setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
45689
+ } else {
45690
+ const _temp = _catch(function () {
45691
+ return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
45692
+ var _response$data, _response$data$files;
45693
+ if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
45694
+ var _response$data2, _response$data2$files;
45695
+ setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId);
45696
+ } else {
45697
+ setError(t("CS_FILE_UPLOAD_ERROR"));
45698
+ }
45699
+ });
45700
+ }, function () {
45701
+ setError(t("CS_FILE_UPLOAD_ERROR"));
45702
+ });
45703
+ if (_temp && _temp.then) return _temp.then(function () {});
45704
+ }
45705
+ }();
45706
+ if (_temp2 && _temp2.then) return _temp2.then(function () {});
45707
+ }
45708
+ }();
45709
+ return _temp3 && _temp3.then ? _temp3.then(function () {}) : void 0;
45710
+ } catch (e) {
45711
+ Promise.reject(e);
45712
+ }
45713
+ })();
45714
+ }, [file]);
45715
+ function submit(data) {
45716
+ let workflow = {
45717
+ action: action === null || action === void 0 ? void 0 : action.action,
45718
+ comments: data === null || data === void 0 ? void 0 : data.comments,
45719
+ businessService,
45720
+ moduleName: moduleCode
45721
+ };
45722
+ console.log("applicationData", data);
45723
+ if (uploadedFile) workflow["documents"] = [{
45724
+ documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
45725
+ fileName: file === null || file === void 0 ? void 0 : file.name,
45726
+ filestoreId: uploadedFile
45727
+ }, {}];
45728
+ applicationData.pickUpDate = data === null || data === void 0 ? void 0 : data.date;
45729
+ applicationData.transactionId = data === null || data === void 0 ? void 0 : data.transactionId;
45730
+ applicationData.finalAmount = data === null || data === void 0 ? void 0 : data.finalAmount;
45731
+ submitAction({
45732
+ EwasteApplication: [{
45733
+ ...applicationData,
45734
+ workflow
45735
+ }]
45736
+ });
45737
+ }
45738
+ React.useEffect(() => {
45739
+ if (action) {
45740
+ setConfig(configEWApproverApplication({
45741
+ t,
45742
+ action,
45743
+ approvers,
45744
+ selectedApprover,
45745
+ setSelectedApprover,
45746
+ selectFile,
45747
+ uploadedFile,
45748
+ setUploadedFile,
45749
+ businessService
45750
+ }));
45751
+ }
45752
+ }, [action, approvers, uploadedFile]);
45753
+ console.log("conggg", config);
45754
+ return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
45755
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$a, {
45756
+ label: t(config.label.heading)
45757
+ }),
45758
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$a, {
45759
+ onClick: closeModal
45760
+ }),
45761
+ actionCancelLabel: t(config.label.cancel),
45762
+ actionCancelOnSubmit: closeModal,
45763
+ actionSaveLabel: t(config.label.submit),
45764
+ actionSaveOnSubmit: () => {},
45765
+ formId: "modal-action"
45766
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
45767
+ config: config.form,
45768
+ noBoxShadow: true,
45769
+ inline: true,
45770
+ childrenAtTheBottom: true,
45771
+ onSubmit: submit,
45772
+ defaultValues: defaultValues,
45773
+ formId: "modal-action"
45774
+ })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
45775
+ };
45776
+
45777
+ const Heading$b = props => {
45778
+ return /*#__PURE__*/React__default.createElement("h1", {
45779
+ className: "heading-m"
45780
+ }, props.label);
45781
+ };
45782
+ const Close$c = () => /*#__PURE__*/React__default.createElement("svg", {
45783
+ xmlns: "http://www.w3.org/2000/svg",
45784
+ viewBox: "0 0 24 24",
45785
+ fill: "#FFFFFF"
45786
+ }, /*#__PURE__*/React__default.createElement("path", {
45787
+ d: "M0 0h24v24H0V0z",
45788
+ fill: "none"
45789
+ }), /*#__PURE__*/React__default.createElement("path", {
45790
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
45791
+ }));
45792
+ const CloseBtn$b = props => {
45793
+ return /*#__PURE__*/React__default.createElement("div", {
45794
+ className: "icon-bg-secondary",
45795
+ onClick: props.onClick
45796
+ }, /*#__PURE__*/React__default.createElement(Close$c, null));
45797
+ };
46607
45798
  const ActionModal$a = _ref => {
46608
45799
  var _action$assigneeRoles, _action$assigneeRoles2;
46609
45800
  let {
@@ -46662,8 +45853,8 @@ const ActionModal$a = _ref => {
46662
45853
  if (file.size >= 5242880) {
46663
45854
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46664
45855
  } else {
46665
- const _temp = _finallyRethrows$1(function () {
46666
- return _catch$1(function () {
45856
+ const _temp = _finallyRethrows(function () {
45857
+ return _catch(function () {
46667
45858
  return Promise.resolve(Digit.UploadServices.Filestorage("StreetVending", file, tenantId)).then(function (response) {
46668
45859
  var _response$data, _response$data$files;
46669
45860
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -46730,10 +45921,10 @@ const ActionModal$a = _ref => {
46730
45921
  }));
46731
45922
  }, [action, approvers, uploadedFile]);
46732
45923
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
46733
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$a, {
45924
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$b, {
46734
45925
  label: t(config.label.heading)
46735
45926
  }),
46736
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$a, {
45927
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$b, {
46737
45928
  onClick: closeModal
46738
45929
  }),
46739
45930
  actionCancelLabel: t(config.label.cancel),
@@ -46817,12 +46008,12 @@ const configWTApproverApplication = _ref => {
46817
46008
  };
46818
46009
  };
46819
46010
 
46820
- const Heading$b = props => {
46011
+ const Heading$c = props => {
46821
46012
  return /*#__PURE__*/React__default.createElement("h1", {
46822
46013
  className: "heading-m"
46823
46014
  }, props.label);
46824
46015
  };
46825
- const Close$c = () => /*#__PURE__*/React__default.createElement("svg", {
46016
+ const Close$d = () => /*#__PURE__*/React__default.createElement("svg", {
46826
46017
  xmlns: "http://www.w3.org/2000/svg",
46827
46018
  viewBox: "0 0 24 24",
46828
46019
  fill: "#FFFFFF"
@@ -46832,11 +46023,11 @@ const Close$c = () => /*#__PURE__*/React__default.createElement("svg", {
46832
46023
  }), /*#__PURE__*/React__default.createElement("path", {
46833
46024
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
46834
46025
  }));
46835
- const CloseBtn$b = props => {
46026
+ const CloseBtn$c = props => {
46836
46027
  return /*#__PURE__*/React__default.createElement("div", {
46837
46028
  className: "icon-bg-secondary",
46838
46029
  onClick: props.onClick
46839
- }, /*#__PURE__*/React__default.createElement(Close$c, null));
46030
+ }, /*#__PURE__*/React__default.createElement(Close$d, null));
46840
46031
  };
46841
46032
  const ActionModal$b = _ref => {
46842
46033
  var _action$assigneeRoles, _action$assigneeRoles2, _dsoData$vendor, _vehicleData$vehicle, _vehicleData$vehicle$;
@@ -46952,7 +46143,7 @@ const ActionModal$b = _ref => {
46952
46143
  if (file.size >= 5242880) {
46953
46144
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
46954
46145
  } else {
46955
- const _temp = _catch$1(function () {
46146
+ const _temp = _catch(function () {
46956
46147
  return Promise.resolve(Digit.UploadServices.Filestorage("WT", file, tenantId)).then(function (response) {
46957
46148
  var _response$data, _response$data$files;
46958
46149
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -47034,10 +46225,10 @@ const ActionModal$b = _ref => {
47034
46225
  }
47035
46226
  }, [action, approvers, uploadedFile, dsoData, selectVehicle, vehicleData]);
47036
46227
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
47037
- headerBarMain: /*#__PURE__*/React__default.createElement(Heading$b, {
46228
+ headerBarMain: /*#__PURE__*/React__default.createElement(Heading$c, {
47038
46229
  label: t(config.label.heading)
47039
46230
  }),
47040
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$b, {
46231
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$c, {
47041
46232
  onClick: closeModal
47042
46233
  }),
47043
46234
  actionCancelLabel: t(config.label.cancel),
@@ -47636,7 +46827,7 @@ function SelectDocument$4(_ref) {
47636
46827
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
47637
46828
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
47638
46829
  } else {
47639
- const _temp = _catch$1(function () {
46830
+ const _temp = _catch(function () {
47640
46831
  setUploadedFile(null);
47641
46832
  return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
47642
46833
  var _response$data, _response$data$files;
@@ -48017,7 +47208,7 @@ function PropertyDocuments(_ref) {
48017
47208
  };
48018
47209
  const forceDownload = function (url, fileName) {
48019
47210
  try {
48020
- return Promise.resolve(_catch$1(function () {
47211
+ return Promise.resolve(_catch(function () {
48021
47212
  return Promise.resolve(fetch(url)).then(function (response) {
48022
47213
  if (!response.ok) {
48023
47214
  throw new Error(`HTTP error! status: ${response.status}`);
@@ -49328,7 +48519,7 @@ const ArrearSummary = _ref => {
49328
48519
  }, t("CS_HIDE_CARD"))));
49329
48520
  };
49330
48521
 
49331
- const Close$d = () => /*#__PURE__*/React__default.createElement("svg", {
48522
+ const Close$e = () => /*#__PURE__*/React__default.createElement("svg", {
49332
48523
  xmlns: "http://www.w3.org/2000/svg",
49333
48524
  viewBox: "0 0 24 24",
49334
48525
  fill: "#FFFFFF"
@@ -49338,11 +48529,11 @@ const Close$d = () => /*#__PURE__*/React__default.createElement("svg", {
49338
48529
  }), /*#__PURE__*/React__default.createElement("path", {
49339
48530
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
49340
48531
  }));
49341
- const CloseBtn$c = props => {
48532
+ const CloseBtn$d = props => {
49342
48533
  return /*#__PURE__*/React__default.createElement("div", {
49343
48534
  className: "icon-bg-secondary",
49344
48535
  onClick: props.onClick
49345
- }, /*#__PURE__*/React__default.createElement(Close$d, null));
48536
+ }, /*#__PURE__*/React__default.createElement(Close$e, null));
49346
48537
  };
49347
48538
  const RenewPopup = _ref => {
49348
48539
  let {
@@ -49370,7 +48561,7 @@ const RenewPopup = _ref => {
49370
48561
  headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
49371
48562
  label: "SV_WANT_TO_EDIT"
49372
48563
  }),
49373
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$c, {
48564
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$d, {
49374
48565
  onClick: closeModal
49375
48566
  }),
49376
48567
  actionCancelLabel: t("CS_COMMON_BACK"),
@@ -49515,7 +48706,7 @@ const DueVerification = _ref => {
49515
48706
  try {
49516
48707
  return Promise.resolve(function () {
49517
48708
  if (isZROApproval && applicationData !== null && applicationData !== void 0 && applicationData.applicationNo) {
49518
- return _catch$1(function () {
48709
+ return _catch(function () {
49519
48710
  return Promise.resolve(checkDueVerification({
49520
48711
  DueVerification: {
49521
48712
  applicationNo: applicationData.applicationNo
@@ -49559,7 +48750,7 @@ const DueVerification = _ref => {
49559
48750
  });
49560
48751
  return;
49561
48752
  }
49562
- return _catch$1(function () {
48753
+ return _catch(function () {
49563
48754
  return Promise.resolve(checkDueVerification({
49564
48755
  DueVerification: {
49565
48756
  kno: kno
@@ -50604,7 +49795,7 @@ function ApplicationDetailsActionBar(_ref) {
50604
49795
  }, t(`${forcedActionPrefix || `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}`}_${actions === null || actions === void 0 ? void 0 : (_actions$4 = actions[0]) === null || _actions$4 === void 0 ? void 0 : _actions$4.action}`))));
50605
49796
  }
50606
49797
 
50607
- const Close$e = () => /*#__PURE__*/React__default.createElement("svg", {
49798
+ const Close$f = () => /*#__PURE__*/React__default.createElement("svg", {
50608
49799
  xmlns: "http://www.w3.org/2000/svg",
50609
49800
  viewBox: "0 0 24 24",
50610
49801
  fill: "#FFFFFF"
@@ -50614,11 +49805,11 @@ const Close$e = () => /*#__PURE__*/React__default.createElement("svg", {
50614
49805
  }), /*#__PURE__*/React__default.createElement("path", {
50615
49806
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
50616
49807
  }));
50617
- const CloseBtn$d = props => {
49808
+ const CloseBtn$e = props => {
50618
49809
  return /*#__PURE__*/React__default.createElement("div", {
50619
49810
  className: "icon-bg-secondary",
50620
49811
  onClick: props.onClick
50621
- }, /*#__PURE__*/React__default.createElement(Close$e, null));
49812
+ }, /*#__PURE__*/React__default.createElement(Close$f, null));
50622
49813
  };
50623
49814
  function ApplicationDetailsWarningPopup(_ref) {
50624
49815
  let {
@@ -50636,7 +49827,7 @@ function ApplicationDetailsWarningPopup(_ref) {
50636
49827
  headerBarMain: /*#__PURE__*/React__default.createElement("h1", {
50637
49828
  className: "heading-m"
50638
49829
  }, t("PT_DUES_ARE_PENDING")),
50639
- headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$d, {
49830
+ headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn$e, {
50640
49831
  onClick: () => {
50641
49832
  closeWarningPopup();
50642
49833
  }
@@ -50921,7 +50112,7 @@ const ApplicationDetails = props => {
50921
50112
  const nocPrmomises = (_nocData = nocData) === null || _nocData === void 0 ? void 0 : _nocData.map(noc => {
50922
50113
  return nocMutation === null || nocMutation === void 0 ? void 0 : nocMutation.mutateAsync(noc);
50923
50114
  });
50924
- const _temp = _catch$1(function () {
50115
+ const _temp = _catch(function () {
50925
50116
  setIsEnableLoader(true);
50926
50117
  return Promise.resolve(Promise.all(nocPrmomises)).then(function (values) {
50927
50118
  values && values.map(ob => {
@@ -54822,7 +54013,9 @@ const Step2_NewConsumerDetails = _ref => {
54822
54013
  control,
54823
54014
  name: "reasonForNameChange"
54824
54015
  });
54825
- const isOtherReason = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER" || selectedReason === "OTHER";
54016
+ const isDevolutionOrInheritance = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "DEVOLUTION_INHERITANCE" || selectedReason === "DEVOLUTION_INHERITANCE" || String((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) || "").toUpperCase().includes("DEVOLUTION") || String(selectedReason || "").toUpperCase().includes("DEVOLUTION");
54017
+ console.log("selectedReason in Step2:", selectedReason);
54018
+ console.log("isDevolutionOrInheritance:", isDevolutionOrInheritance);
54826
54019
  const genderOptions = [{
54827
54020
  code: "MALE",
54828
54021
  i18nKey: "Male"
@@ -54841,7 +54034,7 @@ const Step2_NewConsumerDetails = _ref => {
54841
54034
  i18nKey: "Devolution/Inheritance"
54842
54035
  }, {
54843
54036
  code: "OTHER",
54844
- i18nKey: "Other Reason(Gift Deed, Lease Agreement, etc)"
54037
+ i18nKey: "Other Reason(Registered Sale Deed/Convayed Deed/Transfer Deed, Registered GPA, Possession Letter/Allotment Letter)"
54845
54038
  }];
54846
54039
  const relationshipOptions = [{
54847
54040
  code: "BLOOD_RELATION",
@@ -55110,7 +54303,8 @@ const Step2_NewConsumerDetails = _ref => {
55110
54303
  ...p,
55111
54304
  reasonForNameChange: true
55112
54305
  }));
55113
- if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER" && val !== "OTHER") {
54306
+ const isDev = (val === null || val === void 0 ? void 0 : val.code) === "DEVOLUTION_INHERITANCE" || val === "DEVOLUTION_INHERITANCE" || String((val === null || val === void 0 ? void 0 : val.code) || "").toUpperCase().includes("DEVOLUTION") || String(val || "").toUpperCase().includes("DEVOLUTION");
54307
+ if (!isDev) {
55114
54308
  setValue("relationshipWithExistingConsumer", null);
55115
54309
  }
55116
54310
  },
@@ -55123,13 +54317,13 @@ const Step2_NewConsumerDetails = _ref => {
55123
54317
  }, errors === null || errors === void 0 ? void 0 : (_errors$reasonForName = errors.reasonForNameChange) === null || _errors$reasonForName === void 0 ? void 0 : _errors$reasonForName.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
55124
54318
  style: {
55125
54319
  fontWeight: "bold",
55126
- color: isOtherReason ? "inherit" : "#999"
54320
+ color: isDevolutionOrInheritance ? "inherit" : "#999"
55127
54321
  }
55128
- }, "Relationship with Existing Consumer ", isOtherReason && mandatoryIndicator), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
54322
+ }, "Relationship with Existing Consumer ", isDevolutionOrInheritance && mandatoryIndicator), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
55129
54323
  control: control,
55130
54324
  name: "relationshipWithExistingConsumer",
55131
54325
  rules: {
55132
- required: isOtherReason ? "Relationship is required when 'Other Reason' is selected" : false
54326
+ required: isDevolutionOrInheritance ? "Relationship is required when 'Devolution/Inheritance' is selected" : false
55133
54327
  },
55134
54328
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
55135
54329
  selected: props.value,
@@ -55144,16 +54338,16 @@ const Step2_NewConsumerDetails = _ref => {
55144
54338
  optionKey: "i18nKey",
55145
54339
  t: t,
55146
54340
  placeholder: "Select relationship",
55147
- disable: !isOtherReason
54341
+ disable: !isDevolutionOrInheritance
55148
54342
  })
55149
- }), !isOtherReason && /*#__PURE__*/React__default.createElement("span", {
54343
+ }), !isDevolutionOrInheritance && /*#__PURE__*/React__default.createElement("span", {
55150
54344
  style: {
55151
54345
  fontSize: "11px",
55152
54346
  color: "#999",
55153
54347
  marginTop: "4px",
55154
54348
  display: "block"
55155
54349
  }
55156
- }, "Enabled only when \"Other Reason\" is selected above"), (errors === null || errors === void 0 ? void 0 : errors.relationshipWithExistingConsumer) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
54350
+ }, "Enabled only when \"Devolution/Inheritance\" is selected above"), (errors === null || errors === void 0 ? void 0 : errors.relationshipWithExistingConsumer) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
55157
54351
  style: errorStyle
55158
54352
  }, errors === null || errors === void 0 ? void 0 : (_errors$relationshipW = errors.relationshipWithExistingConsumer) === null || _errors$relationshipW === void 0 ? void 0 : _errors$relationshipW.message))), /*#__PURE__*/React__default.createElement("div", {
55159
54353
  style: {
@@ -55249,6 +54443,8 @@ const Step3_UploadDocuments = _ref => {
55249
54443
  const [hasAttemptedSubmit, setHasAttemptedSubmit] = React.useState(false);
55250
54444
  const [digiLockerUpload, setDigilockerUpload] = React.useState(false);
55251
54445
  const [isDocumentUidLocked, setIsDocumentUidLocked] = React.useState(false);
54446
+ const [showDocumentNumber, setShowDocumentNumber] = React.useState(false);
54447
+ const [isDeclarationChecked, setIsDeclarationChecked] = React.useState((defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.isDeclarationChecked) || false);
55252
54448
  const identityOptions = [{
55253
54449
  code: "AADHAAR",
55254
54450
  i18nKey: "Aadhaar Card"
@@ -55450,11 +54646,12 @@ const Step3_UploadDocuments = _ref => {
55450
54646
  if (!identityProofType) newErrors.identityType = "Please select a document type";
55451
54647
  if (!identityProofFile) newErrors.identityFile = "Please upload your identity proof document";
55452
54648
  if (!mutationDocFile) newErrors.mutationFile = "Please upload the reason-based supporting document";
54649
+ if (!isDeclarationChecked) newErrors.declaration = "You must accept the declaration before proceeding";
55453
54650
  const docError = validateDocumentNumber(documentNumber, identityProofType);
55454
54651
  if (docError) newErrors.documentNumber = docError;
55455
54652
  setFieldErrors(newErrors);
55456
54653
  }
55457
- }, [identityProofType, documentNumber, identityProofFile, mutationDocFile, hasAttemptedSubmit]);
54654
+ }, [identityProofType, documentNumber, identityProofFile, mutationDocFile, isDeclarationChecked, hasAttemptedSubmit]);
55458
54655
  const onProceed = () => {
55459
54656
  setHasAttemptedSubmit(true);
55460
54657
  const newErrors = {};
@@ -55463,6 +54660,7 @@ const Step3_UploadDocuments = _ref => {
55463
54660
  if (docError) newErrors.documentNumber = docError;
55464
54661
  if (!identityProofFile) newErrors.identityFile = "Please upload your identity proof document";
55465
54662
  if (!mutationDocFile) newErrors.mutationFile = "Please upload the reason-based supporting document";
54663
+ if (!isDeclarationChecked) newErrors.declaration = "You must accept the declaration before proceeding";
55466
54664
  setFieldErrors(newErrors);
55467
54665
  if (Object.keys(newErrors).length > 0) {
55468
54666
  const errorCount = Object.keys(newErrors).length;
@@ -55476,7 +54674,8 @@ const Step3_UploadDocuments = _ref => {
55476
54674
  identityProofType,
55477
54675
  documentNumber: documentNumber.trim(),
55478
54676
  identityProofDocumentId: identityProofFile,
55479
- saleDeedDocumentId: mutationDocFile
54677
+ saleDeedDocumentId: mutationDocFile,
54678
+ isDeclarationChecked
55480
54679
  });
55481
54680
  };
55482
54681
  const uploadBoxStyle = (hasError, hasFile) => ({
@@ -55567,7 +54766,7 @@ const Step3_UploadDocuments = _ref => {
55567
54766
  style: {
55568
54767
  fontWeight: "bold"
55569
54768
  }
55570
- }, "1. Address / Identity Proof ", mandatoryIndicator), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
54769
+ }, "1. Identity Proof ", mandatoryIndicator), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
55571
54770
  selected: identityProofType,
55572
54771
  option: identityOptions,
55573
54772
  select: val => {
@@ -55599,7 +54798,19 @@ const Step3_UploadDocuments = _ref => {
55599
54798
  fontWeight: "bold",
55600
54799
  marginTop: "8px"
55601
54800
  }
55602
- }, "Document Number ", mandatoryIndicator), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
54801
+ }, "Document Number ", mandatoryIndicator), /*#__PURE__*/React__default.createElement("div", {
54802
+ style: {
54803
+ display: "flex",
54804
+ alignItems: "flex-start",
54805
+ gap: "8px",
54806
+ marginBottom: "4px"
54807
+ }
54808
+ }, /*#__PURE__*/React__default.createElement("div", {
54809
+ style: {
54810
+ flex: 1
54811
+ }
54812
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
54813
+ type: showDocumentNumber ? "text" : "password",
55603
54814
  value: documentNumber,
55604
54815
  onChange: e => {
55605
54816
  if (!isDocumentUidLocked) {
@@ -55622,7 +54833,7 @@ const Step3_UploadDocuments = _ref => {
55622
54833
  placeholder: (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "AADHAAR" ? "Enter 12-digit Aadhaar number" : (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "PAN" ? "Enter PAN (e.g. ABCDE1234F)" : "Enter Document Number",
55623
54834
  disabled: isDocumentUidLocked,
55624
54835
  style: {
55625
- marginBottom: "4px",
54836
+ marginBottom: "0",
55626
54837
  ...(fieldErrors.documentNumber ? {
55627
54838
  border: "1px solid #d32f2f"
55628
54839
  } : {}),
@@ -55632,7 +54843,23 @@ const Step3_UploadDocuments = _ref => {
55632
54843
  color: "#555"
55633
54844
  } : {})
55634
54845
  }
55635
- }), fieldErrors.documentNumber && /*#__PURE__*/React__default.createElement("div", {
54846
+ })), /*#__PURE__*/React__default.createElement("button", {
54847
+ type: "button",
54848
+ onClick: () => setShowDocumentNumber(!showDocumentNumber),
54849
+ style: {
54850
+ padding: "8px 16px",
54851
+ backgroundColor: "#f4f9fc",
54852
+ border: "1px solid #ccc",
54853
+ borderRadius: "4px",
54854
+ cursor: "pointer",
54855
+ fontWeight: "500",
54856
+ fontSize: "14px",
54857
+ height: "40px",
54858
+ display: "flex",
54859
+ alignItems: "center",
54860
+ justifyContent: "center"
54861
+ }
54862
+ }, showDocumentNumber ? "Hide" : "View")), fieldErrors.documentNumber && /*#__PURE__*/React__default.createElement("div", {
55636
54863
  style: errorTextStyle
55637
54864
  }, fieldErrors.documentNumber), (identityProofType === null || identityProofType === void 0 ? void 0 : identityProofType.code) === "AADHAAR" && !fieldErrors.documentNumber && /*#__PURE__*/React__default.createElement("span", {
55638
54865
  style: {
@@ -55808,6 +55035,37 @@ const Step3_UploadDocuments = _ref => {
55808
55035
  marginRight: "4px"
55809
55036
  }
55810
55037
  }), " View ", mutationFileName)))), /*#__PURE__*/React__default.createElement("div", {
55038
+ style: {
55039
+ marginTop: "24px",
55040
+ padding: "16px",
55041
+ backgroundColor: fieldErrors.declaration ? "#fef2f2" : "#f8f9fa",
55042
+ borderRadius: "8px",
55043
+ border: fieldErrors.declaration ? "1px solid #d32f2f" : "1px solid #e9ecef"
55044
+ }
55045
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
55046
+ label: "I declare that the documents uploaded by me are genuine, valid, and accurate to the best of my knowledge.",
55047
+ onChange: e => {
55048
+ setIsDeclarationChecked(e.target.checked);
55049
+ if (e.target.checked) {
55050
+ setFieldErrors(prev => ({
55051
+ ...prev,
55052
+ declaration: null
55053
+ }));
55054
+ }
55055
+ },
55056
+ checked: isDeclarationChecked,
55057
+ style: isMobileView ? {
55058
+ fontSize: "12px",
55059
+ alignItems: "flex-start"
55060
+ } : {
55061
+ alignItems: "center"
55062
+ }
55063
+ }), fieldErrors.declaration && /*#__PURE__*/React__default.createElement("div", {
55064
+ style: {
55065
+ ...errorTextStyle,
55066
+ marginLeft: "28px"
55067
+ }
55068
+ }, fieldErrors.declaration)), /*#__PURE__*/React__default.createElement("div", {
55811
55069
  style: {
55812
55070
  display: "flex",
55813
55071
  flexDirection: isMobileView ? "column" : "row",
@@ -55887,7 +55145,8 @@ const Step4_Preview = _ref => {
55887
55145
  resolvedServiceType,
55888
55146
  onBack,
55889
55147
  onSubmit,
55890
- isLoading
55148
+ isLoading,
55149
+ isEditFlow
55891
55150
  } = _ref;
55892
55151
  const [agreed, setAgreed] = React.useState(false);
55893
55152
  const [fee, setFee] = React.useState(0);
@@ -56069,7 +55328,7 @@ const Step4_Preview = _ref => {
56069
55328
  gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(150px, 1fr))",
56070
55329
  gap: isMobileView ? "12px" : "16px"
56071
55330
  }
56072
- }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), /*#__PURE__*/React__default.createElement("div", {
55331
+ }, infoItem("Connection No", connectionNo), infoItem("Meter Number", meterId), infoItem("Property ID", propertyId))), !isEditFlow && /*#__PURE__*/React__default.createElement("div", {
56073
55332
  style: {
56074
55333
  ...sectionStyle,
56075
55334
  borderLeft: "4px solid #f29c1f"
@@ -57121,7 +56380,8 @@ const MutationApplication = () => {
57121
56380
  resolvedServiceType: resolvedServiceType,
57122
56381
  onBack: () => history.push(`${path}/document`),
57123
56382
  onSubmit: submitApplication,
57124
- isLoading: isSubmitting
56383
+ isLoading: isSubmitting,
56384
+ isEditFlow: isEditFlow
57125
56385
  })), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, {
57126
56386
  path: `${path}/submission`
57127
56387
  }, /*#__PURE__*/React__default.createElement(Step5_Submission, {
@@ -58998,7 +58258,7 @@ const openFilePDF = fileId => {
58998
58258
  }).catch(error => console.error("Error fetching file:", error));
58999
58259
  };
59000
58260
  const CheckPage$4 = _ref2 => {
59001
- var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
58261
+ var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
59002
58262
  let {
59003
58263
  data,
59004
58264
  onSubmit,
@@ -59073,7 +58333,6 @@ const CheckPage$4 = _ref2 => {
59073
58333
  holderDetails = holderDetails[0] || {};
59074
58334
  }
59075
58335
  const useDetails = (data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : _data$useDetails.useDetails) || (data === null || data === void 0 ? void 0 : data.useDetails) || {};
59076
- 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) || {};
59077
58336
  const documents = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents) || (data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.documents) || [];
59078
58337
  const declaration = (data === null || data === void 0 ? void 0 : data.declarationData) || (data === null || data === void 0 ? void 0 : data.declaration) || {};
59079
58338
  const djbEmployee = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : _data$djbEmployee.djbEmployee) || (data === null || data === void 0 ? void 0 : data.djbEmployee) || {};
@@ -59313,26 +58572,6 @@ const CheckPage$4 = _ref2 => {
59313
58572
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59314
58573
  label: "Divyangjan/Person with Disability?",
59315
58574
  text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
59316
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
59317
- style: {
59318
- marginTop: "10px",
59319
- marginBottom: "30px"
59320
- }
59321
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59322
- label: t("WS_NAME_OF_BANK"),
59323
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankName))}`,
59324
- actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
59325
- onClick: onEdit
59326
- })
59327
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59328
- label: t("WS_NAME_OF_BRANCH"),
59329
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankBranchName) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.branchName)))}`
59330
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59331
- label: t("WS_IFSC_CODE"),
59332
- text: `${t(checkForNA(bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.ifscCode))}`
59333
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59334
- label: t("WS_BANK_ACCOUNT_NO"),
59335
- text: `${t(checkForNA((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))}`
59336
58575
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_DOCUMENTS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
59337
58576
  style: {
59338
58577
  marginTop: "10px",
@@ -59477,8 +58716,6 @@ const OLDApplication = () => {
59477
58716
  label: "WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS"
59478
58717
  }, {
59479
58718
  label: "WS_DJB_EMPLOYEE"
59480
- }, {
59481
- label: "WS_BANK_DETAILS"
59482
58719
  }, {
59483
58720
  label: "WS_DOCUMENTS"
59484
58721
  }, {
@@ -59523,7 +58760,7 @@ const OLDApplication = () => {
59523
58760
  if (requestedPropertyId !== initialPropertyId.current || requestedPropertyId && requestedPropertyId !== verifiedPropertyId.current) {
59524
58761
  clearSessionFormData();
59525
58762
  sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
59526
- history.replace("/digit-ui/employee/ws/info");
58763
+ history.replace(window.location.href.includes("/employee") ? "/digit-ui/employee/ws/info" : "/digit-ui/citizen/ws/info");
59527
58764
  }
59528
58765
  }, [clearSessionFormData, history, requestedPropertyId]);
59529
58766
  React.useEffect(() => {
@@ -59535,7 +58772,7 @@ const OLDApplication = () => {
59535
58772
  if (config) {
59536
58773
  var _config$body;
59537
58774
  const allCreateSections = (config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
59538
- const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", ...(isCitizen ? [] : ["WSDjbEmployee"]), "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
58775
+ const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", ...(isCitizen ? [] : ["WSDjbEmployee"]), "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee", "WSDeclaration"];
59539
58776
  const reorderedBody = [];
59540
58777
  desiredComponentOrder.forEach(compName => {
59541
58778
  const section = allCreateSections.find(s => {
@@ -59571,16 +58808,6 @@ const OLDApplication = () => {
59571
58808
  isAutomaticFill: true
59572
58809
  }]
59573
58810
  });
59574
- } else if (compName === "WSBankDetails") {
59575
- reorderedBody.push({
59576
- isCreateConnection: true,
59577
- body: [{
59578
- type: "component",
59579
- key: "bankDetails",
59580
- component: "WSBankDetails",
59581
- withoutLabel: true
59582
- }]
59583
- });
59584
58811
  } else if (compName === "WSDeclaration") {
59585
58812
  reorderedBody.push({
59586
58813
  isCreateConnection: true,