@chipstcp/digit-ui-module-obps 1.0.26 → 1.0.27
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 -0
- package/dist/index.modern.js +1544 -212
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -5,11 +5,19 @@ import { SearchField, TextInput, MobileNumber, CardLabelError, Dropdown, DatePic
|
|
|
5
5
|
import { useWatch, useForm, Controller, useFormContext, useFieldArray, FormProvider } from 'react-hook-form';
|
|
6
6
|
import { useDispatch, useSelector } from 'react-redux';
|
|
7
7
|
import Modal$1 from 'react-modal';
|
|
8
|
+
import { MapContainer, LayersControl, TileLayer, WMSTileLayer, useMap, GeoJSON, Marker, Popup, useMapEvents } from 'react-leaflet';
|
|
9
|
+
import 'leaflet/dist/leaflet.css';
|
|
10
|
+
import '@geoman-io/leaflet-geoman-free';
|
|
11
|
+
import '@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css';
|
|
12
|
+
import L from 'leaflet';
|
|
8
13
|
import 'react-dom';
|
|
9
14
|
import EXIF from 'exif-js';
|
|
10
15
|
import { useQueryClient, useQuery } from 'react-query';
|
|
11
16
|
import { useLocation as useLocation$1 } from 'react-router-dom/cjs/react-router-dom.min';
|
|
12
17
|
import { combineReducers } from 'redux';
|
|
18
|
+
import { Move, RotateCcw } from 'lucide-react';
|
|
19
|
+
import DxfParser from 'dxf-parser';
|
|
20
|
+
import { circle, polygon, lineString, featureCollection, meta, bbox, center, getCoord, transformScale, transformRotate, feature } from '@turf/turf';
|
|
13
21
|
|
|
14
22
|
function listCacheClear() {
|
|
15
23
|
this.__data__ = [];
|
|
@@ -6720,26 +6728,49 @@ const PayTwoTable = ({
|
|
|
6720
6728
|
}
|
|
6721
6729
|
}, t("BPA_SANCTION_FEE")), /*#__PURE__*/React.createElement("table", {
|
|
6722
6730
|
className: "customTable table-border-style"
|
|
6723
|
-
}, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", null, t("BPA_TAXHEAD_CODE")), /*#__PURE__*/React.createElement("th", null, t("BPA_AMOUNT")), /*#__PURE__*/React.createElement("th", null, t("
|
|
6724
|
-
var _sanctionFeeData$row$, _sanctionFeeData$row$2;
|
|
6731
|
+
}, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", null, t("BPA_TAXHEAD_CODE")), /*#__PURE__*/React.createElement("th", null, t("BPA_AMOUNT")), /*#__PURE__*/React.createElement("th", null, t("BPA_REMARKS")))), /*#__PURE__*/React.createElement("tbody", null, sanctionFeeDataWithTotal.map((row, i) => {
|
|
6732
|
+
var _sanctionFeeData$row$, _sanctionFeeData$row$2, _sanctionFeeData$row$3, _sanctionFeeData$row$4;
|
|
6725
6733
|
return /*#__PURE__*/React.createElement("tr", {
|
|
6726
6734
|
key: row.index || i
|
|
6727
|
-
}, /*#__PURE__*/React.createElement("td", null, row.title || t("CS_NA")), /*#__PURE__*/React.createElement("td", null,
|
|
6735
|
+
}, /*#__PURE__*/React.createElement("td", null, row.title || t("CS_NA")), /*#__PURE__*/React.createElement("td", null, (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "BPA_TOTAL" ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
6736
|
+
style: {
|
|
6737
|
+
marginBottom: "8px"
|
|
6738
|
+
}
|
|
6739
|
+
}, /*#__PURE__*/React.createElement("strong", null, t("BPA_AMOUNT"), ": "), row.amount !== null && row.amount !== undefined ? `₹ ${row.amount.toLocaleString()}` : t("CS_NA")), /*#__PURE__*/React.createElement("div", {
|
|
6740
|
+
style: {
|
|
6741
|
+
marginTop: "8px",
|
|
6742
|
+
borderTop: "1px solid #ddd",
|
|
6743
|
+
paddingTop: "8px"
|
|
6744
|
+
}
|
|
6745
|
+
}, /*#__PURE__*/React.createElement("strong", null, t("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, /*#__PURE__*/React.createElement("div", {
|
|
6746
|
+
style: {
|
|
6747
|
+
marginBottom: "12px"
|
|
6748
|
+
}
|
|
6749
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
6750
|
+
style: {
|
|
6751
|
+
display: "block",
|
|
6752
|
+
fontSize: "12px",
|
|
6753
|
+
color: "#666",
|
|
6754
|
+
marginBottom: "4px"
|
|
6755
|
+
}
|
|
6756
|
+
}, "Adjustment Amount"), /*#__PURE__*/React.createElement(TextInput, {
|
|
6728
6757
|
t: t,
|
|
6729
6758
|
type: "number",
|
|
6730
6759
|
isMandatory: false,
|
|
6731
|
-
value: ((_sanctionFeeData$row$ = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$ === void 0 ? void 0 : _sanctionFeeData$row
|
|
6760
|
+
value: (_sanctionFeeData$row$ = sanctionFeeData[row.index]) !== null && _sanctionFeeData$row$ !== void 0 && _sanctionFeeData$row$.adjustedAmount && ((_sanctionFeeData$row$2 = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$2 === void 0 ? void 0 : _sanctionFeeData$row$2.adjustedAmount) !== 0 ? (_sanctionFeeData$row$3 = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$3 === void 0 ? void 0 : _sanctionFeeData$row$3.adjustedAmount : row.amount || "",
|
|
6732
6761
|
onChange: e => handleAdjustedAmountChange(row.index, e.target.value, row.amount),
|
|
6733
6762
|
onBlur: onAdjustedAmountBlur,
|
|
6734
6763
|
disable: disable,
|
|
6735
|
-
step: 1
|
|
6736
|
-
|
|
6764
|
+
step: 1,
|
|
6765
|
+
placeholder: "Enter adjustment amount"
|
|
6766
|
+
})))), /*#__PURE__*/React.createElement("td", null, (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "BPA_TOTAL" ? t("CS_NA") : /*#__PURE__*/React.createElement(TextInput, {
|
|
6737
6767
|
t: t,
|
|
6738
6768
|
type: "text",
|
|
6739
6769
|
isMandatory: false,
|
|
6740
|
-
value: ((_sanctionFeeData$row$
|
|
6770
|
+
value: ((_sanctionFeeData$row$4 = sanctionFeeData[row.index]) === null || _sanctionFeeData$row$4 === void 0 ? void 0 : _sanctionFeeData$row$4.remark) || "",
|
|
6741
6771
|
onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
|
|
6742
6772
|
disable: disable,
|
|
6773
|
+
placeholder: "Enter remarks",
|
|
6743
6774
|
style: {
|
|
6744
6775
|
width: "100%",
|
|
6745
6776
|
padding: "4px",
|
|
@@ -9071,11 +9102,11 @@ const useInboxTableConfig$1 = ({
|
|
|
9071
9102
|
Cell: ({
|
|
9072
9103
|
row
|
|
9073
9104
|
}) => {
|
|
9074
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link$1, {
|
|
9075
|
-
to:
|
|
9105
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link$1, {
|
|
9106
|
+
to: `${parentRoute}/bpa/${encodeURIComponent(row.original["applicationId"])}`
|
|
9076
9107
|
}, /*#__PURE__*/React.createElement("span", {
|
|
9077
9108
|
className: "link"
|
|
9078
|
-
}, row.original["applicationId"])));
|
|
9109
|
+
}, row.original["applicationId"]))));
|
|
9079
9110
|
}
|
|
9080
9111
|
}, {
|
|
9081
9112
|
Header: t("CS_APPLICATION_DETAILS_APPLICATION_DATE"),
|
|
@@ -9256,7 +9287,7 @@ const Inbox$1 = ({
|
|
|
9256
9287
|
const {
|
|
9257
9288
|
t
|
|
9258
9289
|
} = useTranslation();
|
|
9259
|
-
const tenantId = window.location.href.includes("/citizen/") ? "cg" : Digit.ULBService.getCurrentTenantId();
|
|
9290
|
+
const tenantId = window.location.href.includes("/citizen/") ? "cg.tcp" : Digit.ULBService.getCurrentTenantId();
|
|
9260
9291
|
const searchFormDefaultValues = {};
|
|
9261
9292
|
const filterFormDefaultValues = {
|
|
9262
9293
|
moduleName: "bpa-services",
|
|
@@ -17123,6 +17154,12 @@ function transformLayoutData(workflowDetails, layoutData, shortFallData = null)
|
|
|
17123
17154
|
const firmName = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.firmName;
|
|
17124
17155
|
const isFirm = (applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicantOwnerType) === "Firm";
|
|
17125
17156
|
const combinedOwnersName = [...(isFirm && firmName !== null && firmName !== void 0 && firmName.trim() ? [firmName.trim()] : []), ...(ownersList || [])].filter((v, i, arr) => v && arr.indexOf(v) === i).join(", ");
|
|
17157
|
+
const currentDate = new Intl.DateTimeFormat("en-IN", {
|
|
17158
|
+
timeZone: "Asia/Kolkata",
|
|
17159
|
+
day: "2-digit",
|
|
17160
|
+
month: "long",
|
|
17161
|
+
year: "numeric"
|
|
17162
|
+
}).format(new Date()).replace(/(\d{4})$/, ", $1");
|
|
17126
17163
|
const processInstances = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.processInstances) || [];
|
|
17127
17164
|
const decisionInstance = processInstances.filter(pi => (pi === null || pi === void 0 ? void 0 : pi.action) === "APPROVE" || (pi === null || pi === void 0 ? void 0 : pi.action) === "REJECT").sort((a, b) => {
|
|
17128
17165
|
var _b$auditDetails, _a$auditDetails;
|
|
@@ -17158,6 +17195,7 @@ function transformLayoutData(workflowDetails, layoutData, shortFallData = null)
|
|
|
17158
17195
|
}
|
|
17159
17196
|
},
|
|
17160
17197
|
otpDate: approvalDate,
|
|
17198
|
+
currentDate: currentDate,
|
|
17161
17199
|
combinedOwnersName: combinedOwnersName,
|
|
17162
17200
|
approvalTime,
|
|
17163
17201
|
rejectionComments: finalComment,
|
|
@@ -19300,6 +19338,238 @@ const LayoutCitizenConsent = ({
|
|
|
19300
19338
|
}, t(otpSuccess))))));
|
|
19301
19339
|
};
|
|
19302
19340
|
|
|
19341
|
+
delete L.Icon.Default.prototype._getIconUrl;
|
|
19342
|
+
L.Icon.Default.mergeOptions({
|
|
19343
|
+
iconRetinaUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png',
|
|
19344
|
+
iconUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png',
|
|
19345
|
+
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png'
|
|
19346
|
+
});
|
|
19347
|
+
const MapController = ({
|
|
19348
|
+
geoJSON,
|
|
19349
|
+
flyToLocation,
|
|
19350
|
+
readOnly
|
|
19351
|
+
}) => {
|
|
19352
|
+
const map = useMap();
|
|
19353
|
+
const geoJsonLayerRef = useRef(null);
|
|
19354
|
+
useEffect(() => {
|
|
19355
|
+
const invalidate = () => map.invalidateSize();
|
|
19356
|
+
const timer = setTimeout(invalidate, 0);
|
|
19357
|
+
const resizeTimer = setTimeout(invalidate, 150);
|
|
19358
|
+
const container = map.getContainer();
|
|
19359
|
+
let observer = null;
|
|
19360
|
+
if (typeof ResizeObserver !== "undefined" && container !== null && container !== void 0 && container.parentElement) {
|
|
19361
|
+
observer = new ResizeObserver(() => {
|
|
19362
|
+
map.invalidateSize();
|
|
19363
|
+
});
|
|
19364
|
+
observer.observe(container.parentElement);
|
|
19365
|
+
}
|
|
19366
|
+
return () => {
|
|
19367
|
+
clearTimeout(timer);
|
|
19368
|
+
clearTimeout(resizeTimer);
|
|
19369
|
+
if (observer) observer.disconnect();
|
|
19370
|
+
};
|
|
19371
|
+
}, [map, geoJSON, flyToLocation, readOnly]);
|
|
19372
|
+
useEffect(() => {
|
|
19373
|
+
if (flyToLocation && flyToLocation[0] !== 0 && flyToLocation[1] !== 0) {
|
|
19374
|
+
map.flyTo([flyToLocation[1], flyToLocation[0]], 16);
|
|
19375
|
+
}
|
|
19376
|
+
}, [flyToLocation, map]);
|
|
19377
|
+
useEffect(() => {
|
|
19378
|
+
if (geoJSON && geoJsonLayerRef.current) {
|
|
19379
|
+
const layer = geoJsonLayerRef.current;
|
|
19380
|
+
layer.clearLayers();
|
|
19381
|
+
layer.addData(geoJSON);
|
|
19382
|
+
if (layer.getLayers().length > 0) {
|
|
19383
|
+
try {
|
|
19384
|
+
map.fitBounds(layer.getBounds(), {
|
|
19385
|
+
padding: [50, 50]
|
|
19386
|
+
});
|
|
19387
|
+
} catch (e) {
|
|
19388
|
+
console.warn("Could not fit bounds", e);
|
|
19389
|
+
}
|
|
19390
|
+
}
|
|
19391
|
+
if (!readOnly) {
|
|
19392
|
+
layer.getLayers().forEach(l => {
|
|
19393
|
+
if (l.pm) {
|
|
19394
|
+
l.pm.enable({
|
|
19395
|
+
allowSelfIntersection: false,
|
|
19396
|
+
draggable: false
|
|
19397
|
+
});
|
|
19398
|
+
if (l.dragging) l.dragging.disable();
|
|
19399
|
+
}
|
|
19400
|
+
});
|
|
19401
|
+
}
|
|
19402
|
+
}
|
|
19403
|
+
}, [geoJSON, readOnly]);
|
|
19404
|
+
useEffect(() => {
|
|
19405
|
+
if (!map) return;
|
|
19406
|
+
if (readOnly) {
|
|
19407
|
+
return;
|
|
19408
|
+
}
|
|
19409
|
+
if (!map.pm) return;
|
|
19410
|
+
try {
|
|
19411
|
+
map.pm.addControls({
|
|
19412
|
+
position: 'topleft',
|
|
19413
|
+
drawCircle: false,
|
|
19414
|
+
drawCircleMarker: false,
|
|
19415
|
+
drawMarker: false,
|
|
19416
|
+
drawPolyline: false,
|
|
19417
|
+
drawRectangle: false,
|
|
19418
|
+
drawPolygon: false,
|
|
19419
|
+
drawText: false,
|
|
19420
|
+
editMode: true,
|
|
19421
|
+
dragMode: false,
|
|
19422
|
+
cutPolygon: false,
|
|
19423
|
+
removalMode: true,
|
|
19424
|
+
rotateMode: false
|
|
19425
|
+
});
|
|
19426
|
+
} catch (e) {
|
|
19427
|
+
console.warn("Error enabling Geoman controls:", e);
|
|
19428
|
+
}
|
|
19429
|
+
return () => {
|
|
19430
|
+
try {
|
|
19431
|
+
map.pm.removeControls();
|
|
19432
|
+
} catch (e) {
|
|
19433
|
+
console.warn("Error removing Geoman controls:", e);
|
|
19434
|
+
}
|
|
19435
|
+
};
|
|
19436
|
+
}, [map, readOnly]);
|
|
19437
|
+
return /*#__PURE__*/React.createElement(GeoJSON, {
|
|
19438
|
+
ref: geoJsonLayerRef,
|
|
19439
|
+
data: null
|
|
19440
|
+
});
|
|
19441
|
+
};
|
|
19442
|
+
const CenterMarker = ({
|
|
19443
|
+
position,
|
|
19444
|
+
onDragEnd
|
|
19445
|
+
}) => {
|
|
19446
|
+
const markerRef = useRef(null);
|
|
19447
|
+
const eventHandlers = useMemo(() => ({
|
|
19448
|
+
dragend() {
|
|
19449
|
+
const marker = markerRef.current;
|
|
19450
|
+
if (marker != null) {
|
|
19451
|
+
const {
|
|
19452
|
+
lat,
|
|
19453
|
+
lng
|
|
19454
|
+
} = marker.getLatLng();
|
|
19455
|
+
onDragEnd([lng, lat]);
|
|
19456
|
+
}
|
|
19457
|
+
}
|
|
19458
|
+
}), [onDragEnd]);
|
|
19459
|
+
if (!position || position[0] === 0 && position[1] === 0) return null;
|
|
19460
|
+
const latLng = [position[1], position[0]];
|
|
19461
|
+
return /*#__PURE__*/React.createElement(Marker, {
|
|
19462
|
+
draggable: true,
|
|
19463
|
+
eventHandlers: eventHandlers,
|
|
19464
|
+
position: latLng,
|
|
19465
|
+
ref: markerRef,
|
|
19466
|
+
zIndexOffset: 1000
|
|
19467
|
+
}, /*#__PURE__*/React.createElement(Popup, null, "Drag me to move the group!"));
|
|
19468
|
+
};
|
|
19469
|
+
const MapEvents = ({
|
|
19470
|
+
onMapMove
|
|
19471
|
+
}) => {
|
|
19472
|
+
const map = useMapEvents({
|
|
19473
|
+
moveend: () => {
|
|
19474
|
+
const center = map.getCenter();
|
|
19475
|
+
onMapMove({
|
|
19476
|
+
lat: center.lat,
|
|
19477
|
+
lng: center.lng
|
|
19478
|
+
});
|
|
19479
|
+
}
|
|
19480
|
+
});
|
|
19481
|
+
return null;
|
|
19482
|
+
};
|
|
19483
|
+
const MapViewer = ({
|
|
19484
|
+
geoJSON,
|
|
19485
|
+
center,
|
|
19486
|
+
onCenterChange,
|
|
19487
|
+
onMapMove,
|
|
19488
|
+
flyToLocation,
|
|
19489
|
+
readOnly: _readOnly = false
|
|
19490
|
+
}) => {
|
|
19491
|
+
var _Digit, _Digit$ULBService, _Digit2, _Digit2$ULBService, _Digit3, _Digit3$ULBService, _Digit4, _Digit4$ULBService, _Digit5, _Digit5$ULBService;
|
|
19492
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19493
|
+
style: {
|
|
19494
|
+
height: "100%",
|
|
19495
|
+
width: "100%",
|
|
19496
|
+
minHeight: "520px"
|
|
19497
|
+
}
|
|
19498
|
+
}, /*#__PURE__*/React.createElement(MapContainer, {
|
|
19499
|
+
center: [0, 0],
|
|
19500
|
+
zoom: 2,
|
|
19501
|
+
style: {
|
|
19502
|
+
height: '100%',
|
|
19503
|
+
width: '100%',
|
|
19504
|
+
minHeight: '520px',
|
|
19505
|
+
background: '#e5e7eb'
|
|
19506
|
+
}
|
|
19507
|
+
}, /*#__PURE__*/React.createElement(LayersControl, {
|
|
19508
|
+
position: "topright"
|
|
19509
|
+
}, /*#__PURE__*/React.createElement(LayersControl.BaseLayer, {
|
|
19510
|
+
checked: true,
|
|
19511
|
+
name: "Street Map"
|
|
19512
|
+
}, /*#__PURE__*/React.createElement(TileLayer, {
|
|
19513
|
+
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
19514
|
+
attribution: "\xA9 <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors"
|
|
19515
|
+
})), /*#__PURE__*/React.createElement(LayersControl.BaseLayer, {
|
|
19516
|
+
name: "Satellite"
|
|
19517
|
+
}, /*#__PURE__*/React.createElement(TileLayer, {
|
|
19518
|
+
url: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
|
|
19519
|
+
attribution: "Tiles \xA9 Esri \u2014 Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"
|
|
19520
|
+
})), /*#__PURE__*/React.createElement(LayersControl.Overlay, {
|
|
19521
|
+
name: "Road"
|
|
19522
|
+
}, /*#__PURE__*/React.createElement(WMSTileLayer, {
|
|
19523
|
+
url: `http://103.154.75.95:8082/geoserver/${typeof Digit !== "undefined" && ((_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ULBService = _Digit.ULBService) === null || _Digit$ULBService === void 0 ? void 0 : _Digit$ULBService.getStateId()) || "dg"}/wms`,
|
|
19524
|
+
layers: "PRO_ROAD_CL_EXISTING_ROAD",
|
|
19525
|
+
format: "image/png",
|
|
19526
|
+
transparent: true,
|
|
19527
|
+
attribution: "Road"
|
|
19528
|
+
})), /*#__PURE__*/React.createElement(LayersControl.Overlay, {
|
|
19529
|
+
name: "Landmark"
|
|
19530
|
+
}, /*#__PURE__*/React.createElement(WMSTileLayer, {
|
|
19531
|
+
url: `http://103.154.75.95:8082/geoserver/${typeof Digit !== "undefined" && ((_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ULBService = _Digit2.ULBService) === null || _Digit2$ULBService === void 0 ? void 0 : _Digit2$ULBService.getStateId()) || "dg"}/wms`,
|
|
19532
|
+
layers: "LANDMARK",
|
|
19533
|
+
format: "image/png",
|
|
19534
|
+
transparent: true,
|
|
19535
|
+
attribution: "Landmark"
|
|
19536
|
+
})), /*#__PURE__*/React.createElement(LayersControl.Overlay, {
|
|
19537
|
+
name: "Village Boundary"
|
|
19538
|
+
}, /*#__PURE__*/React.createElement(WMSTileLayer, {
|
|
19539
|
+
url: `http://103.154.75.95:8082/geoserver/${typeof Digit !== "undefined" && ((_Digit3 = Digit) === null || _Digit3 === void 0 ? void 0 : (_Digit3$ULBService = _Digit3.ULBService) === null || _Digit3$ULBService === void 0 ? void 0 : _Digit3$ULBService.getStateId()) || "dg"}/wms`,
|
|
19540
|
+
layers: "VILLAGE_BOUNDARY",
|
|
19541
|
+
format: "image/png",
|
|
19542
|
+
transparent: true,
|
|
19543
|
+
attribution: "Village Boundary"
|
|
19544
|
+
})), /*#__PURE__*/React.createElement(LayersControl.Overlay, {
|
|
19545
|
+
name: "Landuse"
|
|
19546
|
+
}, /*#__PURE__*/React.createElement(WMSTileLayer, {
|
|
19547
|
+
url: `http://103.154.75.95:8082/geoserver/${typeof Digit !== "undefined" && ((_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$ULBService = _Digit4.ULBService) === null || _Digit4$ULBService === void 0 ? void 0 : _Digit4$ULBService.getStateId()) || "dg"}/wms`,
|
|
19548
|
+
layers: "LANDUSE_PLU",
|
|
19549
|
+
format: "image/png",
|
|
19550
|
+
transparent: true,
|
|
19551
|
+
attribution: "Landuse"
|
|
19552
|
+
})), /*#__PURE__*/React.createElement(LayersControl.Overlay, {
|
|
19553
|
+
checked: true,
|
|
19554
|
+
name: "Cadastral"
|
|
19555
|
+
}, /*#__PURE__*/React.createElement(WMSTileLayer, {
|
|
19556
|
+
url: `http://103.154.75.95:8082/geoserver/${typeof Digit !== "undefined" && ((_Digit5 = Digit) === null || _Digit5 === void 0 ? void 0 : (_Digit5$ULBService = _Digit5.ULBService) === null || _Digit5$ULBService === void 0 ? void 0 : _Digit5$ULBService.getStateId()) || "dg"}/wms`,
|
|
19557
|
+
layers: "CADASTRAL",
|
|
19558
|
+
format: "image/png",
|
|
19559
|
+
transparent: true,
|
|
19560
|
+
attribution: "Cadastral"
|
|
19561
|
+
}))), /*#__PURE__*/React.createElement(MapController, {
|
|
19562
|
+
geoJSON: geoJSON,
|
|
19563
|
+
flyToLocation: flyToLocation,
|
|
19564
|
+
readOnly: _readOnly
|
|
19565
|
+
}), !_readOnly && /*#__PURE__*/React.createElement(CenterMarker, {
|
|
19566
|
+
position: center,
|
|
19567
|
+
onDragEnd: onCenterChange
|
|
19568
|
+
}), onMapMove && /*#__PURE__*/React.createElement(MapEvents, {
|
|
19569
|
+
onMapMove: onMapMove
|
|
19570
|
+
})));
|
|
19571
|
+
};
|
|
19572
|
+
|
|
19303
19573
|
const DocumentLink = ({
|
|
19304
19574
|
docUrl,
|
|
19305
19575
|
tenantId,
|
|
@@ -19360,7 +19630,7 @@ const renderLabel = (label, value, t) => {
|
|
|
19360
19630
|
});
|
|
19361
19631
|
};
|
|
19362
19632
|
const LayoutApplicationSummary = () => {
|
|
19363
|
-
var _mdmsData$LAYOUT, _user, _user$info, _user$info$roles, _applicationDetails$L, _layoutData$layoutDet, _layoutData$layoutDet2, _siteDetails$tehsil, _layoutData$layoutDet10, _layoutData$layoutDet11, _layoutData$layoutDet12, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0,
|
|
19633
|
+
var _mdmsData$LAYOUT, _user, _user$info, _user$info$roles, _applicationDetails$L, _layoutData$layoutDet, _layoutData$layoutDet2, _siteDetails$tehsil, _layoutData$layoutDet10, _layoutData$layoutDet11, _layoutData$layoutDet12, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _layoutData$owners2, _workflowDetails$data1, _workflowDetails$data10, _layoutData$layoutDet13, _layoutData$layoutDet14, _layoutData$geotag, _layoutData$layoutDet15, _layoutData$layoutDet16, _layoutData$additiona, _displayData$Document, _displayData$Document2, _displayData$owners, _workflowDetails$data11, _workflowDetails$data12, _layoutData$layoutDet17, _layoutData$layoutDet18, _layoutData$layoutDet19, _layoutData$layoutDet20, _layoutData$layoutDet21, _layoutData$layoutDet22, _layoutData$layoutDet23, _layoutData$layoutDet24, _layoutData$layoutDet25, _layoutData$layoutDet26, _layoutData$layoutDet27, _layoutData$layoutDet28, _layoutData$layoutDet29, _layoutData$layoutDet30, _layoutData$layoutDet31, _layoutData$layoutDet32, _layoutData$layoutDet33, _layoutData$layoutDet34, _layoutData$layoutDet35, _layoutData$layoutDet36, _layoutData$layoutDet37, _layoutData$layoutDet38, _layoutData$layoutDet39, _layoutData$layoutDet40, _layoutData$layoutDet41, _layoutData$layoutDet42, _layoutData$layoutDet43, _layoutData$layoutDet44, _layoutData$layoutDet45, _layoutData$layoutDet46, _layoutData$layoutDet47, _layoutData$layoutDet48, _layoutData$layoutDet49, _layoutData$layoutDet50, _displayData$owners2, _displayData$applican, _displayData$applican2, _displayData$applican3, _displayData$applican4, _displayData$applican5, _displayData$applican6, _displayData$applican7, _displayData$applican8, _displayData$applican9, _displayData$applican0, _displayData$applican1, _displayData$applican10, _displayData$applican11, _displayData$applican12, _displayData$siteDeta, _displayData$siteDeta2, _displayData$siteDeta3, _displayData$siteDeta4, _displayData$siteDeta5, _displayData$siteDeta6, _displayData$siteDeta7, _displayData$siteDeta8, _displayData$siteDeta9, _displayData$siteDeta0, _displayData$siteDeta1, _displayData$siteDeta10, _displayData$siteDeta11, _displayData$siteDeta12, _displayData$siteDeta13, _displayData$siteDeta14, _displayData$siteDeta15, _displayData$siteDeta16, _displayData$siteDeta17, _displayData$siteDeta18, _displayData$siteDeta19, _displayData$siteDeta20, _displayData$siteDeta21, _displayData$siteDeta22, _displayData$siteDeta23, _displayData$siteDeta24, _displayData$siteDeta25, _displayData$siteDeta26, _displayData$siteDeta27, _displayData$siteDeta28, _displayData$siteDeta29, _displayData$siteDeta30, _displayData$siteDeta31, _displayData$siteDeta32, _displayData$siteDeta33, _displayData$siteDeta34, _displayData$siteDeta35, _displayData$siteDeta36, _displayData$siteDeta37, _displayData$siteDeta38, _displayData$siteDeta39, _displayData$siteDeta40, _displayData$siteDeta41, _displayData$siteDeta42, _displayData$siteDeta43, _displayData$siteDeta44, _displayData$siteDeta45, _displayData$siteDeta46, _displayData$siteDeta47, _displayData$siteDeta48, _displayData$siteDeta49, _displayData$siteDeta50, _displayData$siteDeta51, _displayData$siteDeta52, _displayData$siteDeta53, _displayData$siteDeta54, _displayData$siteDeta55, _displayData$siteDeta56, _displayData$siteDeta57, _displayData$siteDeta58, _displayData$siteDeta59, _displayData$siteDeta60, _displayData$siteDeta61, _displayData$siteDeta62, _displayData$siteDeta63, _displayData$siteDeta64, _displayData$siteDeta65, _displayData$siteDeta66, _displayData$siteDeta67, _displayData$siteDeta68, _displayData$siteDeta69, _displayData$siteDeta70, _displayData$siteDeta71, _displayData$siteDeta72, _displayData$siteDeta73, _displayData$siteDeta74, _displayData$siteDeta75, _displayData$siteDeta76, _displayData$siteDeta77, _displayData$siteDeta78, _displayData$siteDeta79, _displayData$siteDeta80, _displayData$siteDeta81, _displayData$siteDeta82, _displayData$siteDeta83, _displayData$siteDeta84, _displayData$siteDeta85, _displayData$siteDeta86, _displayData$siteDeta87, _displayData$siteDeta88, _displayData$siteDeta89, _displayData$siteDeta90, _displayData$siteDeta91, _displayData$siteDeta92, _displayData$siteDeta93, _displayData$siteDeta94, _displayData$siteDeta95, _displayData$siteDeta96, _displayData$siteDeta97, _displayData$siteDeta98, _displayData$siteDeta99, _displayData$siteDeta100, _displayData$siteDeta101, _displayData$siteDeta102, _displayData$siteDeta103, _displayData$siteDeta104, _displayData$siteDeta105, _displayData$siteDeta106, _displayData$siteDeta107, _displayData$siteDeta108, _displayData$siteDeta109, _displayData$siteDeta110, _displayData$siteDeta111, _displayData$siteDeta112, _displayData$siteDeta113, _displayData$siteDeta114, _displayData$siteDeta115, _displayData$siteDeta116, _displayData$siteDeta117, _displayData$siteDeta118, _displayData$siteDeta119, _displayData$siteDeta120, _displayData$siteDeta121, _displayData$siteDeta122, _displayData$siteDeta123, _displayData$siteDeta124, _displayData$siteDeta125, _displayData$siteDeta126, _displayData$siteDeta127, _displayData$siteDeta128, _displayData$siteDeta129, _displayData$siteDeta130, _displayData$siteDeta131, _displayData$siteDeta132, _displayData$siteDeta133, _displayData$siteDeta134, _displayData$siteDeta135, _displayData$siteDeta136, _displayData$siteDeta137, _displayData$siteDeta138, _displayData$siteDeta139, _displayData$siteDeta140, _displayData$siteDeta141, _displayData$siteDeta142, _displayData$siteDeta143, _displayData$siteDeta144, _displayData$siteDeta145, _displayData$siteDeta146, _displayData$siteDeta147, _displayData$siteDeta148, _displayData$siteDeta149, _displayData$siteDeta150, _displayData$siteDeta151, _displayData$siteDeta152, _displayData$siteDeta153, _displayData$siteDeta154, _displayData$siteDeta155, _displayData$siteDeta156, _displayData$siteDeta157, _displayData$siteDeta158, _displayData$siteDeta159, _displayData$siteDeta160, _displayData$siteDeta161, _displayData$siteDeta162, _displayData$siteDeta163, _displayData$siteDeta164, _displayData$siteDeta165, _displayData$siteDeta166, _layoutData$layoutDet51, _layoutData$layoutDet52, _layoutData$layoutDet53, _layoutData$layoutDet54, _layoutData$layoutDet55, _layoutData$layoutDet56, _layoutData$layoutDet57, _layoutData$layoutDet58, _layoutData$layoutDet59, _layoutData$layoutDet60, _layoutData$layoutDet61, _layoutData$layoutDet62, _layoutData$layoutDet63, _layoutData$layoutDet64, _layoutData$layoutDet65, _layoutData$layoutDet66, _layoutData$layoutDet67, _layoutData$layoutDet68, _layoutData$layoutDet69, _layoutData$layoutDet70, _layoutData$layoutDet71, _layoutData$layoutDet72, _layoutData$layoutDet73, _layoutData$layoutDet74, _layoutData$layoutDet75, _layoutData$layoutDet76, _layoutData$layoutDet77, _layoutData$layoutDet78, _layoutData$layoutDet79, _layoutData$layoutDet80, _layoutData$layoutDet81, _layoutData$layoutDet82, _layoutData$layoutDet83, _layoutData$layoutDet84, _layoutData$layoutDet85, _layoutData$layoutDet86, _layoutData$layoutDet87, _layoutData$layoutDet88, _layoutData$layoutDet89, _layoutData$layoutDet90, _layoutData$layoutDet91, _layoutData$layoutDet92, _layoutData$layoutDet93, _layoutData$layoutDet94, _layoutData$layoutDet95, _layoutData$layoutDet96, _layoutData$layoutDet97, _layoutData$layoutDet98, _layoutData$layoutDet99, _layoutData$layoutDet100, _layoutData$layoutDet101, _layoutData$layoutDet102, _layoutData$layoutDet103, _layoutData$layoutDet104, _layoutData$layoutDet105, _layoutData$layoutDet106, _layoutData$layoutDet107, _layoutData$layoutDet108, _layoutData$layoutDet109, _layoutData$layoutDet110, _layoutData$layoutDet111, _layoutData$layoutDet112, _layoutData$layoutDet113, _layoutData$layoutDet114, _layoutData$layoutDet115, _layoutData$layoutDet116, _layoutData$layoutDet117, _layoutData$layoutDet118, _layoutData$layoutDet119, _layoutData$layoutDet120, _layoutData$layoutDet121, _layoutData$layoutDet122, _layoutData$layoutDet123, _layoutData$layoutDet124, _layoutData$layoutDet125, _layoutData$layoutDet126, _layoutData$layoutDet127, _layoutData$layoutDet128, _layoutData$layoutDet129, _layoutData$layoutDet130, _layoutData$layoutDet131, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15;
|
|
19364
19634
|
const {
|
|
19365
19635
|
id
|
|
19366
19636
|
} = useParams();
|
|
@@ -19642,10 +19912,14 @@ const LayoutApplicationSummary = () => {
|
|
|
19642
19912
|
console.log(workflowDetails, "workflowDetails");
|
|
19643
19913
|
const transformedLayoutData = useMemo(() => {
|
|
19644
19914
|
return transformLayoutData(workflowDetails, layoutData, shortFallData);
|
|
19645
|
-
}, [layoutData, workflowDetails
|
|
19915
|
+
}, [layoutData, workflowDetails]);
|
|
19646
19916
|
console.log("transformedLayoutData", transformedLayoutData);
|
|
19917
|
+
const isUserCitizen = layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$owners2 = layoutData.owners) === null || _layoutData$owners2 === void 0 ? void 0 : _layoutData$owners2.some(owner => {
|
|
19918
|
+
var _user2, _user2$info;
|
|
19919
|
+
return (owner === null || owner === void 0 ? void 0 : owner.mobileNumber) === ((_user2 = user) === null || _user2 === void 0 ? void 0 : (_user2$info = _user2.info) === null || _user2$info === void 0 ? void 0 : _user2$info.mobileNumber);
|
|
19920
|
+
});
|
|
19647
19921
|
const dowloadOptions = [];
|
|
19648
|
-
if ((layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "PROFESSIONALACTIONREQUIRED") {
|
|
19922
|
+
if ((layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "PROFESSIONALACTIONREQUIRED" && !isUserCitizen) {
|
|
19649
19923
|
dowloadOptions.push({
|
|
19650
19924
|
label: t("DOWNLOAD_SHORTFALL_LETTER"),
|
|
19651
19925
|
onClick: () => getlayoutletter({
|
|
@@ -19654,7 +19928,7 @@ const LayoutApplicationSummary = () => {
|
|
|
19654
19928
|
})
|
|
19655
19929
|
});
|
|
19656
19930
|
}
|
|
19657
|
-
if ((layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "APPROVED" || (layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "REJECTED") {
|
|
19931
|
+
if (((layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "APPROVED" || (layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "REJECTED") && !workflowDetails.isLoading) {
|
|
19658
19932
|
dowloadOptions.push({
|
|
19659
19933
|
label: t("DOWNLOAD_CERTIFICATE"),
|
|
19660
19934
|
onClick: () => getlayoutletter({
|
|
@@ -19663,11 +19937,7 @@ const LayoutApplicationSummary = () => {
|
|
|
19663
19937
|
})
|
|
19664
19938
|
});
|
|
19665
19939
|
}
|
|
19666
|
-
const
|
|
19667
|
-
var _user2, _user2$info;
|
|
19668
|
-
return (owner === null || owner === void 0 ? void 0 : owner.mobileNumber) === ((_user2 = user) === null || _user2 === void 0 ? void 0 : (_user2$info = _user2.info) === null || _user2$info === void 0 ? void 0 : _user2$info.mobileNumber);
|
|
19669
|
-
});
|
|
19670
|
-
const isCitizenConsentIncluded = ((layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "CITIZEN_APPROVAL_INPROCESS" || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data10 = workflowDetails.data) === null || _workflowDetails$data10 === void 0 ? void 0 : (_workflowDetails$data11 = _workflowDetails$data10.actionState) === null || _workflowDetails$data11 === void 0 ? void 0 : _workflowDetails$data11.state) === "CITIZEN_APPROVAL_INPROCESS") && isUserCitizen;
|
|
19940
|
+
const isCitizenConsentIncluded = ((layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "CITIZEN_APPROVAL_INPROCESS" || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data1 = workflowDetails.data) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1.actionState) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.state) === "CITIZEN_APPROVAL_INPROCESS") && isUserCitizen;
|
|
19671
19941
|
console.log(isUserCitizen, "isUserCitizen");
|
|
19672
19942
|
console.log(isCitizenConsentIncluded, "isCitizenConsentIncluded");
|
|
19673
19943
|
console.log(actions, "actions");
|
|
@@ -19803,11 +20073,36 @@ const LayoutApplicationSummary = () => {
|
|
|
19803
20073
|
}
|
|
19804
20074
|
};
|
|
19805
20075
|
const coordinates = layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet13 = layoutData.layoutDetails) === null || _layoutData$layoutDet13 === void 0 ? void 0 : (_layoutData$layoutDet14 = _layoutData$layoutDet13.additionalDetails) === null || _layoutData$layoutDet14 === void 0 ? void 0 : _layoutData$layoutDet14.coordinates;
|
|
20076
|
+
const rawGeoJSON = (layoutData === null || layoutData === void 0 ? void 0 : layoutData.geojson) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$geotag = layoutData.geotag) === null || _layoutData$geotag === void 0 ? void 0 : _layoutData$geotag.geojson) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet15 = layoutData.layoutDetails) === null || _layoutData$layoutDet15 === void 0 ? void 0 : (_layoutData$layoutDet16 = _layoutData$layoutDet15.additionalDetails) === null || _layoutData$layoutDet16 === void 0 ? void 0 : _layoutData$layoutDet16.geojson) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$additiona = layoutData.additionalDetails) === null || _layoutData$additiona === void 0 ? void 0 : _layoutData$additiona.geojson) || null;
|
|
20077
|
+
const geoJSON = useMemo(() => {
|
|
20078
|
+
if (!rawGeoJSON) return null;
|
|
20079
|
+
let parsed = rawGeoJSON;
|
|
20080
|
+
for (let i = 0; i < 5; i++) {
|
|
20081
|
+
if (typeof parsed === "string") {
|
|
20082
|
+
try {
|
|
20083
|
+
parsed = JSON.parse(parsed);
|
|
20084
|
+
continue;
|
|
20085
|
+
} catch (e) {
|
|
20086
|
+
break;
|
|
20087
|
+
}
|
|
20088
|
+
}
|
|
20089
|
+
break;
|
|
20090
|
+
}
|
|
20091
|
+
if (parsed && typeof parsed === "object" && parsed.type && (parsed.features || parsed.geometry || parsed.geometries)) {
|
|
20092
|
+
return parsed;
|
|
20093
|
+
}
|
|
20094
|
+
return null;
|
|
20095
|
+
}, [rawGeoJSON]);
|
|
20096
|
+
const center = useMemo(() => {
|
|
20097
|
+
const lat = Number(coordinates === null || coordinates === void 0 ? void 0 : coordinates.Latitude1);
|
|
20098
|
+
const lng = Number(coordinates === null || coordinates === void 0 ? void 0 : coordinates.Longitude1);
|
|
20099
|
+
return Number.isFinite(lat) && Number.isFinite(lng) ? [lng, lat] : [0, 0];
|
|
20100
|
+
}, [coordinates]);
|
|
19806
20101
|
const sitePhotographs = displayData === null || displayData === void 0 ? void 0 : (_displayData$Document = displayData.Documents) === null || _displayData$Document === void 0 ? void 0 : _displayData$Document.filter(doc => (doc === null || doc === void 0 ? void 0 : doc.documentType) === "OWNER.SITEPHOTOGRAPHONE" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "OWNER.SITEPHOTOGRAPHTWO" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "SITEPHOTOGRAPHONE" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "SITEPHOTOGRAPHTWO" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "SITE.PHOTOGRAPHONE" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "SITE.PHOTOGRAPHTWO");
|
|
19807
20102
|
const remainingDocs = displayData === null || displayData === void 0 ? void 0 : (_displayData$Document2 = displayData.Documents) === null || _displayData$Document2 === void 0 ? void 0 : _displayData$Document2.filter(doc => !((doc === null || doc === void 0 ? void 0 : doc.documentType) === "OWNER.SITEPHOTOGRAPHONE" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "OWNER.SITEPHOTOGRAPHTWO" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "SITEPHOTOGRAPHONE" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "SITEPHOTOGRAPHTWO" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "SITE.PHOTOGRAPHONE" || (doc === null || doc === void 0 ? void 0 : doc.documentType) === "SITE.PHOTOGRAPHTWO"));
|
|
19808
20103
|
const ownersList = displayData === null || displayData === void 0 ? void 0 : (_displayData$owners = displayData.owners) === null || _displayData$owners === void 0 ? void 0 : _displayData$owners.map(item => item.name);
|
|
19809
20104
|
const combinedOwnersName = ownersList === null || ownersList === void 0 ? void 0 : ownersList.join(", ");
|
|
19810
|
-
const isCitizenApprovalInProcess = (layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "CITIZEN_APPROVAL_INPROCESS" || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
20105
|
+
const isCitizenApprovalInProcess = (layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) === "CITIZEN_APPROVAL_INPROCESS" || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.actionState) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.state) === "CITIZEN_APPROVAL_INPROCESS";
|
|
19811
20106
|
console.log(isCitizenApprovalInProcess, isUserCitizen, "isCitizenApprovalInProcess111");
|
|
19812
20107
|
if (isLoading || loading || isMasterPlanLoading) {
|
|
19813
20108
|
return /*#__PURE__*/React.createElement(LoaderNew, {
|
|
@@ -19851,13 +20146,13 @@ const LayoutApplicationSummary = () => {
|
|
|
19851
20146
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
19852
20147
|
label: t("Application Status"),
|
|
19853
20148
|
text: t(layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationStatus) || "N/A"
|
|
19854
|
-
})))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20149
|
+
})))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet17 = layoutData.layoutDetails) === null || _layoutData$layoutDet17 === void 0 ? void 0 : (_layoutData$layoutDet18 = _layoutData$layoutDet17.additionalDetails) === null || _layoutData$layoutDet18 === void 0 ? void 0 : (_layoutData$layoutDet19 = _layoutData$layoutDet18.applicationDetails) === null || _layoutData$layoutDet19 === void 0 ? void 0 : (_layoutData$layoutDet20 = _layoutData$layoutDet19.applicantOwnerType) === null || _layoutData$layoutDet20 === void 0 ? void 0 : _layoutData$layoutDet20.code) === "Firm" || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet21 = layoutData.layoutDetails) === null || _layoutData$layoutDet21 === void 0 ? void 0 : (_layoutData$layoutDet22 = _layoutData$layoutDet21.additionalDetails) === null || _layoutData$layoutDet22 === void 0 ? void 0 : (_layoutData$layoutDet23 = _layoutData$layoutDet22.applicationDetails) === null || _layoutData$layoutDet23 === void 0 ? void 0 : _layoutData$layoutDet23.applicantOwnerType) === "Firm" ? t("Firm Details") : t("Applicant Details")), /*#__PURE__*/React.createElement("div", {
|
|
19855
20150
|
style: {
|
|
19856
20151
|
background: "#FAFAFA",
|
|
19857
20152
|
padding: "16px",
|
|
19858
20153
|
borderRadius: "4px"
|
|
19859
20154
|
}
|
|
19860
|
-
}, /*#__PURE__*/React.createElement(StatusTable, null, renderLabel(t("BPA_APPLICANT_TYPE_LABEL"), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20155
|
+
}, /*#__PURE__*/React.createElement(StatusTable, null, renderLabel(t("BPA_APPLICANT_TYPE_LABEL"), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet24 = layoutData.layoutDetails) === null || _layoutData$layoutDet24 === void 0 ? void 0 : (_layoutData$layoutDet25 = _layoutData$layoutDet24.additionalDetails) === null || _layoutData$layoutDet25 === void 0 ? void 0 : (_layoutData$layoutDet26 = _layoutData$layoutDet25.applicationDetails) === null || _layoutData$layoutDet26 === void 0 ? void 0 : (_layoutData$layoutDet27 = _layoutData$layoutDet26.applicantOwnerType) === null || _layoutData$layoutDet27 === void 0 ? void 0 : _layoutData$layoutDet27.code) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet28 = layoutData.layoutDetails) === null || _layoutData$layoutDet28 === void 0 ? void 0 : (_layoutData$layoutDet29 = _layoutData$layoutDet28.additionalDetails) === null || _layoutData$layoutDet29 === void 0 ? void 0 : (_layoutData$layoutDet30 = _layoutData$layoutDet29.applicationDetails) === null || _layoutData$layoutDet30 === void 0 ? void 0 : _layoutData$layoutDet30.applicantOwnerType), t), ((layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet31 = layoutData.layoutDetails) === null || _layoutData$layoutDet31 === void 0 ? void 0 : (_layoutData$layoutDet32 = _layoutData$layoutDet31.additionalDetails) === null || _layoutData$layoutDet32 === void 0 ? void 0 : (_layoutData$layoutDet33 = _layoutData$layoutDet32.applicationDetails) === null || _layoutData$layoutDet33 === void 0 ? void 0 : (_layoutData$layoutDet34 = _layoutData$layoutDet33.applicantOwnerType) === null || _layoutData$layoutDet34 === void 0 ? void 0 : _layoutData$layoutDet34.code) === "Firm" || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet35 = layoutData.layoutDetails) === null || _layoutData$layoutDet35 === void 0 ? void 0 : (_layoutData$layoutDet36 = _layoutData$layoutDet35.additionalDetails) === null || _layoutData$layoutDet36 === void 0 ? void 0 : (_layoutData$layoutDet37 = _layoutData$layoutDet36.applicationDetails) === null || _layoutData$layoutDet37 === void 0 ? void 0 : _layoutData$layoutDet37.applicantOwnerType) === "Firm") && /*#__PURE__*/React.createElement(React.Fragment, null, renderLabel(t("BPA_PAN_NUMBER_LABEL"), layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet38 = layoutData.layoutDetails) === null || _layoutData$layoutDet38 === void 0 ? void 0 : (_layoutData$layoutDet39 = _layoutData$layoutDet38.additionalDetails) === null || _layoutData$layoutDet39 === void 0 ? void 0 : (_layoutData$layoutDet40 = _layoutData$layoutDet39.applicationDetails) === null || _layoutData$layoutDet40 === void 0 ? void 0 : _layoutData$layoutDet40.panNumber, t), renderLabel(t("NEW_LAYOUT_FIRM_NAME_LABEL"), layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet41 = layoutData.layoutDetails) === null || _layoutData$layoutDet41 === void 0 ? void 0 : (_layoutData$layoutDet42 = _layoutData$layoutDet41.additionalDetails) === null || _layoutData$layoutDet42 === void 0 ? void 0 : (_layoutData$layoutDet43 = _layoutData$layoutDet42.applicationDetails) === null || _layoutData$layoutDet43 === void 0 ? void 0 : _layoutData$layoutDet43.firmName, t))))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet44 = layoutData.layoutDetails) === null || _layoutData$layoutDet44 === void 0 ? void 0 : (_layoutData$layoutDet45 = _layoutData$layoutDet44.additionalDetails) === null || _layoutData$layoutDet45 === void 0 ? void 0 : (_layoutData$layoutDet46 = _layoutData$layoutDet45.applicationDetails) === null || _layoutData$layoutDet46 === void 0 ? void 0 : (_layoutData$layoutDet47 = _layoutData$layoutDet46.applicantOwnerType) === null || _layoutData$layoutDet47 === void 0 ? void 0 : _layoutData$layoutDet47.code) === "Firm" || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet48 = layoutData.layoutDetails) === null || _layoutData$layoutDet48 === void 0 ? void 0 : (_layoutData$layoutDet49 = _layoutData$layoutDet48.additionalDetails) === null || _layoutData$layoutDet49 === void 0 ? void 0 : (_layoutData$layoutDet50 = _layoutData$layoutDet49.applicationDetails) === null || _layoutData$layoutDet50 === void 0 ? void 0 : _layoutData$layoutDet50.applicantOwnerType) === "Firm" ? t("Authorized Person Details") : t("Owner Details")), displayData === null || displayData === void 0 ? void 0 : (_displayData$owners2 = displayData.owners) === null || _displayData$owners2 === void 0 ? void 0 : _displayData$owners2.map((owner, idx) => {
|
|
19861
20156
|
var _owner$additionalDeta2, _owner$additionalDeta3, _displayData$owners3;
|
|
19862
20157
|
return /*#__PURE__*/React.createElement("div", {
|
|
19863
20158
|
key: idx,
|
|
@@ -19892,27 +20187,36 @@ const LayoutApplicationSummary = () => {
|
|
|
19892
20187
|
label: `${t("BPA_KHASRA")} ${kIdx + 1} (${t((khasra === null || khasra === void 0 ? void 0 : (_khasra$areaType = khasra.areaType) === null || _khasra$areaType === void 0 ? void 0 : _khasra$areaType.i18nKey) || (khasra === null || khasra === void 0 ? void 0 : khasra.areaType) || "PART")})`,
|
|
19893
20188
|
text: `${khasra === null || khasra === void 0 ? void 0 : khasra.khasraNo}(${khasra === null || khasra === void 0 ? void 0 : khasra.areaSqM} ${t("BPA_SQM")})`
|
|
19894
20189
|
});
|
|
19895
|
-
})), renderLabel(t("BPA_IS_AREA_UNDER_MASTER_PLAN_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta65 = displayData.siteDetails) === null || _displayData$siteDeta65 === void 0 ? void 0 : (_displayData$siteDeta66 = _displayData$siteDeta65[0]) === null || _displayData$siteDeta66 === void 0 ? void 0 : (_displayData$siteDeta67 = _displayData$siteDeta66.isAreaUnderMasterPlan) === null || _displayData$siteDeta67 === void 0 ? void 0 : _displayData$siteDeta67.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta68 = displayData.siteDetails) === null || _displayData$siteDeta68 === void 0 ? void 0 : (_displayData$siteDeta69 = _displayData$siteDeta68[0]) === null || _displayData$siteDeta69 === void 0 ? void 0 : _displayData$siteDeta69.isAreaUnderMasterPlan), t), renderLabel(t("BPA_PLOT_AREA_AS_PER_SITE_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta70 = displayData.siteDetails) === null || _displayData$siteDeta70 === void 0 ? void 0 : (_displayData$siteDeta71 = _displayData$siteDeta70[0]) === null || _displayData$siteDeta71 === void 0 ? void 0 : _displayData$siteDeta71.plotAreaAsPerSite, t), renderLabel(t("BPA_PLOT_AREA_AS_PER_DOCUMENT_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta72 = displayData.siteDetails) === null || _displayData$siteDeta72 === void 0 ? void 0 : (_displayData$siteDeta73 = _displayData$siteDeta72[0]) === null || _displayData$siteDeta73 === void 0 ? void 0 : _displayData$siteDeta73.plotAreaAsPerDocument) || (layoutData === null || layoutData === void 0 ? void 0 : layoutData.plotAreaAsPerDocument), t), renderLabel(t("BPA_PROPOSED_ROAD_WIDTH_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta74 = displayData.siteDetails) === null || _displayData$siteDeta74 === void 0 ? void 0 : (_displayData$siteDeta75 = _displayData$siteDeta74[0]) === null || _displayData$siteDeta75 === void 0 ? void 0 : _displayData$siteDeta75.proposedRoadWidth, t), renderLabel(t("BPA_BOUNDARY_NORTH_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta76 = displayData.siteDetails) === null || _displayData$siteDeta76 === void 0 ? void 0 : (_displayData$siteDeta77 = _displayData$siteDeta76[0]) === null || _displayData$siteDeta77 === void 0 ? void 0 : (_displayData$siteDeta78 = _displayData$siteDeta77.boundaryNorth) === null || _displayData$siteDeta78 === void 0 ? void 0 : _displayData$siteDeta78.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta79 = displayData.siteDetails) === null || _displayData$siteDeta79 === void 0 ? void 0 : (_displayData$siteDeta80 = _displayData$siteDeta79[0]) === null || _displayData$siteDeta80 === void 0 ? void 0 : _displayData$siteDeta80.boundaryNorth), t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta81 = displayData.siteDetails) === null || _displayData$siteDeta81 === void 0 ? void 0 : (_displayData$siteDeta82 = _displayData$siteDeta81[0]) === null || _displayData$siteDeta82 === void 0 ? void 0 : (_displayData$siteDeta83 = _displayData$siteDeta82.boundaryNorth) === null || _displayData$siteDeta83 === void 0 ? void 0 : _displayData$siteDeta83.code) === "OTHERS" && renderLabel(t("Specify North"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta84 = displayData.siteDetails) === null || _displayData$siteDeta84 === void 0 ? void 0 : (_displayData$siteDeta85 = _displayData$siteDeta84[0]) === null || _displayData$siteDeta85 === void 0 ? void 0 : _displayData$siteDeta85.boundaryNorthOthers, t), renderLabel(t("BPA_BOUNDARY_SOUTH_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta86 = displayData.siteDetails) === null || _displayData$siteDeta86 === void 0 ? void 0 : (_displayData$siteDeta87 = _displayData$siteDeta86[0]) === null || _displayData$siteDeta87 === void 0 ? void 0 : (_displayData$siteDeta88 = _displayData$siteDeta87.boundarySouth) === null || _displayData$siteDeta88 === void 0 ? void 0 : _displayData$siteDeta88.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta89 = displayData.siteDetails) === null || _displayData$siteDeta89 === void 0 ? void 0 : (_displayData$siteDeta90 = _displayData$siteDeta89[0]) === null || _displayData$siteDeta90 === void 0 ? void 0 : _displayData$siteDeta90.boundarySouth), t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta91 = displayData.siteDetails) === null || _displayData$siteDeta91 === void 0 ? void 0 : (_displayData$siteDeta92 = _displayData$siteDeta91[0]) === null || _displayData$siteDeta92 === void 0 ? void 0 : (_displayData$siteDeta93 = _displayData$siteDeta92.boundarySouth) === null || _displayData$siteDeta93 === void 0 ? void 0 : _displayData$siteDeta93.code) === "OTHERS" && renderLabel(t("Specify South"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta94 = displayData.siteDetails) === null || _displayData$siteDeta94 === void 0 ? void 0 : (_displayData$siteDeta95 = _displayData$siteDeta94[0]) === null || _displayData$siteDeta95 === void 0 ? void 0 : _displayData$siteDeta95.boundarySouthOthers, t), renderLabel(t("BPA_BOUNDARY_EAST_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta96 = displayData.siteDetails) === null || _displayData$siteDeta96 === void 0 ? void 0 : (_displayData$siteDeta97 = _displayData$siteDeta96[0]) === null || _displayData$siteDeta97 === void 0 ? void 0 : (_displayData$siteDeta98 = _displayData$siteDeta97.boundaryEast) === null || _displayData$siteDeta98 === void 0 ? void 0 : _displayData$siteDeta98.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta99 = displayData.siteDetails) === null || _displayData$siteDeta99 === void 0 ? void 0 : (_displayData$siteDeta100 = _displayData$siteDeta99[0]) === null || _displayData$siteDeta100 === void 0 ? void 0 : _displayData$siteDeta100.boundaryEast), t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta101 = displayData.siteDetails) === null || _displayData$siteDeta101 === void 0 ? void 0 : (_displayData$siteDeta102 = _displayData$siteDeta101[0]) === null || _displayData$siteDeta102 === void 0 ? void 0 : (_displayData$siteDeta103 = _displayData$siteDeta102.boundaryEast) === null || _displayData$siteDeta103 === void 0 ? void 0 : _displayData$siteDeta103.code) === "OTHERS" && renderLabel(t("Specify East"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta104 = displayData.siteDetails) === null || _displayData$siteDeta104 === void 0 ? void 0 : (_displayData$siteDeta105 = _displayData$siteDeta104[0]) === null || _displayData$siteDeta105 === void 0 ? void 0 : _displayData$siteDeta105.boundaryEastOthers, t), renderLabel(t("BPA_BOUNDARY_WEST_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta106 = displayData.siteDetails) === null || _displayData$siteDeta106 === void 0 ? void 0 : (_displayData$siteDeta107 = _displayData$siteDeta106[0]) === null || _displayData$siteDeta107 === void 0 ? void 0 : (_displayData$siteDeta108 = _displayData$siteDeta107.boundaryWest) === null || _displayData$siteDeta108 === void 0 ? void 0 : _displayData$siteDeta108.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta109 = displayData.siteDetails) === null || _displayData$siteDeta109 === void 0 ? void 0 : (_displayData$siteDeta110 = _displayData$siteDeta109[0]) === null || _displayData$siteDeta110 === void 0 ? void 0 : _displayData$siteDeta110.boundaryWest), t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta111 = displayData.siteDetails) === null || _displayData$siteDeta111 === void 0 ? void 0 : (_displayData$siteDeta112 = _displayData$siteDeta111[0]) === null || _displayData$siteDeta112 === void 0 ? void 0 : (_displayData$siteDeta113 = _displayData$siteDeta112.boundaryWest) === null || _displayData$siteDeta113 === void 0 ? void 0 : _displayData$siteDeta113.code) === "OTHERS" && renderLabel(t("Specify West"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta114 = displayData.siteDetails) === null || _displayData$siteDeta114 === void 0 ? void 0 : (_displayData$siteDeta115 = _displayData$siteDeta114[0]) === null || _displayData$siteDeta115 === void 0 ? void 0 : _displayData$siteDeta115.boundaryWestOthers, t), renderLabel(t("BPA_LAND_USE_ZONE_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta116 = displayData.siteDetails) === null || _displayData$siteDeta116 === void 0 ? void 0 : (_displayData$siteDeta117 = _displayData$siteDeta116[0]) === null || _displayData$siteDeta117 === void 0 ? void 0 : (_displayData$siteDeta118 = _displayData$siteDeta117.landUseZone) === null || _displayData$siteDeta118 === void 0 ? void 0 : _displayData$siteDeta118.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta119 = displayData.siteDetails) === null || _displayData$siteDeta119 === void 0 ? void 0 : (_displayData$siteDeta120 = _displayData$siteDeta119[0]) === null || _displayData$siteDeta120 === void 0 ? void 0 : _displayData$siteDeta120.landUseZone), t), renderLabel(t("BPA_LAND_SUB_USE_ZONE_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta121 = displayData.siteDetails) === null || _displayData$siteDeta121 === void 0 ? void 0 : (_displayData$siteDeta122 = _displayData$siteDeta121[0]) === null || _displayData$siteDeta122 === void 0 ? void 0 : (_displayData$siteDeta123 = _displayData$siteDeta122.landSubUseZone) === null || _displayData$siteDeta123 === void 0 ? void 0 : _displayData$siteDeta123.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta124 = displayData.siteDetails) === null || _displayData$siteDeta124 === void 0 ? void 0 : (_displayData$siteDeta125 = _displayData$siteDeta124[0]) === null || _displayData$siteDeta125 === void 0 ? void 0 : _displayData$siteDeta125.landSubUseZone), t), renderLabel(t("BPA_LAYOUT_PLOT_USE_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta126 = displayData.siteDetails) === null || _displayData$siteDeta126 === void 0 ? void 0 : (_displayData$siteDeta127 = _displayData$siteDeta126[0]) === null || _displayData$siteDeta127 === void 0 ? void 0 : (_displayData$siteDeta128 = _displayData$siteDeta127.layoutPlotUse) === null || _displayData$siteDeta128 === void 0 ? void 0 : _displayData$siteDeta128.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta129 = displayData.siteDetails) === null || _displayData$siteDeta129 === void 0 ? void 0 : (_displayData$siteDeta130 = _displayData$siteDeta129[0]) === null || _displayData$siteDeta130 === void 0 ? void 0 : _displayData$siteDeta130.layoutPlotUse), t), renderLabel(t("BPA_LAYOUT_PLOT_SUB_USE_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta131 = displayData.siteDetails) === null || _displayData$siteDeta131 === void 0 ? void 0 : (_displayData$siteDeta132 = _displayData$siteDeta131[0]) === null || _displayData$siteDeta132 === void 0 ? void 0 : (_displayData$siteDeta133 = _displayData$siteDeta132.layoutPlotSubUse) === null || _displayData$siteDeta133 === void 0 ? void 0 : _displayData$siteDeta133.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta134 = displayData.siteDetails) === null || _displayData$siteDeta134 === void 0 ? void 0 : (_displayData$siteDeta135 = _displayData$siteDeta134[0]) === null || _displayData$siteDeta135 === void 0 ? void 0 : _displayData$siteDeta135.layoutPlotSubUse), t), renderLabel(t("BPA_BUILDING_CATEGORY_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta136 = displayData.siteDetails) === null || _displayData$siteDeta136 === void 0 ? void 0 : (_displayData$siteDeta137 = _displayData$siteDeta136[0]) === null || _displayData$siteDeta137 === void 0 ? void 0 : (_displayData$siteDeta138 = _displayData$siteDeta137.buildingCategory) === null || _displayData$siteDeta138 === void 0 ? void 0 : _displayData$siteDeta138.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta139 = displayData.siteDetails) === null || _displayData$siteDeta139 === void 0 ? void 0 : (_displayData$siteDeta140 = _displayData$siteDeta139[0]) === null || _displayData$siteDeta140 === void 0 ? void 0 : _displayData$siteDeta140.buildingCategory), t), renderLabel(t("BPA_AREA_UNDER_RESIDENTIAL_USE_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta141 = displayData.siteDetails) === null || _displayData$siteDeta141 === void 0 ? void 0 : (_displayData$siteDeta142 = _displayData$siteDeta141[0]) === null || _displayData$siteDeta142 === void 0 ? void 0 : _displayData$siteDeta142.areaUnderResidentialUseInSqM, t), renderLabel(t("BPA_AREA_UNDER_COMMERCIAL_USE_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta143 = displayData.siteDetails) === null || _displayData$siteDeta143 === void 0 ? void 0 : (_displayData$siteDeta144 = _displayData$siteDeta143[0]) === null || _displayData$siteDeta144 === void 0 ? void 0 : _displayData$siteDeta144.areaUnderCommercialUseInSqM, t), renderLabel(t("BPA_AREA_UNDER_INSTUTIONAL_USE_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta145 = displayData.siteDetails) === null || _displayData$siteDeta145 === void 0 ? void 0 : (_displayData$siteDeta146 = _displayData$siteDeta145[0]) === null || _displayData$siteDeta146 === void 0 ? void 0 : _displayData$siteDeta146.areaUnderInstutionalUseInSqM, t), renderLabel(t("BPA_AREA_UNDER_COMMUNITY_CENTER_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta147 = displayData.siteDetails) === null || _displayData$siteDeta147 === void 0 ? void 0 : (_displayData$siteDeta148 = _displayData$siteDeta147[0]) === null || _displayData$siteDeta148 === void 0 ? void 0 : _displayData$siteDeta148.areaUnderCommunityCenterInSqM, t), renderLabel(t("BPA_AREA_UNDER_PARK_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta149 = displayData.siteDetails) === null || _displayData$siteDeta149 === void 0 ? void 0 : (_displayData$siteDeta150 = _displayData$siteDeta149[0]) === null || _displayData$siteDeta150 === void 0 ? void 0 : _displayData$siteDeta150.areaUnderParkInSqM, t), renderLabel(t("BPA_AREA_UNDER_ROAD_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta151 = displayData.siteDetails) === null || _displayData$siteDeta151 === void 0 ? void 0 : (_displayData$siteDeta152 = _displayData$siteDeta151[0]) === null || _displayData$siteDeta152 === void 0 ? void 0 : _displayData$siteDeta152.areaUnderRoadInSqM, t), renderLabel(t("BPA_AREA_UNDER_PARKING_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta153 = displayData.siteDetails) === null || _displayData$siteDeta153 === void 0 ? void 0 : (_displayData$siteDeta154 = _displayData$siteDeta153[0]) === null || _displayData$siteDeta154 === void 0 ? void 0 : _displayData$siteDeta154.areaUnderParkingInSqM, t), renderLabel(t("BPA_AREA_UNDER_OTHER_AMENITIES_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta155 = displayData.siteDetails) === null || _displayData$siteDeta155 === void 0 ? void 0 : (_displayData$siteDeta156 = _displayData$siteDeta155[0]) === null || _displayData$siteDeta156 === void 0 ? void 0 : _displayData$siteDeta156.areaUnderOtherAmenitiesInSqM, t), renderLabel("Building Status", displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta157 = displayData.siteDetails) === null || _displayData$siteDeta157 === void 0 ? void 0 : (_displayData$siteDeta158 = _displayData$siteDeta157[0]) === null || _displayData$siteDeta158 === void 0 ? void 0 : _displayData$siteDeta158.buildingStatus, t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta159 = displayData.siteDetails) === null || _displayData$siteDeta159 === void 0 ? void 0 : (_displayData$siteDeta160 = _displayData$siteDeta159[0]) === null || _displayData$siteDeta160 === void 0 ? void 0 : _displayData$siteDeta160.floorArea) && (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta161 = displayData.siteDetails) === null || _displayData$siteDeta161 === void 0 ? void 0 : (_displayData$siteDeta162 = _displayData$siteDeta161[0]) === null || _displayData$siteDeta162 === void 0 ? void 0 : (_displayData$siteDeta163 = _displayData$siteDeta162.floorArea) === null || _displayData$siteDeta163 === void 0 ? void 0 : _displayData$siteDeta163.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta164 = displayData.siteDetails) === null || _displayData$siteDeta164 === void 0 ? void 0 : (_displayData$siteDeta165 = _displayData$siteDeta164[0]) === null || _displayData$siteDeta165 === void 0 ? void 0 : (_displayData$siteDeta166 = _displayData$siteDeta165.floorArea) === null || _displayData$siteDeta166 === void 0 ? void 0 : _displayData$siteDeta166.map((floor, idx) => renderLabel(`Floor ${idx + 1} Area (Sq.M)`, floor === null || floor === void 0 ? void 0 : floor.value, t)))))), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet49 = layoutData.layoutDetails) === null || _layoutData$layoutDet49 === void 0 ? void 0 : (_layoutData$layoutDet50 = _layoutData$layoutDet49.additionalDetails) === null || _layoutData$layoutDet50 === void 0 ? void 0 : (_layoutData$layoutDet51 = _layoutData$layoutDet50.siteDetails) === null || _layoutData$layoutDet51 === void 0 ? void 0 : _layoutData$layoutDet51.scrutinyDetails) && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("SCRUTINY_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
20190
|
+
})), renderLabel(t("BPA_IS_AREA_UNDER_MASTER_PLAN_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta65 = displayData.siteDetails) === null || _displayData$siteDeta65 === void 0 ? void 0 : (_displayData$siteDeta66 = _displayData$siteDeta65[0]) === null || _displayData$siteDeta66 === void 0 ? void 0 : (_displayData$siteDeta67 = _displayData$siteDeta66.isAreaUnderMasterPlan) === null || _displayData$siteDeta67 === void 0 ? void 0 : _displayData$siteDeta67.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta68 = displayData.siteDetails) === null || _displayData$siteDeta68 === void 0 ? void 0 : (_displayData$siteDeta69 = _displayData$siteDeta68[0]) === null || _displayData$siteDeta69 === void 0 ? void 0 : _displayData$siteDeta69.isAreaUnderMasterPlan), t), renderLabel(t("BPA_PLOT_AREA_AS_PER_SITE_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta70 = displayData.siteDetails) === null || _displayData$siteDeta70 === void 0 ? void 0 : (_displayData$siteDeta71 = _displayData$siteDeta70[0]) === null || _displayData$siteDeta71 === void 0 ? void 0 : _displayData$siteDeta71.plotAreaAsPerSite, t), renderLabel(t("BPA_PLOT_AREA_AS_PER_DOCUMENT_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta72 = displayData.siteDetails) === null || _displayData$siteDeta72 === void 0 ? void 0 : (_displayData$siteDeta73 = _displayData$siteDeta72[0]) === null || _displayData$siteDeta73 === void 0 ? void 0 : _displayData$siteDeta73.plotAreaAsPerDocument) || (layoutData === null || layoutData === void 0 ? void 0 : layoutData.plotAreaAsPerDocument), t), renderLabel(t("BPA_PROPOSED_ROAD_WIDTH_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta74 = displayData.siteDetails) === null || _displayData$siteDeta74 === void 0 ? void 0 : (_displayData$siteDeta75 = _displayData$siteDeta74[0]) === null || _displayData$siteDeta75 === void 0 ? void 0 : _displayData$siteDeta75.proposedRoadWidth, t), renderLabel(t("BPA_BOUNDARY_NORTH_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta76 = displayData.siteDetails) === null || _displayData$siteDeta76 === void 0 ? void 0 : (_displayData$siteDeta77 = _displayData$siteDeta76[0]) === null || _displayData$siteDeta77 === void 0 ? void 0 : (_displayData$siteDeta78 = _displayData$siteDeta77.boundaryNorth) === null || _displayData$siteDeta78 === void 0 ? void 0 : _displayData$siteDeta78.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta79 = displayData.siteDetails) === null || _displayData$siteDeta79 === void 0 ? void 0 : (_displayData$siteDeta80 = _displayData$siteDeta79[0]) === null || _displayData$siteDeta80 === void 0 ? void 0 : _displayData$siteDeta80.boundaryNorth), t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta81 = displayData.siteDetails) === null || _displayData$siteDeta81 === void 0 ? void 0 : (_displayData$siteDeta82 = _displayData$siteDeta81[0]) === null || _displayData$siteDeta82 === void 0 ? void 0 : (_displayData$siteDeta83 = _displayData$siteDeta82.boundaryNorth) === null || _displayData$siteDeta83 === void 0 ? void 0 : _displayData$siteDeta83.code) === "OTHERS" && renderLabel(t("Specify North"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta84 = displayData.siteDetails) === null || _displayData$siteDeta84 === void 0 ? void 0 : (_displayData$siteDeta85 = _displayData$siteDeta84[0]) === null || _displayData$siteDeta85 === void 0 ? void 0 : _displayData$siteDeta85.boundaryNorthOthers, t), renderLabel(t("BPA_BOUNDARY_SOUTH_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta86 = displayData.siteDetails) === null || _displayData$siteDeta86 === void 0 ? void 0 : (_displayData$siteDeta87 = _displayData$siteDeta86[0]) === null || _displayData$siteDeta87 === void 0 ? void 0 : (_displayData$siteDeta88 = _displayData$siteDeta87.boundarySouth) === null || _displayData$siteDeta88 === void 0 ? void 0 : _displayData$siteDeta88.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta89 = displayData.siteDetails) === null || _displayData$siteDeta89 === void 0 ? void 0 : (_displayData$siteDeta90 = _displayData$siteDeta89[0]) === null || _displayData$siteDeta90 === void 0 ? void 0 : _displayData$siteDeta90.boundarySouth), t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta91 = displayData.siteDetails) === null || _displayData$siteDeta91 === void 0 ? void 0 : (_displayData$siteDeta92 = _displayData$siteDeta91[0]) === null || _displayData$siteDeta92 === void 0 ? void 0 : (_displayData$siteDeta93 = _displayData$siteDeta92.boundarySouth) === null || _displayData$siteDeta93 === void 0 ? void 0 : _displayData$siteDeta93.code) === "OTHERS" && renderLabel(t("Specify South"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta94 = displayData.siteDetails) === null || _displayData$siteDeta94 === void 0 ? void 0 : (_displayData$siteDeta95 = _displayData$siteDeta94[0]) === null || _displayData$siteDeta95 === void 0 ? void 0 : _displayData$siteDeta95.boundarySouthOthers, t), renderLabel(t("BPA_BOUNDARY_EAST_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta96 = displayData.siteDetails) === null || _displayData$siteDeta96 === void 0 ? void 0 : (_displayData$siteDeta97 = _displayData$siteDeta96[0]) === null || _displayData$siteDeta97 === void 0 ? void 0 : (_displayData$siteDeta98 = _displayData$siteDeta97.boundaryEast) === null || _displayData$siteDeta98 === void 0 ? void 0 : _displayData$siteDeta98.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta99 = displayData.siteDetails) === null || _displayData$siteDeta99 === void 0 ? void 0 : (_displayData$siteDeta100 = _displayData$siteDeta99[0]) === null || _displayData$siteDeta100 === void 0 ? void 0 : _displayData$siteDeta100.boundaryEast), t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta101 = displayData.siteDetails) === null || _displayData$siteDeta101 === void 0 ? void 0 : (_displayData$siteDeta102 = _displayData$siteDeta101[0]) === null || _displayData$siteDeta102 === void 0 ? void 0 : (_displayData$siteDeta103 = _displayData$siteDeta102.boundaryEast) === null || _displayData$siteDeta103 === void 0 ? void 0 : _displayData$siteDeta103.code) === "OTHERS" && renderLabel(t("Specify East"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta104 = displayData.siteDetails) === null || _displayData$siteDeta104 === void 0 ? void 0 : (_displayData$siteDeta105 = _displayData$siteDeta104[0]) === null || _displayData$siteDeta105 === void 0 ? void 0 : _displayData$siteDeta105.boundaryEastOthers, t), renderLabel(t("BPA_BOUNDARY_WEST_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta106 = displayData.siteDetails) === null || _displayData$siteDeta106 === void 0 ? void 0 : (_displayData$siteDeta107 = _displayData$siteDeta106[0]) === null || _displayData$siteDeta107 === void 0 ? void 0 : (_displayData$siteDeta108 = _displayData$siteDeta107.boundaryWest) === null || _displayData$siteDeta108 === void 0 ? void 0 : _displayData$siteDeta108.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta109 = displayData.siteDetails) === null || _displayData$siteDeta109 === void 0 ? void 0 : (_displayData$siteDeta110 = _displayData$siteDeta109[0]) === null || _displayData$siteDeta110 === void 0 ? void 0 : _displayData$siteDeta110.boundaryWest), t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta111 = displayData.siteDetails) === null || _displayData$siteDeta111 === void 0 ? void 0 : (_displayData$siteDeta112 = _displayData$siteDeta111[0]) === null || _displayData$siteDeta112 === void 0 ? void 0 : (_displayData$siteDeta113 = _displayData$siteDeta112.boundaryWest) === null || _displayData$siteDeta113 === void 0 ? void 0 : _displayData$siteDeta113.code) === "OTHERS" && renderLabel(t("Specify West"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta114 = displayData.siteDetails) === null || _displayData$siteDeta114 === void 0 ? void 0 : (_displayData$siteDeta115 = _displayData$siteDeta114[0]) === null || _displayData$siteDeta115 === void 0 ? void 0 : _displayData$siteDeta115.boundaryWestOthers, t), renderLabel(t("BPA_LAND_USE_ZONE_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta116 = displayData.siteDetails) === null || _displayData$siteDeta116 === void 0 ? void 0 : (_displayData$siteDeta117 = _displayData$siteDeta116[0]) === null || _displayData$siteDeta117 === void 0 ? void 0 : (_displayData$siteDeta118 = _displayData$siteDeta117.landUseZone) === null || _displayData$siteDeta118 === void 0 ? void 0 : _displayData$siteDeta118.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta119 = displayData.siteDetails) === null || _displayData$siteDeta119 === void 0 ? void 0 : (_displayData$siteDeta120 = _displayData$siteDeta119[0]) === null || _displayData$siteDeta120 === void 0 ? void 0 : _displayData$siteDeta120.landUseZone), t), renderLabel(t("BPA_LAND_SUB_USE_ZONE_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta121 = displayData.siteDetails) === null || _displayData$siteDeta121 === void 0 ? void 0 : (_displayData$siteDeta122 = _displayData$siteDeta121[0]) === null || _displayData$siteDeta122 === void 0 ? void 0 : (_displayData$siteDeta123 = _displayData$siteDeta122.landSubUseZone) === null || _displayData$siteDeta123 === void 0 ? void 0 : _displayData$siteDeta123.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta124 = displayData.siteDetails) === null || _displayData$siteDeta124 === void 0 ? void 0 : (_displayData$siteDeta125 = _displayData$siteDeta124[0]) === null || _displayData$siteDeta125 === void 0 ? void 0 : _displayData$siteDeta125.landSubUseZone), t), renderLabel(t("BPA_LAYOUT_PLOT_USE_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta126 = displayData.siteDetails) === null || _displayData$siteDeta126 === void 0 ? void 0 : (_displayData$siteDeta127 = _displayData$siteDeta126[0]) === null || _displayData$siteDeta127 === void 0 ? void 0 : (_displayData$siteDeta128 = _displayData$siteDeta127.layoutPlotUse) === null || _displayData$siteDeta128 === void 0 ? void 0 : _displayData$siteDeta128.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta129 = displayData.siteDetails) === null || _displayData$siteDeta129 === void 0 ? void 0 : (_displayData$siteDeta130 = _displayData$siteDeta129[0]) === null || _displayData$siteDeta130 === void 0 ? void 0 : _displayData$siteDeta130.layoutPlotUse), t), renderLabel(t("BPA_LAYOUT_PLOT_SUB_USE_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta131 = displayData.siteDetails) === null || _displayData$siteDeta131 === void 0 ? void 0 : (_displayData$siteDeta132 = _displayData$siteDeta131[0]) === null || _displayData$siteDeta132 === void 0 ? void 0 : (_displayData$siteDeta133 = _displayData$siteDeta132.layoutPlotSubUse) === null || _displayData$siteDeta133 === void 0 ? void 0 : _displayData$siteDeta133.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta134 = displayData.siteDetails) === null || _displayData$siteDeta134 === void 0 ? void 0 : (_displayData$siteDeta135 = _displayData$siteDeta134[0]) === null || _displayData$siteDeta135 === void 0 ? void 0 : _displayData$siteDeta135.layoutPlotSubUse), t), renderLabel(t("BPA_BUILDING_CATEGORY_LABEL"), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta136 = displayData.siteDetails) === null || _displayData$siteDeta136 === void 0 ? void 0 : (_displayData$siteDeta137 = _displayData$siteDeta136[0]) === null || _displayData$siteDeta137 === void 0 ? void 0 : (_displayData$siteDeta138 = _displayData$siteDeta137.buildingCategory) === null || _displayData$siteDeta138 === void 0 ? void 0 : _displayData$siteDeta138.name) || (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta139 = displayData.siteDetails) === null || _displayData$siteDeta139 === void 0 ? void 0 : (_displayData$siteDeta140 = _displayData$siteDeta139[0]) === null || _displayData$siteDeta140 === void 0 ? void 0 : _displayData$siteDeta140.buildingCategory), t), renderLabel(t("BPA_AREA_UNDER_RESIDENTIAL_USE_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta141 = displayData.siteDetails) === null || _displayData$siteDeta141 === void 0 ? void 0 : (_displayData$siteDeta142 = _displayData$siteDeta141[0]) === null || _displayData$siteDeta142 === void 0 ? void 0 : _displayData$siteDeta142.areaUnderResidentialUseInSqM, t), renderLabel(t("BPA_AREA_UNDER_COMMERCIAL_USE_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta143 = displayData.siteDetails) === null || _displayData$siteDeta143 === void 0 ? void 0 : (_displayData$siteDeta144 = _displayData$siteDeta143[0]) === null || _displayData$siteDeta144 === void 0 ? void 0 : _displayData$siteDeta144.areaUnderCommercialUseInSqM, t), renderLabel(t("BPA_AREA_UNDER_INSTUTIONAL_USE_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta145 = displayData.siteDetails) === null || _displayData$siteDeta145 === void 0 ? void 0 : (_displayData$siteDeta146 = _displayData$siteDeta145[0]) === null || _displayData$siteDeta146 === void 0 ? void 0 : _displayData$siteDeta146.areaUnderInstutionalUseInSqM, t), renderLabel(t("BPA_AREA_UNDER_COMMUNITY_CENTER_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta147 = displayData.siteDetails) === null || _displayData$siteDeta147 === void 0 ? void 0 : (_displayData$siteDeta148 = _displayData$siteDeta147[0]) === null || _displayData$siteDeta148 === void 0 ? void 0 : _displayData$siteDeta148.areaUnderCommunityCenterInSqM, t), renderLabel(t("BPA_AREA_UNDER_PARK_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta149 = displayData.siteDetails) === null || _displayData$siteDeta149 === void 0 ? void 0 : (_displayData$siteDeta150 = _displayData$siteDeta149[0]) === null || _displayData$siteDeta150 === void 0 ? void 0 : _displayData$siteDeta150.areaUnderParkInSqM, t), renderLabel(t("BPA_AREA_UNDER_ROAD_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta151 = displayData.siteDetails) === null || _displayData$siteDeta151 === void 0 ? void 0 : (_displayData$siteDeta152 = _displayData$siteDeta151[0]) === null || _displayData$siteDeta152 === void 0 ? void 0 : _displayData$siteDeta152.areaUnderRoadInSqM, t), renderLabel(t("BPA_AREA_UNDER_PARKING_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta153 = displayData.siteDetails) === null || _displayData$siteDeta153 === void 0 ? void 0 : (_displayData$siteDeta154 = _displayData$siteDeta153[0]) === null || _displayData$siteDeta154 === void 0 ? void 0 : _displayData$siteDeta154.areaUnderParkingInSqM, t), renderLabel(t("BPA_AREA_UNDER_OTHER_AMENITIES_IN_SQ_M_LABEL"), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta155 = displayData.siteDetails) === null || _displayData$siteDeta155 === void 0 ? void 0 : (_displayData$siteDeta156 = _displayData$siteDeta155[0]) === null || _displayData$siteDeta156 === void 0 ? void 0 : _displayData$siteDeta156.areaUnderOtherAmenitiesInSqM, t), renderLabel("Building Status", displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta157 = displayData.siteDetails) === null || _displayData$siteDeta157 === void 0 ? void 0 : (_displayData$siteDeta158 = _displayData$siteDeta157[0]) === null || _displayData$siteDeta158 === void 0 ? void 0 : _displayData$siteDeta158.buildingStatus, t), (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta159 = displayData.siteDetails) === null || _displayData$siteDeta159 === void 0 ? void 0 : (_displayData$siteDeta160 = _displayData$siteDeta159[0]) === null || _displayData$siteDeta160 === void 0 ? void 0 : _displayData$siteDeta160.floorArea) && (displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta161 = displayData.siteDetails) === null || _displayData$siteDeta161 === void 0 ? void 0 : (_displayData$siteDeta162 = _displayData$siteDeta161[0]) === null || _displayData$siteDeta162 === void 0 ? void 0 : (_displayData$siteDeta163 = _displayData$siteDeta162.floorArea) === null || _displayData$siteDeta163 === void 0 ? void 0 : _displayData$siteDeta163.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta164 = displayData.siteDetails) === null || _displayData$siteDeta164 === void 0 ? void 0 : (_displayData$siteDeta165 = _displayData$siteDeta164[0]) === null || _displayData$siteDeta165 === void 0 ? void 0 : (_displayData$siteDeta166 = _displayData$siteDeta165.floorArea) === null || _displayData$siteDeta166 === void 0 ? void 0 : _displayData$siteDeta166.map((floor, idx) => renderLabel(`Floor ${idx + 1} Area (Sq.M)`, floor === null || floor === void 0 ? void 0 : floor.value, t)))))), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet51 = layoutData.layoutDetails) === null || _layoutData$layoutDet51 === void 0 ? void 0 : (_layoutData$layoutDet52 = _layoutData$layoutDet51.additionalDetails) === null || _layoutData$layoutDet52 === void 0 ? void 0 : (_layoutData$layoutDet53 = _layoutData$layoutDet52.siteDetails) === null || _layoutData$layoutDet53 === void 0 ? void 0 : _layoutData$layoutDet53.scrutinyDetails) && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("SCRUTINY_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
19896
20191
|
style: {
|
|
19897
20192
|
background: "#FAFAFA",
|
|
19898
20193
|
padding: "16px",
|
|
19899
20194
|
borderRadius: "4px"
|
|
19900
20195
|
}
|
|
19901
|
-
}, /*#__PURE__*/React.createElement(StatusTable, null, renderLabel(t("EDCR_NUMBER"), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20196
|
+
}, /*#__PURE__*/React.createElement(StatusTable, null, renderLabel(t("EDCR_NUMBER"), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet54 = layoutData.layoutDetails) === null || _layoutData$layoutDet54 === void 0 ? void 0 : (_layoutData$layoutDet55 = _layoutData$layoutDet54.additionalDetails) === null || _layoutData$layoutDet55 === void 0 ? void 0 : (_layoutData$layoutDet56 = _layoutData$layoutDet55.siteDetails) === null || _layoutData$layoutDet56 === void 0 ? void 0 : _layoutData$layoutDet56.scrutinyNumber) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet57 = layoutData.layoutDetails) === null || _layoutData$layoutDet57 === void 0 ? void 0 : (_layoutData$layoutDet58 = _layoutData$layoutDet57.additionalDetails) === null || _layoutData$layoutDet58 === void 0 ? void 0 : (_layoutData$layoutDet59 = _layoutData$layoutDet58.siteDetails) === null || _layoutData$layoutDet59 === void 0 ? void 0 : _layoutData$layoutDet59.edcrNumber), t), renderLabel(t("APPLICANT_NAME"), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet60 = layoutData.layoutDetails) === null || _layoutData$layoutDet60 === void 0 ? void 0 : (_layoutData$layoutDet61 = _layoutData$layoutDet60.additionalDetails) === null || _layoutData$layoutDet61 === void 0 ? void 0 : (_layoutData$layoutDet62 = _layoutData$layoutDet61.siteDetails) === null || _layoutData$layoutDet62 === void 0 ? void 0 : (_layoutData$layoutDet63 = _layoutData$layoutDet62.scrutinyDetails) === null || _layoutData$layoutDet63 === void 0 ? void 0 : (_layoutData$layoutDet64 = _layoutData$layoutDet63.planDetail) === null || _layoutData$layoutDet64 === void 0 ? void 0 : (_layoutData$layoutDet65 = _layoutData$layoutDet64.planInformation) === null || _layoutData$layoutDet65 === void 0 ? void 0 : _layoutData$layoutDet65.applicantName) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet66 = layoutData.layoutDetails) === null || _layoutData$layoutDet66 === void 0 ? void 0 : (_layoutData$layoutDet67 = _layoutData$layoutDet66.additionalDetails) === null || _layoutData$layoutDet67 === void 0 ? void 0 : (_layoutData$layoutDet68 = _layoutData$layoutDet67.siteDetails) === null || _layoutData$layoutDet68 === void 0 ? void 0 : (_layoutData$layoutDet69 = _layoutData$layoutDet68.scrutinyDetails) === null || _layoutData$layoutDet69 === void 0 ? void 0 : _layoutData$layoutDet69.applicantName), t), renderLabel(t("PLOT_AREA"), layoutData !== null && layoutData !== void 0 && (_layoutData$layoutDet70 = layoutData.layoutDetails) !== null && _layoutData$layoutDet70 !== void 0 && (_layoutData$layoutDet71 = _layoutData$layoutDet70.additionalDetails) !== null && _layoutData$layoutDet71 !== void 0 && (_layoutData$layoutDet72 = _layoutData$layoutDet71.siteDetails) !== null && _layoutData$layoutDet72 !== void 0 && (_layoutData$layoutDet73 = _layoutData$layoutDet72.scrutinyDetails) !== null && _layoutData$layoutDet73 !== void 0 && (_layoutData$layoutDet74 = _layoutData$layoutDet73.planDetail) !== null && _layoutData$layoutDet74 !== void 0 && (_layoutData$layoutDet75 = _layoutData$layoutDet74.plot) !== null && _layoutData$layoutDet75 !== void 0 && _layoutData$layoutDet75.area || layoutData !== null && layoutData !== void 0 && (_layoutData$layoutDet76 = layoutData.layoutDetails) !== null && _layoutData$layoutDet76 !== void 0 && (_layoutData$layoutDet77 = _layoutData$layoutDet76.additionalDetails) !== null && _layoutData$layoutDet77 !== void 0 && (_layoutData$layoutDet78 = _layoutData$layoutDet77.siteDetails) !== null && _layoutData$layoutDet78 !== void 0 && (_layoutData$layoutDet79 = _layoutData$layoutDet78.scrutinyDetails) !== null && _layoutData$layoutDet79 !== void 0 && _layoutData$layoutDet79.plotArea ? `${(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet80 = layoutData.layoutDetails) === null || _layoutData$layoutDet80 === void 0 ? void 0 : (_layoutData$layoutDet81 = _layoutData$layoutDet80.additionalDetails) === null || _layoutData$layoutDet81 === void 0 ? void 0 : (_layoutData$layoutDet82 = _layoutData$layoutDet81.siteDetails) === null || _layoutData$layoutDet82 === void 0 ? void 0 : (_layoutData$layoutDet83 = _layoutData$layoutDet82.scrutinyDetails) === null || _layoutData$layoutDet83 === void 0 ? void 0 : (_layoutData$layoutDet84 = _layoutData$layoutDet83.planDetail) === null || _layoutData$layoutDet84 === void 0 ? void 0 : (_layoutData$layoutDet85 = _layoutData$layoutDet84.plot) === null || _layoutData$layoutDet85 === void 0 ? void 0 : _layoutData$layoutDet85.area) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet86 = layoutData.layoutDetails) === null || _layoutData$layoutDet86 === void 0 ? void 0 : (_layoutData$layoutDet87 = _layoutData$layoutDet86.additionalDetails) === null || _layoutData$layoutDet87 === void 0 ? void 0 : (_layoutData$layoutDet88 = _layoutData$layoutDet87.siteDetails) === null || _layoutData$layoutDet88 === void 0 ? void 0 : (_layoutData$layoutDet89 = _layoutData$layoutDet88.scrutinyDetails) === null || _layoutData$layoutDet89 === void 0 ? void 0 : _layoutData$layoutDet89.plotArea)} Sq-m` : "N/A", t), renderLabel(t("BPA_BUILDING_HEIGHT_LABEL"), layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet90 = layoutData.layoutDetails) === null || _layoutData$layoutDet90 === void 0 ? void 0 : (_layoutData$layoutDet91 = _layoutData$layoutDet90.additionalDetails) === null || _layoutData$layoutDet91 === void 0 ? void 0 : (_layoutData$layoutDet92 = _layoutData$layoutDet91.siteDetails) === null || _layoutData$layoutDet92 === void 0 ? void 0 : (_layoutData$layoutDet93 = _layoutData$layoutDet92.scrutinyDetails) === null || _layoutData$layoutDet93 === void 0 ? void 0 : _layoutData$layoutDet93.buildingHeight, t), renderLabel(t("STATUS"), layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet94 = layoutData.layoutDetails) === null || _layoutData$layoutDet94 === void 0 ? void 0 : (_layoutData$layoutDet95 = _layoutData$layoutDet94.additionalDetails) === null || _layoutData$layoutDet95 === void 0 ? void 0 : (_layoutData$layoutDet96 = _layoutData$layoutDet95.siteDetails) === null || _layoutData$layoutDet96 === void 0 ? void 0 : (_layoutData$layoutDet97 = _layoutData$layoutDet96.scrutinyDetails) === null || _layoutData$layoutDet97 === void 0 ? void 0 : _layoutData$layoutDet97.status, t), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet98 = layoutData.layoutDetails) === null || _layoutData$layoutDet98 === void 0 ? void 0 : (_layoutData$layoutDet99 = _layoutData$layoutDet98.additionalDetails) === null || _layoutData$layoutDet99 === void 0 ? void 0 : (_layoutData$layoutDet100 = _layoutData$layoutDet99.siteDetails) === null || _layoutData$layoutDet100 === void 0 ? void 0 : (_layoutData$layoutDet101 = _layoutData$layoutDet100.scrutinyDetails) === null || _layoutData$layoutDet101 === void 0 ? void 0 : _layoutData$layoutDet101.updatedDxfFile) && /*#__PURE__*/React.createElement(Row, {
|
|
19902
20197
|
label: t("UPDATED_DXF_FILE"),
|
|
19903
20198
|
text: /*#__PURE__*/React.createElement(DocumentLink, {
|
|
19904
|
-
docUrl: layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
19905
|
-
tenantId: layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20199
|
+
docUrl: layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet102 = layoutData.layoutDetails) === null || _layoutData$layoutDet102 === void 0 ? void 0 : (_layoutData$layoutDet103 = _layoutData$layoutDet102.additionalDetails) === null || _layoutData$layoutDet103 === void 0 ? void 0 : (_layoutData$layoutDet104 = _layoutData$layoutDet103.siteDetails) === null || _layoutData$layoutDet104 === void 0 ? void 0 : (_layoutData$layoutDet105 = _layoutData$layoutDet104.scrutinyDetails) === null || _layoutData$layoutDet105 === void 0 ? void 0 : _layoutData$layoutDet105.updatedDxfFile,
|
|
20200
|
+
tenantId: layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet106 = layoutData.layoutDetails) === null || _layoutData$layoutDet106 === void 0 ? void 0 : (_layoutData$layoutDet107 = _layoutData$layoutDet106.additionalDetails) === null || _layoutData$layoutDet107 === void 0 ? void 0 : (_layoutData$layoutDet108 = _layoutData$layoutDet107.siteDetails) === null || _layoutData$layoutDet108 === void 0 ? void 0 : (_layoutData$layoutDet109 = _layoutData$layoutDet108.scrutinyDetails) === null || _layoutData$layoutDet109 === void 0 ? void 0 : _layoutData$layoutDet109.tenantId,
|
|
19906
20201
|
t: t
|
|
19907
20202
|
})
|
|
19908
|
-
}), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20203
|
+
}), (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet110 = layoutData.layoutDetails) === null || _layoutData$layoutDet110 === void 0 ? void 0 : (_layoutData$layoutDet111 = _layoutData$layoutDet110.additionalDetails) === null || _layoutData$layoutDet111 === void 0 ? void 0 : (_layoutData$layoutDet112 = _layoutData$layoutDet111.siteDetails) === null || _layoutData$layoutDet112 === void 0 ? void 0 : (_layoutData$layoutDet113 = _layoutData$layoutDet112.scrutinyDetails) === null || _layoutData$layoutDet113 === void 0 ? void 0 : _layoutData$layoutDet113.planReport) && /*#__PURE__*/React.createElement(Row, {
|
|
19909
20204
|
label: t("PLAN_REPORT"),
|
|
19910
20205
|
text: /*#__PURE__*/React.createElement(DocumentLink, {
|
|
19911
|
-
docUrl: layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
19912
|
-
tenantId: layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20206
|
+
docUrl: layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet114 = layoutData.layoutDetails) === null || _layoutData$layoutDet114 === void 0 ? void 0 : (_layoutData$layoutDet115 = _layoutData$layoutDet114.additionalDetails) === null || _layoutData$layoutDet115 === void 0 ? void 0 : (_layoutData$layoutDet116 = _layoutData$layoutDet115.siteDetails) === null || _layoutData$layoutDet116 === void 0 ? void 0 : (_layoutData$layoutDet117 = _layoutData$layoutDet116.scrutinyDetails) === null || _layoutData$layoutDet117 === void 0 ? void 0 : _layoutData$layoutDet117.planReport,
|
|
20207
|
+
tenantId: layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet118 = layoutData.layoutDetails) === null || _layoutData$layoutDet118 === void 0 ? void 0 : (_layoutData$layoutDet119 = _layoutData$layoutDet118.additionalDetails) === null || _layoutData$layoutDet119 === void 0 ? void 0 : (_layoutData$layoutDet120 = _layoutData$layoutDet119.siteDetails) === null || _layoutData$layoutDet120 === void 0 ? void 0 : (_layoutData$layoutDet121 = _layoutData$layoutDet120.scrutinyDetails) === null || _layoutData$layoutDet121 === void 0 ? void 0 : _layoutData$layoutDet121.tenantId,
|
|
19913
20208
|
t: t
|
|
19914
20209
|
})
|
|
19915
|
-
})))),
|
|
20210
|
+
})))), geoJSON && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("MAP_GEO_LOCATION")), /*#__PURE__*/React.createElement("div", {
|
|
20211
|
+
className: "h-[600px] w-full overflow-hidden bg-gray-100 rounded-xl border border-gray-200 dark:border-gray-700 relative"
|
|
20212
|
+
}, /*#__PURE__*/React.createElement(MapViewer, {
|
|
20213
|
+
geoJSON: geoJSON,
|
|
20214
|
+
center: center,
|
|
20215
|
+
onCenterChange: () => {},
|
|
20216
|
+
onMapMove: () => {},
|
|
20217
|
+
flyToLocation: center,
|
|
20218
|
+
readOnly: true
|
|
20219
|
+
}))), (sitePhotographs === null || sitePhotographs === void 0 ? void 0 : sitePhotographs.length) > 0 && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_SITE_PHOTOGRAPHS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
19916
20220
|
style: {
|
|
19917
20221
|
display: "flex",
|
|
19918
20222
|
gap: "20px",
|
|
@@ -19936,10 +20240,10 @@ const LayoutApplicationSummary = () => {
|
|
|
19936
20240
|
...applicationDetails
|
|
19937
20241
|
},
|
|
19938
20242
|
applicationDetails: {
|
|
19939
|
-
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20243
|
+
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet122 = layoutData.layoutDetails) === null || _layoutData$layoutDet122 === void 0 ? void 0 : (_layoutData$layoutDet123 = _layoutData$layoutDet122.additionalDetails) === null || _layoutData$layoutDet123 === void 0 ? void 0 : _layoutData$layoutDet123.applicationDetails)
|
|
19940
20244
|
},
|
|
19941
20245
|
siteDetails: {
|
|
19942
|
-
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20246
|
+
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet124 = layoutData.layoutDetails) === null || _layoutData$layoutDet124 === void 0 ? void 0 : (_layoutData$layoutDet125 = _layoutData$layoutDet124.additionalDetails) === null || _layoutData$layoutDet125 === void 0 ? void 0 : _layoutData$layoutDet125.siteDetails)
|
|
19943
20247
|
}
|
|
19944
20248
|
},
|
|
19945
20249
|
feeType: "PAY1",
|
|
@@ -19954,12 +20258,12 @@ const LayoutApplicationSummary = () => {
|
|
|
19954
20258
|
...applicationDetails
|
|
19955
20259
|
},
|
|
19956
20260
|
applicationDetails: {
|
|
19957
|
-
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20261
|
+
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet126 = layoutData.layoutDetails) === null || _layoutData$layoutDet126 === void 0 ? void 0 : (_layoutData$layoutDet127 = _layoutData$layoutDet126.additionalDetails) === null || _layoutData$layoutDet127 === void 0 ? void 0 : _layoutData$layoutDet127.applicationDetails)
|
|
19958
20262
|
},
|
|
19959
20263
|
siteDetails: {
|
|
19960
|
-
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20264
|
+
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet128 = layoutData.layoutDetails) === null || _layoutData$layoutDet128 === void 0 ? void 0 : (_layoutData$layoutDet129 = _layoutData$layoutDet128.additionalDetails) === null || _layoutData$layoutDet129 === void 0 ? void 0 : _layoutData$layoutDet129.siteDetails)
|
|
19961
20265
|
},
|
|
19962
|
-
calculations: (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
20266
|
+
calculations: (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet130 = layoutData.layoutDetails) === null || _layoutData$layoutDet130 === void 0 ? void 0 : (_layoutData$layoutDet131 = _layoutData$layoutDet130.additionalDetails) === null || _layoutData$layoutDet131 === void 0 ? void 0 : _layoutData$layoutDet131.calculations) || []
|
|
19963
20267
|
},
|
|
19964
20268
|
feeType: "PAY2",
|
|
19965
20269
|
feeAdjustments: feeAdjustments,
|
|
@@ -19988,7 +20292,7 @@ const LayoutApplicationSummary = () => {
|
|
|
19988
20292
|
textAlign: "left",
|
|
19989
20293
|
marginBottom: "20px"
|
|
19990
20294
|
}
|
|
19991
|
-
})), actions && actions.length > 0 && (isCitizenApprovalInProcess && isUserCitizen || !isCitizenApprovalInProcess && !isUserCitizen) && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
20295
|
+
})), actions && actions.length > 0 && (isCitizenApprovalInProcess && isUserCitizen || !isCitizenApprovalInProcess && !isUserCitizen) && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data13 = workflowDetails.data) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.actionState) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && _workflowDetails$data15.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
|
|
19992
20296
|
localeKeyPrefix: `WF_EMPLOYEE_LAYOUT`,
|
|
19993
20297
|
options: actions,
|
|
19994
20298
|
optionKey: "action",
|
|
@@ -20653,40 +20957,40 @@ const App = ({
|
|
|
20653
20957
|
path: `${path}/layout/search-application`,
|
|
20654
20958
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(LayoutSearchApplication, props))
|
|
20655
20959
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20656
|
-
path: `${path}/layout/application-overview/:id`,
|
|
20960
|
+
path: `${path}/layout/application-overview/:id(.+)`,
|
|
20657
20961
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(LayoutApplicationSummary, props))
|
|
20658
20962
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20659
20963
|
path: `${path}/layout/my-applications`,
|
|
20660
20964
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(LayoutMyApplications, props))
|
|
20661
20965
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20662
|
-
path: `${path}/layout/edit-application/:id`,
|
|
20966
|
+
path: `${path}/layout/edit-application/:id(.+)`,
|
|
20663
20967
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(NewLayoutEditLayoutApplication, props))
|
|
20664
20968
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20665
20969
|
path: `${path}/layout/apply`,
|
|
20666
20970
|
component: LayoutStepperForm
|
|
20667
20971
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20668
|
-
path: `${path}/layout/response/:id`,
|
|
20972
|
+
path: `${path}/layout/response/:id(.+)`,
|
|
20669
20973
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(LayoutResponseCitizen, props))
|
|
20670
20974
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20671
|
-
path: `${path}/layout/response/:id`,
|
|
20975
|
+
path: `${path}/layout/response/:id(.+)`,
|
|
20672
20976
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(LayoutResponseEmployee, props))
|
|
20673
20977
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20674
20978
|
path: `${path}/clu/apply`,
|
|
20675
20979
|
component: CLUStepperForm
|
|
20676
20980
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20677
|
-
path: `${path}/clu/response/:id`,
|
|
20981
|
+
path: `${path}/clu/response/:id(.+)`,
|
|
20678
20982
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(CLUResponse, props))
|
|
20679
20983
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20680
20984
|
path: `${path}/clu/my-applications`,
|
|
20681
20985
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(CLUMyApplications, props))
|
|
20682
20986
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20683
|
-
path: `${path}/clu/application-overview/:id`,
|
|
20987
|
+
path: `${path}/clu/application-overview/:id(.+)`,
|
|
20684
20988
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(CLUApplicationDetails, props))
|
|
20685
20989
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20686
20990
|
path: `${path}/search/clu-application`,
|
|
20687
20991
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(CLUSearchApplication, props))
|
|
20688
20992
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20689
|
-
path: `${path}/clu/edit-application/:id`,
|
|
20993
|
+
path: `${path}/clu/edit-application/:id(.+)`,
|
|
20690
20994
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(CLUEditApplication, props))
|
|
20691
20995
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20692
20996
|
path: `${path}/home`,
|
|
@@ -20726,7 +21030,7 @@ const App = ({
|
|
|
20726
21030
|
path: `${path}/openlink/stakeholder/apply`,
|
|
20727
21031
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(StakeholderRegistration, props))
|
|
20728
21032
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20729
|
-
path: `${path}/my-applications/:tenantId/:applicationNo`,
|
|
21033
|
+
path: `${path}/my-applications/:tenantId/:applicationNo(.+)`,
|
|
20730
21034
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(OCSendBackToCitizenWrapper, props))
|
|
20731
21035
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20732
21036
|
path: `${path}/my-applications`,
|
|
@@ -20742,28 +21046,28 @@ const App = ({
|
|
|
20742
21046
|
parentRoute: path
|
|
20743
21047
|
})))
|
|
20744
21048
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20745
|
-
path: `${path}/stakeholder/:id`,
|
|
21049
|
+
path: `${path}/stakeholder/:id(.+)`,
|
|
20746
21050
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(ApplicationDetails, props))
|
|
20747
21051
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20748
|
-
path: `${path}/bpa/:id`,
|
|
21052
|
+
path: `${path}/bpa/:id(.+)`,
|
|
20749
21053
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(BpaApplicationDetail, props))
|
|
20750
21054
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20751
|
-
path: `${path}/editApplication/bpa/:tenantId/:applicationNo`,
|
|
21055
|
+
path: `${path}/editApplication/bpa/:tenantId/:applicationNo(.+)`,
|
|
20752
21056
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(BPASendToArchitect, props))
|
|
20753
21057
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20754
|
-
path: `${path}/editApplication/ocbpa/:tenantId/:applicationNo`,
|
|
21058
|
+
path: `${path}/editApplication/ocbpa/:tenantId/:applicationNo(.+)`,
|
|
20755
21059
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(OCSendToArchitect, props))
|
|
20756
21060
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20757
|
-
path: `${path}/sendbacktocitizen/bpa/:tenantId/:applicationNo`,
|
|
21061
|
+
path: `${path}/sendbacktocitizen/bpa/:tenantId/:applicationNo(.+)`,
|
|
20758
21062
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(BPASendBackToCitizen, props))
|
|
20759
21063
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20760
|
-
path: `${path}/sendbacktocitizen/ocbpa/:tenantId/:applicationNo`,
|
|
21064
|
+
path: `${path}/sendbacktocitizen/ocbpa/:tenantId/:applicationNo(.+)`,
|
|
20761
21065
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(OCSendBackToCitizen, props))
|
|
20762
21066
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20763
21067
|
path: `${path}/response`,
|
|
20764
21068
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(OBPSResponse, props))
|
|
20765
21069
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20766
|
-
path: `${path}/self-certification/response/:id`,
|
|
21070
|
+
path: `${path}/self-certification/response/:id(.+)`,
|
|
20767
21071
|
component: props => /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(SelfCertificationResponse, props))
|
|
20768
21072
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
20769
21073
|
path: `${path}/ocbpa/:applicationType/:serviceType/stepper`,
|
|
@@ -22946,7 +23250,7 @@ const EDCRForm = ({
|
|
|
22946
23250
|
setUploadedFile(null);
|
|
22947
23251
|
setFile(null);
|
|
22948
23252
|
},
|
|
22949
|
-
message: uploadedFile ?
|
|
23253
|
+
message: uploadedFile ? `${t(`PT_ACTION_FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
|
|
22950
23254
|
error: error,
|
|
22951
23255
|
uploadMessage: uploadMessage
|
|
22952
23256
|
}), /*#__PURE__*/React.createElement("p", null, t("CHIPS_BPA_ONLY_DXF_FILE")), !uploadedFile && /*#__PURE__*/React.createElement(CardLabelError, null, "DXF file is required"))));
|
|
@@ -27052,7 +27356,7 @@ const DocumentDetails = ({
|
|
|
27052
27356
|
currentStepData,
|
|
27053
27357
|
onGoBack
|
|
27054
27358
|
}) => {
|
|
27055
|
-
var _currentStepData$crea, _searchObj$additional, _searchObj$additional2, _bpaDocs$BPA;
|
|
27359
|
+
var _currentStepData$crea, _searchObj$additional, _searchObj$additional2, _searchObj$additional3, _searchObj$additional4, _bpaDocs$BPA;
|
|
27056
27360
|
const stateId = Digit.ULBService.getStateId();
|
|
27057
27361
|
const [documents, setDocuments] = useState((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea = currentStepData.createdResponse) === null || _currentStepData$crea === void 0 ? void 0 : _currentStepData$crea.documents) || []);
|
|
27058
27362
|
const [error, setError] = useState(null);
|
|
@@ -27077,13 +27381,17 @@ const DocumentDetails = ({
|
|
|
27077
27381
|
applicationType: searchObj === null || searchObj === void 0 ? void 0 : (_searchObj$additional2 = searchObj.additionalDetails) === null || _searchObj$additional2 === void 0 ? void 0 : _searchObj$additional2.applicationType
|
|
27078
27382
|
}
|
|
27079
27383
|
}, beforeUploadDocuments || []);
|
|
27384
|
+
console.log("DEBUG - WFState (status):", searchObj === null || searchObj === void 0 ? void 0 : searchObj.status);
|
|
27385
|
+
console.log("DEBUG - RiskType:", searchObj === null || searchObj === void 0 ? void 0 : searchObj.riskType);
|
|
27386
|
+
console.log("DEBUG - ServiceType:", searchObj === null || searchObj === void 0 ? void 0 : (_searchObj$additional3 = searchObj.additionalDetails) === null || _searchObj$additional3 === void 0 ? void 0 : _searchObj$additional3.serviceType);
|
|
27387
|
+
console.log("DEBUG - applicationType:", searchObj === null || searchObj === void 0 ? void 0 : (_searchObj$additional4 = searchObj.additionalDetails) === null || _searchObj$additional4 === void 0 ? void 0 : _searchObj$additional4.applicationType);
|
|
27080
27388
|
const {
|
|
27081
27389
|
isLoading: bpaDocsLoading,
|
|
27082
27390
|
data: bpaDocs
|
|
27083
27391
|
} = Digit.Hooks.obps.useMDMS(stateId, "BPA", ["DocTypeMapping"]);
|
|
27084
27392
|
console.log("bpaTaxDocuments", bpaDocs === null || bpaDocs === void 0 ? void 0 : (_bpaDocs$BPA = bpaDocs.BPA) === null || _bpaDocs$BPA === void 0 ? void 0 : _bpaDocs$BPA.DocTypeMapping.filter(data => {
|
|
27085
|
-
var _searchObj$
|
|
27086
|
-
return data.WFState == (searchObj === null || searchObj === void 0 ? void 0 : searchObj.status) && data.RiskType == (searchObj === null || searchObj === void 0 ? void 0 : searchObj.riskType) && data.ServiceType == (searchObj === null || searchObj === void 0 ? void 0 : (_searchObj$
|
|
27393
|
+
var _searchObj$additional5, _searchObj$additional6;
|
|
27394
|
+
return data.WFState == (searchObj === null || searchObj === void 0 ? void 0 : searchObj.status) && data.RiskType == (searchObj === null || searchObj === void 0 ? void 0 : searchObj.riskType) && data.ServiceType == (searchObj === null || searchObj === void 0 ? void 0 : (_searchObj$additional5 = searchObj.additionalDetails) === null || _searchObj$additional5 === void 0 ? void 0 : _searchObj$additional5.serviceType) && data.applicationType == (searchObj === null || searchObj === void 0 ? void 0 : (_searchObj$additional6 = searchObj.additionalDetails) === null || _searchObj$additional6 === void 0 ? void 0 : _searchObj$additional6.applicationType);
|
|
27087
27395
|
}));
|
|
27088
27396
|
console.log(formData, "FDFDFDF");
|
|
27089
27397
|
console.log(bpaTaxDocuments, "bpabpa");
|
|
@@ -31913,6 +32221,7 @@ const BpaApplicationDetail = () => {
|
|
|
31913
32221
|
const {
|
|
31914
32222
|
id
|
|
31915
32223
|
} = useParams();
|
|
32224
|
+
const decodedId = decodeURIComponent(id);
|
|
31916
32225
|
const {
|
|
31917
32226
|
t
|
|
31918
32227
|
} = useTranslation();
|
|
@@ -31957,7 +32266,7 @@ const BpaApplicationDetail = () => {
|
|
|
31957
32266
|
data,
|
|
31958
32267
|
isLoading
|
|
31959
32268
|
} = Digit.Hooks.obps.useBPADetailsPage(tenantId, {
|
|
31960
|
-
applicationNo:
|
|
32269
|
+
applicationNo: decodedId
|
|
31961
32270
|
});
|
|
31962
32271
|
console.log("data for obps inbox", data);
|
|
31963
32272
|
const {
|
|
@@ -32114,7 +32423,7 @@ const BpaApplicationDetail = () => {
|
|
|
32114
32423
|
const mutation = Digit.Hooks.obps.useObpsAPI(data === null || data === void 0 ? void 0 : (_data$applicationData36 = data.applicationData) === null || _data$applicationData36 === void 0 ? void 0 : _data$applicationData36.tenantId, false);
|
|
32115
32424
|
let workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
32116
32425
|
tenantId: data === null || data === void 0 ? void 0 : (_data$applicationData37 = data.applicationData) === null || _data$applicationData37 === void 0 ? void 0 : _data$applicationData37.tenantId,
|
|
32117
|
-
id:
|
|
32426
|
+
id: decodedId,
|
|
32118
32427
|
moduleCode: "OBPS",
|
|
32119
32428
|
config: {
|
|
32120
32429
|
enabled: !!data
|
|
@@ -32473,7 +32782,7 @@ const BpaApplicationDetail = () => {
|
|
|
32473
32782
|
console.log("validity date", approvalDatePlusThree);
|
|
32474
32783
|
const designation = ulbType === "Municipal Corporation" ? "Municipal Commissioner" : "Executive Officer";
|
|
32475
32784
|
const requestData = {
|
|
32476
|
-
...
|
|
32785
|
+
...data,
|
|
32477
32786
|
edcrDetail: [{
|
|
32478
32787
|
...(data === null || data === void 0 ? void 0 : data.edcrDetails)
|
|
32479
32788
|
}],
|
|
@@ -32692,7 +33001,7 @@ const BpaApplicationDetail = () => {
|
|
|
32692
33001
|
}
|
|
32693
33002
|
if (action === "PAY") {
|
|
32694
33003
|
var _data$applicationData73, _data$applicationData74;
|
|
32695
|
-
window.location.assign(`${window.location.origin}/digit-ui/citizen/payment/collect/${`${getBusinessServices(data === null || data === void 0 ? void 0 : data.businessService, data === null || data === void 0 ? void 0 : data.applicationStatus, data === null || data === void 0 ? void 0 : (_data$applicationData73 = data.applicationData) === null || _data$applicationData73 === void 0 ? void 0 : (_data$applicationData74 = _data$applicationData73.additionalDetails) === null || _data$applicationData74 === void 0 ? void 0 : _data$applicationData74.applicationType)}/${
|
|
33004
|
+
window.location.assign(`${window.location.origin}/digit-ui/citizen/payment/collect/${`${getBusinessServices(data === null || data === void 0 ? void 0 : data.businessService, data === null || data === void 0 ? void 0 : data.applicationStatus, data === null || data === void 0 ? void 0 : (_data$applicationData73 = data.applicationData) === null || _data$applicationData73 === void 0 ? void 0 : (_data$applicationData74 = _data$applicationData73.additionalDetails) === null || _data$applicationData74 === void 0 ? void 0 : _data$applicationData74.applicationType)}/${decodedId}/${data === null || data === void 0 ? void 0 : data.tenantId}?tenantId=${data === null || data === void 0 ? void 0 : data.tenantId}`}`);
|
|
32696
33005
|
}
|
|
32697
33006
|
if (action === "SAVE_AS_DRAFT") {
|
|
32698
33007
|
getBPAFormData(data === null || data === void 0 ? void 0 : data.applicationData, mdmsData, history);
|
|
@@ -33170,15 +33479,15 @@ const BpaApplicationDetail = () => {
|
|
|
33170
33479
|
}
|
|
33171
33480
|
} else {
|
|
33172
33481
|
var _data$applicationData100;
|
|
33173
|
-
if ((data === null || data === void 0 ? void 0 : (_data$applicationData100 = data.applicationData) === null || _data$applicationData100 === void 0 ? void 0 : _data$applicationData100.status) === "
|
|
33482
|
+
if ((data === null || data === void 0 ? void 0 : (_data$applicationData100 = data.applicationData) === null || _data$applicationData100 === void 0 ? void 0 : _data$applicationData100.status) === "REJECTED") {
|
|
33174
33483
|
dowloadOptions.push({
|
|
33175
33484
|
order: 3,
|
|
33176
|
-
label: t("
|
|
33485
|
+
label: t("BPA_REJECTION_CERTIFICATE"),
|
|
33177
33486
|
onClick: () => {
|
|
33178
33487
|
var _data$applicationData101;
|
|
33179
33488
|
return getPermitOccupancyOrderSearch({
|
|
33180
33489
|
tenantId: data === null || data === void 0 ? void 0 : (_data$applicationData101 = data.applicationData) === null || _data$applicationData101 === void 0 ? void 0 : _data$applicationData101.tenantId
|
|
33181
|
-
}, "
|
|
33490
|
+
}, "bpa-appendix-d");
|
|
33182
33491
|
}
|
|
33183
33492
|
});
|
|
33184
33493
|
}
|
|
@@ -33691,7 +34000,7 @@ const BpaApplicationDetail = () => {
|
|
|
33691
34000
|
t: t,
|
|
33692
34001
|
action: "TERMS_AND_CONDITIONS",
|
|
33693
34002
|
tenantId: tenantId,
|
|
33694
|
-
id:
|
|
34003
|
+
id: decodedId,
|
|
33695
34004
|
closeModal: closeTermsModal,
|
|
33696
34005
|
submitAction: submitAction,
|
|
33697
34006
|
applicationData: (data === null || data === void 0 ? void 0 : data.applicationData) || {}
|
|
@@ -33699,7 +34008,7 @@ const BpaApplicationDetail = () => {
|
|
|
33699
34008
|
t: t,
|
|
33700
34009
|
action: selectedAction,
|
|
33701
34010
|
tenantId: tenantId,
|
|
33702
|
-
id:
|
|
34011
|
+
id: decodedId,
|
|
33703
34012
|
closeModal: closeModal,
|
|
33704
34013
|
submitAction: submitAction,
|
|
33705
34014
|
actionData: (_workflowDetails50 = workflowDetails) === null || _workflowDetails50 === void 0 ? void 0 : (_workflowDetails50$da = _workflowDetails50.data) === null || _workflowDetails50$da === void 0 ? void 0 : _workflowDetails50$da.timeline
|
|
@@ -46720,6 +47029,7 @@ const BpaApplicationDetail$1 = () => {
|
|
|
46720
47029
|
let {
|
|
46721
47030
|
id: applicationNumber
|
|
46722
47031
|
} = useParams();
|
|
47032
|
+
const decodedApplicationNumber = decodeURIComponent(applicationNumber);
|
|
46723
47033
|
const [isEnableLoader, setIsEnableLoader] = useState(false);
|
|
46724
47034
|
const {
|
|
46725
47035
|
isMdmsLoading,
|
|
@@ -46729,7 +47039,7 @@ const BpaApplicationDetail$1 = () => {
|
|
|
46729
47039
|
data = {},
|
|
46730
47040
|
isLoading
|
|
46731
47041
|
} = Digit.Hooks.obps.useBPADetailsPage(tenantId, {
|
|
46732
|
-
applicationNo:
|
|
47042
|
+
applicationNo: decodedApplicationNumber
|
|
46733
47043
|
});
|
|
46734
47044
|
const [siteImages, setSiteImages] = useState(data !== null && data !== void 0 && (_data$applicationData = data.applicationData) !== null && _data$applicationData !== void 0 && (_data$applicationData2 = _data$applicationData.additionalDetails) !== null && _data$applicationData2 !== void 0 && _data$applicationData2.siteImages ? {
|
|
46735
47045
|
documents: data === null || data === void 0 ? void 0 : (_data$applicationData3 = data.applicationData) === null || _data$applicationData3 === void 0 ? void 0 : (_data$applicationData4 = _data$applicationData3.additionalDetails) === null || _data$applicationData4 === void 0 ? void 0 : _data$applicationData4.siteImages
|
|
@@ -47269,7 +47579,7 @@ const BpaApplicationDetail$1 = () => {
|
|
|
47269
47579
|
}, []);
|
|
47270
47580
|
let workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
47271
47581
|
tenantId: tenantId,
|
|
47272
|
-
id:
|
|
47582
|
+
id: decodedApplicationNumber,
|
|
47273
47583
|
moduleCode: "BPA"
|
|
47274
47584
|
});
|
|
47275
47585
|
if (workflowDetails && workflowDetails.data && !workflowDetails.isLoading) {
|
|
@@ -48186,7 +48496,7 @@ const BpaApplicationDetail$1 = () => {
|
|
|
48186
48496
|
action: selectedAction,
|
|
48187
48497
|
tenantId: tenantId,
|
|
48188
48498
|
state: stateId,
|
|
48189
|
-
id:
|
|
48499
|
+
id: decodedApplicationNumber,
|
|
48190
48500
|
applicationDetails: data,
|
|
48191
48501
|
applicationData: data === null || data === void 0 ? void 0 : data.applicationData,
|
|
48192
48502
|
closeModal: closeModal,
|
|
@@ -58125,6 +58435,7 @@ const EDCRAcknowledgement = props => {
|
|
|
58125
58435
|
};
|
|
58126
58436
|
const routeToBPAScreen = async () => {
|
|
58127
58437
|
var _edcrData$appliaction2, _edcrData$application;
|
|
58438
|
+
console.log("clickeddddd");
|
|
58128
58439
|
history.push(`/digit-ui/citizen/obps/bpa/${edcrData === null || edcrData === void 0 ? void 0 : (_edcrData$appliaction2 = edcrData.appliactionType) === null || _edcrData$appliaction2 === void 0 ? void 0 : _edcrData$appliaction2.toLowerCase()}/${edcrData === null || edcrData === void 0 ? void 0 : (_edcrData$application = edcrData.applicationSubType) === null || _edcrData$application === void 0 ? void 0 : _edcrData$application.toLowerCase()}/docs-required`, {
|
|
58129
58440
|
edcrNumber: edcrData === null || edcrData === void 0 ? void 0 : edcrData.edcrNumber
|
|
58130
58441
|
});
|
|
@@ -68475,7 +68786,7 @@ const renderLabel$1 = (label, value, t) => {
|
|
|
68475
68786
|
});
|
|
68476
68787
|
};
|
|
68477
68788
|
const LayoutEmployeeApplicationOverview = () => {
|
|
68478
|
-
var _userInfo$roles, _propMdmsData$LAYOUT, _applicationDetails$L, _applicationDetails$L2, _applicationDetails$L3, _applicationDetails$L4, _window, _window$Digit, _window$Digit$Utils, _window$Digit$Utils$b, _applicationDetails$l, _applicationDetails$l2, _applicationDetails$l3, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _applicationDetails$L12, _applicationDetails$L13, _applicationDetails$L14, _applicationDetails$L15, _applicationDetails$L16, _user, _user$info, _user$info$roles, _applicationDetails$L17, _applicationDetails$L18, _user2, _user2$info, _user2$info$roles, _user3, _user3$info, _user3$info$roles, _user4, _user4$info, _user4$info$roles, _user6, _user6$info, _user6$info$roles, _applicationDetails$L19, _applicationDetails$L20, _ref, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _applicationDetails$L25, _applicationDetails$L26, _applicationDetails$L27, _applicationDetails$L28, _applicationDetails$L29, _applicationDetails$L30, _applicationDetails$L32, _applicationDetails$L33, _applicationDetails$
|
|
68789
|
+
var _userInfo$roles, _propMdmsData$LAYOUT, _applicationDetails$L, _applicationDetails$L2, _applicationDetails$L3, _applicationDetails$L4, _window, _window$Digit, _window$Digit$Utils, _window$Digit$Utils$b, _applicationDetails$l, _applicationDetails$l2, _applicationDetails$l3, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _applicationDetails$L12, _applicationDetails$L13, _applicationDetails$L14, _applicationDetails$L15, _applicationDetails$L16, _user, _user$info, _user$info$roles, _applicationDetails$L17, _applicationDetails$L18, _user2, _user2$info, _user2$info$roles, _user3, _user3$info, _user3$info$roles, _user4, _user4$info, _user4$info$roles, _user6, _user6$info, _user6$info$roles, _applicationDetails$L19, _applicationDetails$L20, _ref, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _applicationDetails$L25, _applicationDetails$L26, _applicationDetails$L27, _applicationDetails$L28, _applicationDetails$L29, _applicationDetails$L30, _applicationDetails$L31, _applicationDetails$L32, _applicationDetails$L33, _applicationDetails$L34, _applicationDetails$L35, _applicationDetails$L36, _applicationDetails$L37, _applicationDetails$L38, _applicationDetails$L39, _applicationDetails$L40, _applicationDetails$L41, _applicationDetails$L42, _applicationDetails$L44, _applicationDetails$L45, _applicationDetails$L55, _applicationDetails$L56, _applicationDetails$L57, _applicationDetails$L58, _displayData$applican, _displayData$applican2, _displayData$applican3, _displayData$applican4, _displayData$applican5, _displayData$applican6, _displayData$applican7, _displayData$applican8, _displayData$applican9, _displayData$applican0, _displayData$applican1, _displayData$applican10, _displayData$applican11, _displayData$applican12, _displayData$applican13, _displayData$applican14, _displayData$applican15, _displayData$applican16, _displayData$applican17, _displayData$applican18, _displayData$applican19, _displayData$applican20, _displayData$applican21, _displayData$applican22, _displayData$applican23, _displayData$applican24, _displayData$applican25, _displayData$applican26, _displayData$applican27, _displayData$applican28, _displayData$applican29, _displayData$applican30, _displayData$applican31, _displayData$applican32, _displayData$applican33, _displayData$applican34, _displayData$applican35, _displayData$applican36, _displayData$siteDeta, _applicationDetails$L61, _applicationDetails$L62, _applicationDetails$L63, _applicationDetails$L64, _applicationDetails$L65, _applicationDetails$L66, _applicationDetails$L67, _applicationDetails$L68, _applicationDetails$L69, _applicationDetails$L70, _applicationDetails$L71, _applicationDetails$L72, _applicationDetails$L73, _applicationDetails$L74, _applicationDetails$L75, _applicationDetails$L76, _applicationDetails$L77, _applicationDetails$L78, _applicationDetails$L79, _applicationDetails$L80, _applicationDetails$L81, _applicationDetails$L82, _applicationDetails$L83, _applicationDetails$L84, _applicationDetails$L85, _applicationDetails$L86, _applicationDetails$L87, _applicationDetails$L88, _applicationDetails$L89, _applicationDetails$L90, _applicationDetails$L91, _applicationDetails$L92, _applicationDetails$L93, _applicationDetails$L94, _applicationDetails$L95, _applicationDetails$L96, _applicationDetails$L97, _applicationDetails$L98, _applicationDetails$L99, _applicationDetails$L100, _applicationDetails$L101, _applicationDetails$L102, _applicationDetails$L103, _applicationDetails$L104, _applicationDetails$L105, _applicationDetails$L106, _applicationDetails$L107, _applicationDetails$L108, _applicationDetails$L109, _applicationDetails$L110, _applicationDetails$L111, _applicationDetails$L112, _applicationDetails$L113, _applicationDetails$L114, _applicationDetails$L115, _applicationDetails$L116, _applicationDetails$L117, _applicationDetails$L118, _applicationDetails$L119, _applicationDetails$L120, _applicationDetails$L121, _applicationDetails$L122, _applicationDetails$L123, _applicationDetails$L124, _applicationDetails$L125, _applicationDetails$L126, _applicationDetails$L127, _applicationDetails$L128, _applicationDetails$L129, _applicationDetails$L130, _applicationDetails$L131, _applicationDetails$L132, _applicationDetails$L133, _applicationDetails$L134, _applicationDetails$L135, _applicationDetails$L136, _applicationDetails$L137, _applicationDetails$L138, _applicationDetails$L139, _applicationDetails$L140, _applicationDetails$L141, _applicationDetails$L142, _applicationDetails$L143, _applicationDetails$L144, _applicationDetails$L145, _applicationDetails$L146, _applicationDetails$L147, _applicationDetails$L148, _applicationDetails$L149, _applicationDetails$L150, _applicationDetails$L151, _applicationDetails$L152, _applicationDetails$L153, _applicationDetails$L154, _applicationDetails$L155, _applicationDetails$L156, _applicationDetails$L157, _applicationDetails$L158, _applicationDetails$L159, _applicationDetails$L160, _applicationDetails$L161, _applicationDetails$L162, _applicationDetails$L163, _applicationDetails$L164, _applicationDetails$L165, _applicationDetails$L166, _applicationDetails$L167, _layoutMdmsData$LAYOU, _applicationDetails$L168, _applicationDetails$L169, _layoutMdmsData$LAYOU2, _applicationDetails$L170, _applicationDetails$L171, _applicationDetails$L172, _applicationDetails$L173, _applicationDetails$L174, _applicationDetails$L175, _applicationDetails$L176, _applicationDetails$L177, _applicationDetails$L178, _applicationDetails$L179, _applicationDetails$L180, _applicationDetails$L181, _siteImages$documents4, _mdmsData$NOC, _mdmsData$NOC$NocType, _applicationDetails$L182, _applicationDetails$L183, _mdmsData$NOC2, _applicationDetails$L184, _applicationDetails$L185, _applicationDetails$L186, _applicationDetails$L187, _applicationDetails$L188, _applicationDetails$L189, _applicationDetails$L190, _applicationDetails$L191, _applicationDetails$L192, _applicationDetails$L193, _applicationDetails$L194, _applicationDetails$L195, _applicationDetails$L196, _applicationDetails$L197, _applicationDetails$L198, _applicationDetails$L199, _applicationDetails$L200, _applicationDetails$L201, _applicationDetails$L202, _applicationDetails$L203, _applicationDetails$L204, _applicationDetails$L205, _applicationDetails$L206, _applicationDetails$L207, _applicationDetails$L208, _applicationDetails$L209, _applicationDetails$L210, _applicationDetails$L211, _applicationDetails$L212, _applicationDetails$L213, _applicationDetails$L214, _applicationDetails$L215, _applicationDetails$L216, _applicationDetails$L217, _applicationDetails$L218, _applicationDetails$L219, _applicationDetails$L220, _applicationDetails$L221, _applicationDetails$L222, _applicationDetails$L223, _applicationDetails$L224, _applicationDetails$L225, _applicationDetails$L226, _applicationDetails$L227, _applicationDetails$L228, _applicationDetails$L229, _applicationDetails$L230, _siteImages$documents5, _siteImages$documents6, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10;
|
|
68479
68790
|
const {
|
|
68480
68791
|
id
|
|
68481
68792
|
} = useParams();
|
|
@@ -68764,6 +69075,31 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
68764
69075
|
}
|
|
68765
69076
|
}, [applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L25 = applicationDetails.Layout) === null || _applicationDetails$L25 === void 0 ? void 0 : (_applicationDetails$L26 = _applicationDetails$L25[0]) === null || _applicationDetails$L26 === void 0 ? void 0 : _applicationDetails$L26.applicationStatus, hasRole, isMobile]);
|
|
68766
69077
|
const coordinates = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L27 = applicationDetails.Layout) === null || _applicationDetails$L27 === void 0 ? void 0 : (_applicationDetails$L28 = _applicationDetails$L27[0]) === null || _applicationDetails$L28 === void 0 ? void 0 : (_applicationDetails$L29 = _applicationDetails$L28.layoutDetails) === null || _applicationDetails$L29 === void 0 ? void 0 : (_applicationDetails$L30 = _applicationDetails$L29.additionalDetails) === null || _applicationDetails$L30 === void 0 ? void 0 : _applicationDetails$L30.coordinates;
|
|
69078
|
+
const rawGeoJSON = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L31 = applicationDetails.Layout) === null || _applicationDetails$L31 === void 0 ? void 0 : (_applicationDetails$L32 = _applicationDetails$L31[0]) === null || _applicationDetails$L32 === void 0 ? void 0 : _applicationDetails$L32.geojson) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L33 = applicationDetails.Layout) === null || _applicationDetails$L33 === void 0 ? void 0 : (_applicationDetails$L34 = _applicationDetails$L33[0]) === null || _applicationDetails$L34 === void 0 ? void 0 : (_applicationDetails$L35 = _applicationDetails$L34.geotag) === null || _applicationDetails$L35 === void 0 ? void 0 : _applicationDetails$L35.geojson) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L36 = applicationDetails.Layout) === null || _applicationDetails$L36 === void 0 ? void 0 : (_applicationDetails$L37 = _applicationDetails$L36[0]) === null || _applicationDetails$L37 === void 0 ? void 0 : (_applicationDetails$L38 = _applicationDetails$L37.layoutDetails) === null || _applicationDetails$L38 === void 0 ? void 0 : (_applicationDetails$L39 = _applicationDetails$L38.additionalDetails) === null || _applicationDetails$L39 === void 0 ? void 0 : _applicationDetails$L39.geojson) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L40 = applicationDetails.Layout) === null || _applicationDetails$L40 === void 0 ? void 0 : (_applicationDetails$L41 = _applicationDetails$L40[0]) === null || _applicationDetails$L41 === void 0 ? void 0 : (_applicationDetails$L42 = _applicationDetails$L41.additionalDetails) === null || _applicationDetails$L42 === void 0 ? void 0 : _applicationDetails$L42.geojson) || null;
|
|
69079
|
+
const geoJSON = useMemo(() => {
|
|
69080
|
+
if (!rawGeoJSON) return null;
|
|
69081
|
+
let parsed = rawGeoJSON;
|
|
69082
|
+
for (let i = 0; i < 5; i++) {
|
|
69083
|
+
if (typeof parsed === "string") {
|
|
69084
|
+
try {
|
|
69085
|
+
parsed = JSON.parse(parsed);
|
|
69086
|
+
continue;
|
|
69087
|
+
} catch (e) {
|
|
69088
|
+
break;
|
|
69089
|
+
}
|
|
69090
|
+
}
|
|
69091
|
+
break;
|
|
69092
|
+
}
|
|
69093
|
+
if (parsed && typeof parsed === "object" && parsed.type && (parsed.features || parsed.geometry || parsed.geometries)) {
|
|
69094
|
+
return parsed;
|
|
69095
|
+
}
|
|
69096
|
+
return null;
|
|
69097
|
+
}, [rawGeoJSON]);
|
|
69098
|
+
const center = useMemo(() => {
|
|
69099
|
+
const lat = Number(coordinates === null || coordinates === void 0 ? void 0 : coordinates.Latitude1);
|
|
69100
|
+
const lng = Number(coordinates === null || coordinates === void 0 ? void 0 : coordinates.Longitude1);
|
|
69101
|
+
return Number.isFinite(lat) && Number.isFinite(lng) ? [lng, lat] : [0, 0];
|
|
69102
|
+
}, [coordinates]);
|
|
68767
69103
|
const geoLocations = useMemo(() => {
|
|
68768
69104
|
if (siteImages !== null && siteImages !== void 0 && siteImages.documents && (siteImages === null || siteImages === void 0 ? void 0 : siteImages.documents.length) > 0) {
|
|
68769
69105
|
var _siteImages$documents;
|
|
@@ -68835,7 +69171,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
68835
69171
|
}
|
|
68836
69172
|
};
|
|
68837
69173
|
const dowloadOptions = [];
|
|
68838
|
-
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69174
|
+
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L44 = applicationDetails.Layout) === null || _applicationDetails$L44 === void 0 ? void 0 : (_applicationDetails$L45 = _applicationDetails$L44[0]) === null || _applicationDetails$L45 === void 0 ? void 0 : _applicationDetails$L45.applicationStatus) === "APPROVED") {
|
|
68839
69175
|
if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) {
|
|
68840
69176
|
dowloadOptions.push({
|
|
68841
69177
|
label: t("CHB_FEE_RECEIPT"),
|
|
@@ -68869,7 +69205,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
68869
69205
|
console.log(" submitAction called with data:", data);
|
|
68870
69206
|
setIsSubmitting(true);
|
|
68871
69207
|
try {
|
|
68872
|
-
var _data$Licenses, _applicationDetails$
|
|
69208
|
+
var _data$Licenses, _applicationDetails$L46, _applicationDetails$L47, _applicationDetails$L48, _applicationDetails$L49, _applicationDetails$L50, _Digit$UserService$ge, _Digit$UserService$ge2, _ref2, _layoutObject$layoutD1, _layoutObject$layoutD10, _layoutObject$layoutD11, _layoutObject$layoutD12, _user8, _user8$info, _user8$info$roles, _user8$info$roles$, _user9, _user9$info, _displayData$Document3, _layoutObject$owners, _layoutObject$layoutD13, _layoutObject$layoutD14, _layoutObject$layoutD15, _layoutObject$layoutD16, _layoutObject$layoutD17, _layoutObject$layoutD18, _layoutObject$layoutD19, _layoutObject$layoutD20, _layoutObject$layoutD21, _layoutObject$layoutD22, _layoutObject$layoutD23, _layoutObject$layoutD24, _layoutObject$layoutD25, _layoutObject$layoutD26, _layoutObject$layoutD27, _layoutObject$layoutD28, _layoutObject$layoutD29, _layoutObject$layoutD30, _layoutObject$layoutD31, _layoutObject$layoutD32, _layoutObject$layoutD33, _layoutObject$layoutD34, _layoutObject$layoutD35, _layoutObject$layoutD36, _layoutObject$layoutD37, _layoutObject$layoutD38, _layoutObject$layoutD39, _layoutObject$layoutD40, _layoutObject$layoutD41, _layoutObject$layoutD42, _layoutObject$layoutD43, _layoutObject$layoutD44, _layoutObject$layoutD45, _layoutObject$layoutD46, _layoutObject$layoutD47, _layoutObject$layoutD48, _layoutObject$layoutD49, _layoutObject$layoutD50, _layoutObject$layoutD51, _layoutObject$layoutD52, _layoutObject$layoutD53, _layoutObject$layoutD54, _layoutObject$layoutD55, _layoutObject$layoutD56, _layoutObject$layoutD57, _layoutObject$layoutD58, _layoutObject$layoutD59, _layoutObject$layoutD60, _layoutObject$layoutD61, _layoutObject$layoutD62, _layoutObject$layoutD63, _layoutObject$layoutD64, _layoutObject$layoutD65, _layoutObject$layoutD66, _layoutObject$layoutD67, _layoutObject$layoutD68, _layoutObject$layoutD69, _layoutObject$layoutD70, _layoutObject$layoutD71, _layoutObject$layoutD72, _layoutObject$layoutD73, _layoutObject$layoutD74, _layoutObject$layoutD75, _layoutObject$layoutD76, _layoutObject$layoutD77, _layoutObject$layoutD78, _layoutObject$layoutD79, _response$ResponseInf, _response$ResponseInf2;
|
|
68873
69209
|
const filtData = data === null || data === void 0 ? void 0 : (_data$Licenses = data.Licenses) === null || _data$Licenses === void 0 ? void 0 : _data$Licenses[0];
|
|
68874
69210
|
console.log(" filtData:", filtData);
|
|
68875
69211
|
if (!filtData) {
|
|
@@ -68882,7 +69218,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
68882
69218
|
setIsSubmitting(false);
|
|
68883
69219
|
return;
|
|
68884
69220
|
}
|
|
68885
|
-
const layoutObject = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69221
|
+
const layoutObject = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L46 = applicationDetails.Layout) === null || _applicationDetails$L46 === void 0 ? void 0 : _applicationDetails$L46[0];
|
|
68886
69222
|
console.log(" layoutObject:", layoutObject);
|
|
68887
69223
|
if (!layoutObject) {
|
|
68888
69224
|
console.error(" ERROR: layoutObject is undefined");
|
|
@@ -68904,7 +69240,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
68904
69240
|
setIsSubmitting(false);
|
|
68905
69241
|
return;
|
|
68906
69242
|
}
|
|
68907
|
-
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69243
|
+
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L47 = applicationDetails.Layout) === null || _applicationDetails$L47 === void 0 ? void 0 : (_applicationDetails$L48 = _applicationDetails$L47[0]) === null || _applicationDetails$L48 === void 0 ? void 0 : _applicationDetails$L48.applicationStatus) === "INSPECTION_REPORT_PENDING") {
|
|
68908
69244
|
var _fieldInspectionPendi;
|
|
68909
69245
|
if ((fieldInspectionPending === null || fieldInspectionPending === void 0 ? void 0 : fieldInspectionPending.length) === 0 || (fieldInspectionPending === null || fieldInspectionPending === void 0 ? void 0 : (_fieldInspectionPendi = fieldInspectionPending[0]) === null || _fieldInspectionPendi === void 0 ? void 0 : _fieldInspectionPendi.questionLength) === 0) {
|
|
68910
69246
|
closeModal();
|
|
@@ -68930,7 +69266,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
68930
69266
|
}
|
|
68931
69267
|
}
|
|
68932
69268
|
}
|
|
68933
|
-
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69269
|
+
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L49 = applicationDetails.Layout) === null || _applicationDetails$L49 === void 0 ? void 0 : (_applicationDetails$L50 = _applicationDetails$L49[0]) === null || _applicationDetails$L50 === void 0 ? void 0 : _applicationDetails$L50.applicationStatus) === "DOCUMENTVERIFY_DM") {
|
|
68934
69270
|
var _user7, _user7$info, _user7$info$roles;
|
|
68935
69271
|
const isDM = (_user7 = user) === null || _user7 === void 0 ? void 0 : (_user7$info = _user7.info) === null || _user7$info === void 0 ? void 0 : (_user7$info$roles = _user7$info.roles) === null || _user7$info$roles === void 0 ? void 0 : _user7$info$roles.some(role => role.code === "OBPAS_LAYOUT_DM");
|
|
68936
69272
|
if (isDM && (remainingDocs === null || remainingDocs === void 0 ? void 0 : remainingDocs.length) > 0) {
|
|
@@ -69126,8 +69462,8 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69126
69462
|
setShowModal(false);
|
|
69127
69463
|
};
|
|
69128
69464
|
function onActionSelect(action) {
|
|
69129
|
-
var _applicationDetails$
|
|
69130
|
-
const appNo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69465
|
+
var _applicationDetails$L51, _applicationDetails$L52, _action$state, _action$state$actions, _filterNexState$, _filterRoles$;
|
|
69466
|
+
const appNo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L51 = applicationDetails.Layout) === null || _applicationDetails$L51 === void 0 ? void 0 : (_applicationDetails$L52 = _applicationDetails$L51[0]) === null || _applicationDetails$L52 === void 0 ? void 0 : _applicationDetails$L52.applicationNo;
|
|
69131
69467
|
console.log("check action === ", action);
|
|
69132
69468
|
const filterNexState = action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : (_action$state$actions = _action$state.actions) === null || _action$state$actions === void 0 ? void 0 : _action$state$actions.filter(item => item.action == (action === null || action === void 0 ? void 0 : action.action));
|
|
69133
69469
|
console.log("check filterNexState=== ", (_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
|
|
@@ -69156,8 +69492,8 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69156
69492
|
} else if ((action === null || action === void 0 ? void 0 : action.action) == "PAY") {
|
|
69157
69493
|
history.push(`/digit-ui/employee/payment/collect/layout/${encodeURIComponent(appNo)}/${tenantId}?tenantId=${tenantId}`);
|
|
69158
69494
|
} else {
|
|
69159
|
-
var _applicationDetails$
|
|
69160
|
-
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69495
|
+
var _applicationDetails$L53, _applicationDetails$L54, _siteImages$documents3;
|
|
69496
|
+
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L53 = applicationDetails.Layout) === null || _applicationDetails$L53 === void 0 ? void 0 : (_applicationDetails$L54 = _applicationDetails$L53[0]) === null || _applicationDetails$L54 === void 0 ? void 0 : _applicationDetails$L54.applicationStatus) === "FIELDINSPECTION_INPROGRESS" && (!(siteImages !== null && siteImages !== void 0 && siteImages.documents) || (siteImages === null || siteImages === void 0 ? void 0 : (_siteImages$documents3 = siteImages.documents) === null || _siteImages$documents3 === void 0 ? void 0 : _siteImages$documents3.length) < 4)) {
|
|
69161
69497
|
setShowToast({
|
|
69162
69498
|
key: "true",
|
|
69163
69499
|
error: true,
|
|
@@ -69265,10 +69601,10 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69265
69601
|
}
|
|
69266
69602
|
}, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
69267
69603
|
label: t("Application Number"),
|
|
69268
|
-
text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69604
|
+
text: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L55 = applicationDetails.Layout) === null || _applicationDetails$L55 === void 0 ? void 0 : (_applicationDetails$L56 = _applicationDetails$L55[0]) === null || _applicationDetails$L56 === void 0 ? void 0 : _applicationDetails$L56.applicationNo) || "N/A"
|
|
69269
69605
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
69270
69606
|
label: t("Application Status"),
|
|
69271
|
-
text: t(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69607
|
+
text: t(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L57 = applicationDetails.Layout) === null || _applicationDetails$L57 === void 0 ? void 0 : (_applicationDetails$L58 = _applicationDetails$L57[0]) === null || _applicationDetails$L58 === void 0 ? void 0 : _applicationDetails$L58.applicationStatus) || "N/A"
|
|
69272
69608
|
})))), (displayData === null || displayData === void 0 ? void 0 : (_displayData$applican = displayData.applicantDetails) === null || _displayData$applican === void 0 ? void 0 : (_displayData$applican2 = _displayData$applican[0]) === null || _displayData$applican2 === void 0 ? void 0 : _displayData$applican2.professionalName) && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("LAYOUT_PROFESSIONAL_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
69273
69609
|
style: {
|
|
69274
69610
|
marginBottom: "30px",
|
|
@@ -69345,7 +69681,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69345
69681
|
}
|
|
69346
69682
|
}));
|
|
69347
69683
|
}))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("LAYOUT_SITE_DETAILS")), displayData === null || displayData === void 0 ? void 0 : (_displayData$siteDeta = displayData.siteDetails) === null || _displayData$siteDeta === void 0 ? void 0 : _displayData$siteDeta.map((detail, index) => {
|
|
69348
|
-
var _detail$typeOfApplica, _detail$isGovernmentP, _detail$regionOffice, _detail$district, _detail$tehsil, _detail$village, _detail$locationType, _detail$subLocation, _detail$khasraDetails, _detail$ulbName, _detail$roadType, _detail$buildingStatu, _detail$isAreaUnderMa, _applicationDetails$
|
|
69684
|
+
var _detail$typeOfApplica, _detail$isGovernmentP, _detail$regionOffice, _detail$district, _detail$tehsil, _detail$village, _detail$locationType, _detail$subLocation, _detail$khasraDetails, _detail$ulbName, _detail$roadType, _detail$buildingStatu, _detail$isAreaUnderMa, _applicationDetails$L59, _applicationDetails$L60, _detail$boundaryNorth, _detail$boundaryNorth2, _detail$boundarySouth, _detail$boundarySouth2, _detail$boundaryEast, _detail$boundaryEast2, _detail$boundaryWest, _detail$boundaryWest2, _detail$landUseZone, _detail$landSubUseZon, _detail$layoutPlotUse, _detail$layoutPlotSub, _detail$buildingCateg;
|
|
69349
69685
|
return /*#__PURE__*/React.createElement("div", {
|
|
69350
69686
|
key: index,
|
|
69351
69687
|
style: {
|
|
@@ -69361,29 +69697,38 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69361
69697
|
label: `${t("BPA_KHASRA")} ${kIdx + 1} (${t((khasra === null || khasra === void 0 ? void 0 : (_khasra$areaType = khasra.areaType) === null || _khasra$areaType === void 0 ? void 0 : _khasra$areaType.i18nKey) || (khasra === null || khasra === void 0 ? void 0 : khasra.areaType) || "PART")})`,
|
|
69362
69698
|
text: `${khasra === null || khasra === void 0 ? void 0 : khasra.khasraNo}(${khasra === null || khasra === void 0 ? void 0 : khasra.areaSqM}) ${t("BPA_SQM")}`
|
|
69363
69699
|
});
|
|
69364
|
-
})), renderLabel$1(t("BPA_KHANUTI_NO_LABEL"), detail === null || detail === void 0 ? void 0 : detail.khanutiNo, t), renderLabel$1(t("BPA_HADBAST_NO_LABEL"), detail === null || detail === void 0 ? void 0 : detail.hadbastNo, t), renderLabel$1(t("BPA_PROPOSED_SITE_ADDRESS_LABEL"), detail === null || detail === void 0 ? void 0 : detail.proposedSiteAddress, t), renderLabel$1(t("BPA_PLOT_NO_LABEL"), detail === null || detail === void 0 ? void 0 : detail.plotNo, t), renderLabel$1(t("BPA_WARD_NO_LABEL"), detail === null || detail === void 0 ? void 0 : detail.wardNo, t), renderLabel$1(t("BPA_ULB_NAME_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$ulbName = detail.ulbName) === null || _detail$ulbName === void 0 ? void 0 : _detail$ulbName.name) || (detail === null || detail === void 0 ? void 0 : detail.ulbName), t), renderLabel$1(t("BPA_ROAD_TYPE_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$roadType = detail.roadType) === null || _detail$roadType === void 0 ? void 0 : _detail$roadType.name) || (detail === null || detail === void 0 ? void 0 : detail.roadType), t), renderLabel$1(t("BPA_ROAD_WIDTH_AT_SITE_LABEL"), detail === null || detail === void 0 ? void 0 : detail.roadWidthAtSite, t), renderLabel$1(t("BPA_BUILDING_STATUS_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$buildingStatu = detail.buildingStatus) === null || _detail$buildingStatu === void 0 ? void 0 : _detail$buildingStatu.name) || (detail === null || detail === void 0 ? void 0 : detail.buildingStatus), t), renderLabel$1(t("BPA_IS_AREA_UNDER_MASTER_PLAN_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$isAreaUnderMa = detail.isAreaUnderMasterPlan) === null || _detail$isAreaUnderMa === void 0 ? void 0 : _detail$isAreaUnderMa.name) || (detail === null || detail === void 0 ? void 0 : detail.isAreaUnderMasterPlan), t), renderLabel$1(t("BPA_PLOT_AREA_AS_PER_SITE_LABEL"), detail === null || detail === void 0 ? void 0 : detail.plotAreaAsPerSite, t), renderLabel$1(t("BPA_PLOT_AREA_AS_PER_DOCUMENT_LABEL"), (detail === null || detail === void 0 ? void 0 : detail.plotAreaAsPerDocument) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69365
|
-
})), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69700
|
+
})), renderLabel$1(t("BPA_KHANUTI_NO_LABEL"), detail === null || detail === void 0 ? void 0 : detail.khanutiNo, t), renderLabel$1(t("BPA_HADBAST_NO_LABEL"), detail === null || detail === void 0 ? void 0 : detail.hadbastNo, t), renderLabel$1(t("BPA_PROPOSED_SITE_ADDRESS_LABEL"), detail === null || detail === void 0 ? void 0 : detail.proposedSiteAddress, t), renderLabel$1(t("BPA_PLOT_NO_LABEL"), detail === null || detail === void 0 ? void 0 : detail.plotNo, t), renderLabel$1(t("BPA_WARD_NO_LABEL"), detail === null || detail === void 0 ? void 0 : detail.wardNo, t), renderLabel$1(t("BPA_ULB_NAME_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$ulbName = detail.ulbName) === null || _detail$ulbName === void 0 ? void 0 : _detail$ulbName.name) || (detail === null || detail === void 0 ? void 0 : detail.ulbName), t), renderLabel$1(t("BPA_ROAD_TYPE_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$roadType = detail.roadType) === null || _detail$roadType === void 0 ? void 0 : _detail$roadType.name) || (detail === null || detail === void 0 ? void 0 : detail.roadType), t), renderLabel$1(t("BPA_ROAD_WIDTH_AT_SITE_LABEL"), detail === null || detail === void 0 ? void 0 : detail.roadWidthAtSite, t), renderLabel$1(t("BPA_BUILDING_STATUS_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$buildingStatu = detail.buildingStatus) === null || _detail$buildingStatu === void 0 ? void 0 : _detail$buildingStatu.name) || (detail === null || detail === void 0 ? void 0 : detail.buildingStatus), t), renderLabel$1(t("BPA_IS_AREA_UNDER_MASTER_PLAN_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$isAreaUnderMa = detail.isAreaUnderMasterPlan) === null || _detail$isAreaUnderMa === void 0 ? void 0 : _detail$isAreaUnderMa.name) || (detail === null || detail === void 0 ? void 0 : detail.isAreaUnderMasterPlan), t), renderLabel$1(t("BPA_PLOT_AREA_AS_PER_SITE_LABEL"), detail === null || detail === void 0 ? void 0 : detail.plotAreaAsPerSite, t), renderLabel$1(t("BPA_PLOT_AREA_AS_PER_DOCUMENT_LABEL"), (detail === null || detail === void 0 ? void 0 : detail.plotAreaAsPerDocument) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L59 = applicationDetails.Layout) === null || _applicationDetails$L59 === void 0 ? void 0 : (_applicationDetails$L60 = _applicationDetails$L59[0]) === null || _applicationDetails$L60 === void 0 ? void 0 : _applicationDetails$L60.plotAreaAsPerDocument), t), renderLabel$1(t("BPA_PROPOSED_ROAD_WIDTH_LABEL"), detail === null || detail === void 0 ? void 0 : detail.proposedRoadWidth, t), renderLabel$1(t("BPA_BOUNDARY_NORTH_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$boundaryNorth = detail.boundaryNorth) === null || _detail$boundaryNorth === void 0 ? void 0 : _detail$boundaryNorth.name) || (detail === null || detail === void 0 ? void 0 : detail.boundaryNorth), t), (detail === null || detail === void 0 ? void 0 : (_detail$boundaryNorth2 = detail.boundaryNorth) === null || _detail$boundaryNorth2 === void 0 ? void 0 : _detail$boundaryNorth2.code) === "OTHERS" && renderLabel$1(t("Specify North"), detail === null || detail === void 0 ? void 0 : detail.boundaryNorthOthers, t), renderLabel$1(t("BPA_BOUNDARY_SOUTH_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$boundarySouth = detail.boundarySouth) === null || _detail$boundarySouth === void 0 ? void 0 : _detail$boundarySouth.name) || (detail === null || detail === void 0 ? void 0 : detail.boundarySouth), t), (detail === null || detail === void 0 ? void 0 : (_detail$boundarySouth2 = detail.boundarySouth) === null || _detail$boundarySouth2 === void 0 ? void 0 : _detail$boundarySouth2.code) === "OTHERS" && renderLabel$1(t("Specify South"), detail === null || detail === void 0 ? void 0 : detail.boundarySouthOthers, t), renderLabel$1(t("BPA_BOUNDARY_EAST_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$boundaryEast = detail.boundaryEast) === null || _detail$boundaryEast === void 0 ? void 0 : _detail$boundaryEast.name) || (detail === null || detail === void 0 ? void 0 : detail.boundaryEast), t), (detail === null || detail === void 0 ? void 0 : (_detail$boundaryEast2 = detail.boundaryEast) === null || _detail$boundaryEast2 === void 0 ? void 0 : _detail$boundaryEast2.code) === "OTHERS" && renderLabel$1(t("Specify East"), detail === null || detail === void 0 ? void 0 : detail.boundaryEastOthers, t), renderLabel$1(t("BPA_BOUNDARY_WEST_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$boundaryWest = detail.boundaryWest) === null || _detail$boundaryWest === void 0 ? void 0 : _detail$boundaryWest.name) || (detail === null || detail === void 0 ? void 0 : detail.boundaryWest), t), (detail === null || detail === void 0 ? void 0 : (_detail$boundaryWest2 = detail.boundaryWest) === null || _detail$boundaryWest2 === void 0 ? void 0 : _detail$boundaryWest2.code) === "OTHERS" && renderLabel$1(t("Specify West"), detail === null || detail === void 0 ? void 0 : detail.boundaryWestOthers, t), renderLabel$1(t("BPA_LAND_USE_ZONE_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$landUseZone = detail.landUseZone) === null || _detail$landUseZone === void 0 ? void 0 : _detail$landUseZone.name) || (detail === null || detail === void 0 ? void 0 : detail.landUseZone), t), renderLabel$1(t("BPA_LAND_SUB_USE_ZONE_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$landSubUseZon = detail.landSubUseZone) === null || _detail$landSubUseZon === void 0 ? void 0 : _detail$landSubUseZon.name) || (detail === null || detail === void 0 ? void 0 : detail.landSubUseZone), t), renderLabel$1(t("BPA_LAYOUT_PLOT_USE_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$layoutPlotUse = detail.layoutPlotUse) === null || _detail$layoutPlotUse === void 0 ? void 0 : _detail$layoutPlotUse.name) || (detail === null || detail === void 0 ? void 0 : detail.layoutPlotUse), t), renderLabel$1(t("BPA_LAYOUT_PLOT_SUB_USE_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$layoutPlotSub = detail.layoutPlotSubUse) === null || _detail$layoutPlotSub === void 0 ? void 0 : _detail$layoutPlotSub.name) || (detail === null || detail === void 0 ? void 0 : detail.layoutPlotSubUse), t), renderLabel$1(t("BPA_BUILDING_CATEGORY_LABEL"), (detail === null || detail === void 0 ? void 0 : (_detail$buildingCateg = detail.buildingCategory) === null || _detail$buildingCateg === void 0 ? void 0 : _detail$buildingCateg.name) || (detail === null || detail === void 0 ? void 0 : detail.buildingCategory), t), renderLabel$1(t("BPA_AREA_UNDER_RESIDENTIAL_USE_IN_SQ_M_LABEL"), detail === null || detail === void 0 ? void 0 : detail.areaUnderResidentialUseInSqM, t), renderLabel$1(t("BPA_AREA_UNDER_COMMERCIAL_USE_IN_SQ_M_LABEL"), detail === null || detail === void 0 ? void 0 : detail.areaUnderCommercialUseInSqM, t), renderLabel$1(t("BPA_AREA_UNDER_INSTUTIONAL_USE_IN_SQ_M_LABEL"), detail === null || detail === void 0 ? void 0 : detail.areaUnderInstutionalUseInSqM, t), renderLabel$1(t("BPA_AREA_UNDER_COMMUNITY_CENTER_IN_SQ_M_LABEL"), detail === null || detail === void 0 ? void 0 : detail.areaUnderCommunityCenterInSqM, t), renderLabel$1(t("BPA_AREA_UNDER_PARK_IN_SQ_M_LABEL"), detail === null || detail === void 0 ? void 0 : detail.areaUnderParkInSqM, t), renderLabel$1(t("BPA_AREA_UNDER_ROAD_IN_SQ_M_LABEL"), detail === null || detail === void 0 ? void 0 : detail.areaUnderRoadInSqM, t), renderLabel$1(t("BPA_AREA_UNDER_PARKING_IN_SQ_M_LABEL"), detail === null || detail === void 0 ? void 0 : detail.areaUnderParkingInSqM, t), renderLabel$1(t("BPA_AREA_UNDER_OTHER_AMENITIES_IN_SQ_M_LABEL"), detail === null || detail === void 0 ? void 0 : detail.areaUnderOtherAmenitiesInSqM, t)));
|
|
69701
|
+
})), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L61 = applicationDetails.Layout) === null || _applicationDetails$L61 === void 0 ? void 0 : (_applicationDetails$L62 = _applicationDetails$L61[0]) === null || _applicationDetails$L62 === void 0 ? void 0 : (_applicationDetails$L63 = _applicationDetails$L62.layoutDetails) === null || _applicationDetails$L63 === void 0 ? void 0 : (_applicationDetails$L64 = _applicationDetails$L63.additionalDetails) === null || _applicationDetails$L64 === void 0 ? void 0 : (_applicationDetails$L65 = _applicationDetails$L64.siteDetails) === null || _applicationDetails$L65 === void 0 ? void 0 : _applicationDetails$L65.scrutinyDetails) && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("SCRUTINY_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
69366
69702
|
style: {
|
|
69367
69703
|
marginBottom: "30px",
|
|
69368
69704
|
background: "#FAFAFA",
|
|
69369
69705
|
padding: "16px",
|
|
69370
69706
|
borderRadius: "4px"
|
|
69371
69707
|
}
|
|
69372
|
-
}, /*#__PURE__*/React.createElement(StatusTable, null, renderLabel$1(t("EDCR_NUMBER"), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69708
|
+
}, /*#__PURE__*/React.createElement(StatusTable, null, renderLabel$1(t("EDCR_NUMBER"), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L66 = applicationDetails.Layout) === null || _applicationDetails$L66 === void 0 ? void 0 : (_applicationDetails$L67 = _applicationDetails$L66[0]) === null || _applicationDetails$L67 === void 0 ? void 0 : (_applicationDetails$L68 = _applicationDetails$L67.layoutDetails) === null || _applicationDetails$L68 === void 0 ? void 0 : (_applicationDetails$L69 = _applicationDetails$L68.additionalDetails) === null || _applicationDetails$L69 === void 0 ? void 0 : (_applicationDetails$L70 = _applicationDetails$L69.siteDetails) === null || _applicationDetails$L70 === void 0 ? void 0 : _applicationDetails$L70.scrutinyNumber) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L71 = applicationDetails.Layout) === null || _applicationDetails$L71 === void 0 ? void 0 : (_applicationDetails$L72 = _applicationDetails$L71[0]) === null || _applicationDetails$L72 === void 0 ? void 0 : (_applicationDetails$L73 = _applicationDetails$L72.layoutDetails) === null || _applicationDetails$L73 === void 0 ? void 0 : (_applicationDetails$L74 = _applicationDetails$L73.additionalDetails) === null || _applicationDetails$L74 === void 0 ? void 0 : (_applicationDetails$L75 = _applicationDetails$L74.siteDetails) === null || _applicationDetails$L75 === void 0 ? void 0 : _applicationDetails$L75.edcrNumber), t), renderLabel$1(t("APPLICANT_NAME"), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L76 = applicationDetails.Layout) === null || _applicationDetails$L76 === void 0 ? void 0 : (_applicationDetails$L77 = _applicationDetails$L76[0]) === null || _applicationDetails$L77 === void 0 ? void 0 : (_applicationDetails$L78 = _applicationDetails$L77.layoutDetails) === null || _applicationDetails$L78 === void 0 ? void 0 : (_applicationDetails$L79 = _applicationDetails$L78.additionalDetails) === null || _applicationDetails$L79 === void 0 ? void 0 : (_applicationDetails$L80 = _applicationDetails$L79.siteDetails) === null || _applicationDetails$L80 === void 0 ? void 0 : (_applicationDetails$L81 = _applicationDetails$L80.scrutinyDetails) === null || _applicationDetails$L81 === void 0 ? void 0 : (_applicationDetails$L82 = _applicationDetails$L81.planDetail) === null || _applicationDetails$L82 === void 0 ? void 0 : (_applicationDetails$L83 = _applicationDetails$L82.planInformation) === null || _applicationDetails$L83 === void 0 ? void 0 : _applicationDetails$L83.applicantName) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L84 = applicationDetails.Layout) === null || _applicationDetails$L84 === void 0 ? void 0 : (_applicationDetails$L85 = _applicationDetails$L84[0]) === null || _applicationDetails$L85 === void 0 ? void 0 : (_applicationDetails$L86 = _applicationDetails$L85.layoutDetails) === null || _applicationDetails$L86 === void 0 ? void 0 : (_applicationDetails$L87 = _applicationDetails$L86.additionalDetails) === null || _applicationDetails$L87 === void 0 ? void 0 : (_applicationDetails$L88 = _applicationDetails$L87.siteDetails) === null || _applicationDetails$L88 === void 0 ? void 0 : (_applicationDetails$L89 = _applicationDetails$L88.scrutinyDetails) === null || _applicationDetails$L89 === void 0 ? void 0 : _applicationDetails$L89.applicantName), t), renderLabel$1(t("PLOT_AREA"), applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$L90 = applicationDetails.Layout) !== null && _applicationDetails$L90 !== void 0 && (_applicationDetails$L91 = _applicationDetails$L90[0]) !== null && _applicationDetails$L91 !== void 0 && (_applicationDetails$L92 = _applicationDetails$L91.layoutDetails) !== null && _applicationDetails$L92 !== void 0 && (_applicationDetails$L93 = _applicationDetails$L92.additionalDetails) !== null && _applicationDetails$L93 !== void 0 && (_applicationDetails$L94 = _applicationDetails$L93.siteDetails) !== null && _applicationDetails$L94 !== void 0 && (_applicationDetails$L95 = _applicationDetails$L94.scrutinyDetails) !== null && _applicationDetails$L95 !== void 0 && (_applicationDetails$L96 = _applicationDetails$L95.planDetail) !== null && _applicationDetails$L96 !== void 0 && (_applicationDetails$L97 = _applicationDetails$L96.plot) !== null && _applicationDetails$L97 !== void 0 && _applicationDetails$L97.area || applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$L98 = applicationDetails.Layout) !== null && _applicationDetails$L98 !== void 0 && (_applicationDetails$L99 = _applicationDetails$L98[0]) !== null && _applicationDetails$L99 !== void 0 && (_applicationDetails$L100 = _applicationDetails$L99.layoutDetails) !== null && _applicationDetails$L100 !== void 0 && (_applicationDetails$L101 = _applicationDetails$L100.additionalDetails) !== null && _applicationDetails$L101 !== void 0 && (_applicationDetails$L102 = _applicationDetails$L101.siteDetails) !== null && _applicationDetails$L102 !== void 0 && (_applicationDetails$L103 = _applicationDetails$L102.scrutinyDetails) !== null && _applicationDetails$L103 !== void 0 && _applicationDetails$L103.plotArea ? `${(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L104 = applicationDetails.Layout) === null || _applicationDetails$L104 === void 0 ? void 0 : (_applicationDetails$L105 = _applicationDetails$L104[0]) === null || _applicationDetails$L105 === void 0 ? void 0 : (_applicationDetails$L106 = _applicationDetails$L105.layoutDetails) === null || _applicationDetails$L106 === void 0 ? void 0 : (_applicationDetails$L107 = _applicationDetails$L106.additionalDetails) === null || _applicationDetails$L107 === void 0 ? void 0 : (_applicationDetails$L108 = _applicationDetails$L107.siteDetails) === null || _applicationDetails$L108 === void 0 ? void 0 : (_applicationDetails$L109 = _applicationDetails$L108.scrutinyDetails) === null || _applicationDetails$L109 === void 0 ? void 0 : (_applicationDetails$L110 = _applicationDetails$L109.planDetail) === null || _applicationDetails$L110 === void 0 ? void 0 : (_applicationDetails$L111 = _applicationDetails$L110.plot) === null || _applicationDetails$L111 === void 0 ? void 0 : _applicationDetails$L111.area) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L112 = applicationDetails.Layout) === null || _applicationDetails$L112 === void 0 ? void 0 : (_applicationDetails$L113 = _applicationDetails$L112[0]) === null || _applicationDetails$L113 === void 0 ? void 0 : (_applicationDetails$L114 = _applicationDetails$L113.layoutDetails) === null || _applicationDetails$L114 === void 0 ? void 0 : (_applicationDetails$L115 = _applicationDetails$L114.additionalDetails) === null || _applicationDetails$L115 === void 0 ? void 0 : (_applicationDetails$L116 = _applicationDetails$L115.siteDetails) === null || _applicationDetails$L116 === void 0 ? void 0 : (_applicationDetails$L117 = _applicationDetails$L116.scrutinyDetails) === null || _applicationDetails$L117 === void 0 ? void 0 : _applicationDetails$L117.plotArea)} Sq-m` : "N/A", t), renderLabel$1(t("BPA_BUILDING_HEIGHT_LABEL"), applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L118 = applicationDetails.Layout) === null || _applicationDetails$L118 === void 0 ? void 0 : (_applicationDetails$L119 = _applicationDetails$L118[0]) === null || _applicationDetails$L119 === void 0 ? void 0 : (_applicationDetails$L120 = _applicationDetails$L119.layoutDetails) === null || _applicationDetails$L120 === void 0 ? void 0 : (_applicationDetails$L121 = _applicationDetails$L120.additionalDetails) === null || _applicationDetails$L121 === void 0 ? void 0 : (_applicationDetails$L122 = _applicationDetails$L121.siteDetails) === null || _applicationDetails$L122 === void 0 ? void 0 : (_applicationDetails$L123 = _applicationDetails$L122.scrutinyDetails) === null || _applicationDetails$L123 === void 0 ? void 0 : _applicationDetails$L123.buildingHeight, t), renderLabel$1(t("STATUS"), applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L124 = applicationDetails.Layout) === null || _applicationDetails$L124 === void 0 ? void 0 : (_applicationDetails$L125 = _applicationDetails$L124[0]) === null || _applicationDetails$L125 === void 0 ? void 0 : (_applicationDetails$L126 = _applicationDetails$L125.layoutDetails) === null || _applicationDetails$L126 === void 0 ? void 0 : (_applicationDetails$L127 = _applicationDetails$L126.additionalDetails) === null || _applicationDetails$L127 === void 0 ? void 0 : (_applicationDetails$L128 = _applicationDetails$L127.siteDetails) === null || _applicationDetails$L128 === void 0 ? void 0 : (_applicationDetails$L129 = _applicationDetails$L128.scrutinyDetails) === null || _applicationDetails$L129 === void 0 ? void 0 : _applicationDetails$L129.status, t), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L130 = applicationDetails.Layout) === null || _applicationDetails$L130 === void 0 ? void 0 : (_applicationDetails$L131 = _applicationDetails$L130[0]) === null || _applicationDetails$L131 === void 0 ? void 0 : (_applicationDetails$L132 = _applicationDetails$L131.layoutDetails) === null || _applicationDetails$L132 === void 0 ? void 0 : (_applicationDetails$L133 = _applicationDetails$L132.additionalDetails) === null || _applicationDetails$L133 === void 0 ? void 0 : (_applicationDetails$L134 = _applicationDetails$L133.siteDetails) === null || _applicationDetails$L134 === void 0 ? void 0 : (_applicationDetails$L135 = _applicationDetails$L134.scrutinyDetails) === null || _applicationDetails$L135 === void 0 ? void 0 : _applicationDetails$L135.updatedDxfFile) && /*#__PURE__*/React.createElement(Row, {
|
|
69373
69709
|
label: t("UPDATED_DXF_FILE"),
|
|
69374
69710
|
text: /*#__PURE__*/React.createElement(DocumentLink$1, {
|
|
69375
|
-
docUrl: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69376
|
-
tenantId: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69711
|
+
docUrl: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L136 = applicationDetails.Layout) === null || _applicationDetails$L136 === void 0 ? void 0 : (_applicationDetails$L137 = _applicationDetails$L136[0]) === null || _applicationDetails$L137 === void 0 ? void 0 : (_applicationDetails$L138 = _applicationDetails$L137.layoutDetails) === null || _applicationDetails$L138 === void 0 ? void 0 : (_applicationDetails$L139 = _applicationDetails$L138.additionalDetails) === null || _applicationDetails$L139 === void 0 ? void 0 : (_applicationDetails$L140 = _applicationDetails$L139.siteDetails) === null || _applicationDetails$L140 === void 0 ? void 0 : (_applicationDetails$L141 = _applicationDetails$L140.scrutinyDetails) === null || _applicationDetails$L141 === void 0 ? void 0 : _applicationDetails$L141.updatedDxfFile,
|
|
69712
|
+
tenantId: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L142 = applicationDetails.Layout) === null || _applicationDetails$L142 === void 0 ? void 0 : (_applicationDetails$L143 = _applicationDetails$L142[0]) === null || _applicationDetails$L143 === void 0 ? void 0 : (_applicationDetails$L144 = _applicationDetails$L143.layoutDetails) === null || _applicationDetails$L144 === void 0 ? void 0 : (_applicationDetails$L145 = _applicationDetails$L144.additionalDetails) === null || _applicationDetails$L145 === void 0 ? void 0 : (_applicationDetails$L146 = _applicationDetails$L145.siteDetails) === null || _applicationDetails$L146 === void 0 ? void 0 : (_applicationDetails$L147 = _applicationDetails$L146.scrutinyDetails) === null || _applicationDetails$L147 === void 0 ? void 0 : _applicationDetails$L147.tenantId,
|
|
69377
69713
|
t: t
|
|
69378
69714
|
})
|
|
69379
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69715
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L148 = applicationDetails.Layout) === null || _applicationDetails$L148 === void 0 ? void 0 : (_applicationDetails$L149 = _applicationDetails$L148[0]) === null || _applicationDetails$L149 === void 0 ? void 0 : (_applicationDetails$L150 = _applicationDetails$L149.layoutDetails) === null || _applicationDetails$L150 === void 0 ? void 0 : (_applicationDetails$L151 = _applicationDetails$L150.additionalDetails) === null || _applicationDetails$L151 === void 0 ? void 0 : (_applicationDetails$L152 = _applicationDetails$L151.siteDetails) === null || _applicationDetails$L152 === void 0 ? void 0 : (_applicationDetails$L153 = _applicationDetails$L152.scrutinyDetails) === null || _applicationDetails$L153 === void 0 ? void 0 : _applicationDetails$L153.planReport) && /*#__PURE__*/React.createElement(Row, {
|
|
69380
69716
|
label: t("PLAN_REPORT"),
|
|
69381
69717
|
text: /*#__PURE__*/React.createElement(DocumentLink$1, {
|
|
69382
|
-
docUrl: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69383
|
-
tenantId: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69718
|
+
docUrl: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L154 = applicationDetails.Layout) === null || _applicationDetails$L154 === void 0 ? void 0 : (_applicationDetails$L155 = _applicationDetails$L154[0]) === null || _applicationDetails$L155 === void 0 ? void 0 : (_applicationDetails$L156 = _applicationDetails$L155.layoutDetails) === null || _applicationDetails$L156 === void 0 ? void 0 : (_applicationDetails$L157 = _applicationDetails$L156.additionalDetails) === null || _applicationDetails$L157 === void 0 ? void 0 : (_applicationDetails$L158 = _applicationDetails$L157.siteDetails) === null || _applicationDetails$L158 === void 0 ? void 0 : (_applicationDetails$L159 = _applicationDetails$L158.scrutinyDetails) === null || _applicationDetails$L159 === void 0 ? void 0 : _applicationDetails$L159.planReport,
|
|
69719
|
+
tenantId: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L160 = applicationDetails.Layout) === null || _applicationDetails$L160 === void 0 ? void 0 : (_applicationDetails$L161 = _applicationDetails$L160[0]) === null || _applicationDetails$L161 === void 0 ? void 0 : (_applicationDetails$L162 = _applicationDetails$L161.layoutDetails) === null || _applicationDetails$L162 === void 0 ? void 0 : (_applicationDetails$L163 = _applicationDetails$L162.additionalDetails) === null || _applicationDetails$L163 === void 0 ? void 0 : (_applicationDetails$L164 = _applicationDetails$L163.siteDetails) === null || _applicationDetails$L164 === void 0 ? void 0 : (_applicationDetails$L165 = _applicationDetails$L164.scrutinyDetails) === null || _applicationDetails$L165 === void 0 ? void 0 : _applicationDetails$L165.tenantId,
|
|
69384
69720
|
t: t
|
|
69385
69721
|
})
|
|
69386
|
-
})))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("
|
|
69722
|
+
})))), geoJSON && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("MAP_GEO_LOCATION")), /*#__PURE__*/React.createElement("div", {
|
|
69723
|
+
className: "h-[600px] w-full overflow-hidden bg-gray-100 rounded-xl border border-gray-200 dark:border-gray-700 relative"
|
|
69724
|
+
}, /*#__PURE__*/React.createElement(MapViewer, {
|
|
69725
|
+
geoJSON: geoJSON,
|
|
69726
|
+
center: center,
|
|
69727
|
+
onCenterChange: () => {},
|
|
69728
|
+
onMapMove: () => {},
|
|
69729
|
+
flyToLocation: center,
|
|
69730
|
+
readOnly: true
|
|
69731
|
+
}))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_SITE_PHOTOGRAPHS")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
69387
69732
|
style: {
|
|
69388
69733
|
display: "flex",
|
|
69389
69734
|
gap: "20px",
|
|
@@ -69395,7 +69740,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69395
69740
|
filestoreId: (doc === null || doc === void 0 ? void 0 : doc.filestoreId) || (doc === null || doc === void 0 ? void 0 : doc.uuid),
|
|
69396
69741
|
documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
69397
69742
|
coordinates: coordinates === null || coordinates === void 0 ? void 0 : coordinates[0]
|
|
69398
|
-
})))), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69743
|
+
})))), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L166 = applicationDetails.Layout) === null || _applicationDetails$L166 === void 0 ? void 0 : (_applicationDetails$L167 = _applicationDetails$L166[0]) === null || _applicationDetails$L167 === void 0 ? void 0 : _applicationDetails$L167.applicationStatus) !== "DOCUMENTVERIFY_DM" && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_TITILE_DOCUMENT_UPLOADED")), /*#__PURE__*/React.createElement(StatusTable, null, (remainingDocs === null || remainingDocs === void 0 ? void 0 : remainingDocs.length) > 0 && /*#__PURE__*/React.createElement(LayoutDocumentChecklist, {
|
|
69399
69744
|
documents: remainingDocs,
|
|
69400
69745
|
applicationNo: id,
|
|
69401
69746
|
tenantId: tenantId,
|
|
@@ -69405,7 +69750,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69405
69750
|
readOnly: false,
|
|
69406
69751
|
allChecklistItemsFilled: allChecklistItemsFilled,
|
|
69407
69752
|
userRole: userLevel
|
|
69408
|
-
}))), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69753
|
+
}))), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L168 = applicationDetails.Layout) === null || _applicationDetails$L168 === void 0 ? void 0 : (_applicationDetails$L169 = _applicationDetails$L168[0]) === null || _applicationDetails$L169 === void 0 ? void 0 : _applicationDetails$L169.applicationStatus) === "DOCUMENTVERIFY_DM" && isL2Role && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_TITILE_DOCUMENT_UPLOADED")), /*#__PURE__*/React.createElement(StatusTable, null, (remainingDocs === null || remainingDocs === void 0 ? void 0 : remainingDocs.length) > 0 && /*#__PURE__*/React.createElement(LayoutDocumentChecklist, {
|
|
69409
69754
|
documents: remainingDocs,
|
|
69410
69755
|
applicationNo: id,
|
|
69411
69756
|
tenantId: tenantId,
|
|
@@ -69414,7 +69759,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69414
69759
|
statusOptions: layoutMdmsData === null || layoutMdmsData === void 0 ? void 0 : (_layoutMdmsData$LAYOU2 = layoutMdmsData.LAYOUT) === null || _layoutMdmsData$LAYOU2 === void 0 ? void 0 : _layoutMdmsData$LAYOU2.DocumentCheckListStatus,
|
|
69415
69760
|
allChecklistItemsFilled: allChecklistItemsFilled,
|
|
69416
69761
|
userRole: userLevel
|
|
69417
|
-
}))), (["L1", "L2", "L3"].includes(userLevel) || ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69762
|
+
}))), (["L1", "L2", "L3"].includes(userLevel) || ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L170 = applicationDetails.Layout) === null || _applicationDetails$L170 === void 0 ? void 0 : (_applicationDetails$L171 = _applicationDetails$L170[0]) === null || _applicationDetails$L171 === void 0 ? void 0 : (_applicationDetails$L172 = _applicationDetails$L171.layoutDetails) === null || _applicationDetails$L172 === void 0 ? void 0 : (_applicationDetails$L173 = _applicationDetails$L172.additionalDetails) === null || _applicationDetails$L173 === void 0 ? void 0 : _applicationDetails$L173.observationRemarks) || []).length > 0) && /*#__PURE__*/React.createElement(Card, {
|
|
69418
69763
|
style: {
|
|
69419
69764
|
padding: "24px",
|
|
69420
69765
|
borderRadius: "8px",
|
|
@@ -69434,7 +69779,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69434
69779
|
}
|
|
69435
69780
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
69436
69781
|
style: {
|
|
69437
|
-
marginBottom: ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69782
|
+
marginBottom: ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L174 = applicationDetails.Layout) === null || _applicationDetails$L174 === void 0 ? void 0 : (_applicationDetails$L175 = _applicationDetails$L174[0]) === null || _applicationDetails$L175 === void 0 ? void 0 : (_applicationDetails$L176 = _applicationDetails$L175.layoutDetails) === null || _applicationDetails$L176 === void 0 ? void 0 : (_applicationDetails$L177 = _applicationDetails$L176.additionalDetails) === null || _applicationDetails$L177 === void 0 ? void 0 : _applicationDetails$L177.observationRemarks) || []).length > 0 ? "24px" : "0px",
|
|
69438
69783
|
borderRadius: "8px",
|
|
69439
69784
|
overflow: "hidden"
|
|
69440
69785
|
}
|
|
@@ -69452,7 +69797,7 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69452
69797
|
fontSize: "15px",
|
|
69453
69798
|
lineHeight: "1.5"
|
|
69454
69799
|
}
|
|
69455
|
-
}))), ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69800
|
+
}))), ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L178 = applicationDetails.Layout) === null || _applicationDetails$L178 === void 0 ? void 0 : (_applicationDetails$L179 = _applicationDetails$L178[0]) === null || _applicationDetails$L179 === void 0 ? void 0 : (_applicationDetails$L180 = _applicationDetails$L179.layoutDetails) === null || _applicationDetails$L180 === void 0 ? void 0 : (_applicationDetails$L181 = _applicationDetails$L180.additionalDetails) === null || _applicationDetails$L181 === void 0 ? void 0 : _applicationDetails$L181.observationRemarks) || []).length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
69456
69801
|
style: {
|
|
69457
69802
|
marginTop: ["L1", "L2", "L3"].includes(userLevel) ? "40px" : "0px"
|
|
69458
69803
|
}
|
|
@@ -69603,49 +69948,49 @@ const LayoutEmployeeApplicationOverview = () => {
|
|
|
69603
69948
|
}
|
|
69604
69949
|
}, t("SITE_INSPECTION_IMAGES_LOCATIONS")), /*#__PURE__*/React.createElement(CustomLocationSearch, {
|
|
69605
69950
|
position: geoLocations
|
|
69606
|
-
}))), !isMdmsLoading && (mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$NOC = mdmsData.NOC) === null || _mdmsData$NOC === void 0 ? void 0 : (_mdmsData$NOC$NocType = _mdmsData$NOC.NocType) === null || _mdmsData$NOC$NocType === void 0 ? void 0 : _mdmsData$NOC$NocType.length) > 0 && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69951
|
+
}))), !isMdmsLoading && (mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$NOC = mdmsData.NOC) === null || _mdmsData$NOC === void 0 ? void 0 : (_mdmsData$NOC$NocType = _mdmsData$NOC.NocType) === null || _mdmsData$NOC$NocType === void 0 ? void 0 : _mdmsData$NOC$NocType.length) > 0 && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L182 = applicationDetails.Layout) === null || _applicationDetails$L182 === void 0 ? void 0 : (_applicationDetails$L183 = _applicationDetails$L182[0]) === null || _applicationDetails$L183 === void 0 ? void 0 : _applicationDetails$L183.applicationStatus) !== "L1_VERIFICATION" && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("NOC_TYPE_LABEL")), /*#__PURE__*/React.createElement(CustomFeeTable, {
|
|
69607
69952
|
data: (mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$NOC2 = mdmsData.NOC) === null || _mdmsData$NOC2 === void 0 ? void 0 : _mdmsData$NOC2.NocType) || [],
|
|
69608
69953
|
columns: columns,
|
|
69609
69954
|
t: t,
|
|
69610
69955
|
readOnly: false
|
|
69611
|
-
})), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69956
|
+
})), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L184 = applicationDetails.Layout) === null || _applicationDetails$L184 === void 0 ? void 0 : (_applicationDetails$L185 = _applicationDetails$L184[0]) === null || _applicationDetails$L185 === void 0 ? void 0 : _applicationDetails$L185.applicationStatus) === "INSPECTION_REPORT_PENDING" && hasRole && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
69612
69957
|
id: "fieldInspection"
|
|
69613
69958
|
}), /*#__PURE__*/React.createElement(InspectionReport$1, {
|
|
69614
69959
|
isCitizen: true,
|
|
69615
|
-
fiReport: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69960
|
+
fiReport: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L186 = applicationDetails.Layout) === null || _applicationDetails$L186 === void 0 ? void 0 : (_applicationDetails$L187 = _applicationDetails$L186[0]) === null || _applicationDetails$L187 === void 0 ? void 0 : (_applicationDetails$L188 = _applicationDetails$L187.layoutDetails) === null || _applicationDetails$L188 === void 0 ? void 0 : (_applicationDetails$L189 = _applicationDetails$L188.additionalDetails) === null || _applicationDetails$L189 === void 0 ? void 0 : _applicationDetails$L189.fieldinspection_pending) || [],
|
|
69616
69961
|
onSelect: onChangeReport,
|
|
69617
|
-
applicationStatus: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69618
|
-
})), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69962
|
+
applicationStatus: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L190 = applicationDetails.Layout) === null || _applicationDetails$L190 === void 0 ? void 0 : (_applicationDetails$L191 = _applicationDetails$L190[0]) === null || _applicationDetails$L191 === void 0 ? void 0 : _applicationDetails$L191.applicationStatus
|
|
69963
|
+
})), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L192 = applicationDetails.Layout) === null || _applicationDetails$L192 === void 0 ? void 0 : (_applicationDetails$L193 = _applicationDetails$L192[0]) === null || _applicationDetails$L193 === void 0 ? void 0 : _applicationDetails$L193.applicationStatus) !== "INSPECTION_REPORT_PENDING" && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L194 = applicationDetails.Layout) === null || _applicationDetails$L194 === void 0 ? void 0 : (_applicationDetails$L195 = _applicationDetails$L194[0]) === null || _applicationDetails$L195 === void 0 ? void 0 : (_applicationDetails$L196 = _applicationDetails$L195.layoutDetails) === null || _applicationDetails$L196 === void 0 ? void 0 : (_applicationDetails$L197 = _applicationDetails$L196.additionalDetails) === null || _applicationDetails$L197 === void 0 ? void 0 : (_applicationDetails$L198 = _applicationDetails$L197.fieldinspection_pending) === null || _applicationDetails$L198 === void 0 ? void 0 : _applicationDetails$L198.length) > 0 && /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
69619
69964
|
id: "fieldInspection"
|
|
69620
69965
|
}), /*#__PURE__*/React.createElement(InspectionReportDisplay, {
|
|
69621
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69622
|
-
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_FEE_DETAILS_LABEL")), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69966
|
+
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L199 = applicationDetails.Layout) === null || _applicationDetails$L199 === void 0 ? void 0 : (_applicationDetails$L200 = _applicationDetails$L199[0]) === null || _applicationDetails$L200 === void 0 ? void 0 : (_applicationDetails$L201 = _applicationDetails$L200.layoutDetails) === null || _applicationDetails$L201 === void 0 ? void 0 : (_applicationDetails$L202 = _applicationDetails$L201.additionalDetails) === null || _applicationDetails$L202 === void 0 ? void 0 : _applicationDetails$L202.fieldinspection_pending
|
|
69967
|
+
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_FEE_DETAILS_LABEL")), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L203 = applicationDetails.Layout) === null || _applicationDetails$L203 === void 0 ? void 0 : (_applicationDetails$L204 = _applicationDetails$L203[0]) === null || _applicationDetails$L204 === void 0 ? void 0 : _applicationDetails$L204.layoutDetails) && /*#__PURE__*/React.createElement(LayoutFeeEstimationDetails, {
|
|
69623
69968
|
formData: {
|
|
69624
69969
|
apiData: {
|
|
69625
69970
|
...applicationDetails
|
|
69626
69971
|
},
|
|
69627
69972
|
applicationDetails: {
|
|
69628
|
-
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69973
|
+
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L205 = applicationDetails.Layout) === null || _applicationDetails$L205 === void 0 ? void 0 : (_applicationDetails$L206 = _applicationDetails$L205[0]) === null || _applicationDetails$L206 === void 0 ? void 0 : (_applicationDetails$L207 = _applicationDetails$L206.layoutDetails) === null || _applicationDetails$L207 === void 0 ? void 0 : (_applicationDetails$L208 = _applicationDetails$L207.additionalDetails) === null || _applicationDetails$L208 === void 0 ? void 0 : _applicationDetails$L208.applicationDetails)
|
|
69629
69974
|
},
|
|
69630
69975
|
siteDetails: {
|
|
69631
|
-
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69976
|
+
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L209 = applicationDetails.Layout) === null || _applicationDetails$L209 === void 0 ? void 0 : (_applicationDetails$L210 = _applicationDetails$L209[0]) === null || _applicationDetails$L210 === void 0 ? void 0 : (_applicationDetails$L211 = _applicationDetails$L210.layoutDetails) === null || _applicationDetails$L211 === void 0 ? void 0 : (_applicationDetails$L212 = _applicationDetails$L211.additionalDetails) === null || _applicationDetails$L212 === void 0 ? void 0 : _applicationDetails$L212.siteDetails)
|
|
69632
69977
|
},
|
|
69633
|
-
calculations: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69978
|
+
calculations: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L213 = applicationDetails.Layout) === null || _applicationDetails$L213 === void 0 ? void 0 : (_applicationDetails$L214 = _applicationDetails$L213[0]) === null || _applicationDetails$L214 === void 0 ? void 0 : (_applicationDetails$L215 = _applicationDetails$L214.layoutDetails) === null || _applicationDetails$L215 === void 0 ? void 0 : (_applicationDetails$L216 = _applicationDetails$L215.additionalDetails) === null || _applicationDetails$L216 === void 0 ? void 0 : _applicationDetails$L216.calculations) || []
|
|
69634
69979
|
},
|
|
69635
69980
|
feeType: "PAY1",
|
|
69636
69981
|
disable: isFeeDisabled
|
|
69637
|
-
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_FEE_DETAILS_TABLE_LABEL")), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69982
|
+
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_FEE_DETAILS_TABLE_LABEL")), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L217 = applicationDetails.Layout) === null || _applicationDetails$L217 === void 0 ? void 0 : (_applicationDetails$L218 = _applicationDetails$L217[0]) === null || _applicationDetails$L218 === void 0 ? void 0 : _applicationDetails$L218.layoutDetails) && /*#__PURE__*/React.createElement(LayoutFeeEstimationDetailsTable, {
|
|
69638
69983
|
formData: {
|
|
69639
69984
|
apiData: {
|
|
69640
69985
|
...applicationDetails
|
|
69641
69986
|
},
|
|
69642
69987
|
applicationDetails: {
|
|
69643
|
-
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69988
|
+
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L219 = applicationDetails.Layout) === null || _applicationDetails$L219 === void 0 ? void 0 : (_applicationDetails$L220 = _applicationDetails$L219[0]) === null || _applicationDetails$L220 === void 0 ? void 0 : (_applicationDetails$L221 = _applicationDetails$L220.layoutDetails) === null || _applicationDetails$L221 === void 0 ? void 0 : (_applicationDetails$L222 = _applicationDetails$L221.additionalDetails) === null || _applicationDetails$L222 === void 0 ? void 0 : _applicationDetails$L222.applicationDetails)
|
|
69644
69989
|
},
|
|
69645
69990
|
siteDetails: {
|
|
69646
|
-
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69991
|
+
...(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L223 = applicationDetails.Layout) === null || _applicationDetails$L223 === void 0 ? void 0 : (_applicationDetails$L224 = _applicationDetails$L223[0]) === null || _applicationDetails$L224 === void 0 ? void 0 : (_applicationDetails$L225 = _applicationDetails$L224.layoutDetails) === null || _applicationDetails$L225 === void 0 ? void 0 : (_applicationDetails$L226 = _applicationDetails$L225.additionalDetails) === null || _applicationDetails$L226 === void 0 ? void 0 : _applicationDetails$L226.siteDetails)
|
|
69647
69992
|
},
|
|
69648
|
-
calculations: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
69993
|
+
calculations: (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$L227 = applicationDetails.Layout) === null || _applicationDetails$L227 === void 0 ? void 0 : (_applicationDetails$L228 = _applicationDetails$L227[0]) === null || _applicationDetails$L228 === void 0 ? void 0 : (_applicationDetails$L229 = _applicationDetails$L228.layoutDetails) === null || _applicationDetails$L229 === void 0 ? void 0 : (_applicationDetails$L230 = _applicationDetails$L229.additionalDetails) === null || _applicationDetails$L230 === void 0 ? void 0 : _applicationDetails$L230.calculations) || []
|
|
69649
69994
|
},
|
|
69650
69995
|
feeType: "PAY2",
|
|
69651
69996
|
feeAdjustments: feeAdjustments,
|
|
@@ -69770,8 +70115,8 @@ const layoutStepperConfig = [{
|
|
|
69770
70115
|
}];
|
|
69771
70116
|
|
|
69772
70117
|
const createEmployeeConfig$2 = [{
|
|
69773
|
-
head: "
|
|
69774
|
-
stepLabel: "
|
|
70118
|
+
head: "APPLICATION DETAILS",
|
|
70119
|
+
stepLabel: "BPA_APPLICATION_DETAILS",
|
|
69775
70120
|
stepNumber: 1,
|
|
69776
70121
|
isStepEnabled: true,
|
|
69777
70122
|
type: "component",
|
|
@@ -69817,6 +70162,18 @@ const createEmployeeConfig$2 = [{
|
|
|
69817
70162
|
texts: {
|
|
69818
70163
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
69819
70164
|
}
|
|
70165
|
+
}, {
|
|
70166
|
+
head: "GEO TAG",
|
|
70167
|
+
stepLabel: "BPA_STEPPER_GEO_TAG_DETAILS",
|
|
70168
|
+
stepNumber: 5,
|
|
70169
|
+
isStepEnabled: true,
|
|
70170
|
+
type: "component",
|
|
70171
|
+
component: "LayoutStepGeoTag",
|
|
70172
|
+
key: "geotag",
|
|
70173
|
+
withoutLabel: true,
|
|
70174
|
+
texts: {
|
|
70175
|
+
submitBarLabel: "CS_COMMON_NEXT"
|
|
70176
|
+
}
|
|
69820
70177
|
}, {
|
|
69821
70178
|
head: "SUMMARY",
|
|
69822
70179
|
stepLabel: "LA_SUMMARY_DETAILS",
|
|
@@ -69843,7 +70200,7 @@ const useQueryParam$2 = key => {
|
|
|
69843
70200
|
return new URLSearchParams(search).get(key);
|
|
69844
70201
|
};
|
|
69845
70202
|
const LayoutStepperForm = () => {
|
|
69846
|
-
var _Digit, _Digit$Hooks, _Digit$Hooks$obps, _Digit2, _Digit2$Hooks, _Digit2$Hooks$obps, _Digit3, _Digit3$Hooks, _Digit3$Hooks$obps, _Digit4, _Digit4$Hooks, _Digit4$Hooks$obps, _Digit5, _Digit5$Hooks, _Digit5$Hooks$obps, _Digit6, _Digit6$Hooks, _mdmsData$BPA, _mdmsData$BPA$LayoutT, _mdmsData$BPA$LayoutT2, _Digit7, _Digit7$Hooks, _Digit8, _Digit8$Hooks, _data$data, _data$data$, _layoutObject$layoutD, _layoutObject$layoutD2, _layoutObject$layoutD3, _layoutObject$layoutD4, _layoutObject$layoutD5, _layoutObject$layoutD6, _layoutObject$owners, _primaryOwner$additio, _primaryOwner$additio2, _primaryOwner$additio3, _primaryOwner$additio4, _primaryOwner$additio5, _primaryOwner$additio6, _primaryOwner$additio7, _primaryOwner$additio8, _Digit9, _Digit9$Hooks, _Digit9$Hooks$obps, _genderTypeData$commo, _genderTypeData$commo2, _genderTypeData$commo3;
|
|
70203
|
+
var _Digit, _Digit$Hooks, _Digit$Hooks$obps, _Digit2, _Digit2$Hooks, _Digit2$Hooks$obps, _Digit3, _Digit3$Hooks, _Digit3$Hooks$obps, _Digit4, _Digit4$Hooks, _Digit4$Hooks$obps, _Digit5, _Digit5$Hooks, _Digit5$Hooks$obps, _Digit6, _Digit6$Hooks, _mdmsData$BPA, _mdmsData$BPA$LayoutT, _mdmsData$BPA$LayoutT2, _Digit7, _Digit7$Hooks, _Digit8, _Digit8$Hooks, _data$data, _data$data$, _layoutObject$layoutD, _layoutObject$layoutD2, _layoutObject$layoutD3, _layoutObject$layoutD4, _layoutObject$layoutD5, _layoutObject$layoutD6, _layoutObject$layoutD7, _layoutObject$layoutD8, _layoutObject$additio, _layoutObject$layoutD9, _layoutObject$layoutD0, _layoutObject$layoutD1, _layoutObject$layoutD10, _layoutObject$layoutD11, _layoutObject$layoutD12, _layoutObject$owners, _primaryOwner$additio, _primaryOwner$additio2, _primaryOwner$additio3, _primaryOwner$additio4, _primaryOwner$additio5, _primaryOwner$additio6, _primaryOwner$additio7, _primaryOwner$additio8, _Digit9, _Digit9$Hooks, _Digit9$Hooks$obps, _genderTypeData$commo, _genderTypeData$commo2, _genderTypeData$commo3;
|
|
69847
70204
|
const history = useHistory();
|
|
69848
70205
|
const {
|
|
69849
70206
|
t
|
|
@@ -69950,6 +70307,9 @@ const LayoutStepperForm = () => {
|
|
|
69950
70307
|
const siteDetails = (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$layoutD3 = layoutObject.layoutDetails) === null || _layoutObject$layoutD3 === void 0 ? void 0 : (_layoutObject$layoutD4 = _layoutObject$layoutD3.additionalDetails) === null || _layoutObject$layoutD4 === void 0 ? void 0 : _layoutObject$layoutD4.siteDetails) || {};
|
|
69951
70308
|
const coordinates = (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$layoutD5 = layoutObject.layoutDetails) === null || _layoutObject$layoutD5 === void 0 ? void 0 : (_layoutObject$layoutD6 = _layoutObject$layoutD5.additionalDetails) === null || _layoutObject$layoutD6 === void 0 ? void 0 : _layoutObject$layoutD6.coordinates) || {};
|
|
69952
70309
|
const documents = (layoutObject === null || layoutObject === void 0 ? void 0 : layoutObject.documents) || [];
|
|
70310
|
+
const scrutinyMetadata = (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$layoutD7 = layoutObject.layoutDetails) === null || _layoutObject$layoutD7 === void 0 ? void 0 : (_layoutObject$layoutD8 = _layoutObject$layoutD7.additionalDetails) === null || _layoutObject$layoutD8 === void 0 ? void 0 : _layoutObject$layoutD8.scrutinyDetails) || (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$additio = layoutObject.additionalDetails) === null || _layoutObject$additio === void 0 ? void 0 : _layoutObject$additio.scrutinyDetails) || {};
|
|
70311
|
+
const savedEdcrNumber = (scrutinyMetadata === null || scrutinyMetadata === void 0 ? void 0 : scrutinyMetadata.edcrNumber) || (layoutObject === null || layoutObject === void 0 ? void 0 : layoutObject.edcrNumber) || (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$layoutD9 = layoutObject.layoutDetails) === null || _layoutObject$layoutD9 === void 0 ? void 0 : (_layoutObject$layoutD0 = _layoutObject$layoutD9.additionalDetails) === null || _layoutObject$layoutD0 === void 0 ? void 0 : _layoutObject$layoutD0.edcrNumber) || (siteDetails === null || siteDetails === void 0 ? void 0 : siteDetails.edcrNumber) || "";
|
|
70312
|
+
const savedScrutinyFileStoreId = (scrutinyMetadata === null || scrutinyMetadata === void 0 ? void 0 : scrutinyMetadata.updatedDxfFile) || (layoutObject === null || layoutObject === void 0 ? void 0 : layoutObject.updatedDxfFile) || (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$layoutD1 = layoutObject.layoutDetails) === null || _layoutObject$layoutD1 === void 0 ? void 0 : (_layoutObject$layoutD10 = _layoutObject$layoutD1.additionalDetails) === null || _layoutObject$layoutD10 === void 0 ? void 0 : _layoutObject$layoutD10.updatedDxfFile) || (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$layoutD11 = layoutObject.layoutDetails) === null || _layoutObject$layoutD11 === void 0 ? void 0 : (_layoutObject$layoutD12 = _layoutObject$layoutD11.additionalDetails) === null || _layoutObject$layoutD12 === void 0 ? void 0 : _layoutObject$layoutD12.scrutinyFileStoreId) || "";
|
|
69953
70313
|
const primaryOwner = (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$owners = layoutObject.owners) === null || _layoutObject$owners === void 0 ? void 0 : _layoutObject$owners[0]) || {};
|
|
69954
70314
|
const applicantDetails = {
|
|
69955
70315
|
applicantName: (primaryOwner === null || primaryOwner === void 0 ? void 0 : primaryOwner.name) || "",
|
|
@@ -70034,7 +70394,7 @@ const LayoutStepperForm = () => {
|
|
|
70034
70394
|
hasResetForm.current = true;
|
|
70035
70395
|
}
|
|
70036
70396
|
if (!isBuildingTypeLoading && !isBuildingCategoryLoading && !isRoadTypeLoading && !isLayoutTypeLoading && !isMdmsLoading && !isLoading && layoutObject !== null && layoutObject !== void 0 && layoutObject.layoutDetails && !isUlbListLoading && !isGenderLoading && menu.length > 0 && !isDataInitialized.current) {
|
|
70037
|
-
var _primaryOwner$additio9, _primaryOwner$additio0, _primaryOwner$additio1, _primaryOwner$additio10, _ownersFromApi$filter;
|
|
70397
|
+
var _primaryOwner$additio9, _primaryOwner$additio0, _primaryOwner$additio1, _primaryOwner$additio10, _layoutObject$layoutD13, _layoutObject$layoutD14, _ownersFromApi$filter;
|
|
70038
70398
|
isDataInitialized.current = true;
|
|
70039
70399
|
const formattedDocuments = {
|
|
70040
70400
|
documents: documents === null || documents === void 0 ? void 0 : documents.map(doc => ({
|
|
@@ -70194,6 +70554,12 @@ const LayoutStepperForm = () => {
|
|
|
70194
70554
|
}
|
|
70195
70555
|
})();
|
|
70196
70556
|
}
|
|
70557
|
+
const savedGeoJSON = (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$layoutD13 = layoutObject.layoutDetails) === null || _layoutObject$layoutD13 === void 0 ? void 0 : (_layoutObject$layoutD14 = _layoutObject$layoutD13.additionalDetails) === null || _layoutObject$layoutD14 === void 0 ? void 0 : _layoutObject$layoutD14.geojson) || (layoutObject === null || layoutObject === void 0 ? void 0 : layoutObject.geojson) || null;
|
|
70558
|
+
if (savedGeoJSON) {
|
|
70559
|
+
dispatch(UPDATE_LayoutNewApplication_FORM("geotag", {
|
|
70560
|
+
geojson: savedGeoJSON
|
|
70561
|
+
}));
|
|
70562
|
+
}
|
|
70197
70563
|
if (siteDetails !== null && siteDetails !== void 0 && siteDetails.scrutinyFileStoreId || layoutObject !== null && layoutObject !== void 0 && layoutObject.scrutinyFileStoreId) {
|
|
70198
70564
|
dispatch(UPDATE_LayoutNewApplication_FORM("scrutinyFileStoreId", (siteDetails === null || siteDetails === void 0 ? void 0 : siteDetails.scrutinyFileStoreId) || (layoutObject === null || layoutObject === void 0 ? void 0 : layoutObject.scrutinyFileStoreId)));
|
|
70199
70565
|
}
|
|
@@ -70240,7 +70606,7 @@ const LayoutStepperForm = () => {
|
|
|
70240
70606
|
const applicantsForForm = allApplicants.length > 0 ? allApplicants : [];
|
|
70241
70607
|
dispatch(UPDATE_LayoutNewApplication_FORM("applicants", applicantsForForm));
|
|
70242
70608
|
}
|
|
70243
|
-
}, [isLoading, isUlbListLoading, isGenderLoading, layoutObject, menu.length, isBuildingTypeLoading, isBuildingCategoryLoading, isRoadTypeLoading, isLayoutTypeLoading, isMdmsLoading,
|
|
70609
|
+
}, [isLoading, isUlbListLoading, isGenderLoading, layoutObject, menu.length, isBuildingTypeLoading, isBuildingCategoryLoading, isRoadTypeLoading, isLayoutTypeLoading, isMdmsLoading, savedEdcrNumber, savedScrutinyFileStoreId]);
|
|
70244
70610
|
const setStep = updatedStepNumber => {
|
|
70245
70611
|
dispatch(SET_LayoutNewApplication_STEP(updatedStepNumber));
|
|
70246
70612
|
};
|
|
@@ -70630,6 +70996,10 @@ const LayoutStepFormTwo = ({
|
|
|
70630
70996
|
var _state$obps, _state$obps$LayoutNew;
|
|
70631
70997
|
return (state === null || state === void 0 ? void 0 : (_state$obps = state.obps) === null || _state$obps === void 0 ? void 0 : (_state$obps$LayoutNew = _state$obps.LayoutNewApplicationFormReducer) === null || _state$obps$LayoutNew === void 0 ? void 0 : _state$obps$LayoutNew.coordinates) || {};
|
|
70632
70998
|
});
|
|
70999
|
+
const geotag = useSelector(state => {
|
|
71000
|
+
var _state$obps2, _state$obps2$LayoutNe;
|
|
71001
|
+
return (state === null || state === void 0 ? void 0 : (_state$obps2 = state.obps) === null || _state$obps2 === void 0 ? void 0 : (_state$obps2$LayoutNe = _state$obps2.LayoutNewApplicationFormReducer) === null || _state$obps2$LayoutNe === void 0 ? void 0 : _state$obps2$LayoutNe.geotag) || {};
|
|
71002
|
+
});
|
|
70633
71003
|
const {
|
|
70634
71004
|
control,
|
|
70635
71005
|
handleSubmit,
|
|
@@ -70868,6 +71238,8 @@ const LayoutStepFormTwo = ({
|
|
|
70868
71238
|
const actualTenantId = window.location.href.includes("citizen") ? (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails = formData.siteDetails) === null || _formData$siteDetails === void 0 ? void 0 : (_formData$siteDetails2 = _formData$siteDetails.regionOffice) === null || _formData$siteDetails2 === void 0 ? void 0 : _formData$siteDetails2.code) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails3 = formData.siteDetails) === null || _formData$siteDetails3 === void 0 ? void 0 : (_formData$siteDetails4 = _formData$siteDetails3.regionOffice) === null || _formData$siteDetails4 === void 0 ? void 0 : _formData$siteDetails4.tenantId) : tenantId;
|
|
70869
71239
|
const planningAreaCode = (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails5 = formData.siteDetails) === null || _formData$siteDetails5 === void 0 ? void 0 : _formData$siteDetails5.planningAreaCode) || "";
|
|
70870
71240
|
const planningAreaName = (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails6 = formData.siteDetails) === null || _formData$siteDetails6 === void 0 ? void 0 : _formData$siteDetails6.planningAreaName) || "";
|
|
71241
|
+
const geojson = (geotag === null || geotag === void 0 ? void 0 : geotag.geojson) || null;
|
|
71242
|
+
const serializedGeoJSON = geojson ? JSON.stringify(geojson) : null;
|
|
70871
71243
|
const transformedSiteDetails = {
|
|
70872
71244
|
...(formData === null || formData === void 0 ? void 0 : formData.siteDetails),
|
|
70873
71245
|
ulbName: (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails7 = formData.siteDetails) === null || _formData$siteDetails7 === void 0 ? void 0 : (_formData$siteDetails8 = _formData$siteDetails7.ulbName) === null || _formData$siteDetails8 === void 0 ? void 0 : _formData$siteDetails8.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails9 = formData.siteDetails) === null || _formData$siteDetails9 === void 0 ? void 0 : _formData$siteDetails9.ulbName) || "",
|
|
@@ -70932,7 +71304,8 @@ const LayoutStepFormTwo = ({
|
|
|
70932
71304
|
edcrNumber: (formData === null || formData === void 0 ? void 0 : formData.scrutinyNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$scrutiny = formData.scrutiny) === null || _formData$scrutiny === void 0 ? void 0 : _formData$scrutiny.scrutinyNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails70 = formData.siteDetails) === null || _formData$siteDetails70 === void 0 ? void 0 : _formData$siteDetails70.edcrNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails71 = formData.siteDetails) === null || _formData$siteDetails71 === void 0 ? void 0 : _formData$siteDetails71.scrutinyNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$scrutiny2 = formData.scrutiny) === null || _formData$scrutiny2 === void 0 ? void 0 : (_formData$scrutiny2$s = _formData$scrutiny2.scrutinyDetails) === null || _formData$scrutiny2$s === void 0 ? void 0 : _formData$scrutiny2$s.edcrNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$scrutinyDet = formData.scrutinyDetails) === null || _formData$scrutinyDet === void 0 ? void 0 : _formData$scrutinyDet.edcrNumber) || null,
|
|
70933
71305
|
scrutinyFileStoreId: (formData === null || formData === void 0 ? void 0 : formData.scrutinyFileStoreId) || (formData === null || formData === void 0 ? void 0 : (_formData$scrutiny3 = formData.scrutiny) === null || _formData$scrutiny3 === void 0 ? void 0 : _formData$scrutiny3.scrutinyFileStoreId) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails72 = formData.siteDetails) === null || _formData$siteDetails72 === void 0 ? void 0 : _formData$siteDetails72.scrutinyFileStoreId) || null,
|
|
70934
71306
|
scrutinyNumber: (formData === null || formData === void 0 ? void 0 : formData.scrutinyNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$scrutiny4 = formData.scrutiny) === null || _formData$scrutiny4 === void 0 ? void 0 : _formData$scrutiny4.scrutinyNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails73 = formData.siteDetails) === null || _formData$siteDetails73 === void 0 ? void 0 : _formData$siteDetails73.scrutinyNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails74 = formData.siteDetails) === null || _formData$siteDetails74 === void 0 ? void 0 : _formData$siteDetails74.edcrNumber) || null,
|
|
70935
|
-
scrutinyDetails: (formData === null || formData === void 0 ? void 0 : formData.scrutinyDetails) || (formData === null || formData === void 0 ? void 0 : (_formData$scrutiny5 = formData.scrutiny) === null || _formData$scrutiny5 === void 0 ? void 0 : _formData$scrutiny5.scrutinyDetails) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails75 = formData.siteDetails) === null || _formData$siteDetails75 === void 0 ? void 0 : _formData$siteDetails75.scrutinyDetails) || null
|
|
71307
|
+
scrutinyDetails: (formData === null || formData === void 0 ? void 0 : formData.scrutinyDetails) || (formData === null || formData === void 0 ? void 0 : (_formData$scrutiny5 = formData.scrutiny) === null || _formData$scrutiny5 === void 0 ? void 0 : _formData$scrutiny5.scrutinyDetails) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails75 = formData.siteDetails) === null || _formData$siteDetails75 === void 0 ? void 0 : _formData$siteDetails75.scrutinyDetails) || null,
|
|
71308
|
+
geojson: serializedGeoJSON
|
|
70936
71309
|
};
|
|
70937
71310
|
const applicants = [];
|
|
70938
71311
|
applicants.push({
|
|
@@ -71000,6 +71373,7 @@ const LayoutStepFormTwo = ({
|
|
|
71000
71373
|
layoutType: "LAYOUT",
|
|
71001
71374
|
status: "ACTIVE",
|
|
71002
71375
|
tenantId: actualTenantId,
|
|
71376
|
+
geojson: serializedGeoJSON,
|
|
71003
71377
|
workflow: {
|
|
71004
71378
|
action: "INITIATE"
|
|
71005
71379
|
},
|
|
@@ -71042,12 +71416,14 @@ const LayoutStepFormTwo = ({
|
|
|
71042
71416
|
}
|
|
71043
71417
|
};
|
|
71044
71418
|
const callUpdateAPI = async formValues => {
|
|
71045
|
-
var _Digit$UserService$ge2, _currentStepData$apiD4, _currentStepData$apiD5, _currentStepData$apiD6, _formValues$regionOff, _formValues$regionOff2, _formValues$ulbName, _formValues$buildingS, _formValues$isBasemen, _formValues$specifica, _formValues$specifica2, _formValues$specifica3, _formValues$specifica4, _formValues$isCluRequ, _formValues$cluType, _formValues$applicati, _formValues$isGovernm, _formValues$governmen, _currentStepData$scru, _currentStepData$site88, _currentStepData$site89, _currentStepData$scru2, _currentStepData$scru3, _currentStepData$scru4, _existingLayout$
|
|
71419
|
+
var _Digit$UserService$ge2, _currentStepData$apiD4, _currentStepData$apiD5, _currentStepData$apiD6, _formValues$regionOff, _formValues$regionOff2, _existingLayout$layou, _existingLayout$layou2, _existingLayout$layou3, _formValues$ulbName, _formValues$buildingS, _formValues$isBasemen, _formValues$specifica, _formValues$specifica2, _formValues$specifica3, _formValues$specifica4, _formValues$isCluRequ, _formValues$cluType, _formValues$applicati, _formValues$isGovernm, _formValues$governmen, _currentStepData$scru, _currentStepData$site88, _currentStepData$site89, _currentStepData$scru2, _currentStepData$scru3, _currentStepData$scru4, _existingLayout$layou4, _existingLayout$layou5, _existingLayout$layou6, _existingLayout$layou7, _existingLayout$layou8, _existingLayout$layou9, _currentStepData$scru5, _currentStepData$site90, _existingLayout$layou0, _existingLayout$layou1, _existingLayout$layou10, _currentStepData$scru6, _currentStepData$site91, _currentStepData$site92, _existingLayout$layou11, _existingLayout$layou12, _existingLayout$layou13, _existingLayout$layou14, _existingLayout$layou15, _existingLayout$layou16, _currentStepData$scru7, _currentStepData$site93, _existingLayout$layou17, _existingLayout$layou18, _existingLayout$layou19, _currentStepData$appl, _currentStepData$appl2, _currentStepData$appl3, _currentStepData$appl4, _currentStepData$appl5, _currentStepData$appl6, _currentStepData$appl7, _currentStepData$appl8, _currentStepData$appl9, _currentStepData$appl0, _currentStepData$appl1, _currentStepData$appl10, _currentStepData$appl11, _currentStepData$appl12, _currentStepData$appl13, _currentStepData$appl14, _currentStepData$appl15, _currentStepData$appl16, _currentStepData$appl17, _currentStepData$appl18, _currentStepData$appl19, _currentStepData$appl20, _currentStepData$appl21, _currentStepData$appl22, _currentStepData$appl23, _currentStepData$appl24, _currentStepData$appl25, _currentStepData$appl26, _currentStepData$appl27, _currentStepData$phot, _currentStepData$phot2, _currentStepData$phot3, _currentStepData$docu, _currentStepData$docu2, _currentStepData$docu3, _existingLayout$layou20, _existingLayout$layou21, _existingLayout$layou22, _existingLayout$layou23;
|
|
71046
71420
|
const userInfo = ((_Digit$UserService$ge2 = Digit.UserService.getUser()) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.info) || {};
|
|
71047
71421
|
const existingLayout = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$apiD4 = currentStepData.apiData) === null || _currentStepData$apiD4 === void 0 ? void 0 : (_currentStepData$apiD5 = _currentStepData$apiD4.Layout) === null || _currentStepData$apiD5 === void 0 ? void 0 : _currentStepData$apiD5[0]) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$apiD6 = currentStepData.apiData) === null || _currentStepData$apiD6 === void 0 ? void 0 : _currentStepData$apiD6.Layout) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.apiData) || {};
|
|
71048
71422
|
const actualTenantId = window.location.href.includes("citizen") ? (formValues === null || formValues === void 0 ? void 0 : (_formValues$regionOff = formValues.regionOffice) === null || _formValues$regionOff === void 0 ? void 0 : _formValues$regionOff.code) || (formValues === null || formValues === void 0 ? void 0 : (_formValues$regionOff2 = formValues.regionOffice) === null || _formValues$regionOff2 === void 0 ? void 0 : _formValues$regionOff2.tenantId) || (existingLayout === null || existingLayout === void 0 ? void 0 : existingLayout.tenantId) : tenantId;
|
|
71049
71423
|
const planningAreaCode = (formValues === null || formValues === void 0 ? void 0 : formValues.planningAreaCode) || "";
|
|
71050
71424
|
const planningAreaName = (formValues === null || formValues === void 0 ? void 0 : formValues.planningAreaName) || "";
|
|
71425
|
+
const geojson = (geotag === null || geotag === void 0 ? void 0 : geotag.geojson) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$layou = existingLayout.layoutDetails) === null || _existingLayout$layou === void 0 ? void 0 : (_existingLayout$layou2 = _existingLayout$layou.additionalDetails) === null || _existingLayout$layou2 === void 0 ? void 0 : (_existingLayout$layou3 = _existingLayout$layou2.siteDetails) === null || _existingLayout$layou3 === void 0 ? void 0 : _existingLayout$layou3.geojson) || (existingLayout === null || existingLayout === void 0 ? void 0 : existingLayout.geojson) || null;
|
|
71426
|
+
const serializedGeoJSON = geojson ? typeof geojson === "string" ? geojson : JSON.stringify(geojson) : null;
|
|
71051
71427
|
const transformedSiteDetails = {
|
|
71052
71428
|
...formValues,
|
|
71053
71429
|
ulbName: (formValues === null || formValues === void 0 ? void 0 : (_formValues$ulbName = formValues.ulbName) === null || _formValues$ulbName === void 0 ? void 0 : _formValues$ulbName.name) || (formValues === null || formValues === void 0 ? void 0 : formValues.ulbName) || "",
|
|
@@ -71110,10 +71486,11 @@ const LayoutStepFormTwo = ({
|
|
|
71110
71486
|
coordinates: {
|
|
71111
71487
|
...coordinates
|
|
71112
71488
|
},
|
|
71113
|
-
edcrNumber: (formValues === null || formValues === void 0 ? void 0 : formValues.scrutinyNumber) || (formValues === null || formValues === void 0 ? void 0 : formValues.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru = currentStepData.scrutiny) === null || _currentStepData$scru === void 0 ? void 0 : _currentStepData$scru.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site88 = currentStepData.siteDetails) === null || _currentStepData$site88 === void 0 ? void 0 : _currentStepData$site88.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site89 = currentStepData.siteDetails) === null || _currentStepData$site89 === void 0 ? void 0 : _currentStepData$site89.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru2 = currentStepData.scrutiny) === null || _currentStepData$scru2 === void 0 ? void 0 : (_currentStepData$scru3 = _currentStepData$scru2.scrutinyDetails) === null || _currentStepData$scru3 === void 0 ? void 0 : _currentStepData$scru3.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru4 = currentStepData.scrutinyDetails) === null || _currentStepData$scru4 === void 0 ? void 0 : _currentStepData$scru4.edcrNumber) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$
|
|
71114
|
-
scrutinyFileStoreId: (formValues === null || formValues === void 0 ? void 0 : formValues.scrutinyFileStoreId) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyFileStoreId) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru5 = currentStepData.scrutiny) === null || _currentStepData$scru5 === void 0 ? void 0 : _currentStepData$scru5.scrutinyFileStoreId) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site90 = currentStepData.siteDetails) === null || _currentStepData$site90 === void 0 ? void 0 : _currentStepData$site90.scrutinyFileStoreId) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$
|
|
71115
|
-
scrutinyNumber: (formValues === null || formValues === void 0 ? void 0 : formValues.scrutinyNumber) || (formValues === null || formValues === void 0 ? void 0 : formValues.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru6 = currentStepData.scrutiny) === null || _currentStepData$scru6 === void 0 ? void 0 : _currentStepData$scru6.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site91 = currentStepData.siteDetails) === null || _currentStepData$site91 === void 0 ? void 0 : _currentStepData$site91.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site92 = currentStepData.siteDetails) === null || _currentStepData$site92 === void 0 ? void 0 : _currentStepData$site92.edcrNumber) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$
|
|
71116
|
-
scrutinyDetails: (formValues === null || formValues === void 0 ? void 0 : formValues.scrutinyDetails) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyDetails) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru7 = currentStepData.scrutiny) === null || _currentStepData$scru7 === void 0 ? void 0 : _currentStepData$scru7.scrutinyDetails) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site93 = currentStepData.siteDetails) === null || _currentStepData$site93 === void 0 ? void 0 : _currentStepData$site93.scrutinyDetails) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$
|
|
71489
|
+
edcrNumber: (formValues === null || formValues === void 0 ? void 0 : formValues.scrutinyNumber) || (formValues === null || formValues === void 0 ? void 0 : formValues.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru = currentStepData.scrutiny) === null || _currentStepData$scru === void 0 ? void 0 : _currentStepData$scru.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site88 = currentStepData.siteDetails) === null || _currentStepData$site88 === void 0 ? void 0 : _currentStepData$site88.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site89 = currentStepData.siteDetails) === null || _currentStepData$site89 === void 0 ? void 0 : _currentStepData$site89.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru2 = currentStepData.scrutiny) === null || _currentStepData$scru2 === void 0 ? void 0 : (_currentStepData$scru3 = _currentStepData$scru2.scrutinyDetails) === null || _currentStepData$scru3 === void 0 ? void 0 : _currentStepData$scru3.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru4 = currentStepData.scrutinyDetails) === null || _currentStepData$scru4 === void 0 ? void 0 : _currentStepData$scru4.edcrNumber) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$layou4 = existingLayout.layoutDetails) === null || _existingLayout$layou4 === void 0 ? void 0 : (_existingLayout$layou5 = _existingLayout$layou4.additionalDetails) === null || _existingLayout$layou5 === void 0 ? void 0 : (_existingLayout$layou6 = _existingLayout$layou5.siteDetails) === null || _existingLayout$layou6 === void 0 ? void 0 : _existingLayout$layou6.edcrNumber) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$layou7 = existingLayout.layoutDetails) === null || _existingLayout$layou7 === void 0 ? void 0 : (_existingLayout$layou8 = _existingLayout$layou7.additionalDetails) === null || _existingLayout$layou8 === void 0 ? void 0 : (_existingLayout$layou9 = _existingLayout$layou8.siteDetails) === null || _existingLayout$layou9 === void 0 ? void 0 : _existingLayout$layou9.scrutinyNumber) || null,
|
|
71490
|
+
scrutinyFileStoreId: (formValues === null || formValues === void 0 ? void 0 : formValues.scrutinyFileStoreId) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyFileStoreId) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru5 = currentStepData.scrutiny) === null || _currentStepData$scru5 === void 0 ? void 0 : _currentStepData$scru5.scrutinyFileStoreId) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site90 = currentStepData.siteDetails) === null || _currentStepData$site90 === void 0 ? void 0 : _currentStepData$site90.scrutinyFileStoreId) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$layou0 = existingLayout.layoutDetails) === null || _existingLayout$layou0 === void 0 ? void 0 : (_existingLayout$layou1 = _existingLayout$layou0.additionalDetails) === null || _existingLayout$layou1 === void 0 ? void 0 : (_existingLayout$layou10 = _existingLayout$layou1.siteDetails) === null || _existingLayout$layou10 === void 0 ? void 0 : _existingLayout$layou10.scrutinyFileStoreId) || null,
|
|
71491
|
+
scrutinyNumber: (formValues === null || formValues === void 0 ? void 0 : formValues.scrutinyNumber) || (formValues === null || formValues === void 0 ? void 0 : formValues.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru6 = currentStepData.scrutiny) === null || _currentStepData$scru6 === void 0 ? void 0 : _currentStepData$scru6.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site91 = currentStepData.siteDetails) === null || _currentStepData$site91 === void 0 ? void 0 : _currentStepData$site91.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site92 = currentStepData.siteDetails) === null || _currentStepData$site92 === void 0 ? void 0 : _currentStepData$site92.edcrNumber) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$layou11 = existingLayout.layoutDetails) === null || _existingLayout$layou11 === void 0 ? void 0 : (_existingLayout$layou12 = _existingLayout$layou11.additionalDetails) === null || _existingLayout$layou12 === void 0 ? void 0 : (_existingLayout$layou13 = _existingLayout$layou12.siteDetails) === null || _existingLayout$layou13 === void 0 ? void 0 : _existingLayout$layou13.scrutinyNumber) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$layou14 = existingLayout.layoutDetails) === null || _existingLayout$layou14 === void 0 ? void 0 : (_existingLayout$layou15 = _existingLayout$layou14.additionalDetails) === null || _existingLayout$layou15 === void 0 ? void 0 : (_existingLayout$layou16 = _existingLayout$layou15.siteDetails) === null || _existingLayout$layou16 === void 0 ? void 0 : _existingLayout$layou16.edcrNumber) || null,
|
|
71492
|
+
scrutinyDetails: (formValues === null || formValues === void 0 ? void 0 : formValues.scrutinyDetails) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyDetails) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru7 = currentStepData.scrutiny) === null || _currentStepData$scru7 === void 0 ? void 0 : _currentStepData$scru7.scrutinyDetails) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site93 = currentStepData.siteDetails) === null || _currentStepData$site93 === void 0 ? void 0 : _currentStepData$site93.scrutinyDetails) || (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$layou17 = existingLayout.layoutDetails) === null || _existingLayout$layou17 === void 0 ? void 0 : (_existingLayout$layou18 = _existingLayout$layou17.additionalDetails) === null || _existingLayout$layou18 === void 0 ? void 0 : (_existingLayout$layou19 = _existingLayout$layou18.siteDetails) === null || _existingLayout$layou19 === void 0 ? void 0 : _existingLayout$layou19.scrutinyDetails) || null,
|
|
71493
|
+
geojson: serializedGeoJSON
|
|
71117
71494
|
};
|
|
71118
71495
|
const applicants = [];
|
|
71119
71496
|
applicants.push({
|
|
@@ -71175,12 +71552,13 @@ const LayoutStepFormTwo = ({
|
|
|
71175
71552
|
const payload = {
|
|
71176
71553
|
Layout: {
|
|
71177
71554
|
...existingLayout,
|
|
71178
|
-
vasikaDate: formValues !== null && formValues !== void 0 && formValues.vasikaDate ? convertToDDMMYYYY(formValues === null || formValues === void 0 ? void 0 : formValues.vasikaDate) : (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$
|
|
71555
|
+
vasikaDate: formValues !== null && formValues !== void 0 && formValues.vasikaDate ? convertToDDMMYYYY(formValues === null || formValues === void 0 ? void 0 : formValues.vasikaDate) : (existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$layou20 = existingLayout.layoutDetails) === null || _existingLayout$layou20 === void 0 ? void 0 : (_existingLayout$layou21 = _existingLayout$layou20.additionalDetails) === null || _existingLayout$layou21 === void 0 ? void 0 : (_existingLayout$layou22 = _existingLayout$layou21.siteDetails) === null || _existingLayout$layou22 === void 0 ? void 0 : _existingLayout$layou22.vasikaDate) || (existingLayout === null || existingLayout === void 0 ? void 0 : existingLayout.vasikaDate),
|
|
71179
71556
|
vasikaNumber: (formValues === null || formValues === void 0 ? void 0 : formValues.vasikaNumber) || (existingLayout === null || existingLayout === void 0 ? void 0 : existingLayout.vasikaNumber),
|
|
71557
|
+
geojson: serializedGeoJSON,
|
|
71180
71558
|
layoutDetails: {
|
|
71181
71559
|
...(existingLayout === null || existingLayout === void 0 ? void 0 : existingLayout.layoutDetails),
|
|
71182
71560
|
additionalDetails: {
|
|
71183
|
-
...(existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$
|
|
71561
|
+
...(existingLayout === null || existingLayout === void 0 ? void 0 : (_existingLayout$layou23 = existingLayout.layoutDetails) === null || _existingLayout$layou23 === void 0 ? void 0 : _existingLayout$layou23.additionalDetails),
|
|
71184
71562
|
applicationDetails: transformedApplicationDetails,
|
|
71185
71563
|
siteDetails: transformedSiteDetails
|
|
71186
71564
|
}
|
|
@@ -71530,7 +71908,7 @@ function LayoutSummary({
|
|
|
71530
71908
|
currentStepData: formData,
|
|
71531
71909
|
t
|
|
71532
71910
|
}) {
|
|
71533
|
-
var _mdmsData$LAYOUT, _formData$apiData, _formData$apiData2, _formData$apiData2$La, _formData$documents, _formData$application, _formData$application2, _formData$application3, _formData$application4, _formData$application5, _formData$application6, _formData$application7, _formData$application8, _formData$application9, _formData$application0, _owners$, _formData$application1, _owners$2, _formData$application10, _formData$application11, _formData$application12, _formData$application13, _formData$application14, _formData$application15, _owners$3, _owners$4, _owners$5, _formData$application16, _formData$application17, _formData$application18, _owners$6, _owners$7, _owners$8, _formData$application19, _owners$9, _formData$application20, _formData$application21, _formData$application22, _formData$application23, _formData$application24, _formData$application25, _formData$application26, _formData$application27, _formData$scrutinyDet, _formData$scrutinyDet2, _formData$scrutinyDet3, _formData$scrutinyDet4, _formData$scrutinyDet5, _formData$scrutinyDet6, _formData$scrutinyDet7, _formData$scrutinyDet8, _formData$scrutinyDet9, _formData$scrutinyDet0, _formData$scrutinyDet1, _formData$scrutinyDet10, _formData$scrutinyDet11, _formData$scrutinyDet12, _formData$scrutinyDet13, _formData$scrutinyDet14, _formData$scrutinyDet15, _formData$siteDetails, _formData$siteDetails2, _formData$siteDetails3, _formData$siteDetails4, _formData$siteDetails5, _formData$siteDetails6, _formData$siteDetails7, _formData$siteDetails8, _formData$siteDetails9, _formData$siteDetails0, _formData$siteDetails1, _formData$siteDetails10, _formData$siteDetails11, _formData$siteDetails12, _formData$siteDetails13, _formData$siteDetails14, _formData$siteDetails15, _formData$siteDetails16, _formData$siteDetails17, _formData$siteDetails18, _formData$siteDetails19, _formData$siteDetails20, _formData$siteDetails21, _formData$siteDetails22, _formData$siteDetails23, _formData$siteDetails24, _formData$siteDetails25, _formData$siteDetails26, _formData$siteDetails27, _formData$siteDetails28, _formData$siteDetails29, _formData$siteDetails30, _formData$siteDetails31, _formData$siteDetails32, _formData$siteDetails33, _formData$siteDetails34, _formData$siteDetails35, _formData$siteDetails36, _formData$siteDetails37, _formData$siteDetails38, _formData$siteDetails39, _formData$siteDetails40, _formData$siteDetails41, _formData$siteDetails42, _formData$siteDetails43, _formData$siteDetails44, _formData$siteDetails45, _formData$siteDetails46, _formData$siteDetails47, _formData$siteDetails48, _formData$siteDetails49, _formData$siteDetails50, _formData$siteDetails51, _formData$siteDetails52, _formData$siteDetails53, _formData$siteDetails54, _formData$siteDetails55, _formData$siteDetails56, _formData$siteDetails57, _formData$siteDetails58, _formData$siteDetails59, _formData$siteDetails60, _formData$siteDetails61, _formData$siteDetails62, _formData$siteDetails63, _formData$siteDetails64, _formData$siteDetails65, _formData$siteDetails66, _formData$siteDetails67, _formData$siteDetails68, _formData$siteDetails69, _formData$siteDetails70, _formData$siteDetails71, _formData$siteDetails72, _formData$siteDetails73, _formData$siteDetails74, _formData$siteDetails75, _formData$siteDetails76, _formData$siteDetails77, _formData$siteDetails78, _formData$siteDetails79, _formData$siteDetails80, _formData$siteDetails81, _formData$siteDetails82, _formData$siteDetails83;
|
|
71911
|
+
var _mdmsData$LAYOUT, _formData$apiData, _formData$apiData2, _formData$apiData2$La, _formData$geotag, _formData$apiData3, _formData$apiData3$La, _formData$apiData4, _formData$apiData4$La, _formData$apiData4$La2, _formData$apiData4$La3, _formData$apiData4$La4, _formData$apiData5, _formData$apiData5$la, _formData$apiData5$la2, _formData$documents, _formData$application, _formData$application2, _formData$application3, _formData$application4, _formData$application5, _formData$application6, _formData$application7, _formData$application8, _formData$application9, _formData$application0, _owners$, _formData$application1, _owners$2, _formData$application10, _formData$application11, _formData$application12, _formData$application13, _formData$application14, _formData$application15, _owners$3, _owners$4, _owners$5, _formData$application16, _formData$application17, _formData$application18, _owners$6, _owners$7, _owners$8, _formData$application19, _owners$9, _formData$application20, _formData$application21, _formData$application22, _formData$application23, _formData$application24, _formData$application25, _formData$application26, _formData$application27, _formData$scrutinyDet, _formData$scrutinyDet2, _formData$scrutinyDet3, _formData$scrutinyDet4, _formData$scrutinyDet5, _formData$scrutinyDet6, _formData$scrutinyDet7, _formData$scrutinyDet8, _formData$scrutinyDet9, _formData$scrutinyDet0, _formData$scrutinyDet1, _formData$scrutinyDet10, _formData$scrutinyDet11, _formData$scrutinyDet12, _formData$scrutinyDet13, _formData$scrutinyDet14, _formData$scrutinyDet15, _formData$siteDetails, _formData$siteDetails2, _formData$siteDetails3, _formData$siteDetails4, _formData$siteDetails5, _formData$siteDetails6, _formData$siteDetails7, _formData$siteDetails8, _formData$siteDetails9, _formData$siteDetails0, _formData$siteDetails1, _formData$siteDetails10, _formData$siteDetails11, _formData$siteDetails12, _formData$siteDetails13, _formData$siteDetails14, _formData$siteDetails15, _formData$siteDetails16, _formData$siteDetails17, _formData$siteDetails18, _formData$siteDetails19, _formData$siteDetails20, _formData$siteDetails21, _formData$siteDetails22, _formData$siteDetails23, _formData$siteDetails24, _formData$siteDetails25, _formData$siteDetails26, _formData$siteDetails27, _formData$siteDetails28, _formData$siteDetails29, _formData$siteDetails30, _formData$siteDetails31, _formData$siteDetails32, _formData$siteDetails33, _formData$siteDetails34, _formData$siteDetails35, _formData$siteDetails36, _formData$siteDetails37, _formData$siteDetails38, _formData$siteDetails39, _formData$siteDetails40, _formData$siteDetails41, _formData$siteDetails42, _formData$siteDetails43, _formData$siteDetails44, _formData$siteDetails45, _formData$siteDetails46, _formData$siteDetails47, _formData$siteDetails48, _formData$siteDetails49, _formData$siteDetails50, _formData$siteDetails51, _formData$siteDetails52, _formData$siteDetails53, _formData$siteDetails54, _formData$siteDetails55, _formData$siteDetails56, _formData$siteDetails57, _formData$siteDetails58, _formData$siteDetails59, _formData$siteDetails60, _formData$siteDetails61, _formData$siteDetails62, _formData$siteDetails63, _formData$siteDetails64, _formData$siteDetails65, _formData$siteDetails66, _formData$siteDetails67, _formData$siteDetails68, _formData$siteDetails69, _formData$siteDetails70, _formData$siteDetails71, _formData$siteDetails72, _formData$siteDetails73, _formData$siteDetails74, _formData$siteDetails75, _formData$siteDetails76, _formData$siteDetails77, _formData$siteDetails78, _formData$siteDetails79, _formData$siteDetails80, _formData$siteDetails81, _formData$siteDetails82, _formData$siteDetails83;
|
|
71534
71912
|
const stateCode = Digit.ULBService.getStateId();
|
|
71535
71913
|
const [totalFee, setTotalFee] = useState(null);
|
|
71536
71914
|
const handleTotalFee = useCallback(val => {
|
|
@@ -71589,6 +71967,31 @@ function LayoutSummary({
|
|
|
71589
71967
|
var _state$obps, _state$obps$LayoutNew;
|
|
71590
71968
|
return (state === null || state === void 0 ? void 0 : (_state$obps = state.obps) === null || _state$obps === void 0 ? void 0 : (_state$obps$LayoutNew = _state$obps.LayoutNewApplicationFormReducer) === null || _state$obps$LayoutNew === void 0 ? void 0 : _state$obps$LayoutNew.coordinates) || {};
|
|
71591
71969
|
});
|
|
71970
|
+
const rawGeoJSON = (formData === null || formData === void 0 ? void 0 : formData.geojson) || (formData === null || formData === void 0 ? void 0 : (_formData$geotag = formData.geotag) === null || _formData$geotag === void 0 ? void 0 : _formData$geotag.geojson) || (formData === null || formData === void 0 ? void 0 : (_formData$apiData3 = formData.apiData) === null || _formData$apiData3 === void 0 ? void 0 : (_formData$apiData3$La = _formData$apiData3.Layout) === null || _formData$apiData3$La === void 0 ? void 0 : _formData$apiData3$La.geojson) || (formData === null || formData === void 0 ? void 0 : (_formData$apiData4 = formData.apiData) === null || _formData$apiData4 === void 0 ? void 0 : (_formData$apiData4$La = _formData$apiData4.Layout) === null || _formData$apiData4$La === void 0 ? void 0 : (_formData$apiData4$La2 = _formData$apiData4$La[0]) === null || _formData$apiData4$La2 === void 0 ? void 0 : (_formData$apiData4$La3 = _formData$apiData4$La2.layoutDetails) === null || _formData$apiData4$La3 === void 0 ? void 0 : (_formData$apiData4$La4 = _formData$apiData4$La3.additionalDetails) === null || _formData$apiData4$La4 === void 0 ? void 0 : _formData$apiData4$La4.geojson) || (formData === null || formData === void 0 ? void 0 : (_formData$apiData5 = formData.apiData) === null || _formData$apiData5 === void 0 ? void 0 : (_formData$apiData5$la = _formData$apiData5.layoutDetails) === null || _formData$apiData5$la === void 0 ? void 0 : (_formData$apiData5$la2 = _formData$apiData5$la.additionalDetails) === null || _formData$apiData5$la2 === void 0 ? void 0 : _formData$apiData5$la2.geojson) || null;
|
|
71971
|
+
const geoJSON = useMemo(() => {
|
|
71972
|
+
if (!rawGeoJSON) return null;
|
|
71973
|
+
let parsed = rawGeoJSON;
|
|
71974
|
+
for (let i = 0; i < 5; i++) {
|
|
71975
|
+
if (typeof parsed === "string") {
|
|
71976
|
+
try {
|
|
71977
|
+
parsed = JSON.parse(parsed);
|
|
71978
|
+
continue;
|
|
71979
|
+
} catch (e) {
|
|
71980
|
+
break;
|
|
71981
|
+
}
|
|
71982
|
+
}
|
|
71983
|
+
break;
|
|
71984
|
+
}
|
|
71985
|
+
if (parsed && typeof parsed === "object" && parsed.type && (parsed.features || parsed.geometry || parsed.geometries)) {
|
|
71986
|
+
return parsed;
|
|
71987
|
+
}
|
|
71988
|
+
return null;
|
|
71989
|
+
}, [rawGeoJSON]);
|
|
71990
|
+
const center = useMemo(() => {
|
|
71991
|
+
const lat = Number(coordinates === null || coordinates === void 0 ? void 0 : coordinates.Latitude1);
|
|
71992
|
+
const lng = Number(coordinates === null || coordinates === void 0 ? void 0 : coordinates.Longitude1);
|
|
71993
|
+
return Number.isFinite(lat) && Number.isFinite(lng) ? [lng, lat] : [0, 0];
|
|
71994
|
+
}, [coordinates]);
|
|
71592
71995
|
const renderLabel = (label, value) => {
|
|
71593
71996
|
if (!value || value === "NA" || value === "" || value === null || value === undefined) {
|
|
71594
71997
|
return null;
|
|
@@ -71657,6 +72060,15 @@ function LayoutSummary({
|
|
|
71657
72060
|
tenantId: formData === null || formData === void 0 ? void 0 : (_formData$scrutinyDet15 = formData.scrutinyDetails) === null || _formData$scrutinyDet15 === void 0 ? void 0 : _formData$scrutinyDet15.tenantId,
|
|
71658
72061
|
t: t
|
|
71659
72062
|
})
|
|
72063
|
+
}))), geoJSON && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("MAP_GEO_LOCATION")), /*#__PURE__*/React.createElement("div", {
|
|
72064
|
+
className: "h-[600px] w-full overflow-hidden bg-gray-100 rounded-xl border border-gray-200 dark:border-gray-700 relative"
|
|
72065
|
+
}, /*#__PURE__*/React.createElement(MapViewer, {
|
|
72066
|
+
geoJSON: geoJSON,
|
|
72067
|
+
center: center,
|
|
72068
|
+
onCenterChange: () => {},
|
|
72069
|
+
onMapMove: () => {},
|
|
72070
|
+
flyToLocation: center,
|
|
72071
|
+
readOnly: true
|
|
71660
72072
|
}))), /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_SITE_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, renderLabel(t("BPA_TYPE_OF_APPLICATION_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails = formData.siteDetails) === null || _formData$siteDetails === void 0 ? void 0 : (_formData$siteDetails2 = _formData$siteDetails.typeOfApplication) === null || _formData$siteDetails2 === void 0 ? void 0 : _formData$siteDetails2.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails3 = formData.siteDetails) === null || _formData$siteDetails3 === void 0 ? void 0 : _formData$siteDetails3.typeOfApplication)), renderLabel(t("BPA_IS_GOVERNMENT_PROJECT"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails4 = formData.siteDetails) === null || _formData$siteDetails4 === void 0 ? void 0 : _formData$siteDetails4.isGovernmentProject), ((formData === null || formData === void 0 ? void 0 : (_formData$siteDetails5 = formData.siteDetails) === null || _formData$siteDetails5 === void 0 ? void 0 : (_formData$siteDetails6 = _formData$siteDetails5.isGovernmentProject) === null || _formData$siteDetails6 === void 0 ? void 0 : _formData$siteDetails6.code) === "YES" || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails7 = formData.siteDetails) === null || _formData$siteDetails7 === void 0 ? void 0 : _formData$siteDetails7.isGovernmentProject) === "YES") && renderLabel(t("BPA_GOVERNMENT_PROJECT_SECTION"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails8 = formData.siteDetails) === null || _formData$siteDetails8 === void 0 ? void 0 : _formData$siteDetails8.governmentProjectSection), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails9 = formData.siteDetails) === null || _formData$siteDetails9 === void 0 ? void 0 : _formData$siteDetails9.previousSanctionNumber) && renderLabel(t("BPA_PREVIOUS_SANCTION_NUMBER_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails0 = formData.siteDetails) === null || _formData$siteDetails0 === void 0 ? void 0 : _formData$siteDetails0.previousSanctionNumber), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails1 = formData.siteDetails) === null || _formData$siteDetails1 === void 0 ? void 0 : _formData$siteDetails1.previousSanctionDate) && renderLabel(t("BPA_PREVIOUS_SANCTION_DATE_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails10 = formData.siteDetails) === null || _formData$siteDetails10 === void 0 ? void 0 : _formData$siteDetails10.previousSanctionDate), renderLabel(t("BPA_REGION_OFFICE_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails11 = formData.siteDetails) === null || _formData$siteDetails11 === void 0 ? void 0 : (_formData$siteDetails12 = _formData$siteDetails11.regionOffice) === null || _formData$siteDetails12 === void 0 ? void 0 : _formData$siteDetails12.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails13 = formData.siteDetails) === null || _formData$siteDetails13 === void 0 ? void 0 : _formData$siteDetails13.regionOffice)), renderLabel(t("BPA_DISTRICT_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails14 = formData.siteDetails) === null || _formData$siteDetails14 === void 0 ? void 0 : (_formData$siteDetails15 = _formData$siteDetails14.district) === null || _formData$siteDetails15 === void 0 ? void 0 : _formData$siteDetails15.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails16 = formData.siteDetails) === null || _formData$siteDetails16 === void 0 ? void 0 : _formData$siteDetails16.district)), renderLabel(t("BPA_TEHSIL_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails17 = formData.siteDetails) === null || _formData$siteDetails17 === void 0 ? void 0 : (_formData$siteDetails18 = _formData$siteDetails17.tehsil) === null || _formData$siteDetails18 === void 0 ? void 0 : _formData$siteDetails18.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails19 = formData.siteDetails) === null || _formData$siteDetails19 === void 0 ? void 0 : _formData$siteDetails19.tehsil)), renderLabel(t("BPA_VILLAGE_NAME_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails20 = formData.siteDetails) === null || _formData$siteDetails20 === void 0 ? void 0 : (_formData$siteDetails21 = _formData$siteDetails20.village) === null || _formData$siteDetails21 === void 0 ? void 0 : _formData$siteDetails21.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails22 = formData.siteDetails) === null || _formData$siteDetails22 === void 0 ? void 0 : _formData$siteDetails22.village)), renderLabel(t("BPA_LOCATION_TYPE_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails23 = formData.siteDetails) === null || _formData$siteDetails23 === void 0 ? void 0 : (_formData$siteDetails24 = _formData$siteDetails23.locationType) === null || _formData$siteDetails24 === void 0 ? void 0 : _formData$siteDetails24.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails25 = formData.siteDetails) === null || _formData$siteDetails25 === void 0 ? void 0 : _formData$siteDetails25.locationType)), renderLabel(t("BPA_SUB_LOCATION_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails26 = formData.siteDetails) === null || _formData$siteDetails26 === void 0 ? void 0 : (_formData$siteDetails27 = _formData$siteDetails26.subLocation) === null || _formData$siteDetails27 === void 0 ? void 0 : _formData$siteDetails27.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails28 = formData.siteDetails) === null || _formData$siteDetails28 === void 0 ? void 0 : _formData$siteDetails28.subLocation)), renderLabel(t("BPA_RI_NO_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails29 = formData.siteDetails) === null || _formData$siteDetails29 === void 0 ? void 0 : _formData$siteDetails29.riNo), renderLabel(t("BPA_HALKA_NO_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails30 = formData.siteDetails) === null || _formData$siteDetails30 === void 0 ? void 0 : _formData$siteDetails30.halkaNo), renderLabel(t("BPA_KHASRA_NO_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails31 = formData.siteDetails) === null || _formData$siteDetails31 === void 0 ? void 0 : _formData$siteDetails31.khasraNo), renderLabel(t("BPA_IS_AREA_UNDER_MASTER_PLAN_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails32 = formData.siteDetails) === null || _formData$siteDetails32 === void 0 ? void 0 : (_formData$siteDetails33 = _formData$siteDetails32.isAreaUnderMasterPlan) === null || _formData$siteDetails33 === void 0 ? void 0 : _formData$siteDetails33.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails34 = formData.siteDetails) === null || _formData$siteDetails34 === void 0 ? void 0 : _formData$siteDetails34.isAreaUnderMasterPlan)), renderLabel(t("BPA_PLOT_AREA_AS_PER_SITE_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails35 = formData.siteDetails) === null || _formData$siteDetails35 === void 0 ? void 0 : _formData$siteDetails35.plotAreaAsPerSite), renderLabel(t("BPA_PROPOSED_ROAD_WIDTH_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails36 = formData.siteDetails) === null || _formData$siteDetails36 === void 0 ? void 0 : _formData$siteDetails36.proposedRoadWidth), renderLabel(t("BPA_BOUNDARY_NORTH_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails37 = formData.siteDetails) === null || _formData$siteDetails37 === void 0 ? void 0 : (_formData$siteDetails38 = _formData$siteDetails37.boundaryNorth) === null || _formData$siteDetails38 === void 0 ? void 0 : _formData$siteDetails38.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails39 = formData.siteDetails) === null || _formData$siteDetails39 === void 0 ? void 0 : _formData$siteDetails39.boundaryNorth)), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails40 = formData.siteDetails) === null || _formData$siteDetails40 === void 0 ? void 0 : (_formData$siteDetails41 = _formData$siteDetails40.boundaryNorth) === null || _formData$siteDetails41 === void 0 ? void 0 : _formData$siteDetails41.code) === "OTHERS" && renderLabel(t("Specify North"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails42 = formData.siteDetails) === null || _formData$siteDetails42 === void 0 ? void 0 : _formData$siteDetails42.boundaryNorthOthers), renderLabel(t("BPA_BOUNDARY_SOUTH_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails43 = formData.siteDetails) === null || _formData$siteDetails43 === void 0 ? void 0 : (_formData$siteDetails44 = _formData$siteDetails43.boundarySouth) === null || _formData$siteDetails44 === void 0 ? void 0 : _formData$siteDetails44.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails45 = formData.siteDetails) === null || _formData$siteDetails45 === void 0 ? void 0 : _formData$siteDetails45.boundarySouth)), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails46 = formData.siteDetails) === null || _formData$siteDetails46 === void 0 ? void 0 : (_formData$siteDetails47 = _formData$siteDetails46.boundarySouth) === null || _formData$siteDetails47 === void 0 ? void 0 : _formData$siteDetails47.code) === "OTHERS" && renderLabel(t("Specify South"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails48 = formData.siteDetails) === null || _formData$siteDetails48 === void 0 ? void 0 : _formData$siteDetails48.boundarySouthOthers), renderLabel(t("BPA_BOUNDARY_EAST_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails49 = formData.siteDetails) === null || _formData$siteDetails49 === void 0 ? void 0 : (_formData$siteDetails50 = _formData$siteDetails49.boundaryEast) === null || _formData$siteDetails50 === void 0 ? void 0 : _formData$siteDetails50.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails51 = formData.siteDetails) === null || _formData$siteDetails51 === void 0 ? void 0 : _formData$siteDetails51.boundaryEast)), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails52 = formData.siteDetails) === null || _formData$siteDetails52 === void 0 ? void 0 : (_formData$siteDetails53 = _formData$siteDetails52.boundaryEast) === null || _formData$siteDetails53 === void 0 ? void 0 : _formData$siteDetails53.code) === "OTHERS" && renderLabel(t("Specify East"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails54 = formData.siteDetails) === null || _formData$siteDetails54 === void 0 ? void 0 : _formData$siteDetails54.boundaryEastOthers), renderLabel(t("BPA_BOUNDARY_WEST_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails55 = formData.siteDetails) === null || _formData$siteDetails55 === void 0 ? void 0 : (_formData$siteDetails56 = _formData$siteDetails55.boundaryWest) === null || _formData$siteDetails56 === void 0 ? void 0 : _formData$siteDetails56.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails57 = formData.siteDetails) === null || _formData$siteDetails57 === void 0 ? void 0 : _formData$siteDetails57.boundaryWest)), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails58 = formData.siteDetails) === null || _formData$siteDetails58 === void 0 ? void 0 : (_formData$siteDetails59 = _formData$siteDetails58.boundaryWest) === null || _formData$siteDetails59 === void 0 ? void 0 : _formData$siteDetails59.code) === "OTHERS" && renderLabel(t("Specify West"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails60 = formData.siteDetails) === null || _formData$siteDetails60 === void 0 ? void 0 : _formData$siteDetails60.boundaryWestOthers), renderLabel(t("BPA_LAND_USE_ZONE_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails61 = formData.siteDetails) === null || _formData$siteDetails61 === void 0 ? void 0 : (_formData$siteDetails62 = _formData$siteDetails61.landUseZone) === null || _formData$siteDetails62 === void 0 ? void 0 : _formData$siteDetails62.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails63 = formData.siteDetails) === null || _formData$siteDetails63 === void 0 ? void 0 : _formData$siteDetails63.landUseZone)), renderLabel(t("BPA_LAND_SUB_USE_ZONE_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails64 = formData.siteDetails) === null || _formData$siteDetails64 === void 0 ? void 0 : (_formData$siteDetails65 = _formData$siteDetails64.landSubUseZone) === null || _formData$siteDetails65 === void 0 ? void 0 : _formData$siteDetails65.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails66 = formData.siteDetails) === null || _formData$siteDetails66 === void 0 ? void 0 : _formData$siteDetails66.landSubUseZone)), renderLabel(t("BPA_LAYOUT_PLOT_USE_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails67 = formData.siteDetails) === null || _formData$siteDetails67 === void 0 ? void 0 : (_formData$siteDetails68 = _formData$siteDetails67.layoutPlotUse) === null || _formData$siteDetails68 === void 0 ? void 0 : _formData$siteDetails68.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails69 = formData.siteDetails) === null || _formData$siteDetails69 === void 0 ? void 0 : _formData$siteDetails69.layoutPlotUse)), renderLabel(t("BPA_LAYOUT_PLOT_SUB_USE_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails70 = formData.siteDetails) === null || _formData$siteDetails70 === void 0 ? void 0 : (_formData$siteDetails71 = _formData$siteDetails70.layoutPlotSubUse) === null || _formData$siteDetails71 === void 0 ? void 0 : _formData$siteDetails71.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails72 = formData.siteDetails) === null || _formData$siteDetails72 === void 0 ? void 0 : _formData$siteDetails72.layoutPlotSubUse)), renderLabel(t("BPA_BUILDING_CATEGORY_LABEL"), (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails73 = formData.siteDetails) === null || _formData$siteDetails73 === void 0 ? void 0 : (_formData$siteDetails74 = _formData$siteDetails73.buildingCategory) === null || _formData$siteDetails74 === void 0 ? void 0 : _formData$siteDetails74.name) || (formData === null || formData === void 0 ? void 0 : (_formData$siteDetails75 = formData.siteDetails) === null || _formData$siteDetails75 === void 0 ? void 0 : _formData$siteDetails75.buildingCategory)), renderLabel(t("BPA_AREA_UNDER_RESIDENTIAL_USE_IN_SQ_M_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails76 = formData.siteDetails) === null || _formData$siteDetails76 === void 0 ? void 0 : _formData$siteDetails76.areaUnderResidentialUseInSqM), renderLabel(t("BPA_AREA_UNDER_COMMERCIAL_USE_IN_SQ_M_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails77 = formData.siteDetails) === null || _formData$siteDetails77 === void 0 ? void 0 : _formData$siteDetails77.areaUnderCommercialUseInSqM), renderLabel(t("BPA_AREA_UNDER_INSTUTIONAL_USE_IN_SQ_M_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails78 = formData.siteDetails) === null || _formData$siteDetails78 === void 0 ? void 0 : _formData$siteDetails78.areaUnderInstutionalUseInSqM), renderLabel(t("BPA_AREA_UNDER_COMMUNITY_CENTER_IN_SQ_M_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails79 = formData.siteDetails) === null || _formData$siteDetails79 === void 0 ? void 0 : _formData$siteDetails79.areaUnderCommunityCenterInSqM), renderLabel(t("BPA_AREA_UNDER_PARK_IN_SQ_M_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails80 = formData.siteDetails) === null || _formData$siteDetails80 === void 0 ? void 0 : _formData$siteDetails80.areaUnderParkInSqM), renderLabel(t("BPA_AREA_UNDER_ROAD_IN_SQ_M_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails81 = formData.siteDetails) === null || _formData$siteDetails81 === void 0 ? void 0 : _formData$siteDetails81.areaUnderRoadInSqM), renderLabel(t("BPA_AREA_UNDER_PARKING_IN_SQ_M_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails82 = formData.siteDetails) === null || _formData$siteDetails82 === void 0 ? void 0 : _formData$siteDetails82.areaUnderParkingInSqM), renderLabel(t("BPA_AREA_UNDER_OTHER_AMENITIES_IN_SQ_M_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$siteDetails83 = formData.siteDetails) === null || _formData$siteDetails83 === void 0 ? void 0 : _formData$siteDetails83.areaUnderOtherAmenitiesInSqM)), docs.filter(doc => doc.documentType === "OWNER.SITEPHOTOGRAPHONE" || doc.documentType === "OWNER.SITEPHOTOGRAPHTWO" || doc.documentType === "SITEPHOTOGRAPHONE" || doc.documentType === "SITEPHOTOGRAPHTWO" || doc.documentType === "SITE.PHOTOGRAPHONE" || doc.documentType === "SITE.PHOTOGRAPHTWO").length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
71661
72073
|
style: {
|
|
71662
72074
|
marginTop: "24px"
|
|
@@ -71692,7 +72104,7 @@ const LayoutStepFormFour = ({
|
|
|
71692
72104
|
onBackClick,
|
|
71693
72105
|
t
|
|
71694
72106
|
}) => {
|
|
71695
|
-
var _user$info, _user$info$roles, _currentStepData$site, _currentStepData$site2, _currentStepData$site3, _currentStepData$site4, _mdmsData$LAYOUT, _currentStepData$apiD4, _currentStepData$apiD5, _currentStepData$apiD6, _layoutData$
|
|
72107
|
+
var _user$info, _user$info$roles, _currentStepData$site, _currentStepData$site2, _currentStepData$site3, _currentStepData$site4, _mdmsData$LAYOUT, _currentStepData$apiD4, _currentStepData$apiD5, _currentStepData$apiD6, _layoutData$layoutDet32, _layoutData$layoutDet33, _layoutData$layoutDet34, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
|
|
71696
72108
|
const dispatch = useDispatch();
|
|
71697
72109
|
const [showToast, setShowToast] = useState(null);
|
|
71698
72110
|
const [error, setError] = useState("");
|
|
@@ -71702,6 +72114,7 @@ const LayoutStepFormFour = ({
|
|
|
71702
72114
|
};
|
|
71703
72115
|
const currentStepData = useSelector(state => state.obps.LayoutNewApplicationFormReducer.formData || {});
|
|
71704
72116
|
const coordinates = useSelector(state => state.obps.LayoutNewApplicationFormReducer.coordinates || {});
|
|
72117
|
+
const geotag = useSelector(state => state.obps.LayoutNewApplicationFormReducer.geotag || {});
|
|
71705
72118
|
const menuRef = useRef();
|
|
71706
72119
|
const user = Digit.UserService.getUser();
|
|
71707
72120
|
const userRoles = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.map(e => e.code);
|
|
@@ -71803,7 +72216,7 @@ const LayoutStepFormFour = ({
|
|
|
71803
72216
|
}
|
|
71804
72217
|
};
|
|
71805
72218
|
function mapToLayoutPayload(layoutFormData, selectedAction) {
|
|
71806
|
-
var _layoutFormData$apiDa, _layoutFormData$apiDa2, _layoutFormData$apiDa3, _layoutFormData$apiDa4, _layoutFormData$apiDa5, _layoutFormData$docum, _layoutFormData$docum2, _layoutFormData$docum3, _layoutFormData$siteD, _layoutFormData$siteD2, _layoutFormData$siteD3, _layoutFormData$siteD4, _layoutFormData$siteD5, _layoutFormData$siteD6, _layoutFormData$siteD7, _layoutData$
|
|
72219
|
+
var _layoutFormData$apiDa, _layoutFormData$apiDa2, _layoutFormData$apiDa3, _layoutFormData$apiDa4, _layoutFormData$apiDa5, _layoutFormData$docum, _layoutFormData$docum2, _layoutFormData$docum3, _layoutFormData$geota, _layoutFormData$apiDa6, _layoutFormData$apiDa7, _layoutFormData$apiDa8, _layoutFormData$apiDa9, _layoutFormData$apiDa0, _layoutFormData$apiDa1, _layoutFormData$apiDa10, _layoutFormData$apiDa11, _layoutFormData$apiDa12, _layoutFormData$apiDa13, _layoutFormData$apiDa14, _layoutFormData$apiDa15, _layoutFormData$apiDa16, _layoutFormData$apiDa17, _layoutFormData$apiDa18, _layoutFormData$apiDa19, _layoutFormData$apiDa20, _layoutData$layoutDet4, _layoutData$layoutDet5, _layoutFormData$siteD, _layoutFormData$siteD2, _layoutFormData$siteD3, _layoutFormData$siteD4, _layoutFormData$siteD5, _layoutFormData$siteD6, _layoutFormData$siteD7, _layoutData$layoutDet6, _layoutData$layoutDet7, _layoutData$layoutDet8, _layoutFormData$scrut, _layoutData$layoutDet9, _layoutData$layoutDet0, _layoutFormData$appli4, _layoutFormData$appli5, _layoutFormData$appli6, _layoutFormData$appli7, _layoutFormData$appli8, _layoutFormData$appli9, _layoutFormData$appli0, _layoutFormData$appli1, _layoutFormData$appli10, _layoutFormData$appli11, _layoutFormData$appli12, _layoutFormData$appli13, _layoutFormData$appli14, _layoutFormData$appli15, _layoutData$layoutDet1, _layoutData$layoutDet10, _layoutFormData$siteD8, _layoutFormData$siteD9, _layoutFormData$siteD0, _layoutFormData$siteD1, _layoutFormData$siteD10, _layoutFormData$siteD11, _layoutFormData$siteD12, _layoutFormData$siteD13, _layoutFormData$siteD14, _layoutFormData$siteD15, _layoutFormData$siteD16, _layoutFormData$siteD17, _layoutFormData$siteD18, _layoutFormData$siteD19, _layoutFormData$siteD20, _layoutFormData$siteD21, _layoutFormData$siteD22, _layoutFormData$siteD23, _layoutFormData$siteD24, _layoutFormData$siteD25, _layoutFormData$siteD26, _layoutFormData$siteD27, _layoutFormData$siteD28, _layoutFormData$siteD29, _layoutFormData$siteD30, _layoutFormData$siteD31, _layoutFormData$siteD32, _layoutFormData$siteD33, _layoutFormData$siteD34, _layoutFormData$siteD35, _layoutFormData$siteD36, _layoutFormData$siteD37, _layoutFormData$siteD38, _layoutFormData$siteD39, _layoutFormData$siteD40, _layoutFormData$siteD41, _layoutFormData$siteD42, _layoutFormData$siteD43, _layoutFormData$siteD44, _layoutFormData$siteD45, _layoutFormData$siteD46, _layoutFormData$siteD47, _layoutFormData$siteD48, _layoutFormData$siteD49, _layoutFormData$siteD50, _layoutFormData$siteD51, _layoutFormData$siteD52, _layoutFormData$siteD53, _layoutFormData$siteD54, _layoutFormData$siteD55, _layoutFormData$siteD56, _layoutFormData$siteD57, _layoutFormData$siteD58, _layoutFormData$siteD59, _layoutFormData$siteD60, _layoutFormData$siteD61, _layoutFormData$siteD62, _layoutFormData$siteD63, _layoutFormData$siteD64, _layoutFormData$siteD65, _layoutFormData$siteD66, _layoutFormData$siteD67, _layoutFormData$siteD68, _layoutFormData$siteD69, _layoutFormData$siteD70, _layoutFormData$siteD71, _layoutFormData$siteD72, _layoutFormData$siteD73, _layoutFormData$siteD74, _layoutFormData$siteD75, _layoutFormData$siteD76, _layoutFormData$siteD77, _layoutFormData$siteD78, _layoutFormData$siteD79, _layoutFormData$siteD80, _layoutFormData$siteD81, _layoutFormData$siteD82, _layoutFormData$siteD83, _layoutFormData$siteD84, _layoutFormData$siteD85, _layoutFormData$siteD86, _layoutFormData$siteD87, _layoutFormData$siteD88, _layoutFormData$siteD89, _layoutFormData$siteD90, _layoutFormData$siteD91, _layoutFormData$scrut2, _layoutFormData$siteD92, _layoutFormData$siteD93, _layoutFormData$scrut3, _layoutFormData$scrut4, _layoutFormData$scrut5, _layoutData$layoutDet11, _layoutData$layoutDet12, _layoutData$layoutDet13, _layoutData$layoutDet14, _layoutData$layoutDet15, _layoutData$layoutDet16, _layoutFormData$scrut6, _layoutFormData$siteD94, _layoutData$layoutDet17, _layoutData$layoutDet18, _layoutData$layoutDet19, _layoutFormData$scrut7, _layoutFormData$siteD95, _layoutFormData$siteD96, _layoutData$layoutDet20, _layoutData$layoutDet21, _layoutData$layoutDet22, _layoutData$layoutDet23, _layoutData$layoutDet24, _layoutData$layoutDet25, _layoutFormData$scrut8, _layoutFormData$siteD97, _layoutData$layoutDet26, _layoutData$layoutDet27, _layoutData$layoutDet28, _layoutData$layoutDet29, _layoutData$layoutDet30, _layoutData$layoutDet31;
|
|
71807
72220
|
const isLayoutArray = Array.isArray(layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$apiDa = layoutFormData.apiData) === null || _layoutFormData$apiDa === void 0 ? void 0 : _layoutFormData$apiDa.Layout);
|
|
71808
72221
|
const isEditMode = !(layoutFormData !== null && layoutFormData !== void 0 && (_layoutFormData$apiDa2 = layoutFormData.apiData) !== null && _layoutFormData$apiDa2 !== void 0 && _layoutFormData$apiDa2.Layout);
|
|
71809
72222
|
const layoutData = isEditMode ? layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.apiData : isLayoutArray ? layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$apiDa3 = layoutFormData.apiData) === null || _layoutFormData$apiDa3 === void 0 ? void 0 : (_layoutFormData$apiDa4 = _layoutFormData$apiDa3.Layout) === null || _layoutFormData$apiDa4 === void 0 ? void 0 : _layoutFormData$apiDa4[0] : layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$apiDa5 = layoutFormData.apiData) === null || _layoutFormData$apiDa5 === void 0 ? void 0 : _layoutFormData$apiDa5.Layout;
|
|
@@ -71864,8 +72277,19 @@ const LayoutStepFormFour = ({
|
|
|
71864
72277
|
return ownerObj;
|
|
71865
72278
|
});
|
|
71866
72279
|
const owners = [...updatedOwnersFromApi, ...mappedNewApplicants];
|
|
72280
|
+
console.log("[v0] ownersFromApi:", ownersFromApi);
|
|
72281
|
+
console.log("[v0] updatedOwnersFromApi:", updatedOwnersFromApi);
|
|
72282
|
+
console.log("[v0] applicantsFromRedux:", applicantsFromRedux);
|
|
72283
|
+
console.log("[v0] newlyAddedApplicants:", newlyAddedApplicants);
|
|
72284
|
+
console.log("[v0] mappedNewApplicants:", mappedNewApplicants);
|
|
72285
|
+
console.log("[v0] final merged owners:", owners);
|
|
72286
|
+
console.log("[v0] isEditMode:", isEditMode);
|
|
72287
|
+
console.log("[v0] selectedAction:", selectedAction);
|
|
72288
|
+
const savedGeoJSON = (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$geota = layoutFormData.geotag) === null || _layoutFormData$geota === void 0 ? void 0 : _layoutFormData$geota.geojson) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.geojson) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$apiDa6 = layoutFormData.apiData) === null || _layoutFormData$apiDa6 === void 0 ? void 0 : (_layoutFormData$apiDa7 = _layoutFormData$apiDa6.Layout) === null || _layoutFormData$apiDa7 === void 0 ? void 0 : _layoutFormData$apiDa7.geojson) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$apiDa8 = layoutFormData.apiData) === null || _layoutFormData$apiDa8 === void 0 ? void 0 : (_layoutFormData$apiDa9 = _layoutFormData$apiDa8.Layout) === null || _layoutFormData$apiDa9 === void 0 ? void 0 : (_layoutFormData$apiDa0 = _layoutFormData$apiDa9[0]) === null || _layoutFormData$apiDa0 === void 0 ? void 0 : _layoutFormData$apiDa0.geojson) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$apiDa1 = layoutFormData.apiData) === null || _layoutFormData$apiDa1 === void 0 ? void 0 : (_layoutFormData$apiDa10 = _layoutFormData$apiDa1.Layout) === null || _layoutFormData$apiDa10 === void 0 ? void 0 : (_layoutFormData$apiDa11 = _layoutFormData$apiDa10.layoutDetails) === null || _layoutFormData$apiDa11 === void 0 ? void 0 : (_layoutFormData$apiDa12 = _layoutFormData$apiDa11.additionalDetails) === null || _layoutFormData$apiDa12 === void 0 ? void 0 : _layoutFormData$apiDa12.geojson) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$apiDa13 = layoutFormData.apiData) === null || _layoutFormData$apiDa13 === void 0 ? void 0 : (_layoutFormData$apiDa14 = _layoutFormData$apiDa13.Layout) === null || _layoutFormData$apiDa14 === void 0 ? void 0 : (_layoutFormData$apiDa15 = _layoutFormData$apiDa14[0]) === null || _layoutFormData$apiDa15 === void 0 ? void 0 : (_layoutFormData$apiDa16 = _layoutFormData$apiDa15.layoutDetails) === null || _layoutFormData$apiDa16 === void 0 ? void 0 : (_layoutFormData$apiDa17 = _layoutFormData$apiDa16.additionalDetails) === null || _layoutFormData$apiDa17 === void 0 ? void 0 : _layoutFormData$apiDa17.geojson) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$apiDa18 = layoutFormData.apiData) === null || _layoutFormData$apiDa18 === void 0 ? void 0 : (_layoutFormData$apiDa19 = _layoutFormData$apiDa18.layoutDetails) === null || _layoutFormData$apiDa19 === void 0 ? void 0 : (_layoutFormData$apiDa20 = _layoutFormData$apiDa19.additionalDetails) === null || _layoutFormData$apiDa20 === void 0 ? void 0 : _layoutFormData$apiDa20.geojson) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet4 = layoutData.layoutDetails) === null || _layoutData$layoutDet4 === void 0 ? void 0 : (_layoutData$layoutDet5 = _layoutData$layoutDet4.additionalDetails) === null || _layoutData$layoutDet5 === void 0 ? void 0 : _layoutData$layoutDet5.geojson) || null;
|
|
72289
|
+
const serializedGeoJSON = savedGeoJSON ? JSON.stringify(savedGeoJSON) : null;
|
|
71867
72290
|
const updatedApplication = {
|
|
71868
72291
|
...layoutData,
|
|
72292
|
+
geojson: serializedGeoJSON,
|
|
71869
72293
|
vasikaDate: layoutFormData !== null && layoutFormData !== void 0 && (_layoutFormData$siteD = layoutFormData.siteDetails) !== null && _layoutFormData$siteD !== void 0 && _layoutFormData$siteD.vasikaDate ? convertToDDMMYYYY(layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD2 = layoutFormData.siteDetails) === null || _layoutFormData$siteD2 === void 0 ? void 0 : _layoutFormData$siteD2.vasikaDate) : null,
|
|
71870
72294
|
vasikaNumber: (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD3 = layoutFormData.siteDetails) === null || _layoutFormData$siteD3 === void 0 ? void 0 : _layoutFormData$siteD3.vasikaNumber) || null,
|
|
71871
72295
|
workflow: !isEditMode ? {
|
|
@@ -71875,7 +72299,10 @@ const LayoutStepFormFour = ({
|
|
|
71875
72299
|
...(layoutData === null || layoutData === void 0 ? void 0 : layoutData.layoutDetails),
|
|
71876
72300
|
tenantId: window.location.href.includes("citizen") ? (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD4 = layoutFormData.siteDetails) === null || _layoutFormData$siteD4 === void 0 ? void 0 : (_layoutFormData$siteD5 = _layoutFormData$siteD4.regionOffice) === null || _layoutFormData$siteD5 === void 0 ? void 0 : _layoutFormData$siteD5.code) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD6 = layoutFormData.siteDetails) === null || _layoutFormData$siteD6 === void 0 ? void 0 : (_layoutFormData$siteD7 = _layoutFormData$siteD6.regionOffice) === null || _layoutFormData$siteD7 === void 0 ? void 0 : _layoutFormData$siteD7.tenantId) : tenantId,
|
|
71877
72301
|
additionalDetails: {
|
|
71878
|
-
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
72302
|
+
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet6 = layoutData.layoutDetails) === null || _layoutData$layoutDet6 === void 0 ? void 0 : _layoutData$layoutDet6.additionalDetails),
|
|
72303
|
+
geojson: serializedGeoJSON,
|
|
72304
|
+
scrutinyDetails: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyDetails) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet7 = layoutData.layoutDetails) === null || _layoutData$layoutDet7 === void 0 ? void 0 : (_layoutData$layoutDet8 = _layoutData$layoutDet7.additionalDetails) === null || _layoutData$layoutDet8 === void 0 ? void 0 : _layoutData$layoutDet8.scrutinyDetails) || null,
|
|
72305
|
+
updatedDxfFile: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyFileStoreId) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$scrut = layoutFormData.scrutinyDetails) === null || _layoutFormData$scrut === void 0 ? void 0 : _layoutFormData$scrut.updatedDxfFile) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet9 = layoutData.layoutDetails) === null || _layoutData$layoutDet9 === void 0 ? void 0 : (_layoutData$layoutDet0 = _layoutData$layoutDet9.additionalDetails) === null || _layoutData$layoutDet0 === void 0 ? void 0 : _layoutData$layoutDet0.updatedDxfFile) || null,
|
|
71879
72306
|
applicationDetails: {
|
|
71880
72307
|
professionalName: layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$appli4 = layoutFormData.applicationDetails) === null || _layoutFormData$appli4 === void 0 ? void 0 : _layoutFormData$appli4.professionalName,
|
|
71881
72308
|
professionalEmailId: layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$appli5 = layoutFormData.applicationDetails) === null || _layoutFormData$appli5 === void 0 ? void 0 : _layoutFormData$appli5.professionalEmailId,
|
|
@@ -71891,7 +72318,7 @@ const LayoutStepFormFour = ({
|
|
|
71891
72318
|
primaryOwnerDocument: layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$appli15 = layoutFormData.applicationDetails) === null || _layoutFormData$appli15 === void 0 ? void 0 : _layoutFormData$appli15.primaryOwnerDocument
|
|
71892
72319
|
},
|
|
71893
72320
|
siteDetails: {
|
|
71894
|
-
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
72321
|
+
...(layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet1 = layoutData.layoutDetails) === null || _layoutData$layoutDet1 === void 0 ? void 0 : (_layoutData$layoutDet10 = _layoutData$layoutDet1.additionalDetails) === null || _layoutData$layoutDet10 === void 0 ? void 0 : _layoutData$layoutDet10.siteDetails),
|
|
71895
72322
|
...((layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD8 = layoutFormData.siteDetails) === null || _layoutFormData$siteD8 === void 0 ? void 0 : _layoutFormData$siteD8.ulbName) && {
|
|
71896
72323
|
ulbName: (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD9 = layoutFormData.siteDetails) === null || _layoutFormData$siteD9 === void 0 ? void 0 : (_layoutFormData$siteD0 = _layoutFormData$siteD9.ulbName) === null || _layoutFormData$siteD0 === void 0 ? void 0 : _layoutFormData$siteD0.name) || ""
|
|
71897
72324
|
}),
|
|
@@ -71996,10 +72423,11 @@ const LayoutStepFormFour = ({
|
|
|
71996
72423
|
vasikaDate: layoutFormData !== null && layoutFormData !== void 0 && (_layoutFormData$siteD87 = layoutFormData.siteDetails) !== null && _layoutFormData$siteD87 !== void 0 && _layoutFormData$siteD87.vasikaDate ? convertToDDMMYYYY(layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD88 = layoutFormData.siteDetails) === null || _layoutFormData$siteD88 === void 0 ? void 0 : _layoutFormData$siteD88.vasikaDate) : null,
|
|
71997
72424
|
previousSanctionDate: layoutFormData !== null && layoutFormData !== void 0 && (_layoutFormData$siteD89 = layoutFormData.siteDetails) !== null && _layoutFormData$siteD89 !== void 0 && _layoutFormData$siteD89.previousSanctionDate ? convertToDDMMYYYY(layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD90 = layoutFormData.siteDetails) === null || _layoutFormData$siteD90 === void 0 ? void 0 : _layoutFormData$siteD90.previousSanctionDate) : null,
|
|
71998
72425
|
previousSanctionNumber: (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD91 = layoutFormData.siteDetails) === null || _layoutFormData$siteD91 === void 0 ? void 0 : _layoutFormData$siteD91.previousSanctionNumber) || null,
|
|
71999
|
-
edcrNumber: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$
|
|
72000
|
-
scrutinyFileStoreId: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyFileStoreId) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$
|
|
72001
|
-
scrutinyNumber: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$
|
|
72002
|
-
scrutinyDetails: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyDetails) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$
|
|
72426
|
+
edcrNumber: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$scrut2 = layoutFormData.scrutiny) === null || _layoutFormData$scrut2 === void 0 ? void 0 : _layoutFormData$scrut2.scrutinyNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD92 = layoutFormData.siteDetails) === null || _layoutFormData$siteD92 === void 0 ? void 0 : _layoutFormData$siteD92.edcrNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD93 = layoutFormData.siteDetails) === null || _layoutFormData$siteD93 === void 0 ? void 0 : _layoutFormData$siteD93.scrutinyNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$scrut3 = layoutFormData.scrutiny) === null || _layoutFormData$scrut3 === void 0 ? void 0 : (_layoutFormData$scrut4 = _layoutFormData$scrut3.scrutinyDetails) === null || _layoutFormData$scrut4 === void 0 ? void 0 : _layoutFormData$scrut4.edcrNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$scrut5 = layoutFormData.scrutinyDetails) === null || _layoutFormData$scrut5 === void 0 ? void 0 : _layoutFormData$scrut5.edcrNumber) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet11 = layoutData.layoutDetails) === null || _layoutData$layoutDet11 === void 0 ? void 0 : (_layoutData$layoutDet12 = _layoutData$layoutDet11.additionalDetails) === null || _layoutData$layoutDet12 === void 0 ? void 0 : (_layoutData$layoutDet13 = _layoutData$layoutDet12.siteDetails) === null || _layoutData$layoutDet13 === void 0 ? void 0 : _layoutData$layoutDet13.edcrNumber) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet14 = layoutData.layoutDetails) === null || _layoutData$layoutDet14 === void 0 ? void 0 : (_layoutData$layoutDet15 = _layoutData$layoutDet14.additionalDetails) === null || _layoutData$layoutDet15 === void 0 ? void 0 : (_layoutData$layoutDet16 = _layoutData$layoutDet15.siteDetails) === null || _layoutData$layoutDet16 === void 0 ? void 0 : _layoutData$layoutDet16.scrutinyNumber) || null,
|
|
72427
|
+
scrutinyFileStoreId: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyFileStoreId) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$scrut6 = layoutFormData.scrutiny) === null || _layoutFormData$scrut6 === void 0 ? void 0 : _layoutFormData$scrut6.scrutinyFileStoreId) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD94 = layoutFormData.siteDetails) === null || _layoutFormData$siteD94 === void 0 ? void 0 : _layoutFormData$siteD94.scrutinyFileStoreId) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet17 = layoutData.layoutDetails) === null || _layoutData$layoutDet17 === void 0 ? void 0 : (_layoutData$layoutDet18 = _layoutData$layoutDet17.additionalDetails) === null || _layoutData$layoutDet18 === void 0 ? void 0 : (_layoutData$layoutDet19 = _layoutData$layoutDet18.siteDetails) === null || _layoutData$layoutDet19 === void 0 ? void 0 : _layoutData$layoutDet19.scrutinyFileStoreId) || null,
|
|
72428
|
+
scrutinyNumber: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$scrut7 = layoutFormData.scrutiny) === null || _layoutFormData$scrut7 === void 0 ? void 0 : _layoutFormData$scrut7.scrutinyNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD95 = layoutFormData.siteDetails) === null || _layoutFormData$siteD95 === void 0 ? void 0 : _layoutFormData$siteD95.scrutinyNumber) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD96 = layoutFormData.siteDetails) === null || _layoutFormData$siteD96 === void 0 ? void 0 : _layoutFormData$siteD96.edcrNumber) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet20 = layoutData.layoutDetails) === null || _layoutData$layoutDet20 === void 0 ? void 0 : (_layoutData$layoutDet21 = _layoutData$layoutDet20.additionalDetails) === null || _layoutData$layoutDet21 === void 0 ? void 0 : (_layoutData$layoutDet22 = _layoutData$layoutDet21.siteDetails) === null || _layoutData$layoutDet22 === void 0 ? void 0 : _layoutData$layoutDet22.scrutinyNumber) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet23 = layoutData.layoutDetails) === null || _layoutData$layoutDet23 === void 0 ? void 0 : (_layoutData$layoutDet24 = _layoutData$layoutDet23.additionalDetails) === null || _layoutData$layoutDet24 === void 0 ? void 0 : (_layoutData$layoutDet25 = _layoutData$layoutDet24.siteDetails) === null || _layoutData$layoutDet25 === void 0 ? void 0 : _layoutData$layoutDet25.edcrNumber) || null,
|
|
72429
|
+
scrutinyDetails: (layoutFormData === null || layoutFormData === void 0 ? void 0 : layoutFormData.scrutinyDetails) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$scrut8 = layoutFormData.scrutiny) === null || _layoutFormData$scrut8 === void 0 ? void 0 : _layoutFormData$scrut8.scrutinyDetails) || (layoutFormData === null || layoutFormData === void 0 ? void 0 : (_layoutFormData$siteD97 = layoutFormData.siteDetails) === null || _layoutFormData$siteD97 === void 0 ? void 0 : _layoutFormData$siteD97.scrutinyDetails) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet26 = layoutData.layoutDetails) === null || _layoutData$layoutDet26 === void 0 ? void 0 : (_layoutData$layoutDet27 = _layoutData$layoutDet26.additionalDetails) === null || _layoutData$layoutDet27 === void 0 ? void 0 : (_layoutData$layoutDet28 = _layoutData$layoutDet27.siteDetails) === null || _layoutData$layoutDet28 === void 0 ? void 0 : _layoutData$layoutDet28.scrutinyDetails) || null,
|
|
72430
|
+
geojson: (geotag === null || geotag === void 0 ? void 0 : geotag.geojson) || (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet29 = layoutData.layoutDetails) === null || _layoutData$layoutDet29 === void 0 ? void 0 : (_layoutData$layoutDet30 = _layoutData$layoutDet29.additionalDetails) === null || _layoutData$layoutDet30 === void 0 ? void 0 : (_layoutData$layoutDet31 = _layoutData$layoutDet30.siteDetails) === null || _layoutData$layoutDet31 === void 0 ? void 0 : _layoutData$layoutDet31.geojson) || null
|
|
72003
72431
|
},
|
|
72004
72432
|
coordinates: {
|
|
72005
72433
|
...coordinates
|
|
@@ -72082,7 +72510,7 @@ const LayoutStepFormFour = ({
|
|
|
72082
72510
|
const isEditMode = !(currentStepData !== null && currentStepData !== void 0 && (_currentStepData$apiD4 = currentStepData.apiData) !== null && _currentStepData$apiD4 !== void 0 && _currentStepData$apiD4.Layout);
|
|
72083
72511
|
const layoutData = isEditMode ? currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.apiData : currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$apiD5 = currentStepData.apiData) === null || _currentStepData$apiD5 === void 0 ? void 0 : (_currentStepData$apiD6 = _currentStepData$apiD5.Layout) === null || _currentStepData$apiD6 === void 0 ? void 0 : _currentStepData$apiD6[0];
|
|
72084
72512
|
const applicationNo = (layoutData === null || layoutData === void 0 ? void 0 : layoutData.applicationNo) || "";
|
|
72085
|
-
const businessServiceCode = (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$
|
|
72513
|
+
const businessServiceCode = (layoutData === null || layoutData === void 0 ? void 0 : (_layoutData$layoutDet32 = layoutData.layoutDetails) === null || _layoutData$layoutDet32 === void 0 ? void 0 : (_layoutData$layoutDet33 = _layoutData$layoutDet32.additionalDetails) === null || _layoutData$layoutDet33 === void 0 ? void 0 : (_layoutData$layoutDet34 = _layoutData$layoutDet33.siteDetails) === null || _layoutData$layoutDet34 === void 0 ? void 0 : _layoutData$layoutDet34.businessService) || "";
|
|
72086
72514
|
const workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
72087
72515
|
tenantId: tenantId,
|
|
72088
72516
|
id: applicationNo,
|
|
@@ -72154,6 +72582,8 @@ const LayoutStepScrutiny = ({
|
|
|
72154
72582
|
const [scrutinyLoading, setScrutinyLoading] = useState(false);
|
|
72155
72583
|
const [scrutinyDetails, setScrutinyDetails] = useState((formData === null || formData === void 0 ? void 0 : (_formData$scrutiny3 = formData.scrutiny) === null || _formData$scrutiny3 === void 0 ? void 0 : _formData$scrutiny3.scrutinyDetails) || (formData === null || formData === void 0 ? void 0 : formData.scrutinyDetails) || null);
|
|
72156
72584
|
const [showToast, setShowToast] = useState(null);
|
|
72585
|
+
console.log(scrutinyDetails, "scrutinyDetails1");
|
|
72586
|
+
console.log(formData, "formData1");
|
|
72157
72587
|
useEffect(() => {
|
|
72158
72588
|
var _formData$scrutiny4, _formData$scrutiny6;
|
|
72159
72589
|
if (formData !== null && formData !== void 0 && (_formData$scrutiny4 = formData.scrutiny) !== null && _formData$scrutiny4 !== void 0 && _formData$scrutiny4.scrutinyDetails || formData !== null && formData !== void 0 && formData.scrutinyDetails) {
|
|
@@ -72190,6 +72620,7 @@ const LayoutStepScrutiny = ({
|
|
|
72190
72620
|
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) {
|
|
72191
72621
|
var _response$data2, _response$data2$files;
|
|
72192
72622
|
const fileStoreId = response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId;
|
|
72623
|
+
console.log(fileStoreId, "fileStoreId123");
|
|
72193
72624
|
setUploadedFile(fileStoreId);
|
|
72194
72625
|
setUploadMessage("File uploaded successfully");
|
|
72195
72626
|
dispatch(UPDATE_LayoutNewApplication_FORM("scrutinyFileStoreId", fileStoreId));
|
|
@@ -72278,11 +72709,19 @@ const LayoutStepScrutiny = ({
|
|
|
72278
72709
|
}
|
|
72279
72710
|
};
|
|
72280
72711
|
const goNext = () => {
|
|
72281
|
-
if (!
|
|
72712
|
+
if (!uploadedFile) {
|
|
72713
|
+
setShowToast({
|
|
72714
|
+
key: "true",
|
|
72715
|
+
error: true,
|
|
72716
|
+
message: t("ES_NO_FILE_SELECTED_LABEL") || "Please upload a DXF file first"
|
|
72717
|
+
});
|
|
72718
|
+
return;
|
|
72719
|
+
}
|
|
72720
|
+
if (!scrutinyDetails || Object.keys(scrutinyDetails).length === 0) {
|
|
72282
72721
|
setShowToast({
|
|
72283
72722
|
key: "true",
|
|
72284
72723
|
error: true,
|
|
72285
|
-
message: "Please run scrutiny successfully before proceeding"
|
|
72724
|
+
message: t("EDCR_PLEASE_RUN_SCRUTINY") || "Please run scrutiny successfully before proceeding"
|
|
72286
72725
|
});
|
|
72287
72726
|
return;
|
|
72288
72727
|
}
|
|
@@ -72362,7 +72801,7 @@ const LayoutStepScrutiny = ({
|
|
|
72362
72801
|
}
|
|
72363
72802
|
}), fileLoading && /*#__PURE__*/React.createElement(Loader$4, null), scrutinyLoading && /*#__PURE__*/React.createElement(CustomLoader, {
|
|
72364
72803
|
message: "EDCR_SCRUTINY_LOADING_MESSAGE"
|
|
72365
|
-
}), scrutinyDetails && /*#__PURE__*/React.createElement("div", {
|
|
72804
|
+
}), scrutinyDetails && Object.keys(scrutinyDetails).length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
72366
72805
|
style: {
|
|
72367
72806
|
marginTop: "32px",
|
|
72368
72807
|
padding: "16px",
|
|
@@ -72409,8 +72848,7 @@ const LayoutStepScrutiny = ({
|
|
|
72409
72848
|
onSubmit: () => onBackClick(config.key)
|
|
72410
72849
|
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
72411
72850
|
label: t("NEXT"),
|
|
72412
|
-
onSubmit: goNext
|
|
72413
|
-
disabled: !scrutinyDetails
|
|
72851
|
+
onSubmit: goNext
|
|
72414
72852
|
})), showToast && /*#__PURE__*/React.createElement(Toast$1, {
|
|
72415
72853
|
isDleteBtn: true,
|
|
72416
72854
|
error: showToast.error,
|
|
@@ -72420,6 +72858,858 @@ const LayoutStepScrutiny = ({
|
|
|
72420
72858
|
}));
|
|
72421
72859
|
};
|
|
72422
72860
|
|
|
72861
|
+
const parser = new DxfParser();
|
|
72862
|
+
const isFiniteNumber = value => Number.isFinite(value);
|
|
72863
|
+
const toNumber = value => {
|
|
72864
|
+
const parsed = parseFloat(value);
|
|
72865
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
72866
|
+
};
|
|
72867
|
+
const parseDXF = fileContent => {
|
|
72868
|
+
try {
|
|
72869
|
+
const dxf = parser.parseSync(fileContent);
|
|
72870
|
+
const features = [];
|
|
72871
|
+
const layers = new Set();
|
|
72872
|
+
if (!dxf || !dxf.entities) {
|
|
72873
|
+
throw new Error('Invalid DXF file');
|
|
72874
|
+
}
|
|
72875
|
+
let minX = Infinity,
|
|
72876
|
+
minY = Infinity,
|
|
72877
|
+
maxX = -Infinity,
|
|
72878
|
+
maxY = -Infinity;
|
|
72879
|
+
dxf.entities.forEach(entity => {
|
|
72880
|
+
if (Array.isArray(entity.vertices)) {
|
|
72881
|
+
entity.vertices.forEach(v => {
|
|
72882
|
+
const x = toNumber(v === null || v === void 0 ? void 0 : v.x);
|
|
72883
|
+
const y = toNumber(v === null || v === void 0 ? void 0 : v.y);
|
|
72884
|
+
if (!isFiniteNumber(x) || !isFiniteNumber(y)) return;
|
|
72885
|
+
if (x < minX) minX = x;
|
|
72886
|
+
if (y < minY) minY = y;
|
|
72887
|
+
if (x > maxX) maxX = x;
|
|
72888
|
+
if (y > maxY) maxY = y;
|
|
72889
|
+
});
|
|
72890
|
+
}
|
|
72891
|
+
if (entity.center) {
|
|
72892
|
+
const x = toNumber(entity.center.x);
|
|
72893
|
+
const y = toNumber(entity.center.y);
|
|
72894
|
+
if (!isFiniteNumber(x) || !isFiniteNumber(y)) return;
|
|
72895
|
+
if (x < minX) minX = x;
|
|
72896
|
+
if (y < minY) minY = y;
|
|
72897
|
+
if (x > maxX) maxX = x;
|
|
72898
|
+
if (y > maxY) maxY = y;
|
|
72899
|
+
}
|
|
72900
|
+
});
|
|
72901
|
+
if (minX === Infinity) {
|
|
72902
|
+
minX = 0;
|
|
72903
|
+
minY = 0;
|
|
72904
|
+
maxX = 0;
|
|
72905
|
+
maxY = 0;
|
|
72906
|
+
}
|
|
72907
|
+
const width = maxX - minX;
|
|
72908
|
+
const height = maxY - minY;
|
|
72909
|
+
const hasGeoRefMarker = fileContent.includes('ANTIGRAVITY_GEO_REF');
|
|
72910
|
+
const isGeoReferenced = hasGeoRefMarker || minX >= -180 && maxX <= 180 && minY >= -90 && maxY <= 90 && width < 2.0 && height < 2.0;
|
|
72911
|
+
const centerX = (minX + maxX) / 2;
|
|
72912
|
+
const centerY = (minY + maxY) / 2;
|
|
72913
|
+
const METERS_PER_DEGREE = 111320;
|
|
72914
|
+
const project = (x, y) => {
|
|
72915
|
+
if (!isFiniteNumber(x) || !isFiniteNumber(y)) {
|
|
72916
|
+
return null;
|
|
72917
|
+
}
|
|
72918
|
+
if (isGeoReferenced) {
|
|
72919
|
+
return [x, y];
|
|
72920
|
+
}
|
|
72921
|
+
const dx = x - centerX;
|
|
72922
|
+
const dy = y - centerY;
|
|
72923
|
+
const lat = dy / METERS_PER_DEGREE;
|
|
72924
|
+
const lon = dx / (METERS_PER_DEGREE * Math.cos(0));
|
|
72925
|
+
return [lon, lat];
|
|
72926
|
+
};
|
|
72927
|
+
const validPoint = point => Array.isArray(point) && point.length >= 2 && point.every(isFiniteNumber);
|
|
72928
|
+
dxf.entities.forEach(entity => {
|
|
72929
|
+
if (entity.layer) {
|
|
72930
|
+
layers.add(entity.layer);
|
|
72931
|
+
}
|
|
72932
|
+
let feature = null;
|
|
72933
|
+
switch (entity.type) {
|
|
72934
|
+
case 'LINE':
|
|
72935
|
+
if (!Array.isArray(entity.vertices) || entity.vertices.length < 2) {
|
|
72936
|
+
break;
|
|
72937
|
+
}
|
|
72938
|
+
{
|
|
72939
|
+
var _entity$vertices$, _entity$vertices$2, _entity$vertices$3, _entity$vertices$4;
|
|
72940
|
+
const start = project(toNumber((_entity$vertices$ = entity.vertices[0]) === null || _entity$vertices$ === void 0 ? void 0 : _entity$vertices$.x), toNumber((_entity$vertices$2 = entity.vertices[0]) === null || _entity$vertices$2 === void 0 ? void 0 : _entity$vertices$2.y));
|
|
72941
|
+
const end = project(toNumber((_entity$vertices$3 = entity.vertices[1]) === null || _entity$vertices$3 === void 0 ? void 0 : _entity$vertices$3.x), toNumber((_entity$vertices$4 = entity.vertices[1]) === null || _entity$vertices$4 === void 0 ? void 0 : _entity$vertices$4.y));
|
|
72942
|
+
if (!validPoint(start) || !validPoint(end)) {
|
|
72943
|
+
break;
|
|
72944
|
+
}
|
|
72945
|
+
feature = lineString([start, end], {
|
|
72946
|
+
layer: entity.layer,
|
|
72947
|
+
handle: entity.handle
|
|
72948
|
+
});
|
|
72949
|
+
}
|
|
72950
|
+
break;
|
|
72951
|
+
case 'LWPOLYLINE':
|
|
72952
|
+
case 'POLYLINE':
|
|
72953
|
+
if (!Array.isArray(entity.vertices) || entity.vertices.length < 2) {
|
|
72954
|
+
break;
|
|
72955
|
+
}
|
|
72956
|
+
{
|
|
72957
|
+
const coordinates = entity.vertices.map(v => project(toNumber(v === null || v === void 0 ? void 0 : v.x), toNumber(v === null || v === void 0 ? void 0 : v.y))).filter(validPoint);
|
|
72958
|
+
if (coordinates.length < 2) {
|
|
72959
|
+
break;
|
|
72960
|
+
}
|
|
72961
|
+
if (entity.shape && coordinates.length >= 3) {
|
|
72962
|
+
coordinates.push(coordinates[0]);
|
|
72963
|
+
feature = polygon([coordinates], {
|
|
72964
|
+
layer: entity.layer,
|
|
72965
|
+
handle: entity.handle
|
|
72966
|
+
});
|
|
72967
|
+
} else {
|
|
72968
|
+
feature = lineString(coordinates, {
|
|
72969
|
+
layer: entity.layer,
|
|
72970
|
+
handle: entity.handle
|
|
72971
|
+
});
|
|
72972
|
+
}
|
|
72973
|
+
}
|
|
72974
|
+
break;
|
|
72975
|
+
case 'CIRCLE':
|
|
72976
|
+
if (!entity.center) {
|
|
72977
|
+
break;
|
|
72978
|
+
}
|
|
72979
|
+
{
|
|
72980
|
+
const center = project(toNumber(entity.center.x), toNumber(entity.center.y));
|
|
72981
|
+
const radius = toNumber(entity.radius);
|
|
72982
|
+
if (!validPoint(center) || !isFiniteNumber(radius) || radius <= 0) {
|
|
72983
|
+
break;
|
|
72984
|
+
}
|
|
72985
|
+
feature = circle(center, radius, {
|
|
72986
|
+
steps: 64,
|
|
72987
|
+
units: 'meters',
|
|
72988
|
+
properties: {
|
|
72989
|
+
layer: entity.layer,
|
|
72990
|
+
handle: entity.handle
|
|
72991
|
+
}
|
|
72992
|
+
});
|
|
72993
|
+
}
|
|
72994
|
+
break;
|
|
72995
|
+
default:
|
|
72996
|
+
break;
|
|
72997
|
+
}
|
|
72998
|
+
if (feature) {
|
|
72999
|
+
features.push(feature);
|
|
73000
|
+
}
|
|
73001
|
+
});
|
|
73002
|
+
return {
|
|
73003
|
+
geoJSON: featureCollection(features),
|
|
73004
|
+
layers: Array.from(layers)
|
|
73005
|
+
};
|
|
73006
|
+
} catch (error) {
|
|
73007
|
+
console.error('Error parsing DXF:', error);
|
|
73008
|
+
throw error;
|
|
73009
|
+
}
|
|
73010
|
+
};
|
|
73011
|
+
|
|
73012
|
+
const isFiniteCoord = value => typeof value === "number" && Number.isFinite(value);
|
|
73013
|
+
const hasValidCoordinates = coordinates => {
|
|
73014
|
+
if (!Array.isArray(coordinates) || coordinates.length === 0) {
|
|
73015
|
+
return false;
|
|
73016
|
+
}
|
|
73017
|
+
if (typeof coordinates[0] === "number") {
|
|
73018
|
+
return coordinates.length >= 2 && coordinates.every(isFiniteCoord);
|
|
73019
|
+
}
|
|
73020
|
+
return coordinates.every(hasValidCoordinates);
|
|
73021
|
+
};
|
|
73022
|
+
const normalizeGeoJSON = input => {
|
|
73023
|
+
if (!input || typeof input !== "object") {
|
|
73024
|
+
throw new Error("Invalid GeoJSON payload");
|
|
73025
|
+
}
|
|
73026
|
+
let featureCollection$1;
|
|
73027
|
+
if (input.type === "FeatureCollection") {
|
|
73028
|
+
featureCollection$1 = input;
|
|
73029
|
+
} else if (input.type === "Feature") {
|
|
73030
|
+
featureCollection$1 = featureCollection([input]);
|
|
73031
|
+
} else if (input.type) {
|
|
73032
|
+
featureCollection$1 = featureCollection([feature(input)]);
|
|
73033
|
+
} else if (Array.isArray(input.features)) {
|
|
73034
|
+
featureCollection$1 = featureCollection(input.features);
|
|
73035
|
+
} else {
|
|
73036
|
+
throw new Error("Unsupported GeoJSON structure");
|
|
73037
|
+
}
|
|
73038
|
+
const validFeatures = featureCollection$1.features.filter(feature => {
|
|
73039
|
+
const geometry = feature === null || feature === void 0 ? void 0 : feature.geometry;
|
|
73040
|
+
return geometry && hasValidCoordinates(geometry.coordinates);
|
|
73041
|
+
});
|
|
73042
|
+
if (validFeatures.length === 0) {
|
|
73043
|
+
throw new Error("No valid geometries found in uploaded file");
|
|
73044
|
+
}
|
|
73045
|
+
return featureCollection(validFeatures);
|
|
73046
|
+
};
|
|
73047
|
+
const isDirectFileUrl = (value = "") => typeof value === "string" && value.includes("/filestore/");
|
|
73048
|
+
const extractFileValue = value => {
|
|
73049
|
+
var _value$split$;
|
|
73050
|
+
if (!value) return "";
|
|
73051
|
+
if (typeof value === "string") return (_value$split$ = value.split(",")[0]) === null || _value$split$ === void 0 ? void 0 : _value$split$.trim();
|
|
73052
|
+
if (Array.isArray(value)) {
|
|
73053
|
+
for (const item of value) {
|
|
73054
|
+
const extracted = extractFileValue(item);
|
|
73055
|
+
if (extracted) return extracted;
|
|
73056
|
+
}
|
|
73057
|
+
return "";
|
|
73058
|
+
}
|
|
73059
|
+
if (typeof value === "object") {
|
|
73060
|
+
return extractFileValue(value === null || value === void 0 ? void 0 : value.url) || extractFileValue(value === null || value === void 0 ? void 0 : value.fileUrl) || extractFileValue(value === null || value === void 0 ? void 0 : value.fileStoreId) || extractFileValue(value === null || value === void 0 ? void 0 : value.filestoreId) || extractFileValue(value === null || value === void 0 ? void 0 : value.id) || "";
|
|
73061
|
+
}
|
|
73062
|
+
return "";
|
|
73063
|
+
};
|
|
73064
|
+
const getCandidateTenants = tenantId => {
|
|
73065
|
+
var _tenantId$split, _Digit, _Digit$ULBService, _Digit$ULBService$get, _Digit2, _Digit2$ULBService, _Digit2$ULBService$ge;
|
|
73066
|
+
const candidates = [tenantId, tenantId === null || tenantId === void 0 ? void 0 : (_tenantId$split = tenantId.split(".")) === null || _tenantId$split === void 0 ? void 0 : _tenantId$split[0], typeof Digit !== "undefined" ? (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ULBService = _Digit.ULBService) === null || _Digit$ULBService === void 0 ? void 0 : (_Digit$ULBService$get = _Digit$ULBService.getCurrentTenantId) === null || _Digit$ULBService$get === void 0 ? void 0 : _Digit$ULBService$get.call(_Digit$ULBService) : "", typeof Digit !== "undefined" ? (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ULBService = _Digit2.ULBService) === null || _Digit2$ULBService === void 0 ? void 0 : (_Digit2$ULBService$ge = _Digit2$ULBService.getStateId) === null || _Digit2$ULBService$ge === void 0 ? void 0 : _Digit2$ULBService$ge.call(_Digit2$ULBService) : ""];
|
|
73067
|
+
return [...new Set(candidates.filter(Boolean))];
|
|
73068
|
+
};
|
|
73069
|
+
const toProxySafeUrl = (value = "") => {
|
|
73070
|
+
if (!value || typeof value !== "string") return value;
|
|
73071
|
+
try {
|
|
73072
|
+
const parsed = new URL(value, window.location.origin);
|
|
73073
|
+
console.log(parsed, "parsed");
|
|
73074
|
+
if (parsed.pathname.startsWith("/edcr/") || parsed.pathname.startsWith("/filestore/")) {
|
|
73075
|
+
return `${parsed.pathname}${parsed.search}`;
|
|
73076
|
+
}
|
|
73077
|
+
return value;
|
|
73078
|
+
} catch (error) {
|
|
73079
|
+
return value;
|
|
73080
|
+
}
|
|
73081
|
+
};
|
|
73082
|
+
const safeParseGeoJSON = input => {
|
|
73083
|
+
let parsed = input;
|
|
73084
|
+
for (let i = 0; i < 5; i++) {
|
|
73085
|
+
if (typeof parsed === "string") {
|
|
73086
|
+
try {
|
|
73087
|
+
parsed = JSON.parse(parsed);
|
|
73088
|
+
continue;
|
|
73089
|
+
} catch (e) {
|
|
73090
|
+
break;
|
|
73091
|
+
}
|
|
73092
|
+
}
|
|
73093
|
+
break;
|
|
73094
|
+
}
|
|
73095
|
+
return parsed;
|
|
73096
|
+
};
|
|
73097
|
+
function GeoReferencer({
|
|
73098
|
+
initialGeoJSON = null,
|
|
73099
|
+
onSave,
|
|
73100
|
+
onGeoJSONUpdate,
|
|
73101
|
+
edcrNumber = "",
|
|
73102
|
+
tenantId = "",
|
|
73103
|
+
scrutinyFileStoreId = ""
|
|
73104
|
+
}) {
|
|
73105
|
+
const styles = {
|
|
73106
|
+
shell: {
|
|
73107
|
+
display: "flex",
|
|
73108
|
+
width: "100%",
|
|
73109
|
+
minHeight: "640px",
|
|
73110
|
+
background: "#f3f4f6",
|
|
73111
|
+
borderRadius: "12px",
|
|
73112
|
+
overflow: "hidden",
|
|
73113
|
+
border: "1px solid #e5e7eb"
|
|
73114
|
+
},
|
|
73115
|
+
sidebar: {
|
|
73116
|
+
width: "320px",
|
|
73117
|
+
minWidth: "320px",
|
|
73118
|
+
background: "#ffffff",
|
|
73119
|
+
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.08)",
|
|
73120
|
+
zIndex: 1,
|
|
73121
|
+
display: "flex",
|
|
73122
|
+
flexDirection: "column",
|
|
73123
|
+
padding: "16px",
|
|
73124
|
+
gap: "16px",
|
|
73125
|
+
overflowY: "auto"
|
|
73126
|
+
},
|
|
73127
|
+
mapArea: {
|
|
73128
|
+
flex: 1,
|
|
73129
|
+
position: "relative",
|
|
73130
|
+
minHeight: "640px"
|
|
73131
|
+
},
|
|
73132
|
+
section: {
|
|
73133
|
+
borderTop: "1px solid #e5e7eb",
|
|
73134
|
+
paddingTop: "16px"
|
|
73135
|
+
},
|
|
73136
|
+
heading: {
|
|
73137
|
+
fontSize: "24px",
|
|
73138
|
+
fontWeight: 700,
|
|
73139
|
+
color: "#1f2937",
|
|
73140
|
+
margin: 0
|
|
73141
|
+
},
|
|
73142
|
+
subheading: {
|
|
73143
|
+
fontWeight: 600,
|
|
73144
|
+
color: "#374151",
|
|
73145
|
+
marginBottom: "8px"
|
|
73146
|
+
},
|
|
73147
|
+
button: {
|
|
73148
|
+
width: "100%",
|
|
73149
|
+
display: "flex",
|
|
73150
|
+
alignItems: "center",
|
|
73151
|
+
justifyContent: "center",
|
|
73152
|
+
padding: "10px 12px",
|
|
73153
|
+
borderRadius: "6px",
|
|
73154
|
+
border: "1px solid #cbd5e1",
|
|
73155
|
+
background: "#eff6ff",
|
|
73156
|
+
color: "#1d4ed8",
|
|
73157
|
+
cursor: "pointer",
|
|
73158
|
+
fontSize: "14px",
|
|
73159
|
+
fontWeight: 600,
|
|
73160
|
+
marginBottom: "16px"
|
|
73161
|
+
},
|
|
73162
|
+
inputGrid: {
|
|
73163
|
+
display: "grid",
|
|
73164
|
+
gridTemplateColumns: "1fr 1fr",
|
|
73165
|
+
gap: "8px",
|
|
73166
|
+
marginBottom: "8px"
|
|
73167
|
+
},
|
|
73168
|
+
input: {
|
|
73169
|
+
width: "100%",
|
|
73170
|
+
padding: "6px 8px",
|
|
73171
|
+
border: "1px solid #d1d5db",
|
|
73172
|
+
borderRadius: "4px",
|
|
73173
|
+
fontSize: "14px",
|
|
73174
|
+
boxSizing: "border-box"
|
|
73175
|
+
},
|
|
73176
|
+
actionButton: {
|
|
73177
|
+
display: "flex",
|
|
73178
|
+
alignItems: "center",
|
|
73179
|
+
justifyContent: "center",
|
|
73180
|
+
width: "100%",
|
|
73181
|
+
padding: "10px 16px",
|
|
73182
|
+
color: "#ffffff",
|
|
73183
|
+
background: "#16a34a",
|
|
73184
|
+
border: "none",
|
|
73185
|
+
borderRadius: "6px",
|
|
73186
|
+
cursor: "pointer",
|
|
73187
|
+
fontWeight: 600
|
|
73188
|
+
},
|
|
73189
|
+
disabledButton: {
|
|
73190
|
+
opacity: 0.6,
|
|
73191
|
+
cursor: "not-allowed"
|
|
73192
|
+
},
|
|
73193
|
+
helperText: {
|
|
73194
|
+
fontSize: "12px",
|
|
73195
|
+
color: "#6b7280",
|
|
73196
|
+
marginTop: "auto",
|
|
73197
|
+
paddingTop: "16px"
|
|
73198
|
+
}
|
|
73199
|
+
};
|
|
73200
|
+
const [baseGeoJSON, setBaseGeoJSON] = useState(null);
|
|
73201
|
+
const [layers, setLayers] = useState([]);
|
|
73202
|
+
const [selectedLayers, setSelectedLayers] = useState([]);
|
|
73203
|
+
const storedCoordinates = useSelector(state => {
|
|
73204
|
+
var _state$obps, _state$obps$LayoutNew;
|
|
73205
|
+
return (state === null || state === void 0 ? void 0 : (_state$obps = state.obps) === null || _state$obps === void 0 ? void 0 : (_state$obps$LayoutNew = _state$obps.LayoutNewApplicationFormReducer) === null || _state$obps$LayoutNew === void 0 ? void 0 : _state$obps$LayoutNew.coordinates) || {};
|
|
73206
|
+
});
|
|
73207
|
+
const storedCenter = useMemo(() => {
|
|
73208
|
+
const lat = Number(storedCoordinates === null || storedCoordinates === void 0 ? void 0 : storedCoordinates.Latitude1);
|
|
73209
|
+
const lng = Number(storedCoordinates === null || storedCoordinates === void 0 ? void 0 : storedCoordinates.Longitude1);
|
|
73210
|
+
return Number.isFinite(lat) && Number.isFinite(lng) ? [lng, lat] : null;
|
|
73211
|
+
}, [storedCoordinates]);
|
|
73212
|
+
const [transform, setTransform] = useState({
|
|
73213
|
+
center: [0, 0],
|
|
73214
|
+
rotation: 0,
|
|
73215
|
+
scale: 1
|
|
73216
|
+
});
|
|
73217
|
+
const [mapCenter, setMapCenter] = useState([0, 0]);
|
|
73218
|
+
const [flyToLocation, setFlyToLocation] = useState(null);
|
|
73219
|
+
const [saveMessage, setSaveMessage] = useState("");
|
|
73220
|
+
const [loadMessage, setLoadMessage] = useState("");
|
|
73221
|
+
const [loadError, setLoadError] = useState("");
|
|
73222
|
+
const [isFetchingDXF, setIsFetchingDXF] = useState(false);
|
|
73223
|
+
const resolveFileUrl = useCallback(async fileReference => {
|
|
73224
|
+
var _Digit3, _Digit3$UploadService, _Digit4, _Digit4$UploadService;
|
|
73225
|
+
console.log("resolveFileUrl called with fileReference:", fileReference);
|
|
73226
|
+
const normalizedReference = extractFileValue(fileReference);
|
|
73227
|
+
if (!normalizedReference) {
|
|
73228
|
+
console.log("No fileStoreId provided");
|
|
73229
|
+
return null;
|
|
73230
|
+
}
|
|
73231
|
+
if (isDirectFileUrl(normalizedReference)) {
|
|
73232
|
+
console.log("Direct file URL:", normalizedReference);
|
|
73233
|
+
return normalizedReference;
|
|
73234
|
+
}
|
|
73235
|
+
const candidateTenants = getCandidateTenants(tenantId);
|
|
73236
|
+
console.log("Digit:", typeof Digit, (_Digit3 = Digit) === null || _Digit3 === void 0 ? void 0 : (_Digit3$UploadService = _Digit3.UploadServices) === null || _Digit3$UploadService === void 0 ? void 0 : _Digit3$UploadService.Filefetch, "candidateTenants:", candidateTenants);
|
|
73237
|
+
if (typeof Digit === "undefined" || !((_Digit4 = Digit) !== null && _Digit4 !== void 0 && (_Digit4$UploadService = _Digit4.UploadServices) !== null && _Digit4$UploadService !== void 0 && _Digit4$UploadService.Filefetch) || candidateTenants.length === 0) {
|
|
73238
|
+
console.log("Digit or Filefetch not available");
|
|
73239
|
+
return null;
|
|
73240
|
+
}
|
|
73241
|
+
for (const candidateTenant of candidateTenants) {
|
|
73242
|
+
var _fileResponse$data, _fileResponse$data2, _fileResponse$data2$f, _fileResponse$data2$f2, _fileResponse$data3, _fileResponse$data3$f, _fileResponse$data3$f2, _fileResponse$data4, _fileResponse$data4$f, _fileResponse$data4$f2;
|
|
73243
|
+
const fileResponse = await Digit.UploadServices.Filefetch([normalizedReference], candidateTenant);
|
|
73244
|
+
console.log("Filefetch response for tenant:", candidateTenant, fileResponse);
|
|
73245
|
+
const url = extractFileValue((fileResponse === null || fileResponse === void 0 ? void 0 : (_fileResponse$data = fileResponse.data) === null || _fileResponse$data === void 0 ? void 0 : _fileResponse$data[normalizedReference]) || (fileResponse === null || fileResponse === void 0 ? void 0 : (_fileResponse$data2 = fileResponse.data) === null || _fileResponse$data2 === void 0 ? void 0 : (_fileResponse$data2$f = _fileResponse$data2.files) === null || _fileResponse$data2$f === void 0 ? void 0 : (_fileResponse$data2$f2 = _fileResponse$data2$f.find(file => (file === null || file === void 0 ? void 0 : file.fileStoreId) === normalizedReference)) === null || _fileResponse$data2$f2 === void 0 ? void 0 : _fileResponse$data2$f2.url) || (fileResponse === null || fileResponse === void 0 ? void 0 : (_fileResponse$data3 = fileResponse.data) === null || _fileResponse$data3 === void 0 ? void 0 : (_fileResponse$data3$f = _fileResponse$data3.fileStoreIds) === null || _fileResponse$data3$f === void 0 ? void 0 : (_fileResponse$data3$f2 = _fileResponse$data3$f.find(file => (file === null || file === void 0 ? void 0 : file.id) === normalizedReference || (file === null || file === void 0 ? void 0 : file.fileStoreId) === normalizedReference)) === null || _fileResponse$data3$f2 === void 0 ? void 0 : _fileResponse$data3$f2.url) || (fileResponse === null || fileResponse === void 0 ? void 0 : (_fileResponse$data4 = fileResponse.data) === null || _fileResponse$data4 === void 0 ? void 0 : (_fileResponse$data4$f = _fileResponse$data4.fileStoreIds) === null || _fileResponse$data4$f === void 0 ? void 0 : (_fileResponse$data4$f2 = _fileResponse$data4$f[0]) === null || _fileResponse$data4$f2 === void 0 ? void 0 : _fileResponse$data4$f2.url));
|
|
73246
|
+
if (url) {
|
|
73247
|
+
console.log("Resolved URL:", url, "tenant:", candidateTenant);
|
|
73248
|
+
return url;
|
|
73249
|
+
}
|
|
73250
|
+
}
|
|
73251
|
+
console.log("Resolved URL:");
|
|
73252
|
+
return null;
|
|
73253
|
+
}, [tenantId]);
|
|
73254
|
+
const initializeMapData = useCallback((parsedGeoJSON, parsedLayers = [], options = {}) => {
|
|
73255
|
+
const {
|
|
73256
|
+
restrictToDefaults = false,
|
|
73257
|
+
centerOverride = null
|
|
73258
|
+
} = options;
|
|
73259
|
+
const normalizedGeoJSON = normalizeGeoJSON(parsedGeoJSON);
|
|
73260
|
+
const safeLayers = (parsedLayers === null || parsedLayers === void 0 ? void 0 : parsedLayers.length) > 0 ? parsedLayers : [];
|
|
73261
|
+
let finalLayers = safeLayers;
|
|
73262
|
+
if (finalLayers.length === 0) {
|
|
73263
|
+
const uniqueLayers = new Set();
|
|
73264
|
+
meta.featureEach(normalizedGeoJSON, feature => {
|
|
73265
|
+
if (feature.properties && feature.properties.layer) {
|
|
73266
|
+
uniqueLayers.add(feature.properties.layer);
|
|
73267
|
+
}
|
|
73268
|
+
});
|
|
73269
|
+
finalLayers = Array.from(uniqueLayers);
|
|
73270
|
+
}
|
|
73271
|
+
const defaultLayerSet = new Set(['PLOT_BOUNDARY', 'BLK_1_LVL_0_BLDG_FOOT_PRINT']);
|
|
73272
|
+
if (restrictToDefaults) {
|
|
73273
|
+
const defaultsOnly = finalLayers.filter(layer => defaultLayerSet.has(layer));
|
|
73274
|
+
if (defaultsOnly.length > 0) {
|
|
73275
|
+
finalLayers = defaultsOnly;
|
|
73276
|
+
}
|
|
73277
|
+
}
|
|
73278
|
+
if (finalLayers.length === 0) {
|
|
73279
|
+
finalLayers = ['Imported'];
|
|
73280
|
+
}
|
|
73281
|
+
const [minLng, minLat, maxLng, maxLat] = bbox(normalizedGeoJSON);
|
|
73282
|
+
const computedCenter = [(minLng + maxLng) / 2, (minLat + maxLat) / 2];
|
|
73283
|
+
const centerCoords = centerOverride || computedCenter;
|
|
73284
|
+
meta.coordEach(normalizedGeoJSON, coord => {
|
|
73285
|
+
coord[0] -= centerCoords[0];
|
|
73286
|
+
coord[1] -= centerCoords[1];
|
|
73287
|
+
});
|
|
73288
|
+
setTransform({
|
|
73289
|
+
center: centerCoords,
|
|
73290
|
+
rotation: 0,
|
|
73291
|
+
scale: 1
|
|
73292
|
+
});
|
|
73293
|
+
setFlyToLocation(centerCoords);
|
|
73294
|
+
setMapCenter({
|
|
73295
|
+
lng: centerCoords[0],
|
|
73296
|
+
lat: centerCoords[1]
|
|
73297
|
+
});
|
|
73298
|
+
setBaseGeoJSON(normalizedGeoJSON);
|
|
73299
|
+
setLayers(finalLayers);
|
|
73300
|
+
const defaults = ['PLOT_BOUNDARY', 'BLK_1_LVL_0_BLDG_FOOT_PRINT'];
|
|
73301
|
+
const initialSelection = finalLayers.filter(layer => defaults.includes(layer));
|
|
73302
|
+
setSelectedLayers(initialSelection.length > 0 ? initialSelection : finalLayers);
|
|
73303
|
+
}, []);
|
|
73304
|
+
const loadGeoJSONData = useCallback((inputGeoJSON, options = {}) => {
|
|
73305
|
+
const parsedGeoJSON = normalizeGeoJSON(inputGeoJSON);
|
|
73306
|
+
const centerFeature = center(parsedGeoJSON);
|
|
73307
|
+
const centerCoords = getCoord(centerFeature);
|
|
73308
|
+
initializeMapData(parsedGeoJSON, [], {
|
|
73309
|
+
...options,
|
|
73310
|
+
centerOverride: centerCoords
|
|
73311
|
+
});
|
|
73312
|
+
}, [initializeMapData]);
|
|
73313
|
+
const loadDXFData = useCallback(fileContent => {
|
|
73314
|
+
const result = parseDXF(fileContent);
|
|
73315
|
+
initializeMapData(result.geoJSON, result.layers, {
|
|
73316
|
+
restrictToDefaults: true
|
|
73317
|
+
});
|
|
73318
|
+
if (storedCenter) {
|
|
73319
|
+
setTransform(prev => ({
|
|
73320
|
+
...prev,
|
|
73321
|
+
center: storedCenter
|
|
73322
|
+
}));
|
|
73323
|
+
setFlyToLocation(storedCenter);
|
|
73324
|
+
setMapCenter({
|
|
73325
|
+
lng: storedCenter[0],
|
|
73326
|
+
lat: storedCenter[1]
|
|
73327
|
+
});
|
|
73328
|
+
}
|
|
73329
|
+
}, [initializeMapData, storedCenter]);
|
|
73330
|
+
useEffect(() => {
|
|
73331
|
+
if (!initialGeoJSON) return;
|
|
73332
|
+
try {
|
|
73333
|
+
const parsed = safeParseGeoJSON(initialGeoJSON);
|
|
73334
|
+
if (!parsed || !parsed.features || parsed.features.length === 0) return;
|
|
73335
|
+
const center$1 = center(parsed);
|
|
73336
|
+
let centerCoords = getCoord(center$1);
|
|
73337
|
+
centerCoords = [Math.round(centerCoords[0] * 1e6) / 1e6, Math.round(centerCoords[1] * 1e6) / 1e6];
|
|
73338
|
+
const normalized = JSON.parse(JSON.stringify(parsed));
|
|
73339
|
+
meta.coordEach(normalized, coord => {
|
|
73340
|
+
coord[0] -= centerCoords[0];
|
|
73341
|
+
coord[1] -= centerCoords[1];
|
|
73342
|
+
});
|
|
73343
|
+
setBaseGeoJSON(normalized);
|
|
73344
|
+
setTransform({
|
|
73345
|
+
center: centerCoords,
|
|
73346
|
+
rotation: 0,
|
|
73347
|
+
scale: 1
|
|
73348
|
+
});
|
|
73349
|
+
setFlyToLocation(centerCoords);
|
|
73350
|
+
setMapCenter({
|
|
73351
|
+
lng: centerCoords[0],
|
|
73352
|
+
lat: centerCoords[1]
|
|
73353
|
+
});
|
|
73354
|
+
const uniqueLayers = new Set();
|
|
73355
|
+
meta.featureEach(parsed, feature => {
|
|
73356
|
+
var _feature$properties;
|
|
73357
|
+
if ((_feature$properties = feature.properties) !== null && _feature$properties !== void 0 && _feature$properties.layer) uniqueLayers.add(feature.properties.layer);
|
|
73358
|
+
});
|
|
73359
|
+
let parsedLayers = Array.from(uniqueLayers);
|
|
73360
|
+
if (parsedLayers.length === 0) parsedLayers = ['Imported'];
|
|
73361
|
+
const defaults = ['PLOT_BOUNDARY', 'BLK_1_LVL_0_BLDG_FOOT_PRINT'];
|
|
73362
|
+
const initialSelection = parsedLayers.filter(l => defaults.includes(l));
|
|
73363
|
+
setSelectedLayers(initialSelection.length > 0 ? initialSelection : parsedLayers);
|
|
73364
|
+
setLoadError("");
|
|
73365
|
+
setLoadMessage("Saved GeoJSON loaded");
|
|
73366
|
+
setSaveMessage("");
|
|
73367
|
+
} catch (error) {
|
|
73368
|
+
console.error(error);
|
|
73369
|
+
setLoadError("Failed to load saved GeoJSON");
|
|
73370
|
+
}
|
|
73371
|
+
}, [initialGeoJSON]);
|
|
73372
|
+
useEffect(() => {
|
|
73373
|
+
if (storedCenter) {
|
|
73374
|
+
console.log("Stored coordinates from redux (Longitude, Latitude):", storedCenter);
|
|
73375
|
+
}
|
|
73376
|
+
}, [storedCenter]);
|
|
73377
|
+
useEffect(() => {
|
|
73378
|
+
if (initialGeoJSON || typeof Digit === "undefined") return;
|
|
73379
|
+
if (!scrutinyFileStoreId && (!edcrNumber || !tenantId)) return;
|
|
73380
|
+
let isCancelled = false;
|
|
73381
|
+
const loadDXFFromScrutiny = async () => {
|
|
73382
|
+
setIsFetchingDXF(true);
|
|
73383
|
+
setLoadError("");
|
|
73384
|
+
setLoadMessage(scrutinyFileStoreId ? "Loading uploaded DXF file" : "Loading DXF from scrutiny details");
|
|
73385
|
+
try {
|
|
73386
|
+
let dxfFileStoreId = scrutinyFileStoreId;
|
|
73387
|
+
let scrutinyDxfUrl = "";
|
|
73388
|
+
console.log("Initial dxfFileStoreId:", dxfFileStoreId);
|
|
73389
|
+
if (edcrNumber && tenantId) {
|
|
73390
|
+
var _Digit5, _Digit5$OBPSService, _scrutinyResponse$edc;
|
|
73391
|
+
if (!((_Digit5 = Digit) !== null && _Digit5 !== void 0 && (_Digit5$OBPSService = _Digit5.OBPSService) !== null && _Digit5$OBPSService !== void 0 && _Digit5$OBPSService.scrutinyDetails)) {
|
|
73392
|
+
throw new Error("Scrutiny service unavailable");
|
|
73393
|
+
}
|
|
73394
|
+
const scrutinyResponse = await Digit.OBPSService.scrutinyDetails(tenantId, {
|
|
73395
|
+
edcrNumber
|
|
73396
|
+
});
|
|
73397
|
+
console.log("Scrutiny response:", scrutinyResponse);
|
|
73398
|
+
const edcrDetail = scrutinyResponse === null || scrutinyResponse === void 0 ? void 0 : (_scrutinyResponse$edc = scrutinyResponse.edcrDetail) === null || _scrutinyResponse$edc === void 0 ? void 0 : _scrutinyResponse$edc[0];
|
|
73399
|
+
scrutinyDxfUrl = extractFileValue(edcrDetail === null || edcrDetail === void 0 ? void 0 : edcrDetail.dxfFile) || extractFileValue(edcrDetail === null || edcrDetail === void 0 ? void 0 : edcrDetail.updatedDxfFile);
|
|
73400
|
+
dxfFileStoreId = dxfFileStoreId || (edcrDetail === null || edcrDetail === void 0 ? void 0 : edcrDetail.updatedDxfFile) || (edcrDetail === null || edcrDetail === void 0 ? void 0 : edcrDetail.dxfFile);
|
|
73401
|
+
console.log("Fetched dxfFileStoreId:", dxfFileStoreId);
|
|
73402
|
+
}
|
|
73403
|
+
if (!dxfFileStoreId) {
|
|
73404
|
+
throw new Error("No DXF file found in scrutiny details");
|
|
73405
|
+
}
|
|
73406
|
+
const fileUrl = toProxySafeUrl((isDirectFileUrl(scrutinyDxfUrl) ? scrutinyDxfUrl : null) || (await resolveFileUrl(scrutinyFileStoreId || dxfFileStoreId)));
|
|
73407
|
+
console.log("Resolved fileUrl:", fileUrl);
|
|
73408
|
+
if (!fileUrl) {
|
|
73409
|
+
setLoadError("Unable to resolve DXF file URL. Please upload the DXF file manually.");
|
|
73410
|
+
setLoadMessage("");
|
|
73411
|
+
setIsFetchingDXF(false);
|
|
73412
|
+
return;
|
|
73413
|
+
}
|
|
73414
|
+
const dxfResponse = await fetch(fileUrl);
|
|
73415
|
+
if (!dxfResponse.ok) {
|
|
73416
|
+
throw new Error("Failed to download DXF file");
|
|
73417
|
+
}
|
|
73418
|
+
const dxfContent = await dxfResponse.text();
|
|
73419
|
+
if (isCancelled) return;
|
|
73420
|
+
loadDXFData(dxfContent);
|
|
73421
|
+
setLoadMessage(scrutinyFileStoreId ? "Uploaded DXF loaded" : "DXF loaded from scrutiny details");
|
|
73422
|
+
} catch (error) {
|
|
73423
|
+
console.error(error);
|
|
73424
|
+
if (!isCancelled) {
|
|
73425
|
+
setLoadError((error === null || error === void 0 ? void 0 : error.message) || "Failed to load DXF from scrutiny details");
|
|
73426
|
+
setLoadMessage("");
|
|
73427
|
+
}
|
|
73428
|
+
} finally {
|
|
73429
|
+
if (!isCancelled) {
|
|
73430
|
+
setIsFetchingDXF(false);
|
|
73431
|
+
}
|
|
73432
|
+
}
|
|
73433
|
+
};
|
|
73434
|
+
loadDXFFromScrutiny();
|
|
73435
|
+
return () => {
|
|
73436
|
+
isCancelled = true;
|
|
73437
|
+
};
|
|
73438
|
+
}, [initialGeoJSON, scrutinyFileStoreId, edcrNumber, tenantId, loadDXFData, resolveFileUrl]);
|
|
73439
|
+
const displayedGeoJSON = useMemo(() => {
|
|
73440
|
+
if (!baseGeoJSON) return null;
|
|
73441
|
+
let filteredFeatures = baseGeoJSON.features.filter(f => {
|
|
73442
|
+
var _f$properties;
|
|
73443
|
+
const layer = (_f$properties = f.properties) === null || _f$properties === void 0 ? void 0 : _f$properties.layer;
|
|
73444
|
+
if (!layer) return true;
|
|
73445
|
+
return selectedLayers.includes(layer);
|
|
73446
|
+
});
|
|
73447
|
+
if (filteredFeatures.length === 0) {
|
|
73448
|
+
filteredFeatures = baseGeoJSON.features;
|
|
73449
|
+
}
|
|
73450
|
+
const filteredFC = JSON.parse(JSON.stringify(featureCollection(filteredFeatures)));
|
|
73451
|
+
if (filteredFeatures.length === 0) return filteredFC;
|
|
73452
|
+
let transformed = filteredFC;
|
|
73453
|
+
if (transform.scale !== 1) {
|
|
73454
|
+
transformed = transformScale(transformed, transform.scale, {
|
|
73455
|
+
origin: [0, 0]
|
|
73456
|
+
});
|
|
73457
|
+
}
|
|
73458
|
+
if (transform.rotation !== 0) {
|
|
73459
|
+
transformed = transformRotate(transformed, transform.rotation, {
|
|
73460
|
+
origin: [0, 0]
|
|
73461
|
+
});
|
|
73462
|
+
}
|
|
73463
|
+
const [targetLng, targetLat] = transform.center;
|
|
73464
|
+
if (targetLng !== 0 || targetLat !== 0) {
|
|
73465
|
+
meta.coordEach(transformed, coord => {
|
|
73466
|
+
coord[0] += targetLng;
|
|
73467
|
+
coord[1] += targetLat;
|
|
73468
|
+
});
|
|
73469
|
+
}
|
|
73470
|
+
return transformed;
|
|
73471
|
+
}, [baseGeoJSON, selectedLayers, transform]);
|
|
73472
|
+
useEffect(() => {
|
|
73473
|
+
if (typeof onGeoJSONUpdate === "function") {
|
|
73474
|
+
onGeoJSONUpdate(displayedGeoJSON || baseGeoJSON);
|
|
73475
|
+
}
|
|
73476
|
+
}, [displayedGeoJSON, baseGeoJSON, onGeoJSONUpdate]);
|
|
73477
|
+
const handleRecenter = () => {
|
|
73478
|
+
setTransform(prev => ({
|
|
73479
|
+
...prev,
|
|
73480
|
+
center: [mapCenter.lng, mapCenter.lat]
|
|
73481
|
+
}));
|
|
73482
|
+
};
|
|
73483
|
+
const handleJumpToLocation = () => {
|
|
73484
|
+
setFlyToLocation([...transform.center]);
|
|
73485
|
+
};
|
|
73486
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
73487
|
+
style: styles.shell
|
|
73488
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
73489
|
+
style: styles.sidebar
|
|
73490
|
+
}, /*#__PURE__*/React.createElement("h1", {
|
|
73491
|
+
style: styles.heading
|
|
73492
|
+
}, "DXF Geo Referencing"), isFetchingDXF ? /*#__PURE__*/React.createElement("div", {
|
|
73493
|
+
style: {
|
|
73494
|
+
fontSize: "12px",
|
|
73495
|
+
color: "#2563eb"
|
|
73496
|
+
}
|
|
73497
|
+
}, "Fetching DXF from scrutiny details...") : null, loadMessage ? /*#__PURE__*/React.createElement("div", {
|
|
73498
|
+
style: {
|
|
73499
|
+
fontSize: "12px",
|
|
73500
|
+
color: "#15803d"
|
|
73501
|
+
}
|
|
73502
|
+
}, loadMessage) : null, loadError ? /*#__PURE__*/React.createElement("div", {
|
|
73503
|
+
style: {
|
|
73504
|
+
fontSize: "12px",
|
|
73505
|
+
color: "#dc2626"
|
|
73506
|
+
}
|
|
73507
|
+
}, loadError) : null, /*#__PURE__*/React.createElement("div", {
|
|
73508
|
+
style: styles.section
|
|
73509
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
73510
|
+
style: styles.subheading
|
|
73511
|
+
}, "Transformations"), /*#__PURE__*/React.createElement("div", {
|
|
73512
|
+
style: styles.inputGrid
|
|
73513
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", {
|
|
73514
|
+
style: {
|
|
73515
|
+
display: "block",
|
|
73516
|
+
fontSize: "12px",
|
|
73517
|
+
fontWeight: 500,
|
|
73518
|
+
color: "#4b5563",
|
|
73519
|
+
marginBottom: "4px"
|
|
73520
|
+
}
|
|
73521
|
+
}, "Latitude"), /*#__PURE__*/React.createElement("input", {
|
|
73522
|
+
type: "number",
|
|
73523
|
+
step: "0.000001",
|
|
73524
|
+
value: transform.center[1],
|
|
73525
|
+
onChange: e => setTransform(prev => ({
|
|
73526
|
+
...prev,
|
|
73527
|
+
center: [prev.center[0], Number(e.target.value) || 0]
|
|
73528
|
+
})),
|
|
73529
|
+
style: styles.input
|
|
73530
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", {
|
|
73531
|
+
style: {
|
|
73532
|
+
display: "block",
|
|
73533
|
+
fontSize: "12px",
|
|
73534
|
+
fontWeight: 500,
|
|
73535
|
+
color: "#4b5563",
|
|
73536
|
+
marginBottom: "4px"
|
|
73537
|
+
}
|
|
73538
|
+
}, "Longitude"), /*#__PURE__*/React.createElement("input", {
|
|
73539
|
+
type: "number",
|
|
73540
|
+
step: "0.000001",
|
|
73541
|
+
value: transform.center[0],
|
|
73542
|
+
onChange: e => setTransform(prev => ({
|
|
73543
|
+
...prev,
|
|
73544
|
+
center: [Number(e.target.value) || 0, prev.center[1]]
|
|
73545
|
+
})),
|
|
73546
|
+
style: styles.input
|
|
73547
|
+
}))), /*#__PURE__*/React.createElement("button", {
|
|
73548
|
+
onClick: handleJumpToLocation,
|
|
73549
|
+
style: styles.button
|
|
73550
|
+
}, "Jump to Location"), /*#__PURE__*/React.createElement("button", {
|
|
73551
|
+
onClick: handleRecenter,
|
|
73552
|
+
style: styles.button
|
|
73553
|
+
}, /*#__PURE__*/React.createElement(Move, {
|
|
73554
|
+
size: 16,
|
|
73555
|
+
style: {
|
|
73556
|
+
marginRight: "8px"
|
|
73557
|
+
}
|
|
73558
|
+
}), " Move to Map Center"), /*#__PURE__*/React.createElement("div", {
|
|
73559
|
+
style: {
|
|
73560
|
+
marginBottom: "16px"
|
|
73561
|
+
}
|
|
73562
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
73563
|
+
style: {
|
|
73564
|
+
display: "flex",
|
|
73565
|
+
justifyContent: "space-between",
|
|
73566
|
+
alignItems: "center",
|
|
73567
|
+
marginBottom: "4px"
|
|
73568
|
+
}
|
|
73569
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
73570
|
+
style: {
|
|
73571
|
+
display: "flex",
|
|
73572
|
+
alignItems: "center",
|
|
73573
|
+
fontSize: "14px",
|
|
73574
|
+
fontWeight: 500,
|
|
73575
|
+
color: "#4b5563"
|
|
73576
|
+
}
|
|
73577
|
+
}, /*#__PURE__*/React.createElement(RotateCcw, {
|
|
73578
|
+
size: 16,
|
|
73579
|
+
style: {
|
|
73580
|
+
marginRight: "4px"
|
|
73581
|
+
}
|
|
73582
|
+
}), " Rotation"), /*#__PURE__*/React.createElement("input", {
|
|
73583
|
+
type: "number",
|
|
73584
|
+
step: "1",
|
|
73585
|
+
value: transform.rotation,
|
|
73586
|
+
onChange: e => setTransform(prev => ({
|
|
73587
|
+
...prev,
|
|
73588
|
+
rotation: Number(e.target.value) || 0
|
|
73589
|
+
})),
|
|
73590
|
+
style: {
|
|
73591
|
+
...styles.input,
|
|
73592
|
+
width: "80px",
|
|
73593
|
+
textAlign: "right"
|
|
73594
|
+
}
|
|
73595
|
+
})), /*#__PURE__*/React.createElement("input", {
|
|
73596
|
+
type: "range",
|
|
73597
|
+
min: "0",
|
|
73598
|
+
max: "360",
|
|
73599
|
+
value: transform.rotation,
|
|
73600
|
+
onChange: e => setTransform(prev => ({
|
|
73601
|
+
...prev,
|
|
73602
|
+
rotation: Number(e.target.value) || 0
|
|
73603
|
+
})),
|
|
73604
|
+
style: {
|
|
73605
|
+
width: "100%"
|
|
73606
|
+
}
|
|
73607
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
73608
|
+
style: styles.section
|
|
73609
|
+
}, saveMessage ? /*#__PURE__*/React.createElement("div", {
|
|
73610
|
+
style: {
|
|
73611
|
+
fontSize: "12px",
|
|
73612
|
+
color: "#15803d",
|
|
73613
|
+
marginTop: "8px"
|
|
73614
|
+
}
|
|
73615
|
+
}, saveMessage) : null), /*#__PURE__*/React.createElement("div", {
|
|
73616
|
+
style: styles.helperText
|
|
73617
|
+
}, /*#__PURE__*/React.createElement("p", null, "1. Drag the Center Marker to fine-tune."), /*#__PURE__*/React.createElement("p", null, "2. Scale and Rotate to fit."))), /*#__PURE__*/React.createElement("div", {
|
|
73618
|
+
style: styles.mapArea
|
|
73619
|
+
}, /*#__PURE__*/React.createElement(MapViewer, {
|
|
73620
|
+
geoJSON: displayedGeoJSON,
|
|
73621
|
+
center: transform.center,
|
|
73622
|
+
onCenterChange: newCenter => setTransform(prev => ({
|
|
73623
|
+
...prev,
|
|
73624
|
+
center: newCenter
|
|
73625
|
+
})),
|
|
73626
|
+
onMapMove: center => setMapCenter(center),
|
|
73627
|
+
flyToLocation: flyToLocation
|
|
73628
|
+
})));
|
|
73629
|
+
}
|
|
73630
|
+
|
|
73631
|
+
const LayoutStepGeoTag = ({
|
|
73632
|
+
config,
|
|
73633
|
+
onGoNext,
|
|
73634
|
+
onBackClick,
|
|
73635
|
+
t
|
|
73636
|
+
}) => {
|
|
73637
|
+
var _currentStepData$site, _currentStepData$site2, _currentStepData$site3, _currentStepData$site4, _currentStepData$scru, _currentStepData$site5, _currentStepData$site6, _currentStepData$geot, _currentStepData$apiD, _currentStepData$apiD2, _currentStepData$apiD3, _currentStepData$apiD4, _currentStepData$apiD5, _currentStepData$apiD6, _currentStepData$apiD7, _currentStepData$apiD8, _currentStepData$apiD9, _currentStepData$apiD0;
|
|
73638
|
+
const {
|
|
73639
|
+
t: translate
|
|
73640
|
+
} = useTranslation();
|
|
73641
|
+
const dispatch = useDispatch();
|
|
73642
|
+
const [showToast, setShowToast] = React.useState(false);
|
|
73643
|
+
const currentStepData = useSelector(state => {
|
|
73644
|
+
var _state$obps, _state$obps$LayoutNew;
|
|
73645
|
+
return (state === null || state === void 0 ? void 0 : (_state$obps = state.obps) === null || _state$obps === void 0 ? void 0 : (_state$obps$LayoutNew = _state$obps.LayoutNewApplicationFormReducer) === null || _state$obps$LayoutNew === void 0 ? void 0 : _state$obps$LayoutNew.formData) || {};
|
|
73646
|
+
});
|
|
73647
|
+
const tenantId = window.location.href.includes("citizen") ? (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site = currentStepData.siteDetails) === null || _currentStepData$site === void 0 ? void 0 : (_currentStepData$site2 = _currentStepData$site.regionOffice) === null || _currentStepData$site2 === void 0 ? void 0 : _currentStepData$site2.code) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site3 = currentStepData.siteDetails) === null || _currentStepData$site3 === void 0 ? void 0 : (_currentStepData$site4 = _currentStepData$site3.regionOffice) === null || _currentStepData$site4 === void 0 ? void 0 : _currentStepData$site4.tenantId) || window.localStorage.getItem("CITIZEN.CITY") : Digit.ULBService.getCurrentTenantId();
|
|
73648
|
+
const edcrNumber = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$scru = currentStepData.scrutinyDetails) === null || _currentStepData$scru === void 0 ? void 0 : _currentStepData$scru.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site5 = currentStepData.siteDetails) === null || _currentStepData$site5 === void 0 ? void 0 : _currentStepData$site5.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$site6 = currentStepData.siteDetails) === null || _currentStepData$site6 === void 0 ? void 0 : _currentStepData$site6.scrutinyNumber) || "";
|
|
73649
|
+
console.log(currentStepData, "currentStepData123");
|
|
73650
|
+
const scrutinyFileStoreId = (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.scrutinyFileStoreId) || "";
|
|
73651
|
+
const savedGeoJSON = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$geot = currentStepData.geotag) === null || _currentStepData$geot === void 0 ? void 0 : _currentStepData$geot.geojson) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$apiD = currentStepData.apiData) === null || _currentStepData$apiD === void 0 ? void 0 : (_currentStepData$apiD2 = _currentStepData$apiD.Layout) === null || _currentStepData$apiD2 === void 0 ? void 0 : _currentStepData$apiD2.geojson) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$apiD3 = currentStepData.apiData) === null || _currentStepData$apiD3 === void 0 ? void 0 : (_currentStepData$apiD4 = _currentStepData$apiD3.Layout) === null || _currentStepData$apiD4 === void 0 ? void 0 : (_currentStepData$apiD5 = _currentStepData$apiD4[0]) === null || _currentStepData$apiD5 === void 0 ? void 0 : (_currentStepData$apiD6 = _currentStepData$apiD5.layoutDetails) === null || _currentStepData$apiD6 === void 0 ? void 0 : (_currentStepData$apiD7 = _currentStepData$apiD6.additionalDetails) === null || _currentStepData$apiD7 === void 0 ? void 0 : _currentStepData$apiD7.geojson) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$apiD8 = currentStepData.apiData) === null || _currentStepData$apiD8 === void 0 ? void 0 : (_currentStepData$apiD9 = _currentStepData$apiD8.layoutDetails) === null || _currentStepData$apiD9 === void 0 ? void 0 : (_currentStepData$apiD0 = _currentStepData$apiD9.additionalDetails) === null || _currentStepData$apiD0 === void 0 ? void 0 : _currentStepData$apiD0.geojson) || null;
|
|
73652
|
+
const [localGeoJSON, setLocalGeoJSON] = React.useState(savedGeoJSON);
|
|
73653
|
+
const handleGeoJSONSave = geojson => {
|
|
73654
|
+
var _apiData$Layout;
|
|
73655
|
+
dispatch(UPDATE_LayoutNewApplication_FORM(config.key, {
|
|
73656
|
+
...((currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData[config.key]) || {}),
|
|
73657
|
+
geojson
|
|
73658
|
+
}));
|
|
73659
|
+
dispatch(UPDATE_LayoutNewApplication_FORM("geojson", geojson));
|
|
73660
|
+
const apiData = currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.apiData;
|
|
73661
|
+
if (apiData !== null && apiData !== void 0 && apiData.Layout || apiData !== null && apiData !== void 0 && (_apiData$Layout = apiData.Layout) !== null && _apiData$Layout !== void 0 && _apiData$Layout[0]) {
|
|
73662
|
+
const layoutObj = Array.isArray(apiData.Layout) ? {
|
|
73663
|
+
...apiData.Layout[0]
|
|
73664
|
+
} : {
|
|
73665
|
+
...apiData.Layout
|
|
73666
|
+
};
|
|
73667
|
+
const layoutDetails = {
|
|
73668
|
+
...(layoutObj.layoutDetails || {})
|
|
73669
|
+
};
|
|
73670
|
+
const additionalDetails = {
|
|
73671
|
+
...(layoutDetails.additionalDetails || {}),
|
|
73672
|
+
geojson
|
|
73673
|
+
};
|
|
73674
|
+
layoutDetails.additionalDetails = additionalDetails;
|
|
73675
|
+
layoutObj.layoutDetails = layoutDetails;
|
|
73676
|
+
const updatedApiData = {
|
|
73677
|
+
...apiData,
|
|
73678
|
+
Layout: Array.isArray(apiData.Layout) ? [layoutObj] : layoutObj
|
|
73679
|
+
};
|
|
73680
|
+
dispatch(UPDATE_LayoutNewApplication_FORM("apiData", updatedApiData));
|
|
73681
|
+
}
|
|
73682
|
+
};
|
|
73683
|
+
const goNext = () => {
|
|
73684
|
+
if (!localGeoJSON || localGeoJSON.features && localGeoJSON.features.length === 0) {
|
|
73685
|
+
setShowToast({
|
|
73686
|
+
label: t("BPA_PIN_LOCATION_ON_MAP_ERROR") || "Please pin the location on map and ensure data is loaded."
|
|
73687
|
+
});
|
|
73688
|
+
return;
|
|
73689
|
+
}
|
|
73690
|
+
handleGeoJSONSave(localGeoJSON);
|
|
73691
|
+
onGoNext();
|
|
73692
|
+
};
|
|
73693
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_GEO_TAG_DETAILS")), /*#__PURE__*/React.createElement(CardText$1, null, t("BPA_GEO_TAG_DESCRIPTION_PLACEHOLDER")), /*#__PURE__*/React.createElement(GeoReferencer, {
|
|
73694
|
+
initialGeoJSON: savedGeoJSON,
|
|
73695
|
+
onGeoJSONUpdate: geojson => setLocalGeoJSON(geojson),
|
|
73696
|
+
edcrNumber: edcrNumber,
|
|
73697
|
+
tenantId: tenantId,
|
|
73698
|
+
scrutinyFileStoreId: scrutinyFileStoreId
|
|
73699
|
+
})), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
73700
|
+
label: t("BACK"),
|
|
73701
|
+
onSubmit: () => onBackClick(config.key)
|
|
73702
|
+
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
73703
|
+
label: t("NEXT"),
|
|
73704
|
+
onSubmit: goNext
|
|
73705
|
+
})), showToast ? /*#__PURE__*/React.createElement(Toast$1, {
|
|
73706
|
+
label: showToast.label,
|
|
73707
|
+
error: true,
|
|
73708
|
+
isDleteBtn: "true",
|
|
73709
|
+
onClose: () => setShowToast(false)
|
|
73710
|
+
}) : null);
|
|
73711
|
+
};
|
|
73712
|
+
|
|
72423
73713
|
const LayoutProfessionalDetails = _props => {
|
|
72424
73714
|
var _userInfo$info, _userInfo$info2, _userInfo$info2$roles, _userInfo$info3, _userInfo$info4, _userInfo$info5;
|
|
72425
73715
|
const {
|
|
@@ -73412,6 +74702,7 @@ const LayoutSiteDetails = _props => {
|
|
|
73412
74702
|
i18nKey: item.i18nKey || item.name || item.code
|
|
73413
74703
|
}))) || [];
|
|
73414
74704
|
}, [layoutMdmsData]);
|
|
74705
|
+
console.log(locationTypeOptions, "locationTypeOptions");
|
|
73415
74706
|
const boundaryOptions = useMemo(() => {
|
|
73416
74707
|
var _layoutMdmsData$LAYOU11, _layoutMdmsData$LAYOU12;
|
|
73417
74708
|
return (layoutMdmsData === null || layoutMdmsData === void 0 ? void 0 : (_layoutMdmsData$LAYOU11 = layoutMdmsData.LAYOUT) === null || _layoutMdmsData$LAYOU11 === void 0 ? void 0 : (_layoutMdmsData$LAYOU12 = _layoutMdmsData$LAYOU11.Boundaries) === null || _layoutMdmsData$LAYOU12 === void 0 ? void 0 : _layoutMdmsData$LAYOU12.filter(item => item.active).map(item => ({
|
|
@@ -76926,7 +78217,7 @@ const SummaryDetails = ({
|
|
|
76926
78217
|
currentStepData,
|
|
76927
78218
|
onGoBack
|
|
76928
78219
|
}) => {
|
|
76929
|
-
var _user$info, _currentStepData$Time, _currentStepData$crea12, _currentStepData$crea35, _currentStepData$crea38, _currentStepData$Time6, _currentStepData$crea39, _currentStepData$crea40, _currentStepData$crea41, _currentStepData$crea42, _pdfDetails$pdfFiles, _currentStepData$crea43, _currentStepData$crea44, _user$info6, _user$info6$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$
|
|
78220
|
+
var _user$info, _currentStepData$Time, _currentStepData$crea12, _currentStepData$crea35, _currentStepData$crea38, _currentStepData$Time6, _currentStepData$crea39, _currentStepData$crea40, _currentStepData$crea41, _currentStepData$crea42, _pdfDetails$pdfFiles, _currentStepData$crea43, _currentStepData$crea44, _user$info6, _user$info6$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$crea60, _currentStepData$crea63, _currentStepData$crea64, _currentStepData$crea65, _currentStepData$crea66, _currentStepData$crea67, _currentStepData$crea68, _currentStepData$crea69, _currentStepData$crea70, _currentStepData$crea71, _currentStepData$crea72, _currentStepData$crea73, _currentStepData$crea74, _currentStepData$crea75, _currentStepData$crea76, _currentStepData$crea77, _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$crea82, _currentStepData$crea83, _currentStepData$crea84, _currentStepData$crea85, _currentStepData$crea86, _currentStepData$crea87, _currentStepData$crea88, _currentStepData$crea89, _currentStepData$Basi14, _currentStepData$Basi15, _currentStepData$Basi16, _currentStepData$Basi17, _currentStepData$Basi18, _currentStepData$Basi19, _currentStepData$Basi20, _currentStepData$Basi21, _currentStepData$crea90, _currentStepData$crea91, _currentStepData$crea92, _currentStepData$crea93, _currentStepData$Basi22, _currentStepData$Basi23, _currentStepData$Basi24, _currentStepData$Basi25, _currentStepData$crea94, _currentStepData$crea95, _currentStepData$crea96, _currentStepData$crea97, _currentStepData$crea98, _currentStepData$crea99, _currentStepData$crea100, _currentStepData$crea101, _currentStepData$crea102, _currentStepData$crea103, _currentStepData$crea104, _currentStepData$crea105, _currentStepData$crea106, _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, _currentStepData$crea127, _currentStepData$crea128, _currentStepData$crea129, _currentStepData$crea130, _currentStepData$crea131, _currentStepData$crea132, _currentStepData$crea133, _currentStepData$crea134, _currentStepData$crea135, _currentStepData$crea136, _currentStepData$crea137, _currentStepData$crea138, _currentStepData$crea139, _currentStepData$crea140, _currentStepData$crea141, _currentStepData$crea142, _currentStepData$crea143, _currentStepData$Basi26, _currentStepData$Basi27, _currentStepData$Basi28, _currentStepData$Basi29, _currentStepData$Basi30, _currentStepData$Basi31, _currentStepData$Basi34, _currentStepData$Basi35, _currentStepData$crea144, _currentStepData$crea145, _currentStepData$crea146, _currentStepData$crea147, _currentStepData$crea148, _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$Basi96, _currentStepData$Basi97, _currentStepData$crea151, _currentStepData$crea152, _currentStepData$crea153, _currentStepData$crea154, _currentStepData$crea155, _currentStepData$crea156, _currentStepData$crea157, _currentStepData$crea158, _currentStepData$crea159, _currentStepData$crea160, _currentStepData$crea161, _currentStepData$crea162, _currentStepData$crea163, _currentStepData$crea164, _currentStepData$crea165, _currentStepData$crea166, _currentStepData$crea167, _currentStepData$crea168, _currentStepData$crea169, _currentStepData$crea170, _currentStepData$crea171, _currentStepData$crea172, _currentStepData$crea173, _currentStepData$crea174, _currentStepData$crea175, _currentStepData$crea176, _currentStepData$crea177, _currentStepData$crea178, _currentStepData$crea179, _currentStepData$crea180, _currentStepData$crea181, _currentStepData$crea182, _currentStepData$crea183, _currentStepData$crea184, _currentStepData$crea185, _currentStepData$crea186, _currentStepData$Basi98, _currentStepData$Basi99, _currentStepData$Basi100, _currentStepData$crea187, _currentStepData$crea188, _currentStepData$crea189, _currentStepData$crea190, _currentStepData$crea191, _currentStepData$crea192, _currentStepData$crea193, _currentStepData$crea194, _currentStepData$crea195, _currentStepData$crea196, _currentStepData$crea197, _currentStepData$crea198, _currentStepData$crea199, _currentStepData$crea200, _currentStepData$crea201, _currentStepData$crea202, _currentStepData$crea203, _currentStepData$crea204, _currentStepData$crea205, _currentStepData$crea206, _currentStepData$crea207, _currentStepData$crea208, _currentStepData$crea209, _currentStepData$crea210, _currentStepData$crea211, _currentStepData$crea212, _currentStepData$crea213, _currentStepData$crea214, _currentStepData$crea215, _currentStepData$crea216, _currentStepData$crea217, _currentStepData$crea218, _currentStepData$crea219, _currentStepData$crea220, _currentStepData$crea221, _currentStepData$crea222, _currentStepData$crea223, _currentStepData$crea224, _currentStepData$crea225, _currentStepData$crea226, _currentStepData$crea227, _currentStepData$crea228, _currentStepData$crea229, _currentStepData$crea230, _currentStepData$crea231, _currentStepData$crea232, _currentStepData$crea233, _currentStepData$crea234, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
|
|
76930
78221
|
const {
|
|
76931
78222
|
t
|
|
76932
78223
|
} = useTranslation();
|
|
@@ -77360,7 +78651,7 @@ const SummaryDetails = ({
|
|
|
77360
78651
|
const workflowAction = action;
|
|
77361
78652
|
const applicationType = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi = currentStepData.BasicDetails) === null || _currentStepData$Basi === void 0 ? void 0 : (_currentStepData$Basi2 = _currentStepData$Basi.edcrDetails) === null || _currentStepData$Basi2 === void 0 ? void 0 : _currentStepData$Basi2.appliactionType;
|
|
77362
78653
|
try {
|
|
77363
|
-
var _currentStepData$crea45, _currentStepData$crea46, _result$ResponseInfo;
|
|
78654
|
+
var _currentStepData$crea45, _currentStepData$crea46, _currentStepData$crea47, _currentStepData$crea48, _currentStepData$crea49, _result$ResponseInfo;
|
|
77364
78655
|
setApiLoading(true);
|
|
77365
78656
|
const docMap = {};
|
|
77366
78657
|
((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea45 = currentStepData.createdResponse) === null || _currentStepData$crea45 === void 0 ? void 0 : _currentStepData$crea45.documents) || []).forEach(doc => {
|
|
@@ -77369,12 +78660,27 @@ const SummaryDetails = ({
|
|
|
77369
78660
|
}
|
|
77370
78661
|
});
|
|
77371
78662
|
const deduplicatedDocs = Object.values(docMap);
|
|
78663
|
+
const updatedCalculations = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea46 = currentStepData.createdResponse) === null || _currentStepData$crea46 === void 0 ? void 0 : (_currentStepData$crea47 = _currentStepData$crea46.additionalDetails) === null || _currentStepData$crea47 === void 0 ? void 0 : (_currentStepData$crea48 = _currentStepData$crea47.calculations) === null || _currentStepData$crea48 === void 0 ? void 0 : _currentStepData$crea48.map(calc => {
|
|
78664
|
+
var _calc$taxHeadEstimate;
|
|
78665
|
+
return {
|
|
78666
|
+
...calc,
|
|
78667
|
+
taxHeadEstimates: ((_calc$taxHeadEstimate = calc.taxHeadEstimates) === null || _calc$taxHeadEstimate === void 0 ? void 0 : _calc$taxHeadEstimate.map((taxHead, index) => {
|
|
78668
|
+
const adjustedData = adjustedAmounts[index];
|
|
78669
|
+
return {
|
|
78670
|
+
...taxHead,
|
|
78671
|
+
estimateAmount: (adjustedData === null || adjustedData === void 0 ? void 0 : adjustedData.amount) || taxHead.estimateAmount,
|
|
78672
|
+
remarks: (adjustedData === null || adjustedData === void 0 ? void 0 : adjustedData.remark) || taxHead.remarks
|
|
78673
|
+
};
|
|
78674
|
+
})) || []
|
|
78675
|
+
};
|
|
78676
|
+
})) || [];
|
|
77372
78677
|
const result = await Digit.OBPSService.update({
|
|
77373
78678
|
BPA: {
|
|
77374
78679
|
...(currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.createdResponse),
|
|
77375
78680
|
applicationType,
|
|
77376
78681
|
additionalDetails: {
|
|
77377
|
-
...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78682
|
+
...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea49 = currentStepData.createdResponse) === null || _currentStepData$crea49 === void 0 ? void 0 : _currentStepData$crea49.additionalDetails),
|
|
78683
|
+
calculations: updatedCalculations,
|
|
77378
78684
|
selfCertificationCharges: {
|
|
77379
78685
|
BPA_MALBA_CHARGES: (malbafees === null || malbafees === void 0 ? void 0 : malbafees.length) > 0 ? malbafees : "0",
|
|
77380
78686
|
BPA_LABOUR_CESS: (labourCess === null || labourCess === void 0 ? void 0 : labourCess.length) > 0 ? labourCess : "0",
|
|
@@ -77393,9 +78699,9 @@ const SummaryDetails = ({
|
|
|
77393
78699
|
}
|
|
77394
78700
|
}, tenantId);
|
|
77395
78701
|
if ((result === null || result === void 0 ? void 0 : (_result$ResponseInfo = result.ResponseInfo) === null || _result$ResponseInfo === void 0 ? void 0 : _result$ResponseInfo.status) === "successful") {
|
|
77396
|
-
var _currentStepData$
|
|
78702
|
+
var _currentStepData$crea50;
|
|
77397
78703
|
setApiLoading(false);
|
|
77398
|
-
history.push(`/digit-ui/citizen/obps/self-certification/response/${encodeURIComponent(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78704
|
+
history.push(`/digit-ui/citizen/obps/self-certification/response/${encodeURIComponent(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea50 = currentStepData.createdResponse) === null || _currentStepData$crea50 === void 0 ? void 0 : _currentStepData$crea50.applicationNo)}`, {
|
|
77399
78705
|
workflowAction
|
|
77400
78706
|
});
|
|
77401
78707
|
} else {
|
|
@@ -77415,13 +78721,13 @@ const SummaryDetails = ({
|
|
|
77415
78721
|
}
|
|
77416
78722
|
useEffect(() => {
|
|
77417
78723
|
const fetchFileUrls = async () => {
|
|
77418
|
-
var _currentStepData$
|
|
77419
|
-
if (!(currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
78724
|
+
var _currentStepData$crea51;
|
|
78725
|
+
if (!(currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea51 = currentStepData.createdResponse) !== null && _currentStepData$crea51 !== void 0 && _currentStepData$crea51.additionalDetails)) return;
|
|
77420
78726
|
const fileKeys = ["ecbcCertificateFile", "greenuploadedFile", "uploadedFile", "lessAdjustmentFeeFiles"];
|
|
77421
78727
|
const validFileStoreIds = fileKeys.map(key => {
|
|
77422
|
-
var _currentStepData$
|
|
77423
|
-
if (key === "lessAdjustmentFeeFiles") return (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
77424
|
-
return currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78728
|
+
var _currentStepData$crea52, _currentStepData$crea53, _currentStepData$crea54, _currentStepData$crea55, _currentStepData$crea56, _currentStepData$crea57;
|
|
78729
|
+
if (key === "lessAdjustmentFeeFiles") return (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea52 = currentStepData.createdResponse) === null || _currentStepData$crea52 === void 0 ? void 0 : (_currentStepData$crea53 = _currentStepData$crea52.additionalDetails) === null || _currentStepData$crea53 === void 0 ? void 0 : (_currentStepData$crea54 = _currentStepData$crea53[key]) === null || _currentStepData$crea54 === void 0 ? void 0 : (_currentStepData$crea55 = _currentStepData$crea54[0]) === null || _currentStepData$crea55 === void 0 ? void 0 : _currentStepData$crea55.fileStoreId) || null;
|
|
78730
|
+
return currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea56 = currentStepData.createdResponse) === null || _currentStepData$crea56 === void 0 ? void 0 : (_currentStepData$crea57 = _currentStepData$crea56.additionalDetails) === null || _currentStepData$crea57 === void 0 ? void 0 : _currentStepData$crea57[key];
|
|
77425
78731
|
}).filter(id => id && id !== "NA" && id !== "" && id !== null && id !== undefined);
|
|
77426
78732
|
if (validFileStoreIds.length === 0) return;
|
|
77427
78733
|
try {
|
|
@@ -77431,8 +78737,8 @@ const SummaryDetails = ({
|
|
|
77431
78737
|
if (result !== null && result !== void 0 && (_result$data = result.data) !== null && _result$data !== void 0 && _result$data.fileStoreIds) {
|
|
77432
78738
|
const urls = {};
|
|
77433
78739
|
fileKeys.forEach(key => {
|
|
77434
|
-
var _currentStepData$
|
|
77435
|
-
const fileId = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78740
|
+
var _currentStepData$crea58, _currentStepData$crea59, _result$data2;
|
|
78741
|
+
const fileId = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea58 = currentStepData.createdResponse) === null || _currentStepData$crea58 === void 0 ? void 0 : (_currentStepData$crea59 = _currentStepData$crea58.additionalDetails) === null || _currentStepData$crea59 === void 0 ? void 0 : _currentStepData$crea59[key];
|
|
77436
78742
|
if (fileId && (_result$data2 = result.data) !== null && _result$data2 !== void 0 && _result$data2[fileId]) {
|
|
77437
78743
|
var _result$data3;
|
|
77438
78744
|
urls[key] = (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : _result$data3[fileId];
|
|
@@ -77447,11 +78753,11 @@ const SummaryDetails = ({
|
|
|
77447
78753
|
}
|
|
77448
78754
|
};
|
|
77449
78755
|
fetchFileUrls();
|
|
77450
|
-
}, [currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78756
|
+
}, [currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea60 = currentStepData.createdResponse) === null || _currentStepData$crea60 === void 0 ? void 0 : _currentStepData$crea60.additionalDetails]);
|
|
77451
78757
|
useEffect(() => {
|
|
77452
78758
|
const fetchOwnerFileUrls = async () => {
|
|
77453
|
-
var _currentStepData$
|
|
77454
|
-
const owners = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78759
|
+
var _currentStepData$crea61, _currentStepData$crea62;
|
|
78760
|
+
const owners = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea61 = currentStepData.createdResponse) === null || _currentStepData$crea61 === void 0 ? void 0 : (_currentStepData$crea62 = _currentStepData$crea61.landInfo) === null || _currentStepData$crea62 === void 0 ? void 0 : _currentStepData$crea62.owners) || [];
|
|
77455
78761
|
if (owners.length === 0) return;
|
|
77456
78762
|
const fileIdsMap = [];
|
|
77457
78763
|
const validFileStoreIds = [];
|
|
@@ -77501,14 +78807,14 @@ const SummaryDetails = ({
|
|
|
77501
78807
|
}
|
|
77502
78808
|
};
|
|
77503
78809
|
fetchOwnerFileUrls();
|
|
77504
|
-
}, [currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78810
|
+
}, [currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea63 = currentStepData.createdResponse) === null || _currentStepData$crea63 === void 0 ? void 0 : (_currentStepData$crea64 = _currentStepData$crea63.landInfo) === null || _currentStepData$crea64 === void 0 ? void 0 : _currentStepData$crea64.owners]);
|
|
77505
78811
|
useEffect(() => {
|
|
77506
78812
|
console.log("ECBCDocs", fileUrls);
|
|
77507
78813
|
}, [fileUrls]);
|
|
77508
78814
|
const closeToast = () => {
|
|
77509
78815
|
setShowToast(null);
|
|
77510
78816
|
};
|
|
77511
|
-
const [y1, m1, d1] = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78817
|
+
const [y1, m1, d1] = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea65 = currentStepData.createdResponse) === null || _currentStepData$crea65 === void 0 ? void 0 : (_currentStepData$crea66 = _currentStepData$crea65.additionalDetails) === null || _currentStepData$crea66 === void 0 ? void 0 : (_currentStepData$crea67 = _currentStepData$crea66.nocObject) === null || _currentStepData$crea67 === void 0 ? void 0 : (_currentStepData$crea68 = _currentStepData$crea67.approvedOn) === null || _currentStepData$crea68 === void 0 ? void 0 : _currentStepData$crea68.split("-")) || [];
|
|
77512
78818
|
const nocApprovedDate = `${d1}/${m1}/${y1}`;
|
|
77513
78819
|
if (apiLoading || isFileLoading) return /*#__PURE__*/React.createElement(Loader$4, null);
|
|
77514
78820
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, t("BPA_STEPPER_SUMMARY_HEADER")), /*#__PURE__*/React.createElement("div", {
|
|
@@ -77521,16 +78827,16 @@ const SummaryDetails = ({
|
|
|
77521
78827
|
className: "row border-none"
|
|
77522
78828
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_APPLICATION_NUMBER_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77523
78829
|
className: "value"
|
|
77524
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78830
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea69 = currentStepData.createdResponse) === null || _currentStepData$crea69 === void 0 ? void 0 : _currentStepData$crea69.applicationNo) || t("CS_NA"))))), /*#__PURE__*/React.createElement("div", {
|
|
77525
78831
|
className: "bpa-stepper-form-section"
|
|
77526
78832
|
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
77527
78833
|
className: "bpa-section-header"
|
|
77528
|
-
}, t("BPA_APPLICANT_DETAILS_HEADER")), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
77529
|
-
var _currentStepData$
|
|
78834
|
+
}, t("BPA_APPLICANT_DETAILS_HEADER")), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea70 = currentStepData.createdResponse) === null || _currentStepData$crea70 === void 0 ? void 0 : (_currentStepData$crea71 = _currentStepData$crea70.landInfo) === null || _currentStepData$crea71 === void 0 ? void 0 : _currentStepData$crea71.owners) && (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea72 = currentStepData.createdResponse) === null || _currentStepData$crea72 === void 0 ? void 0 : (_currentStepData$crea73 = _currentStepData$crea72.landInfo) === null || _currentStepData$crea73 === void 0 ? void 0 : (_currentStepData$crea74 = _currentStepData$crea73.owners) === null || _currentStepData$crea74 === void 0 ? void 0 : _currentStepData$crea74.length) > 0 && (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea75 = currentStepData.createdResponse) === null || _currentStepData$crea75 === void 0 ? void 0 : (_currentStepData$crea76 = _currentStepData$crea75.landInfo) === null || _currentStepData$crea76 === void 0 ? void 0 : (_currentStepData$crea77 = _currentStepData$crea76.owners) === null || _currentStepData$crea77 === void 0 ? void 0 : _currentStepData$crea77.map((ob, index) => {
|
|
78835
|
+
var _currentStepData$crea78, _currentStepData$crea79, _currentStepData$crea80, _currentStepData$crea81, _ob$gender;
|
|
77530
78836
|
return /*#__PURE__*/React.createElement("div", {
|
|
77531
|
-
className: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78837
|
+
className: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea78 = currentStepData.createdResponse) === null || _currentStepData$crea78 === void 0 ? void 0 : (_currentStepData$crea79 = _currentStepData$crea78.landInfo) === null || _currentStepData$crea79 === void 0 ? void 0 : _currentStepData$crea79.owners.length) > 1 ? "bpa-block-section" : "",
|
|
77532
78838
|
key: index
|
|
77533
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78839
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea80 = currentStepData.createdResponse) === null || _currentStepData$crea80 === void 0 ? void 0 : (_currentStepData$crea81 = _currentStepData$crea80.landInfo) === null || _currentStepData$crea81 === void 0 ? void 0 : _currentStepData$crea81.owners.length) > 1 && /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
77534
78840
|
className: "bpa-block-header"
|
|
77535
78841
|
}, t("COMMON_OWNER"), " ", index + 1), /*#__PURE__*/React.createElement("div", {
|
|
77536
78842
|
className: "data-table"
|
|
@@ -77618,15 +78924,15 @@ const SummaryDetails = ({
|
|
|
77618
78924
|
className: "row border-none"
|
|
77619
78925
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_IS_PROPERTY_AVAILABLE_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77620
78926
|
className: "value"
|
|
77621
|
-
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
78927
|
+
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea82 = currentStepData.createdResponse) !== null && _currentStepData$crea82 !== void 0 && (_currentStepData$crea83 = _currentStepData$crea82.additionalDetails) !== null && _currentStepData$crea83 !== void 0 && _currentStepData$crea83.isPropertyAvailable ? t("CORE_YES") : t("SCORE_NO"))), /*#__PURE__*/React.createElement("div", {
|
|
77622
78928
|
className: "row border-none"
|
|
77623
78929
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_IS_CLUBBED_PLOT_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77624
78930
|
className: "value"
|
|
77625
|
-
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
78931
|
+
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea84 = currentStepData.createdResponse) !== null && _currentStepData$crea84 !== void 0 && (_currentStepData$crea85 = _currentStepData$crea84.additionalDetails) !== null && _currentStepData$crea85 !== void 0 && _currentStepData$crea85.isClubbedPlot ? t("CORE_YES") : t("SCORE_NO"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea86 = currentStepData.createdResponse) === null || _currentStepData$crea86 === void 0 ? void 0 : (_currentStepData$crea87 = _currentStepData$crea86.additionalDetails) === null || _currentStepData$crea87 === void 0 ? void 0 : _currentStepData$crea87.isSelfCertification) != null && /*#__PURE__*/React.createElement("div", {
|
|
77626
78932
|
className: "row border-none"
|
|
77627
78933
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_IS_SELF_CERTIFICATION_REQUIRED`)), /*#__PURE__*/React.createElement("div", {
|
|
77628
78934
|
className: "value"
|
|
77629
|
-
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
78935
|
+
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea88 = currentStepData.createdResponse) !== null && _currentStepData$crea88 !== void 0 && (_currentStepData$crea89 = _currentStepData$crea88.additionalDetails) !== null && _currentStepData$crea89 !== void 0 && _currentStepData$crea89.isSelfCertification ? t("CORE_YES") : t("SCORE_NO"))), /*#__PURE__*/React.createElement("div", {
|
|
77630
78936
|
className: "row border-none"
|
|
77631
78937
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_PLOT_NUMBER_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77632
78938
|
className: "value"
|
|
@@ -77638,71 +78944,71 @@ const SummaryDetails = ({
|
|
|
77638
78944
|
className: "row border-none"
|
|
77639
78945
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_BOUNDARY_LAND_REG_DETAIL_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77640
78946
|
className: "value"
|
|
77641
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78947
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea90 = currentStepData.createdResponse) === null || _currentStepData$crea90 === void 0 ? void 0 : (_currentStepData$crea91 = _currentStepData$crea90.additionalDetails) === null || _currentStepData$crea91 === void 0 ? void 0 : _currentStepData$crea91.registrationDetails) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77642
78948
|
className: "row border-none"
|
|
77643
78949
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_BOUNDARY_WALL_LENGTH_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77644
78950
|
className: "value"
|
|
77645
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78951
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea92 = currentStepData.createdResponse) === null || _currentStepData$crea92 === void 0 ? void 0 : (_currentStepData$crea93 = _currentStepData$crea92.additionalDetails) === null || _currentStepData$crea93 === void 0 ? void 0 : _currentStepData$crea93.boundaryWallLength) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77646
78952
|
className: "row border-none"
|
|
77647
78953
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_KHASRA_NUMBER_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77648
78954
|
className: "value"
|
|
77649
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi22 = currentStepData.BasicDetails) === null || _currentStepData$Basi22 === void 0 ? void 0 : (_currentStepData$Basi23 = _currentStepData$Basi22.edcrDetails) === null || _currentStepData$Basi23 === void 0 ? void 0 : (_currentStepData$Basi24 = _currentStepData$Basi23.planDetail) === null || _currentStepData$Basi24 === void 0 ? void 0 : (_currentStepData$Basi25 = _currentStepData$Basi24.planInfoProperties) === null || _currentStepData$Basi25 === void 0 ? void 0 : _currentStepData$Basi25.KHASRA_NO) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78955
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi22 = currentStepData.BasicDetails) === null || _currentStepData$Basi22 === void 0 ? void 0 : (_currentStepData$Basi23 = _currentStepData$Basi22.edcrDetails) === null || _currentStepData$Basi23 === void 0 ? void 0 : (_currentStepData$Basi24 = _currentStepData$Basi23.planDetail) === null || _currentStepData$Basi24 === void 0 ? void 0 : (_currentStepData$Basi25 = _currentStepData$Basi24.planInfoProperties) === null || _currentStepData$Basi25 === void 0 ? void 0 : _currentStepData$Basi25.KHASRA_NO) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea94 = currentStepData.createdResponse) === null || _currentStepData$crea94 === void 0 ? void 0 : (_currentStepData$crea95 = _currentStepData$crea94.additionalDetails) === null || _currentStepData$crea95 === void 0 ? void 0 : _currentStepData$crea95.khasraNumber) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77650
78956
|
className: "row border-none"
|
|
77651
78957
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_WARD_NUMBER_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77652
78958
|
className: "value"
|
|
77653
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78959
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea96 = currentStepData.createdResponse) === null || _currentStepData$crea96 === void 0 ? void 0 : (_currentStepData$crea97 = _currentStepData$crea96.additionalDetails) === null || _currentStepData$crea97 === void 0 ? void 0 : _currentStepData$crea97.wardnumber) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77654
78960
|
className: "row border-none"
|
|
77655
78961
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_NUMBER_OF_BATHS`)), /*#__PURE__*/React.createElement("div", {
|
|
77656
78962
|
className: "value"
|
|
77657
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78963
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea98 = currentStepData.createdResponse) === null || _currentStepData$crea98 === void 0 ? void 0 : (_currentStepData$crea99 = _currentStepData$crea98.additionalDetails) === null || _currentStepData$crea99 === void 0 ? void 0 : _currentStepData$crea99.bathnumber) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77658
78964
|
className: "row border-none"
|
|
77659
78965
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_NUMBER_OF_KITCHENS`)), /*#__PURE__*/React.createElement("div", {
|
|
77660
78966
|
className: "value"
|
|
77661
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78967
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea100 = currentStepData.createdResponse) === null || _currentStepData$crea100 === void 0 ? void 0 : (_currentStepData$crea101 = _currentStepData$crea100.additionalDetails) === null || _currentStepData$crea101 === void 0 ? void 0 : _currentStepData$crea101.kitchenNumber) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77662
78968
|
className: "row border-none"
|
|
77663
78969
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_APPROX_INHABITANTS_FOR_ACCOMODATION`)), /*#__PURE__*/React.createElement("div", {
|
|
77664
78970
|
className: "value"
|
|
77665
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78971
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea102 = currentStepData.createdResponse) === null || _currentStepData$crea102 === void 0 ? void 0 : (_currentStepData$crea103 = _currentStepData$crea102.additionalDetails) === null || _currentStepData$crea103 === void 0 ? void 0 : _currentStepData$crea103.approxinhabitants) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77666
78972
|
className: "row border-none"
|
|
77667
78973
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_DISTANCE_FROM_SEWER`)), /*#__PURE__*/React.createElement("div", {
|
|
77668
78974
|
className: "value"
|
|
77669
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78975
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea104 = currentStepData.createdResponse) === null || _currentStepData$crea104 === void 0 ? void 0 : (_currentStepData$crea105 = _currentStepData$crea104.additionalDetails) === null || _currentStepData$crea105 === void 0 ? void 0 : _currentStepData$crea105.distancefromsewer) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77670
78976
|
className: "row border-none"
|
|
77671
78977
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_SOURCE_OF_WATER`)), /*#__PURE__*/React.createElement("div", {
|
|
77672
78978
|
className: "value"
|
|
77673
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78979
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea106 = currentStepData.createdResponse) === null || _currentStepData$crea106 === void 0 ? void 0 : (_currentStepData$crea107 = _currentStepData$crea106.additionalDetails) === null || _currentStepData$crea107 === void 0 ? void 0 : _currentStepData$crea107.sourceofwater) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77674
78980
|
className: "row border-none"
|
|
77675
78981
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_NUMBER_OF_WATER_CLOSETS`)), /*#__PURE__*/React.createElement("div", {
|
|
77676
78982
|
className: "value"
|
|
77677
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78983
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea108 = currentStepData.createdResponse) === null || _currentStepData$crea108 === void 0 ? void 0 : (_currentStepData$crea109 = _currentStepData$crea108.additionalDetails) === null || _currentStepData$crea109 === void 0 ? void 0 : _currentStepData$crea109.watercloset) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77678
78984
|
className: "row border-none"
|
|
77679
78985
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_MATERIAL_TO-BE_USED_IN_WALLS`)), /*#__PURE__*/React.createElement("div", {
|
|
77680
78986
|
className: "value"
|
|
77681
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78987
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea110 = currentStepData.createdResponse) === null || _currentStepData$crea110 === void 0 ? void 0 : (_currentStepData$crea111 = _currentStepData$crea110.additionalDetails) === null || _currentStepData$crea111 === void 0 ? void 0 : _currentStepData$crea111.materialused) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77682
78988
|
className: "row border-none"
|
|
77683
78989
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_MATERIAL_TO-BE_USED_IN_FLOOR`)), /*#__PURE__*/React.createElement("div", {
|
|
77684
78990
|
className: "value"
|
|
77685
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78991
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea112 = currentStepData.createdResponse) === null || _currentStepData$crea112 === void 0 ? void 0 : (_currentStepData$crea113 = _currentStepData$crea112.additionalDetails) === null || _currentStepData$crea113 === void 0 ? void 0 : _currentStepData$crea113.materialusedinfloor) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77686
78992
|
className: "row border-none"
|
|
77687
78993
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_MATERIAL_TO-BE_USED_IN_ROOFS`)), /*#__PURE__*/React.createElement("div", {
|
|
77688
78994
|
className: "value"
|
|
77689
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78995
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea114 = currentStepData.createdResponse) === null || _currentStepData$crea114 === void 0 ? void 0 : (_currentStepData$crea115 = _currentStepData$crea114.additionalDetails) === null || _currentStepData$crea115 === void 0 ? void 0 : _currentStepData$crea115.materialusedinroofs) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77690
78996
|
className: "row border-none"
|
|
77691
78997
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_ESTIMATED_COST_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77692
78998
|
className: "value"
|
|
77693
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
78999
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea116 = currentStepData.createdResponse) === null || _currentStepData$crea116 === void 0 ? void 0 : (_currentStepData$crea117 = _currentStepData$crea116.additionalDetails) === null || _currentStepData$crea117 === void 0 ? void 0 : _currentStepData$crea117.estimatedCost) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea118 = currentStepData.createdResponse) === null || _currentStepData$crea118 === void 0 ? void 0 : (_currentStepData$crea119 = _currentStepData$crea118.landInfo) === null || _currentStepData$crea119 === void 0 ? void 0 : (_currentStepData$crea120 = _currentStepData$crea119.address) === null || _currentStepData$crea120 === void 0 ? void 0 : _currentStepData$crea120.pincode) && /*#__PURE__*/React.createElement("div", {
|
|
77694
79000
|
className: "row border-none"
|
|
77695
79001
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_DETAILS_PIN_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77696
79002
|
className: "value"
|
|
77697
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79003
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea121 = currentStepData.createdResponse) === null || _currentStepData$crea121 === void 0 ? void 0 : (_currentStepData$crea122 = _currentStepData$crea121.landInfo) === null || _currentStepData$crea122 === void 0 ? void 0 : (_currentStepData$crea123 = _currentStepData$crea122.address) === null || _currentStepData$crea123 === void 0 ? void 0 : _currentStepData$crea123.pincode) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77698
79004
|
className: "row border-none"
|
|
77699
79005
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_LAT`)), /*#__PURE__*/React.createElement("div", {
|
|
77700
79006
|
className: "value"
|
|
77701
|
-
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
79007
|
+
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea124 = currentStepData.createdResponse) !== null && _currentStepData$crea124 !== void 0 && (_currentStepData$crea125 = _currentStepData$crea124.landInfo) !== null && _currentStepData$crea125 !== void 0 && (_currentStepData$crea126 = _currentStepData$crea125.address) !== null && _currentStepData$crea126 !== void 0 && (_currentStepData$crea127 = _currentStepData$crea126.geoLocation) !== null && _currentStepData$crea127 !== void 0 && _currentStepData$crea127.latitude ? currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea128 = currentStepData.createdResponse) === null || _currentStepData$crea128 === void 0 ? void 0 : (_currentStepData$crea129 = _currentStepData$crea128.landInfo) === null || _currentStepData$crea129 === void 0 ? void 0 : (_currentStepData$crea130 = _currentStepData$crea129.address) === null || _currentStepData$crea130 === void 0 ? void 0 : (_currentStepData$crea131 = _currentStepData$crea130.geoLocation) === null || _currentStepData$crea131 === void 0 ? void 0 : (_currentStepData$crea132 = _currentStepData$crea131.latitude) === null || _currentStepData$crea132 === void 0 ? void 0 : (_currentStepData$crea133 = _currentStepData$crea132.toFixed(6)) === null || _currentStepData$crea133 === void 0 ? void 0 : _currentStepData$crea133.toString() : t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77702
79008
|
className: "row border-none"
|
|
77703
79009
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_LONG`)), /*#__PURE__*/React.createElement("div", {
|
|
77704
79010
|
className: "value"
|
|
77705
|
-
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
79011
|
+
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea134 = currentStepData.createdResponse) !== null && _currentStepData$crea134 !== void 0 && (_currentStepData$crea135 = _currentStepData$crea134.landInfo) !== null && _currentStepData$crea135 !== void 0 && (_currentStepData$crea136 = _currentStepData$crea135.address) !== null && _currentStepData$crea136 !== void 0 && (_currentStepData$crea137 = _currentStepData$crea136.geoLocation) !== null && _currentStepData$crea137 !== void 0 && _currentStepData$crea137.longitude ? currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea138 = currentStepData.createdResponse) === null || _currentStepData$crea138 === void 0 ? void 0 : (_currentStepData$crea139 = _currentStepData$crea138.landInfo) === null || _currentStepData$crea139 === void 0 ? void 0 : (_currentStepData$crea140 = _currentStepData$crea139.address) === null || _currentStepData$crea140 === void 0 ? void 0 : (_currentStepData$crea141 = _currentStepData$crea140.geoLocation) === null || _currentStepData$crea141 === void 0 ? void 0 : (_currentStepData$crea142 = _currentStepData$crea141.longitude) === null || _currentStepData$crea142 === void 0 ? void 0 : (_currentStepData$crea143 = _currentStepData$crea142.toFixed(6)) === null || _currentStepData$crea143 === void 0 ? void 0 : _currentStepData$crea143.toString() : t("CS_NA"))))), /*#__PURE__*/React.createElement("div", {
|
|
77706
79012
|
className: "bpa-stepper-form-section"
|
|
77707
79013
|
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
77708
79014
|
className: "bpa-section-header"
|
|
@@ -77734,14 +79040,14 @@ const SummaryDetails = ({
|
|
|
77734
79040
|
var _currentStepData$Basi36, _currentStepData$Basi37;
|
|
77735
79041
|
return routeTo(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi36 = currentStepData.BasicDetails) === null || _currentStepData$Basi36 === void 0 ? void 0 : (_currentStepData$Basi37 = _currentStepData$Basi36.edcrDetails) === null || _currentStepData$Basi37 === void 0 ? void 0 : _currentStepData$Basi37.planReport);
|
|
77736
79042
|
}
|
|
77737
|
-
}) : t("CS_NA")))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79043
|
+
}) : t("CS_NA")))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea144 = currentStepData.createdResponse) === null || _currentStepData$crea144 === void 0 ? void 0 : (_currentStepData$crea145 = _currentStepData$crea144.additionalDetails) === null || _currentStepData$crea145 === void 0 ? void 0 : (_currentStepData$crea146 = _currentStepData$crea145.oldEDCR) === null || _currentStepData$crea146 === void 0 ? void 0 : _currentStepData$crea146.length) > 0 && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
77738
79044
|
className: "bpa-block-header"
|
|
77739
79045
|
}, t("OLD_BPA_EDCR_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
77740
79046
|
className: "bpa-table-container"
|
|
77741
79047
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
77742
79048
|
className: "customTable table-border-style",
|
|
77743
79049
|
t: t,
|
|
77744
|
-
data: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79050
|
+
data: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea147 = currentStepData.createdResponse) === null || _currentStepData$crea147 === void 0 ? void 0 : (_currentStepData$crea148 = _currentStepData$crea147.additionalDetails) === null || _currentStepData$crea148 === void 0 ? void 0 : _currentStepData$crea148.oldEDCR,
|
|
77745
79051
|
columns: oldEDCRDocumentsColumns,
|
|
77746
79052
|
getCellProps: () => ({
|
|
77747
79053
|
style: {}
|
|
@@ -77827,9 +79133,9 @@ const SummaryDetails = ({
|
|
|
77827
79133
|
marginTop: "16px"
|
|
77828
79134
|
}
|
|
77829
79135
|
}, t("BPA_OCC_SUBOCC_HEADER")), currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi86 = currentStepData.BasicDetails) === null || _currentStepData$Basi86 === void 0 ? void 0 : (_currentStepData$Basi87 = _currentStepData$Basi86.edcrDetails) === null || _currentStepData$Basi87 === void 0 ? void 0 : (_currentStepData$Basi88 = _currentStepData$Basi87.planDetail) === null || _currentStepData$Basi88 === void 0 ? void 0 : (_currentStepData$Basi89 = _currentStepData$Basi88.blocks) === null || _currentStepData$Basi89 === void 0 ? void 0 : _currentStepData$Basi89.map((block, index) => {
|
|
77830
|
-
var _currentStepData$
|
|
79136
|
+
var _currentStepData$crea149, _currentStepData$crea150;
|
|
77831
79137
|
return /*#__PURE__*/React.createElement("div", {
|
|
77832
|
-
className: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79138
|
+
className: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea149 = currentStepData.createdResponse) === null || _currentStepData$crea149 === void 0 ? void 0 : (_currentStepData$crea150 = _currentStepData$crea149.landInfo) === null || _currentStepData$crea150 === void 0 ? void 0 : _currentStepData$crea150.owners.length) > 1 ? "owner-details-card" : "",
|
|
77833
79139
|
key: index
|
|
77834
79140
|
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
77835
79141
|
className: "bpa-block-header",
|
|
@@ -77875,7 +79181,7 @@ const SummaryDetails = ({
|
|
|
77875
79181
|
className: "row border-none"
|
|
77876
79182
|
}, /*#__PURE__*/React.createElement("h2", null, t("BPA_APPLICATION_DEMOLITION_AREA_LABEL")), /*#__PURE__*/React.createElement("div", {
|
|
77877
79183
|
className: "value"
|
|
77878
|
-
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi90 = currentStepData.BasicDetails) !== null && _currentStepData$Basi90 !== void 0 && (_currentStepData$Basi91 = _currentStepData$Basi90.edcrDetails) !== null && _currentStepData$Basi91 !== void 0 && (_currentStepData$Basi92 = _currentStepData$Basi91.planDetail) !== null && _currentStepData$Basi92 !== void 0 && (_currentStepData$Basi93 = _currentStepData$Basi92.planInformation) !== null && _currentStepData$Basi93 !== void 0 && _currentStepData$Basi93.demolitionArea ? `${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi94 = currentStepData.BasicDetails) === null || _currentStepData$Basi94 === void 0 ? void 0 : (_currentStepData$Basi95 = _currentStepData$Basi94.edcrDetails) === null || _currentStepData$Basi95 === void 0 ? void 0 : (_currentStepData$Basi96 = _currentStepData$Basi95.planDetail) === null || _currentStepData$Basi96 === void 0 ? void 0 : (_currentStepData$Basi97 = _currentStepData$Basi96.planInformation) === null || _currentStepData$Basi97 === void 0 ? void 0 : _currentStepData$Basi97.demolitionArea} ${t("BPA_SQ_MTRS_LABEL")}` : t("CS_NA"))))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79184
|
+
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi90 = currentStepData.BasicDetails) !== null && _currentStepData$Basi90 !== void 0 && (_currentStepData$Basi91 = _currentStepData$Basi90.edcrDetails) !== null && _currentStepData$Basi91 !== void 0 && (_currentStepData$Basi92 = _currentStepData$Basi91.planDetail) !== null && _currentStepData$Basi92 !== void 0 && (_currentStepData$Basi93 = _currentStepData$Basi92.planInformation) !== null && _currentStepData$Basi93 !== void 0 && _currentStepData$Basi93.demolitionArea ? `${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi94 = currentStepData.BasicDetails) === null || _currentStepData$Basi94 === void 0 ? void 0 : (_currentStepData$Basi95 = _currentStepData$Basi94.edcrDetails) === null || _currentStepData$Basi95 === void 0 ? void 0 : (_currentStepData$Basi96 = _currentStepData$Basi95.planDetail) === null || _currentStepData$Basi96 === void 0 ? void 0 : (_currentStepData$Basi97 = _currentStepData$Basi96.planInformation) === null || _currentStepData$Basi97 === void 0 ? void 0 : _currentStepData$Basi97.demolitionArea} ${t("BPA_SQ_MTRS_LABEL")}` : t("CS_NA"))))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea151 = currentStepData.createdResponse) === null || _currentStepData$crea151 === void 0 ? void 0 : _currentStepData$crea151.applicationType) !== "BUILDING_OC_PLAN_SCRUTINY" && /*#__PURE__*/React.createElement("div", {
|
|
77879
79185
|
className: "bpa-stepper-form-section"
|
|
77880
79186
|
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
77881
79187
|
className: "bpa-section-header"
|
|
@@ -77885,27 +79191,27 @@ const SummaryDetails = ({
|
|
|
77885
79191
|
className: "row border-none"
|
|
77886
79192
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_APPROVED_COLONY_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77887
79193
|
className: "value"
|
|
77888
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79194
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea152 = currentStepData.createdResponse) === null || _currentStepData$crea152 === void 0 ? void 0 : (_currentStepData$crea153 = _currentStepData$crea152.additionalDetails) === null || _currentStepData$crea153 === void 0 ? void 0 : _currentStepData$crea153.approvedColony) || t("CS_NA"))), ((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea154 = currentStepData.createdResponse) === null || _currentStepData$crea154 === void 0 ? void 0 : (_currentStepData$crea155 = _currentStepData$crea154.additionalDetails) === null || _currentStepData$crea155 === void 0 ? void 0 : _currentStepData$crea155.approvedColony) === "YES" || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea156 = currentStepData.createdResponse) === null || _currentStepData$crea156 === void 0 ? void 0 : (_currentStepData$crea157 = _currentStepData$crea156.additionalDetails) === null || _currentStepData$crea157 === void 0 ? void 0 : _currentStepData$crea157.approvedColony) === "Colony Prior to 1995 (colony name)") && /*#__PURE__*/React.createElement("div", {
|
|
77889
79195
|
className: "row border-none"
|
|
77890
79196
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_APPROVED_COLONY_NAME`)), /*#__PURE__*/React.createElement("div", {
|
|
77891
79197
|
className: "value"
|
|
77892
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79198
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea158 = currentStepData.createdResponse) === null || _currentStepData$crea158 === void 0 ? void 0 : (_currentStepData$crea159 = _currentStepData$crea158.additionalDetails) === null || _currentStepData$crea159 === void 0 ? void 0 : _currentStepData$crea159.nameofApprovedcolony) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea160 = currentStepData.createdResponse) === null || _currentStepData$crea160 === void 0 ? void 0 : (_currentStepData$crea161 = _currentStepData$crea160.additionalDetails) === null || _currentStepData$crea161 === void 0 ? void 0 : _currentStepData$crea161.approvedColony) === "NO" && /*#__PURE__*/React.createElement("div", {
|
|
77893
79199
|
className: "row border-none"
|
|
77894
79200
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_NOC_NUMBER`)), /*#__PURE__*/React.createElement("div", {
|
|
77895
79201
|
className: "value"
|
|
77896
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79202
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea162 = currentStepData.createdResponse) === null || _currentStepData$crea162 === void 0 ? void 0 : (_currentStepData$crea163 = _currentStepData$crea162.additionalDetails) === null || _currentStepData$crea163 === void 0 ? void 0 : _currentStepData$crea163.NocNumber) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea164 = currentStepData.createdResponse) === null || _currentStepData$crea164 === void 0 ? void 0 : (_currentStepData$crea165 = _currentStepData$crea164.additionalDetails) === null || _currentStepData$crea165 === void 0 ? void 0 : _currentStepData$crea165.approvedColony) === "NO" && /*#__PURE__*/React.createElement("div", {
|
|
77897
79203
|
className: "row border-none"
|
|
77898
79204
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_NOC_APPLICANT_NAME`)), /*#__PURE__*/React.createElement("div", {
|
|
77899
79205
|
className: "value"
|
|
77900
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79206
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea166 = currentStepData.createdResponse) === null || _currentStepData$crea166 === void 0 ? void 0 : (_currentStepData$crea167 = _currentStepData$crea166.additionalDetails) === null || _currentStepData$crea167 === void 0 ? void 0 : (_currentStepData$crea168 = _currentStepData$crea167.nocObject) === null || _currentStepData$crea168 === void 0 ? void 0 : _currentStepData$crea168.applicantOwnerOrFirmName) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea169 = currentStepData.createdResponse) === null || _currentStepData$crea169 === void 0 ? void 0 : (_currentStepData$crea170 = _currentStepData$crea169.additionalDetails) === null || _currentStepData$crea170 === void 0 ? void 0 : _currentStepData$crea170.approvedColony) === "NO" && /*#__PURE__*/React.createElement("div", {
|
|
77901
79207
|
className: "row border-none"
|
|
77902
79208
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_NOC_ULB_NAME`)), /*#__PURE__*/React.createElement("div", {
|
|
77903
79209
|
className: "value"
|
|
77904
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79210
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea171 = currentStepData.createdResponse) === null || _currentStepData$crea171 === void 0 ? void 0 : (_currentStepData$crea172 = _currentStepData$crea171.additionalDetails) === null || _currentStepData$crea172 === void 0 ? void 0 : (_currentStepData$crea173 = _currentStepData$crea172.nocObject) === null || _currentStepData$crea173 === void 0 ? void 0 : _currentStepData$crea173.ulbName) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea174 = currentStepData.createdResponse) === null || _currentStepData$crea174 === void 0 ? void 0 : (_currentStepData$crea175 = _currentStepData$crea174.additionalDetails) === null || _currentStepData$crea175 === void 0 ? void 0 : _currentStepData$crea175.approvedColony) === "NO" && /*#__PURE__*/React.createElement("div", {
|
|
77905
79211
|
className: "row border-none"
|
|
77906
79212
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_NOC_ULB_TYPE`)), /*#__PURE__*/React.createElement("div", {
|
|
77907
79213
|
className: "value"
|
|
77908
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79214
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea176 = currentStepData.createdResponse) === null || _currentStepData$crea176 === void 0 ? void 0 : (_currentStepData$crea177 = _currentStepData$crea176.additionalDetails) === null || _currentStepData$crea177 === void 0 ? void 0 : (_currentStepData$crea178 = _currentStepData$crea177.nocObject) === null || _currentStepData$crea178 === void 0 ? void 0 : _currentStepData$crea178.ulbType) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea179 = currentStepData.createdResponse) === null || _currentStepData$crea179 === void 0 ? void 0 : (_currentStepData$crea180 = _currentStepData$crea179.additionalDetails) === null || _currentStepData$crea180 === void 0 ? void 0 : _currentStepData$crea180.approvedColony) === "NO" && /*#__PURE__*/React.createElement("div", {
|
|
77909
79215
|
className: "row border-none"
|
|
77910
79216
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_NOC_APPROVED_ON`)), /*#__PURE__*/React.createElement("div", {
|
|
77911
79217
|
className: "value"
|
|
@@ -77913,11 +79219,11 @@ const SummaryDetails = ({
|
|
|
77913
79219
|
className: "row border-none"
|
|
77914
79220
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_MASTER_PLAN`)), /*#__PURE__*/React.createElement("div", {
|
|
77915
79221
|
className: "value"
|
|
77916
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79222
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea181 = currentStepData.createdResponse) === null || _currentStepData$crea181 === void 0 ? void 0 : (_currentStepData$crea182 = _currentStepData$crea181.additionalDetails) === null || _currentStepData$crea182 === void 0 ? void 0 : _currentStepData$crea182.masterPlan) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea183 = currentStepData.createdResponse) === null || _currentStepData$crea183 === void 0 ? void 0 : (_currentStepData$crea184 = _currentStepData$crea183.additionalDetails) === null || _currentStepData$crea184 === void 0 ? void 0 : _currentStepData$crea184.masterPlan) === "YES" && /*#__PURE__*/React.createElement("div", {
|
|
77917
79223
|
className: "row border-none"
|
|
77918
79224
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_USE`)), /*#__PURE__*/React.createElement("div", {
|
|
77919
79225
|
className: "value"
|
|
77920
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79226
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea185 = currentStepData.createdResponse) === null || _currentStepData$crea185 === void 0 ? void 0 : (_currentStepData$crea186 = _currentStepData$crea185.additionalDetails) === null || _currentStepData$crea186 === void 0 ? void 0 : _currentStepData$crea186.use) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77921
79227
|
className: "row border-none"
|
|
77922
79228
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_CORE_AREA_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77923
79229
|
className: "value"
|
|
@@ -77925,55 +79231,55 @@ const SummaryDetails = ({
|
|
|
77925
79231
|
className: "row border-none"
|
|
77926
79232
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_PROPOSED_SITE_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77927
79233
|
className: "value"
|
|
77928
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79234
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea187 = currentStepData.createdResponse) === null || _currentStepData$crea187 === void 0 ? void 0 : (_currentStepData$crea188 = _currentStepData$crea187.additionalDetails) === null || _currentStepData$crea188 === void 0 ? void 0 : _currentStepData$crea188.proposedSite) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea189 = currentStepData.createdResponse) === null || _currentStepData$crea189 === void 0 ? void 0 : (_currentStepData$crea190 = _currentStepData$crea189.additionalDetails) === null || _currentStepData$crea190 === void 0 ? void 0 : _currentStepData$crea190.schemes) === "SCHEME" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
77929
79235
|
className: "row border-none"
|
|
77930
79236
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_SCHEME_TYPE_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77931
79237
|
className: "value"
|
|
77932
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79238
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea191 = currentStepData.createdResponse) === null || _currentStepData$crea191 === void 0 ? void 0 : (_currentStepData$crea192 = _currentStepData$crea191.additionalDetails) === null || _currentStepData$crea192 === void 0 ? void 0 : _currentStepData$crea192.schemesselection) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77933
79239
|
className: "row border-none"
|
|
77934
79240
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_SCHEME_NAME_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77935
79241
|
className: "value"
|
|
77936
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79242
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea193 = currentStepData.createdResponse) === null || _currentStepData$crea193 === void 0 ? void 0 : (_currentStepData$crea194 = _currentStepData$crea193.additionalDetails) === null || _currentStepData$crea194 === void 0 ? void 0 : _currentStepData$crea194.schemeName) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77937
79243
|
className: "row border-none"
|
|
77938
79244
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_TRANFERRED_SCHEME_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77939
79245
|
className: "value"
|
|
77940
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79246
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea195 = currentStepData.createdResponse) === null || _currentStepData$crea195 === void 0 ? void 0 : (_currentStepData$crea196 = _currentStepData$crea195.additionalDetails) === null || _currentStepData$crea196 === void 0 ? void 0 : _currentStepData$crea196.transferredscheme) || t("CS_NA")))), /*#__PURE__*/React.createElement("div", {
|
|
77941
79247
|
className: "row border-none"
|
|
77942
79248
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_PURCHASED_FAR_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77943
79249
|
className: "value"
|
|
77944
|
-
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$
|
|
79250
|
+
}, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea197 = currentStepData.createdResponse) !== null && _currentStepData$crea197 !== void 0 && (_currentStepData$crea198 = _currentStepData$crea197.additionalDetails) !== null && _currentStepData$crea198 !== void 0 && _currentStepData$crea198.purchasedFAR ? "YES" : "NO" )), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea199 = currentStepData.createdResponse) === null || _currentStepData$crea199 === void 0 ? void 0 : (_currentStepData$crea200 = _currentStepData$crea199.additionalDetails) === null || _currentStepData$crea200 === void 0 ? void 0 : _currentStepData$crea200.purchasedFAR) && /*#__PURE__*/React.createElement("div", {
|
|
77945
79251
|
className: "row border-none"
|
|
77946
79252
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_PROVIDED_FAR`)), /*#__PURE__*/React.createElement("div", {
|
|
77947
79253
|
className: "value"
|
|
77948
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79254
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea201 = currentStepData.createdResponse) === null || _currentStepData$crea201 === void 0 ? void 0 : (_currentStepData$crea202 = _currentStepData$crea201.additionalDetails) === null || _currentStepData$crea202 === void 0 ? void 0 : _currentStepData$crea202.providedFAR) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea203 = currentStepData.createdResponse) === null || _currentStepData$crea203 === void 0 ? void 0 : (_currentStepData$crea204 = _currentStepData$crea203.additionalDetails) === null || _currentStepData$crea204 === void 0 ? void 0 : _currentStepData$crea204.purchasedFAR) && /*#__PURE__*/React.createElement("div", {
|
|
77949
79255
|
className: "row border-none"
|
|
77950
79256
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_ALLOWED_PROVIDED_FAR`)), /*#__PURE__*/React.createElement("div", {
|
|
77951
79257
|
className: "value"
|
|
77952
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79258
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea205 = currentStepData.createdResponse) === null || _currentStepData$crea205 === void 0 ? void 0 : (_currentStepData$crea206 = _currentStepData$crea205.additionalDetails) === null || _currentStepData$crea206 === void 0 ? void 0 : _currentStepData$crea206.purchasableFAR) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea207 = currentStepData.createdResponse) === null || _currentStepData$crea207 === void 0 ? void 0 : (_currentStepData$crea208 = _currentStepData$crea207.additionalDetails) === null || _currentStepData$crea208 === void 0 ? void 0 : _currentStepData$crea208.permissableFar) && /*#__PURE__*/React.createElement("div", {
|
|
77953
79259
|
className: "row border-none"
|
|
77954
79260
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_PERMISSIBLE_FAR`)), /*#__PURE__*/React.createElement("div", {
|
|
77955
79261
|
className: "value"
|
|
77956
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79262
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea209 = currentStepData.createdResponse) === null || _currentStepData$crea209 === void 0 ? void 0 : (_currentStepData$crea210 = _currentStepData$crea209.additionalDetails) === null || _currentStepData$crea210 === void 0 ? void 0 : _currentStepData$crea210.permissableFar) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea211 = currentStepData.createdResponse) === null || _currentStepData$crea211 === void 0 ? void 0 : (_currentStepData$crea212 = _currentStepData$crea211.additionalDetails) === null || _currentStepData$crea212 === void 0 ? void 0 : _currentStepData$crea212.achievedFar) && /*#__PURE__*/React.createElement("div", {
|
|
77957
79263
|
className: "row border-none"
|
|
77958
79264
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_FAR_ACHIEVED`)), /*#__PURE__*/React.createElement("div", {
|
|
77959
79265
|
className: "value"
|
|
77960
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79266
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea213 = currentStepData.createdResponse) === null || _currentStepData$crea213 === void 0 ? void 0 : (_currentStepData$crea214 = _currentStepData$crea213.additionalDetails) === null || _currentStepData$crea214 === void 0 ? void 0 : _currentStepData$crea214.achievedFar) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea215 = currentStepData.createdResponse) === null || _currentStepData$crea215 === void 0 ? void 0 : (_currentStepData$crea216 = _currentStepData$crea215.additionalDetails) === null || _currentStepData$crea216 === void 0 ? void 0 : _currentStepData$crea216.ecsRequired) && /*#__PURE__*/React.createElement("div", {
|
|
77961
79267
|
className: "row border-none"
|
|
77962
79268
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_ECS_REQUIRED`)), /*#__PURE__*/React.createElement("div", {
|
|
77963
79269
|
className: "value"
|
|
77964
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79270
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea217 = currentStepData.createdResponse) === null || _currentStepData$crea217 === void 0 ? void 0 : (_currentStepData$crea218 = _currentStepData$crea217.additionalDetails) === null || _currentStepData$crea218 === void 0 ? void 0 : _currentStepData$crea218.ecsRequired) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea219 = currentStepData.createdResponse) === null || _currentStepData$crea219 === void 0 ? void 0 : (_currentStepData$crea220 = _currentStepData$crea219.additionalDetails) === null || _currentStepData$crea220 === void 0 ? void 0 : _currentStepData$crea220.ecsProvided) && /*#__PURE__*/React.createElement("div", {
|
|
77965
79271
|
className: "row border-none"
|
|
77966
79272
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_ECS_PROVIDED`)), /*#__PURE__*/React.createElement("div", {
|
|
77967
79273
|
className: "value"
|
|
77968
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79274
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea221 = currentStepData.createdResponse) === null || _currentStepData$crea221 === void 0 ? void 0 : (_currentStepData$crea222 = _currentStepData$crea221.additionalDetails) === null || _currentStepData$crea222 === void 0 ? void 0 : _currentStepData$crea222.ecsProvided) || t("CS_NA"))), /*#__PURE__*/React.createElement("div", {
|
|
77969
79275
|
className: "row border-none"
|
|
77970
79276
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_GREEN_BUILDING_LABEL`)), /*#__PURE__*/React.createElement("div", {
|
|
77971
79277
|
className: "value"
|
|
77972
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79278
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea223 = currentStepData.createdResponse) === null || _currentStepData$crea223 === void 0 ? void 0 : (_currentStepData$crea224 = _currentStepData$crea223.additionalDetails) === null || _currentStepData$crea224 === void 0 ? void 0 : _currentStepData$crea224.greenbuilding) || t("CS_NA"))), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea225 = currentStepData.createdResponse) === null || _currentStepData$crea225 === void 0 ? void 0 : (_currentStepData$crea226 = _currentStepData$crea225.additionalDetails) === null || _currentStepData$crea226 === void 0 ? void 0 : _currentStepData$crea226.greenbuilding) === "YES" && /*#__PURE__*/React.createElement("div", {
|
|
77973
79279
|
className: "row border-none"
|
|
77974
79280
|
}, /*#__PURE__*/React.createElement("h2", null, t(`BPA_SELECTED_RATINGS`)), /*#__PURE__*/React.createElement("div", {
|
|
77975
79281
|
className: "value"
|
|
77976
|
-
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79282
|
+
}, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea227 = currentStepData.createdResponse) === null || _currentStepData$crea227 === void 0 ? void 0 : (_currentStepData$crea228 = _currentStepData$crea227.additionalDetails) === null || _currentStepData$crea228 === void 0 ? void 0 : _currentStepData$crea228.rating) || t("CS_NA")))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
77977
79283
|
className: "bpa-block-header",
|
|
77978
79284
|
style: {
|
|
77979
79285
|
marginTop: "16px"
|
|
@@ -77984,15 +79290,15 @@ const SummaryDetails = ({
|
|
|
77984
79290
|
className: "row border-none"
|
|
77985
79291
|
}, /*#__PURE__*/React.createElement("h2", null, t(`ECBC - Proposed Connected Electrical Load is above 100 Kw`)), /*#__PURE__*/React.createElement("div", {
|
|
77986
79292
|
className: "value"
|
|
77987
|
-
}, currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79293
|
+
}, currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea229 = currentStepData.createdResponse) === null || _currentStepData$crea229 === void 0 ? void 0 : (_currentStepData$crea230 = _currentStepData$crea229.additionalDetails) === null || _currentStepData$crea230 === void 0 ? void 0 : _currentStepData$crea230.ecbcElectricalLoad)), /*#__PURE__*/React.createElement("div", {
|
|
77988
79294
|
className: "row border-none"
|
|
77989
79295
|
}, /*#__PURE__*/React.createElement("h2", null, t(`ECBC - Proposed Demand of Electrical Load is above 120 Kw`)), /*#__PURE__*/React.createElement("div", {
|
|
77990
79296
|
className: "value"
|
|
77991
|
-
}, currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79297
|
+
}, currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea231 = currentStepData.createdResponse) === null || _currentStepData$crea231 === void 0 ? void 0 : (_currentStepData$crea232 = _currentStepData$crea231.additionalDetails) === null || _currentStepData$crea232 === void 0 ? void 0 : _currentStepData$crea232.ecbcDemandLoad)), /*#__PURE__*/React.createElement("div", {
|
|
77992
79298
|
className: "row border-none"
|
|
77993
79299
|
}, /*#__PURE__*/React.createElement("h2", null, t(`ECBC - Proposed Air Conditioned Area above 500 sq.mt`)), /*#__PURE__*/React.createElement("div", {
|
|
77994
79300
|
className: "value"
|
|
77995
|
-
}, currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$
|
|
79301
|
+
}, currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea233 = currentStepData.createdResponse) === null || _currentStepData$crea233 === void 0 ? void 0 : (_currentStepData$crea234 = _currentStepData$crea233.additionalDetails) === null || _currentStepData$crea234 === void 0 ? void 0 : _currentStepData$crea234.ecbcAirConditioned)))), (ecbcDocumentsData === null || ecbcDocumentsData === void 0 ? void 0 : ecbcDocumentsData.length) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
77996
79302
|
className: "bpa-stepper-form-section"
|
|
77997
79303
|
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
77998
79304
|
className: "bpa-section-header"
|
|
@@ -79196,6 +80502,18 @@ const createEmployeeConfig$3 = [{
|
|
|
79196
80502
|
texts: {
|
|
79197
80503
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
79198
80504
|
}
|
|
80505
|
+
}, {
|
|
80506
|
+
head: "GEO TAG",
|
|
80507
|
+
stepLabel: "BPA_STEPPER_GEO_TAG_DETAILS",
|
|
80508
|
+
stepNumber: 5,
|
|
80509
|
+
isStepEnabled: true,
|
|
80510
|
+
type: "component",
|
|
80511
|
+
component: "LayoutStepGeoTag",
|
|
80512
|
+
key: "geotag",
|
|
80513
|
+
withoutLabel: true,
|
|
80514
|
+
texts: {
|
|
80515
|
+
submitBarLabel: "CS_COMMON_NEXT"
|
|
80516
|
+
}
|
|
79199
80517
|
}, {
|
|
79200
80518
|
head: "SUMMARY DETAILS",
|
|
79201
80519
|
stepLabel: "ES_TITILE_SUMMARY_DETAILS",
|
|
@@ -79428,7 +80746,7 @@ const EditLayoutApplication = () => {
|
|
|
79428
80746
|
hasResetForm.current = true;
|
|
79429
80747
|
}
|
|
79430
80748
|
if (!isBuildingTypeLoading && !isBuildingCategoryLoading && !isRoadTypeLoading && !isLayoutTypeLoading && !isMdmsLoading && !isLoading && layoutObject !== null && layoutObject !== void 0 && layoutObject.layoutDetails && !isUlbListLoading && !isGenderLoading && menu.length > 0 && !isDataInitialized.current) {
|
|
79431
|
-
var _primaryOwner$additio6, _primaryOwner$additio7, _primaryOwner$additio8, _primaryOwner$additio9, _primaryOwner$additio0, _primaryOwner$additio1, _primaryOwner$additio10, _ownersFromApi$filter;
|
|
80749
|
+
var _primaryOwner$additio6, _primaryOwner$additio7, _primaryOwner$additio8, _primaryOwner$additio9, _primaryOwner$additio0, _primaryOwner$additio1, _primaryOwner$additio10, _ownersFromApi$filter, _layoutObject$layoutD7, _layoutObject$layoutD8, _siteDetails$scrutiny, _siteDetails$scrutiny2, _siteDetails$scrutiny3;
|
|
79432
80750
|
isDataInitialized.current = true;
|
|
79433
80751
|
console.log("[EditLayoutApplication] Initializing form data with menu:", menu);
|
|
79434
80752
|
const formattedDocuments = {
|
|
@@ -79639,11 +80957,24 @@ const EditLayoutApplication = () => {
|
|
|
79639
80957
|
const applicantsForForm = allApplicants.length > 0 ? allApplicants : [];
|
|
79640
80958
|
console.log("[EditLayoutApplication] applicantsForForm mapped:", applicantsForForm);
|
|
79641
80959
|
dispatch(UPDATE_LayoutNewApplication_FORM("applicants", applicantsForForm));
|
|
79642
|
-
|
|
79643
|
-
|
|
80960
|
+
const savedGeoJSON = (layoutObject === null || layoutObject === void 0 ? void 0 : (_layoutObject$layoutD7 = layoutObject.layoutDetails) === null || _layoutObject$layoutD7 === void 0 ? void 0 : (_layoutObject$layoutD8 = _layoutObject$layoutD7.additionalDetails) === null || _layoutObject$layoutD8 === void 0 ? void 0 : _layoutObject$layoutD8.geojson) || (layoutObject === null || layoutObject === void 0 ? void 0 : layoutObject.geojson) || null;
|
|
80961
|
+
if (savedGeoJSON) {
|
|
80962
|
+
dispatch(UPDATE_LayoutNewApplication_FORM("geotag", {
|
|
80963
|
+
geojson: savedGeoJSON
|
|
80964
|
+
}));
|
|
80965
|
+
}
|
|
80966
|
+
if (layoutObject !== null && layoutObject !== void 0 && layoutObject.edcrNumber || siteDetails !== null && siteDetails !== void 0 && siteDetails.edcrNumber || siteDetails !== null && siteDetails !== void 0 && siteDetails.scrutinyNumber) {
|
|
80967
|
+
dispatch(UPDATE_LayoutNewApplication_FORM("scrutinyNumber", (layoutObject === null || layoutObject === void 0 ? void 0 : layoutObject.edcrNumber) || (siteDetails === null || siteDetails === void 0 ? void 0 : siteDetails.scrutinyNumber) || (siteDetails === null || siteDetails === void 0 ? void 0 : siteDetails.edcrNumber)));
|
|
79644
80968
|
}
|
|
79645
80969
|
if (siteDetails !== null && siteDetails !== void 0 && siteDetails.scrutinyDetails) {
|
|
79646
|
-
dispatch(UPDATE_LayoutNewApplication_FORM("scrutinyDetails", siteDetails.scrutinyDetails));
|
|
80970
|
+
dispatch(UPDATE_LayoutNewApplication_FORM("scrutinyDetails", siteDetails === null || siteDetails === void 0 ? void 0 : siteDetails.scrutinyDetails));
|
|
80971
|
+
}
|
|
80972
|
+
if (siteDetails !== null && siteDetails !== void 0 && siteDetails.scrutinyFileStoreId || siteDetails !== null && siteDetails !== void 0 && (_siteDetails$scrutiny = siteDetails.scrutinyDetails) !== null && _siteDetails$scrutiny !== void 0 && (_siteDetails$scrutiny2 = _siteDetails$scrutiny.planDetail) !== null && _siteDetails$scrutiny2 !== void 0 && (_siteDetails$scrutiny3 = _siteDetails$scrutiny2.planInformation) !== null && _siteDetails$scrutiny3 !== void 0 && _siteDetails$scrutiny3.planFile) {
|
|
80973
|
+
var _siteDetails$scrutiny4, _siteDetails$scrutiny5, _siteDetails$scrutiny6;
|
|
80974
|
+
dispatch(UPDATE_LayoutNewApplication_FORM("scrutinyFileStoreId", (siteDetails === null || siteDetails === void 0 ? void 0 : siteDetails.scrutinyFileStoreId) || (siteDetails === null || siteDetails === void 0 ? void 0 : (_siteDetails$scrutiny4 = siteDetails.scrutinyDetails) === null || _siteDetails$scrutiny4 === void 0 ? void 0 : (_siteDetails$scrutiny5 = _siteDetails$scrutiny4.planDetail) === null || _siteDetails$scrutiny5 === void 0 ? void 0 : (_siteDetails$scrutiny6 = _siteDetails$scrutiny5.planInformation) === null || _siteDetails$scrutiny6 === void 0 ? void 0 : _siteDetails$scrutiny6.planFile)));
|
|
80975
|
+
}
|
|
80976
|
+
if (layoutObject) {
|
|
80977
|
+
dispatch(UPDATE_LayoutNewApplication_FORM("apiData", layoutObject));
|
|
79647
80978
|
}
|
|
79648
80979
|
}
|
|
79649
80980
|
}, [isLoading, isUlbListLoading, isGenderLoading, layoutObject, menu.length, isBuildingTypeLoading, isBuildingCategoryLoading, isRoadTypeLoading, isLayoutTypeLoading, isMdmsLoading, isDistrictLoading]);
|
|
@@ -81072,6 +82403,7 @@ const componentsToRegister = {
|
|
|
81072
82403
|
LayoutStepFormTwo,
|
|
81073
82404
|
LayoutStepFormThree,
|
|
81074
82405
|
LayoutStepScrutiny,
|
|
82406
|
+
LayoutStepGeoTag,
|
|
81075
82407
|
LayoutStepFormFour,
|
|
81076
82408
|
LayoutApplicantDetails,
|
|
81077
82409
|
LayoutProfessionalDetails,
|