@djb25/digit-ui-module-ws 1.0.74 → 1.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +357 -274
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +357 -274
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -8044,7 +8044,9 @@ const WSMyApplications = () => {
|
|
|
8044
8044
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
8045
8045
|
to: {
|
|
8046
8046
|
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),
|
|
8047
|
-
state: {
|
|
8047
|
+
state: {
|
|
8048
|
+
fromMyApplications: true
|
|
8049
|
+
}
|
|
8048
8050
|
}
|
|
8049
8051
|
}, t("MAKE_PAYMENT"))) : null;
|
|
8050
8052
|
}
|
|
@@ -8402,7 +8404,7 @@ const getDocumentDetails = (application, t) => {
|
|
|
8402
8404
|
};
|
|
8403
8405
|
const getWSAcknowledgementData = function (application, property, tenantInfo, t) {
|
|
8404
8406
|
try {
|
|
8405
|
-
var _application$
|
|
8407
|
+
var _application$tradeLic17, _application$tradeLic18;
|
|
8406
8408
|
function _temp2() {
|
|
8407
8409
|
return Promise.resolve(getHeaderDetails(application, t, tenantInfo)).then(function (header) {
|
|
8408
8410
|
return {
|
|
@@ -8417,7 +8419,7 @@ const getWSAcknowledgementData = function (application, property, tenantInfo, t)
|
|
|
8417
8419
|
};
|
|
8418
8420
|
});
|
|
8419
8421
|
}
|
|
8420
|
-
const filesArray = application === null || application === void 0 ? void 0 : (_application$
|
|
8422
|
+
const filesArray = application === null || application === void 0 ? void 0 : (_application$tradeLic17 = application.tradeLicenseDetail) === null || _application$tradeLic17 === void 0 ? void 0 : (_application$tradeLic18 = _application$tradeLic17.applicationDocuments) === null || _application$tradeLic18 === void 0 ? void 0 : _application$tradeLic18.map(value => value === null || value === void 0 ? void 0 : value.fileStoreId);
|
|
8421
8423
|
let res;
|
|
8422
8424
|
const _temp = function () {
|
|
8423
8425
|
if (filesArray) {
|
|
@@ -8963,14 +8965,18 @@ const App = _ref => {
|
|
|
8963
8965
|
fetchToken();
|
|
8964
8966
|
}, []);
|
|
8965
8967
|
const crumbs = [{
|
|
8966
|
-
path: "/digit-ui/
|
|
8968
|
+
path: "/digit-ui/citizen",
|
|
8967
8969
|
show: true,
|
|
8968
8970
|
style: isMobile ? {
|
|
8969
8971
|
width: "20%"
|
|
8970
8972
|
} : {},
|
|
8971
8973
|
icon: HomeIcon
|
|
8972
8974
|
}, {
|
|
8973
|
-
path: "/digit-ui/citizen/ws
|
|
8975
|
+
path: "/digit-ui/citizen/ws-home",
|
|
8976
|
+
label: t("ES_TITLE_WATER_AND_SEWERAGE"),
|
|
8977
|
+
show: true
|
|
8978
|
+
}, {
|
|
8979
|
+
path: "/digit-ui/citizen/ws/info",
|
|
8974
8980
|
label: t("WS_COMMON_APPL_NEW_CONNECTION"),
|
|
8975
8981
|
show: location.pathname.includes("/create-application") || location.pathname.includes("/info")
|
|
8976
8982
|
}, {
|
|
@@ -8980,11 +8986,11 @@ const App = _ref => {
|
|
|
8980
8986
|
}, {
|
|
8981
8987
|
path: "/digit-ui/citizen/ws/my-applications",
|
|
8982
8988
|
label: t("CS_HOME_MY_APPLICATIONS") + " " + (totalAppsCount ? "(" + totalAppsCount + ")" : ""),
|
|
8983
|
-
show: location.pathname.includes("/my-applications")
|
|
8989
|
+
show: location.pathname.includes("/my-applications") || location.pathname.includes("/connection/application")
|
|
8984
8990
|
}, {
|
|
8985
8991
|
path: "/digit-ui/citizen/ws/my-connections",
|
|
8986
8992
|
label: t("WS_MYCONNECTIONS_HEADER"),
|
|
8987
|
-
show: location.pathname.includes("/my-connections")
|
|
8993
|
+
show: location.pathname.includes("/my-connections") || location.pathname.includes("/connection/details")
|
|
8988
8994
|
}, {
|
|
8989
8995
|
path: "/digit-ui/citizen/ws/my-bills",
|
|
8990
8996
|
label: t("CS_WS_MY_BILLS"),
|
|
@@ -9001,13 +9007,21 @@ const App = _ref => {
|
|
|
9001
9007
|
path: location.pathname,
|
|
9002
9008
|
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
9003
9009
|
show: location.pathname.includes("/connection/application")
|
|
9010
|
+
}, {
|
|
9011
|
+
path: location.pathname,
|
|
9012
|
+
label: t("WS_COMMON_CONNECTION_DETAIL"),
|
|
9013
|
+
show: location.pathname.includes("/connection/details")
|
|
9004
9014
|
}, {
|
|
9005
9015
|
path: location.pathname,
|
|
9006
9016
|
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
9007
9017
|
show: location.pathname.includes("ws-response")
|
|
9008
9018
|
}];
|
|
9009
9019
|
const getDynamicBreadcrumbs = () => {
|
|
9010
|
-
|
|
9020
|
+
let activeCrumbs = crumbs.filter(crumb => crumb.show);
|
|
9021
|
+
if (activeCrumbs.length > 0) {
|
|
9022
|
+
activeCrumbs[activeCrumbs.length - 1].path = "";
|
|
9023
|
+
}
|
|
9024
|
+
return activeCrumbs;
|
|
9011
9025
|
};
|
|
9012
9026
|
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");
|
|
9013
9027
|
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");
|
|
@@ -10740,13 +10754,13 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
10740
10754
|
width: "20%"
|
|
10741
10755
|
} : {},
|
|
10742
10756
|
icon: HomeIcon
|
|
10743
|
-
}, {
|
|
10744
|
-
path: "/digit-ui/employee/ws/wsinformation",
|
|
10745
|
-
label: t("WS_COMMON_APPL_NEW_CONNECTION"),
|
|
10746
|
-
show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application") || location.pathname.includes("/old-application") || location.pathname.includes("/info")
|
|
10747
10757
|
}, {
|
|
10748
10758
|
path: "/digit-ui/employee/module/details",
|
|
10749
10759
|
label: t("ES_TITLE_WATER_AND_SEWERAGE"),
|
|
10760
|
+
show: true
|
|
10761
|
+
}, {
|
|
10762
|
+
path: "/digit-ui/employee/ws/info",
|
|
10763
|
+
label: t("WS_COMMON_APPL_NEW_CONNECTION"),
|
|
10750
10764
|
show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application") || location.pathname.includes("/old-application") || location.pathname.includes("/info")
|
|
10751
10765
|
}, {
|
|
10752
10766
|
path: "/digit-ui/employee/ws/create-application",
|
|
@@ -10957,7 +10971,32 @@ const BILLSBreadCrumbs = _ref => {
|
|
|
10957
10971
|
isclickable: false
|
|
10958
10972
|
});
|
|
10959
10973
|
const getDynamicBreadcrumbs = () => {
|
|
10960
|
-
|
|
10974
|
+
let activeCrumbs = crumbs.filter(crumb => crumb.show);
|
|
10975
|
+
if (fromScreen && activeCrumbs.length > 0) {
|
|
10976
|
+
const lastCrumbIndex = activeCrumbs.length - 1;
|
|
10977
|
+
const lastCrumb = activeCrumbs[lastCrumbIndex];
|
|
10978
|
+
if (lastCrumb.label && lastCrumb.label.includes(" / ")) {
|
|
10979
|
+
const parts = lastCrumb.label.split(" / ");
|
|
10980
|
+
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"));
|
|
10981
|
+
activeCrumbs.pop();
|
|
10982
|
+
activeCrumbs.push({
|
|
10983
|
+
label: parts[0],
|
|
10984
|
+
show: true,
|
|
10985
|
+
isBack: true,
|
|
10986
|
+
onClick: () => window.history.back()
|
|
10987
|
+
});
|
|
10988
|
+
activeCrumbs.push({
|
|
10989
|
+
path: "",
|
|
10990
|
+
label: parts[1],
|
|
10991
|
+
show: true,
|
|
10992
|
+
isclickable: false,
|
|
10993
|
+
rightContent: lastCrumb.rightContent
|
|
10994
|
+
});
|
|
10995
|
+
}
|
|
10996
|
+
} else if (activeCrumbs.length > 0) {
|
|
10997
|
+
activeCrumbs[activeCrumbs.length - 1].path = "";
|
|
10998
|
+
}
|
|
10999
|
+
return activeCrumbs;
|
|
10961
11000
|
};
|
|
10962
11001
|
return /*#__PURE__*/React.createElement(React.Fragment, null, showWaringToast && /*#__PURE__*/React.createElement(Toast, {
|
|
10963
11002
|
style: {
|
|
@@ -19269,29 +19308,21 @@ const DisconnectTimeline = _ref => {
|
|
|
19269
19308
|
currentStep = _ref$currentStep === void 0 ? 1 : _ref$currentStep,
|
|
19270
19309
|
_ref$flow = _ref.flow,
|
|
19271
19310
|
flow = _ref$flow === void 0 ? "" : _ref$flow;
|
|
19272
|
-
const _useTranslation = useTranslation()
|
|
19273
|
-
t = _useTranslation.t;
|
|
19311
|
+
const _useTranslation = useTranslation();
|
|
19274
19312
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
19275
19313
|
getAction$1(flow);
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19280
|
-
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
19289
|
-
className: "circle " + (index <= currentStep - 1 && 'active')
|
|
19290
|
-
}, index < currentStep - 1 ? /*#__PURE__*/React.createElement(TickMark, null) : index + 1), /*#__PURE__*/React.createElement("span", {
|
|
19291
|
-
className: "secondary-color"
|
|
19292
|
-
}, t(action))), index < arr.length - 1 && /*#__PURE__*/React.createElement("span", {
|
|
19293
|
-
className: "line " + (index < currentStep - 1 && 'active')
|
|
19294
|
-
}))));
|
|
19314
|
+
const timelineConfig = actions$1.map((action, index) => ({
|
|
19315
|
+
route: "step-" + (index + 1),
|
|
19316
|
+
timeLine: [{
|
|
19317
|
+
actions: action,
|
|
19318
|
+
currentStep: index + 1
|
|
19319
|
+
}]
|
|
19320
|
+
}));
|
|
19321
|
+
return /*#__PURE__*/React.createElement(VerticalTimeline, {
|
|
19322
|
+
config: timelineConfig,
|
|
19323
|
+
currentActiveIndex: currentStep - 1,
|
|
19324
|
+
showFinalStep: false
|
|
19325
|
+
});
|
|
19295
19326
|
};
|
|
19296
19327
|
|
|
19297
19328
|
function toInteger(dirtyNumber) {
|
|
@@ -21067,7 +21098,15 @@ const WSDisconnectionForm = _ref => {
|
|
|
21067
21098
|
if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
21068
21099
|
if (userType === "citizen") {
|
|
21069
21100
|
var _disconnectionData$ty, _disconnectionData$ty2, _disconnectionData$ty3, _disconnectionData$ty4, _disconnectionData$ty5, _disconnectionData$re2, _disconnectionData$re3, _disconnectionData$re4, _disconnectionData$re5;
|
|
21070
|
-
return /*#__PURE__*/React.createElement(
|
|
21101
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CitizenInfoLabel, {
|
|
21102
|
+
textStyle: {
|
|
21103
|
+
color: "#0B0C0C"
|
|
21104
|
+
},
|
|
21105
|
+
text: t("WS_DISONNECT_APPL_INFO"),
|
|
21106
|
+
info: t("CS_COMMON_INFO")
|
|
21107
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
21108
|
+
className: "employee-form-section-wrapper"
|
|
21109
|
+
}, userType === "citizen" && /*#__PURE__*/React.createElement(DisconnectTimeline, {
|
|
21071
21110
|
currentStep: 1
|
|
21072
21111
|
}), /*#__PURE__*/React.createElement(FormStep, {
|
|
21073
21112
|
config: config,
|
|
@@ -21205,16 +21244,7 @@ const WSDisconnectionForm = _ref => {
|
|
|
21205
21244
|
error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
|
|
21206
21245
|
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
21207
21246
|
onClose: () => setError(null)
|
|
21208
|
-
})))
|
|
21209
|
-
style: {
|
|
21210
|
-
margin: "0px"
|
|
21211
|
-
},
|
|
21212
|
-
textStyle: {
|
|
21213
|
-
color: "#0B0C0C"
|
|
21214
|
-
},
|
|
21215
|
-
text: t("WS_DISONNECT_APPL_INFO"),
|
|
21216
|
-
info: t("CS_COMMON_INFO")
|
|
21217
|
-
}));
|
|
21247
|
+
})))));
|
|
21218
21248
|
}
|
|
21219
21249
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(FormStep, {
|
|
21220
21250
|
config: config,
|
|
@@ -21753,8 +21783,21 @@ const WSRestorationForm = _ref => {
|
|
|
21753
21783
|
if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
21754
21784
|
if (userType === 'citizen') {
|
|
21755
21785
|
var _disconnectionData$re2, _disconnectionData$re3;
|
|
21756
|
-
return /*#__PURE__*/React.createElement(
|
|
21757
|
-
|
|
21786
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CitizenInfoLabel, {
|
|
21787
|
+
style: {
|
|
21788
|
+
margin: "0px",
|
|
21789
|
+
marginBottom: "1.5rem"
|
|
21790
|
+
},
|
|
21791
|
+
textStyle: {
|
|
21792
|
+
color: "#0B0C0C"
|
|
21793
|
+
},
|
|
21794
|
+
text: t("WS_DISONNECT_APPL_INFO"),
|
|
21795
|
+
info: t("CS_COMMON_INFO")
|
|
21796
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
21797
|
+
className: "employee-form-section-wrapper"
|
|
21798
|
+
}, userType === "citizen" && /*#__PURE__*/React.createElement(DisconnectTimeline, {
|
|
21799
|
+
currentStep: 1,
|
|
21800
|
+
flow: "RESTORATION"
|
|
21758
21801
|
}), /*#__PURE__*/React.createElement(FormStep, {
|
|
21759
21802
|
config: config,
|
|
21760
21803
|
onSelect: handleSubmit,
|
|
@@ -21810,16 +21853,7 @@ const WSRestorationForm = _ref => {
|
|
|
21810
21853
|
error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
|
|
21811
21854
|
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
21812
21855
|
onClose: () => setError(null)
|
|
21813
|
-
})))
|
|
21814
|
-
style: {
|
|
21815
|
-
margin: "0px"
|
|
21816
|
-
},
|
|
21817
|
-
textStyle: {
|
|
21818
|
-
color: "#0B0C0C"
|
|
21819
|
-
},
|
|
21820
|
-
text: t("WS_DISONNECT_APPL_INFO"),
|
|
21821
|
-
info: t("CS_COMMON_INFO")
|
|
21822
|
-
}));
|
|
21856
|
+
})))));
|
|
21823
21857
|
}
|
|
21824
21858
|
console.log("applicationData", applicationData);
|
|
21825
21859
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -21961,6 +21995,7 @@ function WSDisconnectionDocumentsForm(_ref) {
|
|
|
21961
21995
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
21962
21996
|
}
|
|
21963
21997
|
return /*#__PURE__*/React.createElement("div", {
|
|
21998
|
+
className: "employee-form-section-wrapper",
|
|
21964
21999
|
style: {
|
|
21965
22000
|
marginTop: "19px"
|
|
21966
22001
|
}
|
|
@@ -23877,7 +23912,7 @@ const useInboxTableConfig = _ref => {
|
|
|
23877
23912
|
application = "modify";
|
|
23878
23913
|
}
|
|
23879
23914
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
|
|
23880
|
-
to: "/digit-ui/employee/ws/" + application + "-details?applicationNumber=" + row.original["applicationNo"] + "&tenantId=" + tenantId + "&service=" + service + "&from=WS_SEWERAGE_INBOX"
|
|
23915
|
+
to: "/digit-ui/employee/ws/" + application + "-details?applicationNumber=" + row.original["applicationNo"] + "&tenantId=" + tenantId + "&service=" + service + "&from=" + (service === "WATER" ? "WS_WATER_INBOX" : "WS_SEWERAGE_INBOX")
|
|
23881
23916
|
}, " ", /*#__PURE__*/React.createElement("span", {
|
|
23882
23917
|
className: "link"
|
|
23883
23918
|
}, row.original["applicationNo"])));
|
|
@@ -30365,7 +30400,7 @@ const ChallanSearchResults = _ref => {
|
|
|
30365
30400
|
display: "block"
|
|
30366
30401
|
}
|
|
30367
30402
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
30368
|
-
to: "/digit-ui/citizen/ws/
|
|
30403
|
+
to: "/digit-ui/citizen/ws/info"
|
|
30369
30404
|
}, t("WS_CLICK_HERE_TO_APPLY"))))));
|
|
30370
30405
|
};
|
|
30371
30406
|
ChallanSearchResults.propTypes = {
|
|
@@ -31198,17 +31233,10 @@ const WSFeeEstimation = _ref => {
|
|
|
31198
31233
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
31199
31234
|
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
31200
31235
|
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) || [];
|
|
31201
|
-
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => {
|
|
31202
|
-
|
|
31203
|
-
|
|
31204
|
-
|
|
31205
|
-
value: /*#__PURE__*/React.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.createElement("span", {
|
|
31206
|
-
style: {
|
|
31207
|
-
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"
|
|
31208
|
-
}
|
|
31209
|
-
}, " (" + (bill === null || bill === void 0 ? void 0 : bill.status) + ")") : "")
|
|
31210
|
-
};
|
|
31211
|
-
}) : [{
|
|
31236
|
+
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
|
|
31237
|
+
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
31238
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
|
|
31239
|
+
})) : [{
|
|
31212
31240
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
31213
31241
|
value: /*#__PURE__*/React.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)
|
|
31214
31242
|
}, {
|
|
@@ -31290,17 +31318,10 @@ const WSFeeEstimation = _ref => {
|
|
|
31290
31318
|
}
|
|
31291
31319
|
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");
|
|
31292
31320
|
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) || [];
|
|
31293
|
-
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => {
|
|
31294
|
-
|
|
31295
|
-
|
|
31296
|
-
|
|
31297
|
-
value: /*#__PURE__*/React.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.createElement("span", {
|
|
31298
|
-
style: {
|
|
31299
|
-
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"
|
|
31300
|
-
}
|
|
31301
|
-
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : "")
|
|
31302
|
-
};
|
|
31303
|
-
}) : [{
|
|
31321
|
+
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
|
|
31322
|
+
title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
|
|
31323
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
|
|
31324
|
+
})) : [{
|
|
31304
31325
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
31305
31326
|
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
|
|
31306
31327
|
}, {
|
|
@@ -31625,17 +31646,10 @@ const ViewBreakup = _ref => {
|
|
|
31625
31646
|
if (rows === void 0) {
|
|
31626
31647
|
rows = [];
|
|
31627
31648
|
}
|
|
31628
|
-
return rows.map(row => {
|
|
31629
|
-
|
|
31630
|
-
|
|
31631
|
-
|
|
31632
|
-
value: /*#__PURE__*/React.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount), row !== null && row !== void 0 && row.status ? /*#__PURE__*/React.createElement("span", {
|
|
31633
|
-
style: {
|
|
31634
|
-
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"
|
|
31635
|
-
}
|
|
31636
|
-
}, " (" + (row === null || row === void 0 ? void 0 : row.status) + ")") : "")
|
|
31637
|
-
};
|
|
31638
|
-
});
|
|
31649
|
+
return rows.map(row => ({
|
|
31650
|
+
title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
|
|
31651
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount))
|
|
31652
|
+
}));
|
|
31639
31653
|
};
|
|
31640
31654
|
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];
|
|
31641
31655
|
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(" ") || "-";
|
|
@@ -31914,70 +31928,49 @@ const ViewBreakup = _ref => {
|
|
|
31914
31928
|
style: {
|
|
31915
31929
|
margin: "10px 0px"
|
|
31916
31930
|
}
|
|
31917
|
-
}, 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 => {
|
|
31918
|
-
|
|
31919
|
-
|
|
31920
|
-
|
|
31921
|
-
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
|
|
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
|
-
var _data$status3;
|
|
31961
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
31962
|
-
className: "border-none",
|
|
31963
|
-
rowContainerStyle: {
|
|
31964
|
-
margin: "0px"
|
|
31965
|
-
},
|
|
31966
|
-
labelStyle: {
|
|
31967
|
-
width: "50%"
|
|
31968
|
-
},
|
|
31969
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
31970
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
31971
|
-
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
|
|
31972
|
-
style: {
|
|
31973
|
-
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"
|
|
31974
|
-
}
|
|
31975
|
-
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
31976
|
-
textStyle: {
|
|
31977
|
-
textAlign: "right"
|
|
31978
|
-
}
|
|
31979
|
-
});
|
|
31980
|
-
}), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
31931
|
+
}, 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.createElement(Row, {
|
|
31932
|
+
className: "border-none",
|
|
31933
|
+
rowContainerStyle: {
|
|
31934
|
+
margin: "0px"
|
|
31935
|
+
},
|
|
31936
|
+
labelStyle: {
|
|
31937
|
+
width: "50%"
|
|
31938
|
+
},
|
|
31939
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
31940
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
31941
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
31942
|
+
textStyle: {
|
|
31943
|
+
textAlign: "right"
|
|
31944
|
+
}
|
|
31945
|
+
})), 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.createElement(Row, {
|
|
31946
|
+
className: "border-none",
|
|
31947
|
+
rowContainerStyle: {
|
|
31948
|
+
margin: "0px"
|
|
31949
|
+
},
|
|
31950
|
+
labelStyle: {
|
|
31951
|
+
width: "50%"
|
|
31952
|
+
},
|
|
31953
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
31954
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
31955
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
31956
|
+
textStyle: {
|
|
31957
|
+
textAlign: "right"
|
|
31958
|
+
}
|
|
31959
|
+
})), 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.createElement(Row, {
|
|
31960
|
+
className: "border-none",
|
|
31961
|
+
rowContainerStyle: {
|
|
31962
|
+
margin: "0px"
|
|
31963
|
+
},
|
|
31964
|
+
labelStyle: {
|
|
31965
|
+
width: "50%"
|
|
31966
|
+
},
|
|
31967
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
31968
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
31969
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
31970
|
+
textStyle: {
|
|
31971
|
+
textAlign: "right"
|
|
31972
|
+
}
|
|
31973
|
+
})), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
31981
31974
|
style: {
|
|
31982
31975
|
margin: "10px 0px"
|
|
31983
31976
|
}
|
|
@@ -32024,7 +32017,7 @@ const checkForNA$1 = value => {
|
|
|
32024
32017
|
return value ? value : "CS_NA";
|
|
32025
32018
|
};
|
|
32026
32019
|
const WSApplicationDetails = () => {
|
|
32027
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection164, _data$WaterConnection165, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180;
|
|
32020
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection164, _data$WaterConnection165, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180;
|
|
32028
32021
|
const getDisconnectionNoticeSearch = function () {
|
|
32029
32022
|
try {
|
|
32030
32023
|
var _data$WaterConnection182, _data$WaterConnection183, _data$SewerageConnect176, _data$SewerageConnect177;
|
|
@@ -32296,8 +32289,8 @@ const WSApplicationDetails = () => {
|
|
|
32296
32289
|
}, /*#__PURE__*/React.createElement("div", {
|
|
32297
32290
|
className: "workflow-timeline-wrapper no-scrollbar",
|
|
32298
32291
|
style: {
|
|
32299
|
-
flex: "
|
|
32300
|
-
maxWidth: "
|
|
32292
|
+
flex: "0 0 300px",
|
|
32293
|
+
maxWidth: "350px",
|
|
32301
32294
|
minWidth: "240px"
|
|
32302
32295
|
}
|
|
32303
32296
|
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -32308,7 +32301,7 @@ const WSApplicationDetails = () => {
|
|
|
32308
32301
|
paymentbuttonenabled: false
|
|
32309
32302
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
32310
32303
|
style: {
|
|
32311
|
-
flex: "
|
|
32304
|
+
flex: "1 1 0%",
|
|
32312
32305
|
minWidth: 0
|
|
32313
32306
|
}
|
|
32314
32307
|
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -32469,7 +32462,7 @@ const WSApplicationDetails = () => {
|
|
|
32469
32462
|
isArray: false
|
|
32470
32463
|
}
|
|
32471
32464
|
}
|
|
32472
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
32465
|
+
}), !isMutation && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
32473
32466
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
32474
32467
|
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"),
|
|
32475
32468
|
textStyle: {
|
|
@@ -32513,7 +32506,7 @@ const WSApplicationDetails = () => {
|
|
|
32513
32506
|
isArray: false
|
|
32514
32507
|
}
|
|
32515
32508
|
}
|
|
32516
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
32509
|
+
})), /*#__PURE__*/React.createElement(Row, {
|
|
32517
32510
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
32518
32511
|
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"),
|
|
32519
32512
|
privacy: {
|
|
@@ -32669,7 +32662,7 @@ const WSApplicationDetails = () => {
|
|
|
32669
32662
|
text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))
|
|
32670
32663
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
32671
32664
|
label: t("COMMON_CURRENT_ZONE"),
|
|
32672
|
-
text: "" + t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))
|
|
32665
|
+
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)))
|
|
32673
32666
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
32674
32667
|
label: t("LANDMARK"),
|
|
32675
32668
|
text: "" + t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
|
|
@@ -32730,7 +32723,7 @@ const WSApplicationDetails = () => {
|
|
|
32730
32723
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
32731
32724
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
32732
32725
|
text: "" + t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))
|
|
32733
|
-
}))), /*#__PURE__*/React.createElement(CardHeader, {
|
|
32726
|
+
}))), !isMutation && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
|
|
32734
32727
|
styles: {
|
|
32735
32728
|
fontSize: "28px"
|
|
32736
32729
|
}
|
|
@@ -32751,7 +32744,7 @@ const WSApplicationDetails = () => {
|
|
|
32751
32744
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
32752
32745
|
label: t("WS_BANK_ACCOUNT_NO"),
|
|
32753
32746
|
text: "" + t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))
|
|
32754
|
-
})), /*#__PURE__*/React.createElement(CardHeader, {
|
|
32747
|
+
}))), /*#__PURE__*/React.createElement(CardHeader, {
|
|
32755
32748
|
styles: {
|
|
32756
32749
|
fontSize: "28px"
|
|
32757
32750
|
}
|
|
@@ -32793,7 +32786,9 @@ const WSApplicationDetails = () => {
|
|
|
32793
32786
|
to: {
|
|
32794
32787
|
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, "/", "+"),
|
|
32795
32788
|
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),
|
|
32796
|
-
state: {
|
|
32789
|
+
state: {
|
|
32790
|
+
fromApplicationDetails: true
|
|
32791
|
+
}
|
|
32797
32792
|
}
|
|
32798
32793
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
32799
32794
|
label: t("MAKE_PAYMENT")
|
|
@@ -33364,7 +33359,7 @@ const ConnectionDetails$5 = () => {
|
|
|
33364
33359
|
const applicationDownloadObject = {
|
|
33365
33360
|
order: 2,
|
|
33366
33361
|
label: t("WS_APPLICATION"),
|
|
33367
|
-
onClick: () => handleDownloadPdf
|
|
33362
|
+
onClick: () => handleDownloadPdf()
|
|
33368
33363
|
};
|
|
33369
33364
|
const receiptApplicationFeeDownloadObject = {
|
|
33370
33365
|
order: 3,
|
|
@@ -33485,27 +33480,27 @@ const ConnectionDetails$5 = () => {
|
|
|
33485
33480
|
}
|
|
33486
33481
|
sessionStorage.setItem("ApplicationNoState", (_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.applicationNo);
|
|
33487
33482
|
let serviceType = (_state4 = state) !== null && _state4 !== void 0 && (_state4$applicationTy = _state4.applicationType) !== null && _state4$applicationTy !== void 0 && _state4$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
|
|
33488
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
33489
|
-
|
|
33483
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
33484
|
+
t: t
|
|
33485
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
33486
|
+
className: "hide-seperator"
|
|
33487
|
+
}, /*#__PURE__*/React.createElement(Card, null, downloadOptions && downloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
33490
33488
|
style: {
|
|
33491
|
-
|
|
33492
|
-
|
|
33489
|
+
position: "absolute",
|
|
33490
|
+
right: "24px",
|
|
33491
|
+
zIndex: 11
|
|
33493
33492
|
}
|
|
33494
|
-
},
|
|
33493
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
33495
33494
|
ref: menuRef
|
|
33496
33495
|
}, /*#__PURE__*/React.createElement(MultiLink, {
|
|
33497
|
-
|
|
33496
|
+
label: t("CS_COMMON_DOWNLOAD"),
|
|
33497
|
+
className: "multilinkWrapper employee-mulitlink-main-divNew",
|
|
33498
33498
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
33499
33499
|
displayOptions: showOptions,
|
|
33500
33500
|
options: downloadOptions,
|
|
33501
|
-
|
|
33502
|
-
|
|
33503
|
-
|
|
33504
|
-
}))), checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
33505
|
-
t: t
|
|
33506
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
33507
|
-
className: "hide-seperator"
|
|
33508
|
-
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
33501
|
+
downloadBtnClassName: "employee-download-btn-className",
|
|
33502
|
+
optionsClassName: "employee-options-btn-className"
|
|
33503
|
+
}))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
33509
33504
|
className: "border-none",
|
|
33510
33505
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
33511
33506
|
text: (_state5 = state) === null || _state5 === void 0 ? void 0 : _state5.connectionNo
|
|
@@ -33902,47 +33897,27 @@ const ConnectionDetails$5 = () => {
|
|
|
33902
33897
|
marginBottom: "20px"
|
|
33903
33898
|
}
|
|
33904
33899
|
}) : null)));
|
|
33905
|
-
})), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement(
|
|
33900
|
+
})), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement("div", {
|
|
33906
33901
|
style: {
|
|
33907
|
-
position: "relative",
|
|
33908
|
-
boxShadow: "none",
|
|
33909
|
-
minWidth: "240px",
|
|
33910
|
-
maxWidth: "620px",
|
|
33911
|
-
padding: "0px",
|
|
33912
|
-
marginTop: "15px",
|
|
33913
33902
|
display: "flex",
|
|
33914
|
-
|
|
33915
|
-
|
|
33916
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
33917
|
-
style: {
|
|
33903
|
+
justifyContent: "flex-end",
|
|
33904
|
+
marginTop: "15px",
|
|
33918
33905
|
width: "100%"
|
|
33919
33906
|
}
|
|
33920
33907
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33921
|
-
style: {
|
|
33922
|
-
width: "100%"
|
|
33923
|
-
},
|
|
33924
33908
|
label: t("WS_DISCONNECTION_BUTTON"),
|
|
33925
33909
|
onSubmit: onActionSelect
|
|
33926
|
-
}))
|
|
33927
|
-
style: {
|
|
33928
|
-
position: "relative",
|
|
33929
|
-
boxShadow: "none",
|
|
33930
|
-
minWidth: "240px",
|
|
33931
|
-
maxWidth: "310px",
|
|
33932
|
-
padding: "0px",
|
|
33933
|
-
marginTop: "15px"
|
|
33934
|
-
}
|
|
33935
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
33910
|
+
})) : ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.status) == "Inactive" && ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.isDisconnectionTemporary) && /*#__PURE__*/React.createElement("div", {
|
|
33936
33911
|
style: {
|
|
33912
|
+
display: "flex",
|
|
33913
|
+
justifyContent: "flex-end",
|
|
33914
|
+
marginTop: "15px",
|
|
33937
33915
|
width: "100%"
|
|
33938
33916
|
}
|
|
33939
33917
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33940
|
-
style: {
|
|
33941
|
-
width: "100%"
|
|
33942
|
-
},
|
|
33943
33918
|
label: t("WS_RECONNECTION_BUTTON"),
|
|
33944
33919
|
onSubmit: onActionSelectRestoration
|
|
33945
|
-
}))
|
|
33920
|
+
})), showModal ? /*#__PURE__*/React.createElement(Modal, {
|
|
33946
33921
|
open: showModal,
|
|
33947
33922
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
33948
33923
|
label: t("WS_PENDING_DUES_LABEL")
|
|
@@ -34724,7 +34699,7 @@ const ReSubmitDisconnectionApplication = () => {
|
|
|
34724
34699
|
};
|
|
34725
34700
|
|
|
34726
34701
|
const CheckPage = _ref => {
|
|
34727
|
-
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;
|
|
34702
|
+
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;
|
|
34728
34703
|
let onSubmit = _ref.onSubmit,
|
|
34729
34704
|
value = _ref.value;
|
|
34730
34705
|
const _useTranslation = useTranslation(),
|
|
@@ -34971,7 +34946,7 @@ const CheckPage = _ref => {
|
|
|
34971
34946
|
text: "" + t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))
|
|
34972
34947
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34973
34948
|
label: t("COMMON_CURRENT_ZONE"),
|
|
34974
|
-
text: "" + t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))
|
|
34949
|
+
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)))
|
|
34975
34950
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34976
34951
|
label: t("LANDMARK"),
|
|
34977
34952
|
text: "" + t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
|
|
@@ -35788,13 +35763,19 @@ const CheckPage$1 = () => {
|
|
|
35788
35763
|
if (isEnableLoader) {
|
|
35789
35764
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
35790
35765
|
}
|
|
35791
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
35766
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
35767
|
+
className: "employee-form-section-wrapper"
|
|
35768
|
+
}, /*#__PURE__*/React.createElement(DisconnectTimeline, {
|
|
35769
|
+
currentStep: 3
|
|
35770
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
35771
|
+
style: {
|
|
35772
|
+
width: "100%"
|
|
35773
|
+
}
|
|
35774
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
|
35792
35775
|
styles: {
|
|
35793
35776
|
fontSize: "32px"
|
|
35794
35777
|
}
|
|
35795
|
-
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React.createElement(
|
|
35796
|
-
currentStep: 3
|
|
35797
|
-
}), /*#__PURE__*/React.createElement(Card, {
|
|
35778
|
+
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React.createElement(Card, {
|
|
35798
35779
|
style: {
|
|
35799
35780
|
paddingRight: "16px"
|
|
35800
35781
|
}
|
|
@@ -35889,7 +35870,7 @@ const CheckPage$1 = () => {
|
|
|
35889
35870
|
})), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
35890
35871
|
label: t("CS_COMMON_SUBMIT"),
|
|
35891
35872
|
onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
|
|
35892
|
-
})));
|
|
35873
|
+
})))));
|
|
35893
35874
|
};
|
|
35894
35875
|
|
|
35895
35876
|
const CheckPage$2 = () => {
|
|
@@ -36058,13 +36039,20 @@ const CheckPage$2 = () => {
|
|
|
36058
36039
|
if (isEnableLoader) {
|
|
36059
36040
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
36060
36041
|
}
|
|
36061
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
36042
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
36043
|
+
className: "employee-form-section-wrapper"
|
|
36044
|
+
}, /*#__PURE__*/React.createElement(DisconnectTimeline, {
|
|
36045
|
+
currentStep: 3,
|
|
36046
|
+
flow: "RESTORATION"
|
|
36047
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
36048
|
+
style: {
|
|
36049
|
+
width: "100%"
|
|
36050
|
+
}
|
|
36051
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
|
36062
36052
|
styles: {
|
|
36063
36053
|
fontSize: "32px"
|
|
36064
36054
|
}
|
|
36065
|
-
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React.createElement(
|
|
36066
|
-
currentStep: 3
|
|
36067
|
-
}), /*#__PURE__*/React.createElement(Card, {
|
|
36055
|
+
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React.createElement(Card, {
|
|
36068
36056
|
style: {
|
|
36069
36057
|
paddingRight: "16px"
|
|
36070
36058
|
}
|
|
@@ -36113,7 +36101,7 @@ const CheckPage$2 = () => {
|
|
|
36113
36101
|
error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
|
|
36114
36102
|
label: t(error === null || error === void 0 ? void 0 : error.message),
|
|
36115
36103
|
onClose: () => setError(null)
|
|
36116
|
-
}));
|
|
36104
|
+
}))));
|
|
36117
36105
|
};
|
|
36118
36106
|
|
|
36119
36107
|
const CheckPage$3 = () => {
|
|
@@ -36220,13 +36208,19 @@ const CheckPage$3 = () => {
|
|
|
36220
36208
|
if (isEnableLoader) {
|
|
36221
36209
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
36222
36210
|
}
|
|
36223
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
36211
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
36212
|
+
className: "employee-form-section-wrapper"
|
|
36213
|
+
}, /*#__PURE__*/React.createElement(DisconnectTimeline, {
|
|
36214
|
+
currentStep: 3
|
|
36215
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
36216
|
+
style: {
|
|
36217
|
+
width: "100%"
|
|
36218
|
+
}
|
|
36219
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
|
36224
36220
|
styles: {
|
|
36225
36221
|
fontSize: "32px"
|
|
36226
36222
|
}
|
|
36227
|
-
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React.createElement(
|
|
36228
|
-
currentStep: 3
|
|
36229
|
-
}), /*#__PURE__*/React.createElement(Card, {
|
|
36223
|
+
}, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React.createElement(Card, {
|
|
36230
36224
|
style: {
|
|
36231
36225
|
paddingRight: "16px"
|
|
36232
36226
|
}
|
|
@@ -36317,7 +36311,7 @@ const CheckPage$3 = () => {
|
|
|
36317
36311
|
})), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
36318
36312
|
label: t("CS_COMMON_SUBMIT"),
|
|
36319
36313
|
onSubmit: () => onSubmit(value === null || value === void 0 ? void 0 : value.WSDisconnectionForm)
|
|
36320
|
-
})));
|
|
36314
|
+
})))));
|
|
36321
36315
|
};
|
|
36322
36316
|
|
|
36323
36317
|
const config$2 = [{
|
|
@@ -38379,7 +38373,7 @@ const FileUploadField = _ref6 => {
|
|
|
38379
38373
|
})))));
|
|
38380
38374
|
};
|
|
38381
38375
|
const NewApplication = () => {
|
|
38382
|
-
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3;
|
|
38376
|
+
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
|
|
38383
38377
|
const _useTranslation2 = useTranslation(),
|
|
38384
38378
|
t = _useTranslation2.t;
|
|
38385
38379
|
const history = useHistory();
|
|
@@ -40412,9 +40406,6 @@ const NewApplication = () => {
|
|
|
40412
40406
|
})), /*#__PURE__*/React.createElement(Controller, {
|
|
40413
40407
|
control: control,
|
|
40414
40408
|
name: "declaration.signatureFile",
|
|
40415
|
-
rules: {
|
|
40416
|
-
validate: value => !!value || "Signature upload is required."
|
|
40417
|
-
},
|
|
40418
40409
|
render: props => /*#__PURE__*/React.createElement(FileUploadField, {
|
|
40419
40410
|
error: getFieldError("declaration.signatureFile"),
|
|
40420
40411
|
id: "signature-file",
|
|
@@ -40422,7 +40413,6 @@ const NewApplication = () => {
|
|
|
40422
40413
|
label: "Upload Signature",
|
|
40423
40414
|
onDelete: () => clearUploadedFile("declaration.signatureFile", props.onChange),
|
|
40424
40415
|
onUpload: event => uploadFile(event, "declaration.signatureFile", props.onChange),
|
|
40425
|
-
required: true,
|
|
40426
40416
|
value: props.value
|
|
40427
40417
|
})
|
|
40428
40418
|
})))), previewMode && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionCard, {
|
|
@@ -40734,7 +40724,7 @@ const NewApplication = () => {
|
|
|
40734
40724
|
onSubmit: onReset,
|
|
40735
40725
|
style: secondaryButtonStyle
|
|
40736
40726
|
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
40737
|
-
disabled: hasPendingUpload,
|
|
40727
|
+
disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati4 = formValues.declaration) !== null && _formValues$declarati4 !== void 0 && _formValues$declarati4.agree),
|
|
40738
40728
|
label: hasPendingUpload ? "Uploading..." : "Preview",
|
|
40739
40729
|
onSubmit: handleSubmit(onPreview)
|
|
40740
40730
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
@@ -40742,7 +40732,7 @@ const NewApplication = () => {
|
|
|
40742
40732
|
onSubmit: onEdit,
|
|
40743
40733
|
style: secondaryButtonStyle
|
|
40744
40734
|
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
40745
|
-
disabled: hasPendingUpload,
|
|
40735
|
+
disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati5 = formValues.declaration) !== null && _formValues$declarati5 !== void 0 && _formValues$declarati5.agree),
|
|
40746
40736
|
label: hasPendingUpload ? "Uploading..." : "Submit",
|
|
40747
40737
|
onSubmit: handleSubmit(onSubmit)
|
|
40748
40738
|
}))), showToast ? /*#__PURE__*/React.createElement(Toast, {
|
|
@@ -41184,8 +41174,70 @@ const configWSApproverApplication = _ref => {
|
|
|
41184
41174
|
uploadedFile = _ref.uploadedFile,
|
|
41185
41175
|
setUploadedFile = _ref.setUploadedFile,
|
|
41186
41176
|
businessService = _ref.businessService,
|
|
41187
|
-
error = _ref.error
|
|
41177
|
+
error = _ref.error,
|
|
41178
|
+
isReasonRequiredAction = _ref.isReasonRequiredAction,
|
|
41179
|
+
selectedReason = _ref.selectedReason,
|
|
41180
|
+
setSelectedReason = _ref.setSelectedReason,
|
|
41181
|
+
otherReasonText = _ref.otherReasonText,
|
|
41182
|
+
setOtherReasonText = _ref.setOtherReasonText;
|
|
41188
41183
|
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") ;
|
|
41184
|
+
const reasonOptions = [{
|
|
41185
|
+
code: "INCOMPLETE_DOCUMENTS",
|
|
41186
|
+
name: "Incomplete / Incorrect Documents",
|
|
41187
|
+
i18nKey: "WS_MUTATION_REASON_INCOMPLETE_DOCUMENTS"
|
|
41188
|
+
}, {
|
|
41189
|
+
code: "MISMATCH_DETAILS",
|
|
41190
|
+
name: "Mismatch in Owner / Consumer Details",
|
|
41191
|
+
i18nKey: "WS_MUTATION_REASON_MISMATCH_DETAILS"
|
|
41192
|
+
}, {
|
|
41193
|
+
code: "INVALID_PROOF",
|
|
41194
|
+
name: "Invalid / Unverified Proof Provided",
|
|
41195
|
+
i18nKey: "WS_MUTATION_REASON_INVALID_PROOF"
|
|
41196
|
+
}, {
|
|
41197
|
+
code: "OTHER",
|
|
41198
|
+
name: "Other",
|
|
41199
|
+
i18nKey: "WS_MUTATION_REASON_OTHER"
|
|
41200
|
+
}];
|
|
41201
|
+
const commentsField = isReasonRequiredAction ? [{
|
|
41202
|
+
label: t("WF_REASON_LABEL") || t("Reason"),
|
|
41203
|
+
isMandatory: true,
|
|
41204
|
+
populators: /*#__PURE__*/React.createElement(Dropdown, {
|
|
41205
|
+
option: reasonOptions,
|
|
41206
|
+
autoComplete: "off",
|
|
41207
|
+
optionKey: "name",
|
|
41208
|
+
id: "mutationActionReason",
|
|
41209
|
+
select: val => {
|
|
41210
|
+
setSelectedReason(val);
|
|
41211
|
+
if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER") {
|
|
41212
|
+
setOtherReasonText("");
|
|
41213
|
+
}
|
|
41214
|
+
},
|
|
41215
|
+
selected: selectedReason,
|
|
41216
|
+
t: t,
|
|
41217
|
+
placeholder: t("WF_SELECT_REASON_PLACEHOLDER") || "Select Reason"
|
|
41218
|
+
})
|
|
41219
|
+
}, ...((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER" ? [{
|
|
41220
|
+
label: t("WF_OTHER_REASON_LABEL") || t("Please specify reason"),
|
|
41221
|
+
isMandatory: true,
|
|
41222
|
+
populators: /*#__PURE__*/React.createElement("textarea", {
|
|
41223
|
+
className: "employee-card-input",
|
|
41224
|
+
style: {
|
|
41225
|
+
width: "100%",
|
|
41226
|
+
height: "80px",
|
|
41227
|
+
resize: "vertical",
|
|
41228
|
+
marginTop: "4px"
|
|
41229
|
+
},
|
|
41230
|
+
value: otherReasonText,
|
|
41231
|
+
onChange: e => setOtherReasonText(e.target.value),
|
|
41232
|
+
placeholder: t("WF_ENTER_OTHER_REASON_PLACEHOLDER") || "Enter reason details..."
|
|
41233
|
+
})
|
|
41234
|
+
}] : [])] : [{
|
|
41235
|
+
label: t("WF_COMMON_COMMENTS"),
|
|
41236
|
+
type: "textarea",
|
|
41237
|
+
populators: {
|
|
41238
|
+
name: "comments"
|
|
41239
|
+
}
|
|
41240
|
+
}];
|
|
41189
41241
|
return {
|
|
41190
41242
|
label: {
|
|
41191
41243
|
heading: "WF_" + (action === null || action === void 0 ? void 0 : action.action) + "_APPLICATION",
|
|
@@ -41193,13 +41245,7 @@ const configWSApproverApplication = _ref => {
|
|
|
41193
41245
|
cancel: "CS_COMMON_CANCEL"
|
|
41194
41246
|
},
|
|
41195
41247
|
form: [{
|
|
41196
|
-
body: [{
|
|
41197
|
-
label: t("WF_COMMON_COMMENTS"),
|
|
41198
|
-
type: "textarea",
|
|
41199
|
-
populators: {
|
|
41200
|
-
name: "comments"
|
|
41201
|
-
}
|
|
41202
|
-
}, {
|
|
41248
|
+
body: [...commentsField, {
|
|
41203
41249
|
label: t("WS_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
|
|
41204
41250
|
populators: /*#__PURE__*/React.createElement(UploadFile, {
|
|
41205
41251
|
id: "workflow-doc",
|
|
@@ -42704,7 +42750,7 @@ const convertDateToEpochNew$1 = function (dateString, dayStartOrEnd) {
|
|
|
42704
42750
|
}
|
|
42705
42751
|
};
|
|
42706
42752
|
const ActionModal$5 = _ref => {
|
|
42707
|
-
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
42753
|
+
var _action$assigneeRoles, _action$assigneeRoles2, _applicationData, _applicationData$appl, _applicationData2, _applicationData2$bus, _applicationData3, _applicationData3$app, _action$action, _action$action2;
|
|
42708
42754
|
let t = _ref.t,
|
|
42709
42755
|
action = _ref.action,
|
|
42710
42756
|
tenantId = _ref.tenantId,
|
|
@@ -42746,6 +42792,14 @@ const ActionModal$5 = _ref => {
|
|
|
42746
42792
|
const _useState7 = useState(null),
|
|
42747
42793
|
error = _useState7[0],
|
|
42748
42794
|
setError = _useState7[1];
|
|
42795
|
+
const _useState8 = useState(null),
|
|
42796
|
+
selectedReason = _useState8[0],
|
|
42797
|
+
setSelectedReason = _useState8[1];
|
|
42798
|
+
const _useState9 = useState(""),
|
|
42799
|
+
otherReasonText = _useState9[0],
|
|
42800
|
+
setOtherReasonText = _useState9[1];
|
|
42801
|
+
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"));
|
|
42802
|
+
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")));
|
|
42749
42803
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
42750
42804
|
const isEmployee = window.location.href.includes("/employee");
|
|
42751
42805
|
useEffect(() => {
|
|
@@ -42806,24 +42860,40 @@ const ActionModal$5 = _ref => {
|
|
|
42806
42860
|
})();
|
|
42807
42861
|
}, [file]);
|
|
42808
42862
|
function submit(data) {
|
|
42809
|
-
var
|
|
42810
|
-
|
|
42811
|
-
|
|
42812
|
-
|
|
42813
|
-
|
|
42863
|
+
var _applicationData4, _applicationData0, _applicationData1, _applicationData1$app, _applicationData10, _applicationData10$pr, _applicationData11, _applicationData11$pr, _applicationData13, _applicationData14;
|
|
42864
|
+
let commentValue = (data === null || data === void 0 ? void 0 : data.comments) || "";
|
|
42865
|
+
if (isReasonRequiredAction) {
|
|
42866
|
+
if (!selectedReason) {
|
|
42867
|
+
setError(t("PLEASE_SELECT_REASON") || "Please select a reason");
|
|
42868
|
+
return;
|
|
42869
|
+
}
|
|
42870
|
+
if ((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER") {
|
|
42871
|
+
if (!otherReasonText || otherReasonText.trim() === "") {
|
|
42872
|
+
setError(t("PLEASE_ENTER_REASON") || "Please enter the reason");
|
|
42873
|
+
return;
|
|
42874
|
+
}
|
|
42875
|
+
commentValue = otherReasonText.trim();
|
|
42876
|
+
} else {
|
|
42877
|
+
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);
|
|
42878
|
+
}
|
|
42879
|
+
}
|
|
42880
|
+
if ((_applicationData4 = applicationData) !== null && _applicationData4 !== void 0 && _applicationData4.isBillAmend) {
|
|
42881
|
+
var _applicationData5, _applicationData5$bil, _applicationData6, _applicationData7, _applicationData7$bil, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$app;
|
|
42882
|
+
const comments = commentValue || (data !== null && data !== void 0 && data.comments ? data.comments : null);
|
|
42883
|
+
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, {
|
|
42814
42884
|
comments
|
|
42815
42885
|
});
|
|
42816
|
-
const amendment = _extends({}, (
|
|
42886
|
+
const amendment = _extends({}, (_applicationData6 = applicationData) === null || _applicationData6 === void 0 ? void 0 : _applicationData6.billAmendmentDetails, {
|
|
42817
42887
|
workflow: {
|
|
42818
|
-
businessId: (
|
|
42888
|
+
businessId: (_applicationData7 = applicationData) === null || _applicationData7 === void 0 ? void 0 : (_applicationData7$bil = _applicationData7.billAmendmentDetails) === null || _applicationData7$bil === void 0 ? void 0 : _applicationData7$bil.amendmentId,
|
|
42819
42889
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
42820
42890
|
tenantId: tenantId,
|
|
42821
|
-
businessService: (
|
|
42822
|
-
moduleName: (
|
|
42891
|
+
businessService: (_applicationData8 = applicationData) !== null && _applicationData8 !== void 0 && (_applicationData8$app = _applicationData8.applicationType) !== null && _applicationData8$app !== void 0 && _applicationData8$app.includes("WATER") ? "WS.AMENDMENT" : "SW.AMENDMENT",
|
|
42892
|
+
moduleName: (_applicationData9 = applicationData) !== null && _applicationData9 !== void 0 && (_applicationData9$app = _applicationData9.applicationType) !== null && _applicationData9$app !== void 0 && _applicationData9$app.includes("WATER") ? "WS" : "SW",
|
|
42823
42893
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42824
42894
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
42825
42895
|
}],
|
|
42826
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42896
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42827
42897
|
documents: uploadedFile ? [{
|
|
42828
42898
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42829
42899
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42831,7 +42901,7 @@ const ActionModal$5 = _ref => {
|
|
|
42831
42901
|
}] : []
|
|
42832
42902
|
},
|
|
42833
42903
|
additionalDetails,
|
|
42834
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42904
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42835
42905
|
wfDocuments: uploadedFile ? [{
|
|
42836
42906
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42837
42907
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42842,7 +42912,7 @@ const ActionModal$5 = _ref => {
|
|
|
42842
42912
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42843
42913
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
42844
42914
|
}],
|
|
42845
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42915
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
42846
42916
|
documents: uploadedFile ? [{
|
|
42847
42917
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42848
42918
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42857,7 +42927,7 @@ const ActionModal$5 = _ref => {
|
|
|
42857
42927
|
}
|
|
42858
42928
|
applicationData = _extends({}, applicationData, {
|
|
42859
42929
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
42860
|
-
comment:
|
|
42930
|
+
comment: commentValue,
|
|
42861
42931
|
assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
42862
42932
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42863
42933
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
@@ -42867,12 +42937,12 @@ const ActionModal$5 = _ref => {
|
|
|
42867
42937
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
42868
42938
|
fileStoreId: uploadedFile
|
|
42869
42939
|
}] : null,
|
|
42870
|
-
processInstance: _extends({}, (
|
|
42940
|
+
processInstance: _extends({}, (_applicationData0 = applicationData) === null || _applicationData0 === void 0 ? void 0 : _applicationData0.processInstance, {
|
|
42871
42941
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
42872
42942
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
42873
42943
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
42874
42944
|
}],
|
|
42875
|
-
comment:
|
|
42945
|
+
comment: commentValue,
|
|
42876
42946
|
documents: uploadedFile ? [{
|
|
42877
42947
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
42878
42948
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -42880,36 +42950,36 @@ const ActionModal$5 = _ref => {
|
|
|
42880
42950
|
}] : []
|
|
42881
42951
|
})
|
|
42882
42952
|
});
|
|
42883
|
-
if (data !== null && data !== void 0 && data.date && (
|
|
42953
|
+
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")) {
|
|
42884
42954
|
const disconnectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
42885
42955
|
applicationData.disconnectionExecutionDate = convertDateToEpochNew$1(disconnectionExecutionDate);
|
|
42886
42956
|
} else if (data !== null && data !== void 0 && data.date) {
|
|
42887
42957
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
42888
42958
|
applicationData.connectionExecutionDate = convertDateToEpochNew$1(connectionExecutionDate);
|
|
42889
42959
|
}
|
|
42890
|
-
if (((
|
|
42891
|
-
var
|
|
42892
|
-
((
|
|
42960
|
+
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")) {
|
|
42961
|
+
var _applicationData12;
|
|
42962
|
+
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
42893
42963
|
WaterConnection: applicationData,
|
|
42894
42964
|
disconnectRequest: true
|
|
42895
42965
|
}) : submitAction({
|
|
42896
42966
|
SewerageConnection: applicationData,
|
|
42897
42967
|
disconnectRequest: true
|
|
42898
42968
|
});
|
|
42899
|
-
} else if (((
|
|
42969
|
+
} else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
42900
42970
|
submitAction({
|
|
42901
42971
|
SewerageConnection: applicationData,
|
|
42902
42972
|
disconnectRequest: false,
|
|
42903
42973
|
reconnectRequest: true
|
|
42904
42974
|
});
|
|
42905
|
-
} else if (((
|
|
42975
|
+
} else if (((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.applicationType) == "WATER_RECONNECTION") {
|
|
42906
42976
|
submitAction({
|
|
42907
42977
|
WaterConnection: applicationData,
|
|
42908
42978
|
disconnectRequest: false,
|
|
42909
42979
|
reconnectRequest: true
|
|
42910
42980
|
});
|
|
42911
42981
|
} else {
|
|
42912
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10,
|
|
42982
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData15;
|
|
42913
42983
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
42914
42984
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
42915
42985
|
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) || "";
|
|
@@ -42918,7 +42988,7 @@ const ActionModal$5 = _ref => {
|
|
|
42918
42988
|
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) || "";
|
|
42919
42989
|
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) || "";
|
|
42920
42990
|
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) || "";
|
|
42921
|
-
((
|
|
42991
|
+
((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : _applicationData15.serviceType) == "WATER" ? submitAction({
|
|
42922
42992
|
WaterConnection: applicationData,
|
|
42923
42993
|
disconnectRequest: false,
|
|
42924
42994
|
reconnectRequest: false
|
|
@@ -42930,8 +43000,8 @@ const ActionModal$5 = _ref => {
|
|
|
42930
43000
|
}
|
|
42931
43001
|
}
|
|
42932
43002
|
useEffect(() => {
|
|
42933
|
-
var
|
|
42934
|
-
if (((
|
|
43003
|
+
var _applicationData16, _applicationData16$pr, _applicationData17, _applicationData17$pr;
|
|
43004
|
+
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") {
|
|
42935
43005
|
if (action) {
|
|
42936
43006
|
setConfig(configWSDisConnectApplication({
|
|
42937
43007
|
t,
|
|
@@ -42958,11 +43028,16 @@ const ActionModal$5 = _ref => {
|
|
|
42958
43028
|
uploadedFile,
|
|
42959
43029
|
setUploadedFile,
|
|
42960
43030
|
businessService,
|
|
42961
|
-
error
|
|
43031
|
+
error,
|
|
43032
|
+
isReasonRequiredAction,
|
|
43033
|
+
selectedReason,
|
|
43034
|
+
setSelectedReason,
|
|
43035
|
+
otherReasonText,
|
|
43036
|
+
setOtherReasonText
|
|
42962
43037
|
}));
|
|
42963
43038
|
}
|
|
42964
43039
|
}
|
|
42965
|
-
}, [action, approvers, uploadedFile, error]);
|
|
43040
|
+
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText]);
|
|
42966
43041
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
42967
43042
|
headerBarMain: /*#__PURE__*/React.createElement(Heading$5, {
|
|
42968
43043
|
label: t(config.label.heading)
|
|
@@ -42979,7 +43054,13 @@ const ActionModal$5 = _ref => {
|
|
|
42979
43054
|
width: "100%",
|
|
42980
43055
|
height: "auto"
|
|
42981
43056
|
} : {}
|
|
42982
|
-
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(
|
|
43057
|
+
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(React.Fragment, null, error && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
43058
|
+
style: {
|
|
43059
|
+
marginBottom: "12px",
|
|
43060
|
+
marginLeft: "12px",
|
|
43061
|
+
marginRight: "12px"
|
|
43062
|
+
}
|
|
43063
|
+
}, error), /*#__PURE__*/React.createElement(FormComposer, {
|
|
42983
43064
|
config: config.form,
|
|
42984
43065
|
noBoxShadow: true,
|
|
42985
43066
|
inline: true,
|
|
@@ -42991,7 +43072,7 @@ const ActionModal$5 = _ref => {
|
|
|
42991
43072
|
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
42992
43073
|
cardClassName: cardClassName,
|
|
42993
43074
|
formClassName: formClassName
|
|
42994
|
-
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
43075
|
+
}))) : /*#__PURE__*/React.createElement(Loader, null);
|
|
42995
43076
|
};
|
|
42996
43077
|
|
|
42997
43078
|
const Heading$6 = props => {
|
|
@@ -52030,7 +52111,7 @@ const Step4_Preview = _ref => {
|
|
|
52030
52111
|
"LEGAL_HEIR": "Legal Heir",
|
|
52031
52112
|
"OTHER": "Other"
|
|
52032
52113
|
};
|
|
52033
|
-
return map[code] || code;
|
|
52114
|
+
return map[code] || code || "NA";
|
|
52034
52115
|
};
|
|
52035
52116
|
const getReasonName = code => {
|
|
52036
52117
|
if (code !== null && code !== void 0 && code.code) return code.i18nKey;
|
|
@@ -55256,6 +55337,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
55256
55337
|
};
|
|
55257
55338
|
|
|
55258
55339
|
const OLDApplication = () => {
|
|
55340
|
+
var _sessionFormData$decl;
|
|
55259
55341
|
const _useTranslation = useTranslation(),
|
|
55260
55342
|
t = _useTranslation.t;
|
|
55261
55343
|
const history = useHistory();
|
|
@@ -55467,7 +55549,7 @@ const OLDApplication = () => {
|
|
|
55467
55549
|
}).length > 0)) {
|
|
55468
55550
|
console.warn("[WS] onSubmit EXIT: formState errors blocking submit", formStateErros);
|
|
55469
55551
|
setShowToast({
|
|
55470
|
-
|
|
55552
|
+
key: "error",
|
|
55471
55553
|
message: "PLEASE_FILL_MANDATORY_DETAILS"
|
|
55472
55554
|
});
|
|
55473
55555
|
return;
|
|
@@ -55850,7 +55932,8 @@ const OLDApplication = () => {
|
|
|
55850
55932
|
defaultValues: sessionFormData,
|
|
55851
55933
|
noCard: true,
|
|
55852
55934
|
noBreakLine: true,
|
|
55853
|
-
cardFormWrapperClassName: "new-application-card"
|
|
55935
|
+
cardFormWrapperClassName: "new-application-card",
|
|
55936
|
+
isDisabled: !(sessionFormData !== null && sessionFormData !== void 0 && (_sessionFormData$decl = sessionFormData.declarationData) !== null && _sessionFormData$decl !== void 0 && _sessionFormData$decl.agree)
|
|
55854
55937
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
55855
55938
|
isDleteBtn: true,
|
|
55856
55939
|
duration: 5000,
|