@djb25/digit-ui-module-ws 1.0.45 → 1.0.47
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 +1350 -1052
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1351 -1053
- 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),
|
|
@@ -20478,8 +20656,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
20478
20656
|
}),
|
|
20479
20657
|
control = _useForm.control,
|
|
20480
20658
|
register = _useForm.register,
|
|
20481
|
-
|
|
20482
|
-
errors = _useForm$formState.errors,
|
|
20659
|
+
errors = _useForm.formState.errors,
|
|
20483
20660
|
watch = _useForm.watch,
|
|
20484
20661
|
setValue = _useForm.setValue;
|
|
20485
20662
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
@@ -20664,8 +20841,8 @@ const PropertyWaterConnection = _ref => {
|
|
|
20664
20841
|
marginTop: "-21px"
|
|
20665
20842
|
};
|
|
20666
20843
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
20667
|
-
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property
|
|
20668
|
-
defaultOpen:
|
|
20844
|
+
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " " + t("(Automatic Fill by Property)") : ""),
|
|
20845
|
+
defaultOpen: false,
|
|
20669
20846
|
style: props.style
|
|
20670
20847
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20671
20848
|
className: "formcomposer-section-grid"
|
|
@@ -28376,291 +28553,848 @@ const getWSDisconnectionApplicationForm = function (application, property, tenan
|
|
|
28376
28553
|
}
|
|
28377
28554
|
};
|
|
28378
28555
|
|
|
28379
|
-
const
|
|
28380
|
-
|
|
28381
|
-
|
|
28382
|
-
|
|
28383
|
-
|
|
28384
|
-
|
|
28385
|
-
|
|
28386
|
-
|
|
28387
|
-
|
|
28388
|
-
|
|
28389
|
-
|
|
28390
|
-
|
|
28391
|
-
|
|
28392
|
-
|
|
28393
|
-
|
|
28394
|
-
|
|
28395
|
-
|
|
28396
|
-
|
|
28397
|
-
|
|
28398
|
-
|
|
28399
|
-
|
|
28400
|
-
|
|
28401
|
-
|
|
28402
|
-
|
|
28403
|
-
|
|
28404
|
-
|
|
28405
|
-
|
|
28406
|
-
|
|
28407
|
-
|
|
28408
|
-
fileStoreIds: response.filestoreIds[0]
|
|
28409
|
-
})).then(function (fileStore) {
|
|
28410
|
-
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
28411
|
-
});
|
|
28412
|
-
});
|
|
28413
|
-
} catch (e) {
|
|
28414
|
-
return Promise.reject(e);
|
|
28415
|
-
}
|
|
28416
|
-
};
|
|
28556
|
+
const Penality_menu = [{
|
|
28557
|
+
title: "PT_PENDING_DUES_FROM_EARLIER",
|
|
28558
|
+
value: "Pending dues from earlier"
|
|
28559
|
+
}, {
|
|
28560
|
+
title: "PT_MISCALCULATION_OF_EARLIER_ASSESSMENT",
|
|
28561
|
+
value: "Miscalculation of earlier Assessment"
|
|
28562
|
+
}, {
|
|
28563
|
+
title: "PT_ONE_TIME_PENALITY",
|
|
28564
|
+
value: "One time penality"
|
|
28565
|
+
}, {
|
|
28566
|
+
title: "PT_OTHERS",
|
|
28567
|
+
value: "Others"
|
|
28568
|
+
}];
|
|
28569
|
+
const Rebate_menu = [{
|
|
28570
|
+
title: "PT_ADVANCED_PAID_BY_CITIZEN_EARLIER",
|
|
28571
|
+
value: "Advanced Paid By Citizen Earlier"
|
|
28572
|
+
}, {
|
|
28573
|
+
title: "PT_REBATE_PROVIDED_BY_COMMISSIONER_EO",
|
|
28574
|
+
value: "Rebate provided by commissioner/EO"
|
|
28575
|
+
}, {
|
|
28576
|
+
title: "PT_ADDITIONAL_AMOUNT_CHARGED_FROM_THE_CITIZEN",
|
|
28577
|
+
value: "Additional amount charged from the citizen"
|
|
28578
|
+
}, {
|
|
28579
|
+
title: "PT_OTHERS",
|
|
28580
|
+
value: "Others"
|
|
28581
|
+
}];
|
|
28582
|
+
const WSFeeEstimation = _ref => {
|
|
28583
|
+
var _wsAdditionalDetails$, _wsAdditionalDetails$18, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
28584
|
+
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
28417
28585
|
const _useTranslation = reactI18next.useTranslation(),
|
|
28418
28586
|
t = _useTranslation.t;
|
|
28419
|
-
const
|
|
28420
|
-
|
|
28421
|
-
|
|
28422
|
-
const
|
|
28587
|
+
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("ADHOC_ADD_REBATE_DATA", {}),
|
|
28588
|
+
sessionFormData = _Digit$Hooks$useSessi[0],
|
|
28589
|
+
setSessionFormData = _Digit$Hooks$useSessi[1];
|
|
28590
|
+
const _Digit$Hooks$useSessi2 = Digit.Hooks.useSessionStorage("ADHOC_BILL_ADD_REBATE_DATA", {}),
|
|
28591
|
+
setSessionBillFormData = _Digit$Hooks$useSessi2[1];
|
|
28592
|
+
const isPaid = wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isPaid ? true : false;
|
|
28423
28593
|
const _useState = React.useState(false),
|
|
28424
|
-
|
|
28425
|
-
|
|
28426
|
-
const _useState2 = React.useState(
|
|
28427
|
-
|
|
28428
|
-
|
|
28429
|
-
|
|
28430
|
-
|
|
28431
|
-
|
|
28432
|
-
const
|
|
28433
|
-
|
|
28434
|
-
|
|
28435
|
-
|
|
28436
|
-
|
|
28437
|
-
|
|
28438
|
-
|
|
28439
|
-
|
|
28440
|
-
|
|
28441
|
-
|
|
28442
|
-
|
|
28443
|
-
|
|
28444
|
-
|
|
28445
|
-
|
|
28446
|
-
|
|
28447
|
-
|
|
28448
|
-
|
|
28449
|
-
|
|
28450
|
-
|
|
28451
|
-
|
|
28452
|
-
|
|
28453
|
-
|
|
28454
|
-
|
|
28455
|
-
|
|
28456
|
-
|
|
28457
|
-
|
|
28458
|
-
|
|
28459
|
-
|
|
28460
|
-
|
|
28461
|
-
|
|
28462
|
-
|
|
28463
|
-
|
|
28464
|
-
enabled: data !== null && data !== void 0 && (_data$WaterConnection5 = data.WaterConnection) !== null && _data$WaterConnection5 !== void 0 && (_data$WaterConnection6 = _data$WaterConnection5[0]) !== null && _data$WaterConnection6 !== void 0 && _data$WaterConnection6.applicationNo || data !== null && data !== void 0 && (_data$SewerageConnect5 = data.SewerageConnections) !== null && _data$SewerageConnect5 !== void 0 && (_data$SewerageConnect6 = _data$SewerageConnect5[0]) !== null && _data$SewerageConnect6 !== void 0 && _data$SewerageConnect6.applicationNo ? true : false,
|
|
28465
|
-
retry: false
|
|
28466
|
-
});
|
|
28467
|
-
const propertyId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection7 = data.WaterConnection) === null || _data$WaterConnection7 === void 0 ? void 0 : (_data$WaterConnection8 = _data$WaterConnection7[0]) === null || _data$WaterConnection8 === void 0 ? void 0 : _data$WaterConnection8.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect7 = data.SewerageConnections) === null || _data$SewerageConnect7 === void 0 ? void 0 : (_data$SewerageConnect8 = _data$SewerageConnect7[0]) === null || _data$SewerageConnect8 === void 0 ? void 0 : _data$SewerageConnect8.propertyId);
|
|
28468
|
-
const propertyTenantId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection9 = data.WaterConnection) === null || _data$WaterConnection9 === void 0 ? void 0 : (_data$WaterConnection0 = _data$WaterConnection9[0]) === null || _data$WaterConnection0 === void 0 ? void 0 : _data$WaterConnection0.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect9 = data.SewerageConnections) === null || _data$SewerageConnect9 === void 0 ? void 0 : (_data$SewerageConnect0 = _data$SewerageConnect9[0]) === null || _data$SewerageConnect0 === void 0 ? void 0 : _data$SewerageConnect0.tenantId) || tenantId;
|
|
28469
|
-
const _Digit$Hooks$pt$usePr = Digit.Hooks.pt.usePropertySearch({
|
|
28470
|
-
filters: {
|
|
28471
|
-
propertyIds: propertyId
|
|
28472
|
-
},
|
|
28473
|
-
tenantId: propertyTenantId
|
|
28474
|
-
}, {
|
|
28475
|
-
filters: {
|
|
28476
|
-
propertyIds: propertyId
|
|
28477
|
-
},
|
|
28478
|
-
tenantId: propertyTenantId,
|
|
28479
|
-
enabled: !!propertyId,
|
|
28480
|
-
privacy: Digit.Utils.getPrivacyObject()
|
|
28481
|
-
}),
|
|
28482
|
-
PTData = _Digit$Hooks$pt$usePr.data;
|
|
28483
|
-
const applicationData = (data === null || data === void 0 ? void 0 : (_data$WaterConnection1 = data.WaterConnection) === null || _data$WaterConnection1 === void 0 ? void 0 : _data$WaterConnection1[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect1 = data.SewerageConnections) === null || _data$SewerageConnect1 === void 0 ? void 0 : _data$SewerageConnect1[0]);
|
|
28484
|
-
const additionalDetails = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.additionalDetails) || {};
|
|
28485
|
-
const connectionDetails = additionalDetails;
|
|
28486
|
-
const useDetails = additionalDetails;
|
|
28487
|
-
const djbEmployee = additionalDetails;
|
|
28488
|
-
const bankDetails = additionalDetails;
|
|
28489
|
-
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.address) || additionalDetails;
|
|
28490
|
-
const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
|
|
28491
|
-
privacy: {
|
|
28492
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection10 = data.WaterConnection) === null || _data$WaterConnection10 === void 0 ? void 0 : (_data$WaterConnection11 = _data$WaterConnection10[0]) === null || _data$WaterConnection11 === void 0 ? void 0 : (_data$WaterConnection12 = _data$WaterConnection11.connectionHolders) === null || _data$WaterConnection12 === void 0 ? void 0 : (_data$WaterConnection13 = _data$WaterConnection12[0]) === null || _data$WaterConnection13 === void 0 ? void 0 : _data$WaterConnection13.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect10 = data.SewerageConnections) === null || _data$SewerageConnect10 === void 0 ? void 0 : (_data$SewerageConnect11 = _data$SewerageConnect10[0]) === null || _data$SewerageConnect11 === void 0 ? void 0 : (_data$SewerageConnect12 = _data$SewerageConnect11.connectionHolders) === null || _data$SewerageConnect12 === void 0 ? void 0 : (_data$SewerageConnect13 = _data$SewerageConnect12[0]) === null || _data$SewerageConnect13 === void 0 ? void 0 : _data$SewerageConnect13.uuid,
|
|
28493
|
-
fieldName: "connectionHoldersMobileNumber",
|
|
28494
|
-
model: "WnSConnectionOwner"
|
|
28495
|
-
}
|
|
28496
|
-
}) || false;
|
|
28497
|
-
const isPaid = (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) === "CONNECTION_ACTIVATED" || (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.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (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) === "CONNECTION_ACTIVATED" || (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.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" ? true : false;
|
|
28498
|
-
if (isLoading) {
|
|
28499
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
28500
|
-
}
|
|
28501
|
-
const handleDownloadPdf = function () {
|
|
28502
|
-
try {
|
|
28503
|
-
var _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection20, _data$SewerageConnect20, _PTData$Properties2;
|
|
28504
|
-
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection18 = data.WaterConnection) === null || _data$WaterConnection18 === void 0 ? void 0 : (_data$WaterConnection19 = _data$WaterConnection18[0]) === null || _data$WaterConnection19 === void 0 ? void 0 : _data$WaterConnection19.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect18 = data.SewerageConnections) === null || _data$SewerageConnect18 === void 0 ? void 0 : (_data$SewerageConnect19 = _data$SewerageConnect18[0]) === null || _data$SewerageConnect19 === void 0 ? void 0 : _data$SewerageConnect19.tenantId);
|
|
28505
|
-
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection20 = data.WaterConnection) === null || _data$WaterConnection20 === void 0 ? void 0 : _data$WaterConnection20[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect20 = data.SewerageConnections) === null || _data$SewerageConnect20 === void 0 ? void 0 : _data$SewerageConnect20[0]);
|
|
28506
|
-
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);
|
|
28507
|
-
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
28508
|
-
setShowOptions(false);
|
|
28509
|
-
return Promise.resolve();
|
|
28510
|
-
} catch (e) {
|
|
28511
|
-
return Promise.reject(e);
|
|
28594
|
+
popup = _useState[0],
|
|
28595
|
+
showPopUp = _useState[1];
|
|
28596
|
+
const _useState2 = React.useState(sessionFormData ? sessionFormData : {}),
|
|
28597
|
+
fields = _useState2[0],
|
|
28598
|
+
setFields = _useState2[1];
|
|
28599
|
+
const _useState3 = React.useState(null),
|
|
28600
|
+
showToast = _useState3[0],
|
|
28601
|
+
setShowToast = _useState3[1];
|
|
28602
|
+
const _useState4 = React.useState(wsAdditionalDetails.additionalDetails.data ? wsAdditionalDetails.additionalDetails.data : {}),
|
|
28603
|
+
billDetails = _useState4[0],
|
|
28604
|
+
setBillDetails = _useState4[1];
|
|
28605
|
+
const _useState5 = React.useState(wsAdditionalDetails.additionalDetails.values ? wsAdditionalDetails.additionalDetails.values : []),
|
|
28606
|
+
values = _useState5[0],
|
|
28607
|
+
setValues = _useState5[1];
|
|
28608
|
+
const stateCode = Digit.ULBService.getStateId();
|
|
28609
|
+
const _Digit$Hooks$ws$useMD = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
|
|
28610
|
+
React.useEffect(() => {
|
|
28611
|
+
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
|
|
28612
|
+
const data = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails);
|
|
28613
|
+
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
28614
|
+
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0;
|
|
28615
|
+
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || [];
|
|
28616
|
+
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
|
|
28617
|
+
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
28618
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
|
|
28619
|
+
})) : [{
|
|
28620
|
+
title: "WS_APPLICATION_FEE_HEADER",
|
|
28621
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.fee)
|
|
28622
|
+
}, {
|
|
28623
|
+
title: "WS_SERVICE_FEE_HEADER",
|
|
28624
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.charge)
|
|
28625
|
+
}, {
|
|
28626
|
+
title: "WS_TAX_HEADER",
|
|
28627
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill8 = sessionFormData.billDetails) === null || _sessionFormData$bill8 === void 0 ? void 0 : (_sessionFormData$bill9 = _sessionFormData$bill8[0]) === null || _sessionFormData$bill9 === void 0 ? void 0 : _sessionFormData$bill9.taxAmount)
|
|
28628
|
+
}];
|
|
28629
|
+
setValues(values);
|
|
28630
|
+
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : _sessionFormData$bill0[0]);
|
|
28631
|
+
} else {
|
|
28632
|
+
setSessionFormData(data);
|
|
28633
|
+
setFields(data);
|
|
28512
28634
|
}
|
|
28635
|
+
}, []);
|
|
28636
|
+
let validation = {};
|
|
28637
|
+
const Heading = props => {
|
|
28638
|
+
return /*#__PURE__*/React__default.createElement("h1", {
|
|
28639
|
+
className: "heading-m"
|
|
28640
|
+
}, props.label);
|
|
28513
28641
|
};
|
|
28514
|
-
const
|
|
28515
|
-
|
|
28516
|
-
|
|
28517
|
-
|
|
28518
|
-
|
|
28519
|
-
|
|
28520
|
-
|
|
28521
|
-
|
|
28522
|
-
|
|
28523
|
-
|
|
28524
|
-
|
|
28525
|
-
|
|
28642
|
+
const Close = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
28643
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28644
|
+
viewBox: "0 0 24 24",
|
|
28645
|
+
fill: "#FFFFFF"
|
|
28646
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
28647
|
+
d: "M0 0h24v24H0V0z",
|
|
28648
|
+
fill: "none"
|
|
28649
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
28650
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
28651
|
+
}));
|
|
28652
|
+
const CloseBtn = props => {
|
|
28653
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28654
|
+
className: "icon-bg-secondary",
|
|
28655
|
+
onClick: props.onClick
|
|
28656
|
+
}, /*#__PURE__*/React__default.createElement(Close, null));
|
|
28526
28657
|
};
|
|
28527
|
-
const
|
|
28528
|
-
|
|
28529
|
-
|
|
28530
|
-
|
|
28531
|
-
|
|
28532
|
-
|
|
28533
|
-
|
|
28534
|
-
|
|
28535
|
-
|
|
28536
|
-
|
|
28537
|
-
|
|
28538
|
-
|
|
28539
|
-
|
|
28540
|
-
|
|
28541
|
-
|
|
28542
|
-
|
|
28543
|
-
|
|
28544
|
-
|
|
28545
|
-
|
|
28658
|
+
const closeToast = () => {
|
|
28659
|
+
setShowToast(false);
|
|
28660
|
+
};
|
|
28661
|
+
const addAdhocRebatePenality = e => {
|
|
28662
|
+
const adhocAmount = fields !== null && fields !== void 0 && fields.adhocPenalty ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) : 0;
|
|
28663
|
+
const rebateAmount = fields !== null && fields !== void 0 && fields.adhocRebate ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocRebate) : 0;
|
|
28664
|
+
if (adhocAmount || rebateAmount) {
|
|
28665
|
+
var _wsAdditionalDetails$4, _wsAdditionalDetails$5;
|
|
28666
|
+
const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$4 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : (_wsAdditionalDetails$5 = _wsAdditionalDetails$4.data) === null || _wsAdditionalDetails$5 === void 0 ? void 0 : _wsAdditionalDetails$5.totalAmount;
|
|
28667
|
+
if (rebateAmount > totalAmount) {
|
|
28668
|
+
setShowToast({
|
|
28669
|
+
isError: false,
|
|
28670
|
+
isWarning: true,
|
|
28671
|
+
key: "error",
|
|
28672
|
+
message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
|
|
28673
|
+
});
|
|
28674
|
+
} else {
|
|
28675
|
+
var _wsAdditionalDetails$0, _wsAdditionalDetails$1, _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17;
|
|
28676
|
+
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$0 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$0 === void 0 ? void 0 : (_wsAdditionalDetails$1 = _wsAdditionalDetails$0.appDetails) === null || _wsAdditionalDetails$1 === void 0 ? void 0 : _wsAdditionalDetails$1.applicationNo;
|
|
28677
|
+
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$10 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : (_wsAdditionalDetails$11 = _wsAdditionalDetails$10.appDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : _wsAdditionalDetails$11.tenantId;
|
|
28678
|
+
const appAdditionalDetails = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$12 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : (_wsAdditionalDetails$13 = _wsAdditionalDetails$12.appDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : _wsAdditionalDetails$13.additionalDetails, fields);
|
|
28679
|
+
wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
|
|
28680
|
+
const data = {
|
|
28681
|
+
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$14 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : (_wsAdditionalDetails$15 = _wsAdditionalDetails$14.appDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : _wsAdditionalDetails$15.service) == "WATER" ? [{
|
|
28682
|
+
applicationNo: applicationNo,
|
|
28683
|
+
tenantId: tenantId,
|
|
28684
|
+
waterConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
28685
|
+
}] : [{
|
|
28686
|
+
applicationNo: applicationNo,
|
|
28687
|
+
tenantId: tenantId,
|
|
28688
|
+
sewerageConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
28689
|
+
}],
|
|
28690
|
+
isconnectionCalculation: false
|
|
28546
28691
|
};
|
|
28547
|
-
|
|
28548
|
-
|
|
28549
|
-
|
|
28550
|
-
|
|
28551
|
-
|
|
28552
|
-
|
|
28553
|
-
});
|
|
28692
|
+
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$16 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$16 === void 0 ? void 0 : (_wsAdditionalDetails$17 = _wsAdditionalDetails$16.appDetails) === null || _wsAdditionalDetails$17 === void 0 ? void 0 : _wsAdditionalDetails$17.service) == "WATER" ? "WS" : "SW";
|
|
28693
|
+
Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
|
|
28694
|
+
var _result$Calculation, _result$Calculation$, _result$Calculation$$, _result$Calculation3, _result$Calculation3$, _result$Calculation4, _result$Calculation4$, _result$Calculation5, _result$Calculation5$, _result$Calculation6, _result$Calculation6$, _result$Calculation7, _result$Calculation7$, _result$Calculation8;
|
|
28695
|
+
if ((result === null || result === void 0 ? void 0 : (_result$Calculation = result.Calculation) === null || _result$Calculation === void 0 ? void 0 : (_result$Calculation$ = _result$Calculation[0]) === null || _result$Calculation$ === void 0 ? void 0 : (_result$Calculation$$ = _result$Calculation$.taxHeadEstimates) === null || _result$Calculation$$ === void 0 ? void 0 : _result$Calculation$$.length) > 0) {
|
|
28696
|
+
var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
|
|
28697
|
+
result === null || result === void 0 ? void 0 : (_result$Calculation2 = result.Calculation) === null || _result$Calculation2 === void 0 ? void 0 : (_result$Calculation2$ = _result$Calculation2[0]) === null || _result$Calculation2$ === void 0 ? void 0 : (_result$Calculation2$2 = _result$Calculation2$.taxHeadEstimates) === null || _result$Calculation2$2 === void 0 ? void 0 : _result$Calculation2$2.forEach(data => data.amount = data.estimateAmount);
|
|
28554
28698
|
}
|
|
28555
|
-
|
|
28556
|
-
|
|
28699
|
+
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
|
|
28700
|
+
const taxHeadEstimates = (result === null || result === void 0 ? void 0 : (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.taxHeadEstimates) || [];
|
|
28701
|
+
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
|
|
28702
|
+
title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
|
|
28703
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
|
|
28704
|
+
})) : [{
|
|
28705
|
+
title: "WS_APPLICATION_FEE_HEADER",
|
|
28706
|
+
value: (_result$Calculation5 = result.Calculation) === null || _result$Calculation5 === void 0 ? void 0 : (_result$Calculation5$ = _result$Calculation5[0]) === null || _result$Calculation5$ === void 0 ? void 0 : _result$Calculation5$.fee
|
|
28707
|
+
}, {
|
|
28708
|
+
title: "WS_SERVICE_FEE_HEADER",
|
|
28709
|
+
value: (_result$Calculation6 = result.Calculation) === null || _result$Calculation6 === void 0 ? void 0 : (_result$Calculation6$ = _result$Calculation6[0]) === null || _result$Calculation6$ === void 0 ? void 0 : _result$Calculation6$.charge
|
|
28710
|
+
}, {
|
|
28711
|
+
title: "WS_TAX_HEADER",
|
|
28712
|
+
value: (_result$Calculation7 = result.Calculation) === null || _result$Calculation7 === void 0 ? void 0 : (_result$Calculation7$ = _result$Calculation7[0]) === null || _result$Calculation7$ === void 0 ? void 0 : _result$Calculation7$.taxAmount
|
|
28713
|
+
}];
|
|
28714
|
+
setSessionBillFormData(cloneDeep_1(result.Calculation[0]));
|
|
28715
|
+
setBillDetails(result === null || result === void 0 ? void 0 : (_result$Calculation8 = result.Calculation) === null || _result$Calculation8 === void 0 ? void 0 : _result$Calculation8[0]);
|
|
28716
|
+
setValues(values);
|
|
28717
|
+
fields.billDetails = result === null || result === void 0 ? void 0 : result.Calculation;
|
|
28718
|
+
setSessionFormData(fields);
|
|
28719
|
+
showPopUp(false);
|
|
28720
|
+
}).catch(e => {
|
|
28721
|
+
var _e$response, _e$response$data, _e$response$data$Erro, _e$response2, _e$response2$data, _e$response2$data$Err;
|
|
28722
|
+
setShowToast({
|
|
28723
|
+
isError: true,
|
|
28724
|
+
isWarning: false,
|
|
28725
|
+
key: "error",
|
|
28726
|
+
message: e !== null && e !== void 0 && (_e$response = e.response) !== null && _e$response !== void 0 && (_e$response$data = _e$response.data) !== null && _e$response$data !== void 0 && (_e$response$data$Erro = _e$response$data.Errors[0]) !== null && _e$response$data$Erro !== void 0 && _e$response$data$Erro.message ? t("" + (e === null || e === void 0 ? void 0 : (_e$response2 = e.response) === null || _e$response2 === void 0 ? void 0 : (_e$response2$data = _e$response2.data) === null || _e$response2$data === void 0 ? void 0 : (_e$response2$data$Err = _e$response2$data.Errors[0]) === null || _e$response2$data$Err === void 0 ? void 0 : _e$response2$data$Err.code)) : t("PT_COMMON_ADD_REBATE_PENALITY")
|
|
28727
|
+
});
|
|
28728
|
+
});
|
|
28729
|
+
}
|
|
28730
|
+
} else {
|
|
28731
|
+
setShowToast({
|
|
28732
|
+
isError: false,
|
|
28733
|
+
isWarning: true,
|
|
28734
|
+
key: "warning",
|
|
28735
|
+
message: t("ERR_WS_ENTER_ATLEAST_ONE_FIELD")
|
|
28557
28736
|
});
|
|
28558
|
-
} catch (e) {
|
|
28559
|
-
return Promise.reject(e);
|
|
28560
|
-
}
|
|
28561
|
-
};
|
|
28562
|
-
let downloadOptions = [];
|
|
28563
|
-
const wsEstimateDownloadObject = {
|
|
28564
|
-
order: 1,
|
|
28565
|
-
label: t("WS_ESTIMATION_NOTICE"),
|
|
28566
|
-
onClick: () => {
|
|
28567
|
-
var _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect26, _data$SewerageConnect27, _data$SewerageConnect28;
|
|
28568
|
-
return data !== null && data !== void 0 && (_data$WaterConnection28 = data.WaterConnection) !== null && _data$WaterConnection28 !== void 0 && _data$WaterConnection28[0] ? getFiles([data === null || data === void 0 ? void 0 : (_data$WaterConnection29 = data.WaterConnection) === null || _data$WaterConnection29 === void 0 ? void 0 : (_data$WaterConnection30 = _data$WaterConnection29[0]) === null || _data$WaterConnection30 === void 0 ? void 0 : (_data$WaterConnection31 = _data$WaterConnection30.additionalDetails) === null || _data$WaterConnection31 === void 0 ? void 0 : _data$WaterConnection31.estimationFileStoreId], tenantId) : getFiles([data === null || data === void 0 ? void 0 : (_data$SewerageConnect26 = data.SewerageConnections) === null || _data$SewerageConnect26 === void 0 ? void 0 : (_data$SewerageConnect27 = _data$SewerageConnect26[0]) === null || _data$SewerageConnect27 === void 0 ? void 0 : (_data$SewerageConnect28 = _data$SewerageConnect27.additionalDetails) === null || _data$SewerageConnect28 === void 0 ? void 0 : _data$SewerageConnect28.estimationFileStoreId], tenantId);
|
|
28569
28737
|
}
|
|
28570
28738
|
};
|
|
28571
|
-
const
|
|
28572
|
-
|
|
28573
|
-
|
|
28574
|
-
onClick: () => {
|
|
28575
|
-
var _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31;
|
|
28576
|
-
return data !== null && data !== void 0 && (_data$WaterConnection32 = data.WaterConnection) !== null && _data$WaterConnection32 !== void 0 && _data$WaterConnection32[0] ? getFiles([data === null || data === void 0 ? void 0 : (_data$WaterConnection33 = data.WaterConnection) === null || _data$WaterConnection33 === void 0 ? void 0 : (_data$WaterConnection34 = _data$WaterConnection33[0]) === null || _data$WaterConnection34 === void 0 ? void 0 : (_data$WaterConnection35 = _data$WaterConnection34.additionalDetails) === null || _data$WaterConnection35 === void 0 ? void 0 : _data$WaterConnection35.sanctionFileStoreId], tenantId) : getFiles([data === null || data === void 0 ? void 0 : (_data$SewerageConnect29 = data.SewerageConnections) === null || _data$SewerageConnect29 === void 0 ? void 0 : (_data$SewerageConnect30 = _data$SewerageConnect29[0]) === null || _data$SewerageConnect30 === void 0 ? void 0 : (_data$SewerageConnect31 = _data$SewerageConnect30.additionalDetails) === null || _data$SewerageConnect31 === void 0 ? void 0 : _data$SewerageConnect31.sanctionFileStoreId], tenantId);
|
|
28739
|
+
const selectedValuesData = function (value, isDropDownValue, e) {
|
|
28740
|
+
if (isDropDownValue === void 0) {
|
|
28741
|
+
isDropDownValue = false;
|
|
28577
28742
|
}
|
|
28578
|
-
|
|
28579
|
-
|
|
28580
|
-
|
|
28581
|
-
|
|
28582
|
-
|
|
28583
|
-
|
|
28584
|
-
const receiptApplicationFeeDownloadObject = {
|
|
28585
|
-
order: 4,
|
|
28586
|
-
label: t("DOWNLOAD_RECEIPT_HEADER"),
|
|
28587
|
-
onClick: printApplicationReceipts
|
|
28588
|
-
};
|
|
28589
|
-
const disconnectionNoticeNApplicationFormOptions = [{
|
|
28590
|
-
order: 1,
|
|
28591
|
-
label: t("WS_APPLICATION"),
|
|
28592
|
-
onClick: handleDownloadDisconnectPdf
|
|
28593
|
-
}, {
|
|
28594
|
-
order: 2,
|
|
28595
|
-
label: t("WS_DISCONNECTION_NOTICE_LABEL"),
|
|
28596
|
-
onClick: () => getDisconnectionNoticeSearch()
|
|
28597
|
-
}];
|
|
28598
|
-
const isDisconnection = (data === null || data === void 0 ? void 0 : (_data$WaterConnection36 = data.WaterConnection) === null || _data$WaterConnection36 === void 0 ? void 0 : (_data$WaterConnection37 = _data$WaterConnection36[0].applicationType) === null || _data$WaterConnection37 === void 0 ? void 0 : _data$WaterConnection37.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect32 = data.SewerageConnections) === null || _data$SewerageConnect32 === void 0 ? void 0 : (_data$SewerageConnect33 = _data$SewerageConnect32[0].applicationType) === null || _data$SewerageConnect33 === void 0 ? void 0 : _data$SewerageConnect33.includes("DISCONNECT"));
|
|
28599
|
-
const appStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection38 = data.WaterConnection) === null || _data$WaterConnection38 === void 0 ? void 0 : (_data$WaterConnection39 = _data$WaterConnection38[0]) === null || _data$WaterConnection39 === void 0 ? void 0 : _data$WaterConnection39.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect34 = data.SewerageConnections) === null || _data$SewerageConnect34 === void 0 ? void 0 : (_data$SewerageConnect35 = _data$SewerageConnect34[0]) === null || _data$SewerageConnect35 === void 0 ? void 0 : _data$SewerageConnect35.applicationStatus);
|
|
28600
|
-
switch (appStatus) {
|
|
28601
|
-
case "PENDING_FOR_DOCUMENT_VERIFICATION":
|
|
28602
|
-
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")) {
|
|
28603
|
-
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
28604
|
-
} else {
|
|
28605
|
-
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
28606
|
-
}
|
|
28607
|
-
break;
|
|
28608
|
-
case "PENDING_FOR_CITIZEN_ACTION":
|
|
28609
|
-
case "PENDING_FOR_FIELD_INSPECTION":
|
|
28610
|
-
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
28611
|
-
break;
|
|
28612
|
-
case "PENDING_APPROVAL_FOR_CONNECTION":
|
|
28613
|
-
case "PENDING_FOR_PAYMENT":
|
|
28614
|
-
downloadOptions = downloadOptions.concat(applicationDownloadObject, wsEstimateDownloadObject);
|
|
28615
|
-
break;
|
|
28616
|
-
case "PENDING_FOR_CONNECTION_ACTIVATION":
|
|
28617
|
-
case "CONNECTION_ACTIVATED":
|
|
28618
|
-
downloadOptions = downloadOptions.concat(sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject, receiptApplicationFeeDownloadObject);
|
|
28619
|
-
break;
|
|
28620
|
-
case "REJECTED":
|
|
28621
|
-
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
28622
|
-
break;
|
|
28623
|
-
case "PENDING_FOR_DISCONNECTION_EXECUTION":
|
|
28624
|
-
case "DISCONNECTION_EXECUTED":
|
|
28625
|
-
case "PENDING_FOR_PAYMENT":
|
|
28626
|
-
if (data !== null && data !== void 0 && (_data$WaterConnection42 = data.WaterConnection) !== null && _data$WaterConnection42 !== void 0 && (_data$WaterConnection43 = _data$WaterConnection42[0].applicationType) !== null && _data$WaterConnection43 !== void 0 && _data$WaterConnection43.includes("DISCONNECT") || data !== null && data !== void 0 && (_data$SewerageConnect38 = data.SewerageConnections) !== null && _data$SewerageConnect38 !== void 0 && (_data$SewerageConnect39 = _data$SewerageConnect38[0].applicationType) !== null && _data$SewerageConnect39 !== void 0 && _data$SewerageConnect39.includes("DISCONNECT")) {
|
|
28627
|
-
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
28743
|
+
let values = _extends({}, fields);
|
|
28744
|
+
if ((value == "adhocPenalty" || value == "adhocRebate") && e.target.value) {
|
|
28745
|
+
var _e$target, _e$target2;
|
|
28746
|
+
const targetValueSign = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) == 0 ? 1 : Math.sign(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || -1;
|
|
28747
|
+
if (targetValueSign == 1) {
|
|
28748
|
+
values[value] = e.target.value;
|
|
28628
28749
|
} else {
|
|
28629
|
-
|
|
28750
|
+
values[value] = "";
|
|
28630
28751
|
}
|
|
28631
|
-
|
|
28632
|
-
|
|
28633
|
-
|
|
28634
|
-
|
|
28635
|
-
|
|
28636
|
-
|
|
28637
|
-
|
|
28638
|
-
});
|
|
28639
|
-
let serviceType = data && data !== null && data !== void 0 && (_data$WaterConnection44 = data.WaterConnection) !== null && _data$WaterConnection44 !== void 0 && _data$WaterConnection44[0] ? "WATER" : "SEWERAGE";
|
|
28640
|
-
sessionStorage.setItem("ApplicationNoState", applicationNobyData);
|
|
28641
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28642
|
-
className: "employee-main-application-details",
|
|
28643
|
-
style: {
|
|
28644
|
-
display: "flex",
|
|
28645
|
-
gap: "20px"
|
|
28646
|
-
}
|
|
28647
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28648
|
-
className: "workflow-timeline-wrapper no-scrollbar",
|
|
28649
|
-
style: {
|
|
28650
|
-
flex: "1 1 300px",
|
|
28651
|
-
maxWidth: "400px"
|
|
28752
|
+
} else if (isDropDownValue) {
|
|
28753
|
+
values[value + "_data"] = e;
|
|
28754
|
+
values[value] = e.title;
|
|
28755
|
+
if (e.title == "PT_OTHERS" && value == "adhocPenaltyReason") values["adhocPenaltyComment"] = "";
|
|
28756
|
+
if (e.title == "PT_OTHERS" && value == "adhocRebateReason") values["adhocRebateComment"] = "";
|
|
28757
|
+
} else {
|
|
28758
|
+
values[value] = e.target.value;
|
|
28652
28759
|
}
|
|
28653
|
-
|
|
28654
|
-
|
|
28655
|
-
|
|
28656
|
-
application: (data === null || data === void 0 ? void 0 : (_data$WaterConnection45 = data.WaterConnection) === null || _data$WaterConnection45 === void 0 ? void 0 : _data$WaterConnection45[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect40 = data.SewerageConnections) === null || _data$SewerageConnect40 === void 0 ? void 0 : _data$SewerageConnect40[0]),
|
|
28657
|
-
id: (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),
|
|
28658
|
-
paymentbuttonenabled: false
|
|
28659
|
-
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
28760
|
+
setFields(values);
|
|
28761
|
+
};
|
|
28762
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28660
28763
|
style: {
|
|
28661
|
-
|
|
28764
|
+
lineHeight: "19px",
|
|
28765
|
+
maxWidth: "100%",
|
|
28766
|
+
minWidth: "280px"
|
|
28662
28767
|
}
|
|
28663
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
28768
|
+
}, values && /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement("div", null, values === null || values === void 0 ? void 0 : values.map((value, index) => {
|
|
28769
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28770
|
+
className: "border-none",
|
|
28771
|
+
key: "" + value.title,
|
|
28772
|
+
label: "" + t("" + value.title),
|
|
28773
|
+
text: value !== null && value !== void 0 && value.value ? value === null || value === void 0 ? void 0 : value.value : ""
|
|
28774
|
+
});
|
|
28775
|
+
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
28776
|
+
style: {
|
|
28777
|
+
border: "1px solid #D6D5D4",
|
|
28778
|
+
color: "#D6D5D4",
|
|
28779
|
+
margin: "16px 0px"
|
|
28780
|
+
}
|
|
28781
|
+
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28782
|
+
className: "border-none",
|
|
28783
|
+
key: "WS_COMMON_TOTAL_AMT",
|
|
28784
|
+
label: "" + t("WS_COMMON_TOTAL_AMT"),
|
|
28785
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", billDetails !== null && billDetails !== void 0 && billDetails.totalAmount ? Number(billDetails === null || billDetails === void 0 ? void 0 : billDetails.totalAmount).toFixed(2) : "0.00"),
|
|
28786
|
+
textStyle: {
|
|
28787
|
+
fontSize: "24px",
|
|
28788
|
+
fontWeight: "700"
|
|
28789
|
+
}
|
|
28790
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28791
|
+
className: "border-none",
|
|
28792
|
+
key: "CS_INBOX_STATUS_FILTER",
|
|
28793
|
+
label: "" + t("CS_INBOX_STATUS_FILTER"),
|
|
28794
|
+
text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
28795
|
+
textStyle: !isPaid ? {
|
|
28796
|
+
color: "#D83A2F"
|
|
28797
|
+
} : {
|
|
28798
|
+
color: "#2E9E8F"
|
|
28799
|
+
}
|
|
28800
|
+
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React__default.createElement("div", {
|
|
28801
|
+
onClick: e => {
|
|
28802
|
+
showPopUp(true);
|
|
28803
|
+
}
|
|
28804
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
28805
|
+
className: "add-details-link hover-button",
|
|
28806
|
+
style: {
|
|
28807
|
+
cursor: "pointer",
|
|
28808
|
+
color: "#a82227"
|
|
28809
|
+
}
|
|
28810
|
+
}, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
28811
|
+
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
28812
|
+
label: t("PT_ADD_REBATE_PENALITY")
|
|
28813
|
+
}),
|
|
28814
|
+
headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
|
|
28815
|
+
onClick: () => {
|
|
28816
|
+
setFields(sessionFormData);
|
|
28817
|
+
showPopUp(false);
|
|
28818
|
+
}
|
|
28819
|
+
}),
|
|
28820
|
+
actionCancelLabel: t("PT_CANCEL"),
|
|
28821
|
+
actionCancelOnSubmit: () => {
|
|
28822
|
+
setFields(sessionFormData);
|
|
28823
|
+
showPopUp(false);
|
|
28824
|
+
},
|
|
28825
|
+
actionSaveLabel: t("PT_ADD"),
|
|
28826
|
+
actionSaveOnSubmit: e => addAdhocRebatePenality(),
|
|
28827
|
+
hideSubmit: false,
|
|
28828
|
+
popupStyles: {
|
|
28829
|
+
overflowY: "auto",
|
|
28830
|
+
background: "#f0f3f7"
|
|
28831
|
+
}
|
|
28832
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28833
|
+
style: {
|
|
28834
|
+
display: "flex",
|
|
28835
|
+
flexDirection: "column",
|
|
28836
|
+
gap: "16px"
|
|
28837
|
+
}
|
|
28838
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
28839
|
+
style: {
|
|
28840
|
+
fontSize: "16px",
|
|
28841
|
+
fontWeight: "700",
|
|
28842
|
+
lineHeight: "18px",
|
|
28843
|
+
padding: "0px",
|
|
28844
|
+
margin: "0px 0px 10px 0px"
|
|
28845
|
+
}
|
|
28846
|
+
}, t("PT_AD_PENALTY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React__default.createElement("div", {
|
|
28847
|
+
className: "field"
|
|
28848
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
28849
|
+
isMandatory: true,
|
|
28850
|
+
option: Penality_menu,
|
|
28851
|
+
optionKey: "title",
|
|
28852
|
+
select: e => selectedValuesData("adhocPenaltyReason", true, e),
|
|
28853
|
+
selected: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyReason_data) || "",
|
|
28854
|
+
isPropertyAssess: true,
|
|
28855
|
+
name: "adhocPenaltyReason_data",
|
|
28856
|
+
t: t
|
|
28857
|
+
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_REASON")), /*#__PURE__*/React__default.createElement("div", {
|
|
28858
|
+
className: "field"
|
|
28859
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
28860
|
+
style: {
|
|
28861
|
+
background: "#FAFAFA"
|
|
28862
|
+
},
|
|
28863
|
+
t: t,
|
|
28864
|
+
type: "text",
|
|
28865
|
+
isMandatory: false,
|
|
28866
|
+
name: "adhocPenaltyComment",
|
|
28867
|
+
value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyComment) || "",
|
|
28868
|
+
onChange: e => selectedValuesData("adhocPenaltyComment", false, e)
|
|
28869
|
+
}, validation = {
|
|
28870
|
+
isRequired: true,
|
|
28871
|
+
pattern: "^[a-zA-Z ]*$",
|
|
28872
|
+
type: "text",
|
|
28873
|
+
title: t("TL_NAME_ERROR_MESSAGE")
|
|
28874
|
+
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React__default.createElement("div", {
|
|
28875
|
+
className: "field"
|
|
28876
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
28877
|
+
style: {
|
|
28878
|
+
background: "#FAFAFA"
|
|
28879
|
+
},
|
|
28880
|
+
t: t,
|
|
28881
|
+
type: "number",
|
|
28882
|
+
isMandatory: false,
|
|
28883
|
+
name: "adhocPenalty",
|
|
28884
|
+
value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) || "",
|
|
28885
|
+
onChange: e => selectedValuesData("adhocPenalty", false, e)
|
|
28886
|
+
}, validation = {
|
|
28887
|
+
isRequired: true,
|
|
28888
|
+
pattern: "^[1-9]+[0-9]*$",
|
|
28889
|
+
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
28890
|
+
}))))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
28891
|
+
style: {
|
|
28892
|
+
fontSize: "16px",
|
|
28893
|
+
fontWeight: "700",
|
|
28894
|
+
lineHeight: "18px",
|
|
28895
|
+
padding: "0px",
|
|
28896
|
+
margin: "0px 0px 10px 0px"
|
|
28897
|
+
}
|
|
28898
|
+
}, t("PT_AD_REBATE")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React__default.createElement("div", {
|
|
28899
|
+
className: "field"
|
|
28900
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
28901
|
+
isMandatory: true,
|
|
28902
|
+
option: Rebate_menu,
|
|
28903
|
+
optionKey: "title",
|
|
28904
|
+
select: e => selectedValuesData("adhocRebateReason", true, e),
|
|
28905
|
+
selected: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateReason_data) || "",
|
|
28906
|
+
name: "adhocRebateReason_data",
|
|
28907
|
+
isPropertyAssess: true,
|
|
28908
|
+
t: t
|
|
28909
|
+
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_REASON")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
28910
|
+
style: {
|
|
28911
|
+
background: "#FAFAFA"
|
|
28912
|
+
},
|
|
28913
|
+
t: t,
|
|
28914
|
+
type: "text",
|
|
28915
|
+
isMandatory: false,
|
|
28916
|
+
name: "adhocRebateComment",
|
|
28917
|
+
value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateComment) || "",
|
|
28918
|
+
onChange: e => selectedValuesData("adhocRebateComment", false, e)
|
|
28919
|
+
}, validation = {
|
|
28920
|
+
isRequired: true,
|
|
28921
|
+
pattern: "^[a-zA-Z ]*$",
|
|
28922
|
+
type: "text",
|
|
28923
|
+
title: t("TL_NAME_ERROR_MESSAGE")
|
|
28924
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React__default.createElement("div", {
|
|
28925
|
+
className: "field"
|
|
28926
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
28927
|
+
style: {
|
|
28928
|
+
background: "#FAFAFA"
|
|
28929
|
+
},
|
|
28930
|
+
t: t,
|
|
28931
|
+
type: "number",
|
|
28932
|
+
isMandatory: false,
|
|
28933
|
+
name: "adhocRebate",
|
|
28934
|
+
value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebate) || "",
|
|
28935
|
+
onChange: e => selectedValuesData("adhocRebate", false, e)
|
|
28936
|
+
}, validation = {
|
|
28937
|
+
isRequired: true,
|
|
28938
|
+
pattern: "^[1-9]+[0-9]*$",
|
|
28939
|
+
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
28940
|
+
}))))))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
28941
|
+
style: {
|
|
28942
|
+
zIndex: "10000"
|
|
28943
|
+
},
|
|
28944
|
+
warning: showToast === null || showToast === void 0 ? void 0 : showToast.isWarning,
|
|
28945
|
+
error: showToast !== null && showToast !== void 0 && showToast.isWarning ? false : true,
|
|
28946
|
+
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|
|
28947
|
+
onClose: closeToast,
|
|
28948
|
+
isDleteBtn: true
|
|
28949
|
+
})));
|
|
28950
|
+
};
|
|
28951
|
+
|
|
28952
|
+
const ViewBreakup = _ref => {
|
|
28953
|
+
var _wsAdditionalDetails$, _breakUpData$billSlab, _breakUpData$billSlab2, _breakUpData$billSlab3, _breakUpData$billSlab4, _breakUpData$billSlab5, _breakUpData$billSlab6;
|
|
28954
|
+
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
28955
|
+
const _useTranslation = reactI18next.useTranslation(),
|
|
28956
|
+
t = _useTranslation.t;
|
|
28957
|
+
const _useState = React.useState(false),
|
|
28958
|
+
popup = _useState[0],
|
|
28959
|
+
showPopUp = _useState[1];
|
|
28960
|
+
const _useState2 = React.useState({}),
|
|
28961
|
+
breakUpData = _useState2[0],
|
|
28962
|
+
setBreakUpData = _useState2[1];
|
|
28963
|
+
const Heading = props => {
|
|
28964
|
+
return /*#__PURE__*/React__default.createElement("h1", {
|
|
28965
|
+
className: "heading-m"
|
|
28966
|
+
}, props.label);
|
|
28967
|
+
};
|
|
28968
|
+
const Close = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
28969
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28970
|
+
viewBox: "0 0 24 24",
|
|
28971
|
+
fill: "#FFFFFF"
|
|
28972
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
28973
|
+
d: "M0 0h24v24H0V0z",
|
|
28974
|
+
fill: "none"
|
|
28975
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
28976
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
28977
|
+
}));
|
|
28978
|
+
const CloseBtn = props => {
|
|
28979
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
28980
|
+
className: "icon-bg-secondary",
|
|
28981
|
+
onClick: props.onClick
|
|
28982
|
+
}, /*#__PURE__*/React__default.createElement(Close, null));
|
|
28983
|
+
};
|
|
28984
|
+
const onPopupOpen = () => {
|
|
28985
|
+
var _sessionBillFormData$;
|
|
28986
|
+
let breakupData = wsAdditionalDetails.additionalDetails.data || {};
|
|
28987
|
+
const sessionBillData = sessionStorage.getItem("Digit.ADHOC_BILL_ADD_REBATE_DATA");
|
|
28988
|
+
const sessionBillFormData = sessionBillData ? JSON.parse(sessionBillData) : {};
|
|
28989
|
+
if (sessionBillFormData !== null && sessionBillFormData !== void 0 && (_sessionBillFormData$ = sessionBillFormData.value) !== null && _sessionBillFormData$ !== void 0 && _sessionBillFormData$.totalAmount) breakupData = sessionBillFormData === null || sessionBillFormData === void 0 ? void 0 : sessionBillFormData.value;
|
|
28990
|
+
setBreakUpData(breakupData);
|
|
28991
|
+
showPopUp(true);
|
|
28992
|
+
};
|
|
28993
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28994
|
+
style: {
|
|
28995
|
+
lineHeight: "19px",
|
|
28996
|
+
maxWidth: "950px",
|
|
28997
|
+
minWidth: "280px"
|
|
28998
|
+
}
|
|
28999
|
+
}, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isViewBreakup ? /*#__PURE__*/React__default.createElement("div", {
|
|
29000
|
+
onClick: e => onPopupOpen(),
|
|
29001
|
+
style: {
|
|
29002
|
+
marginTop: "12px"
|
|
29003
|
+
}
|
|
29004
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
29005
|
+
className: "add-details-link hover-button"
|
|
29006
|
+
}, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
29007
|
+
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
29008
|
+
label: t("WS_CALCULATION_BREAKUP")
|
|
29009
|
+
}),
|
|
29010
|
+
headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
|
|
29011
|
+
onClick: () => {
|
|
29012
|
+
showPopUp(false);
|
|
29013
|
+
}
|
|
29014
|
+
}),
|
|
29015
|
+
hideSubmit: true,
|
|
29016
|
+
popupStyles: {
|
|
29017
|
+
overflowY: "auto"
|
|
29018
|
+
},
|
|
29019
|
+
headerBarMainStyle: {
|
|
29020
|
+
marginBottom: "0px"
|
|
29021
|
+
},
|
|
29022
|
+
popupModuleMianStyles: {
|
|
29023
|
+
paddingTop: "0px"
|
|
29024
|
+
}
|
|
29025
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
29026
|
+
style: {
|
|
29027
|
+
padding: "10px",
|
|
29028
|
+
paddingTop: "0px"
|
|
29029
|
+
}
|
|
29030
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
29031
|
+
style: {
|
|
29032
|
+
margin: "10px 0px"
|
|
29033
|
+
}
|
|
29034
|
+
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : (_breakUpData$billSlab2 = _breakUpData$billSlab.FEE) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29035
|
+
className: "border-none",
|
|
29036
|
+
rowContainerStyle: {
|
|
29037
|
+
margin: "0px"
|
|
29038
|
+
},
|
|
29039
|
+
labelStyle: {
|
|
29040
|
+
width: "50%"
|
|
29041
|
+
},
|
|
29042
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
29043
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
29044
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
29045
|
+
textStyle: {
|
|
29046
|
+
textAlign: "right"
|
|
29047
|
+
}
|
|
29048
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
29049
|
+
style: {
|
|
29050
|
+
margin: "10px 0px"
|
|
29051
|
+
}
|
|
29052
|
+
}, t("WS_SERVICE_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : (_breakUpData$billSlab4 = _breakUpData$billSlab3.CHARGES) === null || _breakUpData$billSlab4 === void 0 ? void 0 : _breakUpData$billSlab4.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29053
|
+
className: "border-none",
|
|
29054
|
+
rowContainerStyle: {
|
|
29055
|
+
margin: "0px"
|
|
29056
|
+
},
|
|
29057
|
+
labelStyle: {
|
|
29058
|
+
width: "50%"
|
|
29059
|
+
},
|
|
29060
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
29061
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
29062
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
29063
|
+
textStyle: {
|
|
29064
|
+
textAlign: "right"
|
|
29065
|
+
}
|
|
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, {
|
|
29067
|
+
className: "border-none",
|
|
29068
|
+
rowContainerStyle: {
|
|
29069
|
+
margin: "0px"
|
|
29070
|
+
},
|
|
29071
|
+
labelStyle: {
|
|
29072
|
+
width: "50%"
|
|
29073
|
+
},
|
|
29074
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
29075
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
29076
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
29077
|
+
textStyle: {
|
|
29078
|
+
textAlign: "right"
|
|
29079
|
+
}
|
|
29080
|
+
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
29081
|
+
style: {
|
|
29082
|
+
color: "#cccccc",
|
|
29083
|
+
backgroundColor: "#cccccc",
|
|
29084
|
+
marginBottom: "10px"
|
|
29085
|
+
}
|
|
29086
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
29087
|
+
className: "border-none",
|
|
29088
|
+
rowContainerStyle: {
|
|
29089
|
+
margin: "0px"
|
|
29090
|
+
},
|
|
29091
|
+
labelStyle: {
|
|
29092
|
+
width: "50%"
|
|
29093
|
+
},
|
|
29094
|
+
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT3",
|
|
29095
|
+
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
29096
|
+
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount) || 0),
|
|
29097
|
+
textStyle: {
|
|
29098
|
+
textAlign: "right",
|
|
29099
|
+
fontWeight: "700",
|
|
29100
|
+
fontSize: "24px"
|
|
29101
|
+
}
|
|
29102
|
+
})))));
|
|
29103
|
+
};
|
|
29104
|
+
|
|
29105
|
+
const checkForNA$1 = value => {
|
|
29106
|
+
return value ? value : "CS_NA";
|
|
29107
|
+
};
|
|
29108
|
+
const WSApplicationDetails = () => {
|
|
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;
|
|
29110
|
+
const getDisconnectionNoticeSearch = function () {
|
|
29111
|
+
try {
|
|
29112
|
+
var _data$WaterConnection172, _data$WaterConnection173, _data$SewerageConnect167, _data$SewerageConnect168;
|
|
29113
|
+
let key = "ws-waterdisconnectionnotice";
|
|
29114
|
+
let details = {};
|
|
29115
|
+
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
29116
|
+
var _data$WaterConnection171, _PTData$Properties9;
|
|
29117
|
+
details = {
|
|
29118
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection171 = data.WaterConnection) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171[0], {
|
|
29119
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : _PTData$Properties9[0]
|
|
29120
|
+
})]
|
|
29121
|
+
};
|
|
29122
|
+
} else {
|
|
29123
|
+
var _data$SewerageConnect166, _PTData$Properties0;
|
|
29124
|
+
key = "ws-seweragedisconnectionnotice";
|
|
29125
|
+
details = {
|
|
29126
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect166 = data.SewerageConnections) === null || _data$SewerageConnect166 === void 0 ? void 0 : _data$SewerageConnect166[0], {
|
|
29127
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : _PTData$Properties0[0]
|
|
29128
|
+
})]
|
|
29129
|
+
};
|
|
29130
|
+
}
|
|
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), {
|
|
29134
|
+
fileStoreIds: response.filestoreIds[0]
|
|
29135
|
+
})).then(function (fileStore) {
|
|
29136
|
+
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
29137
|
+
});
|
|
29138
|
+
});
|
|
29139
|
+
} catch (e) {
|
|
29140
|
+
return Promise.reject(e);
|
|
29141
|
+
}
|
|
29142
|
+
};
|
|
29143
|
+
const _useTranslation = reactI18next.useTranslation(),
|
|
29144
|
+
t = _useTranslation.t;
|
|
29145
|
+
const menuRef = React.useRef();
|
|
29146
|
+
const user = Digit.UserService.getUser();
|
|
29147
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.userName : user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.mobileNumber;
|
|
29148
|
+
const tenantId = ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || (user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.permanentCity) || Digit.ULBService.getCurrentTenantId();
|
|
29149
|
+
const _useState = React.useState(false),
|
|
29150
|
+
showOptions = _useState[0],
|
|
29151
|
+
setShowOptions = _useState[1];
|
|
29152
|
+
const _useState2 = React.useState(false);
|
|
29153
|
+
const applicationNobyData = window.location.href.includes("SW_") ? window.location.href.substring(window.location.href.indexOf("SW_")) : window.location.href.substring(window.location.href.indexOf("WS_"));
|
|
29154
|
+
let filter1 = {
|
|
29155
|
+
tenantId: tenantId,
|
|
29156
|
+
applicationNumber: applicationNobyData
|
|
29157
|
+
};
|
|
29158
|
+
const _Digit$Hooks$ws$useMy = Digit.Hooks.ws.useMyApplicationSearch({
|
|
29159
|
+
filters: filter1,
|
|
29160
|
+
BusinessService: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SW" : "WS"
|
|
29161
|
+
}, {
|
|
29162
|
+
filters: filter1,
|
|
29163
|
+
privacy: Digit.Utils.getPrivacyObject()
|
|
29164
|
+
}),
|
|
29165
|
+
isLoading = _Digit$Hooks$ws$useMy.isLoading,
|
|
29166
|
+
data = _Digit$Hooks$ws$useMy.data;
|
|
29167
|
+
const closeModal = () => {
|
|
29168
|
+
setShowOptions(false);
|
|
29169
|
+
};
|
|
29170
|
+
Digit.Hooks.useClickOutside(menuRef, closeModal, showOptions);
|
|
29171
|
+
const fetchBillParams = {
|
|
29172
|
+
consumerCode: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? (data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : (_data$WaterConnection2 = _data$WaterConnection[0]) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2.connectionNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : (_data$SewerageConnect2 = _data$SewerageConnect[0]) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2.connectionNo) : (data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnection) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3[0]) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.applicationNo)
|
|
29173
|
+
};
|
|
29174
|
+
const _Digit$Hooks$useCommo = Digit.Hooks.useCommonMDMS(tenantId, "common-masters", "ReceiptKey", {
|
|
29175
|
+
select: data => {
|
|
29176
|
+
var _data$commonMasters, _data$commonMasters$u, _data$commonMasters$u2;
|
|
29177
|
+
return ((_data$commonMasters = data["common-masters"]) === null || _data$commonMasters === void 0 ? void 0 : (_data$commonMasters$u = _data$commonMasters.uiCommonPay) === null || _data$commonMasters$u === void 0 ? void 0 : (_data$commonMasters$u2 = _data$commonMasters$u.filter(_ref => {
|
|
29178
|
+
var _WSONE_TIME_FEE;
|
|
29179
|
+
let code = _ref.code;
|
|
29180
|
+
return (_WSONE_TIME_FEE = "WS.ONE_TIME_FEE") === null || _WSONE_TIME_FEE === void 0 ? void 0 : _WSONE_TIME_FEE.includes(code);
|
|
29181
|
+
})[0]) === null || _data$commonMasters$u2 === void 0 ? void 0 : _data$commonMasters$u2.receiptKey) || "consolidatedreceipt";
|
|
29182
|
+
}
|
|
29183
|
+
}),
|
|
29184
|
+
generatePdfKey = _Digit$Hooks$useCommo.data;
|
|
29185
|
+
const paymentDetails = Digit.Hooks.useFetchBillsForBuissnessService(_extends({
|
|
29186
|
+
businessService: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "WS" : "WS.ONE_TIME_FEE"
|
|
29187
|
+
}, fetchBillParams, {
|
|
29188
|
+
tenantId: tenantId
|
|
29189
|
+
}), {
|
|
29190
|
+
enabled: data !== null && data !== void 0 && (_data$WaterConnection5 = data.WaterConnection) !== null && _data$WaterConnection5 !== void 0 && (_data$WaterConnection6 = _data$WaterConnection5[0]) !== null && _data$WaterConnection6 !== void 0 && _data$WaterConnection6.applicationNo || data !== null && data !== void 0 && (_data$SewerageConnect5 = data.SewerageConnections) !== null && _data$SewerageConnect5 !== void 0 && (_data$SewerageConnect6 = _data$SewerageConnect5[0]) !== null && _data$SewerageConnect6 !== void 0 && _data$SewerageConnect6.applicationNo ? true : false,
|
|
29191
|
+
retry: false
|
|
29192
|
+
});
|
|
29193
|
+
const propertyId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection7 = data.WaterConnection) === null || _data$WaterConnection7 === void 0 ? void 0 : (_data$WaterConnection8 = _data$WaterConnection7[0]) === null || _data$WaterConnection8 === void 0 ? void 0 : _data$WaterConnection8.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect7 = data.SewerageConnections) === null || _data$SewerageConnect7 === void 0 ? void 0 : (_data$SewerageConnect8 = _data$SewerageConnect7[0]) === null || _data$SewerageConnect8 === void 0 ? void 0 : _data$SewerageConnect8.propertyId);
|
|
29194
|
+
const propertyTenantId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection9 = data.WaterConnection) === null || _data$WaterConnection9 === void 0 ? void 0 : (_data$WaterConnection0 = _data$WaterConnection9[0]) === null || _data$WaterConnection0 === void 0 ? void 0 : _data$WaterConnection0.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect9 = data.SewerageConnections) === null || _data$SewerageConnect9 === void 0 ? void 0 : (_data$SewerageConnect0 = _data$SewerageConnect9[0]) === null || _data$SewerageConnect0 === void 0 ? void 0 : _data$SewerageConnect0.tenantId) || tenantId;
|
|
29195
|
+
const _Digit$Hooks$pt$usePr = Digit.Hooks.pt.usePropertySearch({
|
|
29196
|
+
filters: {
|
|
29197
|
+
propertyIds: propertyId
|
|
29198
|
+
},
|
|
29199
|
+
tenantId: propertyTenantId
|
|
29200
|
+
}, {
|
|
29201
|
+
filters: {
|
|
29202
|
+
propertyIds: propertyId
|
|
29203
|
+
},
|
|
29204
|
+
tenantId: propertyTenantId,
|
|
29205
|
+
enabled: !!propertyId,
|
|
29206
|
+
privacy: Digit.Utils.getPrivacyObject()
|
|
29207
|
+
}),
|
|
29208
|
+
PTData = _Digit$Hooks$pt$usePr.data;
|
|
29209
|
+
const applicationData = (data === null || data === void 0 ? void 0 : (_data$WaterConnection1 = data.WaterConnection) === null || _data$WaterConnection1 === void 0 ? void 0 : _data$WaterConnection1[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect1 = data.SewerageConnections) === null || _data$SewerageConnect1 === void 0 ? void 0 : _data$SewerageConnect1[0]);
|
|
29210
|
+
const additionalDetails = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.additionalDetails) || {};
|
|
29211
|
+
const connectionDetails = additionalDetails;
|
|
29212
|
+
const useDetails = additionalDetails;
|
|
29213
|
+
const djbEmployee = additionalDetails;
|
|
29214
|
+
const bankDetails = additionalDetails;
|
|
29215
|
+
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.address) || additionalDetails;
|
|
29216
|
+
const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
|
|
29217
|
+
privacy: {
|
|
29218
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection10 = data.WaterConnection) === null || _data$WaterConnection10 === void 0 ? void 0 : (_data$WaterConnection11 = _data$WaterConnection10[0]) === null || _data$WaterConnection11 === void 0 ? void 0 : (_data$WaterConnection12 = _data$WaterConnection11.connectionHolders) === null || _data$WaterConnection12 === void 0 ? void 0 : (_data$WaterConnection13 = _data$WaterConnection12[0]) === null || _data$WaterConnection13 === void 0 ? void 0 : _data$WaterConnection13.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect10 = data.SewerageConnections) === null || _data$SewerageConnect10 === void 0 ? void 0 : (_data$SewerageConnect11 = _data$SewerageConnect10[0]) === null || _data$SewerageConnect11 === void 0 ? void 0 : (_data$SewerageConnect12 = _data$SewerageConnect11.connectionHolders) === null || _data$SewerageConnect12 === void 0 ? void 0 : (_data$SewerageConnect13 = _data$SewerageConnect12[0]) === null || _data$SewerageConnect13 === void 0 ? void 0 : _data$SewerageConnect13.uuid,
|
|
29219
|
+
fieldName: "connectionHoldersMobileNumber",
|
|
29220
|
+
model: "WnSConnectionOwner"
|
|
29221
|
+
}
|
|
29222
|
+
}) || false;
|
|
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;
|
|
29225
|
+
const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, applicationNobyData, applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SEWERAGE" : "WATER", user),
|
|
29226
|
+
isAppDetailsLoading = _Digit$Hooks$ws$useWS.isLoading,
|
|
29227
|
+
appDetailsData = _Digit$Hooks$ws$useWS.data;
|
|
29228
|
+
const feeEstimationSection = appDetailsData === null || appDetailsData === void 0 ? void 0 : (_appDetailsData$appli = appDetailsData.applicationDetails) === null || _appDetailsData$appli === void 0 ? void 0 : _appDetailsData$appli.find(section => (section === null || section === void 0 ? void 0 : section.title) === "WS_TASK_DETAILS_FEE_ESTIMATE");
|
|
29229
|
+
if (feeEstimationSection && feeEstimationSection.additionalDetails) {
|
|
29230
|
+
feeEstimationSection.additionalDetails.isPaid = isPaid;
|
|
29231
|
+
}
|
|
29232
|
+
if (isLoading || isAppDetailsLoading) {
|
|
29233
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
29234
|
+
}
|
|
29235
|
+
const handleDownloadPdf = function () {
|
|
29236
|
+
try {
|
|
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]);
|
|
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);
|
|
29241
|
+
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
29242
|
+
setShowOptions(false);
|
|
29243
|
+
return Promise.resolve();
|
|
29244
|
+
} catch (e) {
|
|
29245
|
+
return Promise.reject(e);
|
|
29246
|
+
}
|
|
29247
|
+
};
|
|
29248
|
+
const handleDownloadDisconnectPdf = function () {
|
|
29249
|
+
try {
|
|
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]);
|
|
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);
|
|
29254
|
+
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
29255
|
+
setShowOptions(false);
|
|
29256
|
+
return Promise.resolve();
|
|
29257
|
+
} catch (e) {
|
|
29258
|
+
return Promise.reject(e);
|
|
29259
|
+
}
|
|
29260
|
+
};
|
|
29261
|
+
const printApplicationReceipts = function () {
|
|
29262
|
+
try {
|
|
29263
|
+
var _data$WaterConnection22, _data$WaterConnection23, _data$WaterConnection24, _data$WaterConnection25, _data$SewerageConnect22, _data$SewerageConnect23;
|
|
29264
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
29265
|
+
const state = Digit.ULBService.getStateId();
|
|
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";
|
|
29267
|
+
return Promise.resolve(Digit.PaymentService.getReciept(tenantId, key, {
|
|
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
|
|
29269
|
+
})).then(function (payments) {
|
|
29270
|
+
var _payments$Payments$;
|
|
29271
|
+
function _temp2() {
|
|
29272
|
+
return Promise.resolve(Digit.PaymentService.printReciept(state, {
|
|
29273
|
+
fileStoreIds: response.filestoreIds[0]
|
|
29274
|
+
})).then(function (fileStore) {
|
|
29275
|
+
window.open(fileStore[response.filestoreIds[0]], "_blank");
|
|
29276
|
+
});
|
|
29277
|
+
}
|
|
29278
|
+
let response = {
|
|
29279
|
+
filestoreIds: [(_payments$Payments$ = payments.Payments[0]) === null || _payments$Payments$ === void 0 ? void 0 : _payments$Payments$.fileStoreId]
|
|
29280
|
+
};
|
|
29281
|
+
const _temp = function (_payments$Payments$2) {
|
|
29282
|
+
if (!((_payments$Payments$2 = payments.Payments[0]) !== null && _payments$Payments$2 !== void 0 && _payments$Payments$2.fileStoreId)) {
|
|
29283
|
+
return Promise.resolve(Digit.PaymentService.generatePdf(state, {
|
|
29284
|
+
Payments: payments.Payments
|
|
29285
|
+
}, generatePdfKey)).then(function (_Digit$PaymentService) {
|
|
29286
|
+
response = _Digit$PaymentService;
|
|
29287
|
+
});
|
|
29288
|
+
}
|
|
29289
|
+
}();
|
|
29290
|
+
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
29291
|
+
});
|
|
29292
|
+
} catch (e) {
|
|
29293
|
+
return Promise.reject(e);
|
|
29294
|
+
}
|
|
29295
|
+
};
|
|
29296
|
+
let downloadOptions = [];
|
|
29297
|
+
const wsEstimateDownloadObject = {
|
|
29298
|
+
order: 1,
|
|
29299
|
+
label: t("WS_ESTIMATION_NOTICE"),
|
|
29300
|
+
onClick: () => {
|
|
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);
|
|
29303
|
+
}
|
|
29304
|
+
};
|
|
29305
|
+
const sanctionDownloadObject = {
|
|
29306
|
+
order: 2,
|
|
29307
|
+
label: t("WS_SANCTION_LETTER"),
|
|
29308
|
+
onClick: () => {
|
|
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);
|
|
29311
|
+
}
|
|
29312
|
+
};
|
|
29313
|
+
const applicationDownloadObject = {
|
|
29314
|
+
order: 3,
|
|
29315
|
+
label: t("WS_APPLICATION"),
|
|
29316
|
+
onClick: handleDownloadPdf
|
|
29317
|
+
};
|
|
29318
|
+
const receiptApplicationFeeDownloadObject = {
|
|
29319
|
+
order: 4,
|
|
29320
|
+
label: t("DOWNLOAD_RECEIPT_HEADER"),
|
|
29321
|
+
onClick: printApplicationReceipts
|
|
29322
|
+
};
|
|
29323
|
+
const disconnectionNoticeNApplicationFormOptions = [{
|
|
29324
|
+
order: 1,
|
|
29325
|
+
label: t("WS_APPLICATION"),
|
|
29326
|
+
onClick: handleDownloadDisconnectPdf
|
|
29327
|
+
}, {
|
|
29328
|
+
order: 2,
|
|
29329
|
+
label: t("WS_DISCONNECTION_NOTICE_LABEL"),
|
|
29330
|
+
onClick: () => getDisconnectionNoticeSearch()
|
|
29331
|
+
}];
|
|
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);
|
|
29334
|
+
switch (appStatus) {
|
|
29335
|
+
case "PENDING_FOR_DOCUMENT_VERIFICATION":
|
|
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")) {
|
|
29337
|
+
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
29338
|
+
} else {
|
|
29339
|
+
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
29340
|
+
}
|
|
29341
|
+
break;
|
|
29342
|
+
case "PENDING_FOR_CITIZEN_ACTION":
|
|
29343
|
+
case "PENDING_FOR_FIELD_INSPECTION":
|
|
29344
|
+
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
29345
|
+
break;
|
|
29346
|
+
case "PENDING_APPROVAL_FOR_CONNECTION":
|
|
29347
|
+
case "PENDING_FOR_PAYMENT":
|
|
29348
|
+
downloadOptions = downloadOptions.concat(applicationDownloadObject, wsEstimateDownloadObject);
|
|
29349
|
+
break;
|
|
29350
|
+
case "PENDING_FOR_CONNECTION_ACTIVATION":
|
|
29351
|
+
case "CONNECTION_ACTIVATED":
|
|
29352
|
+
downloadOptions = downloadOptions.concat(sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject, receiptApplicationFeeDownloadObject);
|
|
29353
|
+
break;
|
|
29354
|
+
case "REJECTED":
|
|
29355
|
+
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
29356
|
+
break;
|
|
29357
|
+
case "PENDING_FOR_DISCONNECTION_EXECUTION":
|
|
29358
|
+
case "DISCONNECTION_EXECUTED":
|
|
29359
|
+
case "PENDING_FOR_PAYMENT":
|
|
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")) {
|
|
29361
|
+
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
29362
|
+
} else {
|
|
29363
|
+
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
29364
|
+
}
|
|
29365
|
+
break;
|
|
29366
|
+
default:
|
|
29367
|
+
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
29368
|
+
break;
|
|
29369
|
+
}
|
|
29370
|
+
downloadOptions.sort(function (a, b) {
|
|
29371
|
+
return a.order - b.order;
|
|
29372
|
+
});
|
|
29373
|
+
let serviceType = data && data !== null && data !== void 0 && (_data$WaterConnection42 = data.WaterConnection) !== null && _data$WaterConnection42 !== void 0 && _data$WaterConnection42[0] ? "WATER" : "SEWERAGE";
|
|
29374
|
+
sessionStorage.setItem("ApplicationNoState", applicationNobyData);
|
|
29375
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29376
|
+
className: "employee-main-application-details",
|
|
29377
|
+
style: {
|
|
29378
|
+
display: "flex",
|
|
29379
|
+
gap: "20px"
|
|
29380
|
+
}
|
|
29381
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
29382
|
+
className: "workflow-timeline-wrapper no-scrollbar",
|
|
29383
|
+
style: {
|
|
29384
|
+
flex: "1 1 300px",
|
|
29385
|
+
maxWidth: "400px"
|
|
29386
|
+
}
|
|
29387
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
29388
|
+
id: "timeline"
|
|
29389
|
+
}, /*#__PURE__*/React__default.createElement(WSWFApplicationTimeline, {
|
|
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),
|
|
29392
|
+
paymentbuttonenabled: false
|
|
29393
|
+
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
29394
|
+
style: {
|
|
29395
|
+
flex: "2 1 500px"
|
|
29396
|
+
}
|
|
29397
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28664
29398
|
className: "cardHeaderWithOptions",
|
|
28665
29399
|
style: {
|
|
28666
29400
|
marginRight: "auto",
|
|
@@ -28687,57 +29421,51 @@ const WSApplicationDetails = () => {
|
|
|
28687
29421
|
className: "hide-seperator"
|
|
28688
29422
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28689
29423
|
label: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
28690
|
-
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),
|
|
28691
29425
|
textStyle: {}
|
|
28692
|
-
}), ((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, {
|
|
28693
29427
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
28694
|
-
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),
|
|
28695
29429
|
textStyle: {
|
|
28696
29430
|
wordBreak: "break-word"
|
|
28697
29431
|
}
|
|
28698
29432
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28699
29433
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
28700
|
-
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))),
|
|
28701
29435
|
textStyle: {
|
|
28702
29436
|
wordBreak: "break-word"
|
|
28703
29437
|
}
|
|
28704
|
-
}), ((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, {
|
|
28705
29439
|
label: t("WS_DISCONNECTION_PROPOSED_DATE"),
|
|
28706
|
-
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),
|
|
28707
29441
|
textStyle: {
|
|
28708
29442
|
wordBreak: "break-word"
|
|
28709
29443
|
}
|
|
28710
|
-
}), ((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, {
|
|
28711
29445
|
label: t("WS_DISCONNECTION_EXECUTED_DATE"),
|
|
28712
|
-
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),
|
|
28713
29447
|
textStyle: {
|
|
28714
29448
|
wordBreak: "break-word"
|
|
28715
29449
|
}
|
|
28716
|
-
}), ((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, {
|
|
28717
29451
|
label: t("WS_DISCONNECTION_REASON"),
|
|
28718
|
-
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"),
|
|
28719
29453
|
textStyle: {
|
|
28720
29454
|
wordBreak: "break-word"
|
|
28721
29455
|
}
|
|
28722
|
-
})),
|
|
28723
|
-
|
|
28724
|
-
|
|
28725
|
-
|
|
28726
|
-
|
|
28727
|
-
label: t(bill === null || bill === void 0 ? void 0 : bill.taxHeadCode),
|
|
28728
|
-
text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2)
|
|
28729
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28730
|
-
label: t("WS_TOTAL_AMOUNT_DUE"),
|
|
28731
|
-
text: "\u20B9" + Number(isPaid ? 0 : paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data7 = paymentDetails.data) === null || _paymentDetails$data7 === void 0 ? void 0 : (_paymentDetails$data8 = _paymentDetails$data7.Bill) === null || _paymentDetails$data8 === void 0 ? void 0 : (_paymentDetails$data9 = _paymentDetails$data8[0]) === null || _paymentDetails$data9 === void 0 ? void 0 : (_paymentDetails$data0 = _paymentDetails$data9.billDetails) === null || _paymentDetails$data0 === void 0 ? void 0 : (_paymentDetails$data1 = _paymentDetails$data0[0]) === null || _paymentDetails$data1 === void 0 ? void 0 : _paymentDetails$data1.amount).toFixed(2)
|
|
28732
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28733
|
-
label: t("WS_COMMON_TABLE_COL_APPLICATION_STATUS"),
|
|
28734
|
-
text: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data10 = paymentDetails.data) === null || _paymentDetails$data10 === void 0 ? void 0 : (_paymentDetails$data11 = _paymentDetails$data10.Bill) === null || _paymentDetails$data11 === void 0 ? void 0 : (_paymentDetails$data12 = _paymentDetails$data11[0]) === null || _paymentDetails$data12 === void 0 ? void 0 : (_paymentDetails$data13 = _paymentDetails$data12.billDetails) === null || _paymentDetails$data13 === void 0 ? void 0 : (_paymentDetails$data14 = _paymentDetails$data13[0]) === null || _paymentDetails$data14 === void 0 ? void 0 : _paymentDetails$data14.amount).toFixed(2) == 0 ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
28735
|
-
textStyle: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data15 = paymentDetails.data) === null || _paymentDetails$data15 === void 0 ? void 0 : (_paymentDetails$data16 = _paymentDetails$data15.Bill) === null || _paymentDetails$data16 === void 0 ? void 0 : (_paymentDetails$data17 = _paymentDetails$data16[0]) === null || _paymentDetails$data17 === void 0 ? void 0 : (_paymentDetails$data18 = _paymentDetails$data17.billDetails) === null || _paymentDetails$data18 === void 0 ? void 0 : (_paymentDetails$data19 = _paymentDetails$data18[0]) === null || _paymentDetails$data19 === void 0 ? void 0 : _paymentDetails$data19.amount).toFixed(2) == 0 ? {
|
|
28736
|
-
color: "darkgreen"
|
|
28737
|
-
} : {
|
|
28738
|
-
color: "red"
|
|
29456
|
+
})), feeEstimationSection && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
29457
|
+
style: {
|
|
29458
|
+
marginBottom: "16px",
|
|
29459
|
+
marginTop: "16px",
|
|
29460
|
+
fontSize: "24px"
|
|
28739
29461
|
}
|
|
28740
|
-
}))
|
|
29462
|
+
}, t(feeEstimationSection.title)), /*#__PURE__*/React__default.createElement(WSFeeEstimation, {
|
|
29463
|
+
wsAdditionalDetails: feeEstimationSection,
|
|
29464
|
+
workflowDetails: null
|
|
29465
|
+
}), /*#__PURE__*/React__default.createElement(ViewBreakup, {
|
|
29466
|
+
wsAdditionalDetails: feeEstimationSection,
|
|
29467
|
+
workflowDetails: null
|
|
29468
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28741
29469
|
styles: {
|
|
28742
29470
|
fontSize: "28px"
|
|
28743
29471
|
}
|
|
@@ -28770,18 +29498,18 @@ const WSApplicationDetails = () => {
|
|
|
28770
29498
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28771
29499
|
label: t("WS_NATURE_OF_WORK"),
|
|
28772
29500
|
text: "" + t(checkForNA$1(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.natureOfWork))
|
|
28773
|
-
}))), (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, {
|
|
28774
29502
|
styles: {
|
|
28775
29503
|
fontSize: "28px"
|
|
28776
29504
|
}
|
|
28777
29505
|
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28778
29506
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
28779
|
-
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),
|
|
28780
29508
|
textStyle: {
|
|
28781
29509
|
whiteSpace: "pre"
|
|
28782
29510
|
},
|
|
28783
29511
|
privacy: {
|
|
28784
|
-
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,
|
|
28785
29513
|
fieldName: "connectionHoldersMobileNumber",
|
|
28786
29514
|
model: "WnSConnectionOwner",
|
|
28787
29515
|
showValue: false,
|
|
@@ -28798,18 +29526,18 @@ const WSApplicationDetails = () => {
|
|
|
28798
29526
|
}
|
|
28799
29527
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28800
29528
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
28801
|
-
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),
|
|
28802
29530
|
textStyle: {
|
|
28803
29531
|
whiteSpace: "pre"
|
|
28804
29532
|
}
|
|
28805
29533
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28806
29534
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
28807
|
-
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)),
|
|
28808
29536
|
textStyle: {
|
|
28809
29537
|
whiteSpace: "pre"
|
|
28810
29538
|
},
|
|
28811
29539
|
privacy: {
|
|
28812
|
-
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,
|
|
28813
29541
|
fieldName: "gender",
|
|
28814
29542
|
model: "WnSConnectionOwner",
|
|
28815
29543
|
showValue: false,
|
|
@@ -28826,12 +29554,12 @@ const WSApplicationDetails = () => {
|
|
|
28826
29554
|
}
|
|
28827
29555
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28828
29556
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
28829
|
-
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"),
|
|
28830
29558
|
textStyle: {
|
|
28831
29559
|
whiteSpace: "pre"
|
|
28832
29560
|
},
|
|
28833
29561
|
privacy: {
|
|
28834
|
-
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,
|
|
28835
29563
|
fieldName: "fatherOrHusbandName",
|
|
28836
29564
|
model: "WnSConnectionOwner",
|
|
28837
29565
|
showValue: false,
|
|
@@ -28848,12 +29576,12 @@ const WSApplicationDetails = () => {
|
|
|
28848
29576
|
}
|
|
28849
29577
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28850
29578
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
28851
|
-
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"),
|
|
28852
29580
|
textStyle: {
|
|
28853
29581
|
whiteSpace: "pre"
|
|
28854
29582
|
},
|
|
28855
29583
|
privacy: {
|
|
28856
|
-
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,
|
|
28857
29585
|
fieldName: "relationship",
|
|
28858
29586
|
model: "WnSConnection",
|
|
28859
29587
|
showValue: false,
|
|
@@ -28870,9 +29598,9 @@ const WSApplicationDetails = () => {
|
|
|
28870
29598
|
}
|
|
28871
29599
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28872
29600
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
28873
|
-
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"),
|
|
28874
29602
|
privacy: {
|
|
28875
|
-
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,
|
|
28876
29604
|
fieldName: "correspondenceAddress",
|
|
28877
29605
|
model: "WnSConnectionOwner",
|
|
28878
29606
|
showValue: false,
|
|
@@ -28889,12 +29617,12 @@ const WSApplicationDetails = () => {
|
|
|
28889
29617
|
}
|
|
28890
29618
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28891
29619
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
28892
|
-
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",
|
|
28893
29621
|
textStyle: {
|
|
28894
29622
|
whiteSpace: "pre"
|
|
28895
29623
|
},
|
|
28896
29624
|
privacy: {
|
|
28897
|
-
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,
|
|
28898
29626
|
fieldName: "connectionHoldersEmailId",
|
|
28899
29627
|
model: "WnSConnectionOwner",
|
|
28900
29628
|
showValue: false,
|
|
@@ -28915,7 +29643,7 @@ const WSApplicationDetails = () => {
|
|
|
28915
29643
|
}
|
|
28916
29644
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28917
29645
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
28918
|
-
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),
|
|
28919
29647
|
textStyle: {
|
|
28920
29648
|
wordBreak: "break-word"
|
|
28921
29649
|
}
|
|
@@ -28956,7 +29684,7 @@ const WSApplicationDetails = () => {
|
|
|
28956
29684
|
}
|
|
28957
29685
|
}
|
|
28958
29686
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28959
|
-
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))
|
|
28960
29688
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
28961
29689
|
style: {
|
|
28962
29690
|
textAlign: "left"
|
|
@@ -29110,15 +29838,15 @@ const WSApplicationDetails = () => {
|
|
|
29110
29838
|
styles: {
|
|
29111
29839
|
fontSize: "28px"
|
|
29112
29840
|
}
|
|
29113
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
29114
|
-
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;
|
|
29115
29843
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29116
29844
|
key: "doc-" + index
|
|
29117
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, {
|
|
29118
|
-
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,
|
|
29119
29847
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
29120
29848
|
index: index
|
|
29121
|
-
}), (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", {
|
|
29122
29850
|
style: {
|
|
29123
29851
|
color: "#cccccc",
|
|
29124
29852
|
backgroundColor: "#cccccc",
|
|
@@ -29127,15 +29855,15 @@ const WSApplicationDetails = () => {
|
|
|
29127
29855
|
marginBottom: "20px"
|
|
29128
29856
|
}
|
|
29129
29857
|
}) : null)));
|
|
29130
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
29131
|
-
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;
|
|
29132
29860
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29133
29861
|
key: "doc-" + index
|
|
29134
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, {
|
|
29135
|
-
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,
|
|
29136
29864
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
29137
29865
|
index: index
|
|
29138
|
-
}), (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", {
|
|
29139
29867
|
style: {
|
|
29140
29868
|
color: "white",
|
|
29141
29869
|
backgroundColor: "white",
|
|
@@ -29144,36 +29872,36 @@ const WSApplicationDetails = () => {
|
|
|
29144
29872
|
marginBottom: "20px"
|
|
29145
29873
|
}
|
|
29146
29874
|
}) : null)));
|
|
29147
|
-
})), (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, {
|
|
29148
29876
|
to: {
|
|
29149
|
-
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$
|
|
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),
|
|
29150
29878
|
state: {}
|
|
29151
29879
|
}
|
|
29152
29880
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
29153
29881
|
label: t("MAKE_PAYMENT")
|
|
29154
|
-
})) : 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, {
|
|
29155
29883
|
to: {
|
|
29156
|
-
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)),
|
|
29157
29885
|
state: {
|
|
29158
|
-
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))
|
|
29159
29887
|
}
|
|
29160
29888
|
}
|
|
29161
29889
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
29162
29890
|
label: t("COMMON_EDIT")
|
|
29163
|
-
})) : 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, {
|
|
29164
29892
|
to: {
|
|
29165
29893
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
29166
29894
|
state: {
|
|
29167
|
-
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))
|
|
29168
29896
|
}
|
|
29169
29897
|
}
|
|
29170
29898
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
29171
29899
|
label: t("RESUBMIT_APPLICATION"),
|
|
29172
29900
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
29173
|
-
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],
|
|
29174
29902
|
serviceType: "SEWERAGE",
|
|
29175
29903
|
WSDisconnectionForm: {
|
|
29176
|
-
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 ? {
|
|
29177
29905
|
code: "type",
|
|
29178
29906
|
value: {
|
|
29179
29907
|
name: "Temporary",
|
|
@@ -29190,18 +29918,18 @@ const WSApplicationDetails = () => {
|
|
|
29190
29918
|
code: "Permanent"
|
|
29191
29919
|
}
|
|
29192
29920
|
},
|
|
29193
|
-
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),
|
|
29194
29922
|
reason: {
|
|
29195
29923
|
code: "reason",
|
|
29196
|
-
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
|
|
29197
29925
|
},
|
|
29198
|
-
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
|
|
29199
29927
|
}
|
|
29200
29928
|
} : {
|
|
29201
|
-
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],
|
|
29202
29930
|
serviceType: "WATER",
|
|
29203
29931
|
WSDisconnectionForm: {
|
|
29204
|
-
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 ? {
|
|
29205
29933
|
code: "type",
|
|
29206
29934
|
value: {
|
|
29207
29935
|
name: "Temporary",
|
|
@@ -29218,12 +29946,12 @@ const WSApplicationDetails = () => {
|
|
|
29218
29946
|
code: "Permanent"
|
|
29219
29947
|
}
|
|
29220
29948
|
},
|
|
29221
|
-
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),
|
|
29222
29950
|
reason: {
|
|
29223
29951
|
code: "reason",
|
|
29224
|
-
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
|
|
29225
29953
|
},
|
|
29226
|
-
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
|
|
29227
29955
|
}
|
|
29228
29956
|
})
|
|
29229
29957
|
})) : null)))));
|
|
@@ -31457,7 +32185,7 @@ const WSConnection = _ref => {
|
|
|
31457
32185
|
};
|
|
31458
32186
|
|
|
31459
32187
|
const MyConnections = _ref => {
|
|
31460
|
-
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;
|
|
31461
32189
|
const _useTranslation = reactI18next.useTranslation(),
|
|
31462
32190
|
t = _useTranslation.t;
|
|
31463
32191
|
const user = Digit.UserService.getUser();
|
|
@@ -31517,6 +32245,9 @@ const MyConnections = _ref => {
|
|
|
31517
32245
|
const _useState2 = React.useState(10),
|
|
31518
32246
|
pageSize = _useState2[0],
|
|
31519
32247
|
setPageSize = _useState2[1];
|
|
32248
|
+
const _useState3 = React.useState(null),
|
|
32249
|
+
searchParams = _useState3[0],
|
|
32250
|
+
setSearchParams = _useState3[1];
|
|
31520
32251
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
31521
32252
|
const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
|
|
31522
32253
|
className: "cell-text"
|
|
@@ -31590,19 +32321,182 @@ const MyConnections = _ref => {
|
|
|
31590
32321
|
}
|
|
31591
32322
|
}];
|
|
31592
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
|
+
};
|
|
31593
32338
|
if (isLoading || PTisLoading || isSWLoading) {
|
|
31594
32339
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
31595
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
|
+
}));
|
|
31596
32366
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
31597
32367
|
t: t
|
|
31598
|
-
}), /*#__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", {
|
|
31599
32493
|
key: index
|
|
31600
32494
|
}, /*#__PURE__*/React__default.createElement(WSConnection, {
|
|
31601
32495
|
application: application
|
|
31602
32496
|
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
|
|
31603
32497
|
t: t,
|
|
31604
|
-
data:
|
|
31605
|
-
totalRecords:
|
|
32498
|
+
data: filteredConnections.slice(pageOffset, pageOffset + pageSize),
|
|
32499
|
+
totalRecords: filteredConnections.length,
|
|
31606
32500
|
columns: columns,
|
|
31607
32501
|
getCellProps: cellInfo => {
|
|
31608
32502
|
return {
|
|
@@ -39009,7 +39903,12 @@ const ActionModal$5 = _ref => {
|
|
|
39009
39903
|
const inspectionInformationData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
|
|
39010
39904
|
if (inspectionInformationData) {
|
|
39011
39905
|
try {
|
|
39012
|
-
|
|
39906
|
+
const parsedInspectionData = JSON.parse(inspectionInformationData);
|
|
39907
|
+
if (parsedInspectionData !== null && parsedInspectionData !== void 0 && parsedInspectionData.inspectionDate) {
|
|
39908
|
+
const dateVal = parsedInspectionData.inspectionDate;
|
|
39909
|
+
parsedInspectionData.inspectionDate = typeof dateVal === 'string' ? new Date(dateVal).getTime() : dateVal;
|
|
39910
|
+
}
|
|
39911
|
+
applicationData.inspectionInformation = parsedInspectionData;
|
|
39013
39912
|
} catch (e) {
|
|
39014
39913
|
console.error("Error parsing inspection information data", e);
|
|
39015
39914
|
}
|
|
@@ -42068,504 +42967,108 @@ function TLTradeUnits(_ref) {
|
|
|
42068
42967
|
key: t(unit === null || unit === void 0 ? void 0 : unit.title),
|
|
42069
42968
|
style: {
|
|
42070
42969
|
marginTop: "19px",
|
|
42071
|
-
background: "#FAFAFA",
|
|
42072
|
-
border: "1px solid #D6D5D4",
|
|
42073
|
-
borderRadius: "4px",
|
|
42074
|
-
padding: "8px",
|
|
42075
|
-
lineHeight: "19px",
|
|
42076
|
-
maxWidth: "600px",
|
|
42077
|
-
minWidth: "280px"
|
|
42078
|
-
}
|
|
42079
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
42080
|
-
style: {
|
|
42081
|
-
marginBottom: "9px",
|
|
42082
|
-
paddingBottom: "9px",
|
|
42083
|
-
color: "#0B0C0C",
|
|
42084
|
-
fontSize: "16px",
|
|
42085
|
-
lineHeight: "19px"
|
|
42086
|
-
}
|
|
42087
|
-
}, t(unit === null || unit === void 0 ? void 0 : unit.title) + " " + (index + 1)), /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
42088
|
-
key: index
|
|
42089
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
42090
|
-
style: {
|
|
42091
|
-
position: "relative",
|
|
42092
|
-
marginTop: "19px"
|
|
42093
|
-
}
|
|
42094
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
42095
|
-
style: {
|
|
42096
|
-
position: "absolute",
|
|
42097
|
-
maxWidth: "640px",
|
|
42098
|
-
top: 0,
|
|
42099
|
-
left: 0,
|
|
42100
|
-
bottom: 0,
|
|
42101
|
-
right: 0,
|
|
42102
|
-
width: "auto"
|
|
42103
|
-
}
|
|
42104
|
-
}), unit === null || unit === void 0 ? void 0 : (_unit$values = unit.values) === null || _unit$values === void 0 ? void 0 : _unit$values.map((value, index) => {
|
|
42105
|
-
var _value$values;
|
|
42106
|
-
if (value.map === true && value.value !== "N/A") {
|
|
42107
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42108
|
-
key: t(value.title),
|
|
42109
|
-
label: t(value.title),
|
|
42110
|
-
text: /*#__PURE__*/React__default.createElement("img", {
|
|
42111
|
-
src: t(value.value),
|
|
42112
|
-
alt: ""
|
|
42113
|
-
})
|
|
42114
|
-
});
|
|
42115
|
-
}
|
|
42116
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42117
|
-
key: t(value.title),
|
|
42118
|
-
label: t(value.title) + ":",
|
|
42119
|
-
text: t(value.value) || "NA",
|
|
42120
|
-
last: index === (value === null || value === void 0 ? void 0 : (_value$values = value.values) === null || _value$values === void 0 ? void 0 : _value$values.length) - 1,
|
|
42121
|
-
caption: value.caption,
|
|
42122
|
-
className: "border-none",
|
|
42123
|
-
rowContainerStyle: {
|
|
42124
|
-
justifyContent: "space-between",
|
|
42125
|
-
fontSize: "16px",
|
|
42126
|
-
lineHeight: "19px",
|
|
42127
|
-
color: "#0B0C0C"
|
|
42128
|
-
}
|
|
42129
|
-
});
|
|
42130
|
-
}))))
|
|
42131
|
-
);
|
|
42132
|
-
}));
|
|
42133
|
-
}
|
|
42134
|
-
|
|
42135
|
-
const cardSubHeaderStyles = () => {
|
|
42136
|
-
return {
|
|
42137
|
-
fontSize: "24px",
|
|
42138
|
-
marginBottom: "16px",
|
|
42139
|
-
marginTop: "32px"
|
|
42140
|
-
};
|
|
42141
|
-
};
|
|
42142
|
-
const WSAdditonalDetails = _ref => {
|
|
42143
|
-
var _wsAdditionalDetails$;
|
|
42144
|
-
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
42145
|
-
const _useTranslation = reactI18next.useTranslation(),
|
|
42146
|
-
t = _useTranslation.t;
|
|
42147
|
-
let filters = getQueryStringParams(location.search);
|
|
42148
|
-
var _ref2 = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : wsAdditionalDetails.additionalDetails) || {
|
|
42149
|
-
connectionDetails: [],
|
|
42150
|
-
plumberDetails: []
|
|
42151
|
-
},
|
|
42152
|
-
connectionDetails = _ref2.connectionDetails;
|
|
42153
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
42154
|
-
style: {
|
|
42155
|
-
lineHeight: "19px",
|
|
42156
|
-
maxWidth: "950px",
|
|
42157
|
-
minWidth: "280px"
|
|
42158
|
-
}
|
|
42159
|
-
}, (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$ === void 0 ? void 0 : _wsAdditionalDetails$.connectionDetails) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
42160
|
-
style: cardSubHeaderStyles()
|
|
42161
|
-
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
42162
|
-
className: "connection-details-new-value-wrapper"
|
|
42163
|
-
}, connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.map((value, index) => {
|
|
42164
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
42165
|
-
key: index
|
|
42166
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42167
|
-
className: "border-none",
|
|
42168
|
-
key: "" + value.title,
|
|
42169
|
-
label: "" + t("" + value.title),
|
|
42170
|
-
text: value !== null && value !== void 0 && value.oldValue ? value === null || value === void 0 ? void 0 : value.oldValue : value !== null && value !== void 0 && value.value ? value === null || value === void 0 ? void 0 : value.value : ""
|
|
42171
|
-
}));
|
|
42172
|
-
}))))));
|
|
42173
|
-
};
|
|
42174
|
-
|
|
42175
|
-
const Penality_menu = [{
|
|
42176
|
-
title: "PT_PENDING_DUES_FROM_EARLIER",
|
|
42177
|
-
value: "Pending dues from earlier"
|
|
42178
|
-
}, {
|
|
42179
|
-
title: "PT_MISCALCULATION_OF_EARLIER_ASSESSMENT",
|
|
42180
|
-
value: "Miscalculation of earlier Assessment"
|
|
42181
|
-
}, {
|
|
42182
|
-
title: "PT_ONE_TIME_PENALITY",
|
|
42183
|
-
value: "One time penality"
|
|
42184
|
-
}, {
|
|
42185
|
-
title: "PT_OTHERS",
|
|
42186
|
-
value: "Others"
|
|
42187
|
-
}];
|
|
42188
|
-
const Rebate_menu = [{
|
|
42189
|
-
title: "PT_ADVANCED_PAID_BY_CITIZEN_EARLIER",
|
|
42190
|
-
value: "Advanced Paid By Citizen Earlier"
|
|
42191
|
-
}, {
|
|
42192
|
-
title: "PT_REBATE_PROVIDED_BY_COMMISSIONER_EO",
|
|
42193
|
-
value: "Rebate provided by commissioner/EO"
|
|
42194
|
-
}, {
|
|
42195
|
-
title: "PT_ADDITIONAL_AMOUNT_CHARGED_FROM_THE_CITIZEN",
|
|
42196
|
-
value: "Additional amount charged from the citizen"
|
|
42197
|
-
}, {
|
|
42198
|
-
title: "PT_OTHERS",
|
|
42199
|
-
value: "Others"
|
|
42200
|
-
}];
|
|
42201
|
-
const WSFeeEstimation = _ref => {
|
|
42202
|
-
var _wsAdditionalDetails$, _wsAdditionalDetails$18, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
42203
|
-
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
42204
|
-
const _useTranslation = reactI18next.useTranslation(),
|
|
42205
|
-
t = _useTranslation.t;
|
|
42206
|
-
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("ADHOC_ADD_REBATE_DATA", {}),
|
|
42207
|
-
sessionFormData = _Digit$Hooks$useSessi[0],
|
|
42208
|
-
setSessionFormData = _Digit$Hooks$useSessi[1];
|
|
42209
|
-
const _Digit$Hooks$useSessi2 = Digit.Hooks.useSessionStorage("ADHOC_BILL_ADD_REBATE_DATA", {}),
|
|
42210
|
-
setSessionBillFormData = _Digit$Hooks$useSessi2[1];
|
|
42211
|
-
const isPaid = wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isPaid ? true : false;
|
|
42212
|
-
const _useState = React.useState(false),
|
|
42213
|
-
popup = _useState[0],
|
|
42214
|
-
showPopUp = _useState[1];
|
|
42215
|
-
const _useState2 = React.useState(sessionFormData ? sessionFormData : {}),
|
|
42216
|
-
fields = _useState2[0],
|
|
42217
|
-
setFields = _useState2[1];
|
|
42218
|
-
const _useState3 = React.useState(null),
|
|
42219
|
-
showToast = _useState3[0],
|
|
42220
|
-
setShowToast = _useState3[1];
|
|
42221
|
-
const _useState4 = React.useState(wsAdditionalDetails.additionalDetails.data ? wsAdditionalDetails.additionalDetails.data : {}),
|
|
42222
|
-
billDetails = _useState4[0],
|
|
42223
|
-
setBillDetails = _useState4[1];
|
|
42224
|
-
const _useState5 = React.useState(wsAdditionalDetails.additionalDetails.values ? wsAdditionalDetails.additionalDetails.values : []),
|
|
42225
|
-
values = _useState5[0],
|
|
42226
|
-
setValues = _useState5[1];
|
|
42227
|
-
const stateCode = Digit.ULBService.getStateId();
|
|
42228
|
-
const _Digit$Hooks$ws$useMD = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
|
|
42229
|
-
React.useEffect(() => {
|
|
42230
|
-
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
|
|
42231
|
-
const data = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails);
|
|
42232
|
-
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
42233
|
-
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0;
|
|
42234
|
-
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || [];
|
|
42235
|
-
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
|
|
42236
|
-
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
42237
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
|
|
42238
|
-
})) : [{
|
|
42239
|
-
title: "WS_APPLICATION_FEE_HEADER",
|
|
42240
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.fee)
|
|
42241
|
-
}, {
|
|
42242
|
-
title: "WS_SERVICE_FEE_HEADER",
|
|
42243
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.charge)
|
|
42244
|
-
}, {
|
|
42245
|
-
title: "WS_TAX_HEADER",
|
|
42246
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill8 = sessionFormData.billDetails) === null || _sessionFormData$bill8 === void 0 ? void 0 : (_sessionFormData$bill9 = _sessionFormData$bill8[0]) === null || _sessionFormData$bill9 === void 0 ? void 0 : _sessionFormData$bill9.taxAmount)
|
|
42247
|
-
}];
|
|
42248
|
-
setValues(values);
|
|
42249
|
-
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : _sessionFormData$bill0[0]);
|
|
42250
|
-
} else {
|
|
42251
|
-
setSessionFormData(data);
|
|
42252
|
-
setFields(data);
|
|
42253
|
-
}
|
|
42254
|
-
}, []);
|
|
42255
|
-
let validation = {};
|
|
42256
|
-
const Heading = props => {
|
|
42257
|
-
return /*#__PURE__*/React__default.createElement("h1", {
|
|
42258
|
-
className: "heading-m"
|
|
42259
|
-
}, props.label);
|
|
42260
|
-
};
|
|
42261
|
-
const Close = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
42262
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
42263
|
-
viewBox: "0 0 24 24",
|
|
42264
|
-
fill: "#FFFFFF"
|
|
42265
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
42266
|
-
d: "M0 0h24v24H0V0z",
|
|
42267
|
-
fill: "none"
|
|
42268
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
42269
|
-
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
42270
|
-
}));
|
|
42271
|
-
const CloseBtn = props => {
|
|
42272
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
42273
|
-
className: "icon-bg-secondary",
|
|
42274
|
-
onClick: props.onClick
|
|
42275
|
-
}, /*#__PURE__*/React__default.createElement(Close, null));
|
|
42276
|
-
};
|
|
42277
|
-
const closeToast = () => {
|
|
42278
|
-
setShowToast(false);
|
|
42279
|
-
};
|
|
42280
|
-
const addAdhocRebatePenality = e => {
|
|
42281
|
-
const adhocAmount = fields !== null && fields !== void 0 && fields.adhocPenalty ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) : 0;
|
|
42282
|
-
const rebateAmount = fields !== null && fields !== void 0 && fields.adhocRebate ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocRebate) : 0;
|
|
42283
|
-
if (adhocAmount || rebateAmount) {
|
|
42284
|
-
var _wsAdditionalDetails$4, _wsAdditionalDetails$5;
|
|
42285
|
-
const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$4 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : (_wsAdditionalDetails$5 = _wsAdditionalDetails$4.data) === null || _wsAdditionalDetails$5 === void 0 ? void 0 : _wsAdditionalDetails$5.totalAmount;
|
|
42286
|
-
if (rebateAmount > totalAmount) {
|
|
42287
|
-
setShowToast({
|
|
42288
|
-
isError: false,
|
|
42289
|
-
isWarning: true,
|
|
42290
|
-
key: "error",
|
|
42291
|
-
message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
|
|
42292
|
-
});
|
|
42293
|
-
} else {
|
|
42294
|
-
var _wsAdditionalDetails$0, _wsAdditionalDetails$1, _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17;
|
|
42295
|
-
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$0 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$0 === void 0 ? void 0 : (_wsAdditionalDetails$1 = _wsAdditionalDetails$0.appDetails) === null || _wsAdditionalDetails$1 === void 0 ? void 0 : _wsAdditionalDetails$1.applicationNo;
|
|
42296
|
-
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$10 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : (_wsAdditionalDetails$11 = _wsAdditionalDetails$10.appDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : _wsAdditionalDetails$11.tenantId;
|
|
42297
|
-
const appAdditionalDetails = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$12 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : (_wsAdditionalDetails$13 = _wsAdditionalDetails$12.appDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : _wsAdditionalDetails$13.additionalDetails, fields);
|
|
42298
|
-
wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
|
|
42299
|
-
const data = {
|
|
42300
|
-
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$14 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : (_wsAdditionalDetails$15 = _wsAdditionalDetails$14.appDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : _wsAdditionalDetails$15.service) == "WATER" ? [{
|
|
42301
|
-
applicationNo: applicationNo,
|
|
42302
|
-
tenantId: tenantId,
|
|
42303
|
-
waterConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
42304
|
-
}] : [{
|
|
42305
|
-
applicationNo: applicationNo,
|
|
42306
|
-
tenantId: tenantId,
|
|
42307
|
-
sewerageConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
42308
|
-
}],
|
|
42309
|
-
isconnectionCalculation: false
|
|
42310
|
-
};
|
|
42311
|
-
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$16 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$16 === void 0 ? void 0 : (_wsAdditionalDetails$17 = _wsAdditionalDetails$16.appDetails) === null || _wsAdditionalDetails$17 === void 0 ? void 0 : _wsAdditionalDetails$17.service) == "WATER" ? "WS" : "SW";
|
|
42312
|
-
Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
|
|
42313
|
-
var _result$Calculation, _result$Calculation$, _result$Calculation$$, _result$Calculation3, _result$Calculation3$, _result$Calculation4, _result$Calculation4$, _result$Calculation5, _result$Calculation5$, _result$Calculation6, _result$Calculation6$, _result$Calculation7, _result$Calculation7$, _result$Calculation8;
|
|
42314
|
-
if ((result === null || result === void 0 ? void 0 : (_result$Calculation = result.Calculation) === null || _result$Calculation === void 0 ? void 0 : (_result$Calculation$ = _result$Calculation[0]) === null || _result$Calculation$ === void 0 ? void 0 : (_result$Calculation$$ = _result$Calculation$.taxHeadEstimates) === null || _result$Calculation$$ === void 0 ? void 0 : _result$Calculation$$.length) > 0) {
|
|
42315
|
-
var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
|
|
42316
|
-
result === null || result === void 0 ? void 0 : (_result$Calculation2 = result.Calculation) === null || _result$Calculation2 === void 0 ? void 0 : (_result$Calculation2$ = _result$Calculation2[0]) === null || _result$Calculation2$ === void 0 ? void 0 : (_result$Calculation2$2 = _result$Calculation2$.taxHeadEstimates) === null || _result$Calculation2$2 === void 0 ? void 0 : _result$Calculation2$2.forEach(data => data.amount = data.estimateAmount);
|
|
42317
|
-
}
|
|
42318
|
-
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
|
|
42319
|
-
const taxHeadEstimates = (result === null || result === void 0 ? void 0 : (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.taxHeadEstimates) || [];
|
|
42320
|
-
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
|
|
42321
|
-
title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
|
|
42322
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
|
|
42323
|
-
})) : [{
|
|
42324
|
-
title: "WS_APPLICATION_FEE_HEADER",
|
|
42325
|
-
value: (_result$Calculation5 = result.Calculation) === null || _result$Calculation5 === void 0 ? void 0 : (_result$Calculation5$ = _result$Calculation5[0]) === null || _result$Calculation5$ === void 0 ? void 0 : _result$Calculation5$.fee
|
|
42326
|
-
}, {
|
|
42327
|
-
title: "WS_SERVICE_FEE_HEADER",
|
|
42328
|
-
value: (_result$Calculation6 = result.Calculation) === null || _result$Calculation6 === void 0 ? void 0 : (_result$Calculation6$ = _result$Calculation6[0]) === null || _result$Calculation6$ === void 0 ? void 0 : _result$Calculation6$.charge
|
|
42329
|
-
}, {
|
|
42330
|
-
title: "WS_TAX_HEADER",
|
|
42331
|
-
value: (_result$Calculation7 = result.Calculation) === null || _result$Calculation7 === void 0 ? void 0 : (_result$Calculation7$ = _result$Calculation7[0]) === null || _result$Calculation7$ === void 0 ? void 0 : _result$Calculation7$.taxAmount
|
|
42332
|
-
}];
|
|
42333
|
-
setSessionBillFormData(cloneDeep_1(result.Calculation[0]));
|
|
42334
|
-
setBillDetails(result === null || result === void 0 ? void 0 : (_result$Calculation8 = result.Calculation) === null || _result$Calculation8 === void 0 ? void 0 : _result$Calculation8[0]);
|
|
42335
|
-
setValues(values);
|
|
42336
|
-
fields.billDetails = result === null || result === void 0 ? void 0 : result.Calculation;
|
|
42337
|
-
setSessionFormData(fields);
|
|
42338
|
-
showPopUp(false);
|
|
42339
|
-
}).catch(e => {
|
|
42340
|
-
var _e$response, _e$response$data, _e$response$data$Erro, _e$response2, _e$response2$data, _e$response2$data$Err;
|
|
42341
|
-
setShowToast({
|
|
42342
|
-
isError: true,
|
|
42343
|
-
isWarning: false,
|
|
42344
|
-
key: "error",
|
|
42345
|
-
message: e !== null && e !== void 0 && (_e$response = e.response) !== null && _e$response !== void 0 && (_e$response$data = _e$response.data) !== null && _e$response$data !== void 0 && (_e$response$data$Erro = _e$response$data.Errors[0]) !== null && _e$response$data$Erro !== void 0 && _e$response$data$Erro.message ? t("" + (e === null || e === void 0 ? void 0 : (_e$response2 = e.response) === null || _e$response2 === void 0 ? void 0 : (_e$response2$data = _e$response2.data) === null || _e$response2$data === void 0 ? void 0 : (_e$response2$data$Err = _e$response2$data.Errors[0]) === null || _e$response2$data$Err === void 0 ? void 0 : _e$response2$data$Err.code)) : t("PT_COMMON_ADD_REBATE_PENALITY")
|
|
42970
|
+
background: "#FAFAFA",
|
|
42971
|
+
border: "1px solid #D6D5D4",
|
|
42972
|
+
borderRadius: "4px",
|
|
42973
|
+
padding: "8px",
|
|
42974
|
+
lineHeight: "19px",
|
|
42975
|
+
maxWidth: "600px",
|
|
42976
|
+
minWidth: "280px"
|
|
42977
|
+
}
|
|
42978
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
42979
|
+
style: {
|
|
42980
|
+
marginBottom: "9px",
|
|
42981
|
+
paddingBottom: "9px",
|
|
42982
|
+
color: "#0B0C0C",
|
|
42983
|
+
fontSize: "16px",
|
|
42984
|
+
lineHeight: "19px"
|
|
42985
|
+
}
|
|
42986
|
+
}, t(unit === null || unit === void 0 ? void 0 : unit.title) + " " + (index + 1)), /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
42987
|
+
key: index
|
|
42988
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
42989
|
+
style: {
|
|
42990
|
+
position: "relative",
|
|
42991
|
+
marginTop: "19px"
|
|
42992
|
+
}
|
|
42993
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
42994
|
+
style: {
|
|
42995
|
+
position: "absolute",
|
|
42996
|
+
maxWidth: "640px",
|
|
42997
|
+
top: 0,
|
|
42998
|
+
left: 0,
|
|
42999
|
+
bottom: 0,
|
|
43000
|
+
right: 0,
|
|
43001
|
+
width: "auto"
|
|
43002
|
+
}
|
|
43003
|
+
}), unit === null || unit === void 0 ? void 0 : (_unit$values = unit.values) === null || _unit$values === void 0 ? void 0 : _unit$values.map((value, index) => {
|
|
43004
|
+
var _value$values;
|
|
43005
|
+
if (value.map === true && value.value !== "N/A") {
|
|
43006
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
43007
|
+
key: t(value.title),
|
|
43008
|
+
label: t(value.title),
|
|
43009
|
+
text: /*#__PURE__*/React__default.createElement("img", {
|
|
43010
|
+
src: t(value.value),
|
|
43011
|
+
alt: ""
|
|
43012
|
+
})
|
|
42346
43013
|
});
|
|
43014
|
+
}
|
|
43015
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
43016
|
+
key: t(value.title),
|
|
43017
|
+
label: t(value.title) + ":",
|
|
43018
|
+
text: t(value.value) || "NA",
|
|
43019
|
+
last: index === (value === null || value === void 0 ? void 0 : (_value$values = value.values) === null || _value$values === void 0 ? void 0 : _value$values.length) - 1,
|
|
43020
|
+
caption: value.caption,
|
|
43021
|
+
className: "border-none",
|
|
43022
|
+
rowContainerStyle: {
|
|
43023
|
+
justifyContent: "space-between",
|
|
43024
|
+
fontSize: "16px",
|
|
43025
|
+
lineHeight: "19px",
|
|
43026
|
+
color: "#0B0C0C"
|
|
43027
|
+
}
|
|
42347
43028
|
});
|
|
42348
|
-
}
|
|
42349
|
-
|
|
42350
|
-
|
|
42351
|
-
|
|
42352
|
-
|
|
42353
|
-
|
|
42354
|
-
|
|
42355
|
-
|
|
42356
|
-
|
|
42357
|
-
|
|
42358
|
-
const selectedValuesData = function (value, isDropDownValue, e) {
|
|
42359
|
-
if (isDropDownValue === void 0) {
|
|
42360
|
-
isDropDownValue = false;
|
|
42361
|
-
}
|
|
42362
|
-
let values = _extends({}, fields);
|
|
42363
|
-
if ((value == "adhocPenalty" || value == "adhocRebate") && e.target.value) {
|
|
42364
|
-
var _e$target, _e$target2;
|
|
42365
|
-
const targetValueSign = (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) == 0 ? 1 : Math.sign(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value) || -1;
|
|
42366
|
-
if (targetValueSign == 1) {
|
|
42367
|
-
values[value] = e.target.value;
|
|
42368
|
-
} else {
|
|
42369
|
-
values[value] = "";
|
|
42370
|
-
}
|
|
42371
|
-
} else if (isDropDownValue) {
|
|
42372
|
-
values[value + "_data"] = e;
|
|
42373
|
-
values[value] = e.title;
|
|
42374
|
-
if (e.title == "PT_OTHERS" && value == "adhocPenaltyReason") values["adhocPenaltyComment"] = "";
|
|
42375
|
-
if (e.title == "PT_OTHERS" && value == "adhocRebateReason") values["adhocRebateComment"] = "";
|
|
42376
|
-
} else {
|
|
42377
|
-
values[value] = e.target.value;
|
|
42378
|
-
}
|
|
42379
|
-
setFields(values);
|
|
43029
|
+
}))))
|
|
43030
|
+
);
|
|
43031
|
+
}));
|
|
43032
|
+
}
|
|
43033
|
+
|
|
43034
|
+
const cardSubHeaderStyles = () => {
|
|
43035
|
+
return {
|
|
43036
|
+
fontSize: "24px",
|
|
43037
|
+
marginBottom: "16px",
|
|
43038
|
+
marginTop: "32px"
|
|
42380
43039
|
};
|
|
42381
|
-
|
|
43040
|
+
};
|
|
43041
|
+
const WSAdditonalDetails = _ref => {
|
|
43042
|
+
var _wsAdditionalDetails$;
|
|
43043
|
+
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
43044
|
+
const _useTranslation = reactI18next.useTranslation(),
|
|
43045
|
+
t = _useTranslation.t;
|
|
43046
|
+
let filters = getQueryStringParams(location.search);
|
|
43047
|
+
var _ref2 = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : wsAdditionalDetails.additionalDetails) || {
|
|
43048
|
+
connectionDetails: [],
|
|
43049
|
+
plumberDetails: []
|
|
43050
|
+
},
|
|
43051
|
+
connectionDetails = _ref2.connectionDetails;
|
|
43052
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
42382
43053
|
style: {
|
|
42383
43054
|
lineHeight: "19px",
|
|
42384
|
-
maxWidth: "
|
|
43055
|
+
maxWidth: "950px",
|
|
42385
43056
|
minWidth: "280px"
|
|
42386
43057
|
}
|
|
42387
|
-
},
|
|
42388
|
-
|
|
43058
|
+
}, (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$ === void 0 ? void 0 : _wsAdditionalDetails$.connectionDetails) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
43059
|
+
style: cardSubHeaderStyles()
|
|
43060
|
+
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
43061
|
+
className: "connection-details-new-value-wrapper"
|
|
43062
|
+
}, connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.map((value, index) => {
|
|
43063
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
43064
|
+
key: index
|
|
43065
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42389
43066
|
className: "border-none",
|
|
42390
43067
|
key: "" + value.title,
|
|
42391
43068
|
label: "" + t("" + value.title),
|
|
42392
|
-
text: value !== null && value !== void 0 && value.value ? value === null || value === void 0 ? void 0 : value.value : ""
|
|
42393
|
-
});
|
|
42394
|
-
}))
|
|
42395
|
-
style: {
|
|
42396
|
-
border: "1px solid #D6D5D4",
|
|
42397
|
-
color: "#D6D5D4",
|
|
42398
|
-
margin: "16px 0px"
|
|
42399
|
-
}
|
|
42400
|
-
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42401
|
-
className: "border-none",
|
|
42402
|
-
key: "WS_COMMON_TOTAL_AMT",
|
|
42403
|
-
label: "" + t("WS_COMMON_TOTAL_AMT"),
|
|
42404
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", billDetails !== null && billDetails !== void 0 && billDetails.totalAmount ? Number(billDetails === null || billDetails === void 0 ? void 0 : billDetails.totalAmount).toFixed(2) : "0.00"),
|
|
42405
|
-
textStyle: {
|
|
42406
|
-
fontSize: "24px",
|
|
42407
|
-
fontWeight: "700"
|
|
42408
|
-
}
|
|
42409
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42410
|
-
className: "border-none",
|
|
42411
|
-
key: "CS_INBOX_STATUS_FILTER",
|
|
42412
|
-
label: "" + t("CS_INBOX_STATUS_FILTER"),
|
|
42413
|
-
text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
42414
|
-
textStyle: !isPaid ? {
|
|
42415
|
-
color: "#D83A2F"
|
|
42416
|
-
} : {
|
|
42417
|
-
color: "#2E9E8F"
|
|
42418
|
-
}
|
|
42419
|
-
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React__default.createElement("div", {
|
|
42420
|
-
onClick: e => {
|
|
42421
|
-
showPopUp(true);
|
|
42422
|
-
}
|
|
42423
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
42424
|
-
className: "add-details-link hover-button",
|
|
42425
|
-
style: {
|
|
42426
|
-
cursor: "pointer",
|
|
42427
|
-
color: "#a82227"
|
|
42428
|
-
}
|
|
42429
|
-
}, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
42430
|
-
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
42431
|
-
label: t("PT_ADD_REBATE_PENALITY")
|
|
42432
|
-
}),
|
|
42433
|
-
headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
|
|
42434
|
-
onClick: () => {
|
|
42435
|
-
setFields(sessionFormData);
|
|
42436
|
-
showPopUp(false);
|
|
42437
|
-
}
|
|
42438
|
-
}),
|
|
42439
|
-
actionCancelLabel: t("PT_CANCEL"),
|
|
42440
|
-
actionCancelOnSubmit: () => {
|
|
42441
|
-
setFields(sessionFormData);
|
|
42442
|
-
showPopUp(false);
|
|
42443
|
-
},
|
|
42444
|
-
actionSaveLabel: t("PT_ADD"),
|
|
42445
|
-
actionSaveOnSubmit: e => addAdhocRebatePenality(),
|
|
42446
|
-
hideSubmit: false,
|
|
42447
|
-
popupStyles: {
|
|
42448
|
-
overflowY: "auto",
|
|
42449
|
-
background: "#f0f3f7"
|
|
42450
|
-
}
|
|
42451
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
42452
|
-
style: {
|
|
42453
|
-
display: "flex",
|
|
42454
|
-
flexDirection: "column",
|
|
42455
|
-
gap: "16px"
|
|
42456
|
-
}
|
|
42457
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
42458
|
-
style: {
|
|
42459
|
-
fontSize: "16px",
|
|
42460
|
-
fontWeight: "700",
|
|
42461
|
-
lineHeight: "18px",
|
|
42462
|
-
padding: "0px",
|
|
42463
|
-
margin: "0px 0px 10px 0px"
|
|
42464
|
-
}
|
|
42465
|
-
}, t("PT_AD_PENALTY")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React__default.createElement("div", {
|
|
42466
|
-
className: "field"
|
|
42467
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
42468
|
-
isMandatory: true,
|
|
42469
|
-
option: Penality_menu,
|
|
42470
|
-
optionKey: "title",
|
|
42471
|
-
select: e => selectedValuesData("adhocPenaltyReason", true, e),
|
|
42472
|
-
selected: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyReason_data) || "",
|
|
42473
|
-
isPropertyAssess: true,
|
|
42474
|
-
name: "adhocPenaltyReason_data",
|
|
42475
|
-
t: t
|
|
42476
|
-
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_REASON")), /*#__PURE__*/React__default.createElement("div", {
|
|
42477
|
-
className: "field"
|
|
42478
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
42479
|
-
style: {
|
|
42480
|
-
background: "#FAFAFA"
|
|
42481
|
-
},
|
|
42482
|
-
t: t,
|
|
42483
|
-
type: "text",
|
|
42484
|
-
isMandatory: false,
|
|
42485
|
-
name: "adhocPenaltyComment",
|
|
42486
|
-
value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenaltyComment) || "",
|
|
42487
|
-
onChange: e => selectedValuesData("adhocPenaltyComment", false, e)
|
|
42488
|
-
}, validation = {
|
|
42489
|
-
isRequired: true,
|
|
42490
|
-
pattern: "^[a-zA-Z ]*$",
|
|
42491
|
-
type: "text",
|
|
42492
|
-
title: t("TL_NAME_ERROR_MESSAGE")
|
|
42493
|
-
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React__default.createElement("div", {
|
|
42494
|
-
className: "field"
|
|
42495
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
42496
|
-
style: {
|
|
42497
|
-
background: "#FAFAFA"
|
|
42498
|
-
},
|
|
42499
|
-
t: t,
|
|
42500
|
-
type: "number",
|
|
42501
|
-
isMandatory: false,
|
|
42502
|
-
name: "adhocPenalty",
|
|
42503
|
-
value: (fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) || "",
|
|
42504
|
-
onChange: e => selectedValuesData("adhocPenalty", false, e)
|
|
42505
|
-
}, validation = {
|
|
42506
|
-
isRequired: true,
|
|
42507
|
-
pattern: "^[1-9]+[0-9]*$",
|
|
42508
|
-
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
42509
|
-
}))))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
42510
|
-
style: {
|
|
42511
|
-
fontSize: "16px",
|
|
42512
|
-
fontWeight: "700",
|
|
42513
|
-
lineHeight: "18px",
|
|
42514
|
-
padding: "0px",
|
|
42515
|
-
margin: "0px 0px 10px 0px"
|
|
42516
|
-
}
|
|
42517
|
-
}, t("PT_AD_REBATE")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React__default.createElement("div", {
|
|
42518
|
-
className: "field"
|
|
42519
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
42520
|
-
isMandatory: true,
|
|
42521
|
-
option: Rebate_menu,
|
|
42522
|
-
optionKey: "title",
|
|
42523
|
-
select: e => selectedValuesData("adhocRebateReason", true, e),
|
|
42524
|
-
selected: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateReason_data) || "",
|
|
42525
|
-
name: "adhocRebateReason_data",
|
|
42526
|
-
isPropertyAssess: true,
|
|
42527
|
-
t: t
|
|
42528
|
-
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_REASON")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
42529
|
-
style: {
|
|
42530
|
-
background: "#FAFAFA"
|
|
42531
|
-
},
|
|
42532
|
-
t: t,
|
|
42533
|
-
type: "text",
|
|
42534
|
-
isMandatory: false,
|
|
42535
|
-
name: "adhocRebateComment",
|
|
42536
|
-
value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebateComment) || "",
|
|
42537
|
-
onChange: e => selectedValuesData("adhocRebateComment", false, e)
|
|
42538
|
-
}, validation = {
|
|
42539
|
-
isRequired: true,
|
|
42540
|
-
pattern: "^[a-zA-Z ]*$",
|
|
42541
|
-
type: "text",
|
|
42542
|
-
title: t("TL_NAME_ERROR_MESSAGE")
|
|
42543
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React__default.createElement("div", {
|
|
42544
|
-
className: "field"
|
|
42545
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
42546
|
-
style: {
|
|
42547
|
-
background: "#FAFAFA"
|
|
42548
|
-
},
|
|
42549
|
-
t: t,
|
|
42550
|
-
type: "number",
|
|
42551
|
-
isMandatory: false,
|
|
42552
|
-
name: "adhocRebate",
|
|
42553
|
-
value: (fields === null || fields === void 0 ? void 0 : fields.adhocRebate) || "",
|
|
42554
|
-
onChange: e => selectedValuesData("adhocRebate", false, e)
|
|
42555
|
-
}, validation = {
|
|
42556
|
-
isRequired: true,
|
|
42557
|
-
pattern: "^[1-9]+[0-9]*$",
|
|
42558
|
-
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
42559
|
-
}))))))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
42560
|
-
style: {
|
|
42561
|
-
zIndex: "10000"
|
|
42562
|
-
},
|
|
42563
|
-
warning: showToast === null || showToast === void 0 ? void 0 : showToast.isWarning,
|
|
42564
|
-
error: showToast !== null && showToast !== void 0 && showToast.isWarning ? false : true,
|
|
42565
|
-
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|
|
42566
|
-
onClose: closeToast,
|
|
42567
|
-
isDleteBtn: true
|
|
42568
|
-
})));
|
|
43069
|
+
text: value !== null && value !== void 0 && value.oldValue ? value === null || value === void 0 ? void 0 : value.oldValue : value !== null && value !== void 0 && value.value ? value === null || value === void 0 ? void 0 : value.value : ""
|
|
43070
|
+
}));
|
|
43071
|
+
}))))));
|
|
42569
43072
|
};
|
|
42570
43073
|
|
|
42571
43074
|
const EyeSvgINdex$1 = _ref => {
|
|
@@ -42619,203 +43122,6 @@ const InfoDetails = _ref2 => {
|
|
|
42619
43122
|
}), " " + t(infoClickInfoLabel), /*#__PURE__*/React__default.createElement("div", null, " " + t(infoClickInfoLabel1)))));
|
|
42620
43123
|
};
|
|
42621
43124
|
|
|
42622
|
-
const ViewBreakup = _ref => {
|
|
42623
|
-
var _wsAdditionalDetails$, _breakUpData$billSlab, _breakUpData$billSlab2, _breakUpData$billSlab3, _breakUpData$billSlab4, _breakUpData$billSlab5, _breakUpData$billSlab6;
|
|
42624
|
-
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
42625
|
-
const _useTranslation = reactI18next.useTranslation(),
|
|
42626
|
-
t = _useTranslation.t;
|
|
42627
|
-
const _useState = React.useState(false),
|
|
42628
|
-
popup = _useState[0],
|
|
42629
|
-
showPopUp = _useState[1];
|
|
42630
|
-
const _useState2 = React.useState({}),
|
|
42631
|
-
breakUpData = _useState2[0],
|
|
42632
|
-
setBreakUpData = _useState2[1];
|
|
42633
|
-
const Heading = props => {
|
|
42634
|
-
return /*#__PURE__*/React__default.createElement("h1", {
|
|
42635
|
-
className: "heading-m"
|
|
42636
|
-
}, props.label);
|
|
42637
|
-
};
|
|
42638
|
-
const Close = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
42639
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
42640
|
-
viewBox: "0 0 24 24",
|
|
42641
|
-
fill: "#FFFFFF"
|
|
42642
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
42643
|
-
d: "M0 0h24v24H0V0z",
|
|
42644
|
-
fill: "none"
|
|
42645
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
42646
|
-
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
42647
|
-
}));
|
|
42648
|
-
const CloseBtn = props => {
|
|
42649
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
42650
|
-
className: "icon-bg-secondary",
|
|
42651
|
-
onClick: props.onClick
|
|
42652
|
-
}, /*#__PURE__*/React__default.createElement(Close, null));
|
|
42653
|
-
};
|
|
42654
|
-
const onPopupOpen = () => {
|
|
42655
|
-
var _sessionBillFormData$;
|
|
42656
|
-
let breakupData = wsAdditionalDetails.additionalDetails.data || {};
|
|
42657
|
-
const sessionBillData = sessionStorage.getItem("Digit.ADHOC_BILL_ADD_REBATE_DATA");
|
|
42658
|
-
const sessionBillFormData = sessionBillData ? JSON.parse(sessionBillData) : {};
|
|
42659
|
-
if (sessionBillFormData !== null && sessionBillFormData !== void 0 && (_sessionBillFormData$ = sessionBillFormData.value) !== null && _sessionBillFormData$ !== void 0 && _sessionBillFormData$.totalAmount) breakupData = sessionBillFormData === null || sessionBillFormData === void 0 ? void 0 : sessionBillFormData.value;
|
|
42660
|
-
setBreakUpData(breakupData);
|
|
42661
|
-
showPopUp(true);
|
|
42662
|
-
};
|
|
42663
|
-
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
42664
|
-
style: {
|
|
42665
|
-
lineHeight: "19px",
|
|
42666
|
-
maxWidth: "950px",
|
|
42667
|
-
minWidth: "280px"
|
|
42668
|
-
}
|
|
42669
|
-
}, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails$.isViewBreakup ? /*#__PURE__*/React__default.createElement("div", {
|
|
42670
|
-
onClick: e => onPopupOpen(),
|
|
42671
|
-
style: {
|
|
42672
|
-
marginTop: "12px"
|
|
42673
|
-
}
|
|
42674
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
42675
|
-
className: "add-details-link hover-button"
|
|
42676
|
-
}, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
42677
|
-
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
42678
|
-
label: t("WS_CALCULATION_BREAKUP")
|
|
42679
|
-
}),
|
|
42680
|
-
headerBarEnd: /*#__PURE__*/React__default.createElement(CloseBtn, {
|
|
42681
|
-
onClick: () => {
|
|
42682
|
-
showPopUp(false);
|
|
42683
|
-
}
|
|
42684
|
-
}),
|
|
42685
|
-
hideSubmit: true,
|
|
42686
|
-
popupStyles: {
|
|
42687
|
-
overflowY: "auto"
|
|
42688
|
-
},
|
|
42689
|
-
headerBarMainStyle: {
|
|
42690
|
-
marginBottom: "0px"
|
|
42691
|
-
},
|
|
42692
|
-
popupModuleMianStyles: {
|
|
42693
|
-
paddingTop: "0px"
|
|
42694
|
-
}
|
|
42695
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
42696
|
-
style: {
|
|
42697
|
-
padding: "10px",
|
|
42698
|
-
paddingTop: "0px"
|
|
42699
|
-
}
|
|
42700
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
42701
|
-
style: {
|
|
42702
|
-
margin: "10px 0px"
|
|
42703
|
-
}
|
|
42704
|
-
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : (_breakUpData$billSlab2 = _breakUpData$billSlab.FEE) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42705
|
-
className: "border-none",
|
|
42706
|
-
rowContainerStyle: {
|
|
42707
|
-
margin: "0px"
|
|
42708
|
-
},
|
|
42709
|
-
labelStyle: {
|
|
42710
|
-
width: "50%"
|
|
42711
|
-
},
|
|
42712
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
42713
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
42714
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
42715
|
-
textStyle: {
|
|
42716
|
-
textAlign: "right"
|
|
42717
|
-
}
|
|
42718
|
-
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
42719
|
-
style: {
|
|
42720
|
-
color: "#cccccc",
|
|
42721
|
-
backgroundColor: "#cccccc",
|
|
42722
|
-
marginBottom: "10px"
|
|
42723
|
-
}
|
|
42724
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42725
|
-
className: "border-none",
|
|
42726
|
-
rowContainerStyle: {
|
|
42727
|
-
margin: "0px"
|
|
42728
|
-
},
|
|
42729
|
-
labelStyle: {
|
|
42730
|
-
width: "50%"
|
|
42731
|
-
},
|
|
42732
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT1",
|
|
42733
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
42734
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.fee) || 0),
|
|
42735
|
-
textStyle: {
|
|
42736
|
-
textAlign: "right",
|
|
42737
|
-
fontWeight: "700",
|
|
42738
|
-
fontSize: "24px"
|
|
42739
|
-
}
|
|
42740
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
42741
|
-
style: {
|
|
42742
|
-
margin: "10px 0px"
|
|
42743
|
-
}
|
|
42744
|
-
}, t("WS_SERVICE_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : (_breakUpData$billSlab4 = _breakUpData$billSlab3.CHARGES) === null || _breakUpData$billSlab4 === void 0 ? void 0 : _breakUpData$billSlab4.map(data => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42745
|
-
className: "border-none",
|
|
42746
|
-
rowContainerStyle: {
|
|
42747
|
-
margin: "0px"
|
|
42748
|
-
},
|
|
42749
|
-
labelStyle: {
|
|
42750
|
-
width: "50%"
|
|
42751
|
-
},
|
|
42752
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
42753
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
42754
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
42755
|
-
textStyle: {
|
|
42756
|
-
textAlign: "right"
|
|
42757
|
-
}
|
|
42758
|
-
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
42759
|
-
style: {
|
|
42760
|
-
color: "#cccccc",
|
|
42761
|
-
backgroundColor: "#cccccc",
|
|
42762
|
-
marginBottom: "10px"
|
|
42763
|
-
}
|
|
42764
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42765
|
-
className: "border-none",
|
|
42766
|
-
rowContainerStyle: {
|
|
42767
|
-
margin: "0px"
|
|
42768
|
-
},
|
|
42769
|
-
labelStyle: {
|
|
42770
|
-
width: "50%"
|
|
42771
|
-
},
|
|
42772
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT2",
|
|
42773
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
42774
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.charge) || 0),
|
|
42775
|
-
textStyle: {
|
|
42776
|
-
textAlign: "right",
|
|
42777
|
-
fontWeight: "700",
|
|
42778
|
-
fontSize: "24px"
|
|
42779
|
-
}
|
|
42780
|
-
}), 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, {
|
|
42781
|
-
className: "border-none",
|
|
42782
|
-
rowContainerStyle: {
|
|
42783
|
-
margin: "0px"
|
|
42784
|
-
},
|
|
42785
|
-
labelStyle: {
|
|
42786
|
-
width: "50%"
|
|
42787
|
-
},
|
|
42788
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
42789
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
42790
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
42791
|
-
textStyle: {
|
|
42792
|
-
textAlign: "right"
|
|
42793
|
-
}
|
|
42794
|
-
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
42795
|
-
style: {
|
|
42796
|
-
color: "#cccccc",
|
|
42797
|
-
backgroundColor: "#cccccc",
|
|
42798
|
-
marginBottom: "10px"
|
|
42799
|
-
}
|
|
42800
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
42801
|
-
className: "border-none",
|
|
42802
|
-
rowContainerStyle: {
|
|
42803
|
-
margin: "0px"
|
|
42804
|
-
},
|
|
42805
|
-
labelStyle: {
|
|
42806
|
-
width: "50%"
|
|
42807
|
-
},
|
|
42808
|
-
key: "PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT3",
|
|
42809
|
-
label: "" + t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
42810
|
-
text: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount) || 0),
|
|
42811
|
-
textStyle: {
|
|
42812
|
-
textAlign: "right",
|
|
42813
|
-
fontWeight: "700",
|
|
42814
|
-
fontSize: "24px"
|
|
42815
|
-
}
|
|
42816
|
-
})))));
|
|
42817
|
-
};
|
|
42818
|
-
|
|
42819
43125
|
const styles = {
|
|
42820
43126
|
root: {
|
|
42821
43127
|
width: "100%",
|
|
@@ -46017,7 +46323,7 @@ const EditApplication$1 = () => {
|
|
|
46017
46323
|
propertyIds: propertyId
|
|
46018
46324
|
},
|
|
46019
46325
|
tenantId: tenantId,
|
|
46020
|
-
enabled: propertyId && propertyId
|
|
46326
|
+
enabled: propertyId && propertyId !== "" ? true : false,
|
|
46021
46327
|
privacy: Digit.Utils.getPrivacyObject()
|
|
46022
46328
|
}),
|
|
46023
46329
|
propertyDetails = _Digit$Hooks$pt$usePr.data;
|
|
@@ -46084,7 +46390,7 @@ const EditApplication$1 = () => {
|
|
|
46084
46390
|
if (!lodash.isEqual(sessionFormData, formData)) {
|
|
46085
46391
|
setSessionFormData(_extends({}, sessionFormData, formData));
|
|
46086
46392
|
}
|
|
46087
|
-
if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length
|
|
46393
|
+
if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length === 1 && formState.errors["owners"] && Object.values(formState.errors["owners"].type).filter(ob => ob.type === "required").length === 0 && !(formData !== null && formData !== void 0 && (_formData$cpt = formData.cpt) !== null && _formData$cpt !== void 0 && (_formData$cpt$details = _formData$cpt.details) !== null && _formData$cpt$details !== void 0 && _formData$cpt$details.propertyId)) setSubmitValve(true);else setSubmitValve(!Object.keys(formState.errors).length);
|
|
46088
46394
|
};
|
|
46089
46395
|
const onSubmit = function (data) {
|
|
46090
46396
|
try {
|
|
@@ -46101,7 +46407,7 @@ const EditApplication$1 = () => {
|
|
|
46101
46407
|
const details = sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS") ? JSON.parse(sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS")) : {};
|
|
46102
46408
|
return Promise.resolve(convertEditApplicationDetails(data, details, actionData)).then(function (convertAppData) {
|
|
46103
46409
|
var _data$ConnectionDetai, _data$ConnectionDetai2, _details$processInsta, _details$processInsta2, _details$processInsta3, _details$processInsta4;
|
|
46104
|
-
const reqDetails = (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai = data.ConnectionDetails) === null || _data$ConnectionDetai === void 0 ? void 0 : (_data$ConnectionDetai2 = _data$ConnectionDetai[0]) === null || _data$ConnectionDetai2 === void 0 ? void 0 : _data$ConnectionDetai2.serviceName)
|
|
46410
|
+
const reqDetails = (data === null || data === void 0 ? void 0 : (_data$ConnectionDetai = data.ConnectionDetails) === null || _data$ConnectionDetai === void 0 ? void 0 : (_data$ConnectionDetai2 = _data$ConnectionDetai[0]) === null || _data$ConnectionDetai2 === void 0 ? void 0 : _data$ConnectionDetai2.serviceName) === "WATER" ? {
|
|
46105
46411
|
WaterConnection: convertAppData
|
|
46106
46412
|
} : {
|
|
46107
46413
|
SewerageConnection: convertAppData
|
|
@@ -46115,7 +46421,6 @@ const EditApplication$1 = () => {
|
|
|
46115
46421
|
key: "error",
|
|
46116
46422
|
message: error !== null && error !== void 0 && error.message ? error.message : error
|
|
46117
46423
|
});
|
|
46118
|
-
setTimeout(closeToastOfError, 5000);
|
|
46119
46424
|
setSubmitValve(true);
|
|
46120
46425
|
},
|
|
46121
46426
|
onSuccess: (data, variables) => {
|
|
@@ -46147,7 +46452,6 @@ const EditApplication$1 = () => {
|
|
|
46147
46452
|
if (enabledLoader || isConfigLoading) {
|
|
46148
46453
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
46149
46454
|
}
|
|
46150
|
-
console.log(config.body);
|
|
46151
46455
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
46152
46456
|
className: "employee-form-content"
|
|
46153
46457
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
|
|
@@ -49424,7 +49728,11 @@ const OLDApplication = () => {
|
|
|
49424
49728
|
key: "propertyAddress",
|
|
49425
49729
|
component: "WSPropertyLocationDetails",
|
|
49426
49730
|
withoutLabel: true,
|
|
49427
|
-
isAutomaticFill: true
|
|
49731
|
+
isAutomaticFill: true,
|
|
49732
|
+
texts: {
|
|
49733
|
+
header: "PT_LOCATION_DETAILS " + t("(Automatic Fill by Property)")
|
|
49734
|
+
},
|
|
49735
|
+
defaultOpen: false
|
|
49428
49736
|
}]
|
|
49429
49737
|
});
|
|
49430
49738
|
} else if (compName === "PropertyWaterConnection") {
|
|
@@ -49509,9 +49817,6 @@ const OLDApplication = () => {
|
|
|
49509
49817
|
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
|
|
49510
49818
|
}
|
|
49511
49819
|
};
|
|
49512
|
-
const closeToastOfError = () => {
|
|
49513
|
-
setShowToast(null);
|
|
49514
|
-
};
|
|
49515
49820
|
const onFormSubmit = data => {
|
|
49516
49821
|
var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$keys, _formStateErros$Conne2;
|
|
49517
49822
|
if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
|
|
@@ -49696,7 +50001,6 @@ const OLDApplication = () => {
|
|
|
49696
50001
|
key: "error",
|
|
49697
50002
|
message: (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : (_error$response$data$ = _error$response$data.Errors) === null || _error$response$data$ === void 0 ? void 0 : (_error$response$data$2 = _error$response$data$[0]) === null || _error$response$data$2 === void 0 ? void 0 : _error$response$data$2.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49698
50003
|
});
|
|
49699
|
-
setTimeout(closeToastOfError, 5000);
|
|
49700
50004
|
},
|
|
49701
50005
|
onSuccess: function (waterData) {
|
|
49702
50006
|
try {
|
|
@@ -49715,7 +50019,6 @@ const OLDApplication = () => {
|
|
|
49715
50019
|
key: "error",
|
|
49716
50020
|
message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : (_error$response2$data3 = _error$response2$data2[0]) === null || _error$response2$data3 === void 0 ? void 0 : _error$response2$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49717
50021
|
});
|
|
49718
|
-
setTimeout(closeToastOfError, 5000);
|
|
49719
50022
|
},
|
|
49720
50023
|
onSuccess: function (waterUpdateData) {
|
|
49721
50024
|
try {
|
|
@@ -49727,7 +50030,6 @@ const OLDApplication = () => {
|
|
|
49727
50030
|
key: "error",
|
|
49728
50031
|
message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49729
50032
|
});
|
|
49730
|
-
setTimeout(closeToastOfError, 5000);
|
|
49731
50033
|
},
|
|
49732
50034
|
onSuccess: function (sewerageData) {
|
|
49733
50035
|
try {
|
|
@@ -49746,7 +50048,6 @@ const OLDApplication = () => {
|
|
|
49746
50048
|
key: "error",
|
|
49747
50049
|
message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : (_error$response4$data3 = _error$response4$data2[0]) === null || _error$response4$data3 === void 0 ? void 0 : _error$response4$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49748
50050
|
});
|
|
49749
|
-
setTimeout(closeToastOfError, 5000);
|
|
49750
50051
|
},
|
|
49751
50052
|
onSuccess: function (sewerageUpdateData) {
|
|
49752
50053
|
try {
|
|
@@ -49794,7 +50095,6 @@ const OLDApplication = () => {
|
|
|
49794
50095
|
key: "error",
|
|
49795
50096
|
message: (error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : (_error$response5$data2 = _error$response5$data.Errors) === null || _error$response5$data2 === void 0 ? void 0 : (_error$response5$data3 = _error$response5$data2[0]) === null || _error$response5$data3 === void 0 ? void 0 : _error$response5$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49796
50097
|
});
|
|
49797
|
-
setTimeout(closeToastOfError, 5000);
|
|
49798
50098
|
},
|
|
49799
50099
|
onSuccess: function (data) {
|
|
49800
50100
|
try {
|
|
@@ -49812,7 +50112,6 @@ const OLDApplication = () => {
|
|
|
49812
50112
|
key: "error",
|
|
49813
50113
|
message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : (_error$response6$data3 = _error$response6$data2[0]) === null || _error$response6$data3 === void 0 ? void 0 : _error$response6$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49814
50114
|
});
|
|
49815
|
-
setTimeout(closeToastOfError, 5000);
|
|
49816
50115
|
},
|
|
49817
50116
|
onSuccess: data => {
|
|
49818
50117
|
var _data$WaterConnection2, _data$WaterConnection3;
|
|
@@ -49844,7 +50143,6 @@ const OLDApplication = () => {
|
|
|
49844
50143
|
key: "error",
|
|
49845
50144
|
message: (error === null || error === void 0 ? void 0 : (_error$response7 = error.response) === null || _error$response7 === void 0 ? void 0 : (_error$response7$data = _error$response7.data) === null || _error$response7$data === void 0 ? void 0 : (_error$response7$data2 = _error$response7$data.Errors) === null || _error$response7$data2 === void 0 ? void 0 : (_error$response7$data3 = _error$response7$data2[0]) === null || _error$response7$data3 === void 0 ? void 0 : _error$response7$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49846
50145
|
});
|
|
49847
|
-
setTimeout(closeToastOfError, 5000);
|
|
49848
50146
|
},
|
|
49849
50147
|
onSuccess: function (data) {
|
|
49850
50148
|
try {
|
|
@@ -49862,7 +50160,6 @@ const OLDApplication = () => {
|
|
|
49862
50160
|
key: "error",
|
|
49863
50161
|
message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : (_error$response8$data3 = _error$response8$data2[0]) === null || _error$response8$data3 === void 0 ? void 0 : _error$response8$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
|
|
49864
50162
|
});
|
|
49865
|
-
setTimeout(closeToastOfError, 5000);
|
|
49866
50163
|
},
|
|
49867
50164
|
onSuccess: data => {
|
|
49868
50165
|
var _data$SewerageConnect2, _data$SewerageConnect3;
|
|
@@ -49930,6 +50227,7 @@ const OLDApplication = () => {
|
|
|
49930
50227
|
cardFormWrapperClassName: "new-application-card"
|
|
49931
50228
|
}), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
49932
50229
|
isDleteBtn: true,
|
|
50230
|
+
duration: 5000,
|
|
49933
50231
|
error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? true : false,
|
|
49934
50232
|
warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
|
|
49935
50233
|
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|