@djb25/digit-ui-module-commonpt 1.0.27 → 1.0.28
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 +235 -165
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +236 -166
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Loader, VerticalTimeline, FormComposer, Toast, Card, CardText, StatusTable, Row, SubmitBar, Banner, LayoutWrapper, Header, ResponseComposer, Table, Modal, KeyNote, Dropdown, InfoBannerIcon, Localities, OTPInput, CardLabelError, FormStep, UploadFile, RadioButtons, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, ViewsIcon, BreakLine, TelePhone, DisplayPhotos, AddIcon, EditIcon, CheckPoint, ConnectingCheckPoints, ActionBar, Menu, ButtonSelector,
|
|
1
|
+
import { Loader, VerticalTimeline, FormComposer, Toast, Card, CardText, StatusTable, Row, SubmitBar, Banner, LayoutWrapper, Header, ResponseComposer, Table, Modal, KeyNote, Dropdown, InfoBannerIcon, Localities, OTPInput, CardLabelError, FormStep, UploadFile, RadioButtons, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, ViewsIcon, BreakLine, TelePhone, DisplayPhotos, AddIcon, EditIcon, CheckPoint, ConnectingCheckPoints, ActionBar, Menu, ButtonSelector, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, HomeIcon, AddressDetails, CollapsibleCardPage, DeleteIcon, MobileNumber, RadioOrSelect, TextArea, SearchForm, SearchField, DetailsCard, TickMark, PropertyHouse, EmployeeModuleCard, CitizenHomeCard, PTIcon } from '@djb25/digit-ui-react-components';
|
|
2
2
|
import React, { useState, useEffect, useRef, useLayoutEffect, useMemo, Fragment as Fragment$1, memo, useCallback } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useLocation, useHistory, useRouteMatch, Switch, Route, Link, useParams } from 'react-router-dom';
|
|
@@ -6371,6 +6371,14 @@ const CreatePropertyForm = _ref => {
|
|
|
6371
6371
|
const onSubmit = function () {
|
|
6372
6372
|
try {
|
|
6373
6373
|
var _formValue$owners, _formValue$owners$own, _formValue$owners2, _formValue$owners2$, _formValue$owners2$$o, _formValue$owners2$$o2, _formValue$owners3;
|
|
6374
|
+
const loc = formValue === null || formValue === void 0 ? void 0 : formValue.locationDet;
|
|
6375
|
+
if (!(loc !== null && loc !== void 0 && loc.addressType) || !(loc !== null && loc !== void 0 && loc.city) || !(loc !== null && loc !== void 0 && loc.pincode) || !(loc !== null && loc !== void 0 && loc.locality) || !(loc !== null && loc !== void 0 && loc.buildingColonyName)) {
|
|
6376
|
+
setShowToast({
|
|
6377
|
+
key: true,
|
|
6378
|
+
label: "Please fill all the mandatory fields"
|
|
6379
|
+
});
|
|
6380
|
+
return Promise.resolve();
|
|
6381
|
+
}
|
|
6374
6382
|
let ownersArray = owners && owners.length > 0 ? owners : formValue === null || formValue === void 0 ? void 0 : formValue.owners;
|
|
6375
6383
|
if (!ownersArray || ownersArray.length === 0) {
|
|
6376
6384
|
var _Digit$UserService$ge;
|
|
@@ -7962,7 +7970,13 @@ const PropertySearchResults = _ref => {
|
|
|
7962
7970
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
7963
7971
|
className: "link"
|
|
7964
7972
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
7965
|
-
to:
|
|
7973
|
+
to: {
|
|
7974
|
+
pathname: "/digit-ui/citizen/commonpt/view-property",
|
|
7975
|
+
search: "?propertyId=" + row.original.property_id + "&tenantId=" + tenantId,
|
|
7976
|
+
state: {
|
|
7977
|
+
fromSearch: true
|
|
7978
|
+
}
|
|
7979
|
+
}
|
|
7966
7980
|
}, row.original.property_id)));
|
|
7967
7981
|
}
|
|
7968
7982
|
}, {
|
|
@@ -9386,8 +9400,70 @@ const configWSApproverApplication = _ref => {
|
|
|
9386
9400
|
uploadedFile = _ref.uploadedFile,
|
|
9387
9401
|
setUploadedFile = _ref.setUploadedFile,
|
|
9388
9402
|
businessService = _ref.businessService,
|
|
9389
|
-
error = _ref.error
|
|
9403
|
+
error = _ref.error,
|
|
9404
|
+
isReasonRequiredAction = _ref.isReasonRequiredAction,
|
|
9405
|
+
selectedReason = _ref.selectedReason,
|
|
9406
|
+
setSelectedReason = _ref.setSelectedReason,
|
|
9407
|
+
otherReasonText = _ref.otherReasonText,
|
|
9408
|
+
setOtherReasonText = _ref.setOtherReasonText;
|
|
9390
9409
|
if (action !== null && action !== void 0 && (_action$action = action.action) !== null && _action$action !== void 0 && _action$action.includes("SEND_BACK") || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE_FOR_CONNECTION") ;
|
|
9410
|
+
const reasonOptions = [{
|
|
9411
|
+
code: "INCOMPLETE_DOCUMENTS",
|
|
9412
|
+
name: "Incomplete / Incorrect Documents",
|
|
9413
|
+
i18nKey: "WS_MUTATION_REASON_INCOMPLETE_DOCUMENTS"
|
|
9414
|
+
}, {
|
|
9415
|
+
code: "MISMATCH_DETAILS",
|
|
9416
|
+
name: "Mismatch in Owner / Consumer Details",
|
|
9417
|
+
i18nKey: "WS_MUTATION_REASON_MISMATCH_DETAILS"
|
|
9418
|
+
}, {
|
|
9419
|
+
code: "INVALID_PROOF",
|
|
9420
|
+
name: "Invalid / Unverified Proof Provided",
|
|
9421
|
+
i18nKey: "WS_MUTATION_REASON_INVALID_PROOF"
|
|
9422
|
+
}, {
|
|
9423
|
+
code: "OTHER",
|
|
9424
|
+
name: "Other",
|
|
9425
|
+
i18nKey: "WS_MUTATION_REASON_OTHER"
|
|
9426
|
+
}];
|
|
9427
|
+
const commentsField = isReasonRequiredAction ? [{
|
|
9428
|
+
label: t("WF_REASON_LABEL") || t("Reason"),
|
|
9429
|
+
isMandatory: true,
|
|
9430
|
+
populators: /*#__PURE__*/React.createElement(Dropdown, {
|
|
9431
|
+
option: reasonOptions,
|
|
9432
|
+
autoComplete: "off",
|
|
9433
|
+
optionKey: "name",
|
|
9434
|
+
id: "mutationActionReason",
|
|
9435
|
+
select: val => {
|
|
9436
|
+
setSelectedReason(val);
|
|
9437
|
+
if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER") {
|
|
9438
|
+
setOtherReasonText("");
|
|
9439
|
+
}
|
|
9440
|
+
},
|
|
9441
|
+
selected: selectedReason,
|
|
9442
|
+
t: t,
|
|
9443
|
+
placeholder: t("WF_SELECT_REASON_PLACEHOLDER") || "Select Reason"
|
|
9444
|
+
})
|
|
9445
|
+
}, ...((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER" ? [{
|
|
9446
|
+
label: t("WF_OTHER_REASON_LABEL") || t("Please specify reason"),
|
|
9447
|
+
isMandatory: true,
|
|
9448
|
+
populators: /*#__PURE__*/React.createElement("textarea", {
|
|
9449
|
+
className: "employee-card-input",
|
|
9450
|
+
style: {
|
|
9451
|
+
width: "100%",
|
|
9452
|
+
height: "80px",
|
|
9453
|
+
resize: "vertical",
|
|
9454
|
+
marginTop: "4px"
|
|
9455
|
+
},
|
|
9456
|
+
value: otherReasonText,
|
|
9457
|
+
onChange: e => setOtherReasonText(e.target.value),
|
|
9458
|
+
placeholder: t("WF_ENTER_OTHER_REASON_PLACEHOLDER") || "Enter reason details..."
|
|
9459
|
+
})
|
|
9460
|
+
}] : [])] : [{
|
|
9461
|
+
label: t("WF_COMMON_COMMENTS"),
|
|
9462
|
+
type: "textarea",
|
|
9463
|
+
populators: {
|
|
9464
|
+
name: "comments"
|
|
9465
|
+
}
|
|
9466
|
+
}];
|
|
9391
9467
|
return {
|
|
9392
9468
|
label: {
|
|
9393
9469
|
heading: "WF_" + (action === null || action === void 0 ? void 0 : action.action) + "_APPLICATION",
|
|
@@ -9395,13 +9471,7 @@ const configWSApproverApplication = _ref => {
|
|
|
9395
9471
|
cancel: "CS_COMMON_CANCEL"
|
|
9396
9472
|
},
|
|
9397
9473
|
form: [{
|
|
9398
|
-
body: [{
|
|
9399
|
-
label: t("WF_COMMON_COMMENTS"),
|
|
9400
|
-
type: "textarea",
|
|
9401
|
-
populators: {
|
|
9402
|
-
name: "comments"
|
|
9403
|
-
}
|
|
9404
|
-
}, {
|
|
9474
|
+
body: [...commentsField, {
|
|
9405
9475
|
label: t("WS_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
|
|
9406
9476
|
populators: /*#__PURE__*/React.createElement(UploadFile, {
|
|
9407
9477
|
id: "workflow-doc",
|
|
@@ -12004,7 +12074,7 @@ const convertDateToEpochNew = function (dateString, dayStartOrEnd) {
|
|
|
12004
12074
|
}
|
|
12005
12075
|
};
|
|
12006
12076
|
const ActionModal$5 = _ref => {
|
|
12007
|
-
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
12077
|
+
var _action$assigneeRoles, _action$assigneeRoles2, _applicationData, _applicationData$appl, _applicationData2, _applicationData2$bus, _applicationData3, _applicationData3$app, _action$action, _action$action2;
|
|
12008
12078
|
let t = _ref.t,
|
|
12009
12079
|
action = _ref.action,
|
|
12010
12080
|
tenantId = _ref.tenantId,
|
|
@@ -12046,6 +12116,14 @@ const ActionModal$5 = _ref => {
|
|
|
12046
12116
|
const _useState7 = useState(null),
|
|
12047
12117
|
error = _useState7[0],
|
|
12048
12118
|
setError = _useState7[1];
|
|
12119
|
+
const _useState8 = useState(null),
|
|
12120
|
+
selectedReason = _useState8[0],
|
|
12121
|
+
setSelectedReason = _useState8[1];
|
|
12122
|
+
const _useState9 = useState(""),
|
|
12123
|
+
otherReasonText = _useState9[0],
|
|
12124
|
+
setOtherReasonText = _useState9[1];
|
|
12125
|
+
const isMutationApp = ((_applicationData = applicationData) === null || _applicationData === void 0 ? void 0 : (_applicationData$appl = _applicationData.applicationType) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.includes("MUTATION")) || ((_applicationData2 = applicationData) === null || _applicationData2 === void 0 ? void 0 : (_applicationData2$bus = _applicationData2.businessService) === null || _applicationData2$bus === void 0 ? void 0 : _applicationData2$bus.includes("MUTATION")) || (businessService === null || businessService === void 0 ? void 0 : businessService.includes("MUTATION")) || ((_applicationData3 = applicationData) === null || _applicationData3 === void 0 ? void 0 : (_applicationData3$app = _applicationData3.applicationNo) === null || _applicationData3$app === void 0 ? void 0 : _applicationData3$app.includes("MUT"));
|
|
12126
|
+
const isReasonRequiredAction = isMutationApp && ((action === null || action === void 0 ? void 0 : (_action$action = action.action) === null || _action$action === void 0 ? void 0 : _action$action.includes("SEND_BACK")) || (action === null || action === void 0 ? void 0 : (_action$action2 = action.action) === null || _action$action2 === void 0 ? void 0 : _action$action2.includes("REJECT")));
|
|
12049
12127
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
12050
12128
|
const isEmployee = window.location.href.includes("/employee");
|
|
12051
12129
|
useEffect(() => {
|
|
@@ -12106,24 +12184,40 @@ const ActionModal$5 = _ref => {
|
|
|
12106
12184
|
})();
|
|
12107
12185
|
}, [file]);
|
|
12108
12186
|
function submit(data) {
|
|
12109
|
-
var
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12187
|
+
var _applicationData4, _applicationData0, _applicationData1, _applicationData1$app, _applicationData10, _applicationData10$pr, _applicationData11, _applicationData11$pr, _applicationData13, _applicationData14;
|
|
12188
|
+
let commentValue = (data === null || data === void 0 ? void 0 : data.comments) || "";
|
|
12189
|
+
if (isReasonRequiredAction) {
|
|
12190
|
+
if (!selectedReason) {
|
|
12191
|
+
setError(t("PLEASE_SELECT_REASON") || "Please select a reason");
|
|
12192
|
+
return;
|
|
12193
|
+
}
|
|
12194
|
+
if ((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER") {
|
|
12195
|
+
if (!otherReasonText || otherReasonText.trim() === "") {
|
|
12196
|
+
setError(t("PLEASE_ENTER_REASON") || "Please enter the reason");
|
|
12197
|
+
return;
|
|
12198
|
+
}
|
|
12199
|
+
commentValue = otherReasonText.trim();
|
|
12200
|
+
} else {
|
|
12201
|
+
commentValue = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.name) || (selectedReason !== null && selectedReason !== void 0 && selectedReason.i18nKey ? t(selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.i18nKey) : selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code);
|
|
12202
|
+
}
|
|
12203
|
+
}
|
|
12204
|
+
if ((_applicationData4 = applicationData) !== null && _applicationData4 !== void 0 && _applicationData4.isBillAmend) {
|
|
12205
|
+
var _applicationData5, _applicationData5$bil, _applicationData6, _applicationData7, _applicationData7$bil, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$app;
|
|
12206
|
+
const comments = commentValue || (data !== null && data !== void 0 && data.comments ? data.comments : null);
|
|
12207
|
+
const additionalDetails = _extends({}, (_applicationData5 = applicationData) === null || _applicationData5 === void 0 ? void 0 : (_applicationData5$bil = _applicationData5.billAmendmentDetails) === null || _applicationData5$bil === void 0 ? void 0 : _applicationData5$bil.additionalDetails, {
|
|
12114
12208
|
comments
|
|
12115
12209
|
});
|
|
12116
|
-
const amendment = _extends({}, (
|
|
12210
|
+
const amendment = _extends({}, (_applicationData6 = applicationData) === null || _applicationData6 === void 0 ? void 0 : _applicationData6.billAmendmentDetails, {
|
|
12117
12211
|
workflow: {
|
|
12118
|
-
businessId: (
|
|
12212
|
+
businessId: (_applicationData7 = applicationData) === null || _applicationData7 === void 0 ? void 0 : (_applicationData7$bil = _applicationData7.billAmendmentDetails) === null || _applicationData7$bil === void 0 ? void 0 : _applicationData7$bil.amendmentId,
|
|
12119
12213
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
12120
12214
|
tenantId: tenantId,
|
|
12121
|
-
businessService: (
|
|
12122
|
-
moduleName: (
|
|
12215
|
+
businessService: (_applicationData8 = applicationData) !== null && _applicationData8 !== void 0 && (_applicationData8$app = _applicationData8.applicationType) !== null && _applicationData8$app !== void 0 && _applicationData8$app.includes("WATER") ? "WS.AMENDMENT" : "SW.AMENDMENT",
|
|
12216
|
+
moduleName: (_applicationData9 = applicationData) !== null && _applicationData9 !== void 0 && (_applicationData9$app = _applicationData9.applicationType) !== null && _applicationData9$app !== void 0 && _applicationData9$app.includes("WATER") ? "WS" : "SW",
|
|
12123
12217
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
12124
12218
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
12125
12219
|
}],
|
|
12126
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
12220
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
12127
12221
|
documents: uploadedFile ? [{
|
|
12128
12222
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
12129
12223
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -12131,7 +12225,7 @@ const ActionModal$5 = _ref => {
|
|
|
12131
12225
|
}] : []
|
|
12132
12226
|
},
|
|
12133
12227
|
additionalDetails,
|
|
12134
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
12228
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
12135
12229
|
wfDocuments: uploadedFile ? [{
|
|
12136
12230
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
12137
12231
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -12142,7 +12236,7 @@ const ActionModal$5 = _ref => {
|
|
|
12142
12236
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
12143
12237
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
12144
12238
|
}],
|
|
12145
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
12239
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
12146
12240
|
documents: uploadedFile ? [{
|
|
12147
12241
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
12148
12242
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -12157,7 +12251,7 @@ const ActionModal$5 = _ref => {
|
|
|
12157
12251
|
}
|
|
12158
12252
|
applicationData = _extends({}, applicationData, {
|
|
12159
12253
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
12160
|
-
comment:
|
|
12254
|
+
comment: commentValue,
|
|
12161
12255
|
assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
12162
12256
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
12163
12257
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
@@ -12167,12 +12261,12 @@ const ActionModal$5 = _ref => {
|
|
|
12167
12261
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
12168
12262
|
fileStoreId: uploadedFile
|
|
12169
12263
|
}] : null,
|
|
12170
|
-
processInstance: _extends({}, (
|
|
12264
|
+
processInstance: _extends({}, (_applicationData0 = applicationData) === null || _applicationData0 === void 0 ? void 0 : _applicationData0.processInstance, {
|
|
12171
12265
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
12172
12266
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
12173
12267
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
12174
12268
|
}],
|
|
12175
|
-
comment:
|
|
12269
|
+
comment: commentValue,
|
|
12176
12270
|
documents: uploadedFile ? [{
|
|
12177
12271
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
12178
12272
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -12180,36 +12274,36 @@ const ActionModal$5 = _ref => {
|
|
|
12180
12274
|
}] : []
|
|
12181
12275
|
})
|
|
12182
12276
|
});
|
|
12183
|
-
if (data !== null && data !== void 0 && data.date && (
|
|
12277
|
+
if (data !== null && data !== void 0 && data.date && (_applicationData1 = applicationData) !== null && _applicationData1 !== void 0 && (_applicationData1$app = _applicationData1.applicationType) !== null && _applicationData1$app !== void 0 && _applicationData1$app.includes("DISCONNECT")) {
|
|
12184
12278
|
const disconnectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
12185
12279
|
applicationData.disconnectionExecutionDate = convertDateToEpochNew(disconnectionExecutionDate);
|
|
12186
12280
|
} else if (data !== null && data !== void 0 && data.date) {
|
|
12187
12281
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
12188
12282
|
applicationData.connectionExecutionDate = convertDateToEpochNew(connectionExecutionDate);
|
|
12189
12283
|
}
|
|
12190
|
-
if (((
|
|
12191
|
-
var
|
|
12192
|
-
((
|
|
12284
|
+
if (((_applicationData10 = applicationData) === null || _applicationData10 === void 0 ? void 0 : (_applicationData10$pr = _applicationData10.processInstance) === null || _applicationData10$pr === void 0 ? void 0 : _applicationData10$pr.businessService) == "DisconnectWSConnection" || ((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : (_applicationData11$pr = _applicationData11.processInstance) === null || _applicationData11$pr === void 0 ? void 0 : _applicationData11$pr.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
|
|
12285
|
+
var _applicationData12;
|
|
12286
|
+
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
12193
12287
|
WaterConnection: applicationData,
|
|
12194
12288
|
disconnectRequest: true
|
|
12195
12289
|
}) : submitAction({
|
|
12196
12290
|
SewerageConnection: applicationData,
|
|
12197
12291
|
disconnectRequest: true
|
|
12198
12292
|
});
|
|
12199
|
-
} else if (((
|
|
12293
|
+
} else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
12200
12294
|
submitAction({
|
|
12201
12295
|
SewerageConnection: applicationData,
|
|
12202
12296
|
disconnectRequest: false,
|
|
12203
12297
|
reconnectRequest: true
|
|
12204
12298
|
});
|
|
12205
|
-
} else if (((
|
|
12299
|
+
} else if (((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.applicationType) == "WATER_RECONNECTION") {
|
|
12206
12300
|
submitAction({
|
|
12207
12301
|
WaterConnection: applicationData,
|
|
12208
12302
|
disconnectRequest: false,
|
|
12209
12303
|
reconnectRequest: true
|
|
12210
12304
|
});
|
|
12211
12305
|
} else {
|
|
12212
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10,
|
|
12306
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData15;
|
|
12213
12307
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
12214
12308
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
12215
12309
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat !== void 0 && _parsedAdhocRebateDat.adhocPenalty) applicationData.additionalDetails.adhocPenalty = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat2 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat2 === void 0 ? void 0 : _parsedAdhocRebateDat2.adhocPenalty) || "";
|
|
@@ -12218,7 +12312,7 @@ const ActionModal$5 = _ref => {
|
|
|
12218
12312
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
|
|
12219
12313
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
|
|
12220
12314
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
|
|
12221
|
-
((
|
|
12315
|
+
((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : _applicationData15.serviceType) == "WATER" ? submitAction({
|
|
12222
12316
|
WaterConnection: applicationData,
|
|
12223
12317
|
disconnectRequest: false,
|
|
12224
12318
|
reconnectRequest: false
|
|
@@ -12230,8 +12324,8 @@ const ActionModal$5 = _ref => {
|
|
|
12230
12324
|
}
|
|
12231
12325
|
}
|
|
12232
12326
|
useEffect(() => {
|
|
12233
|
-
var
|
|
12234
|
-
if (((
|
|
12327
|
+
var _applicationData16, _applicationData16$pr, _applicationData17, _applicationData17$pr;
|
|
12328
|
+
if (((_applicationData16 = applicationData) === null || _applicationData16 === void 0 ? void 0 : (_applicationData16$pr = _applicationData16.processInstance) === null || _applicationData16$pr === void 0 ? void 0 : _applicationData16$pr.businessService) == "DisconnectWSConnection" || ((_applicationData17 = applicationData) === null || _applicationData17 === void 0 ? void 0 : (_applicationData17$pr = _applicationData17.processInstance) === null || _applicationData17$pr === void 0 ? void 0 : _applicationData17$pr.businessService) == "DisconnectSWConnection") {
|
|
12235
12329
|
if (action) {
|
|
12236
12330
|
setConfig(configWSDisConnectApplication({
|
|
12237
12331
|
t,
|
|
@@ -12258,11 +12352,16 @@ const ActionModal$5 = _ref => {
|
|
|
12258
12352
|
uploadedFile,
|
|
12259
12353
|
setUploadedFile,
|
|
12260
12354
|
businessService,
|
|
12261
|
-
error
|
|
12355
|
+
error,
|
|
12356
|
+
isReasonRequiredAction,
|
|
12357
|
+
selectedReason,
|
|
12358
|
+
setSelectedReason,
|
|
12359
|
+
otherReasonText,
|
|
12360
|
+
setOtherReasonText
|
|
12262
12361
|
}));
|
|
12263
12362
|
}
|
|
12264
12363
|
}
|
|
12265
|
-
}, [action, approvers, uploadedFile, error]);
|
|
12364
|
+
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText]);
|
|
12266
12365
|
return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
|
|
12267
12366
|
headerBarMain: /*#__PURE__*/React.createElement(Heading$5, {
|
|
12268
12367
|
label: t(config.label.heading)
|
|
@@ -12279,7 +12378,13 @@ const ActionModal$5 = _ref => {
|
|
|
12279
12378
|
width: "100%",
|
|
12280
12379
|
height: "auto"
|
|
12281
12380
|
} : {}
|
|
12282
|
-
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(
|
|
12381
|
+
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(React.Fragment, null, error && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
12382
|
+
style: {
|
|
12383
|
+
marginBottom: "12px",
|
|
12384
|
+
marginLeft: "12px",
|
|
12385
|
+
marginRight: "12px"
|
|
12386
|
+
}
|
|
12387
|
+
}, error), /*#__PURE__*/React.createElement(FormComposer, {
|
|
12283
12388
|
config: config.form,
|
|
12284
12389
|
noBoxShadow: true,
|
|
12285
12390
|
inline: true,
|
|
@@ -12291,7 +12396,7 @@ const ActionModal$5 = _ref => {
|
|
|
12291
12396
|
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
12292
12397
|
cardClassName: cardClassName,
|
|
12293
12398
|
formClassName: formClassName
|
|
12294
|
-
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
12399
|
+
}))) : /*#__PURE__*/React.createElement(Loader, null);
|
|
12295
12400
|
};
|
|
12296
12401
|
|
|
12297
12402
|
const Heading$6 = props => {
|
|
@@ -14333,7 +14438,7 @@ function PropertyDocuments(_ref) {
|
|
|
14333
14438
|
});
|
|
14334
14439
|
});
|
|
14335
14440
|
const allChecked = requiredDocsCount === 0 || checkedCount === requiredDocsCount;
|
|
14336
|
-
const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION";
|
|
14441
|
+
const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION" || applicationStatus === "PENDING_APPROVAL_FOR_MUTATION";
|
|
14337
14442
|
const finalVerified = isDocVerifState ? allChecked : true;
|
|
14338
14443
|
window.isDocumentsVerified = finalVerified;
|
|
14339
14444
|
window.dispatchEvent(new CustomEvent("DOCUMENTS_VERIFIED", {
|
|
@@ -14569,7 +14674,7 @@ function PropertyDocuments(_ref) {
|
|
|
14569
14674
|
style: {
|
|
14570
14675
|
cursor: "pointer"
|
|
14571
14676
|
}
|
|
14572
|
-
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$fil2, _value$originalDoc2, _value$originalDoc3, _value$originalDoc4) => {
|
|
14677
|
+
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$fil2, _value$originalDoc2, _value$originalDoc3, _ref4, _checkedMap$value$fil3, _value$originalDoc4) => {
|
|
14573
14678
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
14574
14679
|
onClick: () => {
|
|
14575
14680
|
if (fileUrl) {
|
|
@@ -14618,10 +14723,10 @@ function PropertyDocuments(_ref) {
|
|
|
14618
14723
|
width: "18px",
|
|
14619
14724
|
height: "18px",
|
|
14620
14725
|
accentColor: "#F47738",
|
|
14621
|
-
cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" ? "not-allowed" : "pointer"
|
|
14726
|
+
cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" ? "not-allowed" : "pointer"
|
|
14622
14727
|
},
|
|
14623
|
-
disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION",
|
|
14624
|
-
|
|
14728
|
+
disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" && applicationStatus !== "ACTIVATE_MUTATION",
|
|
14729
|
+
checked: applicationStatus === "PENDING_FOR_MUTATION_ACTIVATION" || ((_ref4 = (_checkedMap$value$fil3 = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil3 : value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified) != null ? _ref4 : false),
|
|
14625
14730
|
onChange: e => {
|
|
14626
14731
|
const checked = e.target.checked;
|
|
14627
14732
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
@@ -15412,7 +15517,7 @@ const Rebate_menu = [{
|
|
|
15412
15517
|
value: "Others"
|
|
15413
15518
|
}];
|
|
15414
15519
|
const WSFeeEstimation = _ref => {
|
|
15415
|
-
var _wsAdditionalDetails$,
|
|
15520
|
+
var _wsAdditionalDetails$, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
15416
15521
|
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
15417
15522
|
const _useTranslation = useTranslation(),
|
|
15418
15523
|
t = _useTranslation.t;
|
|
@@ -15445,17 +15550,10 @@ const WSFeeEstimation = _ref => {
|
|
|
15445
15550
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
15446
15551
|
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
15447
15552
|
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.taxHeadEstimates) || [];
|
|
15448
|
-
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => {
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2), bill !== null && bill !== void 0 && bill.status ? /*#__PURE__*/React.createElement("span", {
|
|
15453
|
-
style: {
|
|
15454
|
-
color: (bill === null || bill === void 0 ? void 0 : (_bill$status = bill.status) === null || _bill$status === void 0 ? void 0 : _bill$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
15455
|
-
}
|
|
15456
|
-
}, " (" + (bill === null || bill === void 0 ? void 0 : bill.status) + ")") : "")
|
|
15457
|
-
};
|
|
15458
|
-
}) : [{
|
|
15553
|
+
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
|
|
15554
|
+
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
15555
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
|
|
15556
|
+
})) : [{
|
|
15459
15557
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
15460
15558
|
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.fee)
|
|
15461
15559
|
}, {
|
|
@@ -15537,17 +15635,10 @@ const WSFeeEstimation = _ref => {
|
|
|
15537
15635
|
}
|
|
15538
15636
|
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");
|
|
15539
15637
|
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) || [];
|
|
15540
|
-
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => {
|
|
15541
|
-
|
|
15542
|
-
|
|
15543
|
-
|
|
15544
|
-
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2), data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
|
|
15545
|
-
style: {
|
|
15546
|
-
color: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
15547
|
-
}
|
|
15548
|
-
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : "")
|
|
15549
|
-
};
|
|
15550
|
-
}) : [{
|
|
15638
|
+
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
|
|
15639
|
+
title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
|
|
15640
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.estimateAmount).toFixed(2))
|
|
15641
|
+
})) : [{
|
|
15551
15642
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
15552
15643
|
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
|
|
15553
15644
|
}, {
|
|
@@ -15643,17 +15734,7 @@ const WSFeeEstimation = _ref => {
|
|
|
15643
15734
|
} : {
|
|
15644
15735
|
color: "#2E9E8F"
|
|
15645
15736
|
}
|
|
15646
|
-
}))),
|
|
15647
|
-
onClick: e => {
|
|
15648
|
-
showPopUp(true);
|
|
15649
|
-
}
|
|
15650
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
15651
|
-
className: "add-details-link hover-button",
|
|
15652
|
-
style: {
|
|
15653
|
-
cursor: "pointer",
|
|
15654
|
-
color: "#a82227"
|
|
15655
|
-
}
|
|
15656
|
-
}, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
|
|
15737
|
+
}))), popup && /*#__PURE__*/React.createElement(Modal, {
|
|
15657
15738
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
15658
15739
|
label: t("PT_ADD_REBATE_PENALITY")
|
|
15659
15740
|
}),
|
|
@@ -15933,17 +16014,10 @@ const ViewBreakup = _ref => {
|
|
|
15933
16014
|
if (rows === void 0) {
|
|
15934
16015
|
rows = [];
|
|
15935
16016
|
}
|
|
15936
|
-
return rows.map(row => {
|
|
15937
|
-
|
|
15938
|
-
|
|
15939
|
-
|
|
15940
|
-
value: /*#__PURE__*/React.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount), row !== null && row !== void 0 && row.status ? /*#__PURE__*/React.createElement("span", {
|
|
15941
|
-
style: {
|
|
15942
|
-
color: (row === null || row === void 0 ? void 0 : (_row$status = row.status) === null || _row$status === void 0 ? void 0 : _row$status.toUpperCase()) === "PAID" ? "green" : "red"
|
|
15943
|
-
}
|
|
15944
|
-
}, " (" + (row === null || row === void 0 ? void 0 : row.status) + ")") : "")
|
|
15945
|
-
};
|
|
15946
|
-
});
|
|
16017
|
+
return rows.map(row => ({
|
|
16018
|
+
title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
|
|
16019
|
+
value: /*#__PURE__*/React.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount))
|
|
16020
|
+
}));
|
|
15947
16021
|
};
|
|
15948
16022
|
const connectionHolder = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : (_wsAdditionalDetails$4 = _wsAdditionalDetails$3.connectionHolders) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4[0];
|
|
15949
16023
|
const applicantName = [connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.name, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.middleName, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.lastName].filter(Boolean).join(" ") || "-";
|
|
@@ -16222,70 +16296,49 @@ const ViewBreakup = _ref => {
|
|
|
16222
16296
|
style: {
|
|
16223
16297
|
margin: "10px 0px"
|
|
16224
16298
|
}
|
|
16225
|
-
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => {
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
|
|
16234
|
-
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
-
|
|
16240
|
-
|
|
16241
|
-
|
|
16242
|
-
|
|
16243
|
-
|
|
16244
|
-
|
|
16245
|
-
|
|
16246
|
-
|
|
16247
|
-
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
|
|
16251
|
-
|
|
16252
|
-
|
|
16253
|
-
|
|
16254
|
-
|
|
16255
|
-
|
|
16256
|
-
|
|
16257
|
-
|
|
16258
|
-
|
|
16259
|
-
|
|
16260
|
-
|
|
16261
|
-
|
|
16262
|
-
|
|
16263
|
-
|
|
16264
|
-
|
|
16265
|
-
|
|
16266
|
-
}
|
|
16267
|
-
}),
|
|
16268
|
-
var _data$status3;
|
|
16269
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
16270
|
-
className: "border-none",
|
|
16271
|
-
rowContainerStyle: {
|
|
16272
|
-
margin: "0px"
|
|
16273
|
-
},
|
|
16274
|
-
labelStyle: {
|
|
16275
|
-
width: "50%"
|
|
16276
|
-
},
|
|
16277
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
16278
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
16279
|
-
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0, data !== null && data !== void 0 && data.status ? /*#__PURE__*/React.createElement("span", {
|
|
16280
|
-
style: {
|
|
16281
|
-
color: (data === null || data === void 0 ? void 0 : (_data$status3 = data.status) === null || _data$status3 === void 0 ? void 0 : _data$status3.toUpperCase()) === "PAID" ? "green" : "red"
|
|
16282
|
-
}
|
|
16283
|
-
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
16284
|
-
textStyle: {
|
|
16285
|
-
textAlign: "right"
|
|
16286
|
-
}
|
|
16287
|
-
});
|
|
16288
|
-
}), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
16299
|
+
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
16300
|
+
className: "border-none",
|
|
16301
|
+
rowContainerStyle: {
|
|
16302
|
+
margin: "0px"
|
|
16303
|
+
},
|
|
16304
|
+
labelStyle: {
|
|
16305
|
+
width: "50%"
|
|
16306
|
+
},
|
|
16307
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
16308
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
16309
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
16310
|
+
textStyle: {
|
|
16311
|
+
textAlign: "right"
|
|
16312
|
+
}
|
|
16313
|
+
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab6 = breakUpData.billSlabData) === null || _breakUpData$billSlab6 === void 0 ? void 0 : (_breakUpData$billSlab7 = _breakUpData$billSlab6.CHARGES) === null || _breakUpData$billSlab7 === void 0 ? void 0 : _breakUpData$billSlab7.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
16314
|
+
className: "border-none",
|
|
16315
|
+
rowContainerStyle: {
|
|
16316
|
+
margin: "0px"
|
|
16317
|
+
},
|
|
16318
|
+
labelStyle: {
|
|
16319
|
+
width: "50%"
|
|
16320
|
+
},
|
|
16321
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
16322
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
16323
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
16324
|
+
textStyle: {
|
|
16325
|
+
textAlign: "right"
|
|
16326
|
+
}
|
|
16327
|
+
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab8 = breakUpData.billSlabData) === null || _breakUpData$billSlab8 === void 0 ? void 0 : (_breakUpData$billSlab9 = _breakUpData$billSlab8.TAX) === null || _breakUpData$billSlab9 === void 0 ? void 0 : _breakUpData$billSlab9.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
16328
|
+
className: "border-none",
|
|
16329
|
+
rowContainerStyle: {
|
|
16330
|
+
margin: "0px"
|
|
16331
|
+
},
|
|
16332
|
+
labelStyle: {
|
|
16333
|
+
width: "50%"
|
|
16334
|
+
},
|
|
16335
|
+
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
16336
|
+
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
16337
|
+
text: /*#__PURE__*/React.createElement("span", null, "\u20B9", Number(data === null || data === void 0 ? void 0 : data.amount) || 0),
|
|
16338
|
+
textStyle: {
|
|
16339
|
+
textAlign: "right"
|
|
16340
|
+
}
|
|
16341
|
+
})), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
16289
16342
|
style: {
|
|
16290
16343
|
margin: "10px 0px"
|
|
16291
16344
|
}
|
|
@@ -16903,6 +16956,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
16903
16956
|
workflowDetails = _ref.workflowDetails,
|
|
16904
16957
|
isDataLoading = _ref.isDataLoading,
|
|
16905
16958
|
applicationData = _ref.applicationData,
|
|
16959
|
+
businessService = _ref.businessService,
|
|
16906
16960
|
timelineStatusPrefix = _ref.timelineStatusPrefix,
|
|
16907
16961
|
_ref$showTimeLine = _ref.showTimeLine,
|
|
16908
16962
|
showTimeLine = _ref$showTimeLine === void 0 ? true : _ref$showTimeLine,
|
|
@@ -17178,7 +17232,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
17178
17232
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
17179
17233
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
17180
17234
|
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
|
|
17181
|
-
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
17235
|
+
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _applicationData$appl, _detail$additionalDet20, _applicationData$appl2, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
17182
17236
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
17183
17237
|
key: index
|
|
17184
17238
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -17409,9 +17463,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
17409
17463
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
|
|
17410
17464
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
17411
17465
|
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
17412
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
|
|
17466
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(DueVerification, {
|
|
17413
17467
|
applicationData: applicationData
|
|
17414
|
-
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(InspectionInformation, {
|
|
17468
|
+
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl2 = applicationData.applicationType) !== null && _applicationData$appl2 !== void 0 && _applicationData$appl2.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React.createElement(InspectionInformation, {
|
|
17415
17469
|
applicationData: applicationData
|
|
17416
17470
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
17417
17471
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -18090,7 +18144,7 @@ const ViewProperty = () => {
|
|
|
18090
18144
|
workflowDetails: workflowDetails,
|
|
18091
18145
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
18092
18146
|
moduleCode: "PT"
|
|
18093
|
-
}), window.location.href.includes("redirectToUrl") && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.status) !== "INACTIVE" && /*#__PURE__*/React.createElement(ActionBar, {
|
|
18147
|
+
}), window.location.href.includes("redirectToUrl") && window.location.href.includes("redirectToUrl=null") === false && window.location.href.includes("redirectToUrl=undefined") === false && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.status) !== "INACTIVE" && /*#__PURE__*/React.createElement(ActionBar, {
|
|
18094
18148
|
style: {
|
|
18095
18149
|
display: "flex",
|
|
18096
18150
|
justifyContent: "flex-end",
|
|
@@ -18110,26 +18164,42 @@ const App = _ref => {
|
|
|
18110
18164
|
const _useRouteMatch = useRouteMatch(),
|
|
18111
18165
|
path = _useRouteMatch.path,
|
|
18112
18166
|
match = _objectWithoutPropertiesLoose(_useRouteMatch, _excluded$1);
|
|
18167
|
+
const location = useLocation();
|
|
18113
18168
|
const getBreadcrumbLabel = () => {
|
|
18114
18169
|
const pathname = location.pathname;
|
|
18115
18170
|
if (pathname.includes("/commonpt/search")) return "SEARCH_PROPERTY";else if (pathname.includes("/view-property")) return "PT_PROPERTY_INFORMATION";
|
|
18116
18171
|
if (pathname.includes("/property/new-application")) return "PT_CREATE_PROPERTY";
|
|
18117
18172
|
return "ES_COMMON_INBOX";
|
|
18118
18173
|
};
|
|
18119
|
-
const
|
|
18120
|
-
|
|
18121
|
-
|
|
18122
|
-
|
|
18123
|
-
|
|
18124
|
-
|
|
18174
|
+
const getDynamicBreadcrumbs = () => {
|
|
18175
|
+
var _location$state;
|
|
18176
|
+
let crumbs = [{
|
|
18177
|
+
path: "/digit-ui/citizen",
|
|
18178
|
+
icon: HomeIcon
|
|
18179
|
+
}];
|
|
18180
|
+
crumbs.push({
|
|
18181
|
+
path: "/digit-ui/citizen/commonpt-home",
|
|
18182
|
+
label: t("ACTION_TEST_COMMON_PROPERTY_TAX")
|
|
18183
|
+
});
|
|
18184
|
+
if ((_location$state = location.state) !== null && _location$state !== void 0 && _location$state.fromSearch) {
|
|
18185
|
+
crumbs.push({
|
|
18186
|
+
label: t("ES_COMMON_INBOX"),
|
|
18187
|
+
onClick: () => window.history.back()
|
|
18188
|
+
});
|
|
18189
|
+
}
|
|
18190
|
+
crumbs.push({
|
|
18191
|
+
label: t(getBreadcrumbLabel())
|
|
18192
|
+
});
|
|
18193
|
+
return crumbs;
|
|
18194
|
+
};
|
|
18125
18195
|
return /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
18126
18196
|
className: "ground-container employee-app-container form-container"
|
|
18127
18197
|
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
18128
18198
|
leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
|
|
18129
18199
|
className: "icon"
|
|
18130
|
-
}), "
|
|
18200
|
+
}), t("CS_COMMON_BACK")),
|
|
18131
18201
|
onLeftClick: () => window.history.back(),
|
|
18132
|
-
breadcrumbs:
|
|
18202
|
+
breadcrumbs: getDynamicBreadcrumbs()
|
|
18133
18203
|
}), /*#__PURE__*/React.createElement("div", {
|
|
18134
18204
|
className: "employee-form"
|
|
18135
18205
|
}, /*#__PURE__*/React.createElement("div", {
|