@djb25/digit-ui-module-wt 1.0.77 → 1.0.79
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 +407 -132
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +527 -252
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TickMark, ArrowDown, ViewsIcon, TextInput, MobileNumber, CardLabelError, Dropdown, DatePicker, SubmitBar, Card, Table, Loader, Modal, Toast, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, CitizenHomeCard, CHBIcon, PropertyHouse, HomeIcon, KeyNote, CardHeader, FormStep, CardLabel, RadioButtons, UploadFile, TextArea, CheckBox, CardSubHeader, StatusTable, Row, GenericFileIcon, LinkButton, EditIcon, CardText, Banner, EmployeeModuleCard, CloseSvg, Label, LinkLabel, ActionBar, DetailsCard, SearchAction, FilterAction, PopUp, ShippingTruck, CustomNameDropdown, MultiSelectDropdown, CollapsibleCardPage as CollapsibleCardPage$1, LabelFieldPair, AddIcon, ToggleSwitch, Menu, CheckSvg, LayoutWrapper, Header, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, MultiLink, RemoveableTag, FormComposer, PDFSvg, MultiUploadWrapper, Close as Close$g, BreakLine, InfoBannerIcon, ButtonSelector, LocationIcon, PTIcon, ApplicantDetails, AddressDetails } from '@djb25/digit-ui-react-components';
|
|
2
|
-
import React, { useRef, useEffect
|
|
2
|
+
import React, { useRef, useEffect, useState, useCallback, useMemo, Fragment, useReducer } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useLocation, useRouteMatch, useHistory, Switch, Route, Redirect, Link, useParams } from 'react-router-dom';
|
|
5
5
|
import { useQueryClient } from 'react-query';
|
|
@@ -380,7 +380,7 @@ const WTCreate = () => {
|
|
|
380
380
|
const formStepRoutes = ["applicant-details", "address-details", "request-details", "toiletRequest-details", "treePruningRequest-details"];
|
|
381
381
|
const isFormStep = formStepRoutes.some(route => pathname.includes(route));
|
|
382
382
|
const sectionRefs = useRef({});
|
|
383
|
-
useEffect
|
|
383
|
+
useEffect(() => {
|
|
384
384
|
if (isFormStep) {
|
|
385
385
|
const currentRoute = pathname.split("/").pop();
|
|
386
386
|
if (sectionRefs.current[currentRoute]) {
|
|
@@ -1591,7 +1591,7 @@ const SearchApp = _ref => {
|
|
|
1591
1591
|
setPayload(payload);
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
|
-
useEffect
|
|
1594
|
+
useEffect(() => {
|
|
1595
1595
|
if (showToast) {
|
|
1596
1596
|
const timer = setTimeout(() => {
|
|
1597
1597
|
setShowToast(null);
|
|
@@ -1962,7 +1962,7 @@ const ExistingBookingDetails = _ref => {
|
|
|
1962
1962
|
setExistingDataSet(newSessionData);
|
|
1963
1963
|
setIsDataSet(true);
|
|
1964
1964
|
};
|
|
1965
|
-
useEffect
|
|
1965
|
+
useEffect(() => {
|
|
1966
1966
|
const submitCallback = () => {
|
|
1967
1967
|
if (isDataSet) {
|
|
1968
1968
|
onSubmit();
|
|
@@ -1979,7 +1979,7 @@ const ExistingBookingDetails = _ref => {
|
|
|
1979
1979
|
offset: paginationOffset,
|
|
1980
1980
|
tenantId
|
|
1981
1981
|
};
|
|
1982
|
-
useEffect
|
|
1982
|
+
useEffect(() => {
|
|
1983
1983
|
setFilters(initialFilters);
|
|
1984
1984
|
}, [offset]);
|
|
1985
1985
|
const _Digit$Hooks$wt$useTa = Digit.Hooks.wt.useTankerSearchAPI({
|
|
@@ -2083,7 +2083,7 @@ const BookingPopup = _ref => {
|
|
|
2083
2083
|
setIsDataSet(false);
|
|
2084
2084
|
}
|
|
2085
2085
|
}, [isDataSet, onSubmit]);
|
|
2086
|
-
useEffect
|
|
2086
|
+
useEffect(() => {
|
|
2087
2087
|
handleSubmit();
|
|
2088
2088
|
}, [handleSubmit]);
|
|
2089
2089
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Modal, {
|
|
@@ -2337,7 +2337,7 @@ const RequestDetails = _ref => {
|
|
|
2337
2337
|
setUploadedFile(null);
|
|
2338
2338
|
setFile(e.target.files[0]);
|
|
2339
2339
|
}
|
|
2340
|
-
useEffect
|
|
2340
|
+
useEffect(() => {
|
|
2341
2341
|
(function () {
|
|
2342
2342
|
try {
|
|
2343
2343
|
setError(null);
|
|
@@ -2387,7 +2387,7 @@ const RequestDetails = _ref => {
|
|
|
2387
2387
|
});
|
|
2388
2388
|
onSelect(config.key, request, false);
|
|
2389
2389
|
};
|
|
2390
|
-
useEffect
|
|
2390
|
+
useEffect(() => {
|
|
2391
2391
|
if (!tankerType && tankerTypeDetails !== null && tankerTypeDetails !== void 0 && tankerTypeDetails.length) {
|
|
2392
2392
|
settankerType(tankerTypeDetails[0]);
|
|
2393
2393
|
}
|
|
@@ -2876,7 +2876,7 @@ const WTAcknowledgement = _ref => {
|
|
|
2876
2876
|
storeData = _Digit$Hooks$useStore.data;
|
|
2877
2877
|
const _ref2 = storeData || {},
|
|
2878
2878
|
tenants = _ref2.tenants;
|
|
2879
|
-
useEffect
|
|
2879
|
+
useEffect(() => {
|
|
2880
2880
|
try {
|
|
2881
2881
|
data.tenantId = tenantId;
|
|
2882
2882
|
let formdata = waterTankerPayload(data);
|
|
@@ -3997,7 +3997,7 @@ const ApplicationCard = _ref => {
|
|
|
3997
3997
|
onFilterChange(params);
|
|
3998
3998
|
setPopup(false);
|
|
3999
3999
|
};
|
|
4000
|
-
useEffect
|
|
4000
|
+
useEffect(() => {
|
|
4001
4001
|
if (type) setPopup(true);
|
|
4002
4002
|
}, [type]);
|
|
4003
4003
|
const handlePopupClose = () => {
|
|
@@ -4086,7 +4086,7 @@ const ApplicationLinks = _ref => {
|
|
|
4086
4086
|
const hasAccess = accessTo => {
|
|
4087
4087
|
return roles.filter(role => accessTo.includes(role.code)).length;
|
|
4088
4088
|
};
|
|
4089
|
-
useEffect
|
|
4089
|
+
useEffect(() => {
|
|
4090
4090
|
let linksToShow = [];
|
|
4091
4091
|
allLinks.forEach(link => {
|
|
4092
4092
|
if (link.accessTo) {
|
|
@@ -4276,11 +4276,11 @@ const Inbox = _ref => {
|
|
|
4276
4276
|
data = _ref2.data,
|
|
4277
4277
|
searchFields = _ref2.searchFields,
|
|
4278
4278
|
rest = _objectWithoutPropertiesLoose(_ref2, _excluded$3);
|
|
4279
|
-
useEffect
|
|
4279
|
+
useEffect(() => {
|
|
4280
4280
|
if (rest !== null && rest !== void 0 && rest.revalidate) rest === null || rest === void 0 ? void 0 : rest.revalidate();
|
|
4281
4281
|
if (rest !== null && rest !== void 0 && rest.refetch) rest === null || rest === void 0 ? void 0 : rest.refetch();
|
|
4282
4282
|
}, []);
|
|
4283
|
-
useEffect
|
|
4283
|
+
useEffect(() => {
|
|
4284
4284
|
setPageOffset(0);
|
|
4285
4285
|
}, [searchParams]);
|
|
4286
4286
|
const fetchNextPage = () => {
|
|
@@ -4530,7 +4530,7 @@ const AddTripModal = _ref => {
|
|
|
4530
4530
|
const _useState2 = useState(""),
|
|
4531
4531
|
debouncedSearchQuery = _useState2[0],
|
|
4532
4532
|
setDebouncedSearchQuery = _useState2[1];
|
|
4533
|
-
useEffect
|
|
4533
|
+
useEffect(() => {
|
|
4534
4534
|
const handler = setTimeout(() => {
|
|
4535
4535
|
setDebouncedSearchQuery(searchQuery);
|
|
4536
4536
|
}, 500);
|
|
@@ -5028,7 +5028,7 @@ const FixedPointScheduleManagement = _ref => {
|
|
|
5028
5028
|
isLoading = _Digit$Hooks$wt$useFi.isLoading,
|
|
5029
5029
|
scheduleData = _Digit$Hooks$wt$useFi.data,
|
|
5030
5030
|
refetch = _Digit$Hooks$wt$useFi.refetch;
|
|
5031
|
-
useEffect
|
|
5031
|
+
useEffect(() => {
|
|
5032
5032
|
refetch && refetch();
|
|
5033
5033
|
}, []);
|
|
5034
5034
|
const _Digit$Hooks$wt$useFi2 = Digit.Hooks.wt.useFixedPointSearchAPI({
|
|
@@ -5774,7 +5774,7 @@ const Address = _ref => {
|
|
|
5774
5774
|
const _useState = useState(fallback),
|
|
5775
5775
|
address = _useState[0],
|
|
5776
5776
|
setAddress = _useState[1];
|
|
5777
|
-
useEffect
|
|
5777
|
+
useEffect(() => {
|
|
5778
5778
|
const resolve = function () {
|
|
5779
5779
|
try {
|
|
5780
5780
|
const _temp = function () {
|
|
@@ -5801,7 +5801,7 @@ const MapController = _ref2 => {
|
|
|
5801
5801
|
mapZoom = _ref2.mapZoom,
|
|
5802
5802
|
mapCenter = _ref2.mapCenter;
|
|
5803
5803
|
const map = useMap();
|
|
5804
|
-
useEffect
|
|
5804
|
+
useEffect(() => {
|
|
5805
5805
|
if (selectedDriver !== null && selectedDriver !== void 0 && selectedDriver.lat && selectedDriver !== null && selectedDriver !== void 0 && selectedDriver.lng) {
|
|
5806
5806
|
map.setView([selectedDriver.lat, selectedDriver.lng], mapZoom || 15, {
|
|
5807
5807
|
animate: true,
|
|
@@ -5809,7 +5809,7 @@ const MapController = _ref2 => {
|
|
|
5809
5809
|
});
|
|
5810
5810
|
}
|
|
5811
5811
|
}, [selectedDriver, map]);
|
|
5812
|
-
useEffect
|
|
5812
|
+
useEffect(() => {
|
|
5813
5813
|
if (Array.isArray(mapCenter) && mapCenter.length === 2) {
|
|
5814
5814
|
map.setView(mapCenter, mapZoom || 15, {
|
|
5815
5815
|
animate: true,
|
|
@@ -5817,7 +5817,7 @@ const MapController = _ref2 => {
|
|
|
5817
5817
|
});
|
|
5818
5818
|
}
|
|
5819
5819
|
}, [mapCenter, map]);
|
|
5820
|
-
useEffect
|
|
5820
|
+
useEffect(() => {
|
|
5821
5821
|
if (mapZoom) {
|
|
5822
5822
|
map.setZoom(mapZoom);
|
|
5823
5823
|
}
|
|
@@ -5836,7 +5836,7 @@ const useRoute = (start, end) => {
|
|
|
5836
5836
|
const _useState4 = useState(null),
|
|
5837
5837
|
error = _useState4[0],
|
|
5838
5838
|
setError = _useState4[1];
|
|
5839
|
-
useEffect
|
|
5839
|
+
useEffect(() => {
|
|
5840
5840
|
if (!start || !end) return;
|
|
5841
5841
|
const fetchRoute = function () {
|
|
5842
5842
|
try {
|
|
@@ -6074,7 +6074,7 @@ const DriverCard = _ref5 => {
|
|
|
6074
6074
|
lat: null,
|
|
6075
6075
|
lng: null
|
|
6076
6076
|
});
|
|
6077
|
-
useEffect
|
|
6077
|
+
useEffect(() => {
|
|
6078
6078
|
const resolveCurrent = function () {
|
|
6079
6079
|
try {
|
|
6080
6080
|
const _temp3 = function () {
|
|
@@ -6101,7 +6101,7 @@ const DriverCard = _ref5 => {
|
|
|
6101
6101
|
};
|
|
6102
6102
|
resolveCurrent();
|
|
6103
6103
|
}, [driver.lat, driver.lng]);
|
|
6104
|
-
useEffect
|
|
6104
|
+
useEffect(() => {
|
|
6105
6105
|
const resolveDest = function () {
|
|
6106
6106
|
try {
|
|
6107
6107
|
const _temp5 = function () {
|
|
@@ -6315,7 +6315,7 @@ function LiveTrackingSystem() {
|
|
|
6315
6315
|
const filteredVendorOptions = useMemo(() => {
|
|
6316
6316
|
return vendorOptions || [];
|
|
6317
6317
|
}, [vendorOptions]);
|
|
6318
|
-
useEffect
|
|
6318
|
+
useEffect(() => {
|
|
6319
6319
|
if (vendorOptions !== null && vendorOptions !== void 0 && vendorOptions.length && Object.keys(drivers).length) {
|
|
6320
6320
|
var _vendorOptions$, _vendorOptions$2, _vendorOptions$2$driv;
|
|
6321
6321
|
console.log("=== VENDOR DEBUG ===");
|
|
@@ -6335,7 +6335,7 @@ function LiveTrackingSystem() {
|
|
|
6335
6335
|
setSelectedFillingPoint(value);
|
|
6336
6336
|
setSelectedVendor(null);
|
|
6337
6337
|
};
|
|
6338
|
-
useEffect
|
|
6338
|
+
useEffect(() => {
|
|
6339
6339
|
const handleResize = () => {
|
|
6340
6340
|
setIsMobile(window.innerWidth <= 768);
|
|
6341
6341
|
if (window.innerWidth <= 768) {
|
|
@@ -6355,7 +6355,7 @@ function LiveTrackingSystem() {
|
|
|
6355
6355
|
autoConnect: false
|
|
6356
6356
|
});
|
|
6357
6357
|
}, []);
|
|
6358
|
-
useEffect
|
|
6358
|
+
useEffect(() => {
|
|
6359
6359
|
socket.connect();
|
|
6360
6360
|
socket.on("connect", () => {
|
|
6361
6361
|
console.log("Admin connected:", socket.id);
|
|
@@ -6404,7 +6404,7 @@ function LiveTrackingSystem() {
|
|
|
6404
6404
|
socket.disconnect();
|
|
6405
6405
|
};
|
|
6406
6406
|
}, [socket]);
|
|
6407
|
-
useEffect
|
|
6407
|
+
useEffect(() => {
|
|
6408
6408
|
if (selectedDriver !== null && selectedDriver !== void 0 && selectedDriver.lat && selectedDriver !== null && selectedDriver !== void 0 && selectedDriver.lng) {
|
|
6409
6409
|
setMapCenter([selectedDriver.lat, selectedDriver.lng]);
|
|
6410
6410
|
setMapZoom(15);
|
|
@@ -7256,7 +7256,7 @@ const AddFixFillAddress = _ref => {
|
|
|
7256
7256
|
}, [usedAddressTypes]);
|
|
7257
7257
|
const _Digit$Hooks$useCommo = Digit.Hooks.useCommonMDMS(tenantId, "egov-location", ["TenantBoundary"]),
|
|
7258
7258
|
egovLocationData = _Digit$Hooks$useCommo.data;
|
|
7259
|
-
useEffect
|
|
7259
|
+
useEffect(() => {
|
|
7260
7260
|
if (!city && allCities && allCities.length > 0) {
|
|
7261
7261
|
const defaultCity = allCities.find(c => c.code === tenantId) || allCities[0];
|
|
7262
7262
|
setCity(defaultCity);
|
|
@@ -7352,7 +7352,7 @@ const AddFixFillAddress = _ref => {
|
|
|
7352
7352
|
return pins.some(p => p.toString() === pincode);
|
|
7353
7353
|
});
|
|
7354
7354
|
}, [structuredLocality, pincode, fetchedPincodes]);
|
|
7355
|
-
useEffect
|
|
7355
|
+
useEffect(() => {
|
|
7356
7356
|
var _formData$address13;
|
|
7357
7357
|
const currentId = (formData === null || formData === void 0 ? void 0 : formData.id) || (formData === null || formData === void 0 ? void 0 : formData.bookingId) || (formData === null || formData === void 0 ? void 0 : (_formData$address13 = formData.address) === null || _formData$address13 === void 0 ? void 0 : _formData$address13.id);
|
|
7358
7358
|
if (currentId && lastBookingId.current !== currentId) {
|
|
@@ -7390,14 +7390,14 @@ const AddFixFillAddress = _ref => {
|
|
|
7390
7390
|
}
|
|
7391
7391
|
}
|
|
7392
7392
|
}, [formData === null || formData === void 0 ? void 0 : formData.address, city, allCities, structuredLocality]);
|
|
7393
|
-
useEffect
|
|
7393
|
+
useEffect(() => {
|
|
7394
7394
|
if (!navigator.geolocation) return;
|
|
7395
7395
|
navigator.geolocation.getCurrentPosition(pos => {
|
|
7396
7396
|
setLatitude(pos.coords.latitude);
|
|
7397
7397
|
setLongitude(pos.coords.longitude);
|
|
7398
7398
|
}, () => {});
|
|
7399
7399
|
}, []);
|
|
7400
|
-
useEffect
|
|
7400
|
+
useEffect(() => {
|
|
7401
7401
|
if (selectedAddress && Object.keys(selectedAddress).length) {
|
|
7402
7402
|
setPincode(selectedAddress.pinCode);
|
|
7403
7403
|
setCity(allCities === null || allCities === void 0 ? void 0 : allCities.find(c => c.name === selectedAddress.city));
|
|
@@ -7448,14 +7448,14 @@ const AddFixFillAddress = _ref => {
|
|
|
7448
7448
|
return Promise.reject(e);
|
|
7449
7449
|
}
|
|
7450
7450
|
};
|
|
7451
|
-
useEffect
|
|
7451
|
+
useEffect(() => {
|
|
7452
7452
|
if (!addressLine1 || addressLine1.trim().length < 5) return;
|
|
7453
7453
|
const timer = setTimeout(() => {
|
|
7454
7454
|
getLatLng();
|
|
7455
7455
|
}, 1000);
|
|
7456
7456
|
return () => clearTimeout(timer);
|
|
7457
7457
|
}, [addressLine1]);
|
|
7458
|
-
useEffect
|
|
7458
|
+
useEffect(() => {
|
|
7459
7459
|
if (!onSelect || !isInitialized.current) return;
|
|
7460
7460
|
const currentAddress = {
|
|
7461
7461
|
pincode: pincode || "",
|
|
@@ -7649,7 +7649,7 @@ const AddFillingPointAddress = () => {
|
|
|
7649
7649
|
[key]: _extends({}, prev[key] || {}, data)
|
|
7650
7650
|
}));
|
|
7651
7651
|
};
|
|
7652
|
-
useEffect
|
|
7652
|
+
useEffect(() => {
|
|
7653
7653
|
if (editId && editData !== null && editData !== void 0 && editData.fillingPoints) {
|
|
7654
7654
|
const data = editData.fillingPoints.find(item => item.id === editId);
|
|
7655
7655
|
if (data) {
|
|
@@ -7794,7 +7794,7 @@ const AddFixPointAddress = () => {
|
|
|
7794
7794
|
const _useState3 = useState(false),
|
|
7795
7795
|
isDataFetched = _useState3[0],
|
|
7796
7796
|
setIsDataFetched = _useState3[1];
|
|
7797
|
-
useEffect
|
|
7797
|
+
useEffect(() => {
|
|
7798
7798
|
if (editId && editData !== null && editData !== void 0 && editData.waterTankerBookingDetail && !isDataFetched) {
|
|
7799
7799
|
const data = editData.waterTankerBookingDetail.find(item => {
|
|
7800
7800
|
var _item$applicantDetail;
|
|
@@ -8188,7 +8188,7 @@ const ChangeView = _ref => {
|
|
|
8188
8188
|
center = _ref.center,
|
|
8189
8189
|
zoom = _ref.zoom;
|
|
8190
8190
|
const map = useMap();
|
|
8191
|
-
useEffect
|
|
8191
|
+
useEffect(() => {
|
|
8192
8192
|
if (center) {
|
|
8193
8193
|
map.setView(center, zoom || 15, {
|
|
8194
8194
|
animate: true
|
|
@@ -8260,7 +8260,7 @@ const PointAddressMap = _ref2 => {
|
|
|
8260
8260
|
return ((_fx$address = fx.address) === null || _fx$address === void 0 ? void 0 : _fx$address.latitude) && ((_fx$address2 = fx.address) === null || _fx$address2 === void 0 ? void 0 : _fx$address2.longitude);
|
|
8261
8261
|
});
|
|
8262
8262
|
}, [relatedFixedPoints]);
|
|
8263
|
-
useEffect
|
|
8263
|
+
useEffect(() => {
|
|
8264
8264
|
if (hoveredFixedPointId) {
|
|
8265
8265
|
const marker = markerRefs.current[hoveredFixedPointId];
|
|
8266
8266
|
if (marker) marker.openPopup();
|
|
@@ -9700,7 +9700,7 @@ const VendorMultiSelectDropdown = _ref => {
|
|
|
9700
9700
|
return state;
|
|
9701
9701
|
}
|
|
9702
9702
|
}
|
|
9703
|
-
useEffect
|
|
9703
|
+
useEffect(() => {
|
|
9704
9704
|
dispatch({
|
|
9705
9705
|
type: "REPLACE_COMPLETE_STATE",
|
|
9706
9706
|
payload: fnToSelectOptionThroughProvidedSelection(selected)
|
|
@@ -9951,7 +9951,7 @@ const VendorAssign = _ref => {
|
|
|
9951
9951
|
createWorkOrder = _Digit$Hooks$wt$useVe.mutate;
|
|
9952
9952
|
const _Digit$Hooks$wt$useVe2 = Digit.Hooks.wt.useVendorFillingMap(tenantId),
|
|
9953
9953
|
mapFixedFilling = _Digit$Hooks$wt$useVe2.mutate;
|
|
9954
|
-
useEffect
|
|
9954
|
+
useEffect(() => {
|
|
9955
9955
|
(function () {
|
|
9956
9956
|
try {
|
|
9957
9957
|
setError(null);
|
|
@@ -10831,7 +10831,7 @@ const WTMyApplications = () => {
|
|
|
10831
10831
|
tenantId,
|
|
10832
10832
|
MobileNumber: user === null || user === void 0 ? void 0 : user.mobileNumber
|
|
10833
10833
|
};
|
|
10834
|
-
useEffect
|
|
10834
|
+
useEffect(() => {
|
|
10835
10835
|
setFilters(initialFilters);
|
|
10836
10836
|
}, [filter]);
|
|
10837
10837
|
const _Digit$Hooks$wt$useTa = Digit.Hooks.wt.useTankerSearchAPI({
|
|
@@ -18130,7 +18130,7 @@ const Filter = _ref => {
|
|
|
18130
18130
|
})),
|
|
18131
18131
|
_searchParams = _useState[0],
|
|
18132
18132
|
setSearchParams = _useState[1];
|
|
18133
|
-
useEffect
|
|
18133
|
+
useEffect(() => {
|
|
18134
18134
|
setSearchParams(_extends({}, searchParams, {
|
|
18135
18135
|
services: (searchParams === null || searchParams === void 0 ? void 0 : searchParams.services) || []
|
|
18136
18136
|
}));
|
|
@@ -18487,7 +18487,7 @@ const WTEditApplicationModal = _ref => {
|
|
|
18487
18487
|
}),
|
|
18488
18488
|
fillingPointsData = _Digit$Hooks$wt$useFi2.data;
|
|
18489
18489
|
const mutation = Digit.Hooks.wt.useUpdateEmergencyBooking(tenantId);
|
|
18490
|
-
useEffect
|
|
18490
|
+
useEffect(() => {
|
|
18491
18491
|
if (applicationData) {
|
|
18492
18492
|
var _fixedPointsData$wate, _fixedPointsData$wate2, _fillingPointsData$fi, _selectedVendor$vehic, _selectedVendor$drive, _applicationData$appl5, _applicationData$appl6, _applicationData$appl7, _applicationData$appl8, _fixedPointObj$applic, _fixedPointObj$applic2, _applicationData$appl9, _applicationData$appl0, _applicationData$addr, _applicationData$addr2, _applicationData$addr3, _applicationData$addr4, _applicationData$addr5, _applicationData$addr6, _applicationData$addr7, _applicationData$addr8, _applicationData$addr9, _applicationData$addr0, _applicationData$addr1, _applicationData$addr10, _applicationData$addr11, _applicationData$addr12;
|
|
18493
18493
|
const tankerTypeObj = (TankerType === null || TankerType === void 0 ? void 0 : TankerType.find(tt => matchesAny(tt.code, [applicationData.tankerType]))) || {
|
|
@@ -19151,7 +19151,7 @@ const TripImages = _ref => {
|
|
|
19151
19151
|
endImageUrl = _useState3[0],
|
|
19152
19152
|
setEndImageUrl = _useState3[1];
|
|
19153
19153
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
19154
|
-
useEffect
|
|
19154
|
+
useEffect(() => {
|
|
19155
19155
|
const fetchImages = function () {
|
|
19156
19156
|
try {
|
|
19157
19157
|
const _temp4 = _catch(function () {
|
|
@@ -20049,13 +20049,13 @@ const ActionModal = _ref => {
|
|
|
20049
20049
|
selectedFinancialYear = _useState9[0],
|
|
20050
20050
|
setSelectedFinancialYear = _useState9[1];
|
|
20051
20051
|
const _useState0 = useState(false);
|
|
20052
|
-
useEffect
|
|
20052
|
+
useEffect(() => {
|
|
20053
20053
|
if (financialYearsData && financialYearsData["egf-master"]) {
|
|
20054
20054
|
var _financialYearsData$e;
|
|
20055
20055
|
setFinancialYears((_financialYearsData$e = financialYearsData["egf-master"]) === null || _financialYearsData$e === void 0 ? void 0 : _financialYearsData$e["FinancialYear"]);
|
|
20056
20056
|
}
|
|
20057
20057
|
}, [financialYearsData]);
|
|
20058
|
-
useEffect
|
|
20058
|
+
useEffect(() => {
|
|
20059
20059
|
var _approverData$Employe;
|
|
20060
20060
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
20061
20061
|
var _employee$user;
|
|
@@ -20068,7 +20068,7 @@ const ActionModal = _ref => {
|
|
|
20068
20068
|
function selectFile(e) {
|
|
20069
20069
|
setFile(e.target.files[0]);
|
|
20070
20070
|
}
|
|
20071
|
-
useEffect
|
|
20071
|
+
useEffect(() => {
|
|
20072
20072
|
(function () {
|
|
20073
20073
|
try {
|
|
20074
20074
|
setError(null);
|
|
@@ -20150,7 +20150,7 @@ const ActionModal = _ref => {
|
|
|
20150
20150
|
});
|
|
20151
20151
|
}
|
|
20152
20152
|
}
|
|
20153
|
-
useEffect
|
|
20153
|
+
useEffect(() => {
|
|
20154
20154
|
if (action) {
|
|
20155
20155
|
if (action !== null && action !== void 0 && action.showFinancialYearsModal) {
|
|
20156
20156
|
setConfig(configPTAssessProperty({
|
|
@@ -20276,13 +20276,13 @@ const ActionModal$1 = _ref => {
|
|
|
20276
20276
|
setFinancialYears = _useState8[1];
|
|
20277
20277
|
const _useState9 = useState(null),
|
|
20278
20278
|
selectedFinancialYear = _useState9[0];
|
|
20279
|
-
useEffect
|
|
20279
|
+
useEffect(() => {
|
|
20280
20280
|
if (financialYearsData && financialYearsData["egf-master"]) {
|
|
20281
20281
|
var _financialYearsData$e;
|
|
20282
20282
|
setFinancialYears((_financialYearsData$e = financialYearsData["egf-master"]) === null || _financialYearsData$e === void 0 ? void 0 : _financialYearsData$e["FinancialYear"]);
|
|
20283
20283
|
}
|
|
20284
20284
|
}, [financialYearsData]);
|
|
20285
|
-
useEffect
|
|
20285
|
+
useEffect(() => {
|
|
20286
20286
|
var _approverData$Employe;
|
|
20287
20287
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
20288
20288
|
var _employee$user;
|
|
@@ -20295,7 +20295,7 @@ const ActionModal$1 = _ref => {
|
|
|
20295
20295
|
function selectFile(e) {
|
|
20296
20296
|
setFile(e.target.files[0]);
|
|
20297
20297
|
}
|
|
20298
|
-
useEffect
|
|
20298
|
+
useEffect(() => {
|
|
20299
20299
|
(function () {
|
|
20300
20300
|
try {
|
|
20301
20301
|
setError(null);
|
|
@@ -20345,7 +20345,7 @@ const ActionModal$1 = _ref => {
|
|
|
20345
20345
|
Licenses: [applicationData]
|
|
20346
20346
|
});
|
|
20347
20347
|
}
|
|
20348
|
-
useEffect
|
|
20348
|
+
useEffect(() => {
|
|
20349
20349
|
if (action) {
|
|
20350
20350
|
setConfig(configTLApproverApplication({
|
|
20351
20351
|
t,
|
|
@@ -20447,7 +20447,7 @@ const ActionModal$2 = _ref => {
|
|
|
20447
20447
|
error = _useState7[0],
|
|
20448
20448
|
setError = _useState7[1];
|
|
20449
20449
|
const mobileView = Digit.Utils.browser.isMobile() ? true : false;
|
|
20450
|
-
useEffect
|
|
20450
|
+
useEffect(() => {
|
|
20451
20451
|
var _approverData$Employe;
|
|
20452
20452
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
20453
20453
|
var _employee$user;
|
|
@@ -20460,7 +20460,7 @@ const ActionModal$2 = _ref => {
|
|
|
20460
20460
|
function selectFile(e) {
|
|
20461
20461
|
setFile(e.target.files[0]);
|
|
20462
20462
|
}
|
|
20463
|
-
useEffect
|
|
20463
|
+
useEffect(() => {
|
|
20464
20464
|
(function () {
|
|
20465
20465
|
try {
|
|
20466
20466
|
setError(null);
|
|
@@ -20521,7 +20521,7 @@ const ActionModal$2 = _ref => {
|
|
|
20521
20521
|
bpa: false
|
|
20522
20522
|
});
|
|
20523
20523
|
}
|
|
20524
|
-
useEffect
|
|
20524
|
+
useEffect(() => {
|
|
20525
20525
|
if (action) {
|
|
20526
20526
|
setConfig(configBPAREGApproverApplication({
|
|
20527
20527
|
t,
|
|
@@ -20730,7 +20730,7 @@ const ActionModal$3 = _ref => {
|
|
|
20730
20730
|
const _useState8 = useState(null),
|
|
20731
20731
|
selectedFinancialYear = _useState8[0];
|
|
20732
20732
|
const mobileView = Digit.Utils.browser.isMobile() ? true : false;
|
|
20733
|
-
useEffect
|
|
20733
|
+
useEffect(() => {
|
|
20734
20734
|
var _approverData$Employe;
|
|
20735
20735
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
20736
20736
|
var _employee$user;
|
|
@@ -20743,7 +20743,7 @@ const ActionModal$3 = _ref => {
|
|
|
20743
20743
|
function selectFile(e) {
|
|
20744
20744
|
setFile(e.target.files[0]);
|
|
20745
20745
|
}
|
|
20746
|
-
useEffect
|
|
20746
|
+
useEffect(() => {
|
|
20747
20747
|
(function () {
|
|
20748
20748
|
try {
|
|
20749
20749
|
setError(null);
|
|
@@ -20858,7 +20858,7 @@ const ActionModal$3 = _ref => {
|
|
|
20858
20858
|
result = (_result = result) === null || _result === void 0 ? void 0 : _result.concat(newApprovals !== null ? newApprovals.filter(ob => ob.label !== "").map(approval => approval === null || approval === void 0 ? void 0 : approval.label) : []);
|
|
20859
20859
|
return result;
|
|
20860
20860
|
};
|
|
20861
|
-
useEffect
|
|
20861
|
+
useEffect(() => {
|
|
20862
20862
|
if (action) {
|
|
20863
20863
|
setConfig(configBPAApproverApplication({
|
|
20864
20864
|
t,
|
|
@@ -20988,7 +20988,7 @@ const ActionModal$4 = _ref => {
|
|
|
20988
20988
|
setError = _useState7[1];
|
|
20989
20989
|
const mobileView = Digit.Utils.browser.isMobile() ? true : false;
|
|
20990
20990
|
const history = useHistory();
|
|
20991
|
-
useEffect
|
|
20991
|
+
useEffect(() => {
|
|
20992
20992
|
var _approverData$Employe;
|
|
20993
20993
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
20994
20994
|
var _employee$user;
|
|
@@ -21001,7 +21001,7 @@ const ActionModal$4 = _ref => {
|
|
|
21001
21001
|
function selectFile(e) {
|
|
21002
21002
|
setFile(e.target.files[0]);
|
|
21003
21003
|
}
|
|
21004
|
-
useEffect
|
|
21004
|
+
useEffect(() => {
|
|
21005
21005
|
(function () {
|
|
21006
21006
|
try {
|
|
21007
21007
|
setError(null);
|
|
@@ -21070,7 +21070,7 @@ const ActionModal$4 = _ref => {
|
|
|
21070
21070
|
isNoc: true
|
|
21071
21071
|
});
|
|
21072
21072
|
}
|
|
21073
|
-
useEffect
|
|
21073
|
+
useEffect(() => {
|
|
21074
21074
|
if (action) {
|
|
21075
21075
|
setConfig(configNOCApproverApplication({
|
|
21076
21076
|
t,
|
|
@@ -21970,7 +21970,7 @@ const ActionModal$5 = _ref => {
|
|
|
21970
21970
|
setError = _useState7[1];
|
|
21971
21971
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
21972
21972
|
const isEmployee = window.location.href.includes("/employee");
|
|
21973
|
-
useEffect
|
|
21973
|
+
useEffect(() => {
|
|
21974
21974
|
var _approverData$Employe;
|
|
21975
21975
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
21976
21976
|
var _employee$user;
|
|
@@ -21983,7 +21983,7 @@ const ActionModal$5 = _ref => {
|
|
|
21983
21983
|
function selectFile(e) {
|
|
21984
21984
|
setFile(e.target.files[0]);
|
|
21985
21985
|
}
|
|
21986
|
-
useEffect
|
|
21986
|
+
useEffect(() => {
|
|
21987
21987
|
(function () {
|
|
21988
21988
|
try {
|
|
21989
21989
|
setError(null);
|
|
@@ -22140,19 +22140,6 @@ const ActionModal$5 = _ref => {
|
|
|
22140
22140
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
|
|
22141
22141
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
|
|
22142
22142
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
|
|
22143
|
-
const inspectionInformationData = sessionStorage.getItem("Digit.INSPECTION_INFORMATION_DATA");
|
|
22144
|
-
if (inspectionInformationData) {
|
|
22145
|
-
try {
|
|
22146
|
-
const parsedInspectionData = JSON.parse(inspectionInformationData);
|
|
22147
|
-
if (parsedInspectionData !== null && parsedInspectionData !== void 0 && parsedInspectionData.inspectionDate) {
|
|
22148
|
-
const dateVal = parsedInspectionData.inspectionDate;
|
|
22149
|
-
parsedInspectionData.inspectionDate = typeof dateVal === 'string' ? new Date(dateVal).getTime() : dateVal;
|
|
22150
|
-
}
|
|
22151
|
-
applicationData.inspectionInformation = parsedInspectionData;
|
|
22152
|
-
} catch (e) {
|
|
22153
|
-
console.error("Error parsing inspection information data", e);
|
|
22154
|
-
}
|
|
22155
|
-
}
|
|
22156
22143
|
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
22157
22144
|
WaterConnection: applicationData,
|
|
22158
22145
|
disconnectRequest: false,
|
|
@@ -22164,7 +22151,7 @@ const ActionModal$5 = _ref => {
|
|
|
22164
22151
|
});
|
|
22165
22152
|
}
|
|
22166
22153
|
}
|
|
22167
|
-
useEffect
|
|
22154
|
+
useEffect(() => {
|
|
22168
22155
|
var _applicationData13, _applicationData13$pr, _applicationData14, _applicationData14$pr;
|
|
22169
22156
|
if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : (_applicationData13$pr = _applicationData13.processInstance) === null || _applicationData13$pr === void 0 ? void 0 : _applicationData13$pr.businessService) == "DisconnectWSConnection" || ((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : (_applicationData14$pr = _applicationData14.processInstance) === null || _applicationData14$pr === void 0 ? void 0 : _applicationData14$pr.businessService) == "DisconnectSWConnection") {
|
|
22170
22157
|
if (action) {
|
|
@@ -22290,7 +22277,7 @@ const ActionModal$6 = _ref => {
|
|
|
22290
22277
|
const _useState7 = useState(null),
|
|
22291
22278
|
setError = _useState7[1];
|
|
22292
22279
|
const _useState8 = useState(false);
|
|
22293
|
-
useEffect
|
|
22280
|
+
useEffect(() => {
|
|
22294
22281
|
var _approverData$Employe;
|
|
22295
22282
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
22296
22283
|
var _employee$user;
|
|
@@ -22303,7 +22290,7 @@ const ActionModal$6 = _ref => {
|
|
|
22303
22290
|
function selectFile(e) {
|
|
22304
22291
|
setFile(e.target.files[0]);
|
|
22305
22292
|
}
|
|
22306
|
-
useEffect
|
|
22293
|
+
useEffect(() => {
|
|
22307
22294
|
(function () {
|
|
22308
22295
|
try {
|
|
22309
22296
|
setError(null);
|
|
@@ -22356,7 +22343,7 @@ const ActionModal$6 = _ref => {
|
|
|
22356
22343
|
})]
|
|
22357
22344
|
});
|
|
22358
22345
|
}
|
|
22359
|
-
useEffect
|
|
22346
|
+
useEffect(() => {
|
|
22360
22347
|
if (action) {
|
|
22361
22348
|
setConfig(configPTRApproverApplication({
|
|
22362
22349
|
t,
|
|
@@ -22453,7 +22440,7 @@ const ActionModal$7 = _ref => {
|
|
|
22453
22440
|
const _useState5 = useState(null),
|
|
22454
22441
|
uploadedFile = _useState5[0],
|
|
22455
22442
|
setUploadedFile = _useState5[1];
|
|
22456
|
-
useEffect
|
|
22443
|
+
useEffect(() => {
|
|
22457
22444
|
var _approverData$Employe;
|
|
22458
22445
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
22459
22446
|
var _employee$user;
|
|
@@ -22477,7 +22464,7 @@ const ActionModal$7 = _ref => {
|
|
|
22477
22464
|
})
|
|
22478
22465
|
});
|
|
22479
22466
|
}
|
|
22480
|
-
useEffect
|
|
22467
|
+
useEffect(() => {
|
|
22481
22468
|
if ((action === null || action === void 0 ? void 0 : action.state) === "INITIATED") {
|
|
22482
22469
|
history.push("/digit-ui/employee/asset/assetservice/edit/" + ("" + (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo)));
|
|
22483
22470
|
} else {
|
|
@@ -22580,7 +22567,7 @@ const ActionModal$8 = _ref => {
|
|
|
22580
22567
|
const _useState7 = useState(null),
|
|
22581
22568
|
setError = _useState7[1];
|
|
22582
22569
|
const _useState8 = useState(false);
|
|
22583
|
-
useEffect
|
|
22570
|
+
useEffect(() => {
|
|
22584
22571
|
var _approverData$Employe;
|
|
22585
22572
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
22586
22573
|
var _employee$user;
|
|
@@ -22593,7 +22580,7 @@ const ActionModal$8 = _ref => {
|
|
|
22593
22580
|
function selectFile(e) {
|
|
22594
22581
|
setFile(e.target.files[0]);
|
|
22595
22582
|
}
|
|
22596
|
-
useEffect
|
|
22583
|
+
useEffect(() => {
|
|
22597
22584
|
(function () {
|
|
22598
22585
|
try {
|
|
22599
22586
|
setError(null);
|
|
@@ -22646,7 +22633,7 @@ const ActionModal$8 = _ref => {
|
|
|
22646
22633
|
})
|
|
22647
22634
|
});
|
|
22648
22635
|
}
|
|
22649
|
-
useEffect
|
|
22636
|
+
useEffect(() => {
|
|
22650
22637
|
if (action) {
|
|
22651
22638
|
setConfig(configCHBApproverApplication({
|
|
22652
22639
|
t,
|
|
@@ -22746,7 +22733,7 @@ const ActionModal$9 = _ref => {
|
|
|
22746
22733
|
const _useState8 = useState(null),
|
|
22747
22734
|
setError = _useState8[1];
|
|
22748
22735
|
const _useState9 = useState(false);
|
|
22749
|
-
useEffect
|
|
22736
|
+
useEffect(() => {
|
|
22750
22737
|
var _approverData$Employe;
|
|
22751
22738
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
22752
22739
|
var _employee$user;
|
|
@@ -22759,7 +22746,7 @@ const ActionModal$9 = _ref => {
|
|
|
22759
22746
|
function selectFile(e) {
|
|
22760
22747
|
setFile(e.target.files[0]);
|
|
22761
22748
|
}
|
|
22762
|
-
useEffect
|
|
22749
|
+
useEffect(() => {
|
|
22763
22750
|
(function () {
|
|
22764
22751
|
try {
|
|
22765
22752
|
setError(null);
|
|
@@ -22816,7 +22803,7 @@ const ActionModal$9 = _ref => {
|
|
|
22816
22803
|
})]
|
|
22817
22804
|
});
|
|
22818
22805
|
}
|
|
22819
|
-
useEffect
|
|
22806
|
+
useEffect(() => {
|
|
22820
22807
|
if (action) {
|
|
22821
22808
|
setConfig(configEWApproverApplication({
|
|
22822
22809
|
t,
|
|
@@ -22917,7 +22904,7 @@ const ActionModal$a = _ref => {
|
|
|
22917
22904
|
const _useState8 = useState(false),
|
|
22918
22905
|
isUploading = _useState8[0],
|
|
22919
22906
|
setIsUploading = _useState8[1];
|
|
22920
|
-
useEffect
|
|
22907
|
+
useEffect(() => {
|
|
22921
22908
|
var _approverData$Employe;
|
|
22922
22909
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
22923
22910
|
var _employee$user;
|
|
@@ -22931,7 +22918,7 @@ const ActionModal$a = _ref => {
|
|
|
22931
22918
|
setIsUploading(true);
|
|
22932
22919
|
setFile(e.target.files[0]);
|
|
22933
22920
|
}
|
|
22934
|
-
useEffect
|
|
22921
|
+
useEffect(() => {
|
|
22935
22922
|
(function () {
|
|
22936
22923
|
try {
|
|
22937
22924
|
setError(null);
|
|
@@ -22993,7 +22980,7 @@ const ActionModal$a = _ref => {
|
|
|
22993
22980
|
})
|
|
22994
22981
|
});
|
|
22995
22982
|
}
|
|
22996
|
-
useEffect
|
|
22983
|
+
useEffect(() => {
|
|
22997
22984
|
setConfig(configSVApproverApplication({
|
|
22998
22985
|
t,
|
|
22999
22986
|
action,
|
|
@@ -23205,7 +23192,7 @@ const ActionModal$b = _ref => {
|
|
|
23205
23192
|
const _useState8 = useState(null),
|
|
23206
23193
|
selectVehicle = _useState8[0],
|
|
23207
23194
|
setSelectVehicle = _useState8[1];
|
|
23208
|
-
useEffect
|
|
23195
|
+
useEffect(() => {
|
|
23209
23196
|
var _approverData$Employe;
|
|
23210
23197
|
setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
|
|
23211
23198
|
var _employee$user;
|
|
@@ -23218,7 +23205,7 @@ const ActionModal$b = _ref => {
|
|
|
23218
23205
|
function selectFile(e) {
|
|
23219
23206
|
setFile(e.target.files[0]);
|
|
23220
23207
|
}
|
|
23221
|
-
useEffect
|
|
23208
|
+
useEffect(() => {
|
|
23222
23209
|
(function () {
|
|
23223
23210
|
try {
|
|
23224
23211
|
setError(null);
|
|
@@ -23290,7 +23277,7 @@ const ActionModal$b = _ref => {
|
|
|
23290
23277
|
};
|
|
23291
23278
|
submitAction(requestPayload);
|
|
23292
23279
|
}
|
|
23293
|
-
useEffect
|
|
23280
|
+
useEffect(() => {
|
|
23294
23281
|
if (action) {
|
|
23295
23282
|
setConfig(configWTApproverApplication({
|
|
23296
23283
|
t,
|
|
@@ -23540,7 +23527,7 @@ const BPADocuments = _ref => {
|
|
|
23540
23527
|
const _Digit$Hooks$obps$use2 = Digit.Hooks.obps.useMDMS(stateId, "common-masters", ["DocumentType"]),
|
|
23541
23528
|
commonDocsLoading = _Digit$Hooks$obps$use2.isLoading,
|
|
23542
23529
|
commonDocs = _Digit$Hooks$obps$use2.data;
|
|
23543
|
-
useEffect
|
|
23530
|
+
useEffect(() => {
|
|
23544
23531
|
var _bpaDocs$BPA, _filtredBpaDocs, _filtredBpaDocs$, _filtredBpaDocs$$docT;
|
|
23545
23532
|
let filtredBpaDocs = [];
|
|
23546
23533
|
if (bpaDocs !== null && bpaDocs !== void 0 && (_bpaDocs$BPA = bpaDocs.BPA) !== null && _bpaDocs$BPA !== void 0 && _bpaDocs$BPA.DocTypeMapping) {
|
|
@@ -23577,7 +23564,7 @@ const BPADocuments = _ref => {
|
|
|
23577
23564
|
sessionStorage.setItem("BPA_DOCUMENTS", JSON.stringify(documentsList));
|
|
23578
23565
|
setBpaTaxDocuments(documentsList);
|
|
23579
23566
|
}, [!bpaDocsLoading, !commonDocsLoading]);
|
|
23580
|
-
useEffect
|
|
23567
|
+
useEffect(() => {
|
|
23581
23568
|
let count = 0;
|
|
23582
23569
|
bpaTaxDocuments.map(doc => {
|
|
23583
23570
|
let isRequired = false;
|
|
@@ -23592,7 +23579,7 @@ const BPADocuments = _ref => {
|
|
|
23592
23579
|
});
|
|
23593
23580
|
if ((count == "0" || count == 0) && documents.length > 0) setEnableSubmit(false);else setEnableSubmit(true);
|
|
23594
23581
|
}, [documents, checkRequiredFields]);
|
|
23595
|
-
useEffect
|
|
23582
|
+
useEffect(() => {
|
|
23596
23583
|
if (applicationStatus === "DOC_VERIFICATION_INPROGRESS" && (actions === null || actions === void 0 ? void 0 : actions.length) > 0) setCheckEnablingDocs(true);else setCheckEnablingDocs(false);
|
|
23597
23584
|
}, [applicationData, bpaActionsDetails]);
|
|
23598
23585
|
return /*#__PURE__*/React.createElement("div", null, bpaTaxDocuments === null || bpaTaxDocuments === void 0 ? void 0 : bpaTaxDocuments.map((document, index) => {
|
|
@@ -23647,7 +23634,7 @@ function SelectDocument(_ref2) {
|
|
|
23647
23634
|
function selectfiles(e) {
|
|
23648
23635
|
e && setFile(e.file);
|
|
23649
23636
|
}
|
|
23650
|
-
useEffect
|
|
23637
|
+
useEffect(() => {
|
|
23651
23638
|
if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
|
|
23652
23639
|
setDocuments(prev => {
|
|
23653
23640
|
var _documents$find;
|
|
@@ -23664,7 +23651,7 @@ function SelectDocument(_ref2) {
|
|
|
23664
23651
|
});
|
|
23665
23652
|
}
|
|
23666
23653
|
}, [uploadedFile, selectedDocument]);
|
|
23667
|
-
useEffect
|
|
23654
|
+
useEffect(() => {
|
|
23668
23655
|
try {
|
|
23669
23656
|
if (selectArrayFiles.length > 0) {
|
|
23670
23657
|
sessionStorage.removeItem("BPA_DOCUMENTS");
|
|
@@ -23687,7 +23674,7 @@ function SelectDocument(_ref2) {
|
|
|
23687
23674
|
Promise.reject(e);
|
|
23688
23675
|
}
|
|
23689
23676
|
}, [selectArrayFiles, selectedDocument]);
|
|
23690
|
-
useEffect
|
|
23677
|
+
useEffect(() => {
|
|
23691
23678
|
}, [file]);
|
|
23692
23679
|
const getData = (index, state) => {
|
|
23693
23680
|
let data = Object.fromEntries(state);
|
|
@@ -23879,7 +23866,7 @@ function SelectDocument$1(_ref) {
|
|
|
23879
23866
|
function selectfile(e) {
|
|
23880
23867
|
e && setFile(e.file);
|
|
23881
23868
|
}
|
|
23882
|
-
useEffect
|
|
23869
|
+
useEffect(() => {
|
|
23883
23870
|
var _doc$dropdownData, _doc$dropdownData$;
|
|
23884
23871
|
if (doc !== null && doc !== void 0 && (_doc$dropdownData = doc.dropdownData) !== null && _doc$dropdownData !== void 0 && (_doc$dropdownData$ = _doc$dropdownData[0]) !== null && _doc$dropdownData$ !== void 0 && _doc$dropdownData$.code) {
|
|
23885
23872
|
setNocDocuments(prev => {
|
|
@@ -23901,7 +23888,7 @@ function SelectDocument$1(_ref) {
|
|
|
23901
23888
|
});
|
|
23902
23889
|
}
|
|
23903
23890
|
}, [uploadedFile]);
|
|
23904
|
-
useEffect
|
|
23891
|
+
useEffect(() => {
|
|
23905
23892
|
(function () {
|
|
23906
23893
|
try {
|
|
23907
23894
|
setError(null);
|
|
@@ -24015,11 +24002,11 @@ const NOCDocuments = _ref2 => {
|
|
|
24015
24002
|
error = _useState7[0],
|
|
24016
24003
|
setError = _useState7[1];
|
|
24017
24004
|
const isEmployee = window.location.href.includes("/employee/");
|
|
24018
|
-
useEffect
|
|
24005
|
+
useEffect(() => {
|
|
24019
24006
|
var _commonDocs$commonMa;
|
|
24020
24007
|
setCommonDocMaping(commonDocs === null || commonDocs === void 0 ? void 0 : (_commonDocs$commonMa = commonDocs["common-masters"]) === null || _commonDocs$commonMa === void 0 ? void 0 : _commonDocs$commonMa.DocumentType);
|
|
24021
24008
|
}, [commonDocs]);
|
|
24022
|
-
useEffect
|
|
24009
|
+
useEffect(() => {
|
|
24023
24010
|
var _filteredData, _filteredData$, _filteredData$$docTyp;
|
|
24024
24011
|
let documents = [];
|
|
24025
24012
|
let filteredData;
|
|
@@ -24062,7 +24049,7 @@ const NOCDocuments = _ref2 => {
|
|
|
24062
24049
|
setNocTaxDocuments(documentsList);
|
|
24063
24050
|
}
|
|
24064
24051
|
}, [nocDocs, commonDocMaping]);
|
|
24065
|
-
useEffect
|
|
24052
|
+
useEffect(() => {
|
|
24066
24053
|
if (bpaApplicationStatus === "NOC_VERIFICATION_INPROGRESS" && (actions === null || actions === void 0 ? void 0 : actions.length) > 0) setCheckEnablingDocs(true);else setCheckEnablingDocs(false);
|
|
24067
24054
|
}, [applicationData, bpaActionsDetails]);
|
|
24068
24055
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -24135,7 +24122,7 @@ const PermissionCheck = _ref => {
|
|
|
24135
24122
|
const _Digit$Hooks$useSessi2 = Digit.Hooks.useSessionStorage('OBPS_NEW_APPROVALS', []),
|
|
24136
24123
|
newApprovals = _Digit$Hooks$useSessi2[0],
|
|
24137
24124
|
setNewApprovals = _Digit$Hooks$useSessi2[1];
|
|
24138
|
-
useEffect
|
|
24125
|
+
useEffect(() => {
|
|
24139
24126
|
return () => {
|
|
24140
24127
|
Digit.SessionStorage.del("OBPS_NEW_APPROVALS");
|
|
24141
24128
|
Digit.SessionStorage.del("OBPS_APPROVAL_CHECKS");
|
|
@@ -24251,7 +24238,7 @@ function PropertyDocuments(_ref) {
|
|
|
24251
24238
|
const _useState4 = useState({}),
|
|
24252
24239
|
checkedMap = _useState4[0],
|
|
24253
24240
|
setCheckedMap = _useState4[1];
|
|
24254
|
-
useEffect
|
|
24241
|
+
useEffect(() => {
|
|
24255
24242
|
let requiredDocsCount = 0;
|
|
24256
24243
|
let checkedCount = 0;
|
|
24257
24244
|
documents === null || documents === void 0 ? void 0 : documents.forEach(document => {
|
|
@@ -24275,7 +24262,7 @@ function PropertyDocuments(_ref) {
|
|
|
24275
24262
|
detail: finalVerified
|
|
24276
24263
|
}));
|
|
24277
24264
|
}, [checkedMap, documents, applicationStatus]);
|
|
24278
|
-
useEffect
|
|
24265
|
+
useEffect(() => {
|
|
24279
24266
|
var _acc;
|
|
24280
24267
|
let acc = [];
|
|
24281
24268
|
documents === null || documents === void 0 ? void 0 : documents.forEach(element => {
|
|
@@ -24283,7 +24270,7 @@ function PropertyDocuments(_ref) {
|
|
|
24283
24270
|
});
|
|
24284
24271
|
setFilesArray((_acc = acc) === null || _acc === void 0 ? void 0 : _acc.map(value => value === null || value === void 0 ? void 0 : value.fileStoreId));
|
|
24285
24272
|
}, [documents]);
|
|
24286
|
-
useEffect
|
|
24273
|
+
useEffect(() => {
|
|
24287
24274
|
var _documents$;
|
|
24288
24275
|
if (filesArray !== null && filesArray !== void 0 && filesArray.length && (documents === null || documents === void 0 ? void 0 : (_documents$ = documents[0]) === null || _documents$ === void 0 ? void 0 : _documents$.BS) === "BillAmend") {
|
|
24289
24276
|
Digit.UploadServices.Filefetch(filesArray, Digit.ULBService.getCurrentTenantId()).then(res => {
|
|
@@ -25375,7 +25362,7 @@ const WSFeeEstimation = _ref => {
|
|
|
25375
25362
|
setValues = _useState5[1];
|
|
25376
25363
|
const stateCode = Digit.ULBService.getStateId();
|
|
25377
25364
|
const _Digit$Hooks$ws$useMD = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
|
|
25378
|
-
useEffect
|
|
25365
|
+
useEffect(() => {
|
|
25379
25366
|
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
|
|
25380
25367
|
const data = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails);
|
|
25381
25368
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
@@ -25769,8 +25756,10 @@ const InfoDetails = _ref2 => {
|
|
|
25769
25756
|
};
|
|
25770
25757
|
|
|
25771
25758
|
const ViewBreakup = _ref => {
|
|
25772
|
-
var
|
|
25773
|
-
let wsAdditionalDetails = _ref.wsAdditionalDetails
|
|
25759
|
+
var _breakUpData$calculat, _breakUpData$calculat2, _breakUpData$calculat3, _wsAdditionalDetails$8, _breakUpData$billSlab4, _breakUpData$billSlab5, _breakUpData$billSlab6, _breakUpData$billSlab7, _breakUpData$billSlab8, _breakUpData$billSlab9;
|
|
25760
|
+
let wsAdditionalDetails = _ref.wsAdditionalDetails,
|
|
25761
|
+
print = _ref.print,
|
|
25762
|
+
download = _ref.download;
|
|
25774
25763
|
const _useTranslation = useTranslation(),
|
|
25775
25764
|
t = _useTranslation.t;
|
|
25776
25765
|
const _useState = useState(false),
|
|
@@ -25779,6 +25768,44 @@ const ViewBreakup = _ref => {
|
|
|
25779
25768
|
const _useState2 = useState({}),
|
|
25780
25769
|
breakUpData = _useState2[0],
|
|
25781
25770
|
setBreakUpData = _useState2[1];
|
|
25771
|
+
const breakupRef = useRef(null);
|
|
25772
|
+
const formatNumber = function (value, maximumFractionDigits) {
|
|
25773
|
+
if (maximumFractionDigits === void 0) {
|
|
25774
|
+
maximumFractionDigits = 2;
|
|
25775
|
+
}
|
|
25776
|
+
return Number(value || 0).toLocaleString("en-IN", {
|
|
25777
|
+
maximumFractionDigits
|
|
25778
|
+
});
|
|
25779
|
+
};
|
|
25780
|
+
const formatCurrency = value => /*#__PURE__*/React.createElement("span", null, "\u20B9", formatNumber(value));
|
|
25781
|
+
const DetailRows = _ref2 => {
|
|
25782
|
+
let rows = _ref2.rows;
|
|
25783
|
+
return rows.map(_ref3 => {
|
|
25784
|
+
let label = _ref3.label,
|
|
25785
|
+
value = _ref3.value,
|
|
25786
|
+
_ref3$currency = _ref3.currency,
|
|
25787
|
+
currency = _ref3$currency === void 0 ? false : _ref3$currency,
|
|
25788
|
+
_ref3$unit = _ref3.unit,
|
|
25789
|
+
unit = _ref3$unit === void 0 ? "" : _ref3$unit,
|
|
25790
|
+
_ref3$isText = _ref3.isText,
|
|
25791
|
+
isText = _ref3$isText === void 0 ? false : _ref3$isText;
|
|
25792
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
25793
|
+
className: "border-none",
|
|
25794
|
+
rowContainerStyle: {
|
|
25795
|
+
margin: "0px"
|
|
25796
|
+
},
|
|
25797
|
+
labelStyle: {
|
|
25798
|
+
width: "50%"
|
|
25799
|
+
},
|
|
25800
|
+
key: label,
|
|
25801
|
+
label: label,
|
|
25802
|
+
text: currency ? formatCurrency(value) : isText ? value || "-" : "" + formatNumber(value) + unit,
|
|
25803
|
+
textStyle: {
|
|
25804
|
+
textAlign: "right"
|
|
25805
|
+
}
|
|
25806
|
+
});
|
|
25807
|
+
});
|
|
25808
|
+
};
|
|
25782
25809
|
const Heading = props => {
|
|
25783
25810
|
return /*#__PURE__*/React.createElement("h1", {
|
|
25784
25811
|
className: "heading-m"
|
|
@@ -25801,21 +25828,244 @@ const ViewBreakup = _ref => {
|
|
|
25801
25828
|
}, /*#__PURE__*/React.createElement(Close, null));
|
|
25802
25829
|
};
|
|
25803
25830
|
const onPopupOpen = () => {
|
|
25804
|
-
var _sessionBillFormData$;
|
|
25805
|
-
let breakupData = wsAdditionalDetails.additionalDetails
|
|
25831
|
+
var _wsAdditionalDetails$, _sessionBillFormData$;
|
|
25832
|
+
let breakupData = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$ === void 0 ? void 0 : _wsAdditionalDetails$.data) || {};
|
|
25806
25833
|
const sessionBillData = sessionStorage.getItem("Digit.ADHOC_BILL_ADD_REBATE_DATA");
|
|
25807
25834
|
const sessionBillFormData = sessionBillData ? JSON.parse(sessionBillData) : {};
|
|
25808
25835
|
if (sessionBillFormData !== null && sessionBillFormData !== void 0 && (_sessionBillFormData$ = sessionBillFormData.value) !== null && _sessionBillFormData$ !== void 0 && _sessionBillFormData$.totalAmount) breakupData = sessionBillFormData === null || sessionBillFormData === void 0 ? void 0 : sessionBillFormData.value;
|
|
25809
25836
|
setBreakUpData(breakupData);
|
|
25810
25837
|
showPopUp(true);
|
|
25811
25838
|
};
|
|
25839
|
+
const getBreakupReportDetails = () => {
|
|
25840
|
+
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _wsAdditionalDetails$4, _wsAdditionalDetails$5, _wsAdditionalDetails$6, _wsAdditionalDetails$7, _breakUpData$billSlab, _breakUpData$billSlab2, _breakUpData$billSlab3;
|
|
25841
|
+
const amountRows = function (rows) {
|
|
25842
|
+
if (rows === void 0) {
|
|
25843
|
+
rows = [];
|
|
25844
|
+
}
|
|
25845
|
+
return rows.map(row => ({
|
|
25846
|
+
title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
|
|
25847
|
+
value: "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount)
|
|
25848
|
+
}));
|
|
25849
|
+
};
|
|
25850
|
+
const connectionHolder = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : (_wsAdditionalDetails$4 = _wsAdditionalDetails$3.connectionHolders) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4[0];
|
|
25851
|
+
const applicantName = [connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.name, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.middleName, connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.lastName].filter(Boolean).join(" ") || "-";
|
|
25852
|
+
const mobileNumber = (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.mobileNumber) || "-";
|
|
25853
|
+
const appNumber = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$5 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$5 === void 0 ? void 0 : (_wsAdditionalDetails$6 = _wsAdditionalDetails$5.data) === null || _wsAdditionalDetails$6 === void 0 ? void 0 : _wsAdditionalDetails$6.applicationNo) || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$7 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$7 === void 0 ? void 0 : _wsAdditionalDetails$7.applicationNumber) || "-";
|
|
25854
|
+
return [{
|
|
25855
|
+
title: "Applicant Details",
|
|
25856
|
+
values: [{
|
|
25857
|
+
title: "Application Number",
|
|
25858
|
+
value: appNumber
|
|
25859
|
+
}, {
|
|
25860
|
+
title: "Applicant Name",
|
|
25861
|
+
value: applicantName
|
|
25862
|
+
}, {
|
|
25863
|
+
title: "Mobile Number",
|
|
25864
|
+
value: mobileNumber
|
|
25865
|
+
}]
|
|
25866
|
+
}, {
|
|
25867
|
+
title: t("WS_APPLICATION_FEE_HEADER"),
|
|
25868
|
+
values: amountRows([...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : _breakUpData$billSlab.FEE) || []), ...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab2 = breakUpData.billSlabData) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.CHARGES) || [])])
|
|
25869
|
+
}, {
|
|
25870
|
+
title: "Property details",
|
|
25871
|
+
values: propertyRows.map(_ref4 => {
|
|
25872
|
+
let label = _ref4.label,
|
|
25873
|
+
value = _ref4.value,
|
|
25874
|
+
currency = _ref4.currency,
|
|
25875
|
+
unit = _ref4.unit,
|
|
25876
|
+
isText = _ref4.isText;
|
|
25877
|
+
return {
|
|
25878
|
+
title: label,
|
|
25879
|
+
value: currency ? "\u20B9" + formatNumber(value) : isText ? value || "-" : "" + formatNumber(value) + unit
|
|
25880
|
+
};
|
|
25881
|
+
})
|
|
25882
|
+
}, {
|
|
25883
|
+
title: "Taxes",
|
|
25884
|
+
values: amountRows(breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : _breakUpData$billSlab3.TAX)
|
|
25885
|
+
}, {
|
|
25886
|
+
title: "Water demand details",
|
|
25887
|
+
values: waterDemandRows.map(_ref5 => {
|
|
25888
|
+
let label = _ref5.label,
|
|
25889
|
+
value = _ref5.value,
|
|
25890
|
+
currency = _ref5.currency,
|
|
25891
|
+
unit = _ref5.unit,
|
|
25892
|
+
isText = _ref5.isText;
|
|
25893
|
+
return {
|
|
25894
|
+
title: label,
|
|
25895
|
+
value: currency ? "\u20B9" + formatNumber(value) : isText ? value || "-" : "" + formatNumber(value) + unit
|
|
25896
|
+
};
|
|
25897
|
+
})
|
|
25898
|
+
}, {
|
|
25899
|
+
title: "Infrastructure charge details",
|
|
25900
|
+
values: infrastructureChargeRows.map(_ref6 => {
|
|
25901
|
+
let label = _ref6.label,
|
|
25902
|
+
value = _ref6.value,
|
|
25903
|
+
currency = _ref6.currency,
|
|
25904
|
+
unit = _ref6.unit,
|
|
25905
|
+
isText = _ref6.isText;
|
|
25906
|
+
return {
|
|
25907
|
+
title: label,
|
|
25908
|
+
value: currency ? "\u20B9" + formatNumber(value) : isText ? value || "-" : "" + formatNumber(value) + unit
|
|
25909
|
+
};
|
|
25910
|
+
})
|
|
25911
|
+
}, {
|
|
25912
|
+
title: "Total",
|
|
25913
|
+
values: [{
|
|
25914
|
+
title: t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
25915
|
+
value: "\u20B9" + formatNumber(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount)
|
|
25916
|
+
}]
|
|
25917
|
+
}].filter(section => section.values.length > 0);
|
|
25918
|
+
};
|
|
25919
|
+
const generateBreakupReport = mode => {
|
|
25920
|
+
var _Digit$Utils, _Digit$Utils$pdf;
|
|
25921
|
+
const generateReport = (_Digit$Utils = Digit.Utils) === null || _Digit$Utils === void 0 ? void 0 : (_Digit$Utils$pdf = _Digit$Utils.pdf) === null || _Digit$Utils$pdf === void 0 ? void 0 : _Digit$Utils$pdf.generateCalculationBreakupReport;
|
|
25922
|
+
if (typeof generateReport === "function") {
|
|
25923
|
+
return generateReport({
|
|
25924
|
+
tenantId: Digit.ULBService.getCurrentTenantId(),
|
|
25925
|
+
heading: t("WS_CALCULATION_BREAKUP"),
|
|
25926
|
+
details: getBreakupReportDetails(),
|
|
25927
|
+
t,
|
|
25928
|
+
mode
|
|
25929
|
+
});
|
|
25930
|
+
}
|
|
25931
|
+
return mode === "download" ? Digit.Download.PDF(breakupRef, t("WS_CALCULATION_BREAKUP")) : null;
|
|
25932
|
+
};
|
|
25933
|
+
const handleDownload = () => generateBreakupReport("download");
|
|
25934
|
+
const handlePrint = () => {
|
|
25935
|
+
var _Digit$Utils2, _Digit$Utils2$pdf, _breakupRef$current, _window$mSewaApp, _window$mSewaApp$isMs;
|
|
25936
|
+
if ((_Digit$Utils2 = Digit.Utils) !== null && _Digit$Utils2 !== void 0 && (_Digit$Utils2$pdf = _Digit$Utils2.pdf) !== null && _Digit$Utils2$pdf !== void 0 && _Digit$Utils2$pdf.generateCalculationBreakupReport) {
|
|
25937
|
+
return generateBreakupReport("print");
|
|
25938
|
+
}
|
|
25939
|
+
const content = (_breakupRef$current = breakupRef.current) === null || _breakupRef$current === void 0 ? void 0 : _breakupRef$current.innerHTML;
|
|
25940
|
+
if (!content) return;
|
|
25941
|
+
if ((_window$mSewaApp = window.mSewaApp) !== null && _window$mSewaApp !== void 0 && (_window$mSewaApp$isMs = _window$mSewaApp.isMsewaApp) !== null && _window$mSewaApp$isMs !== void 0 && _window$mSewaApp$isMs.call(_window$mSewaApp)) {
|
|
25942
|
+
window.mSewaApp.downloadBase64File(window.btoa(unescape(encodeURIComponent(content))), t("WS_CALCULATION_BREAKUP"));
|
|
25943
|
+
return;
|
|
25944
|
+
}
|
|
25945
|
+
const printWindow = window.open("", "");
|
|
25946
|
+
if (!printWindow) return;
|
|
25947
|
+
printWindow.document.write("<html><body>" + content + "</body></html>");
|
|
25948
|
+
printWindow.document.close();
|
|
25949
|
+
printWindow.focus();
|
|
25950
|
+
printWindow.print();
|
|
25951
|
+
};
|
|
25952
|
+
const propertyDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat = breakUpData.calculationDetail) === null || _breakUpData$calculat === void 0 ? void 0 : _breakUpData$calculat.propertyDetail;
|
|
25953
|
+
const waterDemandDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat2 = breakUpData.calculationDetail) === null || _breakUpData$calculat2 === void 0 ? void 0 : _breakUpData$calculat2.waterDemandDetail;
|
|
25954
|
+
const infrastructureChargeDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat3 = breakUpData.calculationDetail) === null || _breakUpData$calculat3 === void 0 ? void 0 : _breakUpData$calculat3.infrastructureChargeDetail;
|
|
25955
|
+
const propertyRows = propertyDetail ? [{
|
|
25956
|
+
label: "Property ID",
|
|
25957
|
+
value: propertyDetail.propertyId,
|
|
25958
|
+
isText: true
|
|
25959
|
+
}, {
|
|
25960
|
+
label: "Property type",
|
|
25961
|
+
value: propertyDetail.propertyType,
|
|
25962
|
+
isText: true
|
|
25963
|
+
}, {
|
|
25964
|
+
label: "Plot area",
|
|
25965
|
+
value: propertyDetail.landArea,
|
|
25966
|
+
unit: " (sq. meter.)"
|
|
25967
|
+
}, {
|
|
25968
|
+
label: "Built-up area",
|
|
25969
|
+
value: propertyDetail.superBuiltUpArea,
|
|
25970
|
+
unit: " (sq. meter.)"
|
|
25971
|
+
}, {
|
|
25972
|
+
label: "farArea",
|
|
25973
|
+
value: propertyDetail.farArea,
|
|
25974
|
+
isText: true
|
|
25975
|
+
}, {
|
|
25976
|
+
label: "coveredArea",
|
|
25977
|
+
value: propertyDetail.coveredArea,
|
|
25978
|
+
isText: true
|
|
25979
|
+
}, {
|
|
25980
|
+
label: "numberOfDwellingUnits",
|
|
25981
|
+
value: propertyDetail.numberOfDwellingUnits,
|
|
25982
|
+
isText: true
|
|
25983
|
+
}, {
|
|
25984
|
+
label: "numberOfBeds",
|
|
25985
|
+
value: propertyDetail.numberOfBeds,
|
|
25986
|
+
isText: true
|
|
25987
|
+
}, {
|
|
25988
|
+
label: "numberOfRooms",
|
|
25989
|
+
value: propertyDetail.numberOfRooms,
|
|
25990
|
+
isText: true
|
|
25991
|
+
}, {
|
|
25992
|
+
label: "numberOfStudents",
|
|
25993
|
+
value: propertyDetail.numberOfStudents,
|
|
25994
|
+
isText: true
|
|
25995
|
+
}, {
|
|
25996
|
+
label: "numberOfStaff",
|
|
25997
|
+
value: propertyDetail.numberOfStaff,
|
|
25998
|
+
isText: true
|
|
25999
|
+
}, {
|
|
26000
|
+
label: "Usage category",
|
|
26001
|
+
value: propertyDetail.usageCategory,
|
|
26002
|
+
isText: true
|
|
26003
|
+
}] : [];
|
|
26004
|
+
const waterDemandRows = waterDemandDetail ? [{
|
|
26005
|
+
label: "Calculated occupancy",
|
|
26006
|
+
value: waterDemandDetail.calculatedOccupancy,
|
|
26007
|
+
unit: " person"
|
|
26008
|
+
}, {
|
|
26009
|
+
label: "Applied LPCD",
|
|
26010
|
+
value: waterDemandDetail.chosenLpcd,
|
|
26011
|
+
unit: " LPD"
|
|
26012
|
+
}, {
|
|
26013
|
+
label: "Base demand",
|
|
26014
|
+
value: waterDemandDetail.baseDemand,
|
|
26015
|
+
unit: " LPD"
|
|
26016
|
+
}, {
|
|
26017
|
+
label: "Contingency/Floating Occupancy",
|
|
26018
|
+
value: waterDemandDetail.contingencyPercentage,
|
|
26019
|
+
unit: "%"
|
|
26020
|
+
}, {
|
|
26021
|
+
label: "Total water demand",
|
|
26022
|
+
value: waterDemandDetail.totalWaterDemandLPD,
|
|
26023
|
+
unit: " LPD"
|
|
26024
|
+
}] : [];
|
|
26025
|
+
const infrastructureChargeRows = infrastructureChargeDetail ? [{
|
|
26026
|
+
label: "Colony category",
|
|
26027
|
+
value: infrastructureChargeDetail.colonyCategory,
|
|
26028
|
+
isText: true
|
|
26029
|
+
}, {
|
|
26030
|
+
label: "Plot area",
|
|
26031
|
+
value: infrastructureChargeDetail.plotArea,
|
|
26032
|
+
unit: " (sq. meter.)"
|
|
26033
|
+
}, {
|
|
26034
|
+
label: "Water rate",
|
|
26035
|
+
value: infrastructureChargeDetail.waterRatePerLPD,
|
|
26036
|
+
currency: true
|
|
26037
|
+
}, {
|
|
26038
|
+
label: "Sewer rate",
|
|
26039
|
+
value: infrastructureChargeDetail.sewerRatePerLPD,
|
|
26040
|
+
currency: true
|
|
26041
|
+
}, {
|
|
26042
|
+
label: "Water Infra Charges",
|
|
26043
|
+
value: infrastructureChargeDetail.waterComponentIFC,
|
|
26044
|
+
currency: true
|
|
26045
|
+
}, {
|
|
26046
|
+
label: "Sewer Infra Charges",
|
|
26047
|
+
value: infrastructureChargeDetail.sewerComponentIFC,
|
|
26048
|
+
currency: true
|
|
26049
|
+
}, {
|
|
26050
|
+
label: "Rebate",
|
|
26051
|
+
value: infrastructureChargeDetail.rebatePercentage,
|
|
26052
|
+
unit: "%"
|
|
26053
|
+
}, {
|
|
26054
|
+
label: "Rebate amount",
|
|
26055
|
+
value: infrastructureChargeDetail.rebateAmount,
|
|
26056
|
+
currency: true
|
|
26057
|
+
}, {
|
|
26058
|
+
label: "Net IFC",
|
|
26059
|
+
value: infrastructureChargeDetail.netIFC,
|
|
26060
|
+
currency: true
|
|
26061
|
+
}] : [];
|
|
25812
26062
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
25813
26063
|
style: {
|
|
25814
26064
|
lineHeight: "19px",
|
|
25815
26065
|
maxWidth: "950px",
|
|
25816
26066
|
minWidth: "280px"
|
|
25817
26067
|
}
|
|
25818
|
-
}, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$ !== void 0 && _wsAdditionalDetails
|
|
26068
|
+
}, wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$8 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$8 !== void 0 && _wsAdditionalDetails$8.isViewBreakup ? /*#__PURE__*/React.createElement("div", {
|
|
25819
26069
|
onClick: e => onPopupOpen(),
|
|
25820
26070
|
style: {
|
|
25821
26071
|
marginTop: "12px"
|
|
@@ -25826,6 +26076,9 @@ const ViewBreakup = _ref => {
|
|
|
25826
26076
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
25827
26077
|
label: t("WS_CALCULATION_BREAKUP")
|
|
25828
26078
|
}),
|
|
26079
|
+
width: "950px",
|
|
26080
|
+
print: print || handlePrint,
|
|
26081
|
+
download: download || handleDownload,
|
|
25829
26082
|
headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
|
|
25830
26083
|
onClick: () => {
|
|
25831
26084
|
showPopUp(false);
|
|
@@ -25841,16 +26094,13 @@ const ViewBreakup = _ref => {
|
|
|
25841
26094
|
popupModuleMianStyles: {
|
|
25842
26095
|
paddingTop: "0px"
|
|
25843
26096
|
}
|
|
25844
|
-
}, /*#__PURE__*/React.createElement(
|
|
25845
|
-
|
|
25846
|
-
|
|
25847
|
-
paddingTop: "0px"
|
|
25848
|
-
}
|
|
25849
|
-
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
26097
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
26098
|
+
ref: breakupRef
|
|
26099
|
+
}, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
25850
26100
|
style: {
|
|
25851
26101
|
margin: "10px 0px"
|
|
25852
26102
|
}
|
|
25853
|
-
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$
|
|
26103
|
+
}, t("WS_APPLICATION_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab4 = breakUpData.billSlabData) === null || _breakUpData$billSlab4 === void 0 ? void 0 : (_breakUpData$billSlab5 = _breakUpData$billSlab4.FEE) === null || _breakUpData$billSlab5 === void 0 ? void 0 : _breakUpData$billSlab5.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
25854
26104
|
className: "border-none",
|
|
25855
26105
|
rowContainerStyle: {
|
|
25856
26106
|
margin: "0px"
|
|
@@ -25864,11 +26114,7 @@ const ViewBreakup = _ref => {
|
|
|
25864
26114
|
textStyle: {
|
|
25865
26115
|
textAlign: "right"
|
|
25866
26116
|
}
|
|
25867
|
-
})), /*#__PURE__*/React.createElement(
|
|
25868
|
-
style: {
|
|
25869
|
-
margin: "10px 0px"
|
|
25870
|
-
}
|
|
25871
|
-
}, t("WS_SERVICE_FEE_HEADER")), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : (_breakUpData$billSlab4 = _breakUpData$billSlab3.CHARGES) === null || _breakUpData$billSlab4 === void 0 ? void 0 : _breakUpData$billSlab4.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
26117
|
+
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab6 = breakUpData.billSlabData) === null || _breakUpData$billSlab6 === void 0 ? void 0 : (_breakUpData$billSlab7 = _breakUpData$billSlab6.CHARGES) === null || _breakUpData$billSlab7 === void 0 ? void 0 : _breakUpData$billSlab7.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
25872
26118
|
className: "border-none",
|
|
25873
26119
|
rowContainerStyle: {
|
|
25874
26120
|
margin: "0px"
|
|
@@ -25882,7 +26128,7 @@ const ViewBreakup = _ref => {
|
|
|
25882
26128
|
textStyle: {
|
|
25883
26129
|
textAlign: "right"
|
|
25884
26130
|
}
|
|
25885
|
-
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$
|
|
26131
|
+
})), breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab8 = breakUpData.billSlabData) === null || _breakUpData$billSlab8 === void 0 ? void 0 : (_breakUpData$billSlab9 = _breakUpData$billSlab8.TAX) === null || _breakUpData$billSlab9 === void 0 ? void 0 : _breakUpData$billSlab9.map(data => /*#__PURE__*/React.createElement(Row, {
|
|
25886
26132
|
className: "border-none",
|
|
25887
26133
|
rowContainerStyle: {
|
|
25888
26134
|
margin: "0px"
|
|
@@ -25896,6 +26142,24 @@ const ViewBreakup = _ref => {
|
|
|
25896
26142
|
textStyle: {
|
|
25897
26143
|
textAlign: "right"
|
|
25898
26144
|
}
|
|
26145
|
+
})), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
26146
|
+
style: {
|
|
26147
|
+
margin: "10px 0px"
|
|
26148
|
+
}
|
|
26149
|
+
}, "Property details"), /*#__PURE__*/React.createElement(DetailRows, {
|
|
26150
|
+
rows: propertyRows
|
|
26151
|
+
})), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
26152
|
+
style: {
|
|
26153
|
+
margin: "10px 0px"
|
|
26154
|
+
}
|
|
26155
|
+
}, "Water demand details"), /*#__PURE__*/React.createElement(DetailRows, {
|
|
26156
|
+
rows: waterDemandRows
|
|
26157
|
+
})), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
26158
|
+
style: {
|
|
26159
|
+
margin: "10px 0px"
|
|
26160
|
+
}
|
|
26161
|
+
}, "Infrastructure charge details"), /*#__PURE__*/React.createElement(DetailRows, {
|
|
26162
|
+
rows: infrastructureChargeRows
|
|
25899
26163
|
})), /*#__PURE__*/React.createElement("hr", {
|
|
25900
26164
|
style: {
|
|
25901
26165
|
color: "#cccccc",
|
|
@@ -25918,7 +26182,7 @@ const ViewBreakup = _ref => {
|
|
|
25918
26182
|
fontWeight: "700",
|
|
25919
26183
|
fontSize: "24px"
|
|
25920
26184
|
}
|
|
25921
|
-
})))));
|
|
26185
|
+
}))))));
|
|
25922
26186
|
};
|
|
25923
26187
|
|
|
25924
26188
|
const styles = {
|
|
@@ -26253,7 +26517,7 @@ const DueVerification = _ref => {
|
|
|
26253
26517
|
}
|
|
26254
26518
|
return baseColumns;
|
|
26255
26519
|
}, [t, handleRemarkChange, isPendingApproval]);
|
|
26256
|
-
useEffect
|
|
26520
|
+
useEffect(() => {
|
|
26257
26521
|
if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
|
|
26258
26522
|
setTableData(applicationData.dueVerification);
|
|
26259
26523
|
}
|
|
@@ -26287,7 +26551,7 @@ const DueVerification = _ref => {
|
|
|
26287
26551
|
fontWeight: "bold",
|
|
26288
26552
|
marginBottom: "16px"
|
|
26289
26553
|
}
|
|
26290
|
-
}, t("Due Verification")), /*#__PURE__*/React.createElement("div", {
|
|
26554
|
+
}, t("Due Verification")), !isActivation && /*#__PURE__*/React.createElement("div", {
|
|
26291
26555
|
style: {
|
|
26292
26556
|
display: "flex",
|
|
26293
26557
|
alignItems: "flex-end",
|
|
@@ -26322,7 +26586,7 @@ const DueVerification = _ref => {
|
|
|
26322
26586
|
flex: 1,
|
|
26323
26587
|
paddingBottom: "2px"
|
|
26324
26588
|
}
|
|
26325
|
-
},
|
|
26589
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
26326
26590
|
type: "button",
|
|
26327
26591
|
onClick: handleAdd,
|
|
26328
26592
|
style: {
|
|
@@ -26334,25 +26598,19 @@ const DueVerification = _ref => {
|
|
|
26334
26598
|
}
|
|
26335
26599
|
}, /*#__PURE__*/React.createElement(AddIcon, null)))), tableData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
26336
26600
|
style: {
|
|
26337
|
-
marginTop: "
|
|
26601
|
+
marginTop: "15px",
|
|
26338
26602
|
overflowX: "auto"
|
|
26339
26603
|
}
|
|
26340
26604
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
26341
26605
|
className: "customTable table-fixed-first-column table-border-style",
|
|
26342
26606
|
t: t,
|
|
26607
|
+
totalRecords: tableData.length,
|
|
26343
26608
|
disableSort: false,
|
|
26344
26609
|
autoSort: true,
|
|
26345
|
-
manualPagination:
|
|
26346
|
-
isPaginationRequired:
|
|
26610
|
+
manualPagination: true,
|
|
26611
|
+
isPaginationRequired: true,
|
|
26347
26612
|
data: tableData,
|
|
26348
|
-
columns: columns
|
|
26349
|
-
getCellProps: cellInfo => {
|
|
26350
|
-
return {
|
|
26351
|
-
style: {
|
|
26352
|
-
padding: "12px"
|
|
26353
|
-
}
|
|
26354
|
-
};
|
|
26355
|
-
}
|
|
26613
|
+
columns: columns
|
|
26356
26614
|
})));
|
|
26357
26615
|
};
|
|
26358
26616
|
|
|
@@ -26369,11 +26627,34 @@ const InspectionInformation = _ref => {
|
|
|
26369
26627
|
const _useState3 = useState(""),
|
|
26370
26628
|
inspectorName = _useState3[0],
|
|
26371
26629
|
setInspectorName = _useState3[1];
|
|
26372
|
-
useEffect
|
|
26630
|
+
useEffect(() => {
|
|
26373
26631
|
if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
|
|
26374
|
-
|
|
26375
|
-
|
|
26376
|
-
|
|
26632
|
+
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
26633
|
+
let matchedType = null;
|
|
26634
|
+
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
26635
|
+
if (inspectionCode) {
|
|
26636
|
+
matchedType = [{
|
|
26637
|
+
i18nKey: "ES_COMMON_SELECT",
|
|
26638
|
+
code: ""
|
|
26639
|
+
}, {
|
|
26640
|
+
i18nKey: "New Connection Visit",
|
|
26641
|
+
code: "new_connection_visit"
|
|
26642
|
+
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
26643
|
+
}
|
|
26644
|
+
setInspectionType(matchedType || null);
|
|
26645
|
+
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
26646
|
+
if (dateValue && typeof dateValue === 'number') {
|
|
26647
|
+
const d = new Date(dateValue);
|
|
26648
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
26649
|
+
} else if (dateValue && typeof dateValue === 'string' && dateValue.includes('-')) ; else if (dateValue) {
|
|
26650
|
+
const num = Number(dateValue);
|
|
26651
|
+
if (!isNaN(num)) {
|
|
26652
|
+
const d = new Date(num);
|
|
26653
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
26654
|
+
}
|
|
26655
|
+
}
|
|
26656
|
+
setInspectionDate(dateValue);
|
|
26657
|
+
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
26377
26658
|
}
|
|
26378
26659
|
}, [applicationData]);
|
|
26379
26660
|
const inspectionTypeOptions = [{
|
|
@@ -26383,6 +26664,22 @@ const InspectionInformation = _ref => {
|
|
|
26383
26664
|
i18nKey: "New Connection Visit",
|
|
26384
26665
|
code: "new_connection_visit"
|
|
26385
26666
|
}];
|
|
26667
|
+
const handleInspectionTypeChange = selected => {
|
|
26668
|
+
setInspectionType(selected);
|
|
26669
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
26670
|
+
applicationData.inspectionInformation.inspectionType = selected;
|
|
26671
|
+
};
|
|
26672
|
+
const handleInspectionDateChange = date => {
|
|
26673
|
+
setInspectionDate(date);
|
|
26674
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
26675
|
+
applicationData.inspectionInformation.inspectionDate = date ? new Date(date).getTime() : null;
|
|
26676
|
+
};
|
|
26677
|
+
const handleInspectorNameChange = e => {
|
|
26678
|
+
const val = e.target.value;
|
|
26679
|
+
setInspectorName(val);
|
|
26680
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
26681
|
+
applicationData.inspectionInformation.inspectorName = val;
|
|
26682
|
+
};
|
|
26386
26683
|
const readOnly = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
26387
26684
|
return /*#__PURE__*/React.createElement("div", {
|
|
26388
26685
|
style: {
|
|
@@ -26415,9 +26712,9 @@ const InspectionInformation = _ref => {
|
|
|
26415
26712
|
option: inspectionTypeOptions,
|
|
26416
26713
|
optionKey: "i18nKey",
|
|
26417
26714
|
selected: inspectionType,
|
|
26418
|
-
select:
|
|
26715
|
+
select: handleInspectionTypeChange,
|
|
26419
26716
|
t: t,
|
|
26420
|
-
|
|
26717
|
+
disable: readOnly
|
|
26421
26718
|
})), /*#__PURE__*/React.createElement("div", {
|
|
26422
26719
|
style: {
|
|
26423
26720
|
flex: 1
|
|
@@ -26430,7 +26727,7 @@ const InspectionInformation = _ref => {
|
|
|
26430
26727
|
}
|
|
26431
26728
|
}, t("Inspection Date")), /*#__PURE__*/React.createElement(DatePicker, {
|
|
26432
26729
|
date: inspectionDate,
|
|
26433
|
-
onChange:
|
|
26730
|
+
onChange: handleInspectionDateChange,
|
|
26434
26731
|
disabled: readOnly
|
|
26435
26732
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
26436
26733
|
style: {
|
|
@@ -26448,13 +26745,13 @@ const InspectionInformation = _ref => {
|
|
|
26448
26745
|
}
|
|
26449
26746
|
}, t("Inspector Name")), /*#__PURE__*/React.createElement(TextInput, {
|
|
26450
26747
|
value: inspectorName,
|
|
26451
|
-
onChange:
|
|
26748
|
+
onChange: handleInspectorNameChange,
|
|
26452
26749
|
disabled: readOnly
|
|
26453
26750
|
}))));
|
|
26454
26751
|
};
|
|
26455
26752
|
|
|
26456
26753
|
function ApplicationDetailsContent(_ref) {
|
|
26457
|
-
var
|
|
26754
|
+
var _applicationDetails$a, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
|
|
26458
26755
|
let applicationDetails = _ref.applicationDetails,
|
|
26459
26756
|
workflowDetails = _ref.workflowDetails,
|
|
26460
26757
|
isDataLoading = _ref.isDataLoading,
|
|
@@ -26468,7 +26765,6 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26468
26765
|
oldValue = _ref.oldValue,
|
|
26469
26766
|
_ref$isInfoLabel = _ref.isInfoLabel,
|
|
26470
26767
|
isInfoLabel = _ref$isInfoLabel === void 0 ? false : _ref$isInfoLabel;
|
|
26471
|
-
alert("ApplicationDetailsContent Loaded");
|
|
26472
26768
|
const _useTranslation = useTranslation(),
|
|
26473
26769
|
t = _useTranslation.t;
|
|
26474
26770
|
const _useState = useState(false),
|
|
@@ -26483,19 +26779,6 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26483
26779
|
const _useState2 = useState({}),
|
|
26484
26780
|
fetchBillData = _useState2[0],
|
|
26485
26781
|
updatefetchBillData = _useState2[1];
|
|
26486
|
-
const isMounted = React.useRef(true);
|
|
26487
|
-
useEffect(() => {
|
|
26488
|
-
return () => {
|
|
26489
|
-
isMounted.current = false;
|
|
26490
|
-
};
|
|
26491
|
-
}, []);
|
|
26492
|
-
const _useState3 = useState({
|
|
26493
|
-
loading: false,
|
|
26494
|
-
loaded: false,
|
|
26495
|
-
canLoad: false
|
|
26496
|
-
}),
|
|
26497
|
-
billData = _useState3[0],
|
|
26498
|
-
updateCanFetchBillData = _useState3[1];
|
|
26499
26782
|
const setBillData = function (tenantId, propertyIds, updatefetchBillData, updateCanFetchBillData) {
|
|
26500
26783
|
try {
|
|
26501
26784
|
return Promise.resolve(Digit.PTService.assessmentSearch({
|
|
@@ -26505,14 +26788,12 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26505
26788
|
}
|
|
26506
26789
|
})).then(function (assessmentData) {
|
|
26507
26790
|
function _temp2() {
|
|
26508
|
-
|
|
26509
|
-
|
|
26510
|
-
|
|
26511
|
-
|
|
26512
|
-
|
|
26513
|
-
|
|
26514
|
-
});
|
|
26515
|
-
}
|
|
26791
|
+
updatefetchBillData(billData);
|
|
26792
|
+
updateCanFetchBillData({
|
|
26793
|
+
loading: false,
|
|
26794
|
+
loaded: true,
|
|
26795
|
+
canLoad: true
|
|
26796
|
+
});
|
|
26516
26797
|
}
|
|
26517
26798
|
let billData = {};
|
|
26518
26799
|
const _temp = function (_assessmentData$Asses) {
|
|
@@ -26531,23 +26812,28 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26531
26812
|
return Promise.reject(e);
|
|
26532
26813
|
}
|
|
26533
26814
|
};
|
|
26534
|
-
|
|
26535
|
-
|
|
26536
|
-
|
|
26537
|
-
|
|
26538
|
-
|
|
26539
|
-
|
|
26540
|
-
|
|
26541
|
-
|
|
26542
|
-
|
|
26543
|
-
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
|
|
26547
|
-
|
|
26548
|
-
|
|
26549
|
-
|
|
26550
|
-
|
|
26815
|
+
const _useState3 = useState({
|
|
26816
|
+
loading: false,
|
|
26817
|
+
loaded: false,
|
|
26818
|
+
canLoad: false
|
|
26819
|
+
}),
|
|
26820
|
+
billData = _useState3[0],
|
|
26821
|
+
updateCanFetchBillData = _useState3[1];
|
|
26822
|
+
if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) === "ACTIVE" && !billData.loading && !billData.loaded && !billData.canLoad) {
|
|
26823
|
+
updateCanFetchBillData({
|
|
26824
|
+
loading: false,
|
|
26825
|
+
loaded: false,
|
|
26826
|
+
canLoad: true
|
|
26827
|
+
});
|
|
26828
|
+
}
|
|
26829
|
+
if (billData !== null && billData !== void 0 && billData.canLoad && !billData.loading && !billData.loaded) {
|
|
26830
|
+
updateCanFetchBillData({
|
|
26831
|
+
loading: true,
|
|
26832
|
+
loaded: false,
|
|
26833
|
+
canLoad: true
|
|
26834
|
+
});
|
|
26835
|
+
setBillData((applicationData === null || applicationData === void 0 ? void 0 : applicationData.tenantId) || tenantId, applicationData === null || applicationData === void 0 ? void 0 : applicationData.propertyId, updatefetchBillData, updateCanFetchBillData);
|
|
26836
|
+
}
|
|
26551
26837
|
const convertEpochToDateDMY = dateEpoch => {
|
|
26552
26838
|
if (dateEpoch == null || dateEpoch === undefined || dateEpoch === "") {
|
|
26553
26839
|
return "NA";
|
|
@@ -26732,11 +27018,6 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26732
27018
|
const handleViewClick = data => {
|
|
26733
27019
|
setShowPopup(true);
|
|
26734
27020
|
};
|
|
26735
|
-
console.log("applicationStatus", applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
26736
|
-
console.log("documents", (_detail = detail) === null || _detail === void 0 ? void 0 : (_detail$additionalDet = _detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.documents);
|
|
26737
|
-
console.log("dueVerification", applicationData === null || applicationData === void 0 ? void 0 : applicationData.dueVerification);
|
|
26738
|
-
console.log("inspectionInformation", applicationData === null || applicationData === void 0 ? void 0 : applicationData.inspectionInformation);
|
|
26739
|
-
console.log(detail);
|
|
26740
27021
|
return /*#__PURE__*/React.createElement(Card, {
|
|
26741
27022
|
style: {
|
|
26742
27023
|
position: "relative"
|
|
@@ -26750,7 +27031,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26750
27031
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
26751
27032
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
26752
27033
|
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
|
|
26753
|
-
var _detail$title, _detail$values, _detail$
|
|
27034
|
+
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
26754
27035
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
26755
27036
|
key: index
|
|
26756
27037
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -26941,69 +27222,63 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26941
27222
|
}), value.title === "PT_TOTAL_DUES" ? /*#__PURE__*/React.createElement(ArrearSummary, {
|
|
26942
27223
|
bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
|
|
26943
27224
|
}) : "");
|
|
26944
|
-
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27225
|
+
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
26945
27226
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
26946
27227
|
paymentsList: paymentsList
|
|
26947
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : (_applicationDetails$a3 = _applicationDetails$a2.additionalDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.fieldinspection_pending) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27228
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : (_applicationDetails$a3 = _applicationDetails$a2.additionalDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.fieldinspection_pending) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React.createElement(InspectionReport, {
|
|
26948
27229
|
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : (_applicationDetails$a6 = _applicationDetails$a5.additionalDetails) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.fieldinspection_pending
|
|
26949
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26950
|
-
floors: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26951
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26952
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26953
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26954
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26955
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27230
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React.createElement(PropertyFloors, {
|
|
27231
|
+
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
27232
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.units) && /*#__PURE__*/React.createElement(TLTradeUnits, {
|
|
27233
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet6 = detail.additionalDetails) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.units
|
|
27234
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.accessories) && /*#__PURE__*/React.createElement(TLTradeAccessories, {
|
|
27235
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.accessories
|
|
27236
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React.createElement(PermissionCheck, {
|
|
26956
27237
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
26957
27238
|
t: t,
|
|
26958
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26959
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27239
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.permissions
|
|
27240
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.obpsDocuments) && /*#__PURE__*/React.createElement(BPADocuments, {
|
|
26960
27241
|
t: t,
|
|
26961
27242
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
26962
27243
|
docs: detail.additionalDetails.obpsDocuments,
|
|
26963
27244
|
bpaActionsDetails: workflowDetails
|
|
26964
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27245
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.noc) && /*#__PURE__*/React.createElement(NOCDocuments, {
|
|
26965
27246
|
t: t,
|
|
26966
27247
|
isNoc: true,
|
|
26967
27248
|
NOCdata: detail.values,
|
|
26968
27249
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
26969
27250
|
docs: detail.additionalDetails.noc,
|
|
26970
|
-
noc: (_detail$
|
|
27251
|
+
noc: (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.data,
|
|
26971
27252
|
bpaActionsDetails: workflowDetails
|
|
26972
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27253
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.scruntinyDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
26973
27254
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
26974
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27255
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.buildingExtractionDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
26975
27256
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
26976
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27257
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.subOccupancyTableDetails) && /*#__PURE__*/React.createElement(SubOccupancyTable, {
|
|
26977
27258
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
26978
27259
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
26979
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26980
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26981
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26982
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27260
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.documentsWithUrl) && /*#__PURE__*/React.createElement(DocumentsPreview, {
|
|
27261
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.documentsWithUrl
|
|
27262
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
|
|
27263
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
26983
27264
|
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
26984
|
-
}), /*#__PURE__*/React.createElement(
|
|
26985
|
-
style: {
|
|
26986
|
-
background: "red",
|
|
26987
|
-
color: "#fff",
|
|
26988
|
-
padding: 20
|
|
26989
|
-
}
|
|
26990
|
-
}, "HELLO"), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_RECONNECTION") && /*#__PURE__*/React.createElement(DueVerification, {
|
|
27265
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_RECONNECTION") && /*#__PURE__*/React.createElement(DueVerification, {
|
|
26991
27266
|
applicationData: applicationData
|
|
26992
|
-
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27267
|
+
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_APPROVAL_FOR_CONNECTION" || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION") && /*#__PURE__*/React.createElement(InspectionInformation, {
|
|
26993
27268
|
applicationData: applicationData
|
|
26994
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26995
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27269
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
27270
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
26996
27271
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
26997
27272
|
wsAdditionalDetails: detail,
|
|
26998
27273
|
oldValue: oldValue
|
|
26999
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27000
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27274
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
27275
|
+
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.url
|
|
27001
27276
|
}, /*#__PURE__*/React.createElement("span", {
|
|
27002
27277
|
className: "add-details-link hover-button"
|
|
27003
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27278
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title)), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
27004
27279
|
wsAdditionalDetails: detail,
|
|
27005
27280
|
workflowDetails: workflowDetails
|
|
27006
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27281
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
|
|
27007
27282
|
wsAdditionalDetails: detail,
|
|
27008
27283
|
workflowDetails: workflowDetails
|
|
27009
27284
|
}));
|
|
@@ -27383,7 +27658,7 @@ const ApplicationDetails = props => {
|
|
|
27383
27658
|
clearDataDetails = props.clearDataDetails,
|
|
27384
27659
|
_props$isAction = props.isAction,
|
|
27385
27660
|
isAction = _props$isAction === void 0 ? false : _props$isAction;
|
|
27386
|
-
useEffect
|
|
27661
|
+
useEffect(() => {
|
|
27387
27662
|
if (showToast) {
|
|
27388
27663
|
workflowDetails.revalidate();
|
|
27389
27664
|
}
|
|
@@ -27779,7 +28054,7 @@ const ApplicationDetails$1 = () => {
|
|
|
27779
28054
|
const closeToast = () => {
|
|
27780
28055
|
setShowToast(null);
|
|
27781
28056
|
};
|
|
27782
|
-
useEffect
|
|
28057
|
+
useEffect(() => {
|
|
27783
28058
|
if (applicationDetails) {
|
|
27784
28059
|
var _details$applicationD, _details$applicationD2, _details$applicationD3, _details$applicationD6, _details$applicationD9, _details$applicationD0, _details$applicationD1;
|
|
27785
28060
|
let details = lodash.cloneDeep(applicationDetails);
|
|
@@ -27868,7 +28143,7 @@ const ApplicationDetails$1 = () => {
|
|
|
27868
28143
|
setAppDetailsToShow(details);
|
|
27869
28144
|
}
|
|
27870
28145
|
}, [applicationDetails, isFixedPoint]);
|
|
27871
|
-
useEffect
|
|
28146
|
+
useEffect(() => {
|
|
27872
28147
|
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4;
|
|
27873
28148
|
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data = workflowDetails.data) !== null && _workflowDetails$data !== void 0 && _workflowDetails$data.applicationBusinessService && !((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data2 = workflowDetails.data) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.applicationBusinessService) === "watertanker" && businessService === "watertanker" || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.applicationBusinessService) === "mobileToilet" && businessService === "mobileToilet" || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.applicationBusinessService) === "treePruning" && businessService === "treePruning")) {
|
|
27874
28149
|
var _workflowDetails$data5;
|
|
@@ -27947,7 +28222,7 @@ const WTCitizenCard = () => {
|
|
|
27947
28222
|
data = _Digit$Hooks$useNewIn.data,
|
|
27948
28223
|
isFetching = _Digit$Hooks$useNewIn.isFetching,
|
|
27949
28224
|
isSuccess = _Digit$Hooks$useNewIn.isSuccess;
|
|
27950
|
-
useEffect
|
|
28225
|
+
useEffect(() => {
|
|
27951
28226
|
if (!isFetching && isSuccess) setTotal(data);
|
|
27952
28227
|
}, [isFetching]);
|
|
27953
28228
|
const handleDetailsClick = () => {
|
|
@@ -28004,7 +28279,7 @@ const MTCard = () => {
|
|
|
28004
28279
|
isLoading = _Digit$Hooks$useNewIn.isLoading,
|
|
28005
28280
|
isFetching = _Digit$Hooks$useNewIn.isFetching,
|
|
28006
28281
|
isSuccess = _Digit$Hooks$useNewIn.isSuccess;
|
|
28007
|
-
useEffect
|
|
28282
|
+
useEffect(() => {
|
|
28008
28283
|
if (!isFetching && isSuccess) setTotal(data);
|
|
28009
28284
|
}, [isFetching]);
|
|
28010
28285
|
if (!Digit.Utils.mtAccess()) {
|
|
@@ -28063,7 +28338,7 @@ const TPCard = () => {
|
|
|
28063
28338
|
isLoading = _Digit$Hooks$useNewIn.isLoading,
|
|
28064
28339
|
isFetching = _Digit$Hooks$useNewIn.isFetching,
|
|
28065
28340
|
isSuccess = _Digit$Hooks$useNewIn.isSuccess;
|
|
28066
|
-
useEffect
|
|
28341
|
+
useEffect(() => {
|
|
28067
28342
|
if (!isFetching && isSuccess) setTotal(data);
|
|
28068
28343
|
}, [isFetching]);
|
|
28069
28344
|
const links = [{
|
|
@@ -28124,7 +28399,7 @@ const ServiceTypes = _ref => {
|
|
|
28124
28399
|
});
|
|
28125
28400
|
onSelect(config.key, ServiceType, false);
|
|
28126
28401
|
}, [formData.serviceType, serviceType, onSelect, config.key]);
|
|
28127
|
-
useEffect
|
|
28402
|
+
useEffect(() => {
|
|
28128
28403
|
if (userType === "citizen") {
|
|
28129
28404
|
goNext();
|
|
28130
28405
|
}
|
|
@@ -28252,7 +28527,7 @@ const ToiletRequestDetails = _ref => {
|
|
|
28252
28527
|
});
|
|
28253
28528
|
onSelect(config.key, Service, false);
|
|
28254
28529
|
};
|
|
28255
|
-
useEffect
|
|
28530
|
+
useEffect(() => {
|
|
28256
28531
|
if (userType === "citizen") {
|
|
28257
28532
|
goNext();
|
|
28258
28533
|
}
|
|
@@ -28380,7 +28655,7 @@ const TreePruningRequestDetails = _ref => {
|
|
|
28380
28655
|
});
|
|
28381
28656
|
onSelect(config.key, Service, false);
|
|
28382
28657
|
};
|
|
28383
|
-
useEffect
|
|
28658
|
+
useEffect(() => {
|
|
28384
28659
|
if (userType === "citizen") {
|
|
28385
28660
|
goNext();
|
|
28386
28661
|
}
|
|
@@ -28651,7 +28926,7 @@ const MTAcknowledgement = _ref => {
|
|
|
28651
28926
|
storeData = _Digit$Hooks$useStore.data;
|
|
28652
28927
|
const _ref2 = storeData || {},
|
|
28653
28928
|
tenants = _ref2.tenants;
|
|
28654
|
-
useEffect
|
|
28929
|
+
useEffect(() => {
|
|
28655
28930
|
try {
|
|
28656
28931
|
data.tenantId = tenantId;
|
|
28657
28932
|
let formdata = mobileToiletPayload(data);
|
|
@@ -28836,7 +29111,7 @@ const TPAcknowledgement = _ref => {
|
|
|
28836
29111
|
storeData = _Digit$Hooks$useStore.data;
|
|
28837
29112
|
const _ref2 = storeData || {},
|
|
28838
29113
|
tenants = _ref2.tenants;
|
|
28839
|
-
useEffect
|
|
29114
|
+
useEffect(() => {
|
|
28840
29115
|
try {
|
|
28841
29116
|
data.tenantId = tenantId;
|
|
28842
29117
|
let formdata = treePruningPayload(data);
|
|
@@ -29384,7 +29659,7 @@ const MTCitizenCard = () => {
|
|
|
29384
29659
|
data = _Digit$Hooks$useNewIn.data,
|
|
29385
29660
|
isFetching = _Digit$Hooks$useNewIn.isFetching,
|
|
29386
29661
|
isSuccess = _Digit$Hooks$useNewIn.isSuccess;
|
|
29387
|
-
useEffect
|
|
29662
|
+
useEffect(() => {
|
|
29388
29663
|
if (!isFetching && isSuccess) setTotal(data);
|
|
29389
29664
|
}, [isFetching]);
|
|
29390
29665
|
const links = [{
|
|
@@ -29625,7 +29900,7 @@ const EmergencyFixedPointRequestDetails = _ref => {
|
|
|
29625
29900
|
setUploadedFile(null);
|
|
29626
29901
|
setFile(e.target.files[0]);
|
|
29627
29902
|
}
|
|
29628
|
-
useEffect
|
|
29903
|
+
useEffect(() => {
|
|
29629
29904
|
(function () {
|
|
29630
29905
|
try {
|
|
29631
29906
|
setError(null);
|
|
@@ -29660,7 +29935,7 @@ const EmergencyFixedPointRequestDetails = _ref => {
|
|
|
29660
29935
|
}
|
|
29661
29936
|
})();
|
|
29662
29937
|
}, [file]);
|
|
29663
|
-
useEffect
|
|
29938
|
+
useEffect(() => {
|
|
29664
29939
|
if (!waterType && WaterTypeData !== null && WaterTypeData !== void 0 && WaterTypeData.length) {
|
|
29665
29940
|
const drinkableOption = WaterTypeData.find(data => {
|
|
29666
29941
|
var _data$code, _data$code2;
|
|
@@ -30101,7 +30376,7 @@ const WTEmergencyFixedPointAcknowledgement = _ref => {
|
|
|
30101
30376
|
storeData = _Digit$Hooks$useStore.data;
|
|
30102
30377
|
const _ref2 = storeData || {},
|
|
30103
30378
|
tenants = _ref2.tenants;
|
|
30104
|
-
useEffect
|
|
30379
|
+
useEffect(() => {
|
|
30105
30380
|
try {
|
|
30106
30381
|
data.tenantId = tenantId;
|
|
30107
30382
|
let formdata = emergencyWaterTankerPayload(data);
|
|
@@ -30208,7 +30483,7 @@ const MTEmergencyFixedPointAcknowledgement = _ref => {
|
|
|
30208
30483
|
storeData = _Digit$Hooks$useStore.data;
|
|
30209
30484
|
const _ref2 = storeData || {},
|
|
30210
30485
|
tenants = _ref2.tenants;
|
|
30211
|
-
useEffect
|
|
30486
|
+
useEffect(() => {
|
|
30212
30487
|
try {
|
|
30213
30488
|
data.tenantId = tenantId;
|
|
30214
30489
|
let formdata = mobileToiletPayload(data);
|
|
@@ -30312,7 +30587,7 @@ const EmergencyFixedPointTPAcknowledgement = _ref => {
|
|
|
30312
30587
|
storeData = _Digit$Hooks$useStore.data;
|
|
30313
30588
|
const _ref2 = storeData || {},
|
|
30314
30589
|
tenants = _ref2.tenants;
|
|
30315
|
-
useEffect
|
|
30590
|
+
useEffect(() => {
|
|
30316
30591
|
try {
|
|
30317
30592
|
data.tenantId = tenantId;
|
|
30318
30593
|
let formdata = treePruningPayload(data);
|
|
@@ -30491,7 +30766,7 @@ const WTEmergencyFixedPointCreate = () => {
|
|
|
30491
30766
|
conf.indexRoute = "fp-info";
|
|
30492
30767
|
return conf;
|
|
30493
30768
|
}, []);
|
|
30494
|
-
useEffect
|
|
30769
|
+
useEffect(() => {
|
|
30495
30770
|
if (params && Object.keys(params).length > 0 && window.location.href.includes("/fp-info") && sessionStorage.getItem("docReqScreenByBack") !== "true") {
|
|
30496
30771
|
clearParams();
|
|
30497
30772
|
queryClient.invalidateQueries("FP_Create");
|
|
@@ -30540,7 +30815,7 @@ const WTEmergencyFixedPointCreate = () => {
|
|
|
30540
30815
|
}
|
|
30541
30816
|
};
|
|
30542
30817
|
const paramsRef = useRef(params);
|
|
30543
|
-
useEffect
|
|
30818
|
+
useEffect(() => {
|
|
30544
30819
|
paramsRef.current = params;
|
|
30545
30820
|
}, [params]);
|
|
30546
30821
|
const handleSelect = useCallback(function (key, data, skipStep, index, isAddMultiple) {
|
|
@@ -30652,7 +30927,7 @@ const WTEmergencyFixedPointCreate = () => {
|
|
|
30652
30927
|
};
|
|
30653
30928
|
const isFormStep = formStepRoutes.some(route => pathname.includes(route));
|
|
30654
30929
|
const sectionRefs = useRef({});
|
|
30655
|
-
useEffect
|
|
30930
|
+
useEffect(() => {
|
|
30656
30931
|
if (isFormStep) {
|
|
30657
30932
|
const currentRoute = pathname.split("/").pop();
|
|
30658
30933
|
if (sectionRefs.current[currentRoute]) {
|
|
@@ -31232,7 +31507,7 @@ const EmergencyFixedPointDispatchDetails = _ref => {
|
|
|
31232
31507
|
}
|
|
31233
31508
|
}),
|
|
31234
31509
|
vehicleSearchData = _Digit$Hooks$fsm$useV2.data;
|
|
31235
|
-
useEffect
|
|
31510
|
+
useEffect(() => {
|
|
31236
31511
|
var _vehicleSearchData$ve, _vehicleSearchData$ve2;
|
|
31237
31512
|
const drv = vehicleSearchData === null || vehicleSearchData === void 0 ? void 0 : (_vehicleSearchData$ve = vehicleSearchData.vehicle) === null || _vehicleSearchData$ve === void 0 ? void 0 : (_vehicleSearchData$ve2 = _vehicleSearchData$ve[0]) === null || _vehicleSearchData$ve2 === void 0 ? void 0 : _vehicleSearchData$ve2.driverData;
|
|
31238
31513
|
if (drv) {
|
|
@@ -31361,7 +31636,7 @@ const WTModule = _ref => {
|
|
|
31361
31636
|
language
|
|
31362
31637
|
});
|
|
31363
31638
|
Digit.SessionStorage.set("WT_TENANTS", tenants);
|
|
31364
|
-
useEffect
|
|
31639
|
+
useEffect(() => userType === "employee" && Digit.LocalizationService.getLocale({
|
|
31365
31640
|
modules: ["rainmaker-" + Digit.ULBService.getCurrentTenantId()],
|
|
31366
31641
|
locale: Digit.StoreData.getCurrentLanguage(),
|
|
31367
31642
|
tenantId: Digit.ULBService.getCurrentTenantId()
|
|
@@ -31380,7 +31655,7 @@ const WTLinks = _ref2 => {
|
|
|
31380
31655
|
t = _useTranslation.t;
|
|
31381
31656
|
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("WT", {}),
|
|
31382
31657
|
clearParams = _Digit$Hooks$useSessi[2];
|
|
31383
|
-
useEffect
|
|
31658
|
+
useEffect(() => {
|
|
31384
31659
|
clearParams();
|
|
31385
31660
|
}, []);
|
|
31386
31661
|
const links = [{
|