@djb25/digit-ui-module-ws 1.0.74 → 1.0.76

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
@@ -8047,7 +8047,9 @@ const WSMyApplications = () => {
8047
8047
  }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
8048
8048
  to: {
8049
8049
  pathname: "/digit-ui/citizen/payment/my-bills/" + businessService + "/" + (application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.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, "/", "+")) + "?workflow=WNS&tenantId=" + (application === null || application === void 0 ? void 0 : application.tenantId) + "&ConsumerName=" + ((application === null || application === void 0 ? void 0 : (_application$connecti = application.connectionHolders) === null || _application$connecti === void 0 ? void 0 : _application$connecti.map(owner => owner.name).join(",")) || (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$property = application.property) === null || _application$property === void 0 ? void 0 : (_application$property2 = _application$property.owners) === null || _application$property2 === void 0 ? void 0 : _application$property2.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? true : false),
8050
- state: {}
8050
+ state: {
8051
+ fromMyApplications: true
8052
+ }
8051
8053
  }
8052
8054
  }, t("MAKE_PAYMENT"))) : null;
8053
8055
  }
@@ -8405,7 +8407,7 @@ const getDocumentDetails = (application, t) => {
8405
8407
  };
8406
8408
  const getWSAcknowledgementData = function (application, property, tenantInfo, t) {
8407
8409
  try {
8408
- var _application$tradeLic21, _application$tradeLic22;
8410
+ var _application$tradeLic17, _application$tradeLic18;
8409
8411
  function _temp2() {
8410
8412
  return Promise.resolve(getHeaderDetails(application, t, tenantInfo)).then(function (header) {
8411
8413
  return {
@@ -8420,7 +8422,7 @@ const getWSAcknowledgementData = function (application, property, tenantInfo, t)
8420
8422
  };
8421
8423
  });
8422
8424
  }
8423
- const filesArray = application === null || application === void 0 ? void 0 : (_application$tradeLic21 = application.tradeLicenseDetail) === null || _application$tradeLic21 === void 0 ? void 0 : (_application$tradeLic22 = _application$tradeLic21.applicationDocuments) === null || _application$tradeLic22 === void 0 ? void 0 : _application$tradeLic22.map(value => value === null || value === void 0 ? void 0 : value.fileStoreId);
8425
+ const filesArray = application === null || application === void 0 ? void 0 : (_application$tradeLic17 = application.tradeLicenseDetail) === null || _application$tradeLic17 === void 0 ? void 0 : (_application$tradeLic18 = _application$tradeLic17.applicationDocuments) === null || _application$tradeLic18 === void 0 ? void 0 : _application$tradeLic18.map(value => value === null || value === void 0 ? void 0 : value.fileStoreId);
8424
8426
  let res;
8425
8427
  const _temp = function () {
8426
8428
  if (filesArray) {
@@ -8966,14 +8968,18 @@ const App = _ref => {
8966
8968
  fetchToken();
8967
8969
  }, []);
8968
8970
  const crumbs = [{
8969
- path: "/digit-ui/employee",
8971
+ path: "/digit-ui/citizen",
8970
8972
  show: true,
8971
8973
  style: isMobile ? {
8972
8974
  width: "20%"
8973
8975
  } : {},
8974
8976
  icon: digitUiReactComponents.HomeIcon
8975
8977
  }, {
8976
- path: "/digit-ui/citizen/ws/create-application",
8978
+ path: "/digit-ui/citizen/ws-home",
8979
+ label: t("ES_TITLE_WATER_AND_SEWERAGE"),
8980
+ show: true
8981
+ }, {
8982
+ path: "/digit-ui/citizen/ws/info",
8977
8983
  label: t("WS_COMMON_APPL_NEW_CONNECTION"),
8978
8984
  show: location.pathname.includes("/create-application") || location.pathname.includes("/info")
8979
8985
  }, {
@@ -8983,11 +8989,11 @@ const App = _ref => {
8983
8989
  }, {
8984
8990
  path: "/digit-ui/citizen/ws/my-applications",
8985
8991
  label: t("CS_HOME_MY_APPLICATIONS") + " " + (totalAppsCount ? "(" + totalAppsCount + ")" : ""),
8986
- show: location.pathname.includes("/my-applications")
8992
+ show: location.pathname.includes("/my-applications") || location.pathname.includes("/connection/application")
8987
8993
  }, {
8988
8994
  path: "/digit-ui/citizen/ws/my-connections",
8989
8995
  label: t("WS_MYCONNECTIONS_HEADER"),
8990
- show: location.pathname.includes("/my-connections")
8996
+ show: location.pathname.includes("/my-connections") || location.pathname.includes("/connection/details")
8991
8997
  }, {
8992
8998
  path: "/digit-ui/citizen/ws/my-bills",
8993
8999
  label: t("CS_WS_MY_BILLS"),
@@ -9004,13 +9010,21 @@ const App = _ref => {
9004
9010
  path: location.pathname,
9005
9011
  label: t("WS_APPLICATION_DETAILS_HEADER"),
9006
9012
  show: location.pathname.includes("/connection/application")
9013
+ }, {
9014
+ path: location.pathname,
9015
+ label: t("WS_COMMON_CONNECTION_DETAIL"),
9016
+ show: location.pathname.includes("/connection/details")
9007
9017
  }, {
9008
9018
  path: location.pathname,
9009
9019
  label: t("WS_APPLICATION_DETAILS_HEADER"),
9010
9020
  show: location.pathname.includes("ws-response")
9011
9021
  }];
9012
9022
  const getDynamicBreadcrumbs = () => {
9013
- return crumbs.filter(crumb => crumb.show);
9023
+ let activeCrumbs = crumbs.filter(crumb => crumb.show);
9024
+ if (activeCrumbs.length > 0) {
9025
+ activeCrumbs[activeCrumbs.length - 1].path = "";
9026
+ }
9027
+ return activeCrumbs;
9014
9028
  };
9015
9029
  const WSCreate = (_Digit3 = Digit) === null || _Digit3 === void 0 ? void 0 : (_Digit3$ComponentRegi = _Digit3.ComponentRegistryService) === null || _Digit3$ComponentRegi === void 0 ? void 0 : _Digit3$ComponentRegi.getComponent("WSCreate");
9016
9030
  const WSDisconnection = (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$ComponentRegi = _Digit4.ComponentRegistryService) === null || _Digit4$ComponentRegi === void 0 ? void 0 : _Digit4$ComponentRegi.getComponent("WSDisconnection");
@@ -10743,13 +10757,13 @@ const BILLSBreadCrumbs = _ref => {
10743
10757
  width: "20%"
10744
10758
  } : {},
10745
10759
  icon: digitUiReactComponents.HomeIcon
10746
- }, {
10747
- path: "/digit-ui/employee/ws/wsinformation",
10748
- label: t("WS_COMMON_APPL_NEW_CONNECTION"),
10749
- show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application") || location.pathname.includes("/old-application") || location.pathname.includes("/info")
10750
10760
  }, {
10751
10761
  path: "/digit-ui/employee/module/details",
10752
10762
  label: t("ES_TITLE_WATER_AND_SEWERAGE"),
10763
+ show: true
10764
+ }, {
10765
+ path: "/digit-ui/employee/ws/info",
10766
+ label: t("WS_COMMON_APPL_NEW_CONNECTION"),
10753
10767
  show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application") || location.pathname.includes("/old-application") || location.pathname.includes("/info")
10754
10768
  }, {
10755
10769
  path: "/digit-ui/employee/ws/create-application",
@@ -10960,7 +10974,32 @@ const BILLSBreadCrumbs = _ref => {
10960
10974
  isclickable: false
10961
10975
  });
10962
10976
  const getDynamicBreadcrumbs = () => {
10963
- return crumbs.filter(crumb => crumb.show);
10977
+ let activeCrumbs = crumbs.filter(crumb => crumb.show);
10978
+ if (fromScreen && activeCrumbs.length > 0) {
10979
+ const lastCrumbIndex = activeCrumbs.length - 1;
10980
+ const lastCrumb = activeCrumbs[lastCrumbIndex];
10981
+ if (lastCrumb.label && lastCrumb.label.includes(" / ")) {
10982
+ const parts = lastCrumb.label.split(" / ");
10983
+ const isSewerage = serviceType === "SEWERAGE" || (applicationNumber === null || applicationNumber === void 0 ? void 0 : applicationNumber.includes("SW_AP")) || (applicationNumbercheck === null || applicationNumbercheck === void 0 ? void 0 : applicationNumbercheck.includes("SW_AP"));
10984
+ activeCrumbs.pop();
10985
+ activeCrumbs.push({
10986
+ label: parts[0],
10987
+ show: true,
10988
+ isBack: true,
10989
+ onClick: () => window.history.back()
10990
+ });
10991
+ activeCrumbs.push({
10992
+ path: "",
10993
+ label: parts[1],
10994
+ show: true,
10995
+ isclickable: false,
10996
+ rightContent: lastCrumb.rightContent
10997
+ });
10998
+ }
10999
+ } else if (activeCrumbs.length > 0) {
11000
+ activeCrumbs[activeCrumbs.length - 1].path = "";
11001
+ }
11002
+ return activeCrumbs;
10964
11003
  };
10965
11004
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showWaringToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
10966
11005
  style: {
@@ -19272,29 +19311,21 @@ const DisconnectTimeline = _ref => {
19272
19311
  currentStep = _ref$currentStep === void 0 ? 1 : _ref$currentStep,
19273
19312
  _ref$flow = _ref.flow,
19274
19313
  flow = _ref$flow === void 0 ? "" : _ref$flow;
19275
- const _useTranslation = reactI18next.useTranslation(),
19276
- t = _useTranslation.t;
19314
+ const _useTranslation = reactI18next.useTranslation();
19277
19315
  const isMobile = window.Digit.Utils.browser.isMobile();
19278
19316
  getAction$1(flow);
19279
- return /*#__PURE__*/React__default.createElement("div", {
19280
- className: "timeline-container",
19281
- style: isMobile ? {} : {
19282
- maxWidth: "960px",
19283
- minWidth: "640px",
19284
- marginRight: "auto"
19285
- }
19286
- }, actions$1.map((action, index, arr) => /*#__PURE__*/React__default.createElement("div", {
19287
- className: "timeline-checkpoint",
19288
- key: index
19289
- }, /*#__PURE__*/React__default.createElement("div", {
19290
- className: "timeline-content"
19291
- }, /*#__PURE__*/React__default.createElement("span", {
19292
- className: "circle " + (index <= currentStep - 1 && 'active')
19293
- }, index < currentStep - 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.TickMark, null) : index + 1), /*#__PURE__*/React__default.createElement("span", {
19294
- className: "secondary-color"
19295
- }, t(action))), index < arr.length - 1 && /*#__PURE__*/React__default.createElement("span", {
19296
- className: "line " + (index < currentStep - 1 && 'active')
19297
- }))));
19317
+ const timelineConfig = actions$1.map((action, index) => ({
19318
+ route: "step-" + (index + 1),
19319
+ timeLine: [{
19320
+ actions: action,
19321
+ currentStep: index + 1
19322
+ }]
19323
+ }));
19324
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.VerticalTimeline, {
19325
+ config: timelineConfig,
19326
+ currentActiveIndex: currentStep - 1,
19327
+ showFinalStep: false
19328
+ });
19298
19329
  };
19299
19330
 
19300
19331
  function toInteger(dirtyNumber) {
@@ -21070,7 +21101,15 @@ const WSDisconnectionForm = _ref => {
21070
21101
  if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
21071
21102
  if (userType === "citizen") {
21072
21103
  var _disconnectionData$ty, _disconnectionData$ty2, _disconnectionData$ty3, _disconnectionData$ty4, _disconnectionData$ty5, _disconnectionData$re2, _disconnectionData$re3, _disconnectionData$re4, _disconnectionData$re5;
21073
- return /*#__PURE__*/React__default.createElement("div", null, userType === "citizen" && /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
21104
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CitizenInfoLabel, {
21105
+ textStyle: {
21106
+ color: "#0B0C0C"
21107
+ },
21108
+ text: t("WS_DISONNECT_APPL_INFO"),
21109
+ info: t("CS_COMMON_INFO")
21110
+ }), /*#__PURE__*/React__default.createElement("div", {
21111
+ className: "employee-form-section-wrapper"
21112
+ }, userType === "citizen" && /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
21074
21113
  currentStep: 1
21075
21114
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
21076
21115
  config: config,
@@ -21208,16 +21247,7 @@ const WSDisconnectionForm = _ref => {
21208
21247
  error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
21209
21248
  label: t(error === null || error === void 0 ? void 0 : error.message),
21210
21249
  onClose: () => setError(null)
21211
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CitizenInfoLabel, {
21212
- style: {
21213
- margin: "0px"
21214
- },
21215
- textStyle: {
21216
- color: "#0B0C0C"
21217
- },
21218
- text: t("WS_DISONNECT_APPL_INFO"),
21219
- info: t("CS_COMMON_INFO")
21220
- }));
21250
+ })))));
21221
21251
  }
21222
21252
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
21223
21253
  config: config,
@@ -21756,8 +21786,21 @@ const WSRestorationForm = _ref => {
21756
21786
  if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
21757
21787
  if (userType === 'citizen') {
21758
21788
  var _disconnectionData$re2, _disconnectionData$re3;
21759
- return /*#__PURE__*/React__default.createElement("div", null, userType === "citizen" && /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
21760
- currentStep: 1
21789
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CitizenInfoLabel, {
21790
+ style: {
21791
+ margin: "0px",
21792
+ marginBottom: "1.5rem"
21793
+ },
21794
+ textStyle: {
21795
+ color: "#0B0C0C"
21796
+ },
21797
+ text: t("WS_DISONNECT_APPL_INFO"),
21798
+ info: t("CS_COMMON_INFO")
21799
+ }), /*#__PURE__*/React__default.createElement("div", {
21800
+ className: "employee-form-section-wrapper"
21801
+ }, userType === "citizen" && /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
21802
+ currentStep: 1,
21803
+ flow: "RESTORATION"
21761
21804
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
21762
21805
  config: config,
21763
21806
  onSelect: handleSubmit,
@@ -21813,16 +21856,7 @@ const WSRestorationForm = _ref => {
21813
21856
  error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
21814
21857
  label: t(error === null || error === void 0 ? void 0 : error.message),
21815
21858
  onClose: () => setError(null)
21816
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CitizenInfoLabel, {
21817
- style: {
21818
- margin: "0px"
21819
- },
21820
- textStyle: {
21821
- color: "#0B0C0C"
21822
- },
21823
- text: t("WS_DISONNECT_APPL_INFO"),
21824
- info: t("CS_COMMON_INFO")
21825
- }));
21859
+ })))));
21826
21860
  }
21827
21861
  console.log("applicationData", applicationData);
21828
21862
  return /*#__PURE__*/React__default.createElement("div", {
@@ -21964,6 +21998,7 @@ function WSDisconnectionDocumentsForm(_ref) {
21964
21998
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
21965
21999
  }
21966
22000
  return /*#__PURE__*/React__default.createElement("div", {
22001
+ className: "employee-form-section-wrapper",
21967
22002
  style: {
21968
22003
  marginTop: "19px"
21969
22004
  }
@@ -23880,7 +23915,7 @@ const useInboxTableConfig = _ref => {
23880
23915
  application = "modify";
23881
23916
  }
23882
23917
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
23883
- to: "/digit-ui/employee/ws/" + application + "-details?applicationNumber=" + row.original["applicationNo"] + "&tenantId=" + tenantId + "&service=" + service + "&from=WS_SEWERAGE_INBOX"
23918
+ to: "/digit-ui/employee/ws/" + application + "-details?applicationNumber=" + row.original["applicationNo"] + "&tenantId=" + tenantId + "&service=" + service + "&from=" + (service === "WATER" ? "WS_WATER_INBOX" : "WS_SEWERAGE_INBOX")
23884
23919
  }, " ", /*#__PURE__*/React__default.createElement("span", {
23885
23920
  className: "link"
23886
23921
  }, row.original["applicationNo"])));
@@ -30368,7 +30403,7 @@ const ChallanSearchResults = _ref => {
30368
30403
  display: "block"
30369
30404
  }
30370
30405
  }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
30371
- to: "/digit-ui/citizen/ws/create-application/search-property"
30406
+ to: "/digit-ui/citizen/ws/info"
30372
30407
  }, t("WS_CLICK_HERE_TO_APPLY"))))));
30373
30408
  };
30374
30409
  ChallanSearchResults.propTypes = {
@@ -31201,17 +31236,10 @@ const WSFeeEstimation = _ref => {
31201
31236
  if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
31202
31237
  var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
31203
31238
  const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.taxHeadEstimates) || [];
31204
- const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => {
31205
- var _bill$status;
31206
- return {
31207
- title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
31208
- value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2), bill !== null && bill !== void 0 && bill.status ? /*#__PURE__*/React__default.createElement("span", {
31209
- style: {
31210
- color: (bill === null || bill === void 0 ? void 0 : (_bill$status = bill.status) === null || _bill$status === void 0 ? void 0 : _bill$status.toUpperCase()) === "PAID" ? "green" : "red"
31211
- }
31212
- }, " (" + (bill === null || bill === void 0 ? void 0 : bill.status) + ")") : "")
31213
- };
31214
- }) : [{
31239
+ const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
31240
+ title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
31241
+ value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
31242
+ })) : [{
31215
31243
  title: "WS_APPLICATION_FEE_HEADER",
31216
31244
  value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.fee)
31217
31245
  }, {
@@ -31293,17 +31321,10 @@ const WSFeeEstimation = _ref => {
31293
31321
  }
31294
31322
  result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
31295
31323
  const taxHeadEstimates = (result === null || result === void 0 ? void 0 : (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.taxHeadEstimates) || [];
31296
- const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => {
31297
- var _data$status;
31298
- return {
31299
- title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
31300
- value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2), data !== null && data !== void 0 && data.status ? /*#__PURE__*/React__default.createElement("span", {
31301
- style: {
31302
- color: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()) === "PAID" ? "green" : "red"
31303
- }
31304
- }, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : "")
31305
- };
31306
- }) : [{
31324
+ const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
31325
+ title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
31326
+ value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
31327
+ })) : [{
31307
31328
  title: "WS_APPLICATION_FEE_HEADER",
31308
31329
  value: (_result$Calculation5 = result.Calculation) === null || _result$Calculation5 === void 0 ? void 0 : (_result$Calculation5$ = _result$Calculation5[0]) === null || _result$Calculation5$ === void 0 ? void 0 : _result$Calculation5$.fee
31309
31330
  }, {
@@ -31628,17 +31649,10 @@ const ViewBreakup = _ref => {
31628
31649
  if (rows === void 0) {
31629
31650
  rows = [];
31630
31651
  }
31631
- return rows.map(row => {
31632
- var _row$status;
31633
- return {
31634
- title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
31635
- value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount), row !== null && row !== void 0 && row.status ? /*#__PURE__*/React__default.createElement("span", {
31636
- style: {
31637
- color: (row === null || row === void 0 ? void 0 : (_row$status = row.status) === null || _row$status === void 0 ? void 0 : _row$status.toUpperCase()) === "PAID" ? "green" : "red"
31638
- }
31639
- }, " (" + (row === null || row === void 0 ? void 0 : row.status) + ")") : "")
31640
- };
31641
- });
31652
+ return rows.map(row => ({
31653
+ title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
31654
+ value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount))
31655
+ }));
31642
31656
  };
31643
31657
  const connectionHolder = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : (_wsAdditionalDetails$4 = _wsAdditionalDetails$3.connectionHolders) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4[0];
31644
31658
  const applicantName = [connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.name, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.middleName, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.lastName].filter(Boolean).join(" ") || "-";
@@ -31917,70 +31931,49 @@ const ViewBreakup = _ref => {
31917
31931
  style: {
31918
31932
  margin: "10px 0px"
31919
31933
  }
31920
- }, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => {
31921
- var _data$status;
31922
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
31923
- className: "border-none",
31924
- rowContainerStyle: {
31925
- margin: "0px"
31926
- },
31927
- labelStyle: {
31928
- width: "50%"
31929
- },
31930
- key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
31931
- label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
31932
- text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React__default.createElement("span", {
31933
- style: {
31934
- color: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()) === "PAID" ? "green" : "red"
31935
- }
31936
- }, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
31937
- textStyle: {
31938
- textAlign: "right"
31939
- }
31940
- });
31941
- }), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab6 = breakUpData.billSlabData) === null || _breakUpData$billSlab6 === void 0 ? void 0 : (_breakUpData$billSlab7 = _breakUpData$billSlab6.CHARGES) === null || _breakUpData$billSlab7 === void 0 ? void 0 : _breakUpData$billSlab7.map(data => {
31942
- var _data$status2;
31943
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
31944
- className: "border-none",
31945
- rowContainerStyle: {
31946
- margin: "0px"
31947
- },
31948
- labelStyle: {
31949
- width: "50%"
31950
- },
31951
- key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
31952
- label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
31953
- text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React__default.createElement("span", {
31954
- style: {
31955
- color: (data === null || data === void 0 ? void 0 : (_data$status2 = data.status) === null || _data$status2 === void 0 ? void 0 : _data$status2.toUpperCase()) === "PAID" ? "green" : "red"
31956
- }
31957
- }, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
31958
- textStyle: {
31959
- textAlign: "right"
31960
- }
31961
- });
31962
- }), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab8 = breakUpData.billSlabData) === null || _breakUpData$billSlab8 === void 0 ? void 0 : (_breakUpData$billSlab9 = _breakUpData$billSlab8.TAX) === null || _breakUpData$billSlab9 === void 0 ? void 0 : _breakUpData$billSlab9.map(data => {
31963
- var _data$status3;
31964
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
31965
- className: "border-none",
31966
- rowContainerStyle: {
31967
- margin: "0px"
31968
- },
31969
- labelStyle: {
31970
- width: "50%"
31971
- },
31972
- key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
31973
- label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
31974
- text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React__default.createElement("span", {
31975
- style: {
31976
- color: (data === null || data === void 0 ? void 0 : (_data$status3 = data.status) === null || _data$status3 === void 0 ? void 0 : _data$status3.toUpperCase()) === "PAID" ? "green" : "red"
31977
- }
31978
- }, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
31979
- textStyle: {
31980
- textAlign: "right"
31981
- }
31982
- });
31983
- }), propertyRows.length > 0 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
31934
+ }, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
31935
+ className: "border-none",
31936
+ rowContainerStyle: {
31937
+ margin: "0px"
31938
+ },
31939
+ labelStyle: {
31940
+ width: "50%"
31941
+ },
31942
+ key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
31943
+ label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
31944
+ text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
31945
+ textStyle: {
31946
+ textAlign: "right"
31947
+ }
31948
+ })), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab6 = breakUpData.billSlabData) === null || _breakUpData$billSlab6 === void 0 ? void 0 : (_breakUpData$billSlab7 = _breakUpData$billSlab6.CHARGES) === null || _breakUpData$billSlab7 === void 0 ? void 0 : _breakUpData$billSlab7.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
31949
+ className: "border-none",
31950
+ rowContainerStyle: {
31951
+ margin: "0px"
31952
+ },
31953
+ labelStyle: {
31954
+ width: "50%"
31955
+ },
31956
+ key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
31957
+ label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
31958
+ text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
31959
+ textStyle: {
31960
+ textAlign: "right"
31961
+ }
31962
+ })), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab8 = breakUpData.billSlabData) === null || _breakUpData$billSlab8 === void 0 ? void 0 : (_breakUpData$billSlab9 = _breakUpData$billSlab8.TAX) === null || _breakUpData$billSlab9 === void 0 ? void 0 : _breakUpData$billSlab9.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
31963
+ className: "border-none",
31964
+ rowContainerStyle: {
31965
+ margin: "0px"
31966
+ },
31967
+ labelStyle: {
31968
+ width: "50%"
31969
+ },
31970
+ key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
31971
+ label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
31972
+ text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
31973
+ textStyle: {
31974
+ textAlign: "right"
31975
+ }
31976
+ })), propertyRows.length > 0 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
31984
31977
  style: {
31985
31978
  margin: "10px 0px"
31986
31979
  }
@@ -32027,7 +32020,7 @@ const checkForNA$1 = value => {
32027
32020
  return value ? value : "CS_NA";
32028
32021
  };
32029
32022
  const WSApplicationDetails = () => {
32030
- 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$, _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$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _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, _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, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection164, _data$WaterConnection165, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180;
32023
+ 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$, _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$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _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, _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, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection164, _data$WaterConnection165, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180;
32031
32024
  const getDisconnectionNoticeSearch = function () {
32032
32025
  try {
32033
32026
  var _data$WaterConnection182, _data$WaterConnection183, _data$SewerageConnect176, _data$SewerageConnect177;
@@ -32299,8 +32292,8 @@ const WSApplicationDetails = () => {
32299
32292
  }, /*#__PURE__*/React__default.createElement("div", {
32300
32293
  className: "workflow-timeline-wrapper no-scrollbar",
32301
32294
  style: {
32302
- flex: "1 1 280px",
32303
- maxWidth: "400px",
32295
+ flex: "0 0 300px",
32296
+ maxWidth: "350px",
32304
32297
  minWidth: "240px"
32305
32298
  }
32306
32299
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
@@ -32311,7 +32304,7 @@ const WSApplicationDetails = () => {
32311
32304
  paymentbuttonenabled: false
32312
32305
  })))), /*#__PURE__*/React__default.createElement("div", {
32313
32306
  style: {
32314
- flex: "2 1 300px",
32307
+ flex: "1 1 0%",
32315
32308
  minWidth: 0
32316
32309
  }
32317
32310
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
@@ -32472,7 +32465,7 @@ const WSApplicationDetails = () => {
32472
32465
  isArray: false
32473
32466
  }
32474
32467
  }
32475
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
32468
+ }), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
32476
32469
  label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
32477
32470
  text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection94 = data.WaterConnection) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94[0]) === null || _data$WaterConnection95 === void 0 ? void 0 : (_data$WaterConnection96 = _data$WaterConnection95.connectionHolders) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96[0]) === null || _data$WaterConnection97 === void 0 ? void 0 : _data$WaterConnection97.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect89 = data.SewerageConnections) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89[0]) === null || _data$SewerageConnect90 === void 0 ? void 0 : (_data$SewerageConnect91 = _data$SewerageConnect90.connectionHolders) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91[0]) === null || _data$SewerageConnect92 === void 0 ? void 0 : _data$SewerageConnect92.fatherOrHusbandName) || t("CS_NA"),
32478
32471
  textStyle: {
@@ -32516,7 +32509,7 @@ const WSApplicationDetails = () => {
32516
32509
  isArray: false
32517
32510
  }
32518
32511
  }
32519
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
32512
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
32520
32513
  label: t("WS_OWN_DETAIL_CROSADD"),
32521
32514
  text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection110 = data.WaterConnection) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : (_data$WaterConnection112 = _data$WaterConnection111.connectionHolders) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : _data$WaterConnection113.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect105 = data.SewerageConnections) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : (_data$SewerageConnect107 = _data$SewerageConnect106.connectionHolders) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : _data$SewerageConnect108.correspondenceAddress) || t("CS_NA"),
32522
32515
  privacy: {
@@ -32672,7 +32665,7 @@ const WSApplicationDetails = () => {
32672
32665
  text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))
32673
32666
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
32674
32667
  label: t("COMMON_CURRENT_ZONE"),
32675
- text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))
32668
+ text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone3 = propertyAddress.zone) === null || _propertyAddress$zone3 === void 0 ? void 0 : _propertyAddress$zone3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone4 = propertyAddress.zone) === null || _propertyAddress$zone4 === void 0 ? void 0 : _propertyAddress$zone4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))
32676
32669
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
32677
32670
  label: t("LANDMARK"),
32678
32671
  text: "" + t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
@@ -32733,7 +32726,7 @@ const WSApplicationDetails = () => {
32733
32726
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
32734
32727
  label: t("WS_EMPLOYEE_DESIGNATION"),
32735
32728
  text: "" + t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))
32736
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
32729
+ }))), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
32737
32730
  styles: {
32738
32731
  fontSize: "28px"
32739
32732
  }
@@ -32754,7 +32747,7 @@ const WSApplicationDetails = () => {
32754
32747
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
32755
32748
  label: t("WS_BANK_ACCOUNT_NO"),
32756
32749
  text: "" + t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))
32757
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
32750
+ }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
32758
32751
  styles: {
32759
32752
  fontSize: "28px"
32760
32753
  }
@@ -32796,7 +32789,9 @@ const WSApplicationDetails = () => {
32796
32789
  to: {
32797
32790
  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, "/", "+"),
32798
32791
  search: "?workflow=WNS&tenantId=" + ((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.tenantId) || (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.tenantId)) + "&ConsumerName=" + ((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$WaterConnection150 = _data$WaterConnection149.connectionHolders) === null || _data$WaterConnection150 === void 0 ? void 0 : _data$WaterConnection150.map(owner => owner.name).join(",")) || (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$SewerageConnect145 = _data$SewerageConnect144.connectionHolders) === null || _data$SewerageConnect145 === void 0 ? void 0 : _data$SewerageConnect145.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : (_PTData$Properties8$$ = _PTData$Properties8$.owners) === null || _PTData$Properties8$$ === void 0 ? void 0 : _PTData$Properties8$$.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),
32799
- state: {}
32792
+ state: {
32793
+ fromApplicationDetails: true
32794
+ }
32800
32795
  }
32801
32796
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
32802
32797
  label: t("MAKE_PAYMENT")
@@ -33367,7 +33362,7 @@ const ConnectionDetails$5 = () => {
33367
33362
  const applicationDownloadObject = {
33368
33363
  order: 2,
33369
33364
  label: t("WS_APPLICATION"),
33370
- onClick: () => handleDownloadPdf
33365
+ onClick: () => handleDownloadPdf()
33371
33366
  };
33372
33367
  const receiptApplicationFeeDownloadObject = {
33373
33368
  order: 3,
@@ -33488,27 +33483,27 @@ const ConnectionDetails$5 = () => {
33488
33483
  }
33489
33484
  sessionStorage.setItem("ApplicationNoState", (_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.applicationNo);
33490
33485
  let serviceType = (_state4 = state) !== null && _state4 !== void 0 && (_state4$applicationTy = _state4.applicationType) !== null && _state4$applicationTy !== void 0 && _state4$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
33491
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
33492
- className: "cardHeaderWithOptions",
33486
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, checkifPrivacyenabled && /*#__PURE__*/React__default.createElement(WSInfoLabel, {
33487
+ t: t
33488
+ }), /*#__PURE__*/React__default.createElement("div", {
33489
+ className: "hide-seperator"
33490
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, downloadOptions && downloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
33493
33491
  style: {
33494
- marginRight: "auto",
33495
- maxWidth: "960px"
33492
+ position: "absolute",
33493
+ right: "24px",
33494
+ zIndex: 11
33496
33495
  }
33497
- }, downloadOptions && downloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
33496
+ }, /*#__PURE__*/React__default.createElement("div", {
33498
33497
  ref: menuRef
33499
33498
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MultiLink, {
33500
- className: "multilinkWrapper",
33499
+ label: t("CS_COMMON_DOWNLOAD"),
33500
+ className: "multilinkWrapper employee-mulitlink-main-divNew",
33501
33501
  onHeadClick: () => setShowOptions(!showOptions),
33502
33502
  displayOptions: showOptions,
33503
33503
  options: downloadOptions,
33504
- optionsStyle: {
33505
- margin: "0px"
33506
- }
33507
- }))), checkifPrivacyenabled && /*#__PURE__*/React__default.createElement(WSInfoLabel, {
33508
- t: t
33509
- }), /*#__PURE__*/React__default.createElement("div", {
33510
- className: "hide-seperator"
33511
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33504
+ downloadBtnClassName: "employee-download-btn-className",
33505
+ optionsClassName: "employee-options-btn-className"
33506
+ }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33512
33507
  className: "border-none",
33513
33508
  label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
33514
33509
  text: (_state5 = state) === null || _state5 === void 0 ? void 0 : _state5.connectionNo
@@ -33905,47 +33900,27 @@ const ConnectionDetails$5 = () => {
33905
33900
  marginBottom: "20px"
33906
33901
  }
33907
33902
  }) : null)));
33908
- })), (((_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(digitUiReactComponents.ActionBar, {
33903
+ })), (((_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", {
33909
33904
  style: {
33910
- position: "relative",
33911
- boxShadow: "none",
33912
- minWidth: "240px",
33913
- maxWidth: "620px",
33914
- padding: "0px",
33915
- marginTop: "15px",
33916
33905
  display: "flex",
33917
- gap: "10px"
33918
- }
33919
- }, /*#__PURE__*/React__default.createElement("div", {
33920
- style: {
33906
+ justifyContent: "flex-end",
33907
+ marginTop: "15px",
33921
33908
  width: "100%"
33922
33909
  }
33923
33910
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
33924
- style: {
33925
- width: "100%"
33926
- },
33927
33911
  label: t("WS_DISCONNECTION_BUTTON"),
33928
33912
  onSubmit: onActionSelect
33929
- }))) : ((_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(digitUiReactComponents.ActionBar, {
33930
- style: {
33931
- position: "relative",
33932
- boxShadow: "none",
33933
- minWidth: "240px",
33934
- maxWidth: "310px",
33935
- padding: "0px",
33936
- marginTop: "15px"
33937
- }
33938
- }, /*#__PURE__*/React__default.createElement("div", {
33913
+ })) : ((_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", {
33939
33914
  style: {
33915
+ display: "flex",
33916
+ justifyContent: "flex-end",
33917
+ marginTop: "15px",
33940
33918
  width: "100%"
33941
33919
  }
33942
33920
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
33943
- style: {
33944
- width: "100%"
33945
- },
33946
33921
  label: t("WS_RECONNECTION_BUTTON"),
33947
33922
  onSubmit: onActionSelectRestoration
33948
- }))), showModal ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
33923
+ })), showModal ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
33949
33924
  open: showModal,
33950
33925
  headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
33951
33926
  label: t("WS_PENDING_DUES_LABEL")
@@ -34727,7 +34702,7 @@ const ReSubmitDisconnectionApplication = () => {
34727
34702
  };
34728
34703
 
34729
34704
  const CheckPage = _ref => {
34730
- var _value$ConnectionDeta, _value$waterConnectio, _cpt$details12, _cpt$details13, _cpt$details14, _reversedOwners$, _cpt$details15, _cpt$details16, _cpt$details17, _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, _ConnectionHolderDeta, _ConnectionHolderDeta2, _ConnectionHolderDeta3, _ConnectionHolderDeta4, _ConnectionHolderDeta5, _ConnectionHolderDeta6, _ConnectionHolderDeta7, _ConnectionHolderDeta8, _ConnectionHolderDeta9, _ConnectionHolderDeta0, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _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, _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;
34705
+ var _value$ConnectionDeta, _value$waterConnectio, _cpt$details12, _cpt$details13, _cpt$details14, _reversedOwners$, _cpt$details15, _cpt$details16, _cpt$details17, _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, _ConnectionHolderDeta, _ConnectionHolderDeta2, _ConnectionHolderDeta3, _ConnectionHolderDeta4, _ConnectionHolderDeta5, _ConnectionHolderDeta6, _ConnectionHolderDeta7, _ConnectionHolderDeta8, _ConnectionHolderDeta9, _ConnectionHolderDeta0, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _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, _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;
34731
34706
  let onSubmit = _ref.onSubmit,
34732
34707
  value = _ref.value;
34733
34708
  const _useTranslation = reactI18next.useTranslation(),
@@ -34974,7 +34949,7 @@ const CheckPage = _ref => {
34974
34949
  text: "" + t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))
34975
34950
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34976
34951
  label: t("COMMON_CURRENT_ZONE"),
34977
- text: "" + t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))
34952
+ text: "" + t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone3 = propertyAddress.zone) === null || _propertyAddress$zone3 === void 0 ? void 0 : _propertyAddress$zone3.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone4 = propertyAddress.zone) === null || _propertyAddress$zone4 === void 0 ? void 0 : _propertyAddress$zone4.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))
34978
34953
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
34979
34954
  label: t("LANDMARK"),
34980
34955
  text: "" + t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
@@ -35791,13 +35766,19 @@ const CheckPage$1 = () => {
35791
35766
  if (isEnableLoader) {
35792
35767
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
35793
35768
  }
35794
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
35769
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
35770
+ className: "employee-form-section-wrapper"
35771
+ }, /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
35772
+ currentStep: 3
35773
+ }), /*#__PURE__*/React__default.createElement("div", {
35774
+ style: {
35775
+ width: "100%"
35776
+ }
35777
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
35795
35778
  styles: {
35796
35779
  fontSize: "32px"
35797
35780
  }
35798
- }, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
35799
- currentStep: 3
35800
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
35781
+ }, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
35801
35782
  style: {
35802
35783
  paddingRight: "16px"
35803
35784
  }
@@ -35892,7 +35873,7 @@ const CheckPage$1 = () => {
35892
35873
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
35893
35874
  label: t("CS_COMMON_SUBMIT"),
35894
35875
  onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
35895
- })));
35876
+ })))));
35896
35877
  };
35897
35878
 
35898
35879
  const CheckPage$2 = () => {
@@ -36061,13 +36042,20 @@ const CheckPage$2 = () => {
36061
36042
  if (isEnableLoader) {
36062
36043
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
36063
36044
  }
36064
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
36045
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
36046
+ className: "employee-form-section-wrapper"
36047
+ }, /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
36048
+ currentStep: 3,
36049
+ flow: "RESTORATION"
36050
+ }), /*#__PURE__*/React__default.createElement("div", {
36051
+ style: {
36052
+ width: "100%"
36053
+ }
36054
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
36065
36055
  styles: {
36066
36056
  fontSize: "32px"
36067
36057
  }
36068
- }, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
36069
- currentStep: 3
36070
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
36058
+ }, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
36071
36059
  style: {
36072
36060
  paddingRight: "16px"
36073
36061
  }
@@ -36116,7 +36104,7 @@ const CheckPage$2 = () => {
36116
36104
  error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
36117
36105
  label: t(error === null || error === void 0 ? void 0 : error.message),
36118
36106
  onClose: () => setError(null)
36119
- }));
36107
+ }))));
36120
36108
  };
36121
36109
 
36122
36110
  const CheckPage$3 = () => {
@@ -36223,13 +36211,19 @@ const CheckPage$3 = () => {
36223
36211
  if (isEnableLoader) {
36224
36212
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
36225
36213
  }
36226
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
36214
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
36215
+ className: "employee-form-section-wrapper"
36216
+ }, /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
36217
+ currentStep: 3
36218
+ }), /*#__PURE__*/React__default.createElement("div", {
36219
+ style: {
36220
+ width: "100%"
36221
+ }
36222
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
36227
36223
  styles: {
36228
36224
  fontSize: "32px"
36229
36225
  }
36230
- }, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
36231
- currentStep: 3
36232
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
36226
+ }, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
36233
36227
  style: {
36234
36228
  paddingRight: "16px"
36235
36229
  }
@@ -36320,7 +36314,7 @@ const CheckPage$3 = () => {
36320
36314
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
36321
36315
  label: t("CS_COMMON_SUBMIT"),
36322
36316
  onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
36323
- })));
36317
+ })))));
36324
36318
  };
36325
36319
 
36326
36320
  const config$2 = [{
@@ -38382,7 +38376,7 @@ const FileUploadField = _ref6 => {
38382
38376
  })))));
38383
38377
  };
38384
38378
  const NewApplication = () => {
38385
- 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$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;
38379
+ 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$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;
38386
38380
  const _useTranslation2 = reactI18next.useTranslation(),
38387
38381
  t = _useTranslation2.t;
38388
38382
  const history = reactRouterDom.useHistory();
@@ -40415,9 +40409,6 @@ const NewApplication = () => {
40415
40409
  })), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
40416
40410
  control: control,
40417
40411
  name: "declaration.signatureFile",
40418
- rules: {
40419
- validate: value => !!value || "Signature upload is required."
40420
- },
40421
40412
  render: props => /*#__PURE__*/React__default.createElement(FileUploadField, {
40422
40413
  error: getFieldError("declaration.signatureFile"),
40423
40414
  id: "signature-file",
@@ -40425,7 +40416,6 @@ const NewApplication = () => {
40425
40416
  label: "Upload Signature",
40426
40417
  onDelete: () => clearUploadedFile("declaration.signatureFile", props.onChange),
40427
40418
  onUpload: event => uploadFile(event, "declaration.signatureFile", props.onChange),
40428
- required: true,
40429
40419
  value: props.value
40430
40420
  })
40431
40421
  })))), previewMode && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(SectionCard, {
@@ -40737,7 +40727,7 @@ const NewApplication = () => {
40737
40727
  onSubmit: onReset,
40738
40728
  style: secondaryButtonStyle
40739
40729
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
40740
- disabled: hasPendingUpload,
40730
+ disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati4 = formValues.declaration) !== null && _formValues$declarati4 !== void 0 && _formValues$declarati4.agree),
40741
40731
  label: hasPendingUpload ? "Uploading..." : "Preview",
40742
40732
  onSubmit: handleSubmit(onPreview)
40743
40733
  })) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
@@ -40745,7 +40735,7 @@ const NewApplication = () => {
40745
40735
  onSubmit: onEdit,
40746
40736
  style: secondaryButtonStyle
40747
40737
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
40748
- disabled: hasPendingUpload,
40738
+ disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati5 = formValues.declaration) !== null && _formValues$declarati5 !== void 0 && _formValues$declarati5.agree),
40749
40739
  label: hasPendingUpload ? "Uploading..." : "Submit",
40750
40740
  onSubmit: handleSubmit(onSubmit)
40751
40741
  }))), showToast ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
@@ -41187,8 +41177,70 @@ const configWSApproverApplication = _ref => {
41187
41177
  uploadedFile = _ref.uploadedFile,
41188
41178
  setUploadedFile = _ref.setUploadedFile,
41189
41179
  businessService = _ref.businessService,
41190
- error = _ref.error;
41180
+ error = _ref.error,
41181
+ isReasonRequiredAction = _ref.isReasonRequiredAction,
41182
+ selectedReason = _ref.selectedReason,
41183
+ setSelectedReason = _ref.setSelectedReason,
41184
+ otherReasonText = _ref.otherReasonText,
41185
+ setOtherReasonText = _ref.setOtherReasonText;
41191
41186
  if (action !== null && action !== void 0 && (_action$action = action.action) !== null && _action$action !== void 0 && _action$action.includes("SEND_BACK") || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE_FOR_CONNECTION") ;
41187
+ const reasonOptions = [{
41188
+ code: "INCOMPLETE_DOCUMENTS",
41189
+ name: "Incomplete / Incorrect Documents",
41190
+ i18nKey: "WS_MUTATION_REASON_INCOMPLETE_DOCUMENTS"
41191
+ }, {
41192
+ code: "MISMATCH_DETAILS",
41193
+ name: "Mismatch in Owner / Consumer Details",
41194
+ i18nKey: "WS_MUTATION_REASON_MISMATCH_DETAILS"
41195
+ }, {
41196
+ code: "INVALID_PROOF",
41197
+ name: "Invalid / Unverified Proof Provided",
41198
+ i18nKey: "WS_MUTATION_REASON_INVALID_PROOF"
41199
+ }, {
41200
+ code: "OTHER",
41201
+ name: "Other",
41202
+ i18nKey: "WS_MUTATION_REASON_OTHER"
41203
+ }];
41204
+ const commentsField = isReasonRequiredAction ? [{
41205
+ label: t("WF_REASON_LABEL") || t("Reason"),
41206
+ isMandatory: true,
41207
+ populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
41208
+ option: reasonOptions,
41209
+ autoComplete: "off",
41210
+ optionKey: "name",
41211
+ id: "mutationActionReason",
41212
+ select: val => {
41213
+ setSelectedReason(val);
41214
+ if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER") {
41215
+ setOtherReasonText("");
41216
+ }
41217
+ },
41218
+ selected: selectedReason,
41219
+ t: t,
41220
+ placeholder: t("WF_SELECT_REASON_PLACEHOLDER") || "Select Reason"
41221
+ })
41222
+ }, ...((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER" ? [{
41223
+ label: t("WF_OTHER_REASON_LABEL") || t("Please specify reason"),
41224
+ isMandatory: true,
41225
+ populators: /*#__PURE__*/React__default.createElement("textarea", {
41226
+ className: "employee-card-input",
41227
+ style: {
41228
+ width: "100%",
41229
+ height: "80px",
41230
+ resize: "vertical",
41231
+ marginTop: "4px"
41232
+ },
41233
+ value: otherReasonText,
41234
+ onChange: e => setOtherReasonText(e.target.value),
41235
+ placeholder: t("WF_ENTER_OTHER_REASON_PLACEHOLDER") || "Enter reason details..."
41236
+ })
41237
+ }] : [])] : [{
41238
+ label: t("WF_COMMON_COMMENTS"),
41239
+ type: "textarea",
41240
+ populators: {
41241
+ name: "comments"
41242
+ }
41243
+ }];
41192
41244
  return {
41193
41245
  label: {
41194
41246
  heading: "WF_" + (action === null || action === void 0 ? void 0 : action.action) + "_APPLICATION",
@@ -41196,13 +41248,7 @@ const configWSApproverApplication = _ref => {
41196
41248
  cancel: "CS_COMMON_CANCEL"
41197
41249
  },
41198
41250
  form: [{
41199
- body: [{
41200
- label: t("WF_COMMON_COMMENTS"),
41201
- type: "textarea",
41202
- populators: {
41203
- name: "comments"
41204
- }
41205
- }, {
41251
+ body: [...commentsField, {
41206
41252
  label: t("WS_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
41207
41253
  populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
41208
41254
  id: "workflow-doc",
@@ -42707,7 +42753,7 @@ const convertDateToEpochNew$1 = function (dateString, dayStartOrEnd) {
42707
42753
  }
42708
42754
  };
42709
42755
  const ActionModal$5 = _ref => {
42710
- var _action$assigneeRoles, _action$assigneeRoles2;
42756
+ var _action$assigneeRoles, _action$assigneeRoles2, _applicationData, _applicationData$appl, _applicationData2, _applicationData2$bus, _applicationData3, _applicationData3$app, _action$action, _action$action2;
42711
42757
  let t = _ref.t,
42712
42758
  action = _ref.action,
42713
42759
  tenantId = _ref.tenantId,
@@ -42749,6 +42795,14 @@ const ActionModal$5 = _ref => {
42749
42795
  const _useState7 = React.useState(null),
42750
42796
  error = _useState7[0],
42751
42797
  setError = _useState7[1];
42798
+ const _useState8 = React.useState(null),
42799
+ selectedReason = _useState8[0],
42800
+ setSelectedReason = _useState8[1];
42801
+ const _useState9 = React.useState(""),
42802
+ otherReasonText = _useState9[0],
42803
+ setOtherReasonText = _useState9[1];
42804
+ const isMutationApp = ((_applicationData = applicationData) === null || _applicationData === void 0 ? void 0 : (_applicationData$appl = _applicationData.applicationType) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.includes("MUTATION")) || ((_applicationData2 = applicationData) === null || _applicationData2 === void 0 ? void 0 : (_applicationData2$bus = _applicationData2.businessService) === null || _applicationData2$bus === void 0 ? void 0 : _applicationData2$bus.includes("MUTATION")) || (businessService === null || businessService === void 0 ? void 0 : businessService.includes("MUTATION")) || ((_applicationData3 = applicationData) === null || _applicationData3 === void 0 ? void 0 : (_applicationData3$app = _applicationData3.applicationNo) === null || _applicationData3$app === void 0 ? void 0 : _applicationData3$app.includes("MUT"));
42805
+ const isReasonRequiredAction = isMutationApp && ((action === null || action === void 0 ? void 0 : (_action$action = action.action) === null || _action$action === void 0 ? void 0 : _action$action.includes("SEND_BACK")) || (action === null || action === void 0 ? void 0 : (_action$action2 = action.action) === null || _action$action2 === void 0 ? void 0 : _action$action2.includes("REJECT")));
42752
42806
  const isMobile = window.Digit.Utils.browser.isMobile();
42753
42807
  const isEmployee = window.location.href.includes("/employee");
42754
42808
  React.useEffect(() => {
@@ -42809,24 +42863,40 @@ const ActionModal$5 = _ref => {
42809
42863
  })();
42810
42864
  }, [file]);
42811
42865
  function submit(data) {
42812
- var _applicationData, _applicationData7, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$pro, _applicationData0, _applicationData0$pro, _applicationData10, _applicationData11;
42813
- if ((_applicationData = applicationData) !== null && _applicationData !== void 0 && _applicationData.isBillAmend) {
42814
- var _applicationData2, _applicationData2$bil, _applicationData3, _applicationData4, _applicationData4$bil, _applicationData5, _applicationData5$app, _applicationData6, _applicationData6$app;
42815
- const comments = data !== null && data !== void 0 && data.comments ? data.comments : null;
42816
- const additionalDetails = _extends({}, (_applicationData2 = applicationData) === null || _applicationData2 === void 0 ? void 0 : (_applicationData2$bil = _applicationData2.billAmendmentDetails) === null || _applicationData2$bil === void 0 ? void 0 : _applicationData2$bil.additionalDetails, {
42866
+ var _applicationData4, _applicationData0, _applicationData1, _applicationData1$app, _applicationData10, _applicationData10$pr, _applicationData11, _applicationData11$pr, _applicationData13, _applicationData14;
42867
+ let commentValue = (data === null || data === void 0 ? void 0 : data.comments) || "";
42868
+ if (isReasonRequiredAction) {
42869
+ if (!selectedReason) {
42870
+ setError(t("PLEASE_SELECT_REASON") || "Please select a reason");
42871
+ return;
42872
+ }
42873
+ if ((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER") {
42874
+ if (!otherReasonText || otherReasonText.trim() === "") {
42875
+ setError(t("PLEASE_ENTER_REASON") || "Please enter the reason");
42876
+ return;
42877
+ }
42878
+ commentValue = otherReasonText.trim();
42879
+ } else {
42880
+ commentValue = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.name) || (selectedReason !== null && selectedReason !== void 0 && selectedReason.i18nKey ? t(selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.i18nKey) : selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code);
42881
+ }
42882
+ }
42883
+ if ((_applicationData4 = applicationData) !== null && _applicationData4 !== void 0 && _applicationData4.isBillAmend) {
42884
+ var _applicationData5, _applicationData5$bil, _applicationData6, _applicationData7, _applicationData7$bil, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$app;
42885
+ const comments = commentValue || (data !== null && data !== void 0 && data.comments ? data.comments : null);
42886
+ const additionalDetails = _extends({}, (_applicationData5 = applicationData) === null || _applicationData5 === void 0 ? void 0 : (_applicationData5$bil = _applicationData5.billAmendmentDetails) === null || _applicationData5$bil === void 0 ? void 0 : _applicationData5$bil.additionalDetails, {
42817
42887
  comments
42818
42888
  });
42819
- const amendment = _extends({}, (_applicationData3 = applicationData) === null || _applicationData3 === void 0 ? void 0 : _applicationData3.billAmendmentDetails, {
42889
+ const amendment = _extends({}, (_applicationData6 = applicationData) === null || _applicationData6 === void 0 ? void 0 : _applicationData6.billAmendmentDetails, {
42820
42890
  workflow: {
42821
- businessId: (_applicationData4 = applicationData) === null || _applicationData4 === void 0 ? void 0 : (_applicationData4$bil = _applicationData4.billAmendmentDetails) === null || _applicationData4$bil === void 0 ? void 0 : _applicationData4$bil.amendmentId,
42891
+ businessId: (_applicationData7 = applicationData) === null || _applicationData7 === void 0 ? void 0 : (_applicationData7$bil = _applicationData7.billAmendmentDetails) === null || _applicationData7$bil === void 0 ? void 0 : _applicationData7$bil.amendmentId,
42822
42892
  action: action === null || action === void 0 ? void 0 : action.action,
42823
42893
  tenantId: tenantId,
42824
- businessService: (_applicationData5 = applicationData) !== null && _applicationData5 !== void 0 && (_applicationData5$app = _applicationData5.applicationType) !== null && _applicationData5$app !== void 0 && _applicationData5$app.includes("WATER") ? "WS.AMENDMENT" : "SW.AMENDMENT",
42825
- moduleName: (_applicationData6 = applicationData) !== null && _applicationData6 !== void 0 && (_applicationData6$app = _applicationData6.applicationType) !== null && _applicationData6$app !== void 0 && _applicationData6$app.includes("WATER") ? "WS" : "SW",
42894
+ businessService: (_applicationData8 = applicationData) !== null && _applicationData8 !== void 0 && (_applicationData8$app = _applicationData8.applicationType) !== null && _applicationData8$app !== void 0 && _applicationData8$app.includes("WATER") ? "WS.AMENDMENT" : "SW.AMENDMENT",
42895
+ moduleName: (_applicationData9 = applicationData) !== null && _applicationData9 !== void 0 && (_applicationData9$app = _applicationData9.applicationType) !== null && _applicationData9$app !== void 0 && _applicationData9$app.includes("WATER") ? "WS" : "SW",
42826
42896
  assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
42827
42897
  uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
42828
42898
  }],
42829
- comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
42899
+ comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
42830
42900
  documents: uploadedFile ? [{
42831
42901
  documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
42832
42902
  fileName: file === null || file === void 0 ? void 0 : file.name,
@@ -42834,7 +42904,7 @@ const ActionModal$5 = _ref => {
42834
42904
  }] : []
42835
42905
  },
42836
42906
  additionalDetails,
42837
- comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
42907
+ comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
42838
42908
  wfDocuments: uploadedFile ? [{
42839
42909
  documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
42840
42910
  fileName: file === null || file === void 0 ? void 0 : file.name,
@@ -42845,7 +42915,7 @@ const ActionModal$5 = _ref => {
42845
42915
  assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
42846
42916
  uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
42847
42917
  }],
42848
- comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
42918
+ comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
42849
42919
  documents: uploadedFile ? [{
42850
42920
  documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
42851
42921
  fileName: file === null || file === void 0 ? void 0 : file.name,
@@ -42860,7 +42930,7 @@ const ActionModal$5 = _ref => {
42860
42930
  }
42861
42931
  applicationData = _extends({}, applicationData, {
42862
42932
  action: action === null || action === void 0 ? void 0 : action.action,
42863
- comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
42933
+ comment: commentValue,
42864
42934
  assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
42865
42935
  assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
42866
42936
  uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
@@ -42870,12 +42940,12 @@ const ActionModal$5 = _ref => {
42870
42940
  fileName: file === null || file === void 0 ? void 0 : file.name,
42871
42941
  fileStoreId: uploadedFile
42872
42942
  }] : null,
42873
- processInstance: _extends({}, (_applicationData7 = applicationData) === null || _applicationData7 === void 0 ? void 0 : _applicationData7.processInstance, {
42943
+ processInstance: _extends({}, (_applicationData0 = applicationData) === null || _applicationData0 === void 0 ? void 0 : _applicationData0.processInstance, {
42874
42944
  action: action === null || action === void 0 ? void 0 : action.action,
42875
42945
  assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
42876
42946
  uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
42877
42947
  }],
42878
- comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
42948
+ comment: commentValue,
42879
42949
  documents: uploadedFile ? [{
42880
42950
  documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
42881
42951
  fileName: file === null || file === void 0 ? void 0 : file.name,
@@ -42883,36 +42953,36 @@ const ActionModal$5 = _ref => {
42883
42953
  }] : []
42884
42954
  })
42885
42955
  });
42886
- if (data !== null && data !== void 0 && data.date && (_applicationData8 = applicationData) !== null && _applicationData8 !== void 0 && (_applicationData8$app = _applicationData8.applicationType) !== null && _applicationData8$app !== void 0 && _applicationData8$app.includes("DISCONNECT")) {
42956
+ if (data !== null && data !== void 0 && data.date && (_applicationData1 = applicationData) !== null && _applicationData1 !== void 0 && (_applicationData1$app = _applicationData1.applicationType) !== null && _applicationData1$app !== void 0 && _applicationData1$app.includes("DISCONNECT")) {
42887
42957
  const disconnectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
42888
42958
  applicationData.disconnectionExecutionDate = convertDateToEpochNew$1(disconnectionExecutionDate);
42889
42959
  } else if (data !== null && data !== void 0 && data.date) {
42890
42960
  const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
42891
42961
  applicationData.connectionExecutionDate = convertDateToEpochNew$1(connectionExecutionDate);
42892
42962
  }
42893
- if (((_applicationData9 = applicationData) === null || _applicationData9 === void 0 ? void 0 : (_applicationData9$pro = _applicationData9.processInstance) === null || _applicationData9$pro === void 0 ? void 0 : _applicationData9$pro.businessService) == "DisconnectWSConnection" || ((_applicationData0 = applicationData) === null || _applicationData0 === void 0 ? void 0 : (_applicationData0$pro = _applicationData0.processInstance) === null || _applicationData0$pro === void 0 ? void 0 : _applicationData0$pro.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
42894
- var _applicationData1;
42895
- ((_applicationData1 = applicationData) === null || _applicationData1 === void 0 ? void 0 : _applicationData1.serviceType) == "WATER" ? submitAction({
42963
+ if (((_applicationData10 = applicationData) === null || _applicationData10 === void 0 ? void 0 : (_applicationData10$pr = _applicationData10.processInstance) === null || _applicationData10$pr === void 0 ? void 0 : _applicationData10$pr.businessService) == "DisconnectWSConnection" || ((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : (_applicationData11$pr = _applicationData11.processInstance) === null || _applicationData11$pr === void 0 ? void 0 : _applicationData11$pr.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
42964
+ var _applicationData12;
42965
+ ((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
42896
42966
  WaterConnection: applicationData,
42897
42967
  disconnectRequest: true
42898
42968
  }) : submitAction({
42899
42969
  SewerageConnection: applicationData,
42900
42970
  disconnectRequest: true
42901
42971
  });
42902
- } else if (((_applicationData10 = applicationData) === null || _applicationData10 === void 0 ? void 0 : _applicationData10.applicationType) == "SEWERAGE_RECONNECTION") {
42972
+ } else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "SEWERAGE_RECONNECTION") {
42903
42973
  submitAction({
42904
42974
  SewerageConnection: applicationData,
42905
42975
  disconnectRequest: false,
42906
42976
  reconnectRequest: true
42907
42977
  });
42908
- } else if (((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : _applicationData11.applicationType) == "WATER_RECONNECTION") {
42978
+ } else if (((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.applicationType) == "WATER_RECONNECTION") {
42909
42979
  submitAction({
42910
42980
  WaterConnection: applicationData,
42911
42981
  disconnectRequest: false,
42912
42982
  reconnectRequest: true
42913
42983
  });
42914
42984
  } else {
42915
- var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData12;
42985
+ var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData15;
42916
42986
  const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
42917
42987
  const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
42918
42988
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat !== void 0 && _parsedAdhocRebateDat.adhocPenalty) applicationData.additionalDetails.adhocPenalty = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat2 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat2 === void 0 ? void 0 : _parsedAdhocRebateDat2.adhocPenalty) || "";
@@ -42921,7 +42991,7 @@ const ActionModal$5 = _ref => {
42921
42991
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
42922
42992
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
42923
42993
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
42924
- ((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
42994
+ ((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : _applicationData15.serviceType) == "WATER" ? submitAction({
42925
42995
  WaterConnection: applicationData,
42926
42996
  disconnectRequest: false,
42927
42997
  reconnectRequest: false
@@ -42933,8 +43003,8 @@ const ActionModal$5 = _ref => {
42933
43003
  }
42934
43004
  }
42935
43005
  React.useEffect(() => {
42936
- var _applicationData13, _applicationData13$pr, _applicationData14, _applicationData14$pr;
42937
- if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : (_applicationData13$pr = _applicationData13.processInstance) === null || _applicationData13$pr === void 0 ? void 0 : _applicationData13$pr.businessService) == "DisconnectWSConnection" || ((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : (_applicationData14$pr = _applicationData14.processInstance) === null || _applicationData14$pr === void 0 ? void 0 : _applicationData14$pr.businessService) == "DisconnectSWConnection") {
43006
+ var _applicationData16, _applicationData16$pr, _applicationData17, _applicationData17$pr;
43007
+ if (((_applicationData16 = applicationData) === null || _applicationData16 === void 0 ? void 0 : (_applicationData16$pr = _applicationData16.processInstance) === null || _applicationData16$pr === void 0 ? void 0 : _applicationData16$pr.businessService) == "DisconnectWSConnection" || ((_applicationData17 = applicationData) === null || _applicationData17 === void 0 ? void 0 : (_applicationData17$pr = _applicationData17.processInstance) === null || _applicationData17$pr === void 0 ? void 0 : _applicationData17$pr.businessService) == "DisconnectSWConnection") {
42938
43008
  if (action) {
42939
43009
  setConfig(configWSDisConnectApplication({
42940
43010
  t,
@@ -42961,11 +43031,16 @@ const ActionModal$5 = _ref => {
42961
43031
  uploadedFile,
42962
43032
  setUploadedFile,
42963
43033
  businessService,
42964
- error
43034
+ error,
43035
+ isReasonRequiredAction,
43036
+ selectedReason,
43037
+ setSelectedReason,
43038
+ otherReasonText,
43039
+ setOtherReasonText
42965
43040
  }));
42966
43041
  }
42967
43042
  }
42968
- }, [action, approvers, uploadedFile, error]);
43043
+ }, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText]);
42969
43044
  return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
42970
43045
  headerBarMain: /*#__PURE__*/React__default.createElement(Heading$5, {
42971
43046
  label: t(config.label.heading)
@@ -42982,7 +43057,13 @@ const ActionModal$5 = _ref => {
42982
43057
  width: "100%",
42983
43058
  height: "auto"
42984
43059
  } : {}
42985
- }, PTALoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
43060
+ }, PTALoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
43061
+ style: {
43062
+ marginBottom: "12px",
43063
+ marginLeft: "12px",
43064
+ marginRight: "12px"
43065
+ }
43066
+ }, error), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
42986
43067
  config: config.form,
42987
43068
  noBoxShadow: true,
42988
43069
  inline: true,
@@ -42994,7 +43075,7 @@ const ActionModal$5 = _ref => {
42994
43075
  cardFormWrapperClassName: cardFormWrapperClassName,
42995
43076
  cardClassName: cardClassName,
42996
43077
  formClassName: formClassName
42997
- })) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
43078
+ }))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
42998
43079
  };
42999
43080
 
43000
43081
  const Heading$6 = props => {
@@ -52033,7 +52114,7 @@ const Step4_Preview = _ref => {
52033
52114
  "LEGAL_HEIR": "Legal Heir",
52034
52115
  "OTHER": "Other"
52035
52116
  };
52036
- return map[code] || code;
52117
+ return map[code] || code || "NA";
52037
52118
  };
52038
52119
  const getReasonName = code => {
52039
52120
  if (code !== null && code !== void 0 && code.code) return code.i18nKey;
@@ -55259,6 +55340,7 @@ const CheckPage$4 = _ref2 => {
55259
55340
  };
55260
55341
 
55261
55342
  const OLDApplication = () => {
55343
+ var _sessionFormData$decl;
55262
55344
  const _useTranslation = reactI18next.useTranslation(),
55263
55345
  t = _useTranslation.t;
55264
55346
  const history = reactRouterDom.useHistory();
@@ -55470,7 +55552,7 @@ const OLDApplication = () => {
55470
55552
  }).length > 0)) {
55471
55553
  console.warn("[WS] onSubmit EXIT: formState errors blocking submit", formStateErros);
55472
55554
  setShowToast({
55473
- warning: true,
55555
+ key: "error",
55474
55556
  message: "PLEASE_FILL_MANDATORY_DETAILS"
55475
55557
  });
55476
55558
  return;
@@ -55853,7 +55935,8 @@ const OLDApplication = () => {
55853
55935
  defaultValues: sessionFormData,
55854
55936
  noCard: true,
55855
55937
  noBreakLine: true,
55856
- cardFormWrapperClassName: "new-application-card"
55938
+ cardFormWrapperClassName: "new-application-card",
55939
+ isDisabled: !(sessionFormData !== null && sessionFormData !== void 0 && (_sessionFormData$decl = sessionFormData.declarationData) !== null && _sessionFormData$decl !== void 0 && _sessionFormData$decl.agree)
55857
55940
  }), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
55858
55941
  isDleteBtn: true,
55859
55942
  duration: 5000,