@mseva/digit-ui-module-obps 1.0.65 → 1.0.67
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +603 -325
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Fragment, useMemo, useState, useEffect, useCallback, useReducer, useRef } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link as Link$1, useLocation, useHistory, useParams, Switch, Route, useRouteMatch, Redirect } from 'react-router-dom';
|
|
4
|
-
import { SearchField, TextInput, MobileNumber, CardLabelError, Dropdown, DatePicker, SubmitBar, Loader, SearchAction, PopUp, Card, DetailsCard, Header, SearchForm, Table, Toast as Toast$1, CloseSvg, KeyNote, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, LinkButton, MultiLink, CardLabel, Banner, CardText, ActionBar, FilterFormField, RadioButtons, RemoveableTag, MultiSelectDropdown, CheckBox, CaseIcon, InboxComposer, BackButton, PrivateRoute, BPAHomeIcon, EDCRIcon, BPAIcon, CitizenHomeCard, FormStep, UploadFile, TickMark, Label, SearchIconSvg, CardHeader, StatusTable, Row, CitizenInfoLabel, LabelFieldPair, CardSubHeader, SearchIcon, DeleteIcon, RadioOrSelect, PDFSvg as PDFSvg$1, MultiUploadWrapper, LocationSearchCard, CardCaption, Modal, FormComposer, ButtonSelector, ImageViewer, Menu, OTPInput, TextArea, BreadCrumb, OBPSIconSolidBg, EmployeeModuleCard as EmployeeModuleCard$1, Close as Close$d, BreakLine, EditIcon, OBPSIcon } from '@mseva/digit-ui-react-components';
|
|
4
|
+
import { SearchField, TextInput, MobileNumber, CardLabelError, Dropdown, DatePicker, SubmitBar, Loader, SearchAction, PopUp, Card, DetailsCard, Header, SearchForm, Table, Toast as Toast$1, CloseSvg, KeyNote, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, LinkButton, MultiLink, CardLabel, Banner, CardText, ActionBar, FilterFormField, RadioButtons, RemoveableTag, MultiSelectDropdown, CheckBox, CaseIcon, InboxComposer, BackButton, PrivateRoute, BPAHomeIcon, EDCRIcon, BPAIcon, CitizenHomeCard, FormStep, UploadFile, TickMark, Label, SearchIconSvg, CardHeader, StatusTable, Row, CitizenInfoLabel, LabelFieldPair, CardSubHeader, SearchIcon, DeleteIcon, RadioOrSelect, PDFSvg as PDFSvg$1, MultiUploadWrapper, LocationSearchCard, CardCaption, Modal, FormComposer, ButtonSelector, ImageViewer, Menu, OTPInput, TextArea, BreadCrumb, OBPSIconSolidBg, EmployeeModuleCard as EmployeeModuleCard$1, ArrowDown, Close as Close$d, BreakLine, EditIcon, OBPSIcon } from '@mseva/digit-ui-react-components';
|
|
5
5
|
import { useWatch, useForm, Controller, useFormContext, useFieldArray } from 'react-hook-form';
|
|
6
6
|
import { useDispatch, useSelector } from 'react-redux';
|
|
7
7
|
import 'react-dom';
|
|
@@ -1736,7 +1736,7 @@ const getCheckBoxLabelData = (t, appData) => {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
};
|
|
1738
1738
|
const scrutinyDetailsData = async (edcrNumber, tenantId) => {
|
|
1739
|
-
var _bpaDetails$BPA, _bpaDetails$BPA2, _bpaDetails$BPA3, _bpaDetails$BPA3$, _bpaDetails$BPA4, _bpaDetails$BPA4$, _bpaDetails$BPA5, _bpaDetails$BPA5$;
|
|
1739
|
+
var _bpaDetails$BPA, _bpaDetails$BPA2, _bpaDetails$BPA3, _bpaDetails$BPA3$, _bpaDetails$BPA4, _bpaDetails$BPA4$, _bpaDetails$BPA5, _bpaDetails$BPA5$, _bpaDetails$BPA6, _bpaDetails$BPA6$;
|
|
1740
1740
|
const scrutinyDetails = await Digit.OBPSService.scrutinyDetails(tenantId, {
|
|
1741
1741
|
edcrNumber: edcrNumber
|
|
1742
1742
|
});
|
|
@@ -1749,7 +1749,7 @@ const scrutinyDetailsData = async (edcrNumber, tenantId) => {
|
|
|
1749
1749
|
type: "ERROR",
|
|
1750
1750
|
message: "BPA_NO_RECORD_FOUND"
|
|
1751
1751
|
};
|
|
1752
|
-
} else if ((bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA2 = bpaDetails.BPA) === null || _bpaDetails$BPA2 === void 0 ? void 0 : _bpaDetails$BPA2.length) > 0 && ((bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA3 = bpaDetails.BPA) === null || _bpaDetails$BPA3 === void 0 ? void 0 : (_bpaDetails$BPA3$ = _bpaDetails$BPA3[0]) === null || _bpaDetails$BPA3$ === void 0 ? void 0 : _bpaDetails$BPA3$.status) == "INITIATED" || (bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA4 = bpaDetails.BPA) === null || _bpaDetails$BPA4 === void 0 ? void 0 : (_bpaDetails$BPA4$ = _bpaDetails$BPA4[0]) === null || _bpaDetails$BPA4$ === void 0 ? void 0 : _bpaDetails$BPA4$.status) == "REJECTED" || (bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA5 = bpaDetails.BPA) === null || _bpaDetails$BPA5 === void 0 ? void 0 : (_bpaDetails$BPA5$ = _bpaDetails$BPA5[0]) === null || _bpaDetails$BPA5$ === void 0 ? void 0 : _bpaDetails$BPA5$.status) == "PERMIT REVOCATION")) {
|
|
1752
|
+
} else if ((bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA2 = bpaDetails.BPA) === null || _bpaDetails$BPA2 === void 0 ? void 0 : _bpaDetails$BPA2.length) > 0 && ((bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA3 = bpaDetails.BPA) === null || _bpaDetails$BPA3 === void 0 ? void 0 : (_bpaDetails$BPA3$ = _bpaDetails$BPA3[0]) === null || _bpaDetails$BPA3$ === void 0 ? void 0 : _bpaDetails$BPA3$.status) == "INITIATED" || (bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA4 = bpaDetails.BPA) === null || _bpaDetails$BPA4 === void 0 ? void 0 : (_bpaDetails$BPA4$ = _bpaDetails$BPA4[0]) === null || _bpaDetails$BPA4$ === void 0 ? void 0 : _bpaDetails$BPA4$.status) == "REJECTED" || (bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA5 = bpaDetails.BPA) === null || _bpaDetails$BPA5 === void 0 ? void 0 : (_bpaDetails$BPA5$ = _bpaDetails$BPA5[0]) === null || _bpaDetails$BPA5$ === void 0 ? void 0 : _bpaDetails$BPA5$.status) == "PERMIT REVOCATION" || (bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA6 = bpaDetails.BPA) === null || _bpaDetails$BPA6 === void 0 ? void 0 : (_bpaDetails$BPA6$ = _bpaDetails$BPA6[0]) === null || _bpaDetails$BPA6$ === void 0 ? void 0 : _bpaDetails$BPA6$.status) == "BLOCKED")) {
|
|
1753
1753
|
var _scrutinyDetails$edcr3, _scrutinyDetails$edcr4;
|
|
1754
1754
|
return scrutinyDetails !== null && scrutinyDetails !== void 0 && (_scrutinyDetails$edcr3 = scrutinyDetails.edcrDetail) !== null && _scrutinyDetails$edcr3 !== void 0 && _scrutinyDetails$edcr3[0] ? scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$edcr4 = scrutinyDetails.edcrDetail) === null || _scrutinyDetails$edcr4 === void 0 ? void 0 : _scrutinyDetails$edcr4[0] : {
|
|
1755
1755
|
type: "ERROR",
|
|
@@ -1774,7 +1774,7 @@ const getOCEDCRDetails = async (edcrNumber, tenantId) => {
|
|
|
1774
1774
|
}
|
|
1775
1775
|
};
|
|
1776
1776
|
const ocScrutinyDetailsData = async (edcrNumber, tenantId) => {
|
|
1777
|
-
var _scrutinyDetails$edcr5, _scrutinyDetails$edcr6, _scrutinyDetails$edcr7, _scrutinyDetails$edcr8, _bpaDetails$
|
|
1777
|
+
var _scrutinyDetails$edcr5, _scrutinyDetails$edcr6, _scrutinyDetails$edcr7, _scrutinyDetails$edcr8, _bpaDetails$BPA7, _bpaDetails$BPA7$, _bpaDetails$BPA8, _bpaDetails$BPA8$, _scrutinyDetails$edcr9, _scrutinyDetails$edcr0, _scrutinyDetails$edcr1, _scrutinyDetails$edcr10;
|
|
1778
1778
|
const scrutinyDetails = await getOCEDCRDetails(edcrNumber, tenantId);
|
|
1779
1779
|
console.log(scrutinyDetails, "OOOO*****");
|
|
1780
1780
|
if (!(scrutinyDetails !== null && scrutinyDetails !== void 0 && (_scrutinyDetails$edcr5 = scrutinyDetails.edcrDetail) !== null && _scrutinyDetails$edcr5 !== void 0 && (_scrutinyDetails$edcr6 = _scrutinyDetails$edcr5[0]) !== null && _scrutinyDetails$edcr6 !== void 0 && _scrutinyDetails$edcr6.edcrNumber)) {
|
|
@@ -1786,8 +1786,8 @@ const ocScrutinyDetailsData = async (edcrNumber, tenantId) => {
|
|
|
1786
1786
|
const bpaDetails = await Digit.OBPSService.BPASearch(tenantId, {
|
|
1787
1787
|
approvalNo: scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$edcr7 = scrutinyDetails.edcrDetail) === null || _scrutinyDetails$edcr7 === void 0 ? void 0 : (_scrutinyDetails$edcr8 = _scrutinyDetails$edcr7[0]) === null || _scrutinyDetails$edcr8 === void 0 ? void 0 : _scrutinyDetails$edcr8.permitNumber
|
|
1788
1788
|
});
|
|
1789
|
-
const bpaEdcrNumber = bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$
|
|
1790
|
-
tenantId = bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$
|
|
1789
|
+
const bpaEdcrNumber = bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA7 = bpaDetails.BPA) === null || _bpaDetails$BPA7 === void 0 ? void 0 : (_bpaDetails$BPA7$ = _bpaDetails$BPA7[0]) === null || _bpaDetails$BPA7$ === void 0 ? void 0 : _bpaDetails$BPA7$.edcrNumber;
|
|
1790
|
+
tenantId = bpaDetails === null || bpaDetails === void 0 ? void 0 : (_bpaDetails$BPA8 = bpaDetails.BPA) === null || _bpaDetails$BPA8 === void 0 ? void 0 : (_bpaDetails$BPA8$ = _bpaDetails$BPA8[0]) === null || _bpaDetails$BPA8$ === void 0 ? void 0 : _bpaDetails$BPA8$.tenantId;
|
|
1791
1791
|
const edcrDetails = await Digit.OBPSService.scrutinyDetails(tenantId, {
|
|
1792
1792
|
edcrNumber: bpaEdcrNumber
|
|
1793
1793
|
});
|
|
@@ -3489,10 +3489,13 @@ const OBPSResponse = props => {
|
|
|
3489
3489
|
id: bpaData === null || bpaData === void 0 ? void 0 : bpaData.applicationNo,
|
|
3490
3490
|
moduleCode: "BPA"
|
|
3491
3491
|
});
|
|
3492
|
-
console.log(workflowDetails, "OOOOO");
|
|
3493
3492
|
useEffect(async () => {
|
|
3494
3493
|
var _bpaResponse$BPA, _bpaResponse$BPA$, _bpaResponse$BPA2, _bpaResponse$BPA2$, _bpaResponse$BPA3, _bpaResponse$BPA3$, _bpaResponse$BPA4, _bpaResponse$BPA4$, _fetchBill$Bill, _fetchBill$Bill2, _fetchBill$Bill2$, _bpaResponse$BPA5;
|
|
3495
3494
|
setIsLoader(true);
|
|
3495
|
+
window.scrollTo({
|
|
3496
|
+
top: 0,
|
|
3497
|
+
behavior: "smooth"
|
|
3498
|
+
});
|
|
3496
3499
|
const bpaResponse = await Digit.OBPSService.BPASearch(tenantId, {
|
|
3497
3500
|
applicationNo: bpaData === null || bpaData === void 0 ? void 0 : bpaData.applicationNo
|
|
3498
3501
|
});
|
|
@@ -3541,7 +3544,6 @@ const OBPSResponse = props => {
|
|
|
3541
3544
|
if (data.action == "PAY" && !isPayButtonEnable) isPayButtonEnable = true;
|
|
3542
3545
|
});
|
|
3543
3546
|
}
|
|
3544
|
-
console.log("}}}}}");
|
|
3545
3547
|
return /*#__PURE__*/React.createElement("div", null, isLoader || workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
|
|
3546
3548
|
message: getHeaderMessage(),
|
|
3547
3549
|
applicationNumber: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo,
|
|
@@ -5437,6 +5439,7 @@ const useInboxTableConfig = ({
|
|
|
5437
5439
|
row
|
|
5438
5440
|
}) => {
|
|
5439
5441
|
var _row$original3, _row$original4;
|
|
5442
|
+
console.log("row.original", row.original);
|
|
5440
5443
|
return (_row$original3 = row.original) !== null && _row$original3 !== void 0 && _row$original3["submissionDate"] ? GetCell(format(new Date((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4["submissionDate"]), 'dd/MM/yyyy')) : "NA";
|
|
5441
5444
|
}
|
|
5442
5445
|
}, {
|
|
@@ -14099,7 +14102,7 @@ const PlotDetails = ({
|
|
|
14099
14102
|
currentStepData,
|
|
14100
14103
|
onGoBack
|
|
14101
14104
|
}) => {
|
|
14102
|
-
var _formData$uiFlow, _userInfo$info, _userInfo$info$roles, _userInfo$info2, _currentStepData$Basi, _LicenseData$Licenses, _LicenseData$Licenses2, _LicenseData$Licenses3, _LicenseData$Licenses4, _LicenseData$Licenses5, _LicenseData$Licenses6, _currentStepData$Basi2, _currentStepData$cpt5, _currentStepData$cpt6, _currentStepData$cpt10, _currentStepData$cpt11, _data$planDetail1, _data$planDetail1$pla, _data$planDetail10, _data$planDetail10$pl, _data$planDetail11, _data$planDetail11$pl, _data$planDetail12, _data$planDetail12$pl, _currentStepData$cpt29, _currentStepData$cpt30, _currentStepData$cpt31, _currentStepData$cpt32;
|
|
14105
|
+
var _formData$uiFlow, _userInfo$info, _userInfo$info$roles, _userInfo$info2, _currentStepData$Basi, _LicenseData$Licenses, _LicenseData$Licenses2, _LicenseData$Licenses3, _LicenseData$Licenses4, _LicenseData$Licenses5, _LicenseData$Licenses6, _currentStepData$crea5, _currentStepData$crea6, _currentStepData$Basi2, _currentStepData$cpt5, _currentStepData$cpt6, _currentStepData$cpt10, _currentStepData$cpt11, _data$planDetail1, _data$planDetail1$pla, _data$planDetail10, _data$planDetail10$pl, _data$planDetail11, _data$planDetail11$pl, _data$planDetail12, _data$planDetail12$pl, _currentStepData$cpt29, _currentStepData$cpt30, _currentStepData$cpt31, _currentStepData$cpt32;
|
|
14103
14106
|
const isEditApplication = window.location.href.includes("editApplication");
|
|
14104
14107
|
const [editConfig, setEditConfig] = useState(config);
|
|
14105
14108
|
const {
|
|
@@ -14108,6 +14111,7 @@ const PlotDetails = ({
|
|
|
14108
14111
|
const [registrationDetails, setRegistrationDetails] = useState("");
|
|
14109
14112
|
const [boundaryWallLength, setBoundaryWallLength] = useState("");
|
|
14110
14113
|
const [wardnumber, setWardNumber] = useState("");
|
|
14114
|
+
const [isClubbedPlot, setIsClubbedPlot] = useState({});
|
|
14111
14115
|
const [zonenumber, setZoneNumber] = useState("");
|
|
14112
14116
|
const [khasraNumber, setKhasraNumber] = useState("");
|
|
14113
14117
|
const [architectid, setArchitectId] = useState("");
|
|
@@ -14145,6 +14149,15 @@ const PlotDetails = ({
|
|
|
14145
14149
|
} = Digit.Hooks.useCustomMDMS(tenantId, "egov-location", [{
|
|
14146
14150
|
name: "TenantBoundary"
|
|
14147
14151
|
}]);
|
|
14152
|
+
const common = [{
|
|
14153
|
+
code: "YES",
|
|
14154
|
+
i18nKey: "YES",
|
|
14155
|
+
value: true
|
|
14156
|
+
}, {
|
|
14157
|
+
code: "NO",
|
|
14158
|
+
i18nKey: "NO",
|
|
14159
|
+
value: false
|
|
14160
|
+
}];
|
|
14148
14161
|
const data = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi = currentStepData.BasicDetails) === null || _currentStepData$Basi === void 0 ? void 0 : _currentStepData$Basi.edcrDetails;
|
|
14149
14162
|
console.log("sessionStorageData", userInfo, LicenseData === null || LicenseData === void 0 ? void 0 : (_LicenseData$Licenses = LicenseData.Licenses) === null || _LicenseData$Licenses === void 0 ? void 0 : (_LicenseData$Licenses2 = _LicenseData$Licenses[0]) === null || _LicenseData$Licenses2 === void 0 ? void 0 : _LicenseData$Licenses2.licenseNumber, LicenseData === null || LicenseData === void 0 ? void 0 : (_LicenseData$Licenses3 = LicenseData.Licenses) === null || _LicenseData$Licenses3 === void 0 ? void 0 : (_LicenseData$Licenses4 = _LicenseData$Licenses3[0]) === null || _LicenseData$Licenses4 === void 0 ? void 0 : (_LicenseData$Licenses5 = _LicenseData$Licenses4.tradeLicenseDetail) === null || _LicenseData$Licenses5 === void 0 ? void 0 : (_LicenseData$Licenses6 = _LicenseData$Licenses5.additionalDetail) === null || _LicenseData$Licenses6 === void 0 ? void 0 : _LicenseData$Licenses6.counsilForArchNo);
|
|
14150
14163
|
const pageStyle = {
|
|
@@ -14198,12 +14211,24 @@ const PlotDetails = ({
|
|
|
14198
14211
|
}
|
|
14199
14212
|
}
|
|
14200
14213
|
}, [LicenseData]);
|
|
14214
|
+
useEffect(() => {
|
|
14215
|
+
if (typeof isClubbedPlot === "boolean") {
|
|
14216
|
+
const plan = common.find(item => item.value === isClubbedPlot);
|
|
14217
|
+
if (plan) setIsClubbedPlot(plan);
|
|
14218
|
+
} else if (isClubbedPlot === null) {
|
|
14219
|
+
var _currentStepData$crea, _currentStepData$crea2;
|
|
14220
|
+
if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea = currentStepData.createdResponse) !== null && _currentStepData$crea !== void 0 && (_currentStepData$crea2 = _currentStepData$crea.additionalDetails) !== null && _currentStepData$crea2 !== void 0 && _currentStepData$crea2.isClubbedPlot) {
|
|
14221
|
+
var _currentStepData$crea3, _currentStepData$crea4;
|
|
14222
|
+
setmasterPlan(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea3 = currentStepData.createdResponse) === null || _currentStepData$crea3 === void 0 ? void 0 : (_currentStepData$crea4 = _currentStepData$crea3.additionalDetails) === null || _currentStepData$crea4 === void 0 ? void 0 : _currentStepData$crea4.isClubbedPlot);
|
|
14223
|
+
}
|
|
14224
|
+
}
|
|
14225
|
+
}, [isClubbedPlot, currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea5 = currentStepData.createdResponse) === null || _currentStepData$crea5 === void 0 ? void 0 : (_currentStepData$crea6 = _currentStepData$crea5.additionalDetails) === null || _currentStepData$crea6 === void 0 ? void 0 : _currentStepData$crea6.isClubbedPlot]);
|
|
14201
14226
|
useEffect(() => {
|
|
14202
14227
|
if (LicenseData) {
|
|
14203
14228
|
var _LicenseData$Licenses1, _LicenseData$Licenses10;
|
|
14204
14229
|
if (LicenseData !== null && LicenseData !== void 0 && (_LicenseData$Licenses1 = LicenseData.Licenses) !== null && _LicenseData$Licenses1 !== void 0 && (_LicenseData$Licenses10 = _LicenseData$Licenses1[0]) !== null && _LicenseData$Licenses10 !== void 0 && _LicenseData$Licenses10.tradeLicenseDetail) {
|
|
14205
14230
|
var _LicenseData$Licenses11, _LicenseData$Licenses12, _LicenseData$Licenses13, _LicenseData$Licenses14, _LicenseData$Licenses15, _LicenseData$Licenses16, _LicenseData$Licenses17, _LicenseData$Licenses18, _LicenseData$Licenses19, _LicenseData$Licenses20, _LicenseData$Licenses21, _LicenseData$Licenses22, _LicenseData$Licenses23, _LicenseData$Licenses24;
|
|
14206
|
-
const architectNo = (LicenseData === null || LicenseData === void 0 ? void 0 : (_LicenseData$Licenses11 = LicenseData.Licenses) === null || _LicenseData$Licenses11 === void 0 ? void 0 : (_LicenseData$Licenses12 = _LicenseData$Licenses11
|
|
14231
|
+
const architectNo = (LicenseData === null || LicenseData === void 0 ? void 0 : (_LicenseData$Licenses11 = LicenseData.Licenses) === null || _LicenseData$Licenses11 === void 0 ? void 0 : (_LicenseData$Licenses12 = _LicenseData$Licenses11.find(item => (item === null || item === void 0 ? void 0 : item.status) === "APPROVED")) === null || _LicenseData$Licenses12 === void 0 ? void 0 : (_LicenseData$Licenses13 = _LicenseData$Licenses12.tradeLicenseDetail) === null || _LicenseData$Licenses13 === void 0 ? void 0 : (_LicenseData$Licenses14 = _LicenseData$Licenses13.additionalDetail) === null || _LicenseData$Licenses14 === void 0 ? void 0 : _LicenseData$Licenses14.counsilForArchNo) === null || (LicenseData === null || LicenseData === void 0 ? void 0 : (_LicenseData$Licenses15 = LicenseData.Licenses) === null || _LicenseData$Licenses15 === void 0 ? void 0 : (_LicenseData$Licenses16 = _LicenseData$Licenses15[0]) === null || _LicenseData$Licenses16 === void 0 ? void 0 : (_LicenseData$Licenses17 = _LicenseData$Licenses16.tradeLicenseDetail) === null || _LicenseData$Licenses17 === void 0 ? void 0 : (_LicenseData$Licenses18 = _LicenseData$Licenses17.additionalDetail) === null || _LicenseData$Licenses18 === void 0 ? void 0 : _LicenseData$Licenses18.counsilForArchNo) === "" ? LicenseData === null || LicenseData === void 0 ? void 0 : (_LicenseData$Licenses19 = LicenseData.Licenses) === null || _LicenseData$Licenses19 === void 0 ? void 0 : (_LicenseData$Licenses20 = _LicenseData$Licenses19[0]) === null || _LicenseData$Licenses20 === void 0 ? void 0 : _LicenseData$Licenses20.licenseNumber : LicenseData === null || LicenseData === void 0 ? void 0 : (_LicenseData$Licenses21 = LicenseData.Licenses) === null || _LicenseData$Licenses21 === void 0 ? void 0 : (_LicenseData$Licenses22 = _LicenseData$Licenses21[0]) === null || _LicenseData$Licenses22 === void 0 ? void 0 : (_LicenseData$Licenses23 = _LicenseData$Licenses22.tradeLicenseDetail) === null || _LicenseData$Licenses23 === void 0 ? void 0 : (_LicenseData$Licenses24 = _LicenseData$Licenses23.additionalDetail) === null || _LicenseData$Licenses24 === void 0 ? void 0 : _LicenseData$Licenses24.counsilForArchNo;
|
|
14207
14232
|
setArchitectId(architectNo);
|
|
14208
14233
|
}
|
|
14209
14234
|
}
|
|
@@ -14216,12 +14241,13 @@ const PlotDetails = ({
|
|
|
14216
14241
|
}
|
|
14217
14242
|
}, [currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi2 = currentStepData.BasicDetails) === null || _currentStepData$Basi2 === void 0 ? void 0 : _currentStepData$Basi2.edcrDetails]);
|
|
14218
14243
|
useEffect(() => {
|
|
14219
|
-
var _currentStepData$
|
|
14220
|
-
if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
14244
|
+
var _currentStepData$crea7;
|
|
14245
|
+
if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea7 = currentStepData.createdResponse) !== null && _currentStepData$crea7 !== void 0 && _currentStepData$crea7.additionalDetails) {
|
|
14221
14246
|
const details = currentStepData.createdResponse.additionalDetails;
|
|
14222
14247
|
setRegistrationDetails((details === null || details === void 0 ? void 0 : details.registrationDetails) || "");
|
|
14223
14248
|
setBoundaryWallLength((details === null || details === void 0 ? void 0 : details.boundaryWallLength) || "");
|
|
14224
14249
|
setWardNumber((details === null || details === void 0 ? void 0 : details.wardnumber) || "");
|
|
14250
|
+
setIsClubbedPlot((details === null || details === void 0 ? void 0 : details.isClubbedPlot) !== null ? details === null || details === void 0 ? void 0 : details.isClubbedPlot : {});
|
|
14225
14251
|
setZoneNumber((details === null || details === void 0 ? void 0 : details.zonenumber) || "");
|
|
14226
14252
|
setKhasraNumber((details === null || details === void 0 ? void 0 : details.khasraNumber) || "");
|
|
14227
14253
|
setArchitectId((details === null || details === void 0 ? void 0 : details.architectid) || "");
|
|
@@ -14237,15 +14263,15 @@ const PlotDetails = ({
|
|
|
14237
14263
|
}
|
|
14238
14264
|
}, [currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.createdResponse]);
|
|
14239
14265
|
useEffect(() => {
|
|
14240
|
-
var _currentStepData$cpt, _currentStepData$cpt$, _currentStepData$
|
|
14241
|
-
if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$cpt = currentStepData.cpt) !== null && _currentStepData$cpt !== void 0 && (_currentStepData$cpt$ = _currentStepData$cpt.zonalMapping) !== null && _currentStepData$cpt$ !== void 0 && _currentStepData$cpt$.zone && !(currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
14266
|
+
var _currentStepData$cpt, _currentStepData$cpt$, _currentStepData$crea8, _currentStepData$crea9;
|
|
14267
|
+
if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$cpt = currentStepData.cpt) !== null && _currentStepData$cpt !== void 0 && (_currentStepData$cpt$ = _currentStepData$cpt.zonalMapping) !== null && _currentStepData$cpt$ !== void 0 && _currentStepData$cpt$.zone && !(currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea8 = currentStepData.createdResponse) !== null && _currentStepData$crea8 !== void 0 && (_currentStepData$crea9 = _currentStepData$crea8.additionalDetails) !== null && _currentStepData$crea9 !== void 0 && _currentStepData$crea9.zonenumber)) {
|
|
14242
14268
|
var _currentStepData$cpt2, _currentStepData$cpt3, _currentStepData$cpt4;
|
|
14243
14269
|
setZoneNumber((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt2 = currentStepData.cpt) === null || _currentStepData$cpt2 === void 0 ? void 0 : (_currentStepData$cpt3 = _currentStepData$cpt2.zonalMapping) === null || _currentStepData$cpt3 === void 0 ? void 0 : (_currentStepData$cpt4 = _currentStepData$cpt3.zone) === null || _currentStepData$cpt4 === void 0 ? void 0 : _currentStepData$cpt4.code) || "");
|
|
14244
14270
|
}
|
|
14245
14271
|
}, [currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt5 = currentStepData.cpt) === null || _currentStepData$cpt5 === void 0 ? void 0 : (_currentStepData$cpt6 = _currentStepData$cpt5.zonalMapping) === null || _currentStepData$cpt6 === void 0 ? void 0 : _currentStepData$cpt6.zone]);
|
|
14246
14272
|
useEffect(() => {
|
|
14247
|
-
var _currentStepData$cpt7, _currentStepData$cpt8, _currentStepData$
|
|
14248
|
-
if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$cpt7 = currentStepData.cpt) !== null && _currentStepData$cpt7 !== void 0 && (_currentStepData$cpt8 = _currentStepData$cpt7.zonalMapping) !== null && _currentStepData$cpt8 !== void 0 && _currentStepData$cpt8.ward && !(currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
14273
|
+
var _currentStepData$cpt7, _currentStepData$cpt8, _currentStepData$crea0, _currentStepData$crea1;
|
|
14274
|
+
if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$cpt7 = currentStepData.cpt) !== null && _currentStepData$cpt7 !== void 0 && (_currentStepData$cpt8 = _currentStepData$cpt7.zonalMapping) !== null && _currentStepData$cpt8 !== void 0 && _currentStepData$cpt8.ward && !(currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea0 = currentStepData.createdResponse) !== null && _currentStepData$crea0 !== void 0 && (_currentStepData$crea1 = _currentStepData$crea0.additionalDetails) !== null && _currentStepData$crea1 !== void 0 && _currentStepData$crea1.wardnumber)) {
|
|
14249
14275
|
var _currentStepData$cpt9, _currentStepData$cpt0, _currentStepData$cpt1;
|
|
14250
14276
|
setWardNumber((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt9 = currentStepData.cpt) === null || _currentStepData$cpt9 === void 0 ? void 0 : (_currentStepData$cpt0 = _currentStepData$cpt9.zonalMapping) === null || _currentStepData$cpt0 === void 0 ? void 0 : (_currentStepData$cpt1 = _currentStepData$cpt0.ward) === null || _currentStepData$cpt1 === void 0 ? void 0 : _currentStepData$cpt1.code) || "");
|
|
14251
14277
|
}
|
|
@@ -14255,6 +14281,9 @@ const PlotDetails = ({
|
|
|
14255
14281
|
if (!registrationDetails.trim()) {
|
|
14256
14282
|
newErrors.registrationDetails = t("BPA_REGISTRATION_DETAILS_REQUIRED");
|
|
14257
14283
|
}
|
|
14284
|
+
if (!(isClubbedPlot !== null && isClubbedPlot !== void 0 && isClubbedPlot.code)) {
|
|
14285
|
+
newErrors.isClubbedPlot = t("BPA_IS_CLUBBED_PLOT_REQUIRED");
|
|
14286
|
+
}
|
|
14258
14287
|
if (!boundaryWallLength) {
|
|
14259
14288
|
newErrors.boundaryWallLength = t("BPA_BOUNDARY_WALL_LENGTH_REQUIRED");
|
|
14260
14289
|
} else if (isNaN(boundaryWallLength)) {
|
|
@@ -14311,7 +14340,7 @@ const PlotDetails = ({
|
|
|
14311
14340
|
return Object.keys(newErrors).length === 0;
|
|
14312
14341
|
};
|
|
14313
14342
|
const handleSubmit = async () => {
|
|
14314
|
-
var _userInfo$info3, _currentStepData$cpt12, _currentStepData$cpt13, _currentStepData$cpt14, _currentStepData$cpt15, _currentStepData$cpt16, _currentStepData$cpt17, _currentStepData$cpt18, _currentStepData$cpt19, _currentStepData$cpt20, _currentStepData$cpt21, _currentStepData$cpt22, _currentStepData$
|
|
14343
|
+
var _userInfo$info3, _currentStepData$cpt12, _currentStepData$cpt13, _currentStepData$cpt14, _currentStepData$cpt15, _currentStepData$cpt16, _currentStepData$cpt17, _currentStepData$cpt18, _currentStepData$cpt19, _currentStepData$cpt20, _currentStepData$cpt21, _currentStepData$cpt22, _currentStepData$crea10, _currentStepData$crea11, _currentStepData$cpt23, _currentStepData$cpt24, _currentStepData$crea12, _currentStepData$crea13, _currentStepData$cpt25, _currentStepData$cpt26, _currentStepData$cpt27, _currentStepData$crea14, _currentStepData$crea15, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$Basi5, _currentStepData$Basi6, _currentStepData$Basi7, _currentStepData$Basi8, _currentStepData$Basi9, _formData$data, _currentStepData$crea16, _data$planDetail3, _data$planDetail3$pla, _data$planDetail3$pla2, _data$planDetail4, _data$planDetail4$blo, _data$planDetail4$blo2, _data$planDetail4$blo3, _data$planDetail4$blo4, _data$planDetail5, _data$planDetail5$pla, _data$planDetail6, _data$planDetail6$blo, _data$planDetail6$blo2, _data$planDetail6$blo3, _data$planDetail6$blo4, _approvedLicense$trad, _approvedLicense$trad2, _approvedLicense$trad3, _data$planDetail7, _data$planDetail7$pla, _data$planDetail7$pla2, _data$planDetail8, _data$planDetail8$blo, _data$planDetail8$blo2, _data$planDetail8$blo3, _data$planDetail8$blo4, _data$planDetail9, _data$planDetail9$pla, _data$planDetail0, _data$planDetail0$blo, _data$planDetail0$blo2, _data$planDetail0$blo3, _data$planDetail0$blo4, _approvedLicense$trad4, _approvedLicense$trad5, _approvedLicense$trad6, _currentStepData$Basi0, _userInfo$info4, _formData$data2, _formData$data3;
|
|
14315
14344
|
if (!validate()) return;
|
|
14316
14345
|
const userInfo = Digit.UserService.getUser();
|
|
14317
14346
|
const applicationType = (data === null || data === void 0 ? void 0 : data.appliactionType) || "";
|
|
@@ -14334,15 +14363,15 @@ const PlotDetails = ({
|
|
|
14334
14363
|
...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt15 = currentStepData.cpt) === null || _currentStepData$cpt15 === void 0 ? void 0 : (_currentStepData$cpt16 = _currentStepData$cpt15.details) === null || _currentStepData$cpt16 === void 0 ? void 0 : _currentStepData$cpt16.address),
|
|
14335
14364
|
city: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt17 = currentStepData.cpt) === null || _currentStepData$cpt17 === void 0 ? void 0 : (_currentStepData$cpt18 = _currentStepData$cpt17.details) === null || _currentStepData$cpt18 === void 0 ? void 0 : (_currentStepData$cpt19 = _currentStepData$cpt18.address) === null || _currentStepData$cpt19 === void 0 ? void 0 : _currentStepData$cpt19.tenantId) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt20 = currentStepData.cpt) === null || _currentStepData$cpt20 === void 0 ? void 0 : (_currentStepData$cpt21 = _currentStepData$cpt20.details) === null || _currentStepData$cpt21 === void 0 ? void 0 : (_currentStepData$cpt22 = _currentStepData$cpt21.address) === null || _currentStepData$cpt22 === void 0 ? void 0 : _currentStepData$cpt22.city) || "",
|
|
14336
14365
|
id: null
|
|
14337
|
-
} || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
14338
|
-
const ownershipCategory = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt23 = currentStepData.cpt) === null || _currentStepData$cpt23 === void 0 ? void 0 : (_currentStepData$cpt24 = _currentStepData$cpt23.details) === null || _currentStepData$cpt24 === void 0 ? void 0 : _currentStepData$cpt24.ownershipCategory) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
14366
|
+
} || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea10 = currentStepData.createdResponse) === null || _currentStepData$crea10 === void 0 ? void 0 : (_currentStepData$crea11 = _currentStepData$crea10.landInfo) === null || _currentStepData$crea11 === void 0 ? void 0 : _currentStepData$crea11.address) || undefined;
|
|
14367
|
+
const ownershipCategory = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt23 = currentStepData.cpt) === null || _currentStepData$cpt23 === void 0 ? void 0 : (_currentStepData$cpt24 = _currentStepData$cpt23.details) === null || _currentStepData$cpt24 === void 0 ? void 0 : _currentStepData$cpt24.ownershipCategory) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea12 = currentStepData.createdResponse) === null || _currentStepData$crea12 === void 0 ? void 0 : (_currentStepData$crea13 = _currentStepData$crea12.landInfo) === null || _currentStepData$crea13 === void 0 ? void 0 : _currentStepData$crea13.ownershipCategory) || undefined;
|
|
14339
14368
|
const owners = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt25 = currentStepData.cpt) === null || _currentStepData$cpt25 === void 0 ? void 0 : (_currentStepData$cpt26 = _currentStepData$cpt25.details) === null || _currentStepData$cpt26 === void 0 ? void 0 : (_currentStepData$cpt27 = _currentStepData$cpt26.owners) === null || _currentStepData$cpt27 === void 0 ? void 0 : _currentStepData$cpt27.map(data => {
|
|
14340
14369
|
var _data$status;
|
|
14341
14370
|
return {
|
|
14342
14371
|
...data,
|
|
14343
14372
|
status: (data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.trim()) === "ACTIVE" ? true : false
|
|
14344
14373
|
};
|
|
14345
|
-
})) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
14374
|
+
})) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea14 = currentStepData.createdResponse) === null || _currentStepData$crea14 === void 0 ? void 0 : (_currentStepData$crea15 = _currentStepData$crea14.landInfo) === null || _currentStepData$crea15 === void 0 ? void 0 : _currentStepData$crea15.owners) || undefined;
|
|
14346
14375
|
const landInfo = {
|
|
14347
14376
|
address,
|
|
14348
14377
|
ownershipCategory,
|
|
@@ -14353,7 +14382,7 @@ const PlotDetails = ({
|
|
|
14353
14382
|
const farDetails = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi3 = currentStepData.BasicDetails) === null || _currentStepData$Basi3 === void 0 ? void 0 : (_currentStepData$Basi4 = _currentStepData$Basi3.edcrDetails) === null || _currentStepData$Basi4 === void 0 ? void 0 : (_currentStepData$Basi5 = _currentStepData$Basi4.planDetail) === null || _currentStepData$Basi5 === void 0 ? void 0 : _currentStepData$Basi5.farDetails;
|
|
14354
14383
|
const roadType = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi6 = currentStepData.BasicDetails) === null || _currentStepData$Basi6 === void 0 ? void 0 : (_currentStepData$Basi7 = _currentStepData$Basi6.edcrDetails) === null || _currentStepData$Basi7 === void 0 ? void 0 : (_currentStepData$Basi8 = _currentStepData$Basi7.planDetail) === null || _currentStepData$Basi8 === void 0 ? void 0 : (_currentStepData$Basi9 = _currentStepData$Basi8.planInformation) === null || _currentStepData$Basi9 === void 0 ? void 0 : _currentStepData$Basi9.roadType;
|
|
14355
14384
|
const additionalDetails = formData !== null && formData !== void 0 && (_formData$data = formData.data) !== null && _formData$data !== void 0 && _formData$data.applicationNo ? {
|
|
14356
|
-
...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
14385
|
+
...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea16 = currentStepData.createdResponse) === null || _currentStepData$crea16 === void 0 ? void 0 : _currentStepData$crea16.additionalDetails),
|
|
14357
14386
|
registrationDetails,
|
|
14358
14387
|
boundaryWallLength,
|
|
14359
14388
|
wardnumber,
|
|
@@ -14383,7 +14412,8 @@ const PlotDetails = ({
|
|
|
14383
14412
|
stakeholderRegistrationNumber,
|
|
14384
14413
|
stakeholderAddress,
|
|
14385
14414
|
isSelfCertificationRequired,
|
|
14386
|
-
architectPhoto: (approvedLicense === null || approvedLicense === void 0 ? void 0 : (_approvedLicense$trad = approvedLicense.tradeLicenseDetail) === null || _approvedLicense$trad === void 0 ? void 0 : (_approvedLicense$trad2 = _approvedLicense$trad.applicationDocuments) === null || _approvedLicense$trad2 === void 0 ? void 0 : (_approvedLicense$trad3 = _approvedLicense$trad2.find(item => (item === null || item === void 0 ? void 0 : item.documentType) === "APPL.BPAREG_PASS_PORT_SIZE_PHOTO")) === null || _approvedLicense$trad3 === void 0 ? void 0 : _approvedLicense$trad3.fileStoreId) || null
|
|
14415
|
+
architectPhoto: (approvedLicense === null || approvedLicense === void 0 ? void 0 : (_approvedLicense$trad = approvedLicense.tradeLicenseDetail) === null || _approvedLicense$trad === void 0 ? void 0 : (_approvedLicense$trad2 = _approvedLicense$trad.applicationDocuments) === null || _approvedLicense$trad2 === void 0 ? void 0 : (_approvedLicense$trad3 = _approvedLicense$trad2.find(item => (item === null || item === void 0 ? void 0 : item.documentType) === "APPL.BPAREG_PASS_PORT_SIZE_PHOTO")) === null || _approvedLicense$trad3 === void 0 ? void 0 : _approvedLicense$trad3.fileStoreId) || null,
|
|
14416
|
+
isClubbedPlot: isClubbedPlot === null || isClubbedPlot === void 0 ? void 0 : isClubbedPlot.value
|
|
14387
14417
|
} : {
|
|
14388
14418
|
registrationDetails,
|
|
14389
14419
|
boundaryWallLength,
|
|
@@ -14416,7 +14446,8 @@ const PlotDetails = ({
|
|
|
14416
14446
|
isSelfCertificationRequired,
|
|
14417
14447
|
architectPhoto: (approvedLicense === null || approvedLicense === void 0 ? void 0 : (_approvedLicense$trad4 = approvedLicense.tradeLicenseDetail) === null || _approvedLicense$trad4 === void 0 ? void 0 : (_approvedLicense$trad5 = _approvedLicense$trad4.applicationDocuments) === null || _approvedLicense$trad5 === void 0 ? void 0 : (_approvedLicense$trad6 = _approvedLicense$trad5.find(item => (item === null || item === void 0 ? void 0 : item.documentType) === "APPL.BPAREG_PASS_PORT_SIZE_PHOTO")) === null || _approvedLicense$trad6 === void 0 ? void 0 : _approvedLicense$trad6.fileStoreId) || null,
|
|
14418
14448
|
roadType,
|
|
14419
|
-
farDetails
|
|
14449
|
+
farDetails,
|
|
14450
|
+
isClubbedPlot: isClubbedPlot === null || isClubbedPlot === void 0 ? void 0 : isClubbedPlot.value
|
|
14420
14451
|
};
|
|
14421
14452
|
const edcrNumber = data === null || data === void 0 ? void 0 : data.edcrNumber;
|
|
14422
14453
|
const riskType = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi0 = currentStepData.BasicDetails) === null || _currentStepData$Basi0 === void 0 ? void 0 : _currentStepData$Basi0.riskType;
|
|
@@ -14528,6 +14559,9 @@ const PlotDetails = ({
|
|
|
14528
14559
|
if (apiLoading || LicenseDataLoading) {
|
|
14529
14560
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
14530
14561
|
}
|
|
14562
|
+
function setClubbedPlot(option) {
|
|
14563
|
+
setIsClubbedPlot(option);
|
|
14564
|
+
}
|
|
14531
14565
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
14532
14566
|
style: {
|
|
14533
14567
|
paddingBottom: isMobile ? "0px" : "8px"
|
|
@@ -14567,7 +14601,19 @@ const PlotDetails = ({
|
|
|
14567
14601
|
fontSize: "12px",
|
|
14568
14602
|
color: "red"
|
|
14569
14603
|
}
|
|
14570
|
-
}, errors["propertyuid"]),
|
|
14604
|
+
}, errors["propertyuid"]), /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_IS_CLUBBED_PLOT_LABEL")} *`), /*#__PURE__*/React.createElement(Dropdown, {
|
|
14605
|
+
placeholder: t("IS_CLUBBED_PLOT"),
|
|
14606
|
+
selected: isClubbedPlot,
|
|
14607
|
+
select: setClubbedPlot,
|
|
14608
|
+
option: common,
|
|
14609
|
+
optionKey: "i18nKey",
|
|
14610
|
+
t: t
|
|
14611
|
+
}), errors["isClubbedPlot"] && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
14612
|
+
style: {
|
|
14613
|
+
fontSize: "12px",
|
|
14614
|
+
color: "red"
|
|
14615
|
+
}
|
|
14616
|
+
}, errors["isClubbedPlot"]), renderField(t("BPA_BOUNDARY_LAND_REG_DETAIL_LABEL") + "*", registrationDetails, setRegistrationDetails, "registrationDetails", "Enter Proposed Site Address ..."), renderField(t("BPA_BOUNDARY_WALL_LENGTH_LABEL_INPUT") + "*", boundaryWallLength, setBoundaryWallLength, "boundaryWallLength", "Enter boundary wall length (in meters)"), renderField(t("BPA_WARD_NUMBER_LABEL") + "*", wardnumber, setWardNumber, "wardnumber", "Ward Number", currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt29 = currentStepData.cpt) === null || _currentStepData$cpt29 === void 0 ? void 0 : (_currentStepData$cpt30 = _currentStepData$cpt29.zonalMapping) === null || _currentStepData$cpt30 === void 0 ? void 0 : _currentStepData$cpt30.ward), renderField(t("BPA_ZONE_NUMBER_LABEL") + "*", zonenumber, setZoneNumber, "zonenumber", "Zone Number", currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt31 = currentStepData.cpt) === null || _currentStepData$cpt31 === void 0 ? void 0 : (_currentStepData$cpt32 = _currentStepData$cpt31.zonalMapping) === null || _currentStepData$cpt32 === void 0 ? void 0 : _currentStepData$cpt32.zone), renderField(t("BPA_KHASRA_NUMBER_LABEL") + "*", khasraNumber, setKhasraNumber, "khasraNumber", "Khasra Number", true), renderField(t("BPA_ARCHITECT_ID") + "*", architectid, setArchitectId, "architectid", "Architect ID", true), renderField(t("BPA_NUMBER_OF_BATHS") + "*", bathnumber, setBathNumber, "bathnumber", "Number of Bathrooms"), renderField(t("BPA_NUMBER_OF_KITCHENS") + "*", kitchenNumber, setKitchenNumber, "kitchenNumber", "Number of Kitchens"), renderField(t("BPA_APPROX_INHABITANTS_FOR_ACCOMODATION") + "*", approxinhabitants, setApproxInhabitants, "approxinhabitants", "Approximate inhabitants"), renderField(t("BPA_DISTANCE_FROM_SEWER") + "*", distancefromsewer, setDistanceFromSewer, "distancefromsewer", "Distance from sewer (in meters)"), renderField(t("BPA_SOURCE_OF_WATER") + "*", sourceofwater, setSourceOfWater, "sourceofwater", "Source of Water"), renderField(t("BPA_NUMBER_OF_WATER_CLOSETS") + "*", watercloset, setWaterCloset, "watercloset", "Water Closet"), renderField(t("BPA_MATERIAL_TO-BE_USED_IN_WALLS") + "*", materialused, setMaterialUsed, "materialused", "e.g. Cement, Bricks, etc"), renderField(t("BPA_MATERIAL_TO-BE_USED_IN_FLOOR") + "*", materialusedinfloor, setMaterialUsedInFloor, "materialusedinfloor", "e.g. Cement, Bricks, etc"), renderField(t("BPA_MATERIAL_TO-BE_USED_IN_ROOFS") + "*", materialusedinroofs, setMaterialUsedInRoofs, "materialusedinroofs", "e.g. Cement, Bricks, etc"), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
14571
14617
|
label: "Back",
|
|
14572
14618
|
style: {
|
|
14573
14619
|
border: "1px solid",
|
|
@@ -14655,17 +14701,21 @@ const ScrutinyDetails = ({
|
|
|
14655
14701
|
const floors = [];
|
|
14656
14702
|
let totalBuiltUpArea = 0;
|
|
14657
14703
|
let totalFloorArea = 0;
|
|
14704
|
+
let totalDeduction = 0;
|
|
14658
14705
|
block === null || block === void 0 ? void 0 : (_block$building = block.building) === null || _block$building === void 0 ? void 0 : (_block$building$floor = _block$building.floors) === null || _block$building$floor === void 0 ? void 0 : _block$building$floor.forEach(ob => {
|
|
14659
|
-
var _ob$occupancies, _ob$occupancies$, _ob$occupancies2, _ob$occupancies2$, _ob$occupancies3, _ob$occupancies3$;
|
|
14706
|
+
var _ob$occupancies, _ob$occupancies$, _ob$occupancies2, _ob$occupancies2$, _ob$occupancies3, _ob$occupancies3$, _ob$occupancies4, _ob$occupancies4$;
|
|
14660
14707
|
const builtUp = Number((_ob$occupancies = ob.occupancies) === null || _ob$occupancies === void 0 ? void 0 : (_ob$occupancies$ = _ob$occupancies[0]) === null || _ob$occupancies$ === void 0 ? void 0 : _ob$occupancies$.builtUpArea) || 0;
|
|
14661
14708
|
const floor = Number((_ob$occupancies2 = ob.occupancies) === null || _ob$occupancies2 === void 0 ? void 0 : (_ob$occupancies2$ = _ob$occupancies2[0]) === null || _ob$occupancies2$ === void 0 ? void 0 : _ob$occupancies2$.floorArea) || 0;
|
|
14709
|
+
const deduction = Number((_ob$occupancies3 = ob.occupancies) === null || _ob$occupancies3 === void 0 ? void 0 : (_ob$occupancies3$ = _ob$occupancies3[0]) === null || _ob$occupancies3$ === void 0 ? void 0 : _ob$occupancies3$.deduction) || 0;
|
|
14662
14710
|
totalBuiltUpArea += builtUp;
|
|
14663
14711
|
totalFloorArea += floor;
|
|
14712
|
+
totalDeduction += deduction;
|
|
14664
14713
|
floors.push({
|
|
14665
14714
|
Floor: t(`BPA_FLOOR_NAME_${ob.number}`),
|
|
14666
14715
|
Level: ob.number,
|
|
14667
|
-
Occupancy: t(`${(_ob$
|
|
14716
|
+
Occupancy: t(`${(_ob$occupancies4 = ob.occupancies) === null || _ob$occupancies4 === void 0 ? void 0 : (_ob$occupancies4$ = _ob$occupancies4[0]) === null || _ob$occupancies4$ === void 0 ? void 0 : _ob$occupancies4$.type}`),
|
|
14668
14717
|
BuildupArea: Number(builtUp).toFixed(2),
|
|
14718
|
+
Deduction: Number(deduction).toFixed(2),
|
|
14669
14719
|
FloorArea: Number(floor).toFixed(2)
|
|
14670
14720
|
});
|
|
14671
14721
|
});
|
|
@@ -14674,6 +14724,7 @@ const ScrutinyDetails = ({
|
|
|
14674
14724
|
Level: "",
|
|
14675
14725
|
Occupancy: "",
|
|
14676
14726
|
BuildupArea: `${Number(totalBuiltUpArea).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`,
|
|
14727
|
+
Deduction: `${Number(totalDeduction).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`,
|
|
14677
14728
|
FloorArea: `${Number(totalFloorArea).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`
|
|
14678
14729
|
});
|
|
14679
14730
|
return floors;
|
|
@@ -14693,6 +14744,9 @@ const ScrutinyDetails = ({
|
|
|
14693
14744
|
}, {
|
|
14694
14745
|
name: "BPA_TABLE_COL_BUILDUPAREA",
|
|
14695
14746
|
id: "BuildupArea"
|
|
14747
|
+
}, {
|
|
14748
|
+
name: "BPA_TABLE_COL_DEDUCTION",
|
|
14749
|
+
id: "Deduction"
|
|
14696
14750
|
}, {
|
|
14697
14751
|
name: "BPA_TABLE_COL_FLOORAREA",
|
|
14698
14752
|
id: "FloorArea"
|
|
@@ -14718,6 +14772,16 @@ const ScrutinyDetails = ({
|
|
|
14718
14772
|
return `${t("BPA_TOTAL_BUILDUPAREA")} : ${Number(total).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`;
|
|
14719
14773
|
}
|
|
14720
14774
|
};
|
|
14775
|
+
} else if (ob.id === "Deduction") {
|
|
14776
|
+
return {
|
|
14777
|
+
Header: t(`${ob.name}`),
|
|
14778
|
+
accessor: accessData(ob.id),
|
|
14779
|
+
id: ob.id,
|
|
14780
|
+
Footer: info => {
|
|
14781
|
+
const total = info.rows.reduce((sum, row) => sum + (Number(row.values.FloorArea) || 0), 0);
|
|
14782
|
+
return `${t("BPA_TOTAL_Deduction")} : ${Number(total).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`;
|
|
14783
|
+
}
|
|
14784
|
+
};
|
|
14721
14785
|
} else if (ob.id === "FloorArea") {
|
|
14722
14786
|
return {
|
|
14723
14787
|
Header: t(`${ob.name}`),
|
|
@@ -14972,7 +15036,7 @@ const ScrutinyDetails = ({
|
|
|
14972
15036
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
14973
15037
|
className: "border-none",
|
|
14974
15038
|
label: t("BPA_PERMISSIBLE_FAR"),
|
|
14975
|
-
text: data
|
|
15039
|
+
text: (data === null || data === void 0 ? void 0 : (_data$planDetail6 = data.planDetail) === null || _data$planDetail6 === void 0 ? void 0 : (_data$planDetail6$far = _data$planDetail6.farDetails) === null || _data$planDetail6$far === void 0 ? void 0 : _data$planDetail6$far.permissableFar) !== null ? data === null || data === void 0 ? void 0 : (_data$planDetail7 = data.planDetail) === null || _data$planDetail7 === void 0 ? void 0 : (_data$planDetail7$far = _data$planDetail7.farDetails) === null || _data$planDetail7$far === void 0 ? void 0 : _data$planDetail7$far.permissableFar : "N/A"
|
|
14976
15040
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
14977
15041
|
className: "border-none",
|
|
14978
15042
|
label: t("BPA_FAR_ACHIEVED"),
|
|
@@ -15168,7 +15232,6 @@ const BPANewBuildingdetails = ({
|
|
|
15168
15232
|
if (!Ulblisttype) newErrors.Ulblisttype = t("ULB Type is required");
|
|
15169
15233
|
if (!approvedColony) newErrors.approvedColony = t("Approved Colony is required");
|
|
15170
15234
|
if (!masterPlan) newErrors.masterPlan = t("Master Plan is required");
|
|
15171
|
-
if (!buildingStatus) newErrors.buildingStatus = t("Building Status is required");
|
|
15172
15235
|
if (!purchasedFAR) newErrors.purchasedFAR = t("Purchased FAR is required");
|
|
15173
15236
|
if (!greenbuilding) newErrors.greenbuilding = t("Green Building is required");
|
|
15174
15237
|
if (!restrictedArea) newErrors.restrictedArea = t("Restricted Area is required");
|
|
@@ -15633,13 +15696,6 @@ const BPANewBuildingdetails = ({
|
|
|
15633
15696
|
masterPlan: ""
|
|
15634
15697
|
}));
|
|
15635
15698
|
}
|
|
15636
|
-
function setBuildingStatus(option) {
|
|
15637
|
-
setbuildingStatus(option);
|
|
15638
|
-
setErrors(prev => ({
|
|
15639
|
-
...prev,
|
|
15640
|
-
buildingStatus: ""
|
|
15641
|
-
}));
|
|
15642
|
-
}
|
|
15643
15699
|
function setPurchasedFAR(option) {
|
|
15644
15700
|
setpurchasedFAR(option);
|
|
15645
15701
|
setErrors(prev => ({
|
|
@@ -15750,7 +15806,7 @@ const BPANewBuildingdetails = ({
|
|
|
15750
15806
|
District,
|
|
15751
15807
|
rating: typeof rating === "string" ? rating : rating === null || rating === void 0 ? void 0 : rating.code,
|
|
15752
15808
|
masterPlan: masterPlan === null || masterPlan === void 0 ? void 0 : masterPlan.code,
|
|
15753
|
-
buildingStatus:
|
|
15809
|
+
buildingStatus: "",
|
|
15754
15810
|
purchasedFAR: purchasedFAR === null || purchasedFAR === void 0 ? void 0 : purchasedFAR.value,
|
|
15755
15811
|
providedFAR,
|
|
15756
15812
|
greenbuilding: greenbuilding === null || greenbuilding === void 0 ? void 0 : greenbuilding.code,
|
|
@@ -15817,7 +15873,8 @@ const BPANewBuildingdetails = ({
|
|
|
15817
15873
|
const sectionStyle = {
|
|
15818
15874
|
backgroundColor: "#ffffff",
|
|
15819
15875
|
borderRadius: "8px",
|
|
15820
|
-
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.05)"
|
|
15876
|
+
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.05)",
|
|
15877
|
+
paddingBottom: "50px"
|
|
15821
15878
|
};
|
|
15822
15879
|
const headingStyle = {
|
|
15823
15880
|
fontSize: "1.5rem",
|
|
@@ -15976,21 +16033,7 @@ const BPANewBuildingdetails = ({
|
|
|
15976
16033
|
})
|
|
15977
16034
|
}), errors.use && /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
15978
16035
|
error: errors.use
|
|
15979
|
-
})), /*#__PURE__*/React.createElement(CardLabel, null, `${t("
|
|
15980
|
-
control: control,
|
|
15981
|
-
name: "buildingStatus",
|
|
15982
|
-
defaultValue: buildingStatus,
|
|
15983
|
-
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
15984
|
-
selected: buildingStatus,
|
|
15985
|
-
select: setBuildingStatus,
|
|
15986
|
-
option: building_status,
|
|
15987
|
-
placeholder: "Building Status",
|
|
15988
|
-
optionKey: "i18nKey",
|
|
15989
|
-
t: t
|
|
15990
|
-
})
|
|
15991
|
-
}), /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
15992
|
-
error: errors.buildingStatus
|
|
15993
|
-
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_PURCHASED_FAR")} *`), /*#__PURE__*/React.createElement(Controller, {
|
|
16036
|
+
})), /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_PURCHASED_FAR")} *`), /*#__PURE__*/React.createElement(Controller, {
|
|
15994
16037
|
control: control,
|
|
15995
16038
|
name: "purchasedFAR",
|
|
15996
16039
|
defaultValue: purchasedFAR,
|
|
@@ -16481,6 +16524,7 @@ const OwnerDetails = ({
|
|
|
16481
16524
|
sessionStorage.setItem("ownerFields", JSON.stringify(fields));
|
|
16482
16525
|
}, [fields]);
|
|
16483
16526
|
useEffect(() => {
|
|
16527
|
+
var _ownershipCategory$co2;
|
|
16484
16528
|
var flag = 0;
|
|
16485
16529
|
fields.map(ob => {
|
|
16486
16530
|
if (ob !== null && ob !== void 0 && ob.isPrimaryOwner) flag = 1;
|
|
@@ -16490,7 +16534,7 @@ const OwnerDetails = ({
|
|
|
16490
16534
|
setCanmovenext(true);
|
|
16491
16535
|
}
|
|
16492
16536
|
});
|
|
16493
|
-
if (!canmovenext && ownershipCategory && !(ownershipCategory !== null && ownershipCategory !== void 0 && ownershipCategory.code.includes("SINGLEOWNER"))) {
|
|
16537
|
+
if (!canmovenext && ownershipCategory && !(ownershipCategory !== null && ownershipCategory !== void 0 && (_ownershipCategory$co2 = ownershipCategory.code) !== null && _ownershipCategory$co2 !== void 0 && _ownershipCategory$co2.includes("SINGLEOWNER"))) {
|
|
16494
16538
|
if (flag == 1) setCanmovenext(false);else setCanmovenext(true);
|
|
16495
16539
|
}
|
|
16496
16540
|
}, [fields]);
|
|
@@ -16653,12 +16697,11 @@ const OwnerDetails = ({
|
|
|
16653
16697
|
});
|
|
16654
16698
|
return;
|
|
16655
16699
|
} else {
|
|
16656
|
-
var _fields$indexValue, _usersResponse$user
|
|
16700
|
+
var _fields$indexValue, _usersResponse$user;
|
|
16657
16701
|
const usersResponse = await Digit.UserService.userSearch(Digit.ULBService.getStateId(), {
|
|
16658
16702
|
userName: fields === null || fields === void 0 ? void 0 : (_fields$indexValue = fields[indexValue]) === null || _fields$indexValue === void 0 ? void 0 : _fields$indexValue.mobileNumber
|
|
16659
16703
|
}, {});
|
|
16660
|
-
|
|
16661
|
-
if ((usersResponse === null || usersResponse === void 0 ? void 0 : (_usersResponse$user2 = usersResponse.user) === null || _usersResponse$user2 === void 0 ? void 0 : _usersResponse$user2.length) === 0) {
|
|
16704
|
+
if ((usersResponse === null || usersResponse === void 0 ? void 0 : (_usersResponse$user = usersResponse.user) === null || _usersResponse$user === void 0 ? void 0 : _usersResponse$user.length) === 0) {
|
|
16662
16705
|
setShowToast({
|
|
16663
16706
|
key: "true",
|
|
16664
16707
|
warning: true,
|
|
@@ -16666,8 +16709,8 @@ const OwnerDetails = ({
|
|
|
16666
16709
|
});
|
|
16667
16710
|
return;
|
|
16668
16711
|
} else {
|
|
16669
|
-
var _usersResponse$
|
|
16670
|
-
const userData = usersResponse === null || usersResponse === void 0 ? void 0 : (_usersResponse$
|
|
16712
|
+
var _usersResponse$user2, _values$indexValue, _values$indexValue2, _values$indexValue3, _values$indexValue3$g, _user$info;
|
|
16713
|
+
const userData = usersResponse === null || usersResponse === void 0 ? void 0 : (_usersResponse$user2 = usersResponse.user) === null || _usersResponse$user2 === void 0 ? void 0 : _usersResponse$user2[0];
|
|
16671
16714
|
userData.gender = userData.gender ? {
|
|
16672
16715
|
code: userData.gender,
|
|
16673
16716
|
active: true,
|
|
@@ -16700,12 +16743,12 @@ const OwnerDetails = ({
|
|
|
16700
16743
|
});
|
|
16701
16744
|
setFeilds(updatedValues);
|
|
16702
16745
|
if ((_values$indexValue = values[indexValue]) !== null && _values$indexValue !== void 0 && _values$indexValue.mobileNumber && (_values$indexValue2 = values[indexValue]) !== null && _values$indexValue2 !== void 0 && _values$indexValue2.name && (_values$indexValue3 = values[indexValue]) !== null && _values$indexValue3 !== void 0 && (_values$indexValue3$g = _values$indexValue3.gender) !== null && _values$indexValue3$g !== void 0 && _values$indexValue3$g.code) setCanmovenext(true);else setCanmovenext(false);
|
|
16703
|
-
if (
|
|
16746
|
+
if (ownerNo === (user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.mobileNumber)) {
|
|
16704
16747
|
setCanmovenext(false);
|
|
16705
16748
|
setShowToast({
|
|
16706
16749
|
key: "true",
|
|
16707
16750
|
error: true,
|
|
16708
|
-
message: `
|
|
16751
|
+
message: `BPA_OWNER_VALIDATION`
|
|
16709
16752
|
});
|
|
16710
16753
|
return;
|
|
16711
16754
|
}
|
|
@@ -16750,6 +16793,7 @@ const OwnerDetails = ({
|
|
|
16750
16793
|
const validateOwners = (owners, ownershipCategory, setErrors) => {
|
|
16751
16794
|
let isValid = true;
|
|
16752
16795
|
let newErrors = {};
|
|
16796
|
+
console.log("ownersss", owners);
|
|
16753
16797
|
if (!(ownershipCategory !== null && ownershipCategory !== void 0 && ownershipCategory.code)) {
|
|
16754
16798
|
newErrors["ownershipCategory"] = "Ownership category is mandatory";
|
|
16755
16799
|
isValid = false;
|
|
@@ -16820,12 +16864,6 @@ const OwnerDetails = ({
|
|
|
16820
16864
|
setApiLoading(false);
|
|
16821
16865
|
return;
|
|
16822
16866
|
}
|
|
16823
|
-
if (ismultiple === true && fields.length === 1) {
|
|
16824
|
-
window.scrollTo(0, 0);
|
|
16825
|
-
setApiLoading(false);
|
|
16826
|
-
setError("BPA_ERROR_MULTIPLE_OWNER");
|
|
16827
|
-
return;
|
|
16828
|
-
}
|
|
16829
16867
|
setIsDisable(true);
|
|
16830
16868
|
const conversionOwners = [];
|
|
16831
16869
|
fields === null || fields === void 0 ? void 0 : fields.map(owner => {
|
|
@@ -16981,7 +17019,7 @@ const OwnerDetails = ({
|
|
|
16981
17019
|
position: "relative",
|
|
16982
17020
|
zIndex: "100",
|
|
16983
17021
|
left: "35px",
|
|
16984
|
-
marginTop: "-
|
|
17022
|
+
marginTop: "-22.5px",
|
|
16985
17023
|
marginLeft: Webview ? "-25px" : "-25px"
|
|
16986
17024
|
}
|
|
16987
17025
|
}, "+91"), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
@@ -17192,7 +17230,7 @@ const OwnerDetails = ({
|
|
|
17192
17230
|
resize: "vertical"
|
|
17193
17231
|
},
|
|
17194
17232
|
placeholder: "Enter complete address",
|
|
17195
|
-
value: field.permanentAddress,
|
|
17233
|
+
value: (field === null || field === void 0 ? void 0 : field.permanentAddress) || "",
|
|
17196
17234
|
onChange: e => setOwnerAddress(index, e)
|
|
17197
17235
|
}), /*#__PURE__*/React.createElement(ErrorMessage, {
|
|
17198
17236
|
message: errors[`address_${index}`]
|
|
@@ -18383,12 +18421,6 @@ const LocationDetails = ({
|
|
|
18383
18421
|
setSelectedLocality(propertyData === null || propertyData === void 0 ? void 0 : (_propertyData$address4 = propertyData.address) === null || _propertyData$address4 === void 0 ? void 0 : _propertyData$address4.locality);
|
|
18384
18422
|
}
|
|
18385
18423
|
}, [selectedCity, formData === null || formData === void 0 ? void 0 : formData.pincode, fetchedLocalities, pincode, geoLocation]);
|
|
18386
|
-
const handleGIS = () => {
|
|
18387
|
-
setIsOpen(!isOpen);
|
|
18388
|
-
};
|
|
18389
|
-
const handleRemove = () => {
|
|
18390
|
-
setIsOpen(!isOpen);
|
|
18391
|
-
};
|
|
18392
18424
|
const closeToast = () => {
|
|
18393
18425
|
setError(null);
|
|
18394
18426
|
};
|
|
@@ -18477,14 +18509,6 @@ const LocationDetails = ({
|
|
|
18477
18509
|
setApiLoading(false);
|
|
18478
18510
|
}
|
|
18479
18511
|
};
|
|
18480
|
-
function onSave(geoLocation, pincode, placeName) {
|
|
18481
|
-
selectPincode(pincode);
|
|
18482
|
-
sessionStorage.setItem("currentPincode", pincode);
|
|
18483
|
-
setgeoLocation(geoLocation);
|
|
18484
|
-
setplaceName(placeName);
|
|
18485
|
-
setIsOpen(false);
|
|
18486
|
-
setPinerror(null);
|
|
18487
|
-
}
|
|
18488
18512
|
function selectPincode(e) {
|
|
18489
18513
|
const val = typeof e === "object" && e !== null ? e.target.value : e;
|
|
18490
18514
|
setPinerror(null);
|
|
@@ -18499,16 +18523,6 @@ const LocationDetails = ({
|
|
|
18499
18523
|
setSelectedLocality(null);
|
|
18500
18524
|
setLocalities(null);
|
|
18501
18525
|
}
|
|
18502
|
-
function selectGeolocation(e) {
|
|
18503
|
-
formData.address["geoLocation"] = typeof e === "object" && e !== null ? e.target.value : e;
|
|
18504
|
-
setgeoLocation(typeof e === "object" && e !== null ? e.target.value : e);
|
|
18505
|
-
setplaceName(typeof e === "object" && e !== null ? e.target.value : e);
|
|
18506
|
-
sessionStorage.setItem("currentPincode", "");
|
|
18507
|
-
sessionStorage.setItem("currentCity", JSON.stringify({}));
|
|
18508
|
-
sessionStorage.setItem("currLocality", JSON.stringify({}));
|
|
18509
|
-
setPincode("");
|
|
18510
|
-
setSelectedLocality(null);
|
|
18511
|
-
}
|
|
18512
18526
|
function selectLocality(locality) {
|
|
18513
18527
|
console.log("Locality", locality);
|
|
18514
18528
|
setSelectedLocality(locality);
|
|
@@ -18603,13 +18617,7 @@ const LocationDetails = ({
|
|
|
18603
18617
|
if (apiLoading || isLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
18604
18618
|
return /*#__PURE__*/React.createElement("div", {
|
|
18605
18619
|
style: pageStyle
|
|
18606
|
-
}, isOpen && /*#__PURE__*/React.createElement(
|
|
18607
|
-
t: t,
|
|
18608
|
-
onSelect: onSelect,
|
|
18609
|
-
formData: formData,
|
|
18610
|
-
handleRemove: handleRemove,
|
|
18611
|
-
onSave: onSave
|
|
18612
|
-
}), !isOpen && /*#__PURE__*/React.createElement(FormStep, {
|
|
18620
|
+
}, !isOpen && /*#__PURE__*/React.createElement(FormStep, {
|
|
18613
18621
|
t: t,
|
|
18614
18622
|
config: {
|
|
18615
18623
|
...config,
|
|
@@ -18625,43 +18633,6 @@ const LocationDetails = ({
|
|
|
18625
18633
|
style: sectionStyle
|
|
18626
18634
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
18627
18635
|
style: headingStyle
|
|
18628
|
-
}, t("BPA_GIS_LABEL")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
|
|
18629
|
-
style: {},
|
|
18630
|
-
isMandatory: false,
|
|
18631
|
-
optionKey: "i18nKey",
|
|
18632
|
-
t: t,
|
|
18633
|
-
name: "gis",
|
|
18634
|
-
value: isEditApplication || isSendBackTOCitizen ? geoLocation.latitude !== null ? `${geoLocation.latitude}, ${geoLocation.longitude}` : "" : placeName,
|
|
18635
|
-
onChange: selectGeolocation
|
|
18636
|
-
}), /*#__PURE__*/React.createElement(LinkButton, {
|
|
18637
|
-
label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("svg", {
|
|
18638
|
-
style: !isMobile ? {
|
|
18639
|
-
position: "relative",
|
|
18640
|
-
left: "515px",
|
|
18641
|
-
bottom: "25px",
|
|
18642
|
-
marginTop: "-20px"
|
|
18643
|
-
} : {
|
|
18644
|
-
float: "right",
|
|
18645
|
-
position: "relative",
|
|
18646
|
-
bottom: "25px",
|
|
18647
|
-
marginTop: "-20px",
|
|
18648
|
-
marginRight: "5px"
|
|
18649
|
-
},
|
|
18650
|
-
width: "24",
|
|
18651
|
-
height: "24",
|
|
18652
|
-
viewBox: "0 0 24 24",
|
|
18653
|
-
fill: "none",
|
|
18654
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
18655
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
18656
|
-
d: "M11 7C8.79 7 7 8.79 7 11C7 13.21 8.79 15 11 15C13.21 15 15 13.21 15 11C15 8.79 13.21 7 11 7ZM19.94 10C19.48 5.83 16.17 2.52 12 2.06V0H10V2.06C5.83 2.52 2.52 5.83 2.06 10H0V12H2.06C2.52 16.17 5.83 19.48 10 19.94V22H12V19.94C16.17 19.48 19.48 16.17 19.94 12H22V10H19.94ZM11 18C7.13 18 4 14.87 4 11C4 7.13 7.13 4 11 4C14.87 4 18 7.13 18 11C18 14.87 14.87 18 11 18Z",
|
|
18657
|
-
fill: "#505A5F"
|
|
18658
|
-
})))),
|
|
18659
|
-
style: {},
|
|
18660
|
-
onClick: e => handleGIS()
|
|
18661
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
18662
|
-
style: sectionStyle
|
|
18663
|
-
}, /*#__PURE__*/React.createElement("h2", {
|
|
18664
|
-
style: headingStyle
|
|
18665
18636
|
}, t("BPA_DETAILS_PIN_LABEL")), !isOpen && /*#__PURE__*/React.createElement(TextInput, {
|
|
18666
18637
|
isMandatory: false,
|
|
18667
18638
|
optionKey: "i18nKey",
|
|
@@ -21232,6 +21203,7 @@ const BPAApplicationTimeline = props => {
|
|
|
21232
21203
|
OpenImage: OpenImage
|
|
21233
21204
|
});
|
|
21234
21205
|
};
|
|
21206
|
+
console.log("WFData", data);
|
|
21235
21207
|
if (isLoading) {
|
|
21236
21208
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
21237
21209
|
}
|
|
@@ -21247,7 +21219,7 @@ const BPAApplicationTimeline = props => {
|
|
|
21247
21219
|
isCompleted: true,
|
|
21248
21220
|
label: t((data === null || data === void 0 ? void 0 : (_data$timeline$ = data.timeline[0]) === null || _data$timeline$ === void 0 ? void 0 : _data$timeline$.state) && `WF_${businessService}_${data.timeline[0].state}` || "NA"),
|
|
21249
21221
|
customChild: getTimelineCaptions(data === null || data === void 0 ? void 0 : data.timeline[0])
|
|
21250
|
-
}) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (data === null || data === void 0 ? void 0 : data.timeline) && (data === null || data === void 0 ? void 0 : data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2).map((checkpoint, index, arr) => {
|
|
21222
|
+
}) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (data === null || data === void 0 ? void 0 : data.timeline) && (data === null || data === void 0 ? void 0 : data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2).filter(item => (item === null || item === void 0 ? void 0 : item.performedAction) !== "SAVE_AS_DRAFT").map((checkpoint, index, arr) => {
|
|
21251
21223
|
let timelineStatusPostfix = "";
|
|
21252
21224
|
if (window.location.href.includes("/obps")) {
|
|
21253
21225
|
var _data$timeline3, _data$timeline3$state, _data$timeline4, _data$timeline4$state;
|
|
@@ -21576,6 +21548,9 @@ const SubOccupancyTable = ({
|
|
|
21576
21548
|
}, {
|
|
21577
21549
|
name: "BPA_TABLE_COL_BUILDUPAREA",
|
|
21578
21550
|
id: "BuildupArea"
|
|
21551
|
+
}, {
|
|
21552
|
+
name: "BPA_TABLE_COL_DEDUCTION",
|
|
21553
|
+
id: "Deduction"
|
|
21579
21554
|
}, {
|
|
21580
21555
|
name: "BPA_TABLE_COL_FLOORAREA",
|
|
21581
21556
|
id: "FloorArea"
|
|
@@ -21596,17 +21571,35 @@ const SubOccupancyTable = ({
|
|
|
21596
21571
|
function getFloorData(block) {
|
|
21597
21572
|
var _block$building;
|
|
21598
21573
|
let floors = [];
|
|
21574
|
+
let totalBuiltUpArea = 0;
|
|
21575
|
+
let totalFloorArea = 0;
|
|
21576
|
+
let totalDeduction = 0;
|
|
21599
21577
|
block === null || block === void 0 ? void 0 : (_block$building = block.building) === null || _block$building === void 0 ? void 0 : _block$building.floors.map(ob => {
|
|
21600
|
-
var _ob$occupancies, _ob$occupancies$, _ob$occupancies2, _ob$occupancies2$, _ob$occupancies3, _ob$occupancies3$;
|
|
21578
|
+
var _ob$occupancies, _ob$occupancies$, _ob$occupancies2, _ob$occupancies2$, _ob$occupancies3, _ob$occupancies3$, _ob$occupancies4, _ob$occupancies4$, _ob$occupancies5, _ob$occupancies5$, _ob$occupancies6, _ob$occupancies6$, _ob$occupancies7, _ob$occupancies7$;
|
|
21579
|
+
const builtUp = Number((_ob$occupancies = ob.occupancies) === null || _ob$occupancies === void 0 ? void 0 : (_ob$occupancies$ = _ob$occupancies[0]) === null || _ob$occupancies$ === void 0 ? void 0 : _ob$occupancies$.builtUpArea) || 0;
|
|
21580
|
+
const floor = Number((_ob$occupancies2 = ob.occupancies) === null || _ob$occupancies2 === void 0 ? void 0 : (_ob$occupancies2$ = _ob$occupancies2[0]) === null || _ob$occupancies2$ === void 0 ? void 0 : _ob$occupancies2$.floorArea) || 0;
|
|
21581
|
+
const deduction = Number((_ob$occupancies3 = ob.occupancies) === null || _ob$occupancies3 === void 0 ? void 0 : (_ob$occupancies3$ = _ob$occupancies3[0]) === null || _ob$occupancies3$ === void 0 ? void 0 : _ob$occupancies3$.deduction) || 0;
|
|
21582
|
+
totalBuiltUpArea += builtUp;
|
|
21583
|
+
totalFloorArea += floor;
|
|
21584
|
+
totalDeduction += deduction;
|
|
21601
21585
|
floors.push({
|
|
21602
21586
|
Floor: t(`BPA_FLOOR_NAME_${ob.number}`),
|
|
21603
21587
|
Level: ob.number,
|
|
21604
|
-
Occupancy: t(`${(_ob$
|
|
21605
|
-
BuildupArea: Number((_ob$
|
|
21606
|
-
|
|
21588
|
+
Occupancy: t(`${(_ob$occupancies4 = ob.occupancies) === null || _ob$occupancies4 === void 0 ? void 0 : (_ob$occupancies4$ = _ob$occupancies4[0]) === null || _ob$occupancies4$ === void 0 ? void 0 : _ob$occupancies4$.type}`),
|
|
21589
|
+
BuildupArea: Number((_ob$occupancies5 = ob.occupancies) === null || _ob$occupancies5 === void 0 ? void 0 : (_ob$occupancies5$ = _ob$occupancies5[0]) === null || _ob$occupancies5$ === void 0 ? void 0 : _ob$occupancies5$.builtUpArea).toFixed(2),
|
|
21590
|
+
Deduction: Number((_ob$occupancies6 = ob.occupancies) === null || _ob$occupancies6 === void 0 ? void 0 : (_ob$occupancies6$ = _ob$occupancies6[0]) === null || _ob$occupancies6$ === void 0 ? void 0 : _ob$occupancies6$.deduction).toFixed(2),
|
|
21591
|
+
FloorArea: Number((_ob$occupancies7 = ob.occupancies) === null || _ob$occupancies7 === void 0 ? void 0 : (_ob$occupancies7$ = _ob$occupancies7[0]) === null || _ob$occupancies7$ === void 0 ? void 0 : _ob$occupancies7$.floorArea).toFixed(2) || 0,
|
|
21607
21592
|
key: t(`BPA_FLOOR_NAME_${ob.number}`)
|
|
21608
21593
|
});
|
|
21609
21594
|
});
|
|
21595
|
+
floors.push({
|
|
21596
|
+
Floor: t("BPA_TOTAL"),
|
|
21597
|
+
Level: "",
|
|
21598
|
+
Occupancy: "",
|
|
21599
|
+
BuildupArea: `${Number(totalBuiltUpArea).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`,
|
|
21600
|
+
Deduction: `${Number(totalDeduction).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`,
|
|
21601
|
+
FloorArea: `${Number(totalFloorArea).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`
|
|
21602
|
+
});
|
|
21610
21603
|
return floors;
|
|
21611
21604
|
}
|
|
21612
21605
|
const stringReplaceAll = (str = "", searcher = "", replaceWith = "") => {
|
|
@@ -21695,8 +21688,8 @@ const SubOccupancyTable = ({
|
|
|
21695
21688
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
21696
21689
|
className: "customTable table-fixed-first-column table-border-style",
|
|
21697
21690
|
t: t,
|
|
21698
|
-
disableSort:
|
|
21699
|
-
autoSort:
|
|
21691
|
+
disableSort: true,
|
|
21692
|
+
autoSort: false,
|
|
21700
21693
|
manualPagination: false,
|
|
21701
21694
|
isPaginationRequired: false,
|
|
21702
21695
|
initSortId: "S N ",
|
|
@@ -22224,6 +22217,99 @@ const tdStyle = {
|
|
|
22224
22217
|
textAlign: "left",
|
|
22225
22218
|
verticalAlign: "middle"
|
|
22226
22219
|
};
|
|
22220
|
+
const PayTwoTable = ({
|
|
22221
|
+
sanctionFeeDataWithTotal,
|
|
22222
|
+
disable,
|
|
22223
|
+
isEmployee,
|
|
22224
|
+
sanctionFeeData,
|
|
22225
|
+
handleAdjustedAmountChange,
|
|
22226
|
+
onAdjustedAmountBlur,
|
|
22227
|
+
handleFileUpload,
|
|
22228
|
+
handleFileDelete,
|
|
22229
|
+
routeTo,
|
|
22230
|
+
t
|
|
22231
|
+
}) => {
|
|
22232
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22233
|
+
style: {
|
|
22234
|
+
overflowX: "auto"
|
|
22235
|
+
}
|
|
22236
|
+
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
22237
|
+
style: {
|
|
22238
|
+
fontSize: "20px",
|
|
22239
|
+
color: "#3f4351",
|
|
22240
|
+
marginTop: "24px"
|
|
22241
|
+
}
|
|
22242
|
+
}, t("BPA_SANCTION_FEE")), /*#__PURE__*/React.createElement("table", {
|
|
22243
|
+
className: "sanction-fee-table",
|
|
22244
|
+
style: {
|
|
22245
|
+
borderCollapse: "collapse",
|
|
22246
|
+
width: "100%",
|
|
22247
|
+
fontSize: "16px"
|
|
22248
|
+
}
|
|
22249
|
+
}, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
22250
|
+
style: thStyle
|
|
22251
|
+
}, t("BPA_TAXHEAD_CODE")), /*#__PURE__*/React.createElement("th", {
|
|
22252
|
+
style: thStyle
|
|
22253
|
+
}, t("BPA_AMOUNT")), /*#__PURE__*/React.createElement("th", {
|
|
22254
|
+
style: thStyle
|
|
22255
|
+
}, t("BPA_ADJUSTED_AMOUNT")), disable || isEmployee ? null : /*#__PURE__*/React.createElement("th", {
|
|
22256
|
+
style: thStyle
|
|
22257
|
+
}, t("BPA_FILE_UPLOAD")), /*#__PURE__*/React.createElement("th", {
|
|
22258
|
+
style: thStyle
|
|
22259
|
+
}, t("BPA_VIEW_DOCUMENT")), " ")), /*#__PURE__*/React.createElement("tbody", null, sanctionFeeDataWithTotal.map((row, i) => {
|
|
22260
|
+
var _sanctionFeeData$row$, _sanctionFeeData$row$2, _sanctionFeeData$row$3, _sanctionFeeData$row$4, _sanctionFeeData$row$5;
|
|
22261
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
22262
|
+
key: row.index
|
|
22263
|
+
}, /*#__PURE__*/React.createElement("td", {
|
|
22264
|
+
style: tdStyle
|
|
22265
|
+
}, row.title || t("CS_NA")), /*#__PURE__*/React.createElement("td", {
|
|
22266
|
+
style: tdStyle
|
|
22267
|
+
}, row.amount !== null && row.amount !== undefined ? `₹ ${row.amount.toLocaleString()}` : t("CS_NA")), /*#__PURE__*/React.createElement("td", {
|
|
22268
|
+
style: tdStyle
|
|
22269
|
+
}, (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "BPA_TOTAL" ? row.adjustedAmount !== null && row.adjustedAmount !== undefined ? `₹ ${row.adjustedAmount.toLocaleString()}` : t("CS_NA") : /*#__PURE__*/React.createElement(TextInput, {
|
|
22270
|
+
t: t,
|
|
22271
|
+
type: "number",
|
|
22272
|
+
isMandatory: false,
|
|
22273
|
+
value: ((_sanctionFeeData$row$ = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$ === void 0 ? void 0 : _sanctionFeeData$row$.adjustedAmount) || "",
|
|
22274
|
+
onChange: e => handleAdjustedAmountChange(row.index, e.target.value, row.amount),
|
|
22275
|
+
onBlur: onAdjustedAmountBlur,
|
|
22276
|
+
disable: disable,
|
|
22277
|
+
style: {
|
|
22278
|
+
width: "100%",
|
|
22279
|
+
padding: "4px",
|
|
22280
|
+
border: "1px solid #ccc",
|
|
22281
|
+
borderRadius: "4px"
|
|
22282
|
+
}
|
|
22283
|
+
})), disable || isEmployee ? null : /*#__PURE__*/React.createElement("td", {
|
|
22284
|
+
style: tdStyle
|
|
22285
|
+
}, (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "BPA_TOTAL" ? null : /*#__PURE__*/React.createElement(UploadFile, {
|
|
22286
|
+
key: row.index,
|
|
22287
|
+
id: `file-${row.id}`,
|
|
22288
|
+
onUpload: file => handleFileUpload(row.index, file || null),
|
|
22289
|
+
onDelete: () => handleFileDelete(row.index),
|
|
22290
|
+
message: row.filestoreId ? `1 ${t("FILEUPLOADED")}` : t("ES_NO_FILE_SELECTED_LABEL"),
|
|
22291
|
+
disabled: disable
|
|
22292
|
+
})), /*#__PURE__*/React.createElement("td", {
|
|
22293
|
+
style: tdStyle
|
|
22294
|
+
}, (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "BPA_TOTAL" ? (row === null || row === void 0 ? void 0 : row.grandTotal) !== null && (row === null || row === void 0 ? void 0 : row.grandTotal) !== undefined ? `₹ ${row.grandTotal.toLocaleString()}` : t("CS_NA") : /*#__PURE__*/React.createElement("div", null, (_sanctionFeeData$row$2 = sanctionFeeData[row.index]) !== null && _sanctionFeeData$row$2 !== void 0 && _sanctionFeeData$row$2.onDocumentLoading ? /*#__PURE__*/React.createElement(Loader, null) : (_sanctionFeeData$row$3 = sanctionFeeData[row.index]) !== null && _sanctionFeeData$row$3 !== void 0 && _sanctionFeeData$row$3.documentError ? /*#__PURE__*/React.createElement("div", {
|
|
22295
|
+
style: {
|
|
22296
|
+
fontSize: "12px",
|
|
22297
|
+
color: "red"
|
|
22298
|
+
}
|
|
22299
|
+
}, (_sanctionFeeData$row$4 = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$4 === void 0 ? void 0 : _sanctionFeeData$row$4.documentError) : /*#__PURE__*/React.createElement("div", null, (_sanctionFeeData$row$5 = sanctionFeeData[row.index]) !== null && _sanctionFeeData$row$5 !== void 0 && _sanctionFeeData$row$5.filestoreId ? /*#__PURE__*/React.createElement(LinkButton, {
|
|
22300
|
+
onClick: () => {
|
|
22301
|
+
var _sanctionFeeData$row$6;
|
|
22302
|
+
routeTo((_sanctionFeeData$row$6 = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$6 === void 0 ? void 0 : _sanctionFeeData$row$6.filestoreId, row.index);
|
|
22303
|
+
},
|
|
22304
|
+
style: {
|
|
22305
|
+
textDecoration: "underline",
|
|
22306
|
+
padding: 0
|
|
22307
|
+
},
|
|
22308
|
+
label: t("BPA_VIEW_DOCUMENT")
|
|
22309
|
+
}) : t("CS_NA")))));
|
|
22310
|
+
}))));
|
|
22311
|
+
};
|
|
22312
|
+
|
|
22227
22313
|
const FeeEstimation = ({
|
|
22228
22314
|
currentStepData,
|
|
22229
22315
|
development: _development = "0",
|
|
@@ -22249,7 +22335,6 @@ const FeeEstimation = ({
|
|
|
22249
22335
|
const [BPA, setBPA] = useState({
|
|
22250
22336
|
...((currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.createdResponse) || {})
|
|
22251
22337
|
});
|
|
22252
|
-
const [recalculate, setRecalculate] = useState(false);
|
|
22253
22338
|
const [sanctionFeeData, setSanctionFeeData] = useState(adjustedAmounts || []);
|
|
22254
22339
|
const closeToast = () => {
|
|
22255
22340
|
setShowToast(null);
|
|
@@ -22257,7 +22342,6 @@ const FeeEstimation = ({
|
|
|
22257
22342
|
const isCitizen = window.location.href.includes("citizen");
|
|
22258
22343
|
const isEmployee = window.location.href.includes("employee");
|
|
22259
22344
|
const isNewConstructionPage = window.location.href.includes("bpa/building_plan_scrutiny/new_construction/");
|
|
22260
|
-
const isEditable = isCitizen && isNewConstructionPage || isEmployee;
|
|
22261
22345
|
const {
|
|
22262
22346
|
isLoading: bpaCalculatorLoading,
|
|
22263
22347
|
error,
|
|
@@ -22374,12 +22458,6 @@ const FeeEstimation = ({
|
|
|
22374
22458
|
}));
|
|
22375
22459
|
setAdjustedAmounts(mappedData);
|
|
22376
22460
|
}, [dataSan, t]);
|
|
22377
|
-
useEffect(() => {
|
|
22378
|
-
if (recalculate) {
|
|
22379
|
-
refetchSanctionFee();
|
|
22380
|
-
setRecalculate(false);
|
|
22381
|
-
}
|
|
22382
|
-
}, [recalculate, refetchSanctionFee]);
|
|
22383
22461
|
const handleAdjustedAmountChange = (index, value, ammount) => {
|
|
22384
22462
|
if (Number(value) > ammount) {
|
|
22385
22463
|
setShowToast({
|
|
@@ -22397,14 +22475,13 @@ const FeeEstimation = ({
|
|
|
22397
22475
|
const file = e.target.files[0];
|
|
22398
22476
|
try {
|
|
22399
22477
|
var _response$data, _response$data$files;
|
|
22400
|
-
|
|
22478
|
+
setAdjustedAmounts(prev => prev.map((item, i) => i === index ? {
|
|
22401
22479
|
...item,
|
|
22402
22480
|
onDocumentLoading: true
|
|
22403
22481
|
} : item));
|
|
22404
22482
|
const response = await Digit.UploadServices.Filestorage("property-upload", file, stateCode);
|
|
22405
|
-
console.log("Uploading file for row index:", index, file, response);
|
|
22406
22483
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
22407
|
-
|
|
22484
|
+
setAdjustedAmounts(prev => prev.map((item, i) => {
|
|
22408
22485
|
var _response$data2, _response$data2$files;
|
|
22409
22486
|
return i === index ? {
|
|
22410
22487
|
...item,
|
|
@@ -22414,7 +22491,7 @@ const FeeEstimation = ({
|
|
|
22414
22491
|
} : item;
|
|
22415
22492
|
}));
|
|
22416
22493
|
} else {
|
|
22417
|
-
|
|
22494
|
+
setAdjustedAmounts(prev => prev.map((item, i) => i === index ? {
|
|
22418
22495
|
...item,
|
|
22419
22496
|
filestoreId: null,
|
|
22420
22497
|
documentError: t("PT_FILE_UPLOAD_ERROR"),
|
|
@@ -22426,7 +22503,7 @@ const FeeEstimation = ({
|
|
|
22426
22503
|
});
|
|
22427
22504
|
}
|
|
22428
22505
|
} catch (err) {
|
|
22429
|
-
|
|
22506
|
+
setAdjustedAmounts(prev => prev.map((item, i) => i === index ? {
|
|
22430
22507
|
...item,
|
|
22431
22508
|
filestoreId: null,
|
|
22432
22509
|
documentError: t("PT_FILE_UPLOAD_ERROR"),
|
|
@@ -22439,7 +22516,7 @@ const FeeEstimation = ({
|
|
|
22439
22516
|
}
|
|
22440
22517
|
};
|
|
22441
22518
|
const handleFileDelete = index => {
|
|
22442
|
-
|
|
22519
|
+
setAdjustedAmounts(prev => prev.map((item, i) => i === index ? {
|
|
22443
22520
|
...item,
|
|
22444
22521
|
filestoreId: null
|
|
22445
22522
|
} : item));
|
|
@@ -22458,7 +22535,6 @@ const FeeEstimation = ({
|
|
|
22458
22535
|
}) => value !== null && value !== undefined ? `₹ ${value.toLocaleString()}` : t("CS_NA")
|
|
22459
22536
|
}];
|
|
22460
22537
|
const getUrlForDocumentView = async (filestoreId, index) => {
|
|
22461
|
-
console.log("Fetching URL for filestoreId:", filestoreId, "at index:", index);
|
|
22462
22538
|
if ((filestoreId === null || filestoreId === void 0 ? void 0 : filestoreId.length) === 0) return;
|
|
22463
22539
|
try {
|
|
22464
22540
|
setSanctionFeeData(prev => prev.map((item, i) => i === index ? {
|
|
@@ -22467,7 +22543,6 @@ const FeeEstimation = ({
|
|
|
22467
22543
|
} : item));
|
|
22468
22544
|
const result = await Digit.UploadServices.Filefetch([filestoreId], stateCode);
|
|
22469
22545
|
if (result !== null && result !== void 0 && result.data) {
|
|
22470
|
-
console.log("Fetched document URL:", result.data);
|
|
22471
22546
|
const fileUrl = result.data[filestoreId];
|
|
22472
22547
|
if (fileUrl) {
|
|
22473
22548
|
setSanctionFeeData(prev => prev.map((item, i) => i === index ? {
|
|
@@ -22498,7 +22573,12 @@ const FeeEstimation = ({
|
|
|
22498
22573
|
const jumpTo = await getUrlForDocumentView(filestoreId, index);
|
|
22499
22574
|
if (jumpTo) window.open(jumpTo);
|
|
22500
22575
|
}
|
|
22501
|
-
|
|
22576
|
+
const onAdjustedAmountBlur = () => {
|
|
22577
|
+
if (JSON.stringify(sanctionFeeData) === JSON.stringify(adjustedAmounts)) {
|
|
22578
|
+
return;
|
|
22579
|
+
}
|
|
22580
|
+
refetchSanctionFee();
|
|
22581
|
+
};
|
|
22502
22582
|
if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
22503
22583
|
return /*#__PURE__*/React.createElement("div", null, bpaCalculatorLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
22504
22584
|
style: {
|
|
@@ -22516,95 +22596,18 @@ const FeeEstimation = ({
|
|
|
22516
22596
|
disableSort: true,
|
|
22517
22597
|
manualPagination: false,
|
|
22518
22598
|
isPaginationRequired: false
|
|
22519
|
-
})), /*#__PURE__*/React.createElement(
|
|
22520
|
-
|
|
22521
|
-
|
|
22522
|
-
|
|
22523
|
-
|
|
22524
|
-
|
|
22525
|
-
|
|
22526
|
-
|
|
22527
|
-
|
|
22528
|
-
|
|
22529
|
-
|
|
22530
|
-
|
|
22531
|
-
style: {
|
|
22532
|
-
borderCollapse: "collapse",
|
|
22533
|
-
width: "100%",
|
|
22534
|
-
fontSize: "16px"
|
|
22535
|
-
}
|
|
22536
|
-
}, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
22537
|
-
style: thStyle
|
|
22538
|
-
}, t("BPA_TAXHEAD_CODE")), /*#__PURE__*/React.createElement("th", {
|
|
22539
|
-
style: thStyle
|
|
22540
|
-
}, t("BPA_AMOUNT")), /*#__PURE__*/React.createElement("th", {
|
|
22541
|
-
style: thStyle
|
|
22542
|
-
}, t("BPA_ADJUSTED_AMOUNT")), _disable || isEmployee ? null : /*#__PURE__*/React.createElement("th", {
|
|
22543
|
-
style: thStyle
|
|
22544
|
-
}, t("BPA_FILE_UPLOAD")), /*#__PURE__*/React.createElement("th", {
|
|
22545
|
-
style: thStyle
|
|
22546
|
-
}, t("BPA_VIEW_DOCUMENT")), " ")), /*#__PURE__*/React.createElement("tbody", null, sanctionFeeDataWithTotal.map((row, i) => {
|
|
22547
|
-
var _sanctionFeeData$row$, _sanctionFeeData$row$2, _sanctionFeeData$row$3, _sanctionFeeData$row$4, _sanctionFeeData$row$5;
|
|
22548
|
-
return /*#__PURE__*/React.createElement("tr", {
|
|
22549
|
-
key: row.index
|
|
22550
|
-
}, /*#__PURE__*/React.createElement("td", {
|
|
22551
|
-
style: tdStyle
|
|
22552
|
-
}, row.title || t("CS_NA")), /*#__PURE__*/React.createElement("td", {
|
|
22553
|
-
style: tdStyle
|
|
22554
|
-
}, row.amount !== null && row.amount !== undefined ? `₹ ${row.amount.toLocaleString()}` : t("CS_NA")), /*#__PURE__*/React.createElement("td", {
|
|
22555
|
-
style: tdStyle
|
|
22556
|
-
}, (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "BPA_TOTAL" ? row.adjustedAmount !== null && row.adjustedAmount !== undefined ? `₹ ${row.adjustedAmount.toLocaleString()}` : t("CS_NA") : /*#__PURE__*/React.createElement(TextInput, {
|
|
22557
|
-
t: t,
|
|
22558
|
-
type: "number",
|
|
22559
|
-
isMandatory: false,
|
|
22560
|
-
value: ((_sanctionFeeData$row$ = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$ === void 0 ? void 0 : _sanctionFeeData$row$.adjustedAmount) || "",
|
|
22561
|
-
onChange: e => handleAdjustedAmountChange(row.index, e.target.value, row.amount),
|
|
22562
|
-
disable: _disable,
|
|
22563
|
-
style: {
|
|
22564
|
-
width: "100%",
|
|
22565
|
-
padding: "4px",
|
|
22566
|
-
border: "1px solid #ccc",
|
|
22567
|
-
borderRadius: "4px"
|
|
22568
|
-
}
|
|
22569
|
-
})), _disable || isEmployee ? null : /*#__PURE__*/React.createElement("td", {
|
|
22570
|
-
style: tdStyle
|
|
22571
|
-
}, (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "BPA_TOTAL" ? null : /*#__PURE__*/React.createElement(UploadFile, {
|
|
22572
|
-
key: row.index,
|
|
22573
|
-
id: `file-${row.id}`,
|
|
22574
|
-
onUpload: file => handleFileUpload(row.index, file || null),
|
|
22575
|
-
onDelete: () => handleFileDelete(row.index),
|
|
22576
|
-
message: row.filestoreId ? `1 ${t("FILEUPLOADED")}` : t("ES_NO_FILE_SELECTED_LABEL"),
|
|
22577
|
-
disabled: _disable
|
|
22578
|
-
})), /*#__PURE__*/React.createElement("td", {
|
|
22579
|
-
style: tdStyle
|
|
22580
|
-
}, (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "BPA_TOTAL" ? (row === null || row === void 0 ? void 0 : row.grandTotal) !== null && (row === null || row === void 0 ? void 0 : row.grandTotal) !== undefined ? `₹ ${row.grandTotal.toLocaleString()}` : t("CS_NA") : /*#__PURE__*/React.createElement("div", null, (_sanctionFeeData$row$2 = sanctionFeeData[row.index]) !== null && _sanctionFeeData$row$2 !== void 0 && _sanctionFeeData$row$2.onDocumentLoading ? /*#__PURE__*/React.createElement(Loader, null) : (_sanctionFeeData$row$3 = sanctionFeeData[row.index]) !== null && _sanctionFeeData$row$3 !== void 0 && _sanctionFeeData$row$3.documentError ? /*#__PURE__*/React.createElement("div", {
|
|
22581
|
-
style: {
|
|
22582
|
-
fontSize: "12px",
|
|
22583
|
-
color: "red"
|
|
22584
|
-
}
|
|
22585
|
-
}, (_sanctionFeeData$row$4 = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$4 === void 0 ? void 0 : _sanctionFeeData$row$4.documentError) : /*#__PURE__*/React.createElement("div", null, (_sanctionFeeData$row$5 = sanctionFeeData[row.index]) !== null && _sanctionFeeData$row$5 !== void 0 && _sanctionFeeData$row$5.filestoreId ? /*#__PURE__*/React.createElement(LinkButton, {
|
|
22586
|
-
onClick: () => {
|
|
22587
|
-
var _sanctionFeeData$row$6;
|
|
22588
|
-
routeTo((_sanctionFeeData$row$6 = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$6 === void 0 ? void 0 : _sanctionFeeData$row$6.filestoreId, row.index);
|
|
22589
|
-
},
|
|
22590
|
-
style: {
|
|
22591
|
-
textDecoration: "underline",
|
|
22592
|
-
padding: 0
|
|
22593
|
-
},
|
|
22594
|
-
label: t("BPA_VIEW_DOCUMENT")
|
|
22595
|
-
}) : t("CS_NA")))));
|
|
22596
|
-
})))), _disable ? null : /*#__PURE__*/React.createElement("div", {
|
|
22597
|
-
style: {
|
|
22598
|
-
paddingTop: "16px",
|
|
22599
|
-
textAlign: isMobile ? "center" : "right"
|
|
22600
|
-
}
|
|
22601
|
-
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
22602
|
-
onSubmit: () => {
|
|
22603
|
-
setRecalculate(true);
|
|
22604
|
-
},
|
|
22605
|
-
label: t("Recalculate"),
|
|
22606
|
-
disabled: !isEditable
|
|
22607
|
-
})), showToast && /*#__PURE__*/React.createElement(Toast$1, {
|
|
22599
|
+
})), /*#__PURE__*/React.createElement(PayTwoTable, {
|
|
22600
|
+
sanctionFeeDataWithTotal,
|
|
22601
|
+
disable: _disable,
|
|
22602
|
+
isEmployee,
|
|
22603
|
+
sanctionFeeData,
|
|
22604
|
+
handleAdjustedAmountChange,
|
|
22605
|
+
onAdjustedAmountBlur,
|
|
22606
|
+
handleFileUpload,
|
|
22607
|
+
handleFileDelete,
|
|
22608
|
+
routeTo,
|
|
22609
|
+
t
|
|
22610
|
+
}), showToast && /*#__PURE__*/React.createElement(Toast$1, {
|
|
22608
22611
|
error: true,
|
|
22609
22612
|
label: t(`${showToast === null || showToast === void 0 ? void 0 : showToast.message}`),
|
|
22610
22613
|
onClose: closeToast,
|
|
@@ -22700,7 +22703,7 @@ const CitizenAndArchitectPhoto = ({
|
|
|
22700
22703
|
};
|
|
22701
22704
|
|
|
22702
22705
|
const BpaApplicationDetail = () => {
|
|
22703
|
-
var _user$info, _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _pdfDetails$pdfFiles, _data$applicationData19, _data$applicationData34, _data$applicationData35, _user$info4, _user$info5, _data$applicationData44, _data$applicationData47, _data$applicationData59, _data$applicationData62, _data$applicationData63, _workflowDetails8, _workflowDetails8$dat, _workflowDetails8$dat2, _data$applicationData67, _workflowDetails1, _workflowDetails1$dat, _workflowDetails1$dat2, _workflowDetails1$dat3, _data$collectionBillD, _data$applicationData80, _data$collectionBillD2, _data$
|
|
22706
|
+
var _user$info, _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _pdfDetails$pdfFiles, _data$applicationData19, _data$applicationData34, _data$applicationData35, _user$info4, _user$info5, _data$applicationData44, _data$applicationData47, _data$applicationData59, _data$applicationData62, _data$applicationData63, _workflowDetails8, _workflowDetails8$dat, _workflowDetails8$dat2, _data$applicationData67, _workflowDetails1, _workflowDetails1$dat, _workflowDetails1$dat2, _workflowDetails1$dat3, _data$collectionBillD, _data$applicationData80, _data$collectionBillD2, _data$applicationData84, _data$collectionBillD3, _workflowDetails12, _workflowDetails12$da, _workflowDetails12$da2, _data$applicationDeta, _data$applicationDeta4, _data$applicationDeta5, _workflowDetails30, _workflowDetails30$da, _workflowDetails30$da2, _workflowDetails31, _workflowDetails31$da;
|
|
22704
22707
|
const {
|
|
22705
22708
|
id
|
|
22706
22709
|
} = useParams();
|
|
@@ -23201,19 +23204,6 @@ const BpaApplicationDetail = () => {
|
|
|
23201
23204
|
});
|
|
23202
23205
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
23203
23206
|
requestData["applicationType"] = data === null || data === void 0 ? void 0 : (_data$applicationData48 = data.applicationData) === null || _data$applicationData48 === void 0 ? void 0 : (_data$applicationData49 = _data$applicationData48.additionalDetails) === null || _data$applicationData49 === void 0 ? void 0 : _data$applicationData49.applicationType;
|
|
23204
|
-
const edcrResponse = await Digit.OBPSService.edcr_report_download({
|
|
23205
|
-
BPA: {
|
|
23206
|
-
...requestData
|
|
23207
|
-
}
|
|
23208
|
-
});
|
|
23209
|
-
const responseStatus = Number.parseInt(edcrResponse.status, 10);
|
|
23210
|
-
if (responseStatus === 201 || responseStatus === 200) {
|
|
23211
|
-
mode == "print" ? printPdf(new Blob([edcrResponse.data], {
|
|
23212
|
-
type: "application/pdf"
|
|
23213
|
-
})) : downloadPdf(new Blob([edcrResponse.data], {
|
|
23214
|
-
type: "application/pdf"
|
|
23215
|
-
}), `edcrReport.pdf`);
|
|
23216
|
-
}
|
|
23217
23207
|
}
|
|
23218
23208
|
async function getRevocationPDFSearch({
|
|
23219
23209
|
tenantId,
|
|
@@ -23355,7 +23345,7 @@ const BpaApplicationDetail = () => {
|
|
|
23355
23345
|
if (action === "SAVE_AS_DRAFT") {
|
|
23356
23346
|
getBPAFormData(data === null || data === void 0 ? void 0 : data.applicationData, mdmsData, history);
|
|
23357
23347
|
}
|
|
23358
|
-
if (action === "SEND_TO_CITIZEN") {
|
|
23348
|
+
if (action === "SEND_TO_CITIZEN" || action === "RESUBMIT" || action === "APPROVE_AND_PAY") {
|
|
23359
23349
|
saveAsDraft(data === null || data === void 0 ? void 0 : data.applicationData, action);
|
|
23360
23350
|
}
|
|
23361
23351
|
setSelectedAction(action);
|
|
@@ -23383,7 +23373,7 @@ const BpaApplicationDetail = () => {
|
|
|
23383
23373
|
riskType: data === null || data === void 0 ? void 0 : (_data$additionalDetai2 = data.additionalDetails) === null || _data$additionalDetai2 === void 0 ? void 0 : _data$additionalDetai2.riskType,
|
|
23384
23374
|
workflow: {
|
|
23385
23375
|
action: workflowAction,
|
|
23386
|
-
assignes: [accountId]
|
|
23376
|
+
assignes: workflowAction === "RESUBMIT" ? [] : [accountId]
|
|
23387
23377
|
}
|
|
23388
23378
|
}
|
|
23389
23379
|
}, tenantId);
|
|
@@ -23697,51 +23687,45 @@ const BpaApplicationDetail = () => {
|
|
|
23697
23687
|
});
|
|
23698
23688
|
}
|
|
23699
23689
|
if (data && (data === null || data === void 0 ? void 0 : (_data$applicationData80 = data.applicationData) === null || _data$applicationData80 === void 0 ? void 0 : _data$applicationData80.businessService) === "BPA_LOW" && (data === null || data === void 0 ? void 0 : (_data$collectionBillD2 = data.collectionBillDetails) === null || _data$collectionBillD2 === void 0 ? void 0 : _data$collectionBillD2.length) > 0) {
|
|
23700
|
-
var _data$applicationData81, _data$
|
|
23690
|
+
var _data$applicationData81, _data$applicationData82;
|
|
23701
23691
|
!(data !== null && data !== void 0 && (_data$applicationData81 = data.applicationData) !== null && _data$applicationData81 !== void 0 && _data$applicationData81.status.includes("REVOCATION")) && dowloadOptions.push({
|
|
23702
23692
|
order: 3,
|
|
23703
23693
|
label: t("BPA_PERMIT_ORDER"),
|
|
23704
|
-
onClick: () => {
|
|
23705
|
-
|
|
23706
|
-
|
|
23707
|
-
tenantId: data === null || data === void 0 ? void 0 : (_data$applicationData82 = data.applicationData) === null || _data$applicationData82 === void 0 ? void 0 : _data$applicationData82.tenantId
|
|
23708
|
-
}, "buildingpermit-low");
|
|
23709
|
-
}
|
|
23694
|
+
onClick: () => getPermitOccupancyOrderSearch({
|
|
23695
|
+
tenantId: stateCode
|
|
23696
|
+
}, "buildingpermit")
|
|
23710
23697
|
});
|
|
23711
|
-
(data === null || data === void 0 ? void 0 : (_data$
|
|
23698
|
+
(data === null || data === void 0 ? void 0 : (_data$applicationData82 = data.applicationData) === null || _data$applicationData82 === void 0 ? void 0 : _data$applicationData82.status.includes("REVOCATION")) && dowloadOptions.push({
|
|
23712
23699
|
order: 3,
|
|
23713
23700
|
label: t("BPA_REVOCATION_PDF_LABEL"),
|
|
23714
23701
|
onClick: () => {
|
|
23715
|
-
var _data$
|
|
23702
|
+
var _data$applicationData83;
|
|
23716
23703
|
return getRevocationPDFSearch({
|
|
23717
|
-
tenantId: data === null || data === void 0 ? void 0 : (_data$
|
|
23704
|
+
tenantId: data === null || data === void 0 ? void 0 : (_data$applicationData83 = data.applicationData) === null || _data$applicationData83 === void 0 ? void 0 : _data$applicationData83.tenantId
|
|
23718
23705
|
});
|
|
23719
23706
|
}
|
|
23720
23707
|
});
|
|
23721
|
-
} else if (data && (data === null || data === void 0 ? void 0 : (_data$
|
|
23722
|
-
var _data$
|
|
23723
|
-
if ((data === null || data === void 0 ? void 0 : (_data$
|
|
23708
|
+
} else if (data && (data === null || data === void 0 ? void 0 : (_data$applicationData84 = data.applicationData) === null || _data$applicationData84 === void 0 ? void 0 : _data$applicationData84.businessService) === "BPA" && (data === null || data === void 0 ? void 0 : (_data$collectionBillD3 = data.collectionBillDetails) === null || _data$collectionBillD3 === void 0 ? void 0 : _data$collectionBillD3.length) > 0) {
|
|
23709
|
+
var _data$applicationData85;
|
|
23710
|
+
if ((data === null || data === void 0 ? void 0 : (_data$applicationData85 = data.applicationData) === null || _data$applicationData85 === void 0 ? void 0 : _data$applicationData85.status) === "APPROVED") {
|
|
23724
23711
|
dowloadOptions.push({
|
|
23725
23712
|
order: 3,
|
|
23726
23713
|
label: t("BPA_PERMIT_ORDER"),
|
|
23727
|
-
onClick: () => {
|
|
23728
|
-
|
|
23729
|
-
|
|
23730
|
-
tenantId: data === null || data === void 0 ? void 0 : (_data$applicationData87 = data.applicationData) === null || _data$applicationData87 === void 0 ? void 0 : _data$applicationData87.tenantId
|
|
23731
|
-
}, "buildingpermit");
|
|
23732
|
-
}
|
|
23714
|
+
onClick: () => getPermitOccupancyOrderSearch({
|
|
23715
|
+
tenantId: stateCode
|
|
23716
|
+
}, "buildingpermit")
|
|
23733
23717
|
});
|
|
23734
23718
|
}
|
|
23735
23719
|
} else {
|
|
23736
|
-
var _data$
|
|
23737
|
-
if ((data === null || data === void 0 ? void 0 : (_data$
|
|
23720
|
+
var _data$applicationData86;
|
|
23721
|
+
if ((data === null || data === void 0 ? void 0 : (_data$applicationData86 = data.applicationData) === null || _data$applicationData86 === void 0 ? void 0 : _data$applicationData86.status) === "APPROVED") {
|
|
23738
23722
|
dowloadOptions.push({
|
|
23739
23723
|
order: 3,
|
|
23740
23724
|
label: t("BPA_OC_CERTIFICATE"),
|
|
23741
23725
|
onClick: () => {
|
|
23742
|
-
var _data$
|
|
23726
|
+
var _data$applicationData87;
|
|
23743
23727
|
return getPermitOccupancyOrderSearch({
|
|
23744
|
-
tenantId: data === null || data === void 0 ? void 0 : (_data$
|
|
23728
|
+
tenantId: data === null || data === void 0 ? void 0 : (_data$applicationData87 = data.applicationData) === null || _data$applicationData87 === void 0 ? void 0 : _data$applicationData87.tenantId
|
|
23745
23729
|
}, "buildingpermit");
|
|
23746
23730
|
}
|
|
23747
23731
|
});
|
|
@@ -23836,7 +23820,7 @@ const BpaApplicationDetail = () => {
|
|
|
23836
23820
|
var _Object$keys3;
|
|
23837
23821
|
return ((_Object$keys3 = Object.keys(ob)) === null || _Object$keys3 === void 0 ? void 0 : _Object$keys3.length) > 0;
|
|
23838
23822
|
}).map((detail, index, arr) => {
|
|
23839
|
-
var _detail$additionalDet, _detail$values, _detail$values2, _detail$additionalDet2, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _data$
|
|
23823
|
+
var _detail$additionalDet, _detail$values, _detail$values2, _detail$additionalDet2, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _data$applicationData88, _data$applicationData89, _data$applicationData90, _data$applicationData91, _data$applicationData92, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _workflowDetails16, _workflowDetails16$da, _workflowDetails16$da2, _workflowDetails16$da3, _workflowDetails16$da4, _workflowDetails17, _workflowDetails17$da, _workflowDetails17$da2, _workflowDetails18, _workflowDetails18$da, _workflowDetails18$da2, _workflowDetails19, _workflowDetails20, _workflowDetails20$da, _workflowDetails20$da2, _workflowDetails21, _workflowDetails22, _workflowDetails22$da, _workflowDetails22$da2, _workflowDetails23, _workflowDetails23$da, _workflowDetails24, _workflowDetails24$da, _workflowDetails25, _workflowDetails26, _workflowDetails26$da, _workflowDetails26$da2, _workflowDetails27, _workflowDetails27$da, _workflowDetails27$da2, _workflowDetails27$da3, _workflowDetails28, _workflowDetails28$da, _workflowDetails28$da2, _workflowDetails28$da3, _workflowDetails29, _workflowDetails29$da, _workflowDetails29$da2, _workflowDetails29$da3;
|
|
23840
23824
|
console.log("detailforme", detail);
|
|
23841
23825
|
return /*#__PURE__*/React.createElement("div", {
|
|
23842
23826
|
key: index
|
|
@@ -23994,9 +23978,9 @@ const BpaApplicationDetail = () => {
|
|
|
23994
23978
|
autoSort: true,
|
|
23995
23979
|
manualPagination: false,
|
|
23996
23980
|
isPaginationRequired: false
|
|
23997
|
-
}))), detail !== null && detail !== void 0 && detail.isFieldInspection && (data === null || data === void 0 ? void 0 : (_data$
|
|
23981
|
+
}))), detail !== null && detail !== void 0 && detail.isFieldInspection && (data === null || data === void 0 ? void 0 : (_data$applicationData88 = data.applicationData) === null || _data$applicationData88 === void 0 ? void 0 : (_data$applicationData89 = _data$applicationData88.additionalDetails) === null || _data$applicationData89 === void 0 ? void 0 : (_data$applicationData90 = _data$applicationData89.fieldinspection_pending) === null || _data$applicationData90 === void 0 ? void 0 : _data$applicationData90.length) > 0 ? /*#__PURE__*/React.createElement(InspectionReport, {
|
|
23998
23982
|
isCitizen: true,
|
|
23999
|
-
fiReport: data === null || data === void 0 ? void 0 : (_data$
|
|
23983
|
+
fiReport: data === null || data === void 0 ? void 0 : (_data$applicationData91 = data.applicationData) === null || _data$applicationData91 === void 0 ? void 0 : (_data$applicationData92 = _data$applicationData91.additionalDetails) === null || _data$applicationData92 === void 0 ? void 0 : _data$applicationData92.fieldinspection_pending
|
|
24000
23984
|
}) : null, (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : (_detail$additionalDet16 = _detail$additionalDet15.noc) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.noc.map((nocob, ind) => {
|
|
24001
23985
|
var _detail$additionalDet18, _detail$additionalDet19, _detail$values3, _detail$values3$, _detail$values4, _detail$values4$, _detail$values5, _detail$values5$, _detail$values6, _detail$values6$, _detail$values7, _detail$values7$, _detail$values8, _detail$values8$, _detail$values9, _detail$values9$, _detail$values0, _detail$values0$, _detail$values1, _detail$values1$, _detail$values10, _detail$values10$, _detail$values11, _detail$values11$, _detail$values12, _detail$values12$, _detail$values13, _detail$values13$, _detail$values14, _detail$values14$, _detail$values15, _detail$values15$, _detail$values16, _detail$values16$, _detail$values17, _detail$values17$, _detail$values18, _detail$values18$, _detail$values19, _detail$values19$, _detail$values20, _detail$values20$;
|
|
24002
23986
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -24117,6 +24101,9 @@ const BpaApplicationDetail = () => {
|
|
|
24117
24101
|
width: "100%"
|
|
24118
24102
|
}
|
|
24119
24103
|
}, displayMenu && (_workflowDetails23 = workflowDetails) !== null && _workflowDetails23 !== void 0 && (_workflowDetails23$da = _workflowDetails23.data) !== null && _workflowDetails23$da !== void 0 && _workflowDetails23$da.nextActions ? /*#__PURE__*/React.createElement(Menu, {
|
|
24104
|
+
style: {
|
|
24105
|
+
minWidth: "310px"
|
|
24106
|
+
},
|
|
24120
24107
|
localeKeyPrefix: "WF_BPA_ACTION",
|
|
24121
24108
|
options: (_workflowDetails24 = workflowDetails) === null || _workflowDetails24 === void 0 ? void 0 : (_workflowDetails24$da = _workflowDetails24.data) === null || _workflowDetails24$da === void 0 ? void 0 : _workflowDetails24$da.nextActions.map(action => action.action),
|
|
24122
24109
|
t: t,
|
|
@@ -28238,6 +28225,240 @@ const configBPAREGApproverApplication = ({
|
|
|
28238
28225
|
};
|
|
28239
28226
|
};
|
|
28240
28227
|
|
|
28228
|
+
const TextField = props => {
|
|
28229
|
+
const [value, setValue] = useState(props.selectedVal ? props.selectedVal : "");
|
|
28230
|
+
useEffect(() => {
|
|
28231
|
+
if (!props.keepNull) {
|
|
28232
|
+
if (props.selectedVal) setValue(props.selectedVal);else {
|
|
28233
|
+
setValue("");
|
|
28234
|
+
props.setFilter("");
|
|
28235
|
+
}
|
|
28236
|
+
} else setValue("");
|
|
28237
|
+
}, [props.selectedVal, props.forceSet]);
|
|
28238
|
+
function inputChange(e) {
|
|
28239
|
+
if (props.freeze) return;
|
|
28240
|
+
setValue(e.target.value);
|
|
28241
|
+
props.setFilter(e.target.value);
|
|
28242
|
+
}
|
|
28243
|
+
function broadcastToOpen() {
|
|
28244
|
+
if (!props.disable) {
|
|
28245
|
+
props.dropdownDisplay(true);
|
|
28246
|
+
}
|
|
28247
|
+
}
|
|
28248
|
+
function broadcastToClose() {
|
|
28249
|
+
props.dropdownDisplay(false);
|
|
28250
|
+
}
|
|
28251
|
+
const keyChange = e => {
|
|
28252
|
+
if (e.key == "ArrowDown") {
|
|
28253
|
+
props.setOptionIndex(state => state + 1 == props.addProps.length ? 0 : state + 1);
|
|
28254
|
+
if (props.addProps.currentIndex + 1 == props.addProps.length) {
|
|
28255
|
+
var _e$target, _e$target$parentEleme, _e$target$parentEleme2, _e$target$parentEleme3, _e$target$parentEleme4, _e$target$parentEleme5;
|
|
28256
|
+
e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : (_e$target$parentEleme = _e$target.parentElement) === null || _e$target$parentEleme === void 0 ? void 0 : (_e$target$parentEleme2 = _e$target$parentEleme.parentElement) === null || _e$target$parentEleme2 === void 0 ? void 0 : (_e$target$parentEleme3 = _e$target$parentEleme2.children) === null || _e$target$parentEleme3 === void 0 ? void 0 : (_e$target$parentEleme4 = _e$target$parentEleme3.namedItem("jk-dropdown-unique")) === null || _e$target$parentEleme4 === void 0 ? void 0 : (_e$target$parentEleme5 = _e$target$parentEleme4.scrollTo) === null || _e$target$parentEleme5 === void 0 ? void 0 : _e$target$parentEleme5.call(_e$target$parentEleme4, 0, 0);
|
|
28257
|
+
} else {
|
|
28258
|
+
var _props$addProps, _e$target2, _e$target2$parentElem, _e$target2$parentElem2, _e$target2$parentElem3, _e$target2$parentElem4, _e$target2$parentElem5;
|
|
28259
|
+
(props === null || props === void 0 ? void 0 : (_props$addProps = props.addProps) === null || _props$addProps === void 0 ? void 0 : _props$addProps.currentIndex) > 2 && (e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : (_e$target2$parentElem = _e$target2.parentElement) === null || _e$target2$parentElem === void 0 ? void 0 : (_e$target2$parentElem2 = _e$target2$parentElem.parentElement) === null || _e$target2$parentElem2 === void 0 ? void 0 : (_e$target2$parentElem3 = _e$target2$parentElem2.children) === null || _e$target2$parentElem3 === void 0 ? void 0 : (_e$target2$parentElem4 = _e$target2$parentElem3.namedItem("jk-dropdown-unique")) === null || _e$target2$parentElem4 === void 0 ? void 0 : (_e$target2$parentElem5 = _e$target2$parentElem4.scrollBy) === null || _e$target2$parentElem5 === void 0 ? void 0 : _e$target2$parentElem5.call(_e$target2$parentElem4, 0, 45));
|
|
28260
|
+
}
|
|
28261
|
+
e.preventDefault();
|
|
28262
|
+
} else if (e.key == "ArrowUp") {
|
|
28263
|
+
props.setOptionIndex(state => state !== 0 ? state - 1 : props.addProps.length - 1);
|
|
28264
|
+
if (props.addProps.currentIndex == 0) {
|
|
28265
|
+
var _e$target3, _e$target3$parentElem, _e$target3$parentElem2, _e$target3$parentElem3, _e$target3$parentElem4, _e$target3$parentElem5;
|
|
28266
|
+
e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : (_e$target3$parentElem = _e$target3.parentElement) === null || _e$target3$parentElem === void 0 ? void 0 : (_e$target3$parentElem2 = _e$target3$parentElem.parentElement) === null || _e$target3$parentElem2 === void 0 ? void 0 : (_e$target3$parentElem3 = _e$target3$parentElem2.children) === null || _e$target3$parentElem3 === void 0 ? void 0 : (_e$target3$parentElem4 = _e$target3$parentElem3.namedItem("jk-dropdown-unique")) === null || _e$target3$parentElem4 === void 0 ? void 0 : (_e$target3$parentElem5 = _e$target3$parentElem4.scrollTo) === null || _e$target3$parentElem5 === void 0 ? void 0 : _e$target3$parentElem5.call(_e$target3$parentElem4, 100000, 100000);
|
|
28267
|
+
} else {
|
|
28268
|
+
var _props$addProps2, _e$target4, _e$target4$parentElem, _e$target4$parentElem2, _e$target4$parentElem3, _e$target4$parentElem4, _e$target4$parentElem5;
|
|
28269
|
+
(props === null || props === void 0 ? void 0 : (_props$addProps2 = props.addProps) === null || _props$addProps2 === void 0 ? void 0 : _props$addProps2.currentIndex) > 2 && (e === null || e === void 0 ? void 0 : (_e$target4 = e.target) === null || _e$target4 === void 0 ? void 0 : (_e$target4$parentElem = _e$target4.parentElement) === null || _e$target4$parentElem === void 0 ? void 0 : (_e$target4$parentElem2 = _e$target4$parentElem.parentElement) === null || _e$target4$parentElem2 === void 0 ? void 0 : (_e$target4$parentElem3 = _e$target4$parentElem2.children) === null || _e$target4$parentElem3 === void 0 ? void 0 : (_e$target4$parentElem4 = _e$target4$parentElem3.namedItem("jk-dropdown-unique")) === null || _e$target4$parentElem4 === void 0 ? void 0 : (_e$target4$parentElem5 = _e$target4$parentElem4.scrollBy) === null || _e$target4$parentElem5 === void 0 ? void 0 : _e$target4$parentElem5.call(_e$target4$parentElem4, 0, -45));
|
|
28270
|
+
}
|
|
28271
|
+
e.preventDefault();
|
|
28272
|
+
} else if (e.key == "Enter") {
|
|
28273
|
+
props.addProps.selectOption(props.addProps.currentIndex);
|
|
28274
|
+
}
|
|
28275
|
+
};
|
|
28276
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
28277
|
+
ref: props.inputRef,
|
|
28278
|
+
className: `employee-select-wrap--elipses ${props.disable && "disabled"}`,
|
|
28279
|
+
type: "text",
|
|
28280
|
+
value: value,
|
|
28281
|
+
onChange: inputChange,
|
|
28282
|
+
onClick: props.onClick,
|
|
28283
|
+
onFocus: broadcastToOpen,
|
|
28284
|
+
onBlur: e => {
|
|
28285
|
+
var _props$onBlur;
|
|
28286
|
+
broadcastToClose();
|
|
28287
|
+
props === null || props === void 0 ? void 0 : (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props, e);
|
|
28288
|
+
if (props.selectedVal !== props.filterVal) {
|
|
28289
|
+
setTimeout(() => {
|
|
28290
|
+
props.setforceSet(val => val + 1);
|
|
28291
|
+
}, 1000);
|
|
28292
|
+
}
|
|
28293
|
+
},
|
|
28294
|
+
onKeyDown: keyChange,
|
|
28295
|
+
readOnly: props.disable,
|
|
28296
|
+
autoFocus: props.autoFocus,
|
|
28297
|
+
placeholder: props.placeholder,
|
|
28298
|
+
autoComplete: "off",
|
|
28299
|
+
style: {
|
|
28300
|
+
...props.style,
|
|
28301
|
+
zIndex: "auto"
|
|
28302
|
+
}
|
|
28303
|
+
});
|
|
28304
|
+
};
|
|
28305
|
+
const translateDummy = text => {
|
|
28306
|
+
return text;
|
|
28307
|
+
};
|
|
28308
|
+
const DropdownWithDesignation = props => {
|
|
28309
|
+
var _props$option, _props$option2, _props$option2$;
|
|
28310
|
+
const user_type = Digit.SessionStorage.get("userType");
|
|
28311
|
+
const [dropdownStatus, setDropdownStatus] = useState(false);
|
|
28312
|
+
const [selectedOption, setSelectedOption] = useState(props.selected ? props.selected : null);
|
|
28313
|
+
const [filterVal, setFilterVal] = useState("");
|
|
28314
|
+
const [forceSet, setforceSet] = useState(0);
|
|
28315
|
+
const [optionIndex, setOptionIndex] = useState(-1);
|
|
28316
|
+
const optionRef = useRef(null);
|
|
28317
|
+
const hasCustomSelector = props.customSelector ? true : false;
|
|
28318
|
+
const t = props.t || translateDummy;
|
|
28319
|
+
useEffect(() => {
|
|
28320
|
+
setSelectedOption(props.selected);
|
|
28321
|
+
}, [props.selected]);
|
|
28322
|
+
function dropdownSwitch() {
|
|
28323
|
+
if (!props.disable) {
|
|
28324
|
+
var _props$onBlur2;
|
|
28325
|
+
var current = dropdownStatus;
|
|
28326
|
+
if (!current) {
|
|
28327
|
+
document.addEventListener("mousedown", handleClick, false);
|
|
28328
|
+
}
|
|
28329
|
+
setDropdownStatus(!current);
|
|
28330
|
+
props === null || props === void 0 ? void 0 : (_props$onBlur2 = props.onBlur) === null || _props$onBlur2 === void 0 ? void 0 : _props$onBlur2.call(props);
|
|
28331
|
+
}
|
|
28332
|
+
}
|
|
28333
|
+
function handleClick(e) {
|
|
28334
|
+
if (!optionRef.current || !optionRef.current.contains(e.target)) {
|
|
28335
|
+
document.removeEventListener("mousedown", handleClick, false);
|
|
28336
|
+
setDropdownStatus(false);
|
|
28337
|
+
}
|
|
28338
|
+
}
|
|
28339
|
+
console.log("option", props.option);
|
|
28340
|
+
function dropdownOn(val) {
|
|
28341
|
+
const waitForOptions = () => setTimeout(() => setDropdownStatus(val), 500);
|
|
28342
|
+
const timerId = waitForOptions();
|
|
28343
|
+
return () => {
|
|
28344
|
+
clearTimeout(timerId);
|
|
28345
|
+
};
|
|
28346
|
+
}
|
|
28347
|
+
function onSelect(val) {
|
|
28348
|
+
if (val !== selectedOption || props.allowMultiselect) {
|
|
28349
|
+
props.select(val);
|
|
28350
|
+
setSelectedOption(val);
|
|
28351
|
+
setDropdownStatus(false);
|
|
28352
|
+
} else {
|
|
28353
|
+
setSelectedOption(val);
|
|
28354
|
+
setforceSet(forceSet + 1);
|
|
28355
|
+
}
|
|
28356
|
+
}
|
|
28357
|
+
function setFilter(val) {
|
|
28358
|
+
setFilterVal(val);
|
|
28359
|
+
}
|
|
28360
|
+
let filteredOption = props.option && ((_props$option = props.option) === null || _props$option === void 0 ? void 0 : _props$option.filter(option => {
|
|
28361
|
+
var _t, _t$toUpperCase;
|
|
28362
|
+
return ((_t = t(option[props.optionKey])) === null || _t === void 0 ? void 0 : (_t$toUpperCase = _t.toUpperCase()) === null || _t$toUpperCase === void 0 ? void 0 : _t$toUpperCase.indexOf(filterVal === null || filterVal === void 0 ? void 0 : filterVal.toUpperCase())) > -1;
|
|
28363
|
+
})) || [];
|
|
28364
|
+
function selectOption(ind) {
|
|
28365
|
+
onSelect(filteredOption[ind]);
|
|
28366
|
+
}
|
|
28367
|
+
if ((props === null || props === void 0 ? void 0 : (_props$option2 = props.option) === null || _props$option2 === void 0 ? void 0 : (_props$option2$ = _props$option2[0]) === null || _props$option2$ === void 0 ? void 0 : _props$option2$.label) == "PropertyType") {
|
|
28368
|
+
filteredOption = props.option;
|
|
28369
|
+
}
|
|
28370
|
+
if (props.isBPAREG && selectedOption) {
|
|
28371
|
+
var _props$option3, _props$option3$filter;
|
|
28372
|
+
let isSelectedSameAsOptions = ((_props$option3 = props.option) === null || _props$option3 === void 0 ? void 0 : (_props$option3$filter = _props$option3.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.code) === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.code))) === null || _props$option3$filter === void 0 ? void 0 : _props$option3$filter.length) > 0;
|
|
28373
|
+
if (!isSelectedSameAsOptions) setSelectedOption(null);
|
|
28374
|
+
}
|
|
28375
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28376
|
+
className: `${user_type === "employee" ? "employee-select-wrap" : "select-wrap"} ${props !== null && props !== void 0 && props.className ? props === null || props === void 0 ? void 0 : props.className : ""}`,
|
|
28377
|
+
style: {
|
|
28378
|
+
...props.style
|
|
28379
|
+
}
|
|
28380
|
+
}, hasCustomSelector && /*#__PURE__*/React.createElement("div", {
|
|
28381
|
+
className: props.showArrow ? "cp flex-right column-gap-5" : "cp",
|
|
28382
|
+
onClick: dropdownSwitch
|
|
28383
|
+
}, props.customSelector, props.showArrow && /*#__PURE__*/React.createElement(ArrowDown, {
|
|
28384
|
+
onClick: dropdownSwitch,
|
|
28385
|
+
className: props.disable && "disabled"
|
|
28386
|
+
})), !hasCustomSelector && /*#__PURE__*/React.createElement("div", {
|
|
28387
|
+
className: `${dropdownStatus ? "select-active" : "select"} ${props.disable && "disabled"}`,
|
|
28388
|
+
style: props.errorStyle ? {
|
|
28389
|
+
border: "1px solid red"
|
|
28390
|
+
} : {}
|
|
28391
|
+
}, /*#__PURE__*/React.createElement(TextField, {
|
|
28392
|
+
autoComplete: props.autoComplete,
|
|
28393
|
+
setFilter: setFilter,
|
|
28394
|
+
forceSet: forceSet,
|
|
28395
|
+
setforceSet: setforceSet,
|
|
28396
|
+
setOptionIndex: setOptionIndex,
|
|
28397
|
+
keepNull: props.keepNull,
|
|
28398
|
+
selectedVal: selectedOption ? props.t ? props.isMultiSelectEmp ? `${selectedOption} ${t("BPA_SELECTED_TEXT")}` : props.t(props.optionKey ? selectedOption[props.optionKey] : selectedOption) : props.optionKey ? selectedOption[props.optionKey] : selectedOption : null,
|
|
28399
|
+
filterVal: filterVal,
|
|
28400
|
+
addProps: {
|
|
28401
|
+
length: filteredOption.length,
|
|
28402
|
+
currentIndex: optionIndex,
|
|
28403
|
+
selectOption: selectOption
|
|
28404
|
+
},
|
|
28405
|
+
dropdownDisplay: dropdownOn,
|
|
28406
|
+
handleClick: handleClick,
|
|
28407
|
+
disable: props.disable,
|
|
28408
|
+
freeze: props.freeze ? true : false,
|
|
28409
|
+
autoFocus: props.autoFocus,
|
|
28410
|
+
placeholder: props.placeholder,
|
|
28411
|
+
onBlur: props === null || props === void 0 ? void 0 : props.onBlur,
|
|
28412
|
+
inputRef: props.ref
|
|
28413
|
+
}), /*#__PURE__*/React.createElement(ArrowDown, {
|
|
28414
|
+
onClick: dropdownSwitch,
|
|
28415
|
+
className: "cp",
|
|
28416
|
+
disable: props.disable
|
|
28417
|
+
})), dropdownStatus ? props.optionKey ? /*#__PURE__*/React.createElement("div", {
|
|
28418
|
+
id: "jk-dropdown-unique",
|
|
28419
|
+
className: `${hasCustomSelector ? "margin-top-10 display: table" : ""} options-card`,
|
|
28420
|
+
style: {
|
|
28421
|
+
...props.optionCardStyles
|
|
28422
|
+
},
|
|
28423
|
+
ref: optionRef
|
|
28424
|
+
}, filteredOption && filteredOption.map((option, index) => {
|
|
28425
|
+
console.log("option", option);
|
|
28426
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28427
|
+
className: `cp profile-dropdown--item display: flex `,
|
|
28428
|
+
style: index === optionIndex ? {
|
|
28429
|
+
opacity: 1,
|
|
28430
|
+
backgroundColor: "rgba(238, 238, 238, var(--bg-opacity))"
|
|
28431
|
+
} : {},
|
|
28432
|
+
key: index,
|
|
28433
|
+
onClick: () => onSelect(option)
|
|
28434
|
+
}, option.icon && /*#__PURE__*/React.createElement("span", {
|
|
28435
|
+
className: "icon"
|
|
28436
|
+
}, " ", option.icon, " "), props.isPropertyAssess ? /*#__PURE__*/React.createElement("div", null, props.t ? props.t(option[props.optionKey]) : option[props.optionKey]) : /*#__PURE__*/React.createElement("span", null, " ", props.t ? props.t(option[props.optionKey]) : option[props.optionKey]), /*#__PURE__*/React.createElement("div", null, "(", props.t("COMMON_MASTERS_DESIGNATION_" + option["designation"]), ")"));
|
|
28437
|
+
}), filteredOption && filteredOption.length === 0 && /*#__PURE__*/React.createElement("div", {
|
|
28438
|
+
className: `cp profile-dropdown--item display: flex `,
|
|
28439
|
+
key: "-1",
|
|
28440
|
+
onClick: () => {}
|
|
28441
|
+
}, /*#__PURE__*/React.createElement("span", null, " ", props.t ? props.t("CMN_NOOPTION") : "CMN_NOOPTION"))) : /*#__PURE__*/React.createElement("div", {
|
|
28442
|
+
className: "options-card",
|
|
28443
|
+
style: {
|
|
28444
|
+
...props.optionCardStyles,
|
|
28445
|
+
overflow: "scroll",
|
|
28446
|
+
maxHeight: "350px"
|
|
28447
|
+
},
|
|
28448
|
+
id: "jk-dropdown-unique",
|
|
28449
|
+
ref: optionRef
|
|
28450
|
+
}, props.option.filter(option => (option === null || option === void 0 ? void 0 : option.toUpperCase().indexOf(filterVal === null || filterVal === void 0 ? void 0 : filterVal.toUpperCase())) > -1).map((option, index) => {
|
|
28451
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
28452
|
+
key: index,
|
|
28453
|
+
style: index === optionIndex ? {
|
|
28454
|
+
opacity: 1,
|
|
28455
|
+
backgroundColor: "rgba(238, 238, 238, var(--bg-opacity))"
|
|
28456
|
+
} : {},
|
|
28457
|
+
onClick: () => onSelect(option)
|
|
28458
|
+
}, option);
|
|
28459
|
+
})) : null);
|
|
28460
|
+
};
|
|
28461
|
+
|
|
28241
28462
|
const configBPAApproverApplication = ({
|
|
28242
28463
|
t,
|
|
28243
28464
|
action,
|
|
@@ -28254,7 +28475,7 @@ const configBPAApproverApplication = ({
|
|
|
28254
28475
|
error,
|
|
28255
28476
|
blockReasonFiltered
|
|
28256
28477
|
}) => {
|
|
28257
|
-
var _action$state, _action$
|
|
28478
|
+
var _action$state, _action$assigneeRoles, _action$state2;
|
|
28258
28479
|
let isRejectOrRevocate = false;
|
|
28259
28480
|
if ((action === null || action === void 0 ? void 0 : action.action) == "REVOCATE" || (action === null || action === void 0 ? void 0 : action.action) == "REJECT" || action.action == "SKIP_PAYMENT" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_BACK_TO_CITIZEN" || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE") {
|
|
28260
28481
|
isRejectOrRevocate = true;
|
|
@@ -28267,20 +28488,21 @@ const configBPAApproverApplication = ({
|
|
|
28267
28488
|
},
|
|
28268
28489
|
form: [{
|
|
28269
28490
|
body: [{
|
|
28270
|
-
label: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK"
|
|
28491
|
+
label: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "FORWARD" && (action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.state) == "FIELDINSPECTION_PENDING" ? null : t(assigneeLabel || `WF_ROLE_${(_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : _action$assigneeRoles[0]}`),
|
|
28271
28492
|
type: "dropdown",
|
|
28272
|
-
populators: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK"
|
|
28493
|
+
populators: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "FORWARD" && (action === null || action === void 0 ? void 0 : (_action$state2 = action.state) === null || _action$state2 === void 0 ? void 0 : _action$state2.state) == "FIELDINSPECTION_PENDING" ? null : /*#__PURE__*/React.createElement(DropdownWithDesignation, {
|
|
28273
28494
|
option: approvers,
|
|
28274
28495
|
autoComplete: "off",
|
|
28275
28496
|
optionKey: "name",
|
|
28276
28497
|
id: "fieldInspector",
|
|
28277
28498
|
select: setSelectedApprover,
|
|
28278
|
-
selected: selectedApprover
|
|
28499
|
+
selected: selectedApprover,
|
|
28500
|
+
t: t
|
|
28279
28501
|
})
|
|
28280
28502
|
}, {
|
|
28281
|
-
label: (action === null || action === void 0 ? void 0 : action.action) == "BLOCK"
|
|
28503
|
+
label: (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" ? t(`BLOCK_REASON`) : null,
|
|
28282
28504
|
type: "dropdown",
|
|
28283
|
-
populators: (action === null || action === void 0 ? void 0 : action.action) == "BLOCK"
|
|
28505
|
+
populators: (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
28284
28506
|
option: blockReasonFiltered,
|
|
28285
28507
|
autoComplete: "off",
|
|
28286
28508
|
optionKey: "name",
|
|
@@ -29315,21 +29537,23 @@ const ActionModal$4 = ({
|
|
|
29315
29537
|
workflowDetails,
|
|
29316
29538
|
blockReason
|
|
29317
29539
|
}) => {
|
|
29318
|
-
var
|
|
29540
|
+
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _applicationData, _applicationData$land, _applicationData$land2, _applicationData2, _applicationData2$lan, _applicationData2$lan2;
|
|
29319
29541
|
console.log("applicationData_BPAACTIONMODAL", applicationData);
|
|
29320
|
-
|
|
29542
|
+
const uniqueRoles = [...new Set(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.initialActionState) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.nextActions) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.find(ele => (ele === null || ele === void 0 ? void 0 : ele.action) === (action === null || action === void 0 ? void 0 : action.action))) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4.actions) === null || _workflowDetails$data5 === void 0 ? void 0 : _workflowDetails$data5.flatMap(e => e.roles || []))];
|
|
29543
|
+
console.log("workflowDetails_BPAACTIONMODAL", workflowDetails, uniqueRoles, action);
|
|
29321
29544
|
const mutation1 = Digit.Hooks.obps.useObpsAPI((_applicationData = applicationData) !== null && _applicationData !== void 0 && (_applicationData$land = _applicationData.landInfo) !== null && _applicationData$land !== void 0 && (_applicationData$land2 = _applicationData$land.address) !== null && _applicationData$land2 !== void 0 && _applicationData$land2.city ? (_applicationData2 = applicationData) === null || _applicationData2 === void 0 ? void 0 : (_applicationData2$lan = _applicationData2.landInfo) === null || _applicationData2$lan === void 0 ? void 0 : (_applicationData2$lan2 = _applicationData2$lan.address) === null || _applicationData2$lan2 === void 0 ? void 0 : _applicationData2$lan2.city : tenantId, false);
|
|
29322
29545
|
const {
|
|
29323
29546
|
data: approverData,
|
|
29324
29547
|
isLoading: PTALoading
|
|
29325
29548
|
} = Digit.Hooks.useEmployeeSearch(tenantId, {
|
|
29326
|
-
roles:
|
|
29549
|
+
roles: uniqueRoles === null || uniqueRoles === void 0 ? void 0 : uniqueRoles.map(role => ({
|
|
29327
29550
|
code: role
|
|
29328
29551
|
})),
|
|
29329
29552
|
isActive: true
|
|
29330
29553
|
}, {
|
|
29331
29554
|
enabled: !(action !== null && action !== void 0 && action.isTerminateState)
|
|
29332
29555
|
});
|
|
29556
|
+
console.log("approverData", approverData);
|
|
29333
29557
|
const queryClient = useQueryClient();
|
|
29334
29558
|
const [config, setConfig] = useState({});
|
|
29335
29559
|
const [defaultValues, setDefaultValues] = useState({});
|
|
@@ -29345,10 +29569,11 @@ const ActionModal$4 = ({
|
|
|
29345
29569
|
useEffect(() => {
|
|
29346
29570
|
var _approverData$Employe;
|
|
29347
29571
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
29348
|
-
var _employee$user;
|
|
29572
|
+
var _employee$user, _employee$assignments, _employee$assignments2;
|
|
29349
29573
|
return {
|
|
29350
29574
|
uuid: employee === null || employee === void 0 ? void 0 : employee.uuid,
|
|
29351
|
-
name: employee === null || employee === void 0 ? void 0 : (_employee$user = employee.user) === null || _employee$user === void 0 ? void 0 : _employee$user.name
|
|
29575
|
+
name: employee === null || employee === void 0 ? void 0 : (_employee$user = employee.user) === null || _employee$user === void 0 ? void 0 : _employee$user.name,
|
|
29576
|
+
designation: employee === null || employee === void 0 ? void 0 : (_employee$assignments = employee.assignments) === null || _employee$assignments === void 0 ? void 0 : (_employee$assignments2 = _employee$assignments[0]) === null || _employee$assignments2 === void 0 ? void 0 : _employee$assignments2.designation
|
|
29352
29577
|
};
|
|
29353
29578
|
}));
|
|
29354
29579
|
}, [approverData]);
|
|
@@ -29452,7 +29677,7 @@ const ActionModal$4 = ({
|
|
|
29452
29677
|
return result;
|
|
29453
29678
|
};
|
|
29454
29679
|
async function submit(data) {
|
|
29455
|
-
var _applicationData3, _applicationData4, _data$comments, _data$comments2, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19,
|
|
29680
|
+
var _applicationData3, _applicationData4, _data$comments, _data$comments2, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _applicationData5, _applicationData5$add, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _applicationData6, _applicationData6$add, _applicationData6$add2, _applicationData7, _applicationData7$add, _applicationData7$add2, _applicationData8, _applicationData8$add, _applicationData8$add2, _applicationData9, _applicationData9$add, _applicationData9$add2;
|
|
29456
29681
|
applicationData = {
|
|
29457
29682
|
...applicationData,
|
|
29458
29683
|
documents: (_applicationData3 = applicationData) === null || _applicationData3 === void 0 ? void 0 : _applicationData3.documents,
|
|
@@ -29464,10 +29689,10 @@ const ActionModal$4 = ({
|
|
|
29464
29689
|
},
|
|
29465
29690
|
workflow: {
|
|
29466
29691
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
29467
|
-
comment: (data === null || data === void 0 ? void 0 : (_data$comments = data.comments) === null || _data$comments === void 0 ? void 0 : _data$comments.length) > 0 ? data === null || data === void 0 ? void 0 : data.comments : null,
|
|
29468
|
-
comments: (data === null || data === void 0 ? void 0 : (_data$comments2 = data.comments) === null || _data$comments2 === void 0 ? void 0 : _data$comments2.length) > 0 ? data === null || data === void 0 ? void 0 : data.comments : null,
|
|
29469
|
-
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
29470
|
-
assignes: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
29692
|
+
comment: (data === null || data === void 0 ? void 0 : (_data$comments = data.comments) === null || _data$comments === void 0 ? void 0 : _data$comments.length) > 0 ? selectedBlockReason !== null && selectedBlockReason !== void 0 && selectedBlockReason.name ? (selectedBlockReason === null || selectedBlockReason === void 0 ? void 0 : selectedBlockReason.name) + " - " + (data === null || data === void 0 ? void 0 : data.comments) : data === null || data === void 0 ? void 0 : data.comments : null,
|
|
29693
|
+
comments: (data === null || data === void 0 ? void 0 : (_data$comments2 = data.comments) === null || _data$comments2 === void 0 ? void 0 : _data$comments2.length) > 0 ? selectedBlockReason !== null && selectedBlockReason !== void 0 && selectedBlockReason.name ? (selectedBlockReason === null || selectedBlockReason === void 0 ? void 0 : selectedBlockReason.name) + " - " + (data === null || data === void 0 ? void 0 : data.comments) : data === null || data === void 0 ? void 0 : data.comments : null,
|
|
29694
|
+
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.processInstances) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7[0]) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.state) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data0 = workflowDetails.data) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0.processInstances) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1[0]) === null || _workflowDetails$data10 === void 0 ? void 0 : (_workflowDetails$data11 = _workflowDetails$data10.assigner) === null || _workflowDetails$data11 === void 0 ? void 0 : _workflowDetails$data11.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
29695
|
+
assignes: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data12 = workflowDetails.data) === null || _workflowDetails$data12 === void 0 ? void 0 : (_workflowDetails$data13 = _workflowDetails$data12.processInstances) === null || _workflowDetails$data13 === void 0 ? void 0 : (_workflowDetails$data14 = _workflowDetails$data13[0]) === null || _workflowDetails$data14 === void 0 ? void 0 : (_workflowDetails$data15 = _workflowDetails$data14.state) === null || _workflowDetails$data15 === void 0 ? void 0 : _workflowDetails$data15.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data16 = workflowDetails.data) === null || _workflowDetails$data16 === void 0 ? void 0 : (_workflowDetails$data17 = _workflowDetails$data16.processInstances) === null || _workflowDetails$data17 === void 0 ? void 0 : (_workflowDetails$data18 = _workflowDetails$data17[0]) === null || _workflowDetails$data18 === void 0 ? void 0 : (_workflowDetails$data19 = _workflowDetails$data18.assigner) === null || _workflowDetails$data19 === void 0 ? void 0 : _workflowDetails$data19.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
29471
29696
|
varificationDocuments: uploadedFile ? [{
|
|
29472
29697
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
29473
29698
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -29477,7 +29702,7 @@ const ActionModal$4 = ({
|
|
|
29477
29702
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
29478
29703
|
riskType: (_applicationData5 = applicationData) === null || _applicationData5 === void 0 ? void 0 : (_applicationData5$add = _applicationData5.additionalDetails) === null || _applicationData5$add === void 0 ? void 0 : _applicationData5$add.riskType,
|
|
29479
29704
|
comment: data === null || data === void 0 ? void 0 : data.comments,
|
|
29480
|
-
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
29705
|
+
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data20 = workflowDetails.data) === null || _workflowDetails$data20 === void 0 ? void 0 : (_workflowDetails$data21 = _workflowDetails$data20.processInstances) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21[0]) === null || _workflowDetails$data22 === void 0 ? void 0 : (_workflowDetails$data23 = _workflowDetails$data22.state) === null || _workflowDetails$data23 === void 0 ? void 0 : _workflowDetails$data23.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data24 = workflowDetails.data) === null || _workflowDetails$data24 === void 0 ? void 0 : (_workflowDetails$data25 = _workflowDetails$data24.processInstances) === null || _workflowDetails$data25 === void 0 ? void 0 : (_workflowDetails$data26 = _workflowDetails$data25[0]) === null || _workflowDetails$data26 === void 0 ? void 0 : (_workflowDetails$data27 = _workflowDetails$data26.assigner) === null || _workflowDetails$data27 === void 0 ? void 0 : _workflowDetails$data27.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
29481
29706
|
wfDocuments: uploadedFile ? [{
|
|
29482
29707
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
29483
29708
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -36190,7 +36415,7 @@ const BpaApplicationDetail$1 = () => {
|
|
|
36190
36415
|
window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
|
|
36191
36416
|
}
|
|
36192
36417
|
const getTimelineCaptions = (checkpoint, index = 0, timeline) => {
|
|
36193
|
-
var _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$auditDeta, _checkpoint$assignes2, _checkpoint$assignes3;
|
|
36418
|
+
var _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$auditDeta, _checkpoint$auditDeta2, _checkpoint$assignes2, _checkpoint$assignes3;
|
|
36194
36419
|
const privacy = {
|
|
36195
36420
|
uuid: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes = checkpoint.assignes) === null || _checkpoint$assignes === void 0 ? void 0 : (_checkpoint$assignes$ = _checkpoint$assignes[0]) === null || _checkpoint$assignes$ === void 0 ? void 0 : _checkpoint$assignes$.uuid,
|
|
36196
36421
|
fieldName: "mobileNumber",
|
|
@@ -36215,7 +36440,7 @@ const BpaApplicationDetail$1 = () => {
|
|
|
36215
36440
|
};
|
|
36216
36441
|
const previousCheckpoint = timeline === null || timeline === void 0 ? void 0 : timeline[index - 1];
|
|
36217
36442
|
const caption = {
|
|
36218
|
-
date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified,
|
|
36443
|
+
date: (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified) + " " + (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta2 = checkpoint.auditDetails) === null || _checkpoint$auditDeta2 === void 0 ? void 0 : _checkpoint$auditDeta2.timing),
|
|
36219
36444
|
name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes2 = checkpoint.assignes) === null || _checkpoint$assignes2 === void 0 ? void 0 : (_checkpoint$assignes3 = _checkpoint$assignes2[0]) === null || _checkpoint$assignes3 === void 0 ? void 0 : _checkpoint$assignes3.name,
|
|
36220
36445
|
comment: t(checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.comment),
|
|
36221
36446
|
wfComment: previousCheckpoint ? previousCheckpoint === null || previousCheckpoint === void 0 ? void 0 : previousCheckpoint.wfComment : [],
|
|
@@ -36677,7 +36902,7 @@ const BpaApplicationDetail$1 = () => {
|
|
|
36677
36902
|
isCompleted: true,
|
|
36678
36903
|
label: t(`${timelineStatusPrefix}${workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data45 = workflowDetails.data) === null || _workflowDetails$data45 === void 0 ? void 0 : (_workflowDetails$data46 = _workflowDetails$data45.timeline[0]) === null || _workflowDetails$data46 === void 0 ? void 0 : _workflowDetails$data46.state}`),
|
|
36679
36904
|
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data47 = workflowDetails.data) === null || _workflowDetails$data47 === void 0 ? void 0 : _workflowDetails$data47.timeline[0], workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data48 = workflowDetails.data) === null || _workflowDetails$data48 === void 0 ? void 0 : _workflowDetails$data48.timeline)
|
|
36680
|
-
}) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data49 = workflowDetails.data) === null || _workflowDetails$data49 === void 0 ? void 0 : _workflowDetails$data49.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data50 = workflowDetails.data) === null || _workflowDetails$data50 === void 0 ? void 0 : _workflowDetails$data50.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).map((checkpoint, index, arr) => {
|
|
36905
|
+
}) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data49 = workflowDetails.data) === null || _workflowDetails$data49 === void 0 ? void 0 : _workflowDetails$data49.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data50 = workflowDetails.data) === null || _workflowDetails$data50 === void 0 ? void 0 : _workflowDetails$data50.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).filter(item => (item === null || item === void 0 ? void 0 : item.performedAction) !== "SAVE_AS_DRAFT").map((checkpoint, index, arr) => {
|
|
36681
36906
|
var _workflowDetails$data57;
|
|
36682
36907
|
let timelineStatusPostfix = "";
|
|
36683
36908
|
if (window.location.href.includes("/obps/")) {
|
|
@@ -36810,7 +37035,13 @@ const Architectconcent = ({
|
|
|
36810
37035
|
const area = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea19 = currentStepData.createdResponse) === null || _currentStepData$crea19 === void 0 ? void 0 : (_currentStepData$crea20 = _currentStepData$crea19.additionalDetails) === null || _currentStepData$crea20 === void 0 ? void 0 : _currentStepData$crea20.area) || "";
|
|
36811
37036
|
const zone = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea21 = currentStepData.createdResponse) === null || _currentStepData$crea21 === void 0 ? void 0 : (_currentStepData$crea22 = _currentStepData$crea21.additionalDetails) === null || _currentStepData$crea22 === void 0 ? void 0 : _currentStepData$crea22.zonenumber) || "";
|
|
36812
37037
|
const TimeStamp = otpVerifiedTimestamp || (params === null || params === void 0 ? void 0 : (_params$additionalDet = params.additionalDetails) === null || _params$additionalDet === void 0 ? void 0 : _params$additionalDet.TimeStamp) || "";
|
|
36813
|
-
const DateOnly = TimeStamp ?
|
|
37038
|
+
const DateOnly = TimeStamp ? (() => {
|
|
37039
|
+
const d = new Date(TimeStamp);
|
|
37040
|
+
const month = String(d.getMonth() + 1).padStart(2, "0");
|
|
37041
|
+
const day = String(d.getDate()).padStart(2, "0");
|
|
37042
|
+
const year = d.getFullYear();
|
|
37043
|
+
return `${day}/${month}/${year}`;
|
|
37044
|
+
})() : "";
|
|
36814
37045
|
const isArchitectDeclared = sessionStorage.getItem("ArchitectConsentdocFilestoreid");
|
|
36815
37046
|
console.log(params, "PARAM");
|
|
36816
37047
|
useEffect(() => {
|
|
@@ -38151,7 +38382,7 @@ const Urls = {
|
|
|
38151
38382
|
},
|
|
38152
38383
|
challangeneration: {
|
|
38153
38384
|
search: "/echallan-services/eChallan/v1/_search",
|
|
38154
|
-
create: "/
|
|
38385
|
+
create: "/challan-services/Challan/v1/_create",
|
|
38155
38386
|
fetch_bill: "/billing-service/bill/v2/_fetchbill?",
|
|
38156
38387
|
search_bill: "/egov-searcher/bill-genie/mcollectbills/_get",
|
|
38157
38388
|
search_bill_pt: "/egov-searcher/bill-genie/billswithaddranduser/_get",
|
|
@@ -49019,7 +49250,7 @@ const SummaryDetails = ({
|
|
|
49019
49250
|
currentStepData,
|
|
49020
49251
|
onGoBack
|
|
49021
49252
|
}) => {
|
|
49022
|
-
var _user$info, _currentStepData$crea12, _currentStepData$crea33, _currentStepData$crea36, _currentStepData$crea37, _currentStepData$crea38, _currentStepData$crea39, _currentStepData$crea40, _pdfDetails$pdfFiles, _user$info4, _user$info5, _currentStepData$crea41, _currentStepData$crea42, _user$info6, _user$info6$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$crea58, _currentStepData$crea61, _currentStepData$crea62, _currentStepData$crea63, _currentStepData$Basi, _currentStepData$Basi2, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$Basi5, _currentStepData$Basi6, _currentStepData$Basi7, _currentStepData$Basi8, _currentStepData$Basi9, _currentStepData$Basi0, _currentStepData$Basi1, _currentStepData$Basi10, _currentStepData$Basi11, _currentStepData$Basi12, _currentStepData$Basi13, _currentStepData$Basi14, _currentStepData$Basi15, _currentStepData$Basi16, _currentStepData$Basi17, _currentStepData$Basi18, _currentStepData$Basi19, _currentStepData$crea64, _currentStepData$crea65, _currentStepData$crea66, _currentStepData$crea67, _currentStepData$Basi20, _currentStepData$Basi21, _currentStepData$Basi22, _currentStepData$Basi23, _currentStepData$crea68, _currentStepData$crea69, _currentStepData$crea70, _currentStepData$crea71, _currentStepData$Basi24, _currentStepData$Basi25, _currentStepData$Basi26, _currentStepData$Basi27, _currentStepData$Basi28, _currentStepData$Basi29, _currentStepData$Basi32, _currentStepData$Basi33, _currentStepData$Basi36, _currentStepData$Basi37, _currentStepData$Basi38, _currentStepData$Basi39, _currentStepData$Basi40, _currentStepData$Basi41, _currentStepData$Basi42, _currentStepData$Basi43, _currentStepData$Basi44, _currentStepData$Basi45, _currentStepData$Basi46, _currentStepData$Basi47, _currentStepData$Basi48, _currentStepData$Basi49, _currentStepData$Basi50, _currentStepData$Basi51, _currentStepData$Basi52, _currentStepData$Basi53, _currentStepData$Basi54, _currentStepData$Basi55, _currentStepData$Basi56, _currentStepData$Basi57, _currentStepData$Basi58, _currentStepData$Basi59, _currentStepData$Basi60, _currentStepData$Basi61, _currentStepData$Basi62, _currentStepData$Basi63, _currentStepData$Basi64, _currentStepData$Basi65, _currentStepData$Basi66, _currentStepData$Basi67, _currentStepData$Basi68, _currentStepData$Basi69, _currentStepData$Basi70, _currentStepData$Basi71, _currentStepData$Basi72, _currentStepData$Basi73, _currentStepData$Basi74, _currentStepData$Basi75, _currentStepData$Basi76, _currentStepData$Basi77, _currentStepData$Basi78, _currentStepData$Basi79, _currentStepData$Basi80, _currentStepData$Basi81, _currentStepData$Basi82, _currentStepData$Basi83, _currentStepData$Basi84, _currentStepData$Basi85, _currentStepData$Basi86, _currentStepData$Basi87, _currentStepData$Basi88, _currentStepData$Basi89, _currentStepData$Basi90, _currentStepData$Basi91, _currentStepData$Basi92, _currentStepData$Basi93, _currentStepData$Basi94, _currentStepData$Basi95, _currentStepData$Basi100, _currentStepData$Basi101, _currentStepData$Basi102, _currentStepData$Basi103, _currentStepData$Basi104, _currentStepData$Basi105, _currentStepData$Basi106, _currentStepData$Basi107, _currentStepData$crea72, _currentStepData$crea73, _currentStepData$crea74, _currentStepData$crea75, _currentStepData$crea76, _currentStepData$crea77, _currentStepData$crea78, _currentStepData$crea79, _currentStepData$crea80, _currentStepData$Loca, _currentStepData$Loca2, _currentStepData$crea81, _currentStepData$crea82, _currentStepData$crea83, _currentStepData$crea84, _currentStepData$crea85, _currentStepData$crea86, _currentStepData$crea87, _currentStepData$crea88, _currentStepData$crea89, _currentStepData$crea90, _currentStepData$crea91, _currentStepData$crea92, _currentStepData$crea97, _currentStepData$crea98, _currentStepData$crea99, _currentStepData$crea100, _currentStepData$crea101, _currentStepData$crea102, _currentStepData$crea103, _currentStepData$crea104, _currentStepData$crea105, _currentStepData$crea106, _currentStepData$Basi108, _currentStepData$Basi109, _currentStepData$Basi110, _currentStepData$crea107, _currentStepData$crea108, _currentStepData$crea109, _currentStepData$crea110, _currentStepData$crea111, _currentStepData$crea112, _currentStepData$crea113, _currentStepData$crea114, _currentStepData$crea115, _currentStepData$crea116, _currentStepData$crea117, _currentStepData$crea118, _currentStepData$crea119, _currentStepData$crea120, _currentStepData$crea121, _currentStepData$crea122, _currentStepData$crea123, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
|
|
49253
|
+
var _user$info, _currentStepData$crea12, _currentStepData$crea33, _currentStepData$crea36, _currentStepData$crea37, _currentStepData$crea38, _currentStepData$crea39, _currentStepData$crea40, _pdfDetails$pdfFiles, _user$info4, _user$info5, _currentStepData$crea41, _currentStepData$crea42, _user$info6, _user$info6$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$crea58, _currentStepData$crea61, _currentStepData$crea62, _currentStepData$crea63, _currentStepData$Basi, _currentStepData$Basi2, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$Basi5, _currentStepData$Basi6, _currentStepData$Basi7, _currentStepData$Basi8, _currentStepData$Basi9, _currentStepData$Basi0, _currentStepData$Basi1, _currentStepData$Basi10, _currentStepData$Basi11, _currentStepData$Basi12, _currentStepData$Basi13, _currentStepData$Basi14, _currentStepData$Basi15, _currentStepData$Basi16, _currentStepData$Basi17, _currentStepData$Basi18, _currentStepData$Basi19, _currentStepData$crea64, _currentStepData$crea65, _currentStepData$crea66, _currentStepData$crea67, _currentStepData$Basi20, _currentStepData$Basi21, _currentStepData$Basi22, _currentStepData$Basi23, _currentStepData$crea68, _currentStepData$crea69, _currentStepData$crea70, _currentStepData$crea71, _currentStepData$Basi24, _currentStepData$Basi25, _currentStepData$Basi26, _currentStepData$Basi27, _currentStepData$Basi28, _currentStepData$Basi29, _currentStepData$Basi32, _currentStepData$Basi33, _currentStepData$Basi36, _currentStepData$Basi37, _currentStepData$Basi38, _currentStepData$Basi39, _currentStepData$Basi40, _currentStepData$Basi41, _currentStepData$Basi42, _currentStepData$Basi43, _currentStepData$Basi44, _currentStepData$Basi45, _currentStepData$Basi46, _currentStepData$Basi47, _currentStepData$Basi48, _currentStepData$Basi49, _currentStepData$Basi50, _currentStepData$Basi51, _currentStepData$Basi52, _currentStepData$Basi53, _currentStepData$Basi54, _currentStepData$Basi55, _currentStepData$Basi56, _currentStepData$Basi57, _currentStepData$Basi58, _currentStepData$Basi59, _currentStepData$Basi60, _currentStepData$Basi61, _currentStepData$Basi62, _currentStepData$Basi63, _currentStepData$Basi64, _currentStepData$Basi65, _currentStepData$Basi66, _currentStepData$Basi67, _currentStepData$Basi68, _currentStepData$Basi69, _currentStepData$Basi70, _currentStepData$Basi71, _currentStepData$Basi72, _currentStepData$Basi73, _currentStepData$Basi74, _currentStepData$Basi75, _currentStepData$Basi76, _currentStepData$Basi77, _currentStepData$Basi78, _currentStepData$Basi79, _currentStepData$Basi80, _currentStepData$Basi81, _currentStepData$Basi82, _currentStepData$Basi83, _currentStepData$Basi84, _currentStepData$Basi85, _currentStepData$Basi86, _currentStepData$Basi87, _currentStepData$Basi88, _currentStepData$Basi89, _currentStepData$Basi90, _currentStepData$Basi91, _currentStepData$Basi92, _currentStepData$Basi93, _currentStepData$Basi94, _currentStepData$Basi95, _currentStepData$Basi100, _currentStepData$Basi101, _currentStepData$Basi102, _currentStepData$Basi103, _currentStepData$Basi104, _currentStepData$Basi105, _currentStepData$Basi106, _currentStepData$Basi107, _currentStepData$crea72, _currentStepData$crea73, _currentStepData$crea74, _currentStepData$crea75, _currentStepData$crea76, _currentStepData$crea77, _currentStepData$crea78, _currentStepData$crea79, _currentStepData$crea80, _currentStepData$Loca, _currentStepData$Loca2, _currentStepData$crea81, _currentStepData$crea82, _currentStepData$crea83, _currentStepData$crea84, _currentStepData$crea85, _currentStepData$crea86, _currentStepData$crea87, _currentStepData$crea88, _currentStepData$crea89, _currentStepData$crea90, _currentStepData$crea91, _currentStepData$crea92, _currentStepData$crea97, _currentStepData$crea98, _currentStepData$crea99, _currentStepData$crea100, _currentStepData$crea101, _currentStepData$crea102, _currentStepData$crea103, _currentStepData$crea104, _currentStepData$crea105, _currentStepData$crea106, _currentStepData$Basi108, _currentStepData$Basi109, _currentStepData$Basi110, _currentStepData$crea107, _currentStepData$crea108, _currentStepData$crea109, _currentStepData$crea110, _currentStepData$crea111, _currentStepData$crea112, _currentStepData$crea113, _currentStepData$crea114, _currentStepData$crea115, _currentStepData$crea116, _currentStepData$crea117, _currentStepData$crea118, _currentStepData$crea119, _currentStepData$crea120, _currentStepData$crea121, _currentStepData$crea122, _currentStepData$crea123, _currentStepData$crea124, _currentStepData$crea125, _currentStepData$crea126, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
|
|
49023
49254
|
const {
|
|
49024
49255
|
t
|
|
49025
49256
|
} = useTranslation();
|
|
@@ -49048,6 +49279,7 @@ const SummaryDetails = ({
|
|
|
49048
49279
|
return (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea = currentStepData.createdResponse) === null || _currentStepData$crea === void 0 ? void 0 : (_currentStepData$crea2 = _currentStepData$crea.additionalDetails) === null || _currentStepData$crea2 === void 0 ? void 0 : (_currentStepData$crea3 = _currentStepData$crea2.selfCertificationCharges) === null || _currentStepData$crea3 === void 0 ? void 0 : _currentStepData$crea3.BPA_DEVELOPMENT_CHARGES) || "0";
|
|
49049
49280
|
});
|
|
49050
49281
|
const [userSelected, setUser] = useState(null);
|
|
49282
|
+
const [showToast, setShowToast] = useState(null);
|
|
49051
49283
|
const [otherCharges, setOtherCharges] = useState(() => {
|
|
49052
49284
|
var _currentStepData$crea4, _currentStepData$crea5, _currentStepData$crea6;
|
|
49053
49285
|
return (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea4 = currentStepData.createdResponse) === null || _currentStepData$crea4 === void 0 ? void 0 : (_currentStepData$crea5 = _currentStepData$crea4.additionalDetails) === null || _currentStepData$crea5 === void 0 ? void 0 : (_currentStepData$crea6 = _currentStepData$crea5.selfCertificationCharges) === null || _currentStepData$crea6 === void 0 ? void 0 : _currentStepData$crea6.BPA_OTHER_CHARGES) || "0";
|
|
@@ -49271,17 +49503,21 @@ const SummaryDetails = ({
|
|
|
49271
49503
|
const floors = [];
|
|
49272
49504
|
let totalBuiltUpArea = 0;
|
|
49273
49505
|
let totalFloorArea = 0;
|
|
49506
|
+
let totalDeduction = 0;
|
|
49274
49507
|
block === null || block === void 0 ? void 0 : (_block$building = block.building) === null || _block$building === void 0 ? void 0 : (_block$building$floor = _block$building.floors) === null || _block$building$floor === void 0 ? void 0 : _block$building$floor.forEach(ob => {
|
|
49275
|
-
var _ob$occupancies, _ob$occupancies$, _ob$occupancies2, _ob$occupancies2$, _ob$occupancies3, _ob$occupancies3$;
|
|
49508
|
+
var _ob$occupancies, _ob$occupancies$, _ob$occupancies2, _ob$occupancies2$, _ob$occupancies3, _ob$occupancies3$, _ob$occupancies4, _ob$occupancies4$;
|
|
49276
49509
|
const builtUp = Number((_ob$occupancies = ob.occupancies) === null || _ob$occupancies === void 0 ? void 0 : (_ob$occupancies$ = _ob$occupancies[0]) === null || _ob$occupancies$ === void 0 ? void 0 : _ob$occupancies$.builtUpArea) || 0;
|
|
49277
49510
|
const floor = Number((_ob$occupancies2 = ob.occupancies) === null || _ob$occupancies2 === void 0 ? void 0 : (_ob$occupancies2$ = _ob$occupancies2[0]) === null || _ob$occupancies2$ === void 0 ? void 0 : _ob$occupancies2$.floorArea) || 0;
|
|
49511
|
+
const deduction = Number((_ob$occupancies3 = ob.occupancies) === null || _ob$occupancies3 === void 0 ? void 0 : (_ob$occupancies3$ = _ob$occupancies3[0]) === null || _ob$occupancies3$ === void 0 ? void 0 : _ob$occupancies3$.deduction) || 0;
|
|
49278
49512
|
totalBuiltUpArea += builtUp;
|
|
49279
49513
|
totalFloorArea += floor;
|
|
49514
|
+
totalDeduction += deduction;
|
|
49280
49515
|
floors.push({
|
|
49281
49516
|
Floor: t(`BPA_FLOOR_NAME_${ob.number}`),
|
|
49282
49517
|
Level: ob.number,
|
|
49283
|
-
Occupancy: t(`${(_ob$
|
|
49518
|
+
Occupancy: t(`${(_ob$occupancies4 = ob.occupancies) === null || _ob$occupancies4 === void 0 ? void 0 : (_ob$occupancies4$ = _ob$occupancies4[0]) === null || _ob$occupancies4$ === void 0 ? void 0 : _ob$occupancies4$.type}`),
|
|
49284
49519
|
BuildupArea: Number(builtUp).toFixed(2),
|
|
49520
|
+
Deduction: Number(deduction).toFixed(2),
|
|
49285
49521
|
FloorArea: Number(floor).toFixed(2)
|
|
49286
49522
|
});
|
|
49287
49523
|
});
|
|
@@ -49290,6 +49526,7 @@ const SummaryDetails = ({
|
|
|
49290
49526
|
Level: "",
|
|
49291
49527
|
Occupancy: "",
|
|
49292
49528
|
BuildupArea: `${Number(totalBuiltUpArea).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`,
|
|
49529
|
+
Deduction: `${Number(totalDeduction).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`,
|
|
49293
49530
|
FloorArea: `${Number(totalFloorArea).toFixed(2)} ${t("BPA_SQ_MTRS_LABEL")}`
|
|
49294
49531
|
});
|
|
49295
49532
|
return floors;
|
|
@@ -49306,6 +49543,9 @@ const SummaryDetails = ({
|
|
|
49306
49543
|
}, {
|
|
49307
49544
|
name: "BPA_TABLE_COL_BUILDUPAREA",
|
|
49308
49545
|
id: "BuildupArea"
|
|
49546
|
+
}, {
|
|
49547
|
+
name: "BPA_TABLE_COL_DEDUCTION",
|
|
49548
|
+
id: "Deduction"
|
|
49309
49549
|
}, {
|
|
49310
49550
|
name: "BPA_TABLE_COL_FLOORAREA",
|
|
49311
49551
|
id: "FloorArea"
|
|
@@ -49355,8 +49595,8 @@ const SummaryDetails = ({
|
|
|
49355
49595
|
}
|
|
49356
49596
|
};
|
|
49357
49597
|
const setdeclarationhandler = e => {
|
|
49358
|
-
console.log("setdeclarationhandler", e);
|
|
49359
49598
|
if (!isOTPVerified) {
|
|
49599
|
+
console.log("setdeclarationhandler", e, isOTPVerified);
|
|
49360
49600
|
setShowMobileInput(true);
|
|
49361
49601
|
} else {
|
|
49362
49602
|
setAgree(!agree);
|
|
@@ -49515,10 +49755,6 @@ const SummaryDetails = ({
|
|
|
49515
49755
|
}));
|
|
49516
49756
|
async function onSubmitCheck(action) {
|
|
49517
49757
|
var _userInfo$info, _currentStepData$crea43, _currentStepData$crea44, _currentStepData$crea45, _currentStepData$crea46;
|
|
49518
|
-
if (!isArchitectDeclared) {
|
|
49519
|
-
alert(t("Please_declare_and_upload_architect_consent"));
|
|
49520
|
-
return;
|
|
49521
|
-
}
|
|
49522
49758
|
if (!action) {
|
|
49523
49759
|
alert(t("Something_went_wrong"));
|
|
49524
49760
|
return;
|
|
@@ -49566,7 +49802,7 @@ const SummaryDetails = ({
|
|
|
49566
49802
|
documents,
|
|
49567
49803
|
workflow: {
|
|
49568
49804
|
action: workflowAction,
|
|
49569
|
-
assignes: [accountId]
|
|
49805
|
+
assignes: workflowAction === "RESUBMIT" ? [] : [accountId]
|
|
49570
49806
|
}
|
|
49571
49807
|
}
|
|
49572
49808
|
}, tenantId);
|
|
@@ -49587,6 +49823,32 @@ const SummaryDetails = ({
|
|
|
49587
49823
|
}
|
|
49588
49824
|
async function onActionSelect(action) {
|
|
49589
49825
|
console.log("Selected Action", action === null || action === void 0 ? void 0 : action.action);
|
|
49826
|
+
if ((action === null || action === void 0 ? void 0 : action.action) !== "SAVE_AS_DRAFT" && (!agree || !isOTPVerified || !isArchitectDeclared)) {
|
|
49827
|
+
if (!isOTPVerified) {
|
|
49828
|
+
setShowToast({
|
|
49829
|
+
key: "true",
|
|
49830
|
+
error: true,
|
|
49831
|
+
message: t("User OTP Not Verified")
|
|
49832
|
+
});
|
|
49833
|
+
return;
|
|
49834
|
+
}
|
|
49835
|
+
if (!isArchitectDeclared) {
|
|
49836
|
+
setShowToast({
|
|
49837
|
+
key: "true",
|
|
49838
|
+
error: true,
|
|
49839
|
+
message: t("Professinal Undertaking is not Uploaded")
|
|
49840
|
+
});
|
|
49841
|
+
return;
|
|
49842
|
+
}
|
|
49843
|
+
if (!agree) {
|
|
49844
|
+
setShowToast({
|
|
49845
|
+
key: "true",
|
|
49846
|
+
error: true,
|
|
49847
|
+
message: t("Professinal Undertaking is not Agreed")
|
|
49848
|
+
});
|
|
49849
|
+
return;
|
|
49850
|
+
}
|
|
49851
|
+
}
|
|
49590
49852
|
setIsSubmitting(true);
|
|
49591
49853
|
try {
|
|
49592
49854
|
await onSubmitCheck(action === null || action === void 0 ? void 0 : action.action);
|
|
@@ -49689,6 +49951,9 @@ const SummaryDetails = ({
|
|
|
49689
49951
|
useEffect(() => {
|
|
49690
49952
|
console.log("ECBCDocs", fileUrls);
|
|
49691
49953
|
}, [fileUrls]);
|
|
49954
|
+
const closeToast = () => {
|
|
49955
|
+
setShowToast(null);
|
|
49956
|
+
};
|
|
49692
49957
|
if (apiLoading || isFileLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
49693
49958
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, t("BPA_STEPPER_SUMMARY_HEADER")), /*#__PURE__*/React.createElement("div", {
|
|
49694
49959
|
style: {
|
|
@@ -50275,7 +50540,7 @@ const SummaryDetails = ({
|
|
|
50275
50540
|
border: "1px solid #f0f0f0",
|
|
50276
50541
|
background: "#fff"
|
|
50277
50542
|
}
|
|
50278
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea123 = currentStepData.createdResponse) === null || _currentStepData$crea123 === void 0 ? void 0 : _currentStepData$crea123.status) === "INITIATED" && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("br", null), showMobileInput && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_ARCHITECT_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
50543
|
+
}, ((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea123 = currentStepData.createdResponse) === null || _currentStepData$crea123 === void 0 ? void 0 : _currentStepData$crea123.status) === "INITIATED" || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea124 = currentStepData.createdResponse) === null || _currentStepData$crea124 === void 0 ? void 0 : _currentStepData$crea124.status) === "BLOCKED") && /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_Profesion_Consent_Form")), ((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea125 = currentStepData.createdResponse) === null || _currentStepData$crea125 === void 0 ? void 0 : _currentStepData$crea125.status) === "INITIATED" || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea126 = currentStepData.createdResponse) === null || _currentStepData$crea126 === void 0 ? void 0 : _currentStepData$crea126.status) === "BLOCKED") && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("br", null), showMobileInput && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_ARCHITECT_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
50279
50544
|
t: t,
|
|
50280
50545
|
type: "tel",
|
|
50281
50546
|
isMandatory: true,
|
|
@@ -50349,8 +50614,14 @@ const SummaryDetails = ({
|
|
|
50349
50614
|
ref: menuRef,
|
|
50350
50615
|
label: t("WF_TAKE_ACTION"),
|
|
50351
50616
|
onSubmit: () => setDisplayMenu(!displayMenu),
|
|
50352
|
-
disabled:
|
|
50353
|
-
})))
|
|
50617
|
+
disabled: isSubmitting
|
|
50618
|
+
}))), showToast && /*#__PURE__*/React.createElement(Toast$1, {
|
|
50619
|
+
error: showToast === null || showToast === void 0 ? void 0 : showToast.error,
|
|
50620
|
+
warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning,
|
|
50621
|
+
label: t(showToast === null || showToast === void 0 ? void 0 : showToast.message),
|
|
50622
|
+
isDleteBtn: true,
|
|
50623
|
+
onClose: closeToast
|
|
50624
|
+
}));
|
|
50354
50625
|
};
|
|
50355
50626
|
|
|
50356
50627
|
const NewSelfCertificationStepFormEight = ({
|
|
@@ -50446,7 +50717,14 @@ const SelfCertificationResponse = props => {
|
|
|
50446
50717
|
const selfCertificationCode = pathname.split("/").pop();
|
|
50447
50718
|
const onSubmit = () => {
|
|
50448
50719
|
history.push(`/digit-ui/citizen`);
|
|
50720
|
+
window.location.reload();
|
|
50449
50721
|
};
|
|
50722
|
+
useEffect(() => {
|
|
50723
|
+
window.scrollTo({
|
|
50724
|
+
top: 0,
|
|
50725
|
+
behavior: "smooth"
|
|
50726
|
+
});
|
|
50727
|
+
}, []);
|
|
50450
50728
|
useEffect(async () => {
|
|
50451
50729
|
if (selfCertificationCode) {
|
|
50452
50730
|
try {
|