@djb25/digit-ui-module-ws 1.0.46 → 1.0.48
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 +505 -224
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +506 -225
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7839,7 +7839,7 @@ const WSInfoLabel = _ref2 => {
|
|
|
7839
7839
|
};
|
|
7840
7840
|
|
|
7841
7841
|
const WSMyApplications = () => {
|
|
7842
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _data$WaterConnection2, _SWdata$SewerageConne2, _WSapplicationsList, _SWapplicationsList, _WSapplicationsList2, _SWapplicationsList2, _applicationsList;
|
|
7842
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _data$WaterConnection2, _SWdata$SewerageConne2, _WSapplicationsList, _SWapplicationsList, _WSapplicationsList2, _SWapplicationsList2, _applicationsList, _filteredApplications;
|
|
7843
7843
|
const _useTranslation = reactI18next.useTranslation(),
|
|
7844
7844
|
t = _useTranslation.t;
|
|
7845
7845
|
const user = Digit.UserService.getUser();
|
|
@@ -7901,6 +7901,9 @@ const WSMyApplications = () => {
|
|
|
7901
7901
|
const _useState2 = React.useState(10),
|
|
7902
7902
|
pageSize = _useState2[0],
|
|
7903
7903
|
setPageSize = _useState2[1];
|
|
7904
|
+
const _useState3 = React.useState(null),
|
|
7905
|
+
searchParams = _useState3[0],
|
|
7906
|
+
setSearchParams = _useState3[1];
|
|
7904
7907
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
7905
7908
|
const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
|
|
7906
7909
|
className: "cell-text"
|
|
@@ -7994,6 +7997,22 @@ const WSMyApplications = () => {
|
|
|
7994
7997
|
}
|
|
7995
7998
|
}];
|
|
7996
7999
|
}, [t]);
|
|
8000
|
+
const _useForm = reactHookForm.useForm({
|
|
8001
|
+
defaultValues: {
|
|
8002
|
+
applicationNo: "",
|
|
8003
|
+
fromDate: "",
|
|
8004
|
+
toDate: "",
|
|
8005
|
+
status: ""
|
|
8006
|
+
}
|
|
8007
|
+
}),
|
|
8008
|
+
register = _useForm.register,
|
|
8009
|
+
control = _useForm.control,
|
|
8010
|
+
handleSubmit = _useForm.handleSubmit,
|
|
8011
|
+
reset = _useForm.reset;
|
|
8012
|
+
const onSubmitForm = data => {
|
|
8013
|
+
setSearchParams(data);
|
|
8014
|
+
setPageOffset(0);
|
|
8015
|
+
};
|
|
7997
8016
|
if (isLoading || isSWLoading || PTisLoading) {
|
|
7998
8017
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
7999
8018
|
}
|
|
@@ -8028,16 +8047,175 @@ const WSMyApplications = () => {
|
|
|
8028
8047
|
var _b$auditDetails, _a$auditDetails;
|
|
8029
8048
|
return ((_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.lastModifiedTime) - ((_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.lastModifiedTime);
|
|
8030
8049
|
}) : [];
|
|
8050
|
+
let filteredApplications = sortedApplications;
|
|
8051
|
+
if (searchParams) {
|
|
8052
|
+
if (searchParams.applicationNo) {
|
|
8053
|
+
filteredApplications = filteredApplications.filter(app => {
|
|
8054
|
+
var _app$applicationNo;
|
|
8055
|
+
return (_app$applicationNo = app.applicationNo) === null || _app$applicationNo === void 0 ? void 0 : _app$applicationNo.toLowerCase().includes(searchParams.applicationNo.toLowerCase());
|
|
8056
|
+
});
|
|
8057
|
+
}
|
|
8058
|
+
if (searchParams.status && searchParams.status.code) {
|
|
8059
|
+
filteredApplications = filteredApplications.filter(app => app.applicationStatus === searchParams.status.code);
|
|
8060
|
+
}
|
|
8061
|
+
}
|
|
8062
|
+
const statusCounts = sortedApplications.reduce((acc, app) => {
|
|
8063
|
+
const status = app.applicationStatus || "UNKNOWN";
|
|
8064
|
+
acc[status] = (acc[status] || 0) + 1;
|
|
8065
|
+
return acc;
|
|
8066
|
+
}, {});
|
|
8067
|
+
const action = Object.keys(statusCounts).map(status => ({
|
|
8068
|
+
i18nKey: status === "UNKNOWN" ? "UNKNOWN" : "CS_" + status,
|
|
8069
|
+
code: status
|
|
8070
|
+
}));
|
|
8071
|
+
const today = new Date();
|
|
8072
|
+
const fromDateFormatted = "";
|
|
8073
|
+
const previousPage = () => setPageOffset(0);
|
|
8031
8074
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
8032
8075
|
t: t
|
|
8033
|
-
}), /*#__PURE__*/React__default.createElement("div",
|
|
8076
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
8077
|
+
className: "summary-cards-container",
|
|
8078
|
+
style: {
|
|
8079
|
+
display: "flex",
|
|
8080
|
+
gap: "10px",
|
|
8081
|
+
flexWrap: "wrap",
|
|
8082
|
+
width: "100%"
|
|
8083
|
+
}
|
|
8084
|
+
}, (() => {
|
|
8085
|
+
const statusCounts = sortedApplications.reduce((acc, app) => {
|
|
8086
|
+
const status = app.applicationStatus || "UNKNOWN";
|
|
8087
|
+
acc[status] = (acc[status] || 0) + 1;
|
|
8088
|
+
return acc;
|
|
8089
|
+
}, {});
|
|
8090
|
+
const waterCount = sortedApplications.filter(app => {
|
|
8091
|
+
var _app$applicationNo2;
|
|
8092
|
+
return app === null || app === void 0 ? void 0 : (_app$applicationNo2 = app.applicationNo) === null || _app$applicationNo2 === void 0 ? void 0 : _app$applicationNo2.includes("WS");
|
|
8093
|
+
}).length;
|
|
8094
|
+
const sewerageCount = sortedApplications.filter(app => {
|
|
8095
|
+
var _app$applicationNo3;
|
|
8096
|
+
return app === null || app === void 0 ? void 0 : (_app$applicationNo3 = app.applicationNo) === null || _app$applicationNo3 === void 0 ? void 0 : _app$applicationNo3.includes("SW");
|
|
8097
|
+
}).length;
|
|
8098
|
+
const cards = [{
|
|
8099
|
+
label: "TOTAL_APPLICATIONS",
|
|
8100
|
+
count: (sortedApplications === null || sortedApplications === void 0 ? void 0 : sortedApplications.length) || 0,
|
|
8101
|
+
color: "#0B2559"
|
|
8102
|
+
}, {
|
|
8103
|
+
label: "WATER",
|
|
8104
|
+
count: waterCount,
|
|
8105
|
+
color: "#3B82F6"
|
|
8106
|
+
}, {
|
|
8107
|
+
label: "SEWERAGE",
|
|
8108
|
+
count: sewerageCount,
|
|
8109
|
+
color: "#F59E0B"
|
|
8110
|
+
}, ...Object.entries(statusCounts).map((_ref1, idx) => {
|
|
8111
|
+
let status = _ref1[0],
|
|
8112
|
+
count = _ref1[1];
|
|
8113
|
+
const colors = ["#10B981", "#A855F7", "#EF4444", "#64748B", "#F97316", "#06B6D4"];
|
|
8114
|
+
return {
|
|
8115
|
+
label: status === "UNKNOWN" ? "UNKNOWN" : "CS_" + status,
|
|
8116
|
+
count: count,
|
|
8117
|
+
color: colors[idx % colors.length]
|
|
8118
|
+
};
|
|
8119
|
+
})];
|
|
8120
|
+
return cards.map((card, idx) => /*#__PURE__*/React__default.createElement("div", {
|
|
8121
|
+
key: idx,
|
|
8122
|
+
className: "summary-card",
|
|
8123
|
+
style: {
|
|
8124
|
+
backgroundColor: "#fff",
|
|
8125
|
+
borderRadius: "6px",
|
|
8126
|
+
padding: "12px 14px",
|
|
8127
|
+
boxShadow: "0 2px 8px rgba(0,0,0,0.05)",
|
|
8128
|
+
flex: "1 1 110px",
|
|
8129
|
+
maxWidth: "200px",
|
|
8130
|
+
minWidth: "100px",
|
|
8131
|
+
border: "1px solid #E2E8F0",
|
|
8132
|
+
display: "flex",
|
|
8133
|
+
flexDirection: "column",
|
|
8134
|
+
justifyContent: "space-between"
|
|
8135
|
+
}
|
|
8136
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
8137
|
+
style: {
|
|
8138
|
+
fontSize: "10px",
|
|
8139
|
+
color: "#64748B",
|
|
8140
|
+
fontWeight: "600",
|
|
8141
|
+
textTransform: "uppercase",
|
|
8142
|
+
letterSpacing: "0.5px",
|
|
8143
|
+
whiteSpace: "nowrap",
|
|
8144
|
+
overflow: "hidden",
|
|
8145
|
+
textOverflow: "ellipsis"
|
|
8146
|
+
},
|
|
8147
|
+
title: t(card.label)
|
|
8148
|
+
}, t(card.label)), /*#__PURE__*/React__default.createElement("div", {
|
|
8149
|
+
style: {
|
|
8150
|
+
fontSize: "24px",
|
|
8151
|
+
fontWeight: "700",
|
|
8152
|
+
color: card.color,
|
|
8153
|
+
marginTop: "8px"
|
|
8154
|
+
}
|
|
8155
|
+
}, String(card.count).padStart(2, "0"))));
|
|
8156
|
+
})()), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchForm, {
|
|
8157
|
+
t: t,
|
|
8158
|
+
onSubmit: onSubmitForm,
|
|
8159
|
+
handleSubmit: handleSubmit,
|
|
8160
|
+
className: "formcomposer-section-grid"
|
|
8161
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, null, /*#__PURE__*/React__default.createElement("label", null, t("WS_STATUS")), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
8162
|
+
control: control,
|
|
8163
|
+
name: "status",
|
|
8164
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
8165
|
+
selected: props.value,
|
|
8166
|
+
select: props.onChange,
|
|
8167
|
+
onBlur: props.onBlur,
|
|
8168
|
+
option: action,
|
|
8169
|
+
optionKey: "i18nKey",
|
|
8170
|
+
t: t,
|
|
8171
|
+
disable: false
|
|
8172
|
+
})
|
|
8173
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, null, /*#__PURE__*/React__default.createElement("label", null, t("WS_MYCONNECTIONS_APPLICATION_NO")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
8174
|
+
name: "applicationNo",
|
|
8175
|
+
inputRef: register({})
|
|
8176
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
8177
|
+
style: {
|
|
8178
|
+
gridColumn: "1 / -1",
|
|
8179
|
+
display: "flex",
|
|
8180
|
+
justifyContent: "flex-end",
|
|
8181
|
+
alignItems: "center",
|
|
8182
|
+
gap: "24px"
|
|
8183
|
+
}
|
|
8184
|
+
}, /*#__PURE__*/React__default.createElement("p", {
|
|
8185
|
+
style: {
|
|
8186
|
+
cursor: "pointer",
|
|
8187
|
+
color: "#0B4B66",
|
|
8188
|
+
fontWeight: "600",
|
|
8189
|
+
margin: 0
|
|
8190
|
+
},
|
|
8191
|
+
onClick: () => {
|
|
8192
|
+
reset({
|
|
8193
|
+
applicationNo: "",
|
|
8194
|
+
status: "",
|
|
8195
|
+
fromDate: fromDateFormatted,
|
|
8196
|
+
toDate: today,
|
|
8197
|
+
offset: 0,
|
|
8198
|
+
limit: 10,
|
|
8199
|
+
sortBy: "commencementDate",
|
|
8200
|
+
sortOrder: "DESC"
|
|
8201
|
+
});
|
|
8202
|
+
setSearchParams(null);
|
|
8203
|
+
previousPage();
|
|
8204
|
+
}
|
|
8205
|
+
}, t("ES_COMMON_CLEAR_ALL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
8206
|
+
label: t("ES_COMMON_SEARCH"),
|
|
8207
|
+
submit: true,
|
|
8208
|
+
style: {
|
|
8209
|
+
margin: 0
|
|
8210
|
+
}
|
|
8211
|
+
}))), /*#__PURE__*/React__default.createElement("div", null, ((_filteredApplications = filteredApplications) === null || _filteredApplications === void 0 ? void 0 : _filteredApplications.length) > 0 ? isMobile ? filteredApplications.map((application, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
8034
8212
|
key: index
|
|
8035
8213
|
}, /*#__PURE__*/React__default.createElement(WSApplication, {
|
|
8036
8214
|
application: application
|
|
8037
8215
|
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
|
|
8038
8216
|
t: t,
|
|
8039
|
-
data:
|
|
8040
|
-
totalRecords:
|
|
8217
|
+
data: filteredApplications.slice(pageOffset, pageOffset + pageSize),
|
|
8218
|
+
totalRecords: filteredApplications.length,
|
|
8041
8219
|
columns: columns,
|
|
8042
8220
|
onPageSizeChange: e => setPageSize(Number(e.target.value)),
|
|
8043
8221
|
currentPage: Math.floor(pageOffset / pageSize),
|
|
@@ -28867,29 +29045,7 @@ const ViewBreakup = _ref => {
|
|
|
28867
29045
|
textStyle: {
|
|
28868
29046
|
textAlign: "right"
|
|
28869
29047
|
}
|
|
28870
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
28871
|
-
style: {
|
|
28872
|
-
color: "#cccccc",
|
|
28873
|
-
backgroundColor: "#cccccc",
|
|
28874
|
-
marginBottom: "10px"
|
|
28875
|
-
}
|
|
28876
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28877
|
-
className: "border-none",
|
|
28878
|
-
rowContainerStyle: {
|
|
28879
|
-
margin: "0px"
|
|
28880
|
-
},
|
|
28881
|
-
labelStyle: {
|
|
28882
|
-
width: "50%"
|
|
28883
|
-
},
|
|
28884
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT1",
|
|
28885
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
28886
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.fee) || 0),
|
|
28887
|
-
textStyle: {
|
|
28888
|
-
textAlign: "right",
|
|
28889
|
-
fontWeight: "700",
|
|
28890
|
-
fontSize: "24px"
|
|
28891
|
-
}
|
|
28892
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
29048
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
28893
29049
|
style: {
|
|
28894
29050
|
margin: "10px 0px"
|
|
28895
29051
|
}
|
|
@@ -28907,29 +29063,7 @@ const ViewBreakup = _ref => {
|
|
|
28907
29063
|
textStyle: {
|
|
28908
29064
|
textAlign: "right"
|
|
28909
29065
|
}
|
|
28910
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
28911
|
-
style: {
|
|
28912
|
-
color: "#cccccc",
|
|
28913
|
-
backgroundColor: "#cccccc",
|
|
28914
|
-
marginBottom: "10px"
|
|
28915
|
-
}
|
|
28916
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28917
|
-
className: "border-none",
|
|
28918
|
-
rowContainerStyle: {
|
|
28919
|
-
margin: "0px"
|
|
28920
|
-
},
|
|
28921
|
-
labelStyle: {
|
|
28922
|
-
width: "50%"
|
|
28923
|
-
},
|
|
28924
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2",
|
|
28925
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
28926
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
|
|
28927
|
-
textStyle: {
|
|
28928
|
-
textAlign: "right",
|
|
28929
|
-
fontWeight: "700",
|
|
28930
|
-
fontSize: "24px"
|
|
28931
|
-
}
|
|
28932
|
-
}), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab5 = breakUpData.billSlabData) === null || _breakUpData$billSlab5 === void 0 ? void 0 : (_breakUpData$billSlab6 = _breakUpData$billSlab5.TAX) === null || _breakUpData$billSlab6 === void 0 ? void 0 : _breakUpData$billSlab6.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29066
|
+
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab5 = breakUpData.billSlabData) === null || _breakUpData$billSlab5 === void 0 ? void 0 : (_breakUpData$billSlab6 = _breakUpData$billSlab5.TAX) === null || _breakUpData$billSlab6 === void 0 ? void 0 : _breakUpData$billSlab6.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28933
29067
|
className: "border-none",
|
|
28934
29068
|
rowContainerStyle: {
|
|
28935
29069
|
margin: "0px"
|
|
@@ -28972,31 +29106,31 @@ const checkForNA$1 = value => {
|
|
|
28972
29106
|
return value ? value : "CS_NA";
|
|
28973
29107
|
};
|
|
28974
29108
|
const WSApplicationDetails = () => {
|
|
28975
|
-
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$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$
|
|
29109
|
+
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$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$SewerageConnect14, _data$SewerageConnect15, _appDetailsData$appli, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect41, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$SewerageConnect47, _data$SewerageConnect48, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect49, _data$SewerageConnect50, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _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$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect118, _data$SewerageConnect119, _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$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _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$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$WaterConnection137, _data$WaterConnection138, _data$SewerageConnect132, _data$SewerageConnect133, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect155, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection162, _data$WaterConnection163, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170;
|
|
28976
29110
|
const getDisconnectionNoticeSearch = function () {
|
|
28977
29111
|
try {
|
|
28978
|
-
var _data$
|
|
29112
|
+
var _data$WaterConnection172, _data$WaterConnection173, _data$SewerageConnect167, _data$SewerageConnect168;
|
|
28979
29113
|
let key = "ws-waterdisconnectionnotice";
|
|
28980
29114
|
let details = {};
|
|
28981
29115
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
28982
|
-
var _data$
|
|
29116
|
+
var _data$WaterConnection171, _PTData$Properties9;
|
|
28983
29117
|
details = {
|
|
28984
|
-
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
29118
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection171 = data.WaterConnection) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171[0], {
|
|
28985
29119
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : _PTData$Properties9[0]
|
|
28986
29120
|
})]
|
|
28987
29121
|
};
|
|
28988
29122
|
} else {
|
|
28989
|
-
var _data$
|
|
29123
|
+
var _data$SewerageConnect166, _PTData$Properties0;
|
|
28990
29124
|
key = "ws-seweragedisconnectionnotice";
|
|
28991
29125
|
details = {
|
|
28992
|
-
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
29126
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect166 = data.SewerageConnections) === null || _data$SewerageConnect166 === void 0 ? void 0 : _data$SewerageConnect166[0], {
|
|
28993
29127
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : _PTData$Properties0[0]
|
|
28994
29128
|
})]
|
|
28995
29129
|
};
|
|
28996
29130
|
}
|
|
28997
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
28998
|
-
var _data$
|
|
28999
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
29131
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection172 = data.WaterConnection) === null || _data$WaterConnection172 === void 0 ? void 0 : (_data$WaterConnection173 = _data$WaterConnection172[0]) === null || _data$WaterConnection173 === void 0 ? void 0 : _data$WaterConnection173.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect167 = data.SewerageConnections) === null || _data$SewerageConnect167 === void 0 ? void 0 : (_data$SewerageConnect168 = _data$SewerageConnect167[0]) === null || _data$SewerageConnect168 === void 0 ? void 0 : _data$SewerageConnect168.tenantId), details, key)).then(function (response) {
|
|
29132
|
+
var _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect169, _data$SewerageConnect170;
|
|
29133
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection174 = data.WaterConnection) === null || _data$WaterConnection174 === void 0 ? void 0 : (_data$WaterConnection175 = _data$WaterConnection174[0]) === null || _data$WaterConnection175 === void 0 ? void 0 : _data$WaterConnection175.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect169 = data.SewerageConnections) === null || _data$SewerageConnect169 === void 0 ? void 0 : (_data$SewerageConnect170 = _data$SewerageConnect169[0]) === null || _data$SewerageConnect170 === void 0 ? void 0 : _data$SewerageConnect170.tenantId), {
|
|
29000
29134
|
fileStoreIds: response.filestoreIds[0]
|
|
29001
29135
|
})).then(function (fileStore) {
|
|
29002
29136
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -29086,7 +29220,8 @@ const WSApplicationDetails = () => {
|
|
|
29086
29220
|
model: "WnSConnectionOwner"
|
|
29087
29221
|
}
|
|
29088
29222
|
}) || false;
|
|
29089
|
-
const
|
|
29223
|
+
const applicationStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection14 = data.WaterConnection) === null || _data$WaterConnection14 === void 0 ? void 0 : (_data$WaterConnection15 = _data$WaterConnection14[0]) === null || _data$WaterConnection15 === void 0 ? void 0 : _data$WaterConnection15.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect14 = data.SewerageConnections) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14[0]) === null || _data$SewerageConnect15 === void 0 ? void 0 : _data$SewerageConnect15.applicationStatus);
|
|
29224
|
+
const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_FOR_PAYMENT" ? true : false;
|
|
29090
29225
|
const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, applicationNobyData, applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SEWERAGE" : "WATER", user),
|
|
29091
29226
|
isAppDetailsLoading = _Digit$Hooks$ws$useWS.isLoading,
|
|
29092
29227
|
appDetailsData = _Digit$Hooks$ws$useWS.data;
|
|
@@ -29099,9 +29234,9 @@ const WSApplicationDetails = () => {
|
|
|
29099
29234
|
}
|
|
29100
29235
|
const handleDownloadPdf = function () {
|
|
29101
29236
|
try {
|
|
29102
|
-
var _data$
|
|
29103
|
-
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$
|
|
29104
|
-
let res = (data === null || data === void 0 ? void 0 : (_data$
|
|
29237
|
+
var _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$SewerageConnect18, _PTData$Properties2;
|
|
29238
|
+
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection16 = data.WaterConnection) === null || _data$WaterConnection16 === void 0 ? void 0 : (_data$WaterConnection17 = _data$WaterConnection16[0]) === null || _data$WaterConnection17 === void 0 ? void 0 : _data$WaterConnection17.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect16 = data.SewerageConnections) === null || _data$SewerageConnect16 === void 0 ? void 0 : (_data$SewerageConnect17 = _data$SewerageConnect16[0]) === null || _data$SewerageConnect17 === void 0 ? void 0 : _data$SewerageConnect17.tenantId);
|
|
29239
|
+
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection18 = data.WaterConnection) === null || _data$WaterConnection18 === void 0 ? void 0 : _data$WaterConnection18[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect18 = data.SewerageConnections) === null || _data$SewerageConnect18 === void 0 ? void 0 : _data$SewerageConnect18[0]);
|
|
29105
29240
|
const PDFdata = getWSAcknowledgementData(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : _PTData$Properties2[0]), tenantInfo, t);
|
|
29106
29241
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
29107
29242
|
setShowOptions(false);
|
|
@@ -29112,9 +29247,9 @@ const WSApplicationDetails = () => {
|
|
|
29112
29247
|
};
|
|
29113
29248
|
const handleDownloadDisconnectPdf = function () {
|
|
29114
29249
|
try {
|
|
29115
|
-
var _data$
|
|
29116
|
-
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$
|
|
29117
|
-
let res = (data === null || data === void 0 ? void 0 : (_data$
|
|
29250
|
+
var _data$WaterConnection19, _data$WaterConnection20, _data$SewerageConnect19, _data$SewerageConnect20, _data$WaterConnection21, _data$SewerageConnect21, _PTData$Properties3;
|
|
29251
|
+
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection19 = data.WaterConnection) === null || _data$WaterConnection19 === void 0 ? void 0 : (_data$WaterConnection20 = _data$WaterConnection19[0]) === null || _data$WaterConnection20 === void 0 ? void 0 : _data$WaterConnection20.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect19 = data.SewerageConnections) === null || _data$SewerageConnect19 === void 0 ? void 0 : (_data$SewerageConnect20 = _data$SewerageConnect19[0]) === null || _data$SewerageConnect20 === void 0 ? void 0 : _data$SewerageConnect20.tenantId);
|
|
29252
|
+
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection21 = data.WaterConnection) === null || _data$WaterConnection21 === void 0 ? void 0 : _data$WaterConnection21[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect21 = data.SewerageConnections) === null || _data$SewerageConnect21 === void 0 ? void 0 : _data$SewerageConnect21[0]);
|
|
29118
29253
|
const PDFdata = getWSDisconnectionApplicationForm(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties3 = PTData.Properties) === null || _PTData$Properties3 === void 0 ? void 0 : _PTData$Properties3[0]), tenantInfo, t);
|
|
29119
29254
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
29120
29255
|
setShowOptions(false);
|
|
@@ -29125,12 +29260,12 @@ const WSApplicationDetails = () => {
|
|
|
29125
29260
|
};
|
|
29126
29261
|
const printApplicationReceipts = function () {
|
|
29127
29262
|
try {
|
|
29128
|
-
var _data$
|
|
29263
|
+
var _data$WaterConnection22, _data$WaterConnection23, _data$WaterConnection24, _data$WaterConnection25, _data$SewerageConnect22, _data$SewerageConnect23;
|
|
29129
29264
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
29130
29265
|
const state = Digit.ULBService.getStateId();
|
|
29131
|
-
let key = data !== null && data !== void 0 && (_data$
|
|
29266
|
+
let key = data !== null && data !== void 0 && (_data$WaterConnection22 = data.WaterConnection) !== null && _data$WaterConnection22 !== void 0 && _data$WaterConnection22[0] ? "WS.ONE_TIME_FEE" : "SW.ONE_TIME_FEE";
|
|
29132
29267
|
return Promise.resolve(Digit.PaymentService.getReciept(tenantId, key, {
|
|
29133
|
-
consumerCodes: data !== null && data !== void 0 && (_data$
|
|
29268
|
+
consumerCodes: data !== null && data !== void 0 && (_data$WaterConnection23 = data.WaterConnection) !== null && _data$WaterConnection23 !== void 0 && _data$WaterConnection23[0] ? data === null || data === void 0 ? void 0 : (_data$WaterConnection24 = data.WaterConnection) === null || _data$WaterConnection24 === void 0 ? void 0 : (_data$WaterConnection25 = _data$WaterConnection24[0]) === null || _data$WaterConnection25 === void 0 ? void 0 : _data$WaterConnection25.applicationNo : data === null || data === void 0 ? void 0 : (_data$SewerageConnect22 = data.SewerageConnections) === null || _data$SewerageConnect22 === void 0 ? void 0 : (_data$SewerageConnect23 = _data$SewerageConnect22[0]) === null || _data$SewerageConnect23 === void 0 ? void 0 : _data$SewerageConnect23.applicationNo
|
|
29134
29269
|
})).then(function (payments) {
|
|
29135
29270
|
var _payments$Payments$;
|
|
29136
29271
|
function _temp2() {
|
|
@@ -29163,16 +29298,16 @@ const WSApplicationDetails = () => {
|
|
|
29163
29298
|
order: 1,
|
|
29164
29299
|
label: t("WS_ESTIMATION_NOTICE"),
|
|
29165
29300
|
onClick: () => {
|
|
29166
|
-
var _data$
|
|
29167
|
-
return data !== null && data !== void 0 && (_data$
|
|
29301
|
+
var _data$WaterConnection26, _data$WaterConnection27, _data$WaterConnection28, _data$WaterConnection29, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26;
|
|
29302
|
+
return data !== null && data !== void 0 && (_data$WaterConnection26 = data.WaterConnection) !== null && _data$WaterConnection26 !== void 0 && _data$WaterConnection26[0] ? getFiles([data === null || data === void 0 ? void 0 : (_data$WaterConnection27 = data.WaterConnection) === null || _data$WaterConnection27 === void 0 ? void 0 : (_data$WaterConnection28 = _data$WaterConnection27[0]) === null || _data$WaterConnection28 === void 0 ? void 0 : (_data$WaterConnection29 = _data$WaterConnection28.additionalDetails) === null || _data$WaterConnection29 === void 0 ? void 0 : _data$WaterConnection29.estimationFileStoreId], tenantId) : getFiles([data === null || data === void 0 ? void 0 : (_data$SewerageConnect24 = data.SewerageConnections) === null || _data$SewerageConnect24 === void 0 ? void 0 : (_data$SewerageConnect25 = _data$SewerageConnect24[0]) === null || _data$SewerageConnect25 === void 0 ? void 0 : (_data$SewerageConnect26 = _data$SewerageConnect25.additionalDetails) === null || _data$SewerageConnect26 === void 0 ? void 0 : _data$SewerageConnect26.estimationFileStoreId], tenantId);
|
|
29168
29303
|
}
|
|
29169
29304
|
};
|
|
29170
29305
|
const sanctionDownloadObject = {
|
|
29171
29306
|
order: 2,
|
|
29172
29307
|
label: t("WS_SANCTION_LETTER"),
|
|
29173
29308
|
onClick: () => {
|
|
29174
|
-
var _data$
|
|
29175
|
-
return data !== null && data !== void 0 && (_data$
|
|
29309
|
+
var _data$WaterConnection30, _data$WaterConnection31, _data$WaterConnection32, _data$WaterConnection33, _data$SewerageConnect27, _data$SewerageConnect28, _data$SewerageConnect29;
|
|
29310
|
+
return data !== null && data !== void 0 && (_data$WaterConnection30 = data.WaterConnection) !== null && _data$WaterConnection30 !== void 0 && _data$WaterConnection30[0] ? getFiles([data === null || data === void 0 ? void 0 : (_data$WaterConnection31 = data.WaterConnection) === null || _data$WaterConnection31 === void 0 ? void 0 : (_data$WaterConnection32 = _data$WaterConnection31[0]) === null || _data$WaterConnection32 === void 0 ? void 0 : (_data$WaterConnection33 = _data$WaterConnection32.additionalDetails) === null || _data$WaterConnection33 === void 0 ? void 0 : _data$WaterConnection33.sanctionFileStoreId], tenantId) : getFiles([data === null || data === void 0 ? void 0 : (_data$SewerageConnect27 = data.SewerageConnections) === null || _data$SewerageConnect27 === void 0 ? void 0 : (_data$SewerageConnect28 = _data$SewerageConnect27[0]) === null || _data$SewerageConnect28 === void 0 ? void 0 : (_data$SewerageConnect29 = _data$SewerageConnect28.additionalDetails) === null || _data$SewerageConnect29 === void 0 ? void 0 : _data$SewerageConnect29.sanctionFileStoreId], tenantId);
|
|
29176
29311
|
}
|
|
29177
29312
|
};
|
|
29178
29313
|
const applicationDownloadObject = {
|
|
@@ -29194,11 +29329,11 @@ const WSApplicationDetails = () => {
|
|
|
29194
29329
|
label: t("WS_DISCONNECTION_NOTICE_LABEL"),
|
|
29195
29330
|
onClick: () => getDisconnectionNoticeSearch()
|
|
29196
29331
|
}];
|
|
29197
|
-
const isDisconnection = (data === null || data === void 0 ? void 0 : (_data$
|
|
29198
|
-
const appStatus = (data === null || data === void 0 ? void 0 : (_data$
|
|
29332
|
+
const isDisconnection = (data === null || data === void 0 ? void 0 : (_data$WaterConnection34 = data.WaterConnection) === null || _data$WaterConnection34 === void 0 ? void 0 : (_data$WaterConnection35 = _data$WaterConnection34[0].applicationType) === null || _data$WaterConnection35 === void 0 ? void 0 : _data$WaterConnection35.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect30 = data.SewerageConnections) === null || _data$SewerageConnect30 === void 0 ? void 0 : (_data$SewerageConnect31 = _data$SewerageConnect30[0].applicationType) === null || _data$SewerageConnect31 === void 0 ? void 0 : _data$SewerageConnect31.includes("DISCONNECT"));
|
|
29333
|
+
const appStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection36 = data.WaterConnection) === null || _data$WaterConnection36 === void 0 ? void 0 : (_data$WaterConnection37 = _data$WaterConnection36[0]) === null || _data$WaterConnection37 === void 0 ? void 0 : _data$WaterConnection37.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect32 = data.SewerageConnections) === null || _data$SewerageConnect32 === void 0 ? void 0 : (_data$SewerageConnect33 = _data$SewerageConnect32[0]) === null || _data$SewerageConnect33 === void 0 ? void 0 : _data$SewerageConnect33.applicationStatus);
|
|
29199
29334
|
switch (appStatus) {
|
|
29200
29335
|
case "PENDING_FOR_DOCUMENT_VERIFICATION":
|
|
29201
|
-
if (data !== null && data !== void 0 && (_data$
|
|
29336
|
+
if (data !== null && data !== void 0 && (_data$WaterConnection38 = data.WaterConnection) !== null && _data$WaterConnection38 !== void 0 && (_data$WaterConnection39 = _data$WaterConnection38[0].applicationType) !== null && _data$WaterConnection39 !== void 0 && _data$WaterConnection39.includes("DISCONNECT") || data !== null && data !== void 0 && (_data$SewerageConnect34 = data.SewerageConnections) !== null && _data$SewerageConnect34 !== void 0 && (_data$SewerageConnect35 = _data$SewerageConnect34[0].applicationType) !== null && _data$SewerageConnect35 !== void 0 && _data$SewerageConnect35.includes("DISCONNECT")) {
|
|
29202
29337
|
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
29203
29338
|
} else {
|
|
29204
29339
|
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
@@ -29222,7 +29357,7 @@ const WSApplicationDetails = () => {
|
|
|
29222
29357
|
case "PENDING_FOR_DISCONNECTION_EXECUTION":
|
|
29223
29358
|
case "DISCONNECTION_EXECUTED":
|
|
29224
29359
|
case "PENDING_FOR_PAYMENT":
|
|
29225
|
-
if (data !== null && data !== void 0 && (_data$
|
|
29360
|
+
if (data !== null && data !== void 0 && (_data$WaterConnection40 = data.WaterConnection) !== null && _data$WaterConnection40 !== void 0 && (_data$WaterConnection41 = _data$WaterConnection40[0].applicationType) !== null && _data$WaterConnection41 !== void 0 && _data$WaterConnection41.includes("DISCONNECT") || data !== null && data !== void 0 && (_data$SewerageConnect36 = data.SewerageConnections) !== null && _data$SewerageConnect36 !== void 0 && (_data$SewerageConnect37 = _data$SewerageConnect36[0].applicationType) !== null && _data$SewerageConnect37 !== void 0 && _data$SewerageConnect37.includes("DISCONNECT")) {
|
|
29226
29361
|
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
29227
29362
|
} else {
|
|
29228
29363
|
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
@@ -29235,7 +29370,7 @@ const WSApplicationDetails = () => {
|
|
|
29235
29370
|
downloadOptions.sort(function (a, b) {
|
|
29236
29371
|
return a.order - b.order;
|
|
29237
29372
|
});
|
|
29238
|
-
let serviceType = data && data !== null && data !== void 0 && (_data$
|
|
29373
|
+
let serviceType = data && data !== null && data !== void 0 && (_data$WaterConnection42 = data.WaterConnection) !== null && _data$WaterConnection42 !== void 0 && _data$WaterConnection42[0] ? "WATER" : "SEWERAGE";
|
|
29239
29374
|
sessionStorage.setItem("ApplicationNoState", applicationNobyData);
|
|
29240
29375
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29241
29376
|
className: "employee-main-application-details",
|
|
@@ -29252,8 +29387,8 @@ const WSApplicationDetails = () => {
|
|
|
29252
29387
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29253
29388
|
id: "timeline"
|
|
29254
29389
|
}, /*#__PURE__*/React__default.createElement(WSWFApplicationTimeline, {
|
|
29255
|
-
application: (data === null || data === void 0 ? void 0 : (_data$
|
|
29256
|
-
id: (data === null || data === void 0 ? void 0 : (_data$
|
|
29390
|
+
application: (data === null || data === void 0 ? void 0 : (_data$WaterConnection43 = data.WaterConnection) === null || _data$WaterConnection43 === void 0 ? void 0 : _data$WaterConnection43[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect38 = data.SewerageConnections) === null || _data$SewerageConnect38 === void 0 ? void 0 : _data$SewerageConnect38[0]),
|
|
29391
|
+
id: (data === null || data === void 0 ? void 0 : (_data$WaterConnection44 = data.WaterConnection) === null || _data$WaterConnection44 === void 0 ? void 0 : (_data$WaterConnection45 = _data$WaterConnection44[0]) === null || _data$WaterConnection45 === void 0 ? void 0 : _data$WaterConnection45.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect39 = data.SewerageConnections) === null || _data$SewerageConnect39 === void 0 ? void 0 : (_data$SewerageConnect40 = _data$SewerageConnect39[0]) === null || _data$SewerageConnect40 === void 0 ? void 0 : _data$SewerageConnect40.applicationNo),
|
|
29257
29392
|
paymentbuttonenabled: false
|
|
29258
29393
|
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
29259
29394
|
style: {
|
|
@@ -29286,35 +29421,35 @@ const WSApplicationDetails = () => {
|
|
|
29286
29421
|
className: "hide-seperator"
|
|
29287
29422
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29288
29423
|
label: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
29289
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29424
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection46 = data.WaterConnection) === null || _data$WaterConnection46 === void 0 ? void 0 : (_data$WaterConnection47 = _data$WaterConnection46[0]) === null || _data$WaterConnection47 === void 0 ? void 0 : _data$WaterConnection47.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect41 = data.SewerageConnections) === null || _data$SewerageConnect41 === void 0 ? void 0 : (_data$SewerageConnect42 = _data$SewerageConnect41[0]) === null || _data$SewerageConnect42 === void 0 ? void 0 : _data$SewerageConnect42.applicationNo),
|
|
29290
29425
|
textStyle: {}
|
|
29291
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
29426
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection48 = data.WaterConnection) === null || _data$WaterConnection48 === void 0 ? void 0 : (_data$WaterConnection49 = _data$WaterConnection48[0].applicationType) === null || _data$WaterConnection49 === void 0 ? void 0 : _data$WaterConnection49.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect43 = data.SewerageConnections) === null || _data$SewerageConnect43 === void 0 ? void 0 : (_data$SewerageConnect44 = _data$SewerageConnect43[0].applicationType) === null || _data$SewerageConnect44 === void 0 ? void 0 : _data$SewerageConnect44.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29292
29427
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
29293
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29428
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection50 = data.WaterConnection) === null || _data$WaterConnection50 === void 0 ? void 0 : (_data$WaterConnection51 = _data$WaterConnection50[0]) === null || _data$WaterConnection51 === void 0 ? void 0 : _data$WaterConnection51.connectionNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect45 = data.SewerageConnections) === null || _data$SewerageConnect45 === void 0 ? void 0 : (_data$SewerageConnect46 = _data$SewerageConnect45[0]) === null || _data$SewerageConnect46 === void 0 ? void 0 : _data$SewerageConnect46.connectionNo),
|
|
29294
29429
|
textStyle: {
|
|
29295
29430
|
wordBreak: "break-word"
|
|
29296
29431
|
}
|
|
29297
29432
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29298
29433
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
29299
|
-
text: t("WS_APPLICATION_TYPE_" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
29434
|
+
text: t("WS_APPLICATION_TYPE_" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection52 = data.WaterConnection) === null || _data$WaterConnection52 === void 0 ? void 0 : (_data$WaterConnection53 = _data$WaterConnection52[0]) === null || _data$WaterConnection53 === void 0 ? void 0 : _data$WaterConnection53.applicationType) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect47 = data.SewerageConnections) === null || _data$SewerageConnect47 === void 0 ? void 0 : (_data$SewerageConnect48 = _data$SewerageConnect47[0]) === null || _data$SewerageConnect48 === void 0 ? void 0 : _data$SewerageConnect48.applicationType))),
|
|
29300
29435
|
textStyle: {
|
|
29301
29436
|
wordBreak: "break-word"
|
|
29302
29437
|
}
|
|
29303
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
29438
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection54 = data.WaterConnection) === null || _data$WaterConnection54 === void 0 ? void 0 : (_data$WaterConnection55 = _data$WaterConnection54[0].applicationType) === null || _data$WaterConnection55 === void 0 ? void 0 : _data$WaterConnection55.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect49 = data.SewerageConnections) === null || _data$SewerageConnect49 === void 0 ? void 0 : (_data$SewerageConnect50 = _data$SewerageConnect49[0].applicationType) === null || _data$SewerageConnect50 === void 0 ? void 0 : _data$SewerageConnect50.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29304
29439
|
label: t("WS_DISCONNECTION_PROPOSED_DATE"),
|
|
29305
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
29440
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection56 = data.WaterConnection) === null || _data$WaterConnection56 === void 0 ? void 0 : (_data$WaterConnection57 = _data$WaterConnection56[0]) === null || _data$WaterConnection57 === void 0 ? void 0 : _data$WaterConnection57.dateEffectiveFrom) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect51 = data.SewerageConnections) === null || _data$SewerageConnect51 === void 0 ? void 0 : (_data$SewerageConnect52 = _data$SewerageConnect51[0]) === null || _data$SewerageConnect52 === void 0 ? void 0 : _data$SewerageConnect52.dateEffectiveFrom),
|
|
29306
29441
|
textStyle: {
|
|
29307
29442
|
wordBreak: "break-word"
|
|
29308
29443
|
}
|
|
29309
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
29444
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection58 = data.WaterConnection) === null || _data$WaterConnection58 === void 0 ? void 0 : (_data$WaterConnection59 = _data$WaterConnection58[0].applicationType) === null || _data$WaterConnection59 === void 0 ? void 0 : _data$WaterConnection59.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect53 = data.SewerageConnections) === null || _data$SewerageConnect53 === void 0 ? void 0 : (_data$SewerageConnect54 = _data$SewerageConnect53[0].applicationType) === null || _data$SewerageConnect54 === void 0 ? void 0 : _data$SewerageConnect54.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29310
29445
|
label: t("WS_DISCONNECTION_EXECUTED_DATE"),
|
|
29311
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
29446
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection60 = data.WaterConnection) === null || _data$WaterConnection60 === void 0 ? void 0 : (_data$WaterConnection61 = _data$WaterConnection60[0]) === null || _data$WaterConnection61 === void 0 ? void 0 : _data$WaterConnection61.disconnectionExecutionDate) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect55 = data.SewerageConnections) === null || _data$SewerageConnect55 === void 0 ? void 0 : (_data$SewerageConnect56 = _data$SewerageConnect55[0]) === null || _data$SewerageConnect56 === void 0 ? void 0 : _data$SewerageConnect56.disconnectionExecutionDate),
|
|
29312
29447
|
textStyle: {
|
|
29313
29448
|
wordBreak: "break-word"
|
|
29314
29449
|
}
|
|
29315
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
29450
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection62 = data.WaterConnection) === null || _data$WaterConnection62 === void 0 ? void 0 : (_data$WaterConnection63 = _data$WaterConnection62[0].applicationType) === null || _data$WaterConnection63 === void 0 ? void 0 : _data$WaterConnection63.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect57 = data.SewerageConnections) === null || _data$SewerageConnect57 === void 0 ? void 0 : (_data$SewerageConnect58 = _data$SewerageConnect57[0].applicationType) === null || _data$SewerageConnect58 === void 0 ? void 0 : _data$SewerageConnect58.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29316
29451
|
label: t("WS_DISCONNECTION_REASON"),
|
|
29317
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29452
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection64 = data.WaterConnection) === null || _data$WaterConnection64 === void 0 ? void 0 : (_data$WaterConnection65 = _data$WaterConnection64[0]) === null || _data$WaterConnection65 === void 0 ? void 0 : _data$WaterConnection65.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$WaterConnection66 = data.WaterConnection) === null || _data$WaterConnection66 === void 0 ? void 0 : (_data$WaterConnection67 = _data$WaterConnection66[0]) === null || _data$WaterConnection67 === void 0 ? void 0 : _data$WaterConnection67.disconnectionReason : (data === null || data === void 0 ? void 0 : (_data$SewerageConnect59 = data.SewerageConnections) === null || _data$SewerageConnect59 === void 0 ? void 0 : (_data$SewerageConnect60 = _data$SewerageConnect59[0]) === null || _data$SewerageConnect60 === void 0 ? void 0 : _data$SewerageConnect60.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$SewerageConnect61 = data.SewerageConnections) === null || _data$SewerageConnect61 === void 0 ? void 0 : (_data$SewerageConnect62 = _data$SewerageConnect61[0]) === null || _data$SewerageConnect62 === void 0 ? void 0 : _data$SewerageConnect62.disconnectionReason : t("NA"),
|
|
29318
29453
|
textStyle: {
|
|
29319
29454
|
wordBreak: "break-word"
|
|
29320
29455
|
}
|
|
@@ -29363,18 +29498,18 @@ const WSApplicationDetails = () => {
|
|
|
29363
29498
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29364
29499
|
label: t("WS_NATURE_OF_WORK"),
|
|
29365
29500
|
text: "" + t(checkForNA$1(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.natureOfWork))
|
|
29366
|
-
}))), (data === null || data === void 0 ? void 0 : (_data$
|
|
29501
|
+
}))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection68 = data.WaterConnection) === null || _data$WaterConnection68 === void 0 ? void 0 : (_data$WaterConnection69 = _data$WaterConnection68[0]) === null || _data$WaterConnection69 === void 0 ? void 0 : (_data$WaterConnection70 = _data$WaterConnection69.connectionHolders) === null || _data$WaterConnection70 === void 0 ? void 0 : _data$WaterConnection70.length) > 0 || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect63 = data.SewerageConnections) === null || _data$SewerageConnect63 === void 0 ? void 0 : (_data$SewerageConnect64 = _data$SewerageConnect63[0]) === null || _data$SewerageConnect64 === void 0 ? void 0 : (_data$SewerageConnect65 = _data$SewerageConnect64.connectionHolders) === null || _data$SewerageConnect65 === void 0 ? void 0 : _data$SewerageConnect65.length) > 0 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
29367
29502
|
styles: {
|
|
29368
29503
|
fontSize: "28px"
|
|
29369
29504
|
}
|
|
29370
29505
|
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29371
29506
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
29372
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29507
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection71 = data.WaterConnection) === null || _data$WaterConnection71 === void 0 ? void 0 : (_data$WaterConnection72 = _data$WaterConnection71[0]) === null || _data$WaterConnection72 === void 0 ? void 0 : (_data$WaterConnection73 = _data$WaterConnection72.connectionHolders) === null || _data$WaterConnection73 === void 0 ? void 0 : (_data$WaterConnection74 = _data$WaterConnection73[0]) === null || _data$WaterConnection74 === void 0 ? void 0 : _data$WaterConnection74.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect66 = data.SewerageConnections) === null || _data$SewerageConnect66 === void 0 ? void 0 : (_data$SewerageConnect67 = _data$SewerageConnect66[0]) === null || _data$SewerageConnect67 === void 0 ? void 0 : (_data$SewerageConnect68 = _data$SewerageConnect67.connectionHolders) === null || _data$SewerageConnect68 === void 0 ? void 0 : (_data$SewerageConnect69 = _data$SewerageConnect68[0]) === null || _data$SewerageConnect69 === void 0 ? void 0 : _data$SewerageConnect69.mobileNumber),
|
|
29373
29508
|
textStyle: {
|
|
29374
29509
|
whiteSpace: "pre"
|
|
29375
29510
|
},
|
|
29376
29511
|
privacy: {
|
|
29377
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
29512
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection75 = data.WaterConnection) === null || _data$WaterConnection75 === void 0 ? void 0 : (_data$WaterConnection76 = _data$WaterConnection75[0]) === null || _data$WaterConnection76 === void 0 ? void 0 : (_data$WaterConnection77 = _data$WaterConnection76.connectionHolders) === null || _data$WaterConnection77 === void 0 ? void 0 : (_data$WaterConnection78 = _data$WaterConnection77[0]) === null || _data$WaterConnection78 === void 0 ? void 0 : _data$WaterConnection78.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect70 = data.SewerageConnections) === null || _data$SewerageConnect70 === void 0 ? void 0 : (_data$SewerageConnect71 = _data$SewerageConnect70[0]) === null || _data$SewerageConnect71 === void 0 ? void 0 : (_data$SewerageConnect72 = _data$SewerageConnect71.connectionHolders) === null || _data$SewerageConnect72 === void 0 ? void 0 : (_data$SewerageConnect73 = _data$SewerageConnect72[0]) === null || _data$SewerageConnect73 === void 0 ? void 0 : _data$SewerageConnect73.uuid,
|
|
29378
29513
|
fieldName: "connectionHoldersMobileNumber",
|
|
29379
29514
|
model: "WnSConnectionOwner",
|
|
29380
29515
|
showValue: false,
|
|
@@ -29391,18 +29526,18 @@ const WSApplicationDetails = () => {
|
|
|
29391
29526
|
}
|
|
29392
29527
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29393
29528
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
29394
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29529
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection79 = data.WaterConnection) === null || _data$WaterConnection79 === void 0 ? void 0 : (_data$WaterConnection80 = _data$WaterConnection79[0]) === null || _data$WaterConnection80 === void 0 ? void 0 : (_data$WaterConnection81 = _data$WaterConnection80.connectionHolders) === null || _data$WaterConnection81 === void 0 ? void 0 : (_data$WaterConnection82 = _data$WaterConnection81[0]) === null || _data$WaterConnection82 === void 0 ? void 0 : _data$WaterConnection82.name) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect74 = data.SewerageConnections) === null || _data$SewerageConnect74 === void 0 ? void 0 : (_data$SewerageConnect75 = _data$SewerageConnect74[0]) === null || _data$SewerageConnect75 === void 0 ? void 0 : (_data$SewerageConnect76 = _data$SewerageConnect75.connectionHolders) === null || _data$SewerageConnect76 === void 0 ? void 0 : (_data$SewerageConnect77 = _data$SewerageConnect76[0]) === null || _data$SewerageConnect77 === void 0 ? void 0 : _data$SewerageConnect77.name),
|
|
29395
29530
|
textStyle: {
|
|
29396
29531
|
whiteSpace: "pre"
|
|
29397
29532
|
}
|
|
29398
29533
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29399
29534
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
29400
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
29535
|
+
text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection83 = data.WaterConnection) === null || _data$WaterConnection83 === void 0 ? void 0 : (_data$WaterConnection84 = _data$WaterConnection83[0]) === null || _data$WaterConnection84 === void 0 ? void 0 : (_data$WaterConnection85 = _data$WaterConnection84.connectionHolders) === null || _data$WaterConnection85 === void 0 ? void 0 : (_data$WaterConnection86 = _data$WaterConnection85[0]) === null || _data$WaterConnection86 === void 0 ? void 0 : _data$WaterConnection86.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect78 = data.SewerageConnections) === null || _data$SewerageConnect78 === void 0 ? void 0 : (_data$SewerageConnect79 = _data$SewerageConnect78[0]) === null || _data$SewerageConnect79 === void 0 ? void 0 : (_data$SewerageConnect80 = _data$SewerageConnect79.connectionHolders) === null || _data$SewerageConnect80 === void 0 ? void 0 : (_data$SewerageConnect81 = _data$SewerageConnect80[0]) === null || _data$SewerageConnect81 === void 0 ? void 0 : _data$SewerageConnect81.gender)),
|
|
29401
29536
|
textStyle: {
|
|
29402
29537
|
whiteSpace: "pre"
|
|
29403
29538
|
},
|
|
29404
29539
|
privacy: {
|
|
29405
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
29540
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection87 = data.WaterConnection) === null || _data$WaterConnection87 === void 0 ? void 0 : (_data$WaterConnection88 = _data$WaterConnection87[0]) === null || _data$WaterConnection88 === void 0 ? void 0 : (_data$WaterConnection89 = _data$WaterConnection88.connectionHolders) === null || _data$WaterConnection89 === void 0 ? void 0 : (_data$WaterConnection90 = _data$WaterConnection89[0]) === null || _data$WaterConnection90 === void 0 ? void 0 : _data$WaterConnection90.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect82 = data.SewerageConnections) === null || _data$SewerageConnect82 === void 0 ? void 0 : (_data$SewerageConnect83 = _data$SewerageConnect82[0]) === null || _data$SewerageConnect83 === void 0 ? void 0 : (_data$SewerageConnect84 = _data$SewerageConnect83.connectionHolders) === null || _data$SewerageConnect84 === void 0 ? void 0 : (_data$SewerageConnect85 = _data$SewerageConnect84[0]) === null || _data$SewerageConnect85 === void 0 ? void 0 : _data$SewerageConnect85.uuid,
|
|
29406
29541
|
fieldName: "gender",
|
|
29407
29542
|
model: "WnSConnectionOwner",
|
|
29408
29543
|
showValue: false,
|
|
@@ -29419,12 +29554,12 @@ const WSApplicationDetails = () => {
|
|
|
29419
29554
|
}
|
|
29420
29555
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29421
29556
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
29422
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29557
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection91 = data.WaterConnection) === null || _data$WaterConnection91 === void 0 ? void 0 : (_data$WaterConnection92 = _data$WaterConnection91[0]) === null || _data$WaterConnection92 === void 0 ? void 0 : (_data$WaterConnection93 = _data$WaterConnection92.connectionHolders) === null || _data$WaterConnection93 === void 0 ? void 0 : (_data$WaterConnection94 = _data$WaterConnection93[0]) === null || _data$WaterConnection94 === void 0 ? void 0 : _data$WaterConnection94.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect86 = data.SewerageConnections) === null || _data$SewerageConnect86 === void 0 ? void 0 : (_data$SewerageConnect87 = _data$SewerageConnect86[0]) === null || _data$SewerageConnect87 === void 0 ? void 0 : (_data$SewerageConnect88 = _data$SewerageConnect87.connectionHolders) === null || _data$SewerageConnect88 === void 0 ? void 0 : (_data$SewerageConnect89 = _data$SewerageConnect88[0]) === null || _data$SewerageConnect89 === void 0 ? void 0 : _data$SewerageConnect89.fatherOrHusbandName) || t("CS_NA"),
|
|
29423
29558
|
textStyle: {
|
|
29424
29559
|
whiteSpace: "pre"
|
|
29425
29560
|
},
|
|
29426
29561
|
privacy: {
|
|
29427
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
29562
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection95 = data.WaterConnection) === null || _data$WaterConnection95 === void 0 ? void 0 : (_data$WaterConnection96 = _data$WaterConnection95[0]) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96.connectionHolders) === null || _data$WaterConnection97 === void 0 ? void 0 : (_data$WaterConnection98 = _data$WaterConnection97[0]) === null || _data$WaterConnection98 === void 0 ? void 0 : _data$WaterConnection98.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect90 = data.SewerageConnections) === null || _data$SewerageConnect90 === void 0 ? void 0 : (_data$SewerageConnect91 = _data$SewerageConnect90[0]) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91.connectionHolders) === null || _data$SewerageConnect92 === void 0 ? void 0 : (_data$SewerageConnect93 = _data$SewerageConnect92[0]) === null || _data$SewerageConnect93 === void 0 ? void 0 : _data$SewerageConnect93.uuid,
|
|
29428
29563
|
fieldName: "fatherOrHusbandName",
|
|
29429
29564
|
model: "WnSConnectionOwner",
|
|
29430
29565
|
showValue: false,
|
|
@@ -29441,12 +29576,12 @@ const WSApplicationDetails = () => {
|
|
|
29441
29576
|
}
|
|
29442
29577
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29443
29578
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
29444
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29579
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection99 = data.WaterConnection) === null || _data$WaterConnection99 === void 0 ? void 0 : (_data$WaterConnection100 = _data$WaterConnection99[0]) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100.connectionHolders) === null || _data$WaterConnection101 === void 0 ? void 0 : (_data$WaterConnection102 = _data$WaterConnection101[0]) === null || _data$WaterConnection102 === void 0 ? void 0 : _data$WaterConnection102.relationship) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect94 = data.SewerageConnections) === null || _data$SewerageConnect94 === void 0 ? void 0 : (_data$SewerageConnect95 = _data$SewerageConnect94[0]) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95.connectionHolders) === null || _data$SewerageConnect96 === void 0 ? void 0 : (_data$SewerageConnect97 = _data$SewerageConnect96[0]) === null || _data$SewerageConnect97 === void 0 ? void 0 : _data$SewerageConnect97.relationship) || t("CS_NA"),
|
|
29445
29580
|
textStyle: {
|
|
29446
29581
|
whiteSpace: "pre"
|
|
29447
29582
|
},
|
|
29448
29583
|
privacy: {
|
|
29449
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
29584
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection103 = data.WaterConnection) === null || _data$WaterConnection103 === void 0 ? void 0 : (_data$WaterConnection104 = _data$WaterConnection103[0]) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104.connectionHolders) === null || _data$WaterConnection105 === void 0 ? void 0 : (_data$WaterConnection106 = _data$WaterConnection105[0]) === null || _data$WaterConnection106 === void 0 ? void 0 : _data$WaterConnection106.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect98 = data.SewerageConnections) === null || _data$SewerageConnect98 === void 0 ? void 0 : (_data$SewerageConnect99 = _data$SewerageConnect98[0]) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99.connectionHolders) === null || _data$SewerageConnect100 === void 0 ? void 0 : (_data$SewerageConnect101 = _data$SewerageConnect100[0]) === null || _data$SewerageConnect101 === void 0 ? void 0 : _data$SewerageConnect101.uuid,
|
|
29450
29585
|
fieldName: "relationship",
|
|
29451
29586
|
model: "WnSConnection",
|
|
29452
29587
|
showValue: false,
|
|
@@ -29463,9 +29598,9 @@ const WSApplicationDetails = () => {
|
|
|
29463
29598
|
}
|
|
29464
29599
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29465
29600
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
29466
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29601
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection107 = data.WaterConnection) === null || _data$WaterConnection107 === void 0 ? void 0 : (_data$WaterConnection108 = _data$WaterConnection107[0]) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108.connectionHolders) === null || _data$WaterConnection109 === void 0 ? void 0 : (_data$WaterConnection110 = _data$WaterConnection109[0]) === null || _data$WaterConnection110 === void 0 ? void 0 : _data$WaterConnection110.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect102 = data.SewerageConnections) === null || _data$SewerageConnect102 === void 0 ? void 0 : (_data$SewerageConnect103 = _data$SewerageConnect102[0]) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103.connectionHolders) === null || _data$SewerageConnect104 === void 0 ? void 0 : (_data$SewerageConnect105 = _data$SewerageConnect104[0]) === null || _data$SewerageConnect105 === void 0 ? void 0 : _data$SewerageConnect105.correspondenceAddress) || t("CS_NA"),
|
|
29467
29602
|
privacy: {
|
|
29468
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
29603
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection111 = data.WaterConnection) === null || _data$WaterConnection111 === void 0 ? void 0 : (_data$WaterConnection112 = _data$WaterConnection111[0]) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112.connectionHolders) === null || _data$WaterConnection113 === void 0 ? void 0 : (_data$WaterConnection114 = _data$WaterConnection113[0]) === null || _data$WaterConnection114 === void 0 ? void 0 : _data$WaterConnection114.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect106 = data.SewerageConnections) === null || _data$SewerageConnect106 === void 0 ? void 0 : (_data$SewerageConnect107 = _data$SewerageConnect106[0]) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107.connectionHolders) === null || _data$SewerageConnect108 === void 0 ? void 0 : (_data$SewerageConnect109 = _data$SewerageConnect108[0]) === null || _data$SewerageConnect109 === void 0 ? void 0 : _data$SewerageConnect109.uuid,
|
|
29469
29604
|
fieldName: "correspondenceAddress",
|
|
29470
29605
|
model: "WnSConnectionOwner",
|
|
29471
29606
|
showValue: false,
|
|
@@ -29482,12 +29617,12 @@ const WSApplicationDetails = () => {
|
|
|
29482
29617
|
}
|
|
29483
29618
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29484
29619
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
29485
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29620
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection115 = data.WaterConnection) === null || _data$WaterConnection115 === void 0 ? void 0 : (_data$WaterConnection116 = _data$WaterConnection115[0]) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116.connectionHolders) === null || _data$WaterConnection117 === void 0 ? void 0 : (_data$WaterConnection118 = _data$WaterConnection117[0]) === null || _data$WaterConnection118 === void 0 ? void 0 : _data$WaterConnection118.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect110 = data.SewerageConnections) === null || _data$SewerageConnect110 === void 0 ? void 0 : (_data$SewerageConnect111 = _data$SewerageConnect110[0]) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111.connectionHolders) === null || _data$SewerageConnect112 === void 0 ? void 0 : (_data$SewerageConnect113 = _data$SewerageConnect112[0]) === null || _data$SewerageConnect113 === void 0 ? void 0 : _data$SewerageConnect113.emailId) || "NA",
|
|
29486
29621
|
textStyle: {
|
|
29487
29622
|
whiteSpace: "pre"
|
|
29488
29623
|
},
|
|
29489
29624
|
privacy: {
|
|
29490
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
29625
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection119 = data.WaterConnection) === null || _data$WaterConnection119 === void 0 ? void 0 : (_data$WaterConnection120 = _data$WaterConnection119[0]) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120.connectionHolders) === null || _data$WaterConnection121 === void 0 ? void 0 : (_data$WaterConnection122 = _data$WaterConnection121[0]) === null || _data$WaterConnection122 === void 0 ? void 0 : _data$WaterConnection122.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect114 = data.SewerageConnections) === null || _data$SewerageConnect114 === void 0 ? void 0 : (_data$SewerageConnect115 = _data$SewerageConnect114[0]) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115.connectionHolders) === null || _data$SewerageConnect116 === void 0 ? void 0 : (_data$SewerageConnect117 = _data$SewerageConnect116[0]) === null || _data$SewerageConnect117 === void 0 ? void 0 : _data$SewerageConnect117.uuid,
|
|
29491
29626
|
fieldName: "connectionHoldersEmailId",
|
|
29492
29627
|
model: "WnSConnectionOwner",
|
|
29493
29628
|
showValue: false,
|
|
@@ -29508,7 +29643,7 @@ const WSApplicationDetails = () => {
|
|
|
29508
29643
|
}
|
|
29509
29644
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29510
29645
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
29511
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
29646
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection123 = data.WaterConnection) === null || _data$WaterConnection123 === void 0 ? void 0 : (_data$WaterConnection124 = _data$WaterConnection123[0]) === null || _data$WaterConnection124 === void 0 ? void 0 : _data$WaterConnection124.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect118 = data.SewerageConnections) === null || _data$SewerageConnect118 === void 0 ? void 0 : (_data$SewerageConnect119 = _data$SewerageConnect118[0]) === null || _data$SewerageConnect119 === void 0 ? void 0 : _data$SewerageConnect119.propertyId),
|
|
29512
29647
|
textStyle: {
|
|
29513
29648
|
wordBreak: "break-word"
|
|
29514
29649
|
}
|
|
@@ -29549,7 +29684,7 @@ const WSApplicationDetails = () => {
|
|
|
29549
29684
|
}
|
|
29550
29685
|
}
|
|
29551
29686
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
29552
|
-
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
29687
|
+
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection125 = data.WaterConnection) === null || _data$WaterConnection125 === void 0 ? void 0 : (_data$WaterConnection126 = _data$WaterConnection125[0]) === null || _data$WaterConnection126 === void 0 ? void 0 : _data$WaterConnection126.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect120 = data.SewerageConnections) === null || _data$SewerageConnect120 === void 0 ? void 0 : (_data$SewerageConnect121 = _data$SewerageConnect120[0]) === null || _data$SewerageConnect121 === void 0 ? void 0 : _data$SewerageConnect121.propertyId)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection127 = data.WaterConnection) === null || _data$WaterConnection127 === void 0 ? void 0 : (_data$WaterConnection128 = _data$WaterConnection127[0]) === null || _data$WaterConnection128 === void 0 ? void 0 : _data$WaterConnection128.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect122 = data.SewerageConnections) === null || _data$SewerageConnect122 === void 0 ? void 0 : (_data$SewerageConnect123 = _data$SewerageConnect122[0]) === null || _data$SewerageConnect123 === void 0 ? void 0 : _data$SewerageConnect123.tenantId))
|
|
29553
29688
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
29554
29689
|
style: {
|
|
29555
29690
|
textAlign: "left"
|
|
@@ -29703,15 +29838,15 @@ const WSApplicationDetails = () => {
|
|
|
29703
29838
|
styles: {
|
|
29704
29839
|
fontSize: "28px"
|
|
29705
29840
|
}
|
|
29706
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
29707
|
-
var _doc$documentType, _data$
|
|
29841
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection129 = data.WaterConnection) === null || _data$WaterConnection129 === void 0 ? void 0 : (_data$WaterConnection130 = _data$WaterConnection129[0]) === null || _data$WaterConnection130 === void 0 ? void 0 : _data$WaterConnection130.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection131 = data.WaterConnection) === null || _data$WaterConnection131 === void 0 ? void 0 : (_data$WaterConnection132 = _data$WaterConnection131[0]) === null || _data$WaterConnection132 === void 0 ? void 0 : _data$WaterConnection132.documents.map((doc, index) => {
|
|
29842
|
+
var _doc$documentType, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$WaterConnection136;
|
|
29708
29843
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29709
29844
|
key: "doc-" + index
|
|
29710
29845
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
29711
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
29846
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection133 = data.WaterConnection) === null || _data$WaterConnection133 === void 0 ? void 0 : (_data$WaterConnection134 = _data$WaterConnection133[0]) === null || _data$WaterConnection134 === void 0 ? void 0 : _data$WaterConnection134.documents,
|
|
29712
29847
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
29713
29848
|
index: index
|
|
29714
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
29849
|
+
}), (data === null || data === void 0 ? void 0 : (_data$WaterConnection135 = data.WaterConnection) === null || _data$WaterConnection135 === void 0 ? void 0 : (_data$WaterConnection136 = _data$WaterConnection135[0]) === null || _data$WaterConnection136 === void 0 ? void 0 : _data$WaterConnection136.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
29715
29850
|
style: {
|
|
29716
29851
|
color: "#cccccc",
|
|
29717
29852
|
backgroundColor: "#cccccc",
|
|
@@ -29720,15 +29855,15 @@ const WSApplicationDetails = () => {
|
|
|
29720
29855
|
marginBottom: "20px"
|
|
29721
29856
|
}
|
|
29722
29857
|
}) : null)));
|
|
29723
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
29724
|
-
var _doc$documentType2, _data$
|
|
29858
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect124 = data.SewerageConnections) === null || _data$SewerageConnect124 === void 0 ? void 0 : (_data$SewerageConnect125 = _data$SewerageConnect124[0]) === null || _data$SewerageConnect125 === void 0 ? void 0 : _data$SewerageConnect125.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect126 = data.SewerageConnections) === null || _data$SewerageConnect126 === void 0 ? void 0 : (_data$SewerageConnect127 = _data$SewerageConnect126[0]) === null || _data$SewerageConnect127 === void 0 ? void 0 : _data$SewerageConnect127.documents.map((doc, index) => {
|
|
29859
|
+
var _doc$documentType2, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$SewerageConnect131;
|
|
29725
29860
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29726
29861
|
key: "doc-" + index
|
|
29727
29862
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
29728
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
29863
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect128 = data.SewerageConnections) === null || _data$SewerageConnect128 === void 0 ? void 0 : (_data$SewerageConnect129 = _data$SewerageConnect128[0]) === null || _data$SewerageConnect129 === void 0 ? void 0 : _data$SewerageConnect129.documents,
|
|
29729
29864
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
29730
29865
|
index: index
|
|
29731
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
29866
|
+
}), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect130 = data.SewerageConnections) === null || _data$SewerageConnect130 === void 0 ? void 0 : (_data$SewerageConnect131 = _data$SewerageConnect130[0]) === null || _data$SewerageConnect131 === void 0 ? void 0 : _data$SewerageConnect131.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
29732
29867
|
style: {
|
|
29733
29868
|
color: "white",
|
|
29734
29869
|
backgroundColor: "white",
|
|
@@ -29737,36 +29872,36 @@ const WSApplicationDetails = () => {
|
|
|
29737
29872
|
marginBottom: "20px"
|
|
29738
29873
|
}
|
|
29739
29874
|
}) : null)));
|
|
29740
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
29875
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : (_data$WaterConnection138 = _data$WaterConnection137[0]) === null || _data$WaterConnection138 === void 0 ? void 0 : _data$WaterConnection138.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : (_data$SewerageConnect133 = _data$SewerageConnect132[0]) === null || _data$SewerageConnect133 === void 0 ? void 0 : _data$SewerageConnect133.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
29741
29876
|
to: {
|
|
29742
|
-
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) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$
|
|
29877
|
+
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) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139[0]) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.connectionNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect134 = data.SewerageConnections) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134[0]) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.connectionNo, "/", "+") : stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection141 = data.WaterConnection) === null || _data$WaterConnection141 === void 0 ? void 0 : (_data$WaterConnection142 = _data$WaterConnection141[0]) === null || _data$WaterConnection142 === void 0 ? void 0 : _data$WaterConnection142.applicationNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : (_data$SewerageConnect137 = _data$SewerageConnect136[0]) === null || _data$SewerageConnect137 === void 0 ? void 0 : _data$SewerageConnect137.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : (_data$WaterConnection144 = _data$WaterConnection143[0]) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : (_data$SewerageConnect139 = _data$SewerageConnect138[0]) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection145 = data.WaterConnection) === null || _data$WaterConnection145 === void 0 ? void 0 : (_data$WaterConnection146 = _data$WaterConnection145[0]) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146.connectionHolders) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : (_data$SewerageConnect141 = _data$SewerageConnect140[0]) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141.connectionHolders) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.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),
|
|
29743
29878
|
state: {}
|
|
29744
29879
|
}
|
|
29745
29880
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
29746
29881
|
label: t("MAKE_PAYMENT")
|
|
29747
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
29882
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection148 = data.WaterConnection) !== null && _data$WaterConnection148 !== void 0 && (_data$WaterConnection149 = _data$WaterConnection148[0]) !== null && _data$WaterConnection149 !== void 0 && _data$WaterConnection149.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection150 = data.WaterConnection) !== null && _data$WaterConnection150 !== void 0 && (_data$WaterConnection151 = _data$WaterConnection150[0]) !== null && _data$WaterConnection151 !== void 0 && _data$WaterConnection151.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect143 = data.SewerageConnections) !== null && _data$SewerageConnect143 !== void 0 && (_data$SewerageConnect144 = _data$SewerageConnect143[0]) !== null && _data$SewerageConnect144 !== void 0 && _data$SewerageConnect144.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect145 = data.SewerageConnections) !== null && _data$SewerageConnect145 !== void 0 && (_data$SewerageConnect146 = _data$SewerageConnect145[0]) !== null && _data$SewerageConnect146 !== void 0 && _data$SewerageConnect146.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
29748
29883
|
to: {
|
|
29749
|
-
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
29884
|
+
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)),
|
|
29750
29885
|
state: {
|
|
29751
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
29886
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : _data$WaterConnection155.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : _data$SewerageConnect150.applicationNo))
|
|
29752
29887
|
}
|
|
29753
29888
|
}
|
|
29754
29889
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
29755
29890
|
label: t("COMMON_EDIT")
|
|
29756
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
29891
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection156 = data.WaterConnection) !== null && _data$WaterConnection156 !== void 0 && (_data$WaterConnection157 = _data$WaterConnection156[0]) !== null && _data$WaterConnection157 !== void 0 && _data$WaterConnection157.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection158 = data.WaterConnection) !== null && _data$WaterConnection158 !== void 0 && (_data$WaterConnection159 = _data$WaterConnection158[0]) !== null && _data$WaterConnection159 !== void 0 && _data$WaterConnection159.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect151 = data.SewerageConnections) !== null && _data$SewerageConnect151 !== void 0 && (_data$SewerageConnect152 = _data$SewerageConnect151[0]) !== null && _data$SewerageConnect152 !== void 0 && _data$SewerageConnect152.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect153 = data.SewerageConnections) !== null && _data$SewerageConnect153 !== void 0 && (_data$SewerageConnect154 = _data$SewerageConnect153[0]) !== null && _data$SewerageConnect154 !== void 0 && _data$SewerageConnect154.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
29757
29892
|
to: {
|
|
29758
29893
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
29759
29894
|
state: {
|
|
29760
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
29895
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection160 = data.WaterConnection) === null || _data$WaterConnection160 === void 0 ? void 0 : (_data$WaterConnection161 = _data$WaterConnection160[0]) === null || _data$WaterConnection161 === void 0 ? void 0 : _data$WaterConnection161.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect155 = data.SewerageConnections) === null || _data$SewerageConnect155 === void 0 ? void 0 : (_data$SewerageConnect156 = _data$SewerageConnect155[0]) === null || _data$SewerageConnect156 === void 0 ? void 0 : _data$SewerageConnect156.applicationNo))
|
|
29761
29896
|
}
|
|
29762
29897
|
}
|
|
29763
29898
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
29764
29899
|
label: t("RESUBMIT_APPLICATION"),
|
|
29765
29900
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
29766
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
29901
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect157 = data.SewerageConnections) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157[0],
|
|
29767
29902
|
serviceType: "SEWERAGE",
|
|
29768
29903
|
WSDisconnectionForm: {
|
|
29769
|
-
type: data !== null && data !== void 0 && (_data$
|
|
29904
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect158 = data.SewerageConnections) !== null && _data$SewerageConnect158 !== void 0 && (_data$SewerageConnect159 = _data$SewerageConnect158[0]) !== null && _data$SewerageConnect159 !== void 0 && _data$SewerageConnect159.isDisconnectionTemporary ? {
|
|
29770
29905
|
code: "type",
|
|
29771
29906
|
value: {
|
|
29772
29907
|
name: "Temporary",
|
|
@@ -29783,18 +29918,18 @@ const WSApplicationDetails = () => {
|
|
|
29783
29918
|
code: "Permanent"
|
|
29784
29919
|
}
|
|
29785
29920
|
},
|
|
29786
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
29921
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect160 = data.SewerageConnections) === null || _data$SewerageConnect160 === void 0 ? void 0 : (_data$SewerageConnect161 = _data$SewerageConnect160[0]) === null || _data$SewerageConnect161 === void 0 ? void 0 : _data$SewerageConnect161.dateEffectiveFrom, true),
|
|
29787
29922
|
reason: {
|
|
29788
29923
|
code: "reason",
|
|
29789
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
29924
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect162 = data.SewerageConnections) === null || _data$SewerageConnect162 === void 0 ? void 0 : (_data$SewerageConnect163 = _data$SewerageConnect162[0]) === null || _data$SewerageConnect163 === void 0 ? void 0 : _data$SewerageConnect163.disconnectionReason
|
|
29790
29925
|
},
|
|
29791
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
29926
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.documents
|
|
29792
29927
|
}
|
|
29793
29928
|
} : {
|
|
29794
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
29929
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection162 = data.WaterConnection) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162[0],
|
|
29795
29930
|
serviceType: "WATER",
|
|
29796
29931
|
WSDisconnectionForm: {
|
|
29797
|
-
type: data !== null && data !== void 0 && (_data$
|
|
29932
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection163 = data.WaterConnection) !== null && _data$WaterConnection163 !== void 0 && (_data$WaterConnection164 = _data$WaterConnection163[0]) !== null && _data$WaterConnection164 !== void 0 && _data$WaterConnection164.isDisconnectionTemporary ? {
|
|
29798
29933
|
code: "type",
|
|
29799
29934
|
value: {
|
|
29800
29935
|
name: "Temporary",
|
|
@@ -29811,12 +29946,12 @@ const WSApplicationDetails = () => {
|
|
|
29811
29946
|
code: "Permanent"
|
|
29812
29947
|
}
|
|
29813
29948
|
},
|
|
29814
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
29949
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection165 = data.WaterConnection) === null || _data$WaterConnection165 === void 0 ? void 0 : (_data$WaterConnection166 = _data$WaterConnection165[0]) === null || _data$WaterConnection166 === void 0 ? void 0 : _data$WaterConnection166.dateEffectiveFrom, true),
|
|
29815
29950
|
reason: {
|
|
29816
29951
|
code: "reason",
|
|
29817
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
29952
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection167 = data.WaterConnection) === null || _data$WaterConnection167 === void 0 ? void 0 : (_data$WaterConnection168 = _data$WaterConnection167[0]) === null || _data$WaterConnection168 === void 0 ? void 0 : _data$WaterConnection168.disconnectionReason
|
|
29818
29953
|
},
|
|
29819
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
29954
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection169 = data.WaterConnection) === null || _data$WaterConnection169 === void 0 ? void 0 : (_data$WaterConnection170 = _data$WaterConnection169[0]) === null || _data$WaterConnection170 === void 0 ? void 0 : _data$WaterConnection170.documents
|
|
29820
29955
|
}
|
|
29821
29956
|
})
|
|
29822
29957
|
})) : null)))));
|
|
@@ -32050,7 +32185,7 @@ const WSConnection = _ref => {
|
|
|
32050
32185
|
};
|
|
32051
32186
|
|
|
32052
32187
|
const MyConnections = _ref => {
|
|
32053
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList;
|
|
32188
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList, _filteredConnections;
|
|
32054
32189
|
const _useTranslation = reactI18next.useTranslation(),
|
|
32055
32190
|
t = _useTranslation.t;
|
|
32056
32191
|
const user = Digit.UserService.getUser();
|
|
@@ -32110,6 +32245,9 @@ const MyConnections = _ref => {
|
|
|
32110
32245
|
const _useState2 = React.useState(10),
|
|
32111
32246
|
pageSize = _useState2[0],
|
|
32112
32247
|
setPageSize = _useState2[1];
|
|
32248
|
+
const _useState3 = React.useState(null),
|
|
32249
|
+
searchParams = _useState3[0],
|
|
32250
|
+
setSearchParams = _useState3[1];
|
|
32113
32251
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
32114
32252
|
const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
|
|
32115
32253
|
className: "cell-text"
|
|
@@ -32183,19 +32321,182 @@ const MyConnections = _ref => {
|
|
|
32183
32321
|
}
|
|
32184
32322
|
}];
|
|
32185
32323
|
}, [t]);
|
|
32324
|
+
const _useForm = reactHookForm.useForm({
|
|
32325
|
+
defaultValues: {
|
|
32326
|
+
connectionNo: "",
|
|
32327
|
+
status: ""
|
|
32328
|
+
}
|
|
32329
|
+
}),
|
|
32330
|
+
register = _useForm.register,
|
|
32331
|
+
control = _useForm.control,
|
|
32332
|
+
handleSubmit = _useForm.handleSubmit,
|
|
32333
|
+
reset = _useForm.reset;
|
|
32334
|
+
const onSubmitForm = data => {
|
|
32335
|
+
setSearchParams(data);
|
|
32336
|
+
setPageOffset(0);
|
|
32337
|
+
};
|
|
32186
32338
|
if (isLoading || PTisLoading || isSWLoading) {
|
|
32187
32339
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
32188
32340
|
}
|
|
32341
|
+
const sortedConnections = ((_connectionList = connectionList) === null || _connectionList === void 0 ? void 0 : _connectionList.length) > 0 ? connectionList.sort((a, b) => {
|
|
32342
|
+
var _b$auditDetails, _a$auditDetails;
|
|
32343
|
+
return ((_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.lastModifiedTime) - ((_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.lastModifiedTime);
|
|
32344
|
+
}) : [];
|
|
32345
|
+
let filteredConnections = sortedConnections;
|
|
32346
|
+
if (searchParams) {
|
|
32347
|
+
if (searchParams.connectionNo) {
|
|
32348
|
+
filteredConnections = filteredConnections.filter(app => {
|
|
32349
|
+
var _app$connectionNo;
|
|
32350
|
+
return (_app$connectionNo = app.connectionNo) === null || _app$connectionNo === void 0 ? void 0 : _app$connectionNo.toLowerCase().includes(searchParams.connectionNo.toLowerCase());
|
|
32351
|
+
});
|
|
32352
|
+
}
|
|
32353
|
+
if (searchParams.status && searchParams.status.code) {
|
|
32354
|
+
filteredConnections = filteredConnections.filter(app => app.status === searchParams.status.code);
|
|
32355
|
+
}
|
|
32356
|
+
}
|
|
32357
|
+
const statusCounts = sortedConnections.reduce((acc, app) => {
|
|
32358
|
+
const status = app.status || "UNKNOWN";
|
|
32359
|
+
acc[status] = (acc[status] || 0) + 1;
|
|
32360
|
+
return acc;
|
|
32361
|
+
}, {});
|
|
32362
|
+
const action = Object.keys(statusCounts).map(status => ({
|
|
32363
|
+
i18nKey: status === "UNKNOWN" ? "UNKNOWN" : "CS_" + status,
|
|
32364
|
+
code: status
|
|
32365
|
+
}));
|
|
32189
32366
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
32190
32367
|
t: t
|
|
32191
|
-
}), /*#__PURE__*/React__default.createElement("div",
|
|
32368
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
32369
|
+
className: "summary-cards-container",
|
|
32370
|
+
style: {
|
|
32371
|
+
display: "flex",
|
|
32372
|
+
gap: "10px",
|
|
32373
|
+
flexWrap: "wrap",
|
|
32374
|
+
width: "100%"
|
|
32375
|
+
}
|
|
32376
|
+
}, (() => {
|
|
32377
|
+
const waterCount = sortedConnections.filter(app => {
|
|
32378
|
+
var _app$applicationNo;
|
|
32379
|
+
return app === null || app === void 0 ? void 0 : (_app$applicationNo = app.applicationNo) === null || _app$applicationNo === void 0 ? void 0 : _app$applicationNo.includes("WS");
|
|
32380
|
+
}).length;
|
|
32381
|
+
const sewerageCount = sortedConnections.filter(app => {
|
|
32382
|
+
var _app$applicationNo2;
|
|
32383
|
+
return app === null || app === void 0 ? void 0 : (_app$applicationNo2 = app.applicationNo) === null || _app$applicationNo2 === void 0 ? void 0 : _app$applicationNo2.includes("SW");
|
|
32384
|
+
}).length;
|
|
32385
|
+
const cards = [{
|
|
32386
|
+
label: "TOTAL_CONNECTIONS",
|
|
32387
|
+
count: (sortedConnections === null || sortedConnections === void 0 ? void 0 : sortedConnections.length) || 0,
|
|
32388
|
+
color: "#0B2559"
|
|
32389
|
+
}, {
|
|
32390
|
+
label: "WATER",
|
|
32391
|
+
count: waterCount,
|
|
32392
|
+
color: "#3B82F6"
|
|
32393
|
+
}, {
|
|
32394
|
+
label: "SEWERAGE",
|
|
32395
|
+
count: sewerageCount,
|
|
32396
|
+
color: "#F59E0B"
|
|
32397
|
+
}, ...Object.entries(statusCounts).map((_ref8, idx) => {
|
|
32398
|
+
let status = _ref8[0],
|
|
32399
|
+
count = _ref8[1];
|
|
32400
|
+
const colors = ["#10B981", "#A855F7", "#EF4444", "#64748B", "#F97316", "#06B6D4"];
|
|
32401
|
+
return {
|
|
32402
|
+
label: status === "UNKNOWN" ? "UNKNOWN" : "CS_" + status,
|
|
32403
|
+
count: count,
|
|
32404
|
+
color: colors[idx % colors.length]
|
|
32405
|
+
};
|
|
32406
|
+
})];
|
|
32407
|
+
return cards.map((card, idx) => /*#__PURE__*/React__default.createElement("div", {
|
|
32408
|
+
key: idx,
|
|
32409
|
+
className: "summary-card",
|
|
32410
|
+
style: {
|
|
32411
|
+
backgroundColor: "#fff",
|
|
32412
|
+
borderRadius: "6px",
|
|
32413
|
+
padding: "12px 14px",
|
|
32414
|
+
boxShadow: "0 2px 8px rgba(0,0,0,0.05)",
|
|
32415
|
+
flex: "1 1 110px",
|
|
32416
|
+
maxWidth: "200px",
|
|
32417
|
+
minWidth: "100px",
|
|
32418
|
+
border: "1px solid #E2E8F0",
|
|
32419
|
+
display: "flex",
|
|
32420
|
+
flexDirection: "column",
|
|
32421
|
+
justifyContent: "space-between"
|
|
32422
|
+
}
|
|
32423
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
32424
|
+
style: {
|
|
32425
|
+
fontSize: "10px",
|
|
32426
|
+
color: "#64748B",
|
|
32427
|
+
fontWeight: "600",
|
|
32428
|
+
textTransform: "uppercase",
|
|
32429
|
+
letterSpacing: "0.5px",
|
|
32430
|
+
whiteSpace: "nowrap",
|
|
32431
|
+
overflow: "hidden",
|
|
32432
|
+
textOverflow: "ellipsis"
|
|
32433
|
+
},
|
|
32434
|
+
title: t(card.label)
|
|
32435
|
+
}, t(card.label)), /*#__PURE__*/React__default.createElement("div", {
|
|
32436
|
+
style: {
|
|
32437
|
+
fontSize: "24px",
|
|
32438
|
+
fontWeight: "700",
|
|
32439
|
+
color: card.color,
|
|
32440
|
+
marginTop: "8px"
|
|
32441
|
+
}
|
|
32442
|
+
}, String(card.count).padStart(2, "0"))));
|
|
32443
|
+
})()), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchForm, {
|
|
32444
|
+
t: t,
|
|
32445
|
+
onSubmit: onSubmitForm,
|
|
32446
|
+
handleSubmit: handleSubmit,
|
|
32447
|
+
className: "formcomposer-section-grid"
|
|
32448
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, null, /*#__PURE__*/React__default.createElement("label", null, t("WS_MYCONNECTIONS_STATUS")), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
32449
|
+
control: control,
|
|
32450
|
+
name: "status",
|
|
32451
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
32452
|
+
selected: props.value,
|
|
32453
|
+
select: props.onChange,
|
|
32454
|
+
onBlur: props.onBlur,
|
|
32455
|
+
option: action,
|
|
32456
|
+
optionKey: "i18nKey",
|
|
32457
|
+
t: t,
|
|
32458
|
+
disable: false
|
|
32459
|
+
})
|
|
32460
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, null, /*#__PURE__*/React__default.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
32461
|
+
name: "connectionNo",
|
|
32462
|
+
inputRef: register({})
|
|
32463
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
32464
|
+
style: {
|
|
32465
|
+
gridColumn: "1 / -1",
|
|
32466
|
+
display: "flex",
|
|
32467
|
+
justifyContent: "flex-end",
|
|
32468
|
+
alignItems: "center",
|
|
32469
|
+
gap: "24px"
|
|
32470
|
+
}
|
|
32471
|
+
}, /*#__PURE__*/React__default.createElement("p", {
|
|
32472
|
+
style: {
|
|
32473
|
+
cursor: "pointer",
|
|
32474
|
+
color: "#0B4B66",
|
|
32475
|
+
fontWeight: "600",
|
|
32476
|
+
margin: 0
|
|
32477
|
+
},
|
|
32478
|
+
onClick: () => {
|
|
32479
|
+
reset({
|
|
32480
|
+
connectionNo: "",
|
|
32481
|
+
status: ""
|
|
32482
|
+
});
|
|
32483
|
+
setSearchParams(null);
|
|
32484
|
+
setPageOffset(0);
|
|
32485
|
+
}
|
|
32486
|
+
}, t("ES_COMMON_CLEAR_ALL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
32487
|
+
label: t("ES_COMMON_SEARCH"),
|
|
32488
|
+
submit: true,
|
|
32489
|
+
style: {
|
|
32490
|
+
margin: 0
|
|
32491
|
+
}
|
|
32492
|
+
}))), /*#__PURE__*/React__default.createElement("div", null, ((_filteredConnections = filteredConnections) === null || _filteredConnections === void 0 ? void 0 : _filteredConnections.length) > 0 ? isMobile ? filteredConnections.map((application, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
32192
32493
|
key: index
|
|
32193
32494
|
}, /*#__PURE__*/React__default.createElement(WSConnection, {
|
|
32194
32495
|
application: application
|
|
32195
32496
|
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
|
|
32196
32497
|
t: t,
|
|
32197
|
-
data:
|
|
32198
|
-
totalRecords:
|
|
32498
|
+
data: filteredConnections.slice(pageOffset, pageOffset + pageSize),
|
|
32499
|
+
totalRecords: filteredConnections.length,
|
|
32199
32500
|
columns: columns,
|
|
32200
32501
|
getCellProps: cellInfo => {
|
|
32201
32502
|
return {
|
|
@@ -39599,19 +39900,6 @@ const ActionModal$5 = _ref => {
|
|
|
39599
39900
|
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) || "";
|
|
39600
39901
|
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) || "";
|
|
39601
39902
|
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) || "";
|
|
39602
|
-
const inspectionInformationData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
|
|
39603
|
-
if (inspectionInformationData) {
|
|
39604
|
-
try {
|
|
39605
|
-
const parsedInspectionData = JSON.parse(inspectionInformationData);
|
|
39606
|
-
if (parsedInspectionData !== null && parsedInspectionData !== void 0 && parsedInspectionData.inspectionDate) {
|
|
39607
|
-
const dateVal = parsedInspectionData.inspectionDate;
|
|
39608
|
-
parsedInspectionData.inspectionDate = typeof dateVal === 'string' ? new Date(dateVal).getTime() : dateVal;
|
|
39609
|
-
}
|
|
39610
|
-
applicationData.inspectionInformation = parsedInspectionData;
|
|
39611
|
-
} catch (e) {
|
|
39612
|
-
console.error("Error parsing inspection information data", e);
|
|
39613
|
-
}
|
|
39614
|
-
}
|
|
39615
39903
|
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
39616
39904
|
WaterConnection: applicationData,
|
|
39617
39905
|
disconnectRequest: false,
|
|
@@ -43114,7 +43402,8 @@ const DueVerification = _ref => {
|
|
|
43114
43402
|
return newData;
|
|
43115
43403
|
});
|
|
43116
43404
|
}, [applicationData]);
|
|
43117
|
-
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION";
|
|
43405
|
+
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
43406
|
+
const isActivation = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
43118
43407
|
const columns = React.useMemo(() => {
|
|
43119
43408
|
const baseColumns = [{
|
|
43120
43409
|
Header: t("K No."),
|
|
@@ -43139,7 +43428,7 @@ const DueVerification = _ref => {
|
|
|
43139
43428
|
Cell: _ref2 => {
|
|
43140
43429
|
let row = _ref2.row,
|
|
43141
43430
|
value = _ref2.value;
|
|
43142
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
43431
|
+
return isActivation ? value || "-" : /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
43143
43432
|
style: {
|
|
43144
43433
|
marginBottom: "0px",
|
|
43145
43434
|
minWidth: "150px"
|
|
@@ -43186,7 +43475,7 @@ const DueVerification = _ref => {
|
|
|
43186
43475
|
fontWeight: "bold",
|
|
43187
43476
|
marginBottom: "16px"
|
|
43188
43477
|
}
|
|
43189
|
-
}, t("Due Verification")), /*#__PURE__*/React__default.createElement("div", {
|
|
43478
|
+
}, t("Due Verification")), !isActivation && /*#__PURE__*/React__default.createElement("div", {
|
|
43190
43479
|
style: {
|
|
43191
43480
|
display: "flex",
|
|
43192
43481
|
alignItems: "flex-end",
|
|
@@ -43233,25 +43522,19 @@ const DueVerification = _ref => {
|
|
|
43233
43522
|
}
|
|
43234
43523
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.AddIcon, null)))), tableData.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
43235
43524
|
style: {
|
|
43236
|
-
marginTop: "
|
|
43525
|
+
marginTop: "15px",
|
|
43237
43526
|
overflowX: "auto"
|
|
43238
43527
|
}
|
|
43239
43528
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
|
|
43240
43529
|
className: "customTable table-fixed-first-column table-border-style",
|
|
43241
43530
|
t: t,
|
|
43531
|
+
totalRecords: tableData.length,
|
|
43242
43532
|
disableSort: false,
|
|
43243
43533
|
autoSort: true,
|
|
43244
|
-
manualPagination:
|
|
43245
|
-
isPaginationRequired:
|
|
43534
|
+
manualPagination: true,
|
|
43535
|
+
isPaginationRequired: true,
|
|
43246
43536
|
data: tableData,
|
|
43247
|
-
columns: columns
|
|
43248
|
-
getCellProps: cellInfo => {
|
|
43249
|
-
return {
|
|
43250
|
-
style: {
|
|
43251
|
-
padding: "12px"
|
|
43252
|
-
}
|
|
43253
|
-
};
|
|
43254
|
-
}
|
|
43537
|
+
columns: columns
|
|
43255
43538
|
})));
|
|
43256
43539
|
};
|
|
43257
43540
|
|
|
@@ -43269,30 +43552,35 @@ const InspectionInformation = _ref => {
|
|
|
43269
43552
|
inspectorName = _useState3[0],
|
|
43270
43553
|
setInspectorName = _useState3[1];
|
|
43271
43554
|
React.useEffect(() => {
|
|
43272
|
-
|
|
43273
|
-
|
|
43274
|
-
|
|
43275
|
-
|
|
43276
|
-
|
|
43277
|
-
|
|
43278
|
-
|
|
43279
|
-
|
|
43280
|
-
|
|
43281
|
-
|
|
43282
|
-
|
|
43283
|
-
|
|
43284
|
-
|
|
43555
|
+
if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
|
|
43556
|
+
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
43557
|
+
let matchedType = null;
|
|
43558
|
+
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
43559
|
+
if (inspectionCode) {
|
|
43560
|
+
matchedType = [{
|
|
43561
|
+
i18nKey: "ES_COMMON_SELECT",
|
|
43562
|
+
code: ""
|
|
43563
|
+
}, {
|
|
43564
|
+
i18nKey: "New Connection Visit",
|
|
43565
|
+
code: "new_connection_visit"
|
|
43566
|
+
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
43567
|
+
}
|
|
43568
|
+
setInspectionType(matchedType || null);
|
|
43569
|
+
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
43570
|
+
if (dateValue && typeof dateValue === 'number') {
|
|
43571
|
+
const d = new Date(dateValue);
|
|
43572
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
43573
|
+
} else if (dateValue && typeof dateValue === 'string' && dateValue.includes('-')) ; else if (dateValue) {
|
|
43574
|
+
const num = Number(dateValue);
|
|
43575
|
+
if (!isNaN(num)) {
|
|
43576
|
+
const d = new Date(num);
|
|
43577
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
43578
|
+
}
|
|
43579
|
+
}
|
|
43580
|
+
setInspectionDate(dateValue);
|
|
43285
43581
|
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
43286
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify(applicationData.inspectionInformation));
|
|
43287
43582
|
}
|
|
43288
43583
|
}, [applicationData]);
|
|
43289
|
-
React.useEffect(() => {
|
|
43290
|
-
sessionStorage.setItem("Digit.INSPECTION_INFORMATION_DATA", JSON.stringify({
|
|
43291
|
-
inspectionType,
|
|
43292
|
-
inspectionDate,
|
|
43293
|
-
inspectorName
|
|
43294
|
-
}));
|
|
43295
|
-
}, [inspectionType, inspectionDate, inspectorName]);
|
|
43296
43584
|
const inspectionTypeOptions = [{
|
|
43297
43585
|
i18nKey: "ES_COMMON_SELECT",
|
|
43298
43586
|
code: ""
|
|
@@ -43300,6 +43588,23 @@ const InspectionInformation = _ref => {
|
|
|
43300
43588
|
i18nKey: "New Connection Visit",
|
|
43301
43589
|
code: "new_connection_visit"
|
|
43302
43590
|
}];
|
|
43591
|
+
const handleInspectionTypeChange = selected => {
|
|
43592
|
+
setInspectionType(selected);
|
|
43593
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
43594
|
+
applicationData.inspectionInformation.inspectionType = selected;
|
|
43595
|
+
};
|
|
43596
|
+
const handleInspectionDateChange = date => {
|
|
43597
|
+
setInspectionDate(date);
|
|
43598
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
43599
|
+
applicationData.inspectionInformation.inspectionDate = date ? new Date(date).getTime() : null;
|
|
43600
|
+
};
|
|
43601
|
+
const handleInspectorNameChange = e => {
|
|
43602
|
+
const val = e.target.value;
|
|
43603
|
+
setInspectorName(val);
|
|
43604
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
43605
|
+
applicationData.inspectionInformation.inspectorName = val;
|
|
43606
|
+
};
|
|
43607
|
+
const readOnly = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
43303
43608
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
43304
43609
|
style: {
|
|
43305
43610
|
marginBottom: "20px"
|
|
@@ -43319,79 +43624,53 @@ const InspectionInformation = _ref => {
|
|
|
43319
43624
|
}
|
|
43320
43625
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
43321
43626
|
style: {
|
|
43322
|
-
flex:
|
|
43627
|
+
flex: 1
|
|
43323
43628
|
}
|
|
43324
43629
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
43325
43630
|
style: {
|
|
43326
43631
|
fontSize: "16px",
|
|
43327
|
-
color: "#0B0C0C",
|
|
43328
43632
|
marginBottom: "8px",
|
|
43329
43633
|
display: "inline-block"
|
|
43330
43634
|
}
|
|
43331
|
-
}, t("Inspection Type"),
|
|
43332
|
-
style: {
|
|
43333
|
-
color: "red"
|
|
43334
|
-
}
|
|
43335
|
-
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
43635
|
+
}, t("Inspection Type")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
43336
43636
|
option: inspectionTypeOptions,
|
|
43337
43637
|
optionKey: "i18nKey",
|
|
43338
|
-
id: "inspectionType",
|
|
43339
43638
|
selected: inspectionType,
|
|
43340
|
-
select:
|
|
43639
|
+
select: handleInspectionTypeChange,
|
|
43341
43640
|
t: t,
|
|
43342
|
-
|
|
43343
|
-
width: "100%"
|
|
43344
|
-
}
|
|
43641
|
+
disable: readOnly
|
|
43345
43642
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
43346
43643
|
style: {
|
|
43347
|
-
flex:
|
|
43644
|
+
flex: 1
|
|
43348
43645
|
}
|
|
43349
43646
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
43350
43647
|
style: {
|
|
43351
43648
|
fontSize: "16px",
|
|
43352
|
-
color: "#0B0C0C",
|
|
43353
43649
|
marginBottom: "8px",
|
|
43354
43650
|
display: "inline-block"
|
|
43355
43651
|
}
|
|
43356
|
-
}, t("Inspection Date"),
|
|
43357
|
-
style: {
|
|
43358
|
-
color: "red"
|
|
43359
|
-
}
|
|
43360
|
-
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.DatePicker, {
|
|
43652
|
+
}, t("Inspection Date")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.DatePicker, {
|
|
43361
43653
|
date: inspectionDate,
|
|
43362
|
-
onChange:
|
|
43363
|
-
|
|
43364
|
-
width: "100%"
|
|
43365
|
-
}
|
|
43654
|
+
onChange: handleInspectionDateChange,
|
|
43655
|
+
disabled: readOnly
|
|
43366
43656
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
43367
43657
|
style: {
|
|
43368
|
-
display: "flex"
|
|
43369
|
-
gap: "20px",
|
|
43370
|
-
marginBottom: "20px",
|
|
43371
|
-
flexWrap: "wrap"
|
|
43658
|
+
display: "flex"
|
|
43372
43659
|
}
|
|
43373
43660
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
43374
43661
|
style: {
|
|
43375
|
-
flex:
|
|
43662
|
+
flex: 1
|
|
43376
43663
|
}
|
|
43377
43664
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
43378
43665
|
style: {
|
|
43379
43666
|
fontSize: "16px",
|
|
43380
|
-
color: "#0B0C0C",
|
|
43381
43667
|
marginBottom: "8px",
|
|
43382
43668
|
display: "inline-block"
|
|
43383
43669
|
}
|
|
43384
|
-
}, t("Inspector Name"),
|
|
43385
|
-
style: {
|
|
43386
|
-
color: "red"
|
|
43387
|
-
}
|
|
43388
|
-
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
43670
|
+
}, t("Inspector Name")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
43389
43671
|
value: inspectorName,
|
|
43390
|
-
onChange:
|
|
43391
|
-
|
|
43392
|
-
width: "50%",
|
|
43393
|
-
marginBottom: "0"
|
|
43394
|
-
}
|
|
43672
|
+
onChange: handleInspectorNameChange,
|
|
43673
|
+
disabled: readOnly
|
|
43395
43674
|
}))));
|
|
43396
43675
|
};
|
|
43397
43676
|
|
|
@@ -43907,9 +44186,11 @@ function ApplicationDetailsContent(_ref) {
|
|
|
43907
44186
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React__default.createElement(PropertyDocuments, {
|
|
43908
44187
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
43909
44188
|
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
43910
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION") && /*#__PURE__*/React__default.createElement(DueVerification, {
|
|
44189
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_RECONNECTION") && /*#__PURE__*/React__default.createElement(DueVerification, {
|
|
44190
|
+
applicationData: applicationData
|
|
44191
|
+
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION") && /*#__PURE__*/React__default.createElement(InspectionInformation, {
|
|
43911
44192
|
applicationData: applicationData
|
|
43912
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
44193
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
|
|
43913
44194
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
43914
44195
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React__default.createElement(WSAdditonalDetails, {
|
|
43915
44196
|
wsAdditionalDetails: detail,
|