@djb25/digit-ui-module-ws 1.0.75 → 1.0.77
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 +342 -240
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +342 -240
- 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"])));
|
|
@@ -24929,6 +24960,16 @@ const SearchApplication = _ref => {
|
|
|
24929
24960
|
}),
|
|
24930
24961
|
type: "number",
|
|
24931
24962
|
maxlength: 10
|
|
24963
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
24964
|
+
className: "search-field-wrapper"
|
|
24965
|
+
}, /*#__PURE__*/React__default.createElement("label", null, t("WS_ACK_COMMON_APP_NO_LABEL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
24966
|
+
name: "applicationNumber",
|
|
24967
|
+
inputRef: register({
|
|
24968
|
+
pattern: {
|
|
24969
|
+
value: /^[a-zA-Z0-9-_/]*$/,
|
|
24970
|
+
message: t("ERR_INVALID_APPLICATION_NO")
|
|
24971
|
+
}
|
|
24972
|
+
})
|
|
24932
24973
|
}))), activeTab === t("WS_ADVANCED_SEARCH") && /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchForm, {
|
|
24933
24974
|
className: "ws-search-form-wrapper formcomposer-section-grid",
|
|
24934
24975
|
onSubmit: onSubmit,
|
|
@@ -25522,6 +25563,16 @@ const SearchWaterConnection = _ref => {
|
|
|
25522
25563
|
}),
|
|
25523
25564
|
type: "number",
|
|
25524
25565
|
maxlength: 10
|
|
25566
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
25567
|
+
className: "search-field-wrapper"
|
|
25568
|
+
}, /*#__PURE__*/React__default.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
25569
|
+
name: "connectionNumber",
|
|
25570
|
+
inputRef: register({
|
|
25571
|
+
pattern: {
|
|
25572
|
+
value: /^[a-zA-Z0-9/-]*$/,
|
|
25573
|
+
message: t("ERR_INVALID_CONSUMER_NO")
|
|
25574
|
+
}
|
|
25575
|
+
})
|
|
25525
25576
|
}))), activeTab === t("WS_ADVANCED_SEARCH") && /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchForm, {
|
|
25526
25577
|
className: "ws-search-form-wrapper formcomposer-section-grid",
|
|
25527
25578
|
onSubmit: onSubmit,
|
|
@@ -30372,7 +30423,7 @@ const ChallanSearchResults = _ref => {
|
|
|
30372
30423
|
display: "block"
|
|
30373
30424
|
}
|
|
30374
30425
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
30375
|
-
to: "/digit-ui/citizen/ws/
|
|
30426
|
+
to: "/digit-ui/citizen/ws/info"
|
|
30376
30427
|
}, t("WS_CLICK_HERE_TO_APPLY"))))));
|
|
30377
30428
|
};
|
|
30378
30429
|
ChallanSearchResults.propTypes = {
|
|
@@ -31205,17 +31256,10 @@ const WSFeeEstimation = _ref => {
|
|
|
31205
31256
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
31206
31257
|
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
31207
31258
|
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
|
-
}) : [{
|
|
31259
|
+
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
|
|
31260
|
+
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
31261
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
|
|
31262
|
+
})) : [{
|
|
31219
31263
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
31220
31264
|
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
31265
|
}, {
|
|
@@ -31297,17 +31341,10 @@ const WSFeeEstimation = _ref => {
|
|
|
31297
31341
|
}
|
|
31298
31342
|
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
31343
|
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
|
-
}) : [{
|
|
31344
|
+
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
|
|
31345
|
+
title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
|
|
31346
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
|
|
31347
|
+
})) : [{
|
|
31311
31348
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
31312
31349
|
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
31350
|
}, {
|
|
@@ -31632,17 +31669,10 @@ const ViewBreakup = _ref => {
|
|
|
31632
31669
|
if (rows === void 0) {
|
|
31633
31670
|
rows = [];
|
|
31634
31671
|
}
|
|
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
|
-
});
|
|
31672
|
+
return rows.map(row => ({
|
|
31673
|
+
title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
|
|
31674
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount))
|
|
31675
|
+
}));
|
|
31646
31676
|
};
|
|
31647
31677
|
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
31678
|
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 +31951,49 @@ const ViewBreakup = _ref => {
|
|
|
31921
31951
|
style: {
|
|
31922
31952
|
margin: "10px 0px"
|
|
31923
31953
|
}
|
|
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, {
|
|
31954
|
+
}, 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, {
|
|
31955
|
+
className: "border-none",
|
|
31956
|
+
rowContainerStyle: {
|
|
31957
|
+
margin: "0px"
|
|
31958
|
+
},
|
|
31959
|
+
labelStyle: {
|
|
31960
|
+
width: "50%"
|
|
31961
|
+
},
|
|
31962
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
31963
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
31964
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
31965
|
+
textStyle: {
|
|
31966
|
+
textAlign: "right"
|
|
31967
|
+
}
|
|
31968
|
+
})), 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, {
|
|
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),
|
|
31979
|
+
textStyle: {
|
|
31980
|
+
textAlign: "right"
|
|
31981
|
+
}
|
|
31982
|
+
})), 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, {
|
|
31983
|
+
className: "border-none",
|
|
31984
|
+
rowContainerStyle: {
|
|
31985
|
+
margin: "0px"
|
|
31986
|
+
},
|
|
31987
|
+
labelStyle: {
|
|
31988
|
+
width: "50%"
|
|
31989
|
+
},
|
|
31990
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
31991
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
31992
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
31993
|
+
textStyle: {
|
|
31994
|
+
textAlign: "right"
|
|
31995
|
+
}
|
|
31996
|
+
})), propertyRows.length > 0 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
31988
31997
|
style: {
|
|
31989
31998
|
margin: "10px 0px"
|
|
31990
31999
|
}
|
|
@@ -32031,7 +32040,7 @@ const checkForNA$1 = value => {
|
|
|
32031
32040
|
return value ? value : "CS_NA";
|
|
32032
32041
|
};
|
|
32033
32042
|
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$
|
|
32043
|
+
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$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
32044
|
const getDisconnectionNoticeSearch = function () {
|
|
32036
32045
|
try {
|
|
32037
32046
|
var _data$WaterConnection182, _data$WaterConnection183, _data$SewerageConnect176, _data$SewerageConnect177;
|
|
@@ -32303,8 +32312,8 @@ const WSApplicationDetails = () => {
|
|
|
32303
32312
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
32304
32313
|
className: "workflow-timeline-wrapper no-scrollbar",
|
|
32305
32314
|
style: {
|
|
32306
|
-
flex: "
|
|
32307
|
-
maxWidth: "
|
|
32315
|
+
flex: "0 0 300px",
|
|
32316
|
+
maxWidth: "350px",
|
|
32308
32317
|
minWidth: "240px"
|
|
32309
32318
|
}
|
|
32310
32319
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -32315,7 +32324,7 @@ const WSApplicationDetails = () => {
|
|
|
32315
32324
|
paymentbuttonenabled: false
|
|
32316
32325
|
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
32317
32326
|
style: {
|
|
32318
|
-
flex: "
|
|
32327
|
+
flex: "1 1 0%",
|
|
32319
32328
|
minWidth: 0
|
|
32320
32329
|
}
|
|
32321
32330
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -32476,7 +32485,7 @@ const WSApplicationDetails = () => {
|
|
|
32476
32485
|
isArray: false
|
|
32477
32486
|
}
|
|
32478
32487
|
}
|
|
32479
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32488
|
+
}), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32480
32489
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
32481
32490
|
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
32491
|
textStyle: {
|
|
@@ -32520,7 +32529,7 @@ const WSApplicationDetails = () => {
|
|
|
32520
32529
|
isArray: false
|
|
32521
32530
|
}
|
|
32522
32531
|
}
|
|
32523
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32532
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32524
32533
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
32525
32534
|
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
32535
|
privacy: {
|
|
@@ -32624,12 +32633,6 @@ const WSApplicationDetails = () => {
|
|
|
32624
32633
|
marginBottom: "30px"
|
|
32625
32634
|
}
|
|
32626
32635
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32627
|
-
label: t("WS_ZRO_LOCATION"),
|
|
32628
|
-
text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zro = propertyAddress.zro) === null || _propertyAddress$zro === void 0 ? void 0 : _propertyAddress$zro.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zro) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zroLocation) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zroLocation) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addi = propertyAddress.additionalDetails) === null || _propertyAddress$addi === void 0 ? void 0 : _propertyAddress$addi.zroLocation)))
|
|
32629
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32630
|
-
label: t("COMMON_ADDRESS_TYPE"),
|
|
32631
|
-
text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr = propertyAddress.addressType) === null || _propertyAddress$addr === void 0 ? void 0 : _propertyAddress$addr.i18nKey) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr2 = propertyAddress.addressType) === null || _propertyAddress$addr2 === void 0 ? void 0 : _propertyAddress$addr2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.addressType)))
|
|
32632
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32633
32636
|
label: t("CORE_COMMON_PROFILE_CITY"),
|
|
32634
32637
|
text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city = propertyAddress.city) === null || _propertyAddress$city === void 0 ? void 0 : _propertyAddress$city.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city2 = propertyAddress.city) === null || _propertyAddress$city2 === void 0 ? void 0 : _propertyAddress$city2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city)))
|
|
32635
32638
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -32676,7 +32679,7 @@ const WSApplicationDetails = () => {
|
|
|
32676
32679
|
text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))
|
|
32677
32680
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32678
32681
|
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)))
|
|
32682
|
+
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
32683
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32681
32684
|
label: t("LANDMARK"),
|
|
32682
32685
|
text: "" + t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
|
|
@@ -32737,7 +32740,7 @@ const WSApplicationDetails = () => {
|
|
|
32737
32740
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32738
32741
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
32739
32742
|
text: "" + t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))
|
|
32740
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
32743
|
+
}))), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
32741
32744
|
styles: {
|
|
32742
32745
|
fontSize: "28px"
|
|
32743
32746
|
}
|
|
@@ -32758,7 +32761,7 @@ const WSApplicationDetails = () => {
|
|
|
32758
32761
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32759
32762
|
label: t("WS_BANK_ACCOUNT_NO"),
|
|
32760
32763
|
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, {
|
|
32764
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
32762
32765
|
styles: {
|
|
32763
32766
|
fontSize: "28px"
|
|
32764
32767
|
}
|
|
@@ -32800,7 +32803,9 @@ const WSApplicationDetails = () => {
|
|
|
32800
32803
|
to: {
|
|
32801
32804
|
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
32805
|
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: {
|
|
32806
|
+
state: {
|
|
32807
|
+
fromApplicationDetails: true
|
|
32808
|
+
}
|
|
32804
32809
|
}
|
|
32805
32810
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
32806
32811
|
label: t("MAKE_PAYMENT")
|
|
@@ -34711,7 +34716,7 @@ const ReSubmitDisconnectionApplication = () => {
|
|
|
34711
34716
|
};
|
|
34712
34717
|
|
|
34713
34718
|
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;
|
|
34719
|
+
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
34720
|
let onSubmit = _ref.onSubmit,
|
|
34716
34721
|
value = _ref.value;
|
|
34717
34722
|
const _useTranslation = reactI18next.useTranslation(),
|
|
@@ -34958,7 +34963,7 @@ const CheckPage = _ref => {
|
|
|
34958
34963
|
text: "" + t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))
|
|
34959
34964
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
34960
34965
|
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)))
|
|
34966
|
+
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
34967
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
34963
34968
|
label: t("LANDMARK"),
|
|
34964
34969
|
text: "" + t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
|
|
@@ -35775,13 +35780,19 @@ const CheckPage$1 = () => {
|
|
|
35775
35780
|
if (isEnableLoader) {
|
|
35776
35781
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
35777
35782
|
}
|
|
35778
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
35783
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
35784
|
+
className: "employee-form-section-wrapper"
|
|
35785
|
+
}, /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
|
|
35786
|
+
currentStep: 3
|
|
35787
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
35788
|
+
style: {
|
|
35789
|
+
width: "100%"
|
|
35790
|
+
}
|
|
35791
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
|
|
35779
35792
|
styles: {
|
|
35780
35793
|
fontSize: "32px"
|
|
35781
35794
|
}
|
|
35782
|
-
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(
|
|
35783
|
-
currentStep: 3
|
|
35784
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
35795
|
+
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
35785
35796
|
style: {
|
|
35786
35797
|
paddingRight: "16px"
|
|
35787
35798
|
}
|
|
@@ -35876,7 +35887,7 @@ const CheckPage$1 = () => {
|
|
|
35876
35887
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
35877
35888
|
label: t("CS_COMMON_SUBMIT"),
|
|
35878
35889
|
onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
|
|
35879
|
-
})));
|
|
35890
|
+
})))));
|
|
35880
35891
|
};
|
|
35881
35892
|
|
|
35882
35893
|
const CheckPage$2 = () => {
|
|
@@ -36045,13 +36056,20 @@ const CheckPage$2 = () => {
|
|
|
36045
36056
|
if (isEnableLoader) {
|
|
36046
36057
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
36047
36058
|
}
|
|
36048
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
36059
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
36060
|
+
className: "employee-form-section-wrapper"
|
|
36061
|
+
}, /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
|
|
36062
|
+
currentStep: 3,
|
|
36063
|
+
flow: "RESTORATION"
|
|
36064
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
36065
|
+
style: {
|
|
36066
|
+
width: "100%"
|
|
36067
|
+
}
|
|
36068
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
|
|
36049
36069
|
styles: {
|
|
36050
36070
|
fontSize: "32px"
|
|
36051
36071
|
}
|
|
36052
|
-
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(
|
|
36053
|
-
currentStep: 3
|
|
36054
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
36072
|
+
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
36055
36073
|
style: {
|
|
36056
36074
|
paddingRight: "16px"
|
|
36057
36075
|
}
|
|
@@ -36100,7 +36118,7 @@ const CheckPage$2 = () => {
|
|
|
36100
36118
|
error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
|
|
36101
36119
|
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
36102
36120
|
onClose: () => setError(null)
|
|
36103
|
-
}));
|
|
36121
|
+
}))));
|
|
36104
36122
|
};
|
|
36105
36123
|
|
|
36106
36124
|
const CheckPage$3 = () => {
|
|
@@ -36207,13 +36225,19 @@ const CheckPage$3 = () => {
|
|
|
36207
36225
|
if (isEnableLoader) {
|
|
36208
36226
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
36209
36227
|
}
|
|
36210
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
36228
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
36229
|
+
className: "employee-form-section-wrapper"
|
|
36230
|
+
}, /*#__PURE__*/React__default.createElement(DisconnectTimeline, {
|
|
36231
|
+
currentStep: 3
|
|
36232
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
36233
|
+
style: {
|
|
36234
|
+
width: "100%"
|
|
36235
|
+
}
|
|
36236
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
|
|
36211
36237
|
styles: {
|
|
36212
36238
|
fontSize: "32px"
|
|
36213
36239
|
}
|
|
36214
|
-
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(
|
|
36215
|
-
currentStep: 3
|
|
36216
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
36240
|
+
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
36217
36241
|
style: {
|
|
36218
36242
|
paddingRight: "16px"
|
|
36219
36243
|
}
|
|
@@ -36304,7 +36328,7 @@ const CheckPage$3 = () => {
|
|
|
36304
36328
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
36305
36329
|
label: t("CS_COMMON_SUBMIT"),
|
|
36306
36330
|
onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
|
|
36307
|
-
})));
|
|
36331
|
+
})))));
|
|
36308
36332
|
};
|
|
36309
36333
|
|
|
36310
36334
|
const config$2 = [{
|
|
@@ -41167,8 +41191,70 @@ const configWSApproverApplication = _ref => {
|
|
|
41167
41191
|
uploadedFile = _ref.uploadedFile,
|
|
41168
41192
|
setUploadedFile = _ref.setUploadedFile,
|
|
41169
41193
|
businessService = _ref.businessService,
|
|
41170
|
-
error = _ref.error
|
|
41194
|
+
error = _ref.error,
|
|
41195
|
+
isReasonRequiredAction = _ref.isReasonRequiredAction,
|
|
41196
|
+
selectedReason = _ref.selectedReason,
|
|
41197
|
+
setSelectedReason = _ref.setSelectedReason,
|
|
41198
|
+
otherReasonText = _ref.otherReasonText,
|
|
41199
|
+
setOtherReasonText = _ref.setOtherReasonText;
|
|
41171
41200
|
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") ;
|
|
41201
|
+
const reasonOptions = [{
|
|
41202
|
+
code: "INCOMPLETE_DOCUMENTS",
|
|
41203
|
+
name: "Incomplete / Incorrect Documents",
|
|
41204
|
+
i18nKey: "WS_MUTATION_REASON_INCOMPLETE_DOCUMENTS"
|
|
41205
|
+
}, {
|
|
41206
|
+
code: "MISMATCH_DETAILS",
|
|
41207
|
+
name: "Mismatch in Owner / Consumer Details",
|
|
41208
|
+
i18nKey: "WS_MUTATION_REASON_MISMATCH_DETAILS"
|
|
41209
|
+
}, {
|
|
41210
|
+
code: "INVALID_PROOF",
|
|
41211
|
+
name: "Invalid / Unverified Proof Provided",
|
|
41212
|
+
i18nKey: "WS_MUTATION_REASON_INVALID_PROOF"
|
|
41213
|
+
}, {
|
|
41214
|
+
code: "OTHER",
|
|
41215
|
+
name: "Other",
|
|
41216
|
+
i18nKey: "WS_MUTATION_REASON_OTHER"
|
|
41217
|
+
}];
|
|
41218
|
+
const commentsField = isReasonRequiredAction ? [{
|
|
41219
|
+
label: t("WF_REASON_LABEL") || t("Reason"),
|
|
41220
|
+
isMandatory: true,
|
|
41221
|
+
populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
41222
|
+
option: reasonOptions,
|
|
41223
|
+
autoComplete: "off",
|
|
41224
|
+
optionKey: "name",
|
|
41225
|
+
id: "mutationActionReason",
|
|
41226
|
+
select: val => {
|
|
41227
|
+
setSelectedReason(val);
|
|
41228
|
+
if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER") {
|
|
41229
|
+
setOtherReasonText("");
|
|
41230
|
+
}
|
|
41231
|
+
},
|
|
41232
|
+
selected: selectedReason,
|
|
41233
|
+
t: t,
|
|
41234
|
+
placeholder: t("WF_SELECT_REASON_PLACEHOLDER") || "Select Reason"
|
|
41235
|
+
})
|
|
41236
|
+
}, ...((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER" ? [{
|
|
41237
|
+
label: t("WF_OTHER_REASON_LABEL") || t("Please specify reason"),
|
|
41238
|
+
isMandatory: true,
|
|
41239
|
+
populators: /*#__PURE__*/React__default.createElement("textarea", {
|
|
41240
|
+
className: "employee-card-input",
|
|
41241
|
+
style: {
|
|
41242
|
+
width: "100%",
|
|
41243
|
+
height: "80px",
|
|
41244
|
+
resize: "vertical",
|
|
41245
|
+
marginTop: "4px"
|
|
41246
|
+
},
|
|
41247
|
+
value: otherReasonText,
|
|
41248
|
+
onChange: e => setOtherReasonText(e.target.value),
|
|
41249
|
+
placeholder: t("WF_ENTER_OTHER_REASON_PLACEHOLDER") || "Enter reason details..."
|
|
41250
|
+
})
|
|
41251
|
+
}] : [])] : [{
|
|
41252
|
+
label: t("WF_COMMON_COMMENTS"),
|
|
41253
|
+
type: "textarea",
|
|
41254
|
+
populators: {
|
|
41255
|
+
name: "comments"
|
|
41256
|
+
}
|
|
41257
|
+
}];
|
|
41172
41258
|
return {
|
|
41173
41259
|
label: {
|
|
41174
41260
|
heading: "WF_" + (action === null || action === void 0 ? void 0 : action.action) + "_APPLICATION",
|
|
@@ -41176,13 +41262,7 @@ const configWSApproverApplication = _ref => {
|
|
|
41176
41262
|
cancel: "CS_COMMON_CANCEL"
|
|
41177
41263
|
},
|
|
41178
41264
|
form: [{
|
|
41179
|
-
body: [{
|
|
41180
|
-
label: t("WF_COMMON_COMMENTS"),
|
|
41181
|
-
type: "textarea",
|
|
41182
|
-
populators: {
|
|
41183
|
-
name: "comments"
|
|
41184
|
-
}
|
|
41185
|
-
}, {
|
|
41265
|
+
body: [...commentsField, {
|
|
41186
41266
|
label: t("WS_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
|
|
41187
41267
|
populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
|
|
41188
41268
|
id: "workflow-doc",
|
|
@@ -42687,7 +42767,7 @@ const convertDateToEpochNew$1 = function (dateString, dayStartOrEnd) {
|
|
|
42687
42767
|
}
|
|
42688
42768
|
};
|
|
42689
42769
|
const ActionModal$5 = _ref => {
|
|
42690
|
-
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
42770
|
+
var _action$assigneeRoles, _action$assigneeRoles2, _applicationData, _applicationData$appl, _applicationData2, _applicationData2$bus, _applicationData3, _applicationData3$app, _action$action, _action$action2;
|
|
42691
42771
|
let t = _ref.t,
|
|
42692
42772
|
action = _ref.action,
|
|
42693
42773
|
tenantId = _ref.tenantId,
|
|
@@ -42729,6 +42809,14 @@ const ActionModal$5 = _ref => {
|
|
|
42729
42809
|
const _useState7 = React.useState(null),
|
|
42730
42810
|
error = _useState7[0],
|
|
42731
42811
|
setError = _useState7[1];
|
|
42812
|
+
const _useState8 = React.useState(null),
|
|
42813
|
+
selectedReason = _useState8[0],
|
|
42814
|
+
setSelectedReason = _useState8[1];
|
|
42815
|
+
const _useState9 = React.useState(""),
|
|
42816
|
+
otherReasonText = _useState9[0],
|
|
42817
|
+
setOtherReasonText = _useState9[1];
|
|
42818
|
+
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"));
|
|
42819
|
+
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
42820
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
42733
42821
|
const isEmployee = window.location.href.includes("/employee");
|
|
42734
42822
|
React.useEffect(() => {
|
|
@@ -42789,24 +42877,40 @@ const ActionModal$5 = _ref => {
|
|
|
42789
42877
|
})();
|
|
42790
42878
|
}, [file]);
|
|
42791
42879
|
function submit(data) {
|
|
42792
|
-
var
|
|
42793
|
-
|
|
42794
|
-
|
|
42795
|
-
|
|
42796
|
-
|
|
42880
|
+
var _applicationData4, _applicationData0, _applicationData1, _applicationData1$app, _applicationData10, _applicationData10$pr, _applicationData11, _applicationData11$pr, _applicationData13, _applicationData14;
|
|
42881
|
+
let commentValue = (data === null || data === void 0 ? void 0 : data.comments) || "";
|
|
42882
|
+
if (isReasonRequiredAction) {
|
|
42883
|
+
if (!selectedReason) {
|
|
42884
|
+
setError(t("PLEASE_SELECT_REASON") || "Please select a reason");
|
|
42885
|
+
return;
|
|
42886
|
+
}
|
|
42887
|
+
if ((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER") {
|
|
42888
|
+
if (!otherReasonText || otherReasonText.trim() === "") {
|
|
42889
|
+
setError(t("PLEASE_ENTER_REASON") || "Please enter the reason");
|
|
42890
|
+
return;
|
|
42891
|
+
}
|
|
42892
|
+
commentValue = otherReasonText.trim();
|
|
42893
|
+
} else {
|
|
42894
|
+
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);
|
|
42895
|
+
}
|
|
42896
|
+
}
|
|
42897
|
+
if ((_applicationData4 = applicationData) !== null && _applicationData4 !== void 0 && _applicationData4.isBillAmend) {
|
|
42898
|
+
var _applicationData5, _applicationData5$bil, _applicationData6, _applicationData7, _applicationData7$bil, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$app;
|
|
42899
|
+
const comments = commentValue || (data !== null && data !== void 0 && data.comments ? data.comments : null);
|
|
42900
|
+
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
42901
|
comments
|
|
42798
42902
|
});
|
|
42799
|
-
const amendment = _extends({}, (
|
|
42903
|
+
const amendment = _extends({}, (_applicationData6 = applicationData) === null || _applicationData6 === void 0 ? void 0 : _applicationData6.billAmendmentDetails, {
|
|
42800
42904
|
workflow: {
|
|
42801
|
-
businessId: (
|
|
42905
|
+
businessId: (_applicationData7 = applicationData) === null || _applicationData7 === void 0 ? void 0 : (_applicationData7$bil = _applicationData7.billAmendmentDetails) === null || _applicationData7$bil === void 0 ? void 0 : _applicationData7$bil.amendmentId,
|
|
42802
42906
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
42803
42907
|
tenantId: tenantId,
|
|
42804
|
-
businessService: (
|
|
42805
|
-
moduleName: (
|
|
42908
|
+
businessService: (_applicationData8 = applicationData) !== null && _applicationData8 !== void 0 && (_applicationData8$app = _applicationData8.applicationType) !== null && _applicationData8$app !== void 0 && _applicationData8$app.includes("WATER") ? "WS.AMENDMENT" : "SW.AMENDMENT",
|
|
42909
|
+
moduleName: (_applicationData9 = applicationData) !== null && _applicationData9 !== void 0 && (_applicationData9$app = _applicationData9.applicationType) !== null && _applicationData9$app !== void 0 && _applicationData9$app.includes("WATER") ? "WS" : "SW",
|
|
42806
42910
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42807
42911
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
42808
42912
|
}],
|
|
42809
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42913
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42810
42914
|
documents: uploadedFile ? [{
|
|
42811
42915
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42812
42916
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42814,7 +42918,7 @@ const ActionModal$5 = _ref => {
|
|
|
42814
42918
|
}] : []
|
|
42815
42919
|
},
|
|
42816
42920
|
additionalDetails,
|
|
42817
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42921
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42818
42922
|
wfDocuments: uploadedFile ? [{
|
|
42819
42923
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42820
42924
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42825,7 +42929,7 @@ const ActionModal$5 = _ref => {
|
|
|
42825
42929
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42826
42930
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
42827
42931
|
}],
|
|
42828
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42932
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42829
42933
|
documents: uploadedFile ? [{
|
|
42830
42934
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42831
42935
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42840,7 +42944,7 @@ const ActionModal$5 = _ref => {
|
|
|
42840
42944
|
}
|
|
42841
42945
|
applicationData = _extends({}, applicationData, {
|
|
42842
42946
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
42843
|
-
comment:
|
|
42947
|
+
comment: commentValue,
|
|
42844
42948
|
assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
42845
42949
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42846
42950
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
@@ -42850,12 +42954,12 @@ const ActionModal$5 = _ref => {
|
|
|
42850
42954
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
42851
42955
|
fileStoreId: uploadedFile
|
|
42852
42956
|
}] : null,
|
|
42853
|
-
processInstance: _extends({}, (
|
|
42957
|
+
processInstance: _extends({}, (_applicationData0 = applicationData) === null || _applicationData0 === void 0 ? void 0 : _applicationData0.processInstance, {
|
|
42854
42958
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
42855
42959
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42856
42960
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
42857
42961
|
}],
|
|
42858
|
-
comment:
|
|
42962
|
+
comment: commentValue,
|
|
42859
42963
|
documents: uploadedFile ? [{
|
|
42860
42964
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42861
42965
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42863,36 +42967,36 @@ const ActionModal$5 = _ref => {
|
|
|
42863
42967
|
}] : []
|
|
42864
42968
|
})
|
|
42865
42969
|
});
|
|
42866
|
-
if (data !== null && data !== void 0 && data.date && (
|
|
42970
|
+
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
42971
|
const disconnectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
42868
42972
|
applicationData.disconnectionExecutionDate = convertDateToEpochNew$1(disconnectionExecutionDate);
|
|
42869
42973
|
} else if (data !== null && data !== void 0 && data.date) {
|
|
42870
42974
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
42871
42975
|
applicationData.connectionExecutionDate = convertDateToEpochNew$1(connectionExecutionDate);
|
|
42872
42976
|
}
|
|
42873
|
-
if (((
|
|
42874
|
-
var
|
|
42875
|
-
((
|
|
42977
|
+
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")) {
|
|
42978
|
+
var _applicationData12;
|
|
42979
|
+
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
42876
42980
|
WaterConnection: applicationData,
|
|
42877
42981
|
disconnectRequest: true
|
|
42878
42982
|
}) : submitAction({
|
|
42879
42983
|
SewerageConnection: applicationData,
|
|
42880
42984
|
disconnectRequest: true
|
|
42881
42985
|
});
|
|
42882
|
-
} else if (((
|
|
42986
|
+
} else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
42883
42987
|
submitAction({
|
|
42884
42988
|
SewerageConnection: applicationData,
|
|
42885
42989
|
disconnectRequest: false,
|
|
42886
42990
|
reconnectRequest: true
|
|
42887
42991
|
});
|
|
42888
|
-
} else if (((
|
|
42992
|
+
} else if (((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.applicationType) == "WATER_RECONNECTION") {
|
|
42889
42993
|
submitAction({
|
|
42890
42994
|
WaterConnection: applicationData,
|
|
42891
42995
|
disconnectRequest: false,
|
|
42892
42996
|
reconnectRequest: true
|
|
42893
42997
|
});
|
|
42894
42998
|
} else {
|
|
42895
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10,
|
|
42999
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData15;
|
|
42896
43000
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
42897
43001
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
42898
43002
|
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 +43005,7 @@ const ActionModal$5 = _ref => {
|
|
|
42901
43005
|
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
43006
|
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
43007
|
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
|
-
((
|
|
43008
|
+
((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : _applicationData15.serviceType) == "WATER" ? submitAction({
|
|
42905
43009
|
WaterConnection: applicationData,
|
|
42906
43010
|
disconnectRequest: false,
|
|
42907
43011
|
reconnectRequest: false
|
|
@@ -42913,8 +43017,8 @@ const ActionModal$5 = _ref => {
|
|
|
42913
43017
|
}
|
|
42914
43018
|
}
|
|
42915
43019
|
React.useEffect(() => {
|
|
42916
|
-
var
|
|
42917
|
-
if (((
|
|
43020
|
+
var _applicationData16, _applicationData16$pr, _applicationData17, _applicationData17$pr;
|
|
43021
|
+
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
43022
|
if (action) {
|
|
42919
43023
|
setConfig(configWSDisConnectApplication({
|
|
42920
43024
|
t,
|
|
@@ -42941,11 +43045,16 @@ const ActionModal$5 = _ref => {
|
|
|
42941
43045
|
uploadedFile,
|
|
42942
43046
|
setUploadedFile,
|
|
42943
43047
|
businessService,
|
|
42944
|
-
error
|
|
43048
|
+
error,
|
|
43049
|
+
isReasonRequiredAction,
|
|
43050
|
+
selectedReason,
|
|
43051
|
+
setSelectedReason,
|
|
43052
|
+
otherReasonText,
|
|
43053
|
+
setOtherReasonText
|
|
42945
43054
|
}));
|
|
42946
43055
|
}
|
|
42947
43056
|
}
|
|
42948
|
-
}, [action, approvers, uploadedFile, error]);
|
|
43057
|
+
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText]);
|
|
42949
43058
|
return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
42950
43059
|
headerBarMain: /*#__PURE__*/React__default.createElement(Heading$5, {
|
|
42951
43060
|
label: t(config.label.heading)
|
|
@@ -42962,7 +43071,13 @@ const ActionModal$5 = _ref => {
|
|
|
42962
43071
|
width: "100%",
|
|
42963
43072
|
height: "auto"
|
|
42964
43073
|
} : {}
|
|
42965
|
-
}, PTALoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
43074
|
+
}, PTALoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
43075
|
+
style: {
|
|
43076
|
+
marginBottom: "12px",
|
|
43077
|
+
marginLeft: "12px",
|
|
43078
|
+
marginRight: "12px"
|
|
43079
|
+
}
|
|
43080
|
+
}, error), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
|
|
42966
43081
|
config: config.form,
|
|
42967
43082
|
noBoxShadow: true,
|
|
42968
43083
|
inline: true,
|
|
@@ -42974,7 +43089,7 @@ const ActionModal$5 = _ref => {
|
|
|
42974
43089
|
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
42975
43090
|
cardClassName: cardClassName,
|
|
42976
43091
|
formClassName: formClassName
|
|
42977
|
-
})) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
43092
|
+
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
42978
43093
|
};
|
|
42979
43094
|
|
|
42980
43095
|
const Heading$6 = props => {
|
|
@@ -52013,7 +52128,7 @@ const Step4_Preview = _ref => {
|
|
|
52013
52128
|
"LEGAL_HEIR": "Legal Heir",
|
|
52014
52129
|
"OTHER": "Other"
|
|
52015
52130
|
};
|
|
52016
|
-
return map[code] || code;
|
|
52131
|
+
return map[code] || code || "NA";
|
|
52017
52132
|
};
|
|
52018
52133
|
const getReasonName = code => {
|
|
52019
52134
|
if (code !== null && code !== void 0 && code.code) return code.i18nKey;
|
|
@@ -55424,11 +55539,11 @@ const OLDApplication = () => {
|
|
|
55424
55539
|
const cleanedFormData = JSON.parse(JSON.stringify(updatedFormData));
|
|
55425
55540
|
if (!lodash.isEqual(sessionFormData, cleanedFormData)) {
|
|
55426
55541
|
setSessionFormData(cleanedFormData);
|
|
55427
|
-
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
|
|
55428
55542
|
}
|
|
55543
|
+
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify((formState === null || formState === void 0 ? void 0 : formState.errors) || {}));
|
|
55429
55544
|
};
|
|
55430
55545
|
const onFormSubmit = data => {
|
|
55431
|
-
var _data$cpt, _propertyDetails$Prop
|
|
55546
|
+
var _data$cpt, _propertyDetails$Prop;
|
|
55432
55547
|
if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
|
|
55433
55548
|
var _data$cpt2;
|
|
55434
55549
|
if (!(data !== null && data !== void 0 && (_data$cpt2 = data.cpt) !== null && _data$cpt2 !== void 0 && _data$cpt2.details) || !propertyDetails) {
|
|
@@ -55443,19 +55558,6 @@ const OLDApplication = () => {
|
|
|
55443
55558
|
return;
|
|
55444
55559
|
}
|
|
55445
55560
|
}
|
|
55446
|
-
const errors = sessionStorage.getItem("FORMSTATE_ERRORS");
|
|
55447
|
-
const formStateErros = typeof errors === "string" && errors !== "null" ? JSON.parse(errors) : {};
|
|
55448
|
-
if (Object.keys(formStateErros).length > 0 && !(Object.keys(formStateErros).length === 1 && formStateErros !== null && formStateErros !== void 0 && (_formStateErros$Conne = formStateErros["ConnectionHolderDetails"]) !== null && _formStateErros$Conne !== void 0 && _formStateErros$Conne.type && ((_Object$keys = Object.keys(formStateErros === null || formStateErros === void 0 ? void 0 : (_formStateErros$Conne2 = formStateErros["ConnectionHolderDetails"]) === null || _formStateErros$Conne2 === void 0 ? void 0 : _formStateErros$Conne2.type)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 1 && formStateErros["ConnectionHolderDetails"] && Object.values(formStateErros["ConnectionHolderDetails"].type).filter(ob => {
|
|
55449
|
-
var _ob$ref;
|
|
55450
|
-
return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$ref = ob.ref) === null || _ob$ref === void 0 ? void 0 : _ob$ref.value) !== "";
|
|
55451
|
-
}).length > 0)) {
|
|
55452
|
-
console.warn("[WS] onSubmit EXIT: formState errors blocking submit", formStateErros);
|
|
55453
|
-
setShowToast({
|
|
55454
|
-
key: "error",
|
|
55455
|
-
message: "PLEASE_FILL_MANDATORY_DETAILS"
|
|
55456
|
-
});
|
|
55457
|
-
return;
|
|
55458
|
-
}
|
|
55459
55561
|
setShowCheckPage(true);
|
|
55460
55562
|
};
|
|
55461
55563
|
const processSubmission = function (data) {
|