@djb25/digit-ui-module-commonpt 1.0.26 → 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 +272 -176
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +273 -177
- 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 => {
|
|
@@ -14323,9 +14428,9 @@ function PropertyDocuments(_ref) {
|
|
|
14323
14428
|
var _document$values;
|
|
14324
14429
|
document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.forEach(value => {
|
|
14325
14430
|
if (!value.isPhoto) {
|
|
14326
|
-
var _ref2, _checkedMap$value$
|
|
14431
|
+
var _ref2, _checkedMap$value$fil, _value$originalDoc;
|
|
14327
14432
|
requiredDocsCount++;
|
|
14328
|
-
const isChecked = (_ref2 = (_checkedMap$value$
|
|
14433
|
+
const isChecked = (_ref2 = (_checkedMap$value$fil = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil : value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.isVerified) != null ? _ref2 : false;
|
|
14329
14434
|
if (isChecked) {
|
|
14330
14435
|
checkedCount++;
|
|
14331
14436
|
}
|
|
@@ -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$
|
|
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) {
|
|
@@ -14611,26 +14716,25 @@ function PropertyDocuments(_ref) {
|
|
|
14611
14716
|
margin: 0
|
|
14612
14717
|
}
|
|
14613
14718
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14614
|
-
key: "chk-" + (value === null || value === void 0 ? void 0 :
|
|
14719
|
+
key: "chk-" + (value === null || value === void 0 ? void 0 : value.fileStoreId) + "-" + (value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified),
|
|
14615
14720
|
type: "checkbox",
|
|
14616
14721
|
className: "verify-doc-checkbox",
|
|
14617
14722
|
style: {
|
|
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
|
-
var _value$originalDoc8;
|
|
14627
14731
|
const checked = e.target.checked;
|
|
14628
14732
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
14629
14733
|
value.originalDoc.isVerified = checked;
|
|
14630
14734
|
}
|
|
14631
|
-
if (value !== null && value !== void 0 &&
|
|
14735
|
+
if (value !== null && value !== void 0 && value.fileStoreId) {
|
|
14632
14736
|
setCheckedMap(prev => _extends({}, prev, {
|
|
14633
|
-
[value.
|
|
14737
|
+
[value.fileStoreId]: checked
|
|
14634
14738
|
}));
|
|
14635
14739
|
}
|
|
14636
14740
|
}
|
|
@@ -15413,7 +15517,7 @@ const Rebate_menu = [{
|
|
|
15413
15517
|
value: "Others"
|
|
15414
15518
|
}];
|
|
15415
15519
|
const WSFeeEstimation = _ref => {
|
|
15416
|
-
var _wsAdditionalDetails$,
|
|
15520
|
+
var _wsAdditionalDetails$, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
15417
15521
|
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
15418
15522
|
const _useTranslation = useTranslation(),
|
|
15419
15523
|
t = _useTranslation.t;
|
|
@@ -15446,17 +15550,10 @@ const WSFeeEstimation = _ref => {
|
|
|
15446
15550
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
15447
15551
|
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
15448
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) || [];
|
|
15449
|
-
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => {
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
|
|
15453
|
-
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", {
|
|
15454
|
-
style: {
|
|
15455
|
-
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"
|
|
15456
|
-
}
|
|
15457
|
-
}, " (" + (bill === null || bill === void 0 ? void 0 : bill.status) + ")") : "")
|
|
15458
|
-
};
|
|
15459
|
-
}) : [{
|
|
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
|
+
})) : [{
|
|
15460
15557
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
15461
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)
|
|
15462
15559
|
}, {
|
|
@@ -15538,17 +15635,10 @@ const WSFeeEstimation = _ref => {
|
|
|
15538
15635
|
}
|
|
15539
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");
|
|
15540
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) || [];
|
|
15541
|
-
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => {
|
|
15542
|
-
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
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", {
|
|
15546
|
-
style: {
|
|
15547
|
-
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"
|
|
15548
|
-
}
|
|
15549
|
-
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : "")
|
|
15550
|
-
};
|
|
15551
|
-
}) : [{
|
|
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
|
+
})) : [{
|
|
15552
15642
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
15553
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
|
|
15554
15644
|
}, {
|
|
@@ -15644,17 +15734,7 @@ const WSFeeEstimation = _ref => {
|
|
|
15644
15734
|
} : {
|
|
15645
15735
|
color: "#2E9E8F"
|
|
15646
15736
|
}
|
|
15647
|
-
}))),
|
|
15648
|
-
onClick: e => {
|
|
15649
|
-
showPopUp(true);
|
|
15650
|
-
}
|
|
15651
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
15652
|
-
className: "add-details-link hover-button",
|
|
15653
|
-
style: {
|
|
15654
|
-
cursor: "pointer",
|
|
15655
|
-
color: "#a82227"
|
|
15656
|
-
}
|
|
15657
|
-
}, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
|
|
15737
|
+
}))), popup && /*#__PURE__*/React.createElement(Modal, {
|
|
15658
15738
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
15659
15739
|
label: t("PT_ADD_REBATE_PENALITY")
|
|
15660
15740
|
}),
|
|
@@ -15934,17 +16014,10 @@ const ViewBreakup = _ref => {
|
|
|
15934
16014
|
if (rows === void 0) {
|
|
15935
16015
|
rows = [];
|
|
15936
16016
|
}
|
|
15937
|
-
return rows.map(row => {
|
|
15938
|
-
|
|
15939
|
-
|
|
15940
|
-
|
|
15941
|
-
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", {
|
|
15942
|
-
style: {
|
|
15943
|
-
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"
|
|
15944
|
-
}
|
|
15945
|
-
}, " (" + (row === null || row === void 0 ? void 0 : row.status) + ")") : "")
|
|
15946
|
-
};
|
|
15947
|
-
});
|
|
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
|
+
}));
|
|
15948
16021
|
};
|
|
15949
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];
|
|
15950
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(" ") || "-";
|
|
@@ -16145,7 +16218,7 @@ const ViewBreakup = _ref => {
|
|
|
16145
16218
|
label: "Sewer Infra Charges",
|
|
16146
16219
|
value: infrastructureChargeDetail.sewerComponentIFC,
|
|
16147
16220
|
currency: true
|
|
16148
|
-
}, {
|
|
16221
|
+
}, ...(infrastructureChargeDetail.rebateAmount > 0 ? [{
|
|
16149
16222
|
label: "Rebate",
|
|
16150
16223
|
value: infrastructureChargeDetail.rebatePercentage,
|
|
16151
16224
|
unit: "%"
|
|
@@ -16153,7 +16226,31 @@ const ViewBreakup = _ref => {
|
|
|
16153
16226
|
label: "Rebate amount",
|
|
16154
16227
|
value: infrastructureChargeDetail.rebateAmount,
|
|
16155
16228
|
currency: true
|
|
16229
|
+
}] : []), ...(infrastructureChargeDetail.institutionalRebateApplied ? [{
|
|
16230
|
+
label: "Institutional rebate",
|
|
16231
|
+
value: infrastructureChargeDetail.institutionalRebatePercentage,
|
|
16232
|
+
unit: "%"
|
|
16233
|
+
}, {
|
|
16234
|
+
label: "Institutional rebate amount",
|
|
16235
|
+
value: infrastructureChargeDetail.institutionalRebateAmount,
|
|
16236
|
+
currency: true
|
|
16156
16237
|
}, {
|
|
16238
|
+
label: "Institutional rebate reason",
|
|
16239
|
+
value: t(infrastructureChargeDetail.institutionalRebateReason),
|
|
16240
|
+
isText: true
|
|
16241
|
+
}] : []), ...(infrastructureChargeDetail.dwellingRebateApplied ? [{
|
|
16242
|
+
label: "Dwelling rebate",
|
|
16243
|
+
value: infrastructureChargeDetail.dwellingRebatePercentage,
|
|
16244
|
+
unit: "%"
|
|
16245
|
+
}, {
|
|
16246
|
+
label: "Dwelling rebate amount",
|
|
16247
|
+
value: infrastructureChargeDetail.dwellingRebateAmount,
|
|
16248
|
+
currency: true
|
|
16249
|
+
}, {
|
|
16250
|
+
label: "Dwelling rebate reason",
|
|
16251
|
+
value: t(infrastructureChargeDetail.dwellingRebateReason),
|
|
16252
|
+
isText: true
|
|
16253
|
+
}] : []), {
|
|
16157
16254
|
label: "Net IFC",
|
|
16158
16255
|
value: infrastructureChargeDetail.netIFC,
|
|
16159
16256
|
currency: true
|
|
@@ -16199,70 +16296,49 @@ const ViewBreakup = _ref => {
|
|
|
16199
16296
|
style: {
|
|
16200
16297
|
margin: "10px 0px"
|
|
16201
16298
|
}
|
|
16202
|
-
}, 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 => {
|
|
16203
|
-
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
|
|
16212
|
-
|
|
16213
|
-
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
|
|
16219
|
-
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16223
|
-
|
|
16224
|
-
|
|
16225
|
-
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
|
|
16234
|
-
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
-
|
|
16240
|
-
|
|
16241
|
-
|
|
16242
|
-
|
|
16243
|
-
}
|
|
16244
|
-
}),
|
|
16245
|
-
var _data$status3;
|
|
16246
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
16247
|
-
className: "border-none",
|
|
16248
|
-
rowContainerStyle: {
|
|
16249
|
-
margin: "0px"
|
|
16250
|
-
},
|
|
16251
|
-
labelStyle: {
|
|
16252
|
-
width: "50%"
|
|
16253
|
-
},
|
|
16254
|
-
key: "" + (data === null || data === void 0 ? void 0 : data.taxHeadCode),
|
|
16255
|
-
label: "" + t("" + (data === null || data === void 0 ? void 0 : data.taxHeadCode)),
|
|
16256
|
-
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", {
|
|
16257
|
-
style: {
|
|
16258
|
-
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"
|
|
16259
|
-
}
|
|
16260
|
-
}, " (" + (data === null || data === void 0 ? void 0 : data.status) + ")") : ""),
|
|
16261
|
-
textStyle: {
|
|
16262
|
-
textAlign: "right"
|
|
16263
|
-
}
|
|
16264
|
-
});
|
|
16265
|
-
}), 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, {
|
|
16266
16342
|
style: {
|
|
16267
16343
|
margin: "10px 0px"
|
|
16268
16344
|
}
|
|
@@ -16880,6 +16956,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
16880
16956
|
workflowDetails = _ref.workflowDetails,
|
|
16881
16957
|
isDataLoading = _ref.isDataLoading,
|
|
16882
16958
|
applicationData = _ref.applicationData,
|
|
16959
|
+
businessService = _ref.businessService,
|
|
16883
16960
|
timelineStatusPrefix = _ref.timelineStatusPrefix,
|
|
16884
16961
|
_ref$showTimeLine = _ref.showTimeLine,
|
|
16885
16962
|
showTimeLine = _ref$showTimeLine === void 0 ? true : _ref$showTimeLine,
|
|
@@ -17155,7 +17232,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
17155
17232
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
17156
17233
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
17157
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) => {
|
|
17158
|
-
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;
|
|
17159
17236
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
17160
17237
|
key: index
|
|
17161
17238
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -17386,9 +17463,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
17386
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, {
|
|
17387
17464
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
17388
17465
|
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
17389
|
-
}), (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, {
|
|
17390
17467
|
applicationData: applicationData
|
|
17391
|
-
}), " ", (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, {
|
|
17392
17469
|
applicationData: applicationData
|
|
17393
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, {
|
|
17394
17471
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -17559,7 +17636,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
17559
17636
|
if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
|
|
17560
17637
|
return !window.isDocumentsVerified;
|
|
17561
17638
|
}
|
|
17562
|
-
return
|
|
17639
|
+
return true;
|
|
17563
17640
|
}),
|
|
17564
17641
|
isSubmitDisabled = _React$useState[0],
|
|
17565
17642
|
setIsSubmitDisabled = _React$useState[1];
|
|
@@ -17572,7 +17649,10 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
17572
17649
|
};
|
|
17573
17650
|
if (typeof window !== "undefined") {
|
|
17574
17651
|
window.addEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
17575
|
-
return () =>
|
|
17652
|
+
return () => {
|
|
17653
|
+
window.removeEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
17654
|
+
delete window.isDocumentsVerified;
|
|
17655
|
+
};
|
|
17576
17656
|
}
|
|
17577
17657
|
}, []);
|
|
17578
17658
|
if (window.location.href.includes("/obps") || window.location.href.includes("/noc")) {
|
|
@@ -18064,7 +18144,7 @@ const ViewProperty = () => {
|
|
|
18064
18144
|
workflowDetails: workflowDetails,
|
|
18065
18145
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
18066
18146
|
moduleCode: "PT"
|
|
18067
|
-
}), 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, {
|
|
18068
18148
|
style: {
|
|
18069
18149
|
display: "flex",
|
|
18070
18150
|
justifyContent: "flex-end",
|
|
@@ -18084,26 +18164,42 @@ const App = _ref => {
|
|
|
18084
18164
|
const _useRouteMatch = useRouteMatch(),
|
|
18085
18165
|
path = _useRouteMatch.path,
|
|
18086
18166
|
match = _objectWithoutPropertiesLoose(_useRouteMatch, _excluded$1);
|
|
18167
|
+
const location = useLocation();
|
|
18087
18168
|
const getBreadcrumbLabel = () => {
|
|
18088
18169
|
const pathname = location.pathname;
|
|
18089
18170
|
if (pathname.includes("/commonpt/search")) return "SEARCH_PROPERTY";else if (pathname.includes("/view-property")) return "PT_PROPERTY_INFORMATION";
|
|
18090
18171
|
if (pathname.includes("/property/new-application")) return "PT_CREATE_PROPERTY";
|
|
18091
18172
|
return "ES_COMMON_INBOX";
|
|
18092
18173
|
};
|
|
18093
|
-
const
|
|
18094
|
-
|
|
18095
|
-
|
|
18096
|
-
|
|
18097
|
-
|
|
18098
|
-
|
|
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
|
+
};
|
|
18099
18195
|
return /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
18100
18196
|
className: "ground-container employee-app-container form-container"
|
|
18101
18197
|
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
18102
18198
|
leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
|
|
18103
18199
|
className: "icon"
|
|
18104
|
-
}), "
|
|
18200
|
+
}), t("CS_COMMON_BACK")),
|
|
18105
18201
|
onLeftClick: () => window.history.back(),
|
|
18106
|
-
breadcrumbs:
|
|
18202
|
+
breadcrumbs: getDynamicBreadcrumbs()
|
|
18107
18203
|
}), /*#__PURE__*/React.createElement("div", {
|
|
18108
18204
|
className: "employee-form"
|
|
18109
18205
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -18745,7 +18841,6 @@ const PropertyLocationDetails = _ref => {
|
|
|
18745
18841
|
locality: localityCode,
|
|
18746
18842
|
streetName: addressData.street || "",
|
|
18747
18843
|
houseNo: addressData.houseNo || "",
|
|
18748
|
-
addressLine1: addressData.street || "",
|
|
18749
18844
|
latitude: lat,
|
|
18750
18845
|
longitude: lng,
|
|
18751
18846
|
zroLocation: zroCode,
|
|
@@ -18801,7 +18896,8 @@ const PropertyLocationDetails = _ref => {
|
|
|
18801
18896
|
isEdit: isEdit,
|
|
18802
18897
|
showMapActualLocation: true,
|
|
18803
18898
|
disable: isPropertyFound,
|
|
18804
|
-
hideNextButton: true
|
|
18899
|
+
hideNextButton: true,
|
|
18900
|
+
isVendor: props.isVendor
|
|
18805
18901
|
});
|
|
18806
18902
|
};
|
|
18807
18903
|
|