@djb25/digit-ui-module-ws 1.0.75 → 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 +320 -219
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +320 -219
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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
|
}
|
|
@@ -8966,14 +8968,18 @@ const App = _ref => {
|
|
|
8966
8968
|
fetchToken();
|
|
8967
8969
|
}, []);
|
|
8968
8970
|
const crumbs = [{
|
|
8969
|
-
path: "/digit-ui/
|
|
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
|
|
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,7 +8989,7 @@ 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"),
|
|
@@ -9014,7 +9020,11 @@ const App = _ref => {
|
|
|
9014
9020
|
show: location.pathname.includes("ws-response")
|
|
9015
9021
|
}];
|
|
9016
9022
|
const getDynamicBreadcrumbs = () => {
|
|
9017
|
-
|
|
9023
|
+
let activeCrumbs = crumbs.filter(crumb => crumb.show);
|
|
9024
|
+
if (activeCrumbs.length > 0) {
|
|
9025
|
+
activeCrumbs[activeCrumbs.length - 1].path = "";
|
|
9026
|
+
}
|
|
9027
|
+
return activeCrumbs;
|
|
9018
9028
|
};
|
|
9019
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");
|
|
9020
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");
|
|
@@ -10747,13 +10757,13 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
10747
10757
|
width: "20%"
|
|
10748
10758
|
} : {},
|
|
10749
10759
|
icon: digitUiReactComponents.HomeIcon
|
|
10750
|
-
}, {
|
|
10751
|
-
path: "/digit-ui/employee/ws/wsinformation",
|
|
10752
|
-
label: t("WS_COMMON_APPL_NEW_CONNECTION"),
|
|
10753
|
-
show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application") || location.pathname.includes("/old-application") || location.pathname.includes("/info")
|
|
10754
10760
|
}, {
|
|
10755
10761
|
path: "/digit-ui/employee/module/details",
|
|
10756
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"),
|
|
10757
10767
|
show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application") || location.pathname.includes("/old-application") || location.pathname.includes("/info")
|
|
10758
10768
|
}, {
|
|
10759
10769
|
path: "/digit-ui/employee/ws/create-application",
|
|
@@ -10964,7 +10974,32 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
10964
10974
|
isclickable: false
|
|
10965
10975
|
});
|
|
10966
10976
|
const getDynamicBreadcrumbs = () => {
|
|
10967
|
-
|
|
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;
|
|
10968
11003
|
};
|
|
10969
11004
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showWaringToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
10970
11005
|
style: {
|
|
@@ -19276,29 +19311,21 @@ const DisconnectTimeline = _ref => {
|
|
|
19276
19311
|
currentStep = _ref$currentStep === void 0 ? 1 : _ref$currentStep,
|
|
19277
19312
|
_ref$flow = _ref.flow,
|
|
19278
19313
|
flow = _ref$flow === void 0 ? "" : _ref$flow;
|
|
19279
|
-
const _useTranslation = reactI18next.useTranslation()
|
|
19280
|
-
t = _useTranslation.t;
|
|
19314
|
+
const _useTranslation = reactI18next.useTranslation();
|
|
19281
19315
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
19282
19316
|
getAction$1(flow);
|
|
19283
|
-
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
|
|
19289
|
-
|
|
19290
|
-
|
|
19291
|
-
|
|
19292
|
-
|
|
19293
|
-
|
|
19294
|
-
|
|
19295
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
19296
|
-
className: "circle " + (index <= currentStep - 1 && 'active')
|
|
19297
|
-
}, index < currentStep - 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.TickMark, null) : index + 1), /*#__PURE__*/React__default.createElement("span", {
|
|
19298
|
-
className: "secondary-color"
|
|
19299
|
-
}, t(action))), index < arr.length - 1 && /*#__PURE__*/React__default.createElement("span", {
|
|
19300
|
-
className: "line " + (index < currentStep - 1 && 'active')
|
|
19301
|
-
}))));
|
|
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
|
+
});
|
|
19302
19329
|
};
|
|
19303
19330
|
|
|
19304
19331
|
function toInteger(dirtyNumber) {
|
|
@@ -21074,7 +21101,15 @@ const WSDisconnectionForm = _ref => {
|
|
|
21074
21101
|
if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
21075
21102
|
if (userType === "citizen") {
|
|
21076
21103
|
var _disconnectionData$ty, _disconnectionData$ty2, _disconnectionData$ty3, _disconnectionData$ty4, _disconnectionData$ty5, _disconnectionData$re2, _disconnectionData$re3, _disconnectionData$re4, _disconnectionData$re5;
|
|
21077
|
-
return /*#__PURE__*/React__default.createElement(
|
|
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, {
|
|
21078
21113
|
currentStep: 1
|
|
21079
21114
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
21080
21115
|
config: config,
|
|
@@ -21212,16 +21247,7 @@ const WSDisconnectionForm = _ref => {
|
|
|
21212
21247
|
error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
|
|
21213
21248
|
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
21214
21249
|
onClose: () => setError(null)
|
|
21215
|
-
})))
|
|
21216
|
-
style: {
|
|
21217
|
-
margin: "0px"
|
|
21218
|
-
},
|
|
21219
|
-
textStyle: {
|
|
21220
|
-
color: "#0B0C0C"
|
|
21221
|
-
},
|
|
21222
|
-
text: t("WS_DISONNECT_APPL_INFO"),
|
|
21223
|
-
info: t("CS_COMMON_INFO")
|
|
21224
|
-
}));
|
|
21250
|
+
})))));
|
|
21225
21251
|
}
|
|
21226
21252
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
21227
21253
|
config: config,
|
|
@@ -21760,8 +21786,21 @@ const WSRestorationForm = _ref => {
|
|
|
21760
21786
|
if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
21761
21787
|
if (userType === 'citizen') {
|
|
21762
21788
|
var _disconnectionData$re2, _disconnectionData$re3;
|
|
21763
|
-
return /*#__PURE__*/React__default.createElement(
|
|
21764
|
-
|
|
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"
|
|
21765
21804
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
21766
21805
|
config: config,
|
|
21767
21806
|
onSelect: handleSubmit,
|
|
@@ -21817,16 +21856,7 @@ const WSRestorationForm = _ref => {
|
|
|
21817
21856
|
error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
|
|
21818
21857
|
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
21819
21858
|
onClose: () => setError(null)
|
|
21820
|
-
})))
|
|
21821
|
-
style: {
|
|
21822
|
-
margin: "0px"
|
|
21823
|
-
},
|
|
21824
|
-
textStyle: {
|
|
21825
|
-
color: "#0B0C0C"
|
|
21826
|
-
},
|
|
21827
|
-
text: t("WS_DISONNECT_APPL_INFO"),
|
|
21828
|
-
info: t("CS_COMMON_INFO")
|
|
21829
|
-
}));
|
|
21859
|
+
})))));
|
|
21830
21860
|
}
|
|
21831
21861
|
console.log("applicationData", applicationData);
|
|
21832
21862
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -21968,6 +21998,7 @@ function WSDisconnectionDocumentsForm(_ref) {
|
|
|
21968
21998
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
21969
21999
|
}
|
|
21970
22000
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
22001
|
+
className: "employee-form-section-wrapper",
|
|
21971
22002
|
style: {
|
|
21972
22003
|
marginTop: "19px"
|
|
21973
22004
|
}
|
|
@@ -23884,7 +23915,7 @@ const useInboxTableConfig = _ref => {
|
|
|
23884
23915
|
application = "modify";
|
|
23885
23916
|
}
|
|
23886
23917
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
23887
|
-
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")
|
|
23888
23919
|
}, " ", /*#__PURE__*/React__default.createElement("span", {
|
|
23889
23920
|
className: "link"
|
|
23890
23921
|
}, row.original["applicationNo"])));
|
|
@@ -30372,7 +30403,7 @@ const ChallanSearchResults = _ref => {
|
|
|
30372
30403
|
display: "block"
|
|
30373
30404
|
}
|
|
30374
30405
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
30375
|
-
to: "/digit-ui/citizen/ws/
|
|
30406
|
+
to: "/digit-ui/citizen/ws/info"
|
|
30376
30407
|
}, t("WS_CLICK_HERE_TO_APPLY"))))));
|
|
30377
30408
|
};
|
|
30378
30409
|
ChallanSearchResults.propTypes = {
|
|
@@ -31205,17 +31236,10 @@ const WSFeeEstimation = _ref => {
|
|
|
31205
31236
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
31206
31237
|
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
31207
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) || [];
|
|
31208
|
-
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => {
|
|
31209
|
-
|
|
31210
|
-
|
|
31211
|
-
|
|
31212
|
-
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", {
|
|
31213
|
-
style: {
|
|
31214
|
-
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"
|
|
31215
|
-
}
|
|
31216
|
-
}, " (" + (bill === null || bill === void 0 ? void 0 : bill.status) + ")") : "")
|
|
31217
|
-
};
|
|
31218
|
-
}) : [{
|
|
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
|
+
})) : [{
|
|
31219
31243
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
31220
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)
|
|
31221
31245
|
}, {
|
|
@@ -31297,17 +31321,10 @@ const WSFeeEstimation = _ref => {
|
|
|
31297
31321
|
}
|
|
31298
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");
|
|
31299
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) || [];
|
|
31300
|
-
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => {
|
|
31301
|
-
|
|
31302
|
-
|
|
31303
|
-
|
|
31304
|
-
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", {
|
|
31305
|
-
style: {
|
|
31306
|
-
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"
|
|
31307
|
-
}
|
|
31308
|
-
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : "")
|
|
31309
|
-
};
|
|
31310
|
-
}) : [{
|
|
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
|
+
})) : [{
|
|
31311
31328
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
31312
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
|
|
31313
31330
|
}, {
|
|
@@ -31632,17 +31649,10 @@ const ViewBreakup = _ref => {
|
|
|
31632
31649
|
if (rows === void 0) {
|
|
31633
31650
|
rows = [];
|
|
31634
31651
|
}
|
|
31635
|
-
return rows.map(row => {
|
|
31636
|
-
|
|
31637
|
-
|
|
31638
|
-
|
|
31639
|
-
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", {
|
|
31640
|
-
style: {
|
|
31641
|
-
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"
|
|
31642
|
-
}
|
|
31643
|
-
}, " (" + (row === null || row === void 0 ? void 0 : row.status) + ")") : "")
|
|
31644
|
-
};
|
|
31645
|
-
});
|
|
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
|
+
}));
|
|
31646
31656
|
};
|
|
31647
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];
|
|
31648
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(" ") || "-";
|
|
@@ -31921,70 +31931,49 @@ const ViewBreakup = _ref => {
|
|
|
31921
31931
|
style: {
|
|
31922
31932
|
margin: "10px 0px"
|
|
31923
31933
|
}
|
|
31924
|
-
}, 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 => {
|
|
31925
|
-
|
|
31926
|
-
|
|
31927
|
-
|
|
31928
|
-
|
|
31929
|
-
|
|
31930
|
-
|
|
31931
|
-
|
|
31932
|
-
|
|
31933
|
-
|
|
31934
|
-
|
|
31935
|
-
|
|
31936
|
-
|
|
31937
|
-
|
|
31938
|
-
|
|
31939
|
-
|
|
31940
|
-
|
|
31941
|
-
|
|
31942
|
-
|
|
31943
|
-
|
|
31944
|
-
|
|
31945
|
-
|
|
31946
|
-
|
|
31947
|
-
|
|
31948
|
-
|
|
31949
|
-
|
|
31950
|
-
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
|
|
31957
|
-
|
|
31958
|
-
|
|
31959
|
-
|
|
31960
|
-
|
|
31961
|
-
|
|
31962
|
-
|
|
31963
|
-
|
|
31964
|
-
|
|
31965
|
-
}
|
|
31966
|
-
}),
|
|
31967
|
-
var _data$status3;
|
|
31968
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
31969
|
-
className: "border-none",
|
|
31970
|
-
rowContainerStyle: {
|
|
31971
|
-
margin: "0px"
|
|
31972
|
-
},
|
|
31973
|
-
labelStyle: {
|
|
31974
|
-
width: "50%"
|
|
31975
|
-
},
|
|
31976
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
31977
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
31978
|
-
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", {
|
|
31979
|
-
style: {
|
|
31980
|
-
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"
|
|
31981
|
-
}
|
|
31982
|
-
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
31983
|
-
textStyle: {
|
|
31984
|
-
textAlign: "right"
|
|
31985
|
-
}
|
|
31986
|
-
});
|
|
31987
|
-
}), 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, {
|
|
31988
31977
|
style: {
|
|
31989
31978
|
margin: "10px 0px"
|
|
31990
31979
|
}
|
|
@@ -32031,7 +32020,7 @@ const checkForNA$1 = value => {
|
|
|
32031
32020
|
return value ? value : "CS_NA";
|
|
32032
32021
|
};
|
|
32033
32022
|
const WSApplicationDetails = () => {
|
|
32034
|
-
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;
|
|
32035
32024
|
const getDisconnectionNoticeSearch = function () {
|
|
32036
32025
|
try {
|
|
32037
32026
|
var _data$WaterConnection182, _data$WaterConnection183, _data$SewerageConnect176, _data$SewerageConnect177;
|
|
@@ -32303,8 +32292,8 @@ const WSApplicationDetails = () => {
|
|
|
32303
32292
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
32304
32293
|
className: "workflow-timeline-wrapper no-scrollbar",
|
|
32305
32294
|
style: {
|
|
32306
|
-
flex: "
|
|
32307
|
-
maxWidth: "
|
|
32295
|
+
flex: "0 0 300px",
|
|
32296
|
+
maxWidth: "350px",
|
|
32308
32297
|
minWidth: "240px"
|
|
32309
32298
|
}
|
|
32310
32299
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -32315,7 +32304,7 @@ const WSApplicationDetails = () => {
|
|
|
32315
32304
|
paymentbuttonenabled: false
|
|
32316
32305
|
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
32317
32306
|
style: {
|
|
32318
|
-
flex: "
|
|
32307
|
+
flex: "1 1 0%",
|
|
32319
32308
|
minWidth: 0
|
|
32320
32309
|
}
|
|
32321
32310
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -32476,7 +32465,7 @@ const WSApplicationDetails = () => {
|
|
|
32476
32465
|
isArray: false
|
|
32477
32466
|
}
|
|
32478
32467
|
}
|
|
32479
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32468
|
+
}), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32480
32469
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
32481
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"),
|
|
32482
32471
|
textStyle: {
|
|
@@ -32520,7 +32509,7 @@ const WSApplicationDetails = () => {
|
|
|
32520
32509
|
isArray: false
|
|
32521
32510
|
}
|
|
32522
32511
|
}
|
|
32523
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32512
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32524
32513
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
32525
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"),
|
|
32526
32515
|
privacy: {
|
|
@@ -32676,7 +32665,7 @@ const WSApplicationDetails = () => {
|
|
|
32676
32665
|
text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))
|
|
32677
32666
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32678
32667
|
label: t("COMMON_CURRENT_ZONE"),
|
|
32679
|
-
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)))
|
|
32680
32669
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32681
32670
|
label: t("LANDMARK"),
|
|
32682
32671
|
text: "" + t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
|
|
@@ -32737,7 +32726,7 @@ const WSApplicationDetails = () => {
|
|
|
32737
32726
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32738
32727
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
32739
32728
|
text: "" + t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))
|
|
32740
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
32729
|
+
}))), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
32741
32730
|
styles: {
|
|
32742
32731
|
fontSize: "28px"
|
|
32743
32732
|
}
|
|
@@ -32758,7 +32747,7 @@ const WSApplicationDetails = () => {
|
|
|
32758
32747
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32759
32748
|
label: t("WS_BANK_ACCOUNT_NO"),
|
|
32760
32749
|
text: "" + t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))
|
|
32761
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
32750
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
32762
32751
|
styles: {
|
|
32763
32752
|
fontSize: "28px"
|
|
32764
32753
|
}
|
|
@@ -32800,7 +32789,9 @@ const WSApplicationDetails = () => {
|
|
|
32800
32789
|
to: {
|
|
32801
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, "/", "+"),
|
|
32802
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),
|
|
32803
|
-
state: {
|
|
32792
|
+
state: {
|
|
32793
|
+
fromApplicationDetails: true
|
|
32794
|
+
}
|
|
32804
32795
|
}
|
|
32805
32796
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
32806
32797
|
label: t("MAKE_PAYMENT")
|
|
@@ -34711,7 +34702,7 @@ const ReSubmitDisconnectionApplication = () => {
|
|
|
34711
34702
|
};
|
|
34712
34703
|
|
|
34713
34704
|
const CheckPage = _ref => {
|
|
34714
|
-
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;
|
|
34715
34706
|
let onSubmit = _ref.onSubmit,
|
|
34716
34707
|
value = _ref.value;
|
|
34717
34708
|
const _useTranslation = reactI18next.useTranslation(),
|
|
@@ -34958,7 +34949,7 @@ const CheckPage = _ref => {
|
|
|
34958
34949
|
text: "" + t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))
|
|
34959
34950
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
34960
34951
|
label: t("COMMON_CURRENT_ZONE"),
|
|
34961
|
-
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)))
|
|
34962
34953
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
34963
34954
|
label: t("LANDMARK"),
|
|
34964
34955
|
text: "" + t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
|
|
@@ -35775,13 +35766,19 @@ const CheckPage$1 = () => {
|
|
|
35775
35766
|
if (isEnableLoader) {
|
|
35776
35767
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
35777
35768
|
}
|
|
35778
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
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, {
|
|
35779
35778
|
styles: {
|
|
35780
35779
|
fontSize: "32px"
|
|
35781
35780
|
}
|
|
35782
|
-
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(
|
|
35783
|
-
currentStep: 3
|
|
35784
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
35781
|
+
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
35785
35782
|
style: {
|
|
35786
35783
|
paddingRight: "16px"
|
|
35787
35784
|
}
|
|
@@ -35876,7 +35873,7 @@ const CheckPage$1 = () => {
|
|
|
35876
35873
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
35877
35874
|
label: t("CS_COMMON_SUBMIT"),
|
|
35878
35875
|
onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
|
|
35879
|
-
})));
|
|
35876
|
+
})))));
|
|
35880
35877
|
};
|
|
35881
35878
|
|
|
35882
35879
|
const CheckPage$2 = () => {
|
|
@@ -36045,13 +36042,20 @@ const CheckPage$2 = () => {
|
|
|
36045
36042
|
if (isEnableLoader) {
|
|
36046
36043
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
36047
36044
|
}
|
|
36048
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
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, {
|
|
36049
36055
|
styles: {
|
|
36050
36056
|
fontSize: "32px"
|
|
36051
36057
|
}
|
|
36052
|
-
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(
|
|
36053
|
-
currentStep: 3
|
|
36054
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
36058
|
+
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
36055
36059
|
style: {
|
|
36056
36060
|
paddingRight: "16px"
|
|
36057
36061
|
}
|
|
@@ -36100,7 +36104,7 @@ const CheckPage$2 = () => {
|
|
|
36100
36104
|
error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
|
|
36101
36105
|
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
36102
36106
|
onClose: () => setError(null)
|
|
36103
|
-
}));
|
|
36107
|
+
}))));
|
|
36104
36108
|
};
|
|
36105
36109
|
|
|
36106
36110
|
const CheckPage$3 = () => {
|
|
@@ -36207,13 +36211,19 @@ const CheckPage$3 = () => {
|
|
|
36207
36211
|
if (isEnableLoader) {
|
|
36208
36212
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
36209
36213
|
}
|
|
36210
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
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, {
|
|
36211
36223
|
styles: {
|
|
36212
36224
|
fontSize: "32px"
|
|
36213
36225
|
}
|
|
36214
|
-
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(
|
|
36215
|
-
currentStep: 3
|
|
36216
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
36226
|
+
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
36217
36227
|
style: {
|
|
36218
36228
|
paddingRight: "16px"
|
|
36219
36229
|
}
|
|
@@ -36304,7 +36314,7 @@ const CheckPage$3 = () => {
|
|
|
36304
36314
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
36305
36315
|
label: t("CS_COMMON_SUBMIT"),
|
|
36306
36316
|
onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
|
|
36307
|
-
})));
|
|
36317
|
+
})))));
|
|
36308
36318
|
};
|
|
36309
36319
|
|
|
36310
36320
|
const config$2 = [{
|
|
@@ -41167,8 +41177,70 @@ const configWSApproverApplication = _ref => {
|
|
|
41167
41177
|
uploadedFile = _ref.uploadedFile,
|
|
41168
41178
|
setUploadedFile = _ref.setUploadedFile,
|
|
41169
41179
|
businessService = _ref.businessService,
|
|
41170
|
-
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;
|
|
41171
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
|
+
}];
|
|
41172
41244
|
return {
|
|
41173
41245
|
label: {
|
|
41174
41246
|
heading: "WF_" + (action === null || action === void 0 ? void 0 : action.action) + "_APPLICATION",
|
|
@@ -41176,13 +41248,7 @@ const configWSApproverApplication = _ref => {
|
|
|
41176
41248
|
cancel: "CS_COMMON_CANCEL"
|
|
41177
41249
|
},
|
|
41178
41250
|
form: [{
|
|
41179
|
-
body: [{
|
|
41180
|
-
label: t("WF_COMMON_COMMENTS"),
|
|
41181
|
-
type: "textarea",
|
|
41182
|
-
populators: {
|
|
41183
|
-
name: "comments"
|
|
41184
|
-
}
|
|
41185
|
-
}, {
|
|
41251
|
+
body: [...commentsField, {
|
|
41186
41252
|
label: t("WS_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
|
|
41187
41253
|
populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
|
|
41188
41254
|
id: "workflow-doc",
|
|
@@ -42687,7 +42753,7 @@ const convertDateToEpochNew$1 = function (dateString, dayStartOrEnd) {
|
|
|
42687
42753
|
}
|
|
42688
42754
|
};
|
|
42689
42755
|
const ActionModal$5 = _ref => {
|
|
42690
|
-
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
42756
|
+
var _action$assigneeRoles, _action$assigneeRoles2, _applicationData, _applicationData$appl, _applicationData2, _applicationData2$bus, _applicationData3, _applicationData3$app, _action$action, _action$action2;
|
|
42691
42757
|
let t = _ref.t,
|
|
42692
42758
|
action = _ref.action,
|
|
42693
42759
|
tenantId = _ref.tenantId,
|
|
@@ -42729,6 +42795,14 @@ const ActionModal$5 = _ref => {
|
|
|
42729
42795
|
const _useState7 = React.useState(null),
|
|
42730
42796
|
error = _useState7[0],
|
|
42731
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")));
|
|
42732
42806
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
42733
42807
|
const isEmployee = window.location.href.includes("/employee");
|
|
42734
42808
|
React.useEffect(() => {
|
|
@@ -42789,24 +42863,40 @@ const ActionModal$5 = _ref => {
|
|
|
42789
42863
|
})();
|
|
42790
42864
|
}, [file]);
|
|
42791
42865
|
function submit(data) {
|
|
42792
|
-
var
|
|
42793
|
-
|
|
42794
|
-
|
|
42795
|
-
|
|
42796
|
-
|
|
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, {
|
|
42797
42887
|
comments
|
|
42798
42888
|
});
|
|
42799
|
-
const amendment = _extends({}, (
|
|
42889
|
+
const amendment = _extends({}, (_applicationData6 = applicationData) === null || _applicationData6 === void 0 ? void 0 : _applicationData6.billAmendmentDetails, {
|
|
42800
42890
|
workflow: {
|
|
42801
|
-
businessId: (
|
|
42891
|
+
businessId: (_applicationData7 = applicationData) === null || _applicationData7 === void 0 ? void 0 : (_applicationData7$bil = _applicationData7.billAmendmentDetails) === null || _applicationData7$bil === void 0 ? void 0 : _applicationData7$bil.amendmentId,
|
|
42802
42892
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
42803
42893
|
tenantId: tenantId,
|
|
42804
|
-
businessService: (
|
|
42805
|
-
moduleName: (
|
|
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",
|
|
42806
42896
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42807
42897
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
42808
42898
|
}],
|
|
42809
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42899
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42810
42900
|
documents: uploadedFile ? [{
|
|
42811
42901
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42812
42902
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42814,7 +42904,7 @@ const ActionModal$5 = _ref => {
|
|
|
42814
42904
|
}] : []
|
|
42815
42905
|
},
|
|
42816
42906
|
additionalDetails,
|
|
42817
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42907
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42818
42908
|
wfDocuments: uploadedFile ? [{
|
|
42819
42909
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42820
42910
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42825,7 +42915,7 @@ const ActionModal$5 = _ref => {
|
|
|
42825
42915
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42826
42916
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
42827
42917
|
}],
|
|
42828
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42918
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42829
42919
|
documents: uploadedFile ? [{
|
|
42830
42920
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42831
42921
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42840,7 +42930,7 @@ const ActionModal$5 = _ref => {
|
|
|
42840
42930
|
}
|
|
42841
42931
|
applicationData = _extends({}, applicationData, {
|
|
42842
42932
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
42843
|
-
comment:
|
|
42933
|
+
comment: commentValue,
|
|
42844
42934
|
assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
42845
42935
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42846
42936
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
@@ -42850,12 +42940,12 @@ const ActionModal$5 = _ref => {
|
|
|
42850
42940
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
42851
42941
|
fileStoreId: uploadedFile
|
|
42852
42942
|
}] : null,
|
|
42853
|
-
processInstance: _extends({}, (
|
|
42943
|
+
processInstance: _extends({}, (_applicationData0 = applicationData) === null || _applicationData0 === void 0 ? void 0 : _applicationData0.processInstance, {
|
|
42854
42944
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
42855
42945
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42856
42946
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
42857
42947
|
}],
|
|
42858
|
-
comment:
|
|
42948
|
+
comment: commentValue,
|
|
42859
42949
|
documents: uploadedFile ? [{
|
|
42860
42950
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42861
42951
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42863,36 +42953,36 @@ const ActionModal$5 = _ref => {
|
|
|
42863
42953
|
}] : []
|
|
42864
42954
|
})
|
|
42865
42955
|
});
|
|
42866
|
-
if (data !== null && data !== void 0 && data.date && (
|
|
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")) {
|
|
42867
42957
|
const disconnectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
42868
42958
|
applicationData.disconnectionExecutionDate = convertDateToEpochNew$1(disconnectionExecutionDate);
|
|
42869
42959
|
} else if (data !== null && data !== void 0 && data.date) {
|
|
42870
42960
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
42871
42961
|
applicationData.connectionExecutionDate = convertDateToEpochNew$1(connectionExecutionDate);
|
|
42872
42962
|
}
|
|
42873
|
-
if (((
|
|
42874
|
-
var
|
|
42875
|
-
((
|
|
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({
|
|
42876
42966
|
WaterConnection: applicationData,
|
|
42877
42967
|
disconnectRequest: true
|
|
42878
42968
|
}) : submitAction({
|
|
42879
42969
|
SewerageConnection: applicationData,
|
|
42880
42970
|
disconnectRequest: true
|
|
42881
42971
|
});
|
|
42882
|
-
} else if (((
|
|
42972
|
+
} else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
42883
42973
|
submitAction({
|
|
42884
42974
|
SewerageConnection: applicationData,
|
|
42885
42975
|
disconnectRequest: false,
|
|
42886
42976
|
reconnectRequest: true
|
|
42887
42977
|
});
|
|
42888
|
-
} else if (((
|
|
42978
|
+
} else if (((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.applicationType) == "WATER_RECONNECTION") {
|
|
42889
42979
|
submitAction({
|
|
42890
42980
|
WaterConnection: applicationData,
|
|
42891
42981
|
disconnectRequest: false,
|
|
42892
42982
|
reconnectRequest: true
|
|
42893
42983
|
});
|
|
42894
42984
|
} else {
|
|
42895
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10,
|
|
42985
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData15;
|
|
42896
42986
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
42897
42987
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
42898
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) || "";
|
|
@@ -42901,7 +42991,7 @@ const ActionModal$5 = _ref => {
|
|
|
42901
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) || "";
|
|
42902
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) || "";
|
|
42903
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) || "";
|
|
42904
|
-
((
|
|
42994
|
+
((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : _applicationData15.serviceType) == "WATER" ? submitAction({
|
|
42905
42995
|
WaterConnection: applicationData,
|
|
42906
42996
|
disconnectRequest: false,
|
|
42907
42997
|
reconnectRequest: false
|
|
@@ -42913,8 +43003,8 @@ const ActionModal$5 = _ref => {
|
|
|
42913
43003
|
}
|
|
42914
43004
|
}
|
|
42915
43005
|
React.useEffect(() => {
|
|
42916
|
-
var
|
|
42917
|
-
if (((
|
|
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") {
|
|
42918
43008
|
if (action) {
|
|
42919
43009
|
setConfig(configWSDisConnectApplication({
|
|
42920
43010
|
t,
|
|
@@ -42941,11 +43031,16 @@ const ActionModal$5 = _ref => {
|
|
|
42941
43031
|
uploadedFile,
|
|
42942
43032
|
setUploadedFile,
|
|
42943
43033
|
businessService,
|
|
42944
|
-
error
|
|
43034
|
+
error,
|
|
43035
|
+
isReasonRequiredAction,
|
|
43036
|
+
selectedReason,
|
|
43037
|
+
setSelectedReason,
|
|
43038
|
+
otherReasonText,
|
|
43039
|
+
setOtherReasonText
|
|
42945
43040
|
}));
|
|
42946
43041
|
}
|
|
42947
43042
|
}
|
|
42948
|
-
}, [action, approvers, uploadedFile, error]);
|
|
43043
|
+
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText]);
|
|
42949
43044
|
return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
42950
43045
|
headerBarMain: /*#__PURE__*/React__default.createElement(Heading$5, {
|
|
42951
43046
|
label: t(config.label.heading)
|
|
@@ -42962,7 +43057,13 @@ const ActionModal$5 = _ref => {
|
|
|
42962
43057
|
width: "100%",
|
|
42963
43058
|
height: "auto"
|
|
42964
43059
|
} : {}
|
|
42965
|
-
}, PTALoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
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, {
|
|
42966
43067
|
config: config.form,
|
|
42967
43068
|
noBoxShadow: true,
|
|
42968
43069
|
inline: true,
|
|
@@ -42974,7 +43075,7 @@ const ActionModal$5 = _ref => {
|
|
|
42974
43075
|
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
42975
43076
|
cardClassName: cardClassName,
|
|
42976
43077
|
formClassName: formClassName
|
|
42977
|
-
})) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
43078
|
+
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
42978
43079
|
};
|
|
42979
43080
|
|
|
42980
43081
|
const Heading$6 = props => {
|
|
@@ -52013,7 +52114,7 @@ const Step4_Preview = _ref => {
|
|
|
52013
52114
|
"LEGAL_HEIR": "Legal Heir",
|
|
52014
52115
|
"OTHER": "Other"
|
|
52015
52116
|
};
|
|
52016
|
-
return map[code] || code;
|
|
52117
|
+
return map[code] || code || "NA";
|
|
52017
52118
|
};
|
|
52018
52119
|
const getReasonName = code => {
|
|
52019
52120
|
if (code !== null && code !== void 0 && code.code) return code.i18nKey;
|