@djb25/digit-ui-module-wt 1.0.77 → 1.0.78
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 +111 -113
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +231 -233
- 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) {
|
|
@@ -26253,7 +26240,7 @@ const DueVerification = _ref => {
|
|
|
26253
26240
|
}
|
|
26254
26241
|
return baseColumns;
|
|
26255
26242
|
}, [t, handleRemarkChange, isPendingApproval]);
|
|
26256
|
-
useEffect
|
|
26243
|
+
useEffect(() => {
|
|
26257
26244
|
if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
|
|
26258
26245
|
setTableData(applicationData.dueVerification);
|
|
26259
26246
|
}
|
|
@@ -26287,7 +26274,7 @@ const DueVerification = _ref => {
|
|
|
26287
26274
|
fontWeight: "bold",
|
|
26288
26275
|
marginBottom: "16px"
|
|
26289
26276
|
}
|
|
26290
|
-
}, t("Due Verification")), /*#__PURE__*/React.createElement("div", {
|
|
26277
|
+
}, t("Due Verification")), !isActivation && /*#__PURE__*/React.createElement("div", {
|
|
26291
26278
|
style: {
|
|
26292
26279
|
display: "flex",
|
|
26293
26280
|
alignItems: "flex-end",
|
|
@@ -26322,7 +26309,7 @@ const DueVerification = _ref => {
|
|
|
26322
26309
|
flex: 1,
|
|
26323
26310
|
paddingBottom: "2px"
|
|
26324
26311
|
}
|
|
26325
|
-
},
|
|
26312
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
26326
26313
|
type: "button",
|
|
26327
26314
|
onClick: handleAdd,
|
|
26328
26315
|
style: {
|
|
@@ -26334,25 +26321,19 @@ const DueVerification = _ref => {
|
|
|
26334
26321
|
}
|
|
26335
26322
|
}, /*#__PURE__*/React.createElement(AddIcon, null)))), tableData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
26336
26323
|
style: {
|
|
26337
|
-
marginTop: "
|
|
26324
|
+
marginTop: "15px",
|
|
26338
26325
|
overflowX: "auto"
|
|
26339
26326
|
}
|
|
26340
26327
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
26341
26328
|
className: "customTable table-fixed-first-column table-border-style",
|
|
26342
26329
|
t: t,
|
|
26330
|
+
totalRecords: tableData.length,
|
|
26343
26331
|
disableSort: false,
|
|
26344
26332
|
autoSort: true,
|
|
26345
|
-
manualPagination:
|
|
26346
|
-
isPaginationRequired:
|
|
26333
|
+
manualPagination: true,
|
|
26334
|
+
isPaginationRequired: true,
|
|
26347
26335
|
data: tableData,
|
|
26348
|
-
columns: columns
|
|
26349
|
-
getCellProps: cellInfo => {
|
|
26350
|
-
return {
|
|
26351
|
-
style: {
|
|
26352
|
-
padding: "12px"
|
|
26353
|
-
}
|
|
26354
|
-
};
|
|
26355
|
-
}
|
|
26336
|
+
columns: columns
|
|
26356
26337
|
})));
|
|
26357
26338
|
};
|
|
26358
26339
|
|
|
@@ -26369,11 +26350,34 @@ const InspectionInformation = _ref => {
|
|
|
26369
26350
|
const _useState3 = useState(""),
|
|
26370
26351
|
inspectorName = _useState3[0],
|
|
26371
26352
|
setInspectorName = _useState3[1];
|
|
26372
|
-
useEffect
|
|
26353
|
+
useEffect(() => {
|
|
26373
26354
|
if (applicationData !== null && applicationData !== void 0 && applicationData.inspectionInformation) {
|
|
26374
|
-
|
|
26375
|
-
|
|
26376
|
-
|
|
26355
|
+
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
26356
|
+
let matchedType = null;
|
|
26357
|
+
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
26358
|
+
if (inspectionCode) {
|
|
26359
|
+
matchedType = [{
|
|
26360
|
+
i18nKey: "ES_COMMON_SELECT",
|
|
26361
|
+
code: ""
|
|
26362
|
+
}, {
|
|
26363
|
+
i18nKey: "New Connection Visit",
|
|
26364
|
+
code: "new_connection_visit"
|
|
26365
|
+
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
26366
|
+
}
|
|
26367
|
+
setInspectionType(matchedType || null);
|
|
26368
|
+
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
26369
|
+
if (dateValue && typeof dateValue === 'number') {
|
|
26370
|
+
const d = new Date(dateValue);
|
|
26371
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
26372
|
+
} else if (dateValue && typeof dateValue === 'string' && dateValue.includes('-')) ; else if (dateValue) {
|
|
26373
|
+
const num = Number(dateValue);
|
|
26374
|
+
if (!isNaN(num)) {
|
|
26375
|
+
const d = new Date(num);
|
|
26376
|
+
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
26377
|
+
}
|
|
26378
|
+
}
|
|
26379
|
+
setInspectionDate(dateValue);
|
|
26380
|
+
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
26377
26381
|
}
|
|
26378
26382
|
}, [applicationData]);
|
|
26379
26383
|
const inspectionTypeOptions = [{
|
|
@@ -26383,6 +26387,22 @@ const InspectionInformation = _ref => {
|
|
|
26383
26387
|
i18nKey: "New Connection Visit",
|
|
26384
26388
|
code: "new_connection_visit"
|
|
26385
26389
|
}];
|
|
26390
|
+
const handleInspectionTypeChange = selected => {
|
|
26391
|
+
setInspectionType(selected);
|
|
26392
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
26393
|
+
applicationData.inspectionInformation.inspectionType = selected;
|
|
26394
|
+
};
|
|
26395
|
+
const handleInspectionDateChange = date => {
|
|
26396
|
+
setInspectionDate(date);
|
|
26397
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
26398
|
+
applicationData.inspectionInformation.inspectionDate = date ? new Date(date).getTime() : null;
|
|
26399
|
+
};
|
|
26400
|
+
const handleInspectorNameChange = e => {
|
|
26401
|
+
const val = e.target.value;
|
|
26402
|
+
setInspectorName(val);
|
|
26403
|
+
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
26404
|
+
applicationData.inspectionInformation.inspectorName = val;
|
|
26405
|
+
};
|
|
26386
26406
|
const readOnly = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION";
|
|
26387
26407
|
return /*#__PURE__*/React.createElement("div", {
|
|
26388
26408
|
style: {
|
|
@@ -26415,9 +26435,9 @@ const InspectionInformation = _ref => {
|
|
|
26415
26435
|
option: inspectionTypeOptions,
|
|
26416
26436
|
optionKey: "i18nKey",
|
|
26417
26437
|
selected: inspectionType,
|
|
26418
|
-
select:
|
|
26438
|
+
select: handleInspectionTypeChange,
|
|
26419
26439
|
t: t,
|
|
26420
|
-
|
|
26440
|
+
disable: readOnly
|
|
26421
26441
|
})), /*#__PURE__*/React.createElement("div", {
|
|
26422
26442
|
style: {
|
|
26423
26443
|
flex: 1
|
|
@@ -26430,7 +26450,7 @@ const InspectionInformation = _ref => {
|
|
|
26430
26450
|
}
|
|
26431
26451
|
}, t("Inspection Date")), /*#__PURE__*/React.createElement(DatePicker, {
|
|
26432
26452
|
date: inspectionDate,
|
|
26433
|
-
onChange:
|
|
26453
|
+
onChange: handleInspectionDateChange,
|
|
26434
26454
|
disabled: readOnly
|
|
26435
26455
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
26436
26456
|
style: {
|
|
@@ -26448,13 +26468,13 @@ const InspectionInformation = _ref => {
|
|
|
26448
26468
|
}
|
|
26449
26469
|
}, t("Inspector Name")), /*#__PURE__*/React.createElement(TextInput, {
|
|
26450
26470
|
value: inspectorName,
|
|
26451
|
-
onChange:
|
|
26471
|
+
onChange: handleInspectorNameChange,
|
|
26452
26472
|
disabled: readOnly
|
|
26453
26473
|
}))));
|
|
26454
26474
|
};
|
|
26455
26475
|
|
|
26456
26476
|
function ApplicationDetailsContent(_ref) {
|
|
26457
|
-
var
|
|
26477
|
+
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
26478
|
let applicationDetails = _ref.applicationDetails,
|
|
26459
26479
|
workflowDetails = _ref.workflowDetails,
|
|
26460
26480
|
isDataLoading = _ref.isDataLoading,
|
|
@@ -26468,7 +26488,6 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26468
26488
|
oldValue = _ref.oldValue,
|
|
26469
26489
|
_ref$isInfoLabel = _ref.isInfoLabel,
|
|
26470
26490
|
isInfoLabel = _ref$isInfoLabel === void 0 ? false : _ref$isInfoLabel;
|
|
26471
|
-
alert("ApplicationDetailsContent Loaded");
|
|
26472
26491
|
const _useTranslation = useTranslation(),
|
|
26473
26492
|
t = _useTranslation.t;
|
|
26474
26493
|
const _useState = useState(false),
|
|
@@ -26483,19 +26502,6 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26483
26502
|
const _useState2 = useState({}),
|
|
26484
26503
|
fetchBillData = _useState2[0],
|
|
26485
26504
|
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
26505
|
const setBillData = function (tenantId, propertyIds, updatefetchBillData, updateCanFetchBillData) {
|
|
26500
26506
|
try {
|
|
26501
26507
|
return Promise.resolve(Digit.PTService.assessmentSearch({
|
|
@@ -26505,14 +26511,12 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26505
26511
|
}
|
|
26506
26512
|
})).then(function (assessmentData) {
|
|
26507
26513
|
function _temp2() {
|
|
26508
|
-
|
|
26509
|
-
|
|
26510
|
-
|
|
26511
|
-
|
|
26512
|
-
|
|
26513
|
-
|
|
26514
|
-
});
|
|
26515
|
-
}
|
|
26514
|
+
updatefetchBillData(billData);
|
|
26515
|
+
updateCanFetchBillData({
|
|
26516
|
+
loading: false,
|
|
26517
|
+
loaded: true,
|
|
26518
|
+
canLoad: true
|
|
26519
|
+
});
|
|
26516
26520
|
}
|
|
26517
26521
|
let billData = {};
|
|
26518
26522
|
const _temp = function (_assessmentData$Asses) {
|
|
@@ -26531,23 +26535,28 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26531
26535
|
return Promise.reject(e);
|
|
26532
26536
|
}
|
|
26533
26537
|
};
|
|
26534
|
-
|
|
26535
|
-
|
|
26536
|
-
|
|
26537
|
-
|
|
26538
|
-
|
|
26539
|
-
|
|
26540
|
-
|
|
26541
|
-
|
|
26542
|
-
|
|
26543
|
-
|
|
26544
|
-
|
|
26545
|
-
|
|
26546
|
-
|
|
26547
|
-
|
|
26548
|
-
|
|
26549
|
-
|
|
26550
|
-
|
|
26538
|
+
const _useState3 = useState({
|
|
26539
|
+
loading: false,
|
|
26540
|
+
loaded: false,
|
|
26541
|
+
canLoad: false
|
|
26542
|
+
}),
|
|
26543
|
+
billData = _useState3[0],
|
|
26544
|
+
updateCanFetchBillData = _useState3[1];
|
|
26545
|
+
if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) === "ACTIVE" && !billData.loading && !billData.loaded && !billData.canLoad) {
|
|
26546
|
+
updateCanFetchBillData({
|
|
26547
|
+
loading: false,
|
|
26548
|
+
loaded: false,
|
|
26549
|
+
canLoad: true
|
|
26550
|
+
});
|
|
26551
|
+
}
|
|
26552
|
+
if (billData !== null && billData !== void 0 && billData.canLoad && !billData.loading && !billData.loaded) {
|
|
26553
|
+
updateCanFetchBillData({
|
|
26554
|
+
loading: true,
|
|
26555
|
+
loaded: false,
|
|
26556
|
+
canLoad: true
|
|
26557
|
+
});
|
|
26558
|
+
setBillData((applicationData === null || applicationData === void 0 ? void 0 : applicationData.tenantId) || tenantId, applicationData === null || applicationData === void 0 ? void 0 : applicationData.propertyId, updatefetchBillData, updateCanFetchBillData);
|
|
26559
|
+
}
|
|
26551
26560
|
const convertEpochToDateDMY = dateEpoch => {
|
|
26552
26561
|
if (dateEpoch == null || dateEpoch === undefined || dateEpoch === "") {
|
|
26553
26562
|
return "NA";
|
|
@@ -26732,11 +26741,6 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26732
26741
|
const handleViewClick = data => {
|
|
26733
26742
|
setShowPopup(true);
|
|
26734
26743
|
};
|
|
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
26744
|
return /*#__PURE__*/React.createElement(Card, {
|
|
26741
26745
|
style: {
|
|
26742
26746
|
position: "relative"
|
|
@@ -26750,7 +26754,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26750
26754
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
26751
26755
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
26752
26756
|
}) : 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$
|
|
26757
|
+
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
26758
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
26755
26759
|
key: index
|
|
26756
26760
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -26941,69 +26945,63 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26941
26945
|
}), value.title === "PT_TOTAL_DUES" ? /*#__PURE__*/React.createElement(ArrearSummary, {
|
|
26942
26946
|
bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
|
|
26943
26947
|
}) : "");
|
|
26944
|
-
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26948
|
+
})))), (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
26949
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
26946
26950
|
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$
|
|
26951
|
+
}), (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
26952
|
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$
|
|
26953
|
+
}), (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, {
|
|
26954
|
+
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
26955
|
+
}), (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, {
|
|
26956
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet6 = detail.additionalDetails) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.units
|
|
26957
|
+
}), (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, {
|
|
26958
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.accessories
|
|
26959
|
+
}), (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
26960
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
26957
26961
|
t: t,
|
|
26958
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26959
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26962
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.permissions
|
|
26963
|
+
}), (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
26964
|
t: t,
|
|
26961
26965
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
26962
26966
|
docs: detail.additionalDetails.obpsDocuments,
|
|
26963
26967
|
bpaActionsDetails: workflowDetails
|
|
26964
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26968
|
+
}), (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
26969
|
t: t,
|
|
26966
26970
|
isNoc: true,
|
|
26967
26971
|
NOCdata: detail.values,
|
|
26968
26972
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
26969
26973
|
docs: detail.additionalDetails.noc,
|
|
26970
|
-
noc: (_detail$
|
|
26974
|
+
noc: (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.data,
|
|
26971
26975
|
bpaActionsDetails: workflowDetails
|
|
26972
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26976
|
+
}), (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
26977
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
26974
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26978
|
+
}), (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
26979
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
26976
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26980
|
+
}), (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
26981
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
26978
26982
|
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$
|
|
26983
|
+
}), (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, {
|
|
26984
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.documentsWithUrl
|
|
26985
|
+
}), (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, {
|
|
26986
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
26983
26987
|
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, {
|
|
26988
|
+
}), (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
26989
|
applicationData: applicationData
|
|
26992
|
-
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26990
|
+
}), " ", (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
26991
|
applicationData: applicationData
|
|
26994
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26995
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26992
|
+
}), (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, {
|
|
26993
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
26996
26994
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
26997
26995
|
wsAdditionalDetails: detail,
|
|
26998
26996
|
oldValue: oldValue
|
|
26999
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27000
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26997
|
+
}), (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, {
|
|
26998
|
+
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
26999
|
}, /*#__PURE__*/React.createElement("span", {
|
|
27002
27000
|
className: "add-details-link hover-button"
|
|
27003
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27001
|
+
}, 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
27002
|
wsAdditionalDetails: detail,
|
|
27005
27003
|
workflowDetails: workflowDetails
|
|
27006
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
27004
|
+
}), (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
27005
|
wsAdditionalDetails: detail,
|
|
27008
27006
|
workflowDetails: workflowDetails
|
|
27009
27007
|
}));
|
|
@@ -27383,7 +27381,7 @@ const ApplicationDetails = props => {
|
|
|
27383
27381
|
clearDataDetails = props.clearDataDetails,
|
|
27384
27382
|
_props$isAction = props.isAction,
|
|
27385
27383
|
isAction = _props$isAction === void 0 ? false : _props$isAction;
|
|
27386
|
-
useEffect
|
|
27384
|
+
useEffect(() => {
|
|
27387
27385
|
if (showToast) {
|
|
27388
27386
|
workflowDetails.revalidate();
|
|
27389
27387
|
}
|
|
@@ -27779,7 +27777,7 @@ const ApplicationDetails$1 = () => {
|
|
|
27779
27777
|
const closeToast = () => {
|
|
27780
27778
|
setShowToast(null);
|
|
27781
27779
|
};
|
|
27782
|
-
useEffect
|
|
27780
|
+
useEffect(() => {
|
|
27783
27781
|
if (applicationDetails) {
|
|
27784
27782
|
var _details$applicationD, _details$applicationD2, _details$applicationD3, _details$applicationD6, _details$applicationD9, _details$applicationD0, _details$applicationD1;
|
|
27785
27783
|
let details = lodash.cloneDeep(applicationDetails);
|
|
@@ -27868,7 +27866,7 @@ const ApplicationDetails$1 = () => {
|
|
|
27868
27866
|
setAppDetailsToShow(details);
|
|
27869
27867
|
}
|
|
27870
27868
|
}, [applicationDetails, isFixedPoint]);
|
|
27871
|
-
useEffect
|
|
27869
|
+
useEffect(() => {
|
|
27872
27870
|
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4;
|
|
27873
27871
|
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
27872
|
var _workflowDetails$data5;
|
|
@@ -27947,7 +27945,7 @@ const WTCitizenCard = () => {
|
|
|
27947
27945
|
data = _Digit$Hooks$useNewIn.data,
|
|
27948
27946
|
isFetching = _Digit$Hooks$useNewIn.isFetching,
|
|
27949
27947
|
isSuccess = _Digit$Hooks$useNewIn.isSuccess;
|
|
27950
|
-
useEffect
|
|
27948
|
+
useEffect(() => {
|
|
27951
27949
|
if (!isFetching && isSuccess) setTotal(data);
|
|
27952
27950
|
}, [isFetching]);
|
|
27953
27951
|
const handleDetailsClick = () => {
|
|
@@ -28004,7 +28002,7 @@ const MTCard = () => {
|
|
|
28004
28002
|
isLoading = _Digit$Hooks$useNewIn.isLoading,
|
|
28005
28003
|
isFetching = _Digit$Hooks$useNewIn.isFetching,
|
|
28006
28004
|
isSuccess = _Digit$Hooks$useNewIn.isSuccess;
|
|
28007
|
-
useEffect
|
|
28005
|
+
useEffect(() => {
|
|
28008
28006
|
if (!isFetching && isSuccess) setTotal(data);
|
|
28009
28007
|
}, [isFetching]);
|
|
28010
28008
|
if (!Digit.Utils.mtAccess()) {
|
|
@@ -28063,7 +28061,7 @@ const TPCard = () => {
|
|
|
28063
28061
|
isLoading = _Digit$Hooks$useNewIn.isLoading,
|
|
28064
28062
|
isFetching = _Digit$Hooks$useNewIn.isFetching,
|
|
28065
28063
|
isSuccess = _Digit$Hooks$useNewIn.isSuccess;
|
|
28066
|
-
useEffect
|
|
28064
|
+
useEffect(() => {
|
|
28067
28065
|
if (!isFetching && isSuccess) setTotal(data);
|
|
28068
28066
|
}, [isFetching]);
|
|
28069
28067
|
const links = [{
|
|
@@ -28124,7 +28122,7 @@ const ServiceTypes = _ref => {
|
|
|
28124
28122
|
});
|
|
28125
28123
|
onSelect(config.key, ServiceType, false);
|
|
28126
28124
|
}, [formData.serviceType, serviceType, onSelect, config.key]);
|
|
28127
|
-
useEffect
|
|
28125
|
+
useEffect(() => {
|
|
28128
28126
|
if (userType === "citizen") {
|
|
28129
28127
|
goNext();
|
|
28130
28128
|
}
|
|
@@ -28252,7 +28250,7 @@ const ToiletRequestDetails = _ref => {
|
|
|
28252
28250
|
});
|
|
28253
28251
|
onSelect(config.key, Service, false);
|
|
28254
28252
|
};
|
|
28255
|
-
useEffect
|
|
28253
|
+
useEffect(() => {
|
|
28256
28254
|
if (userType === "citizen") {
|
|
28257
28255
|
goNext();
|
|
28258
28256
|
}
|
|
@@ -28380,7 +28378,7 @@ const TreePruningRequestDetails = _ref => {
|
|
|
28380
28378
|
});
|
|
28381
28379
|
onSelect(config.key, Service, false);
|
|
28382
28380
|
};
|
|
28383
|
-
useEffect
|
|
28381
|
+
useEffect(() => {
|
|
28384
28382
|
if (userType === "citizen") {
|
|
28385
28383
|
goNext();
|
|
28386
28384
|
}
|
|
@@ -28651,7 +28649,7 @@ const MTAcknowledgement = _ref => {
|
|
|
28651
28649
|
storeData = _Digit$Hooks$useStore.data;
|
|
28652
28650
|
const _ref2 = storeData || {},
|
|
28653
28651
|
tenants = _ref2.tenants;
|
|
28654
|
-
useEffect
|
|
28652
|
+
useEffect(() => {
|
|
28655
28653
|
try {
|
|
28656
28654
|
data.tenantId = tenantId;
|
|
28657
28655
|
let formdata = mobileToiletPayload(data);
|
|
@@ -28836,7 +28834,7 @@ const TPAcknowledgement = _ref => {
|
|
|
28836
28834
|
storeData = _Digit$Hooks$useStore.data;
|
|
28837
28835
|
const _ref2 = storeData || {},
|
|
28838
28836
|
tenants = _ref2.tenants;
|
|
28839
|
-
useEffect
|
|
28837
|
+
useEffect(() => {
|
|
28840
28838
|
try {
|
|
28841
28839
|
data.tenantId = tenantId;
|
|
28842
28840
|
let formdata = treePruningPayload(data);
|
|
@@ -29384,7 +29382,7 @@ const MTCitizenCard = () => {
|
|
|
29384
29382
|
data = _Digit$Hooks$useNewIn.data,
|
|
29385
29383
|
isFetching = _Digit$Hooks$useNewIn.isFetching,
|
|
29386
29384
|
isSuccess = _Digit$Hooks$useNewIn.isSuccess;
|
|
29387
|
-
useEffect
|
|
29385
|
+
useEffect(() => {
|
|
29388
29386
|
if (!isFetching && isSuccess) setTotal(data);
|
|
29389
29387
|
}, [isFetching]);
|
|
29390
29388
|
const links = [{
|
|
@@ -29625,7 +29623,7 @@ const EmergencyFixedPointRequestDetails = _ref => {
|
|
|
29625
29623
|
setUploadedFile(null);
|
|
29626
29624
|
setFile(e.target.files[0]);
|
|
29627
29625
|
}
|
|
29628
|
-
useEffect
|
|
29626
|
+
useEffect(() => {
|
|
29629
29627
|
(function () {
|
|
29630
29628
|
try {
|
|
29631
29629
|
setError(null);
|
|
@@ -29660,7 +29658,7 @@ const EmergencyFixedPointRequestDetails = _ref => {
|
|
|
29660
29658
|
}
|
|
29661
29659
|
})();
|
|
29662
29660
|
}, [file]);
|
|
29663
|
-
useEffect
|
|
29661
|
+
useEffect(() => {
|
|
29664
29662
|
if (!waterType && WaterTypeData !== null && WaterTypeData !== void 0 && WaterTypeData.length) {
|
|
29665
29663
|
const drinkableOption = WaterTypeData.find(data => {
|
|
29666
29664
|
var _data$code, _data$code2;
|
|
@@ -30101,7 +30099,7 @@ const WTEmergencyFixedPointAcknowledgement = _ref => {
|
|
|
30101
30099
|
storeData = _Digit$Hooks$useStore.data;
|
|
30102
30100
|
const _ref2 = storeData || {},
|
|
30103
30101
|
tenants = _ref2.tenants;
|
|
30104
|
-
useEffect
|
|
30102
|
+
useEffect(() => {
|
|
30105
30103
|
try {
|
|
30106
30104
|
data.tenantId = tenantId;
|
|
30107
30105
|
let formdata = emergencyWaterTankerPayload(data);
|
|
@@ -30208,7 +30206,7 @@ const MTEmergencyFixedPointAcknowledgement = _ref => {
|
|
|
30208
30206
|
storeData = _Digit$Hooks$useStore.data;
|
|
30209
30207
|
const _ref2 = storeData || {},
|
|
30210
30208
|
tenants = _ref2.tenants;
|
|
30211
|
-
useEffect
|
|
30209
|
+
useEffect(() => {
|
|
30212
30210
|
try {
|
|
30213
30211
|
data.tenantId = tenantId;
|
|
30214
30212
|
let formdata = mobileToiletPayload(data);
|
|
@@ -30312,7 +30310,7 @@ const EmergencyFixedPointTPAcknowledgement = _ref => {
|
|
|
30312
30310
|
storeData = _Digit$Hooks$useStore.data;
|
|
30313
30311
|
const _ref2 = storeData || {},
|
|
30314
30312
|
tenants = _ref2.tenants;
|
|
30315
|
-
useEffect
|
|
30313
|
+
useEffect(() => {
|
|
30316
30314
|
try {
|
|
30317
30315
|
data.tenantId = tenantId;
|
|
30318
30316
|
let formdata = treePruningPayload(data);
|
|
@@ -30491,7 +30489,7 @@ const WTEmergencyFixedPointCreate = () => {
|
|
|
30491
30489
|
conf.indexRoute = "fp-info";
|
|
30492
30490
|
return conf;
|
|
30493
30491
|
}, []);
|
|
30494
|
-
useEffect
|
|
30492
|
+
useEffect(() => {
|
|
30495
30493
|
if (params && Object.keys(params).length > 0 && window.location.href.includes("/fp-info") && sessionStorage.getItem("docReqScreenByBack") !== "true") {
|
|
30496
30494
|
clearParams();
|
|
30497
30495
|
queryClient.invalidateQueries("FP_Create");
|
|
@@ -30540,7 +30538,7 @@ const WTEmergencyFixedPointCreate = () => {
|
|
|
30540
30538
|
}
|
|
30541
30539
|
};
|
|
30542
30540
|
const paramsRef = useRef(params);
|
|
30543
|
-
useEffect
|
|
30541
|
+
useEffect(() => {
|
|
30544
30542
|
paramsRef.current = params;
|
|
30545
30543
|
}, [params]);
|
|
30546
30544
|
const handleSelect = useCallback(function (key, data, skipStep, index, isAddMultiple) {
|
|
@@ -30652,7 +30650,7 @@ const WTEmergencyFixedPointCreate = () => {
|
|
|
30652
30650
|
};
|
|
30653
30651
|
const isFormStep = formStepRoutes.some(route => pathname.includes(route));
|
|
30654
30652
|
const sectionRefs = useRef({});
|
|
30655
|
-
useEffect
|
|
30653
|
+
useEffect(() => {
|
|
30656
30654
|
if (isFormStep) {
|
|
30657
30655
|
const currentRoute = pathname.split("/").pop();
|
|
30658
30656
|
if (sectionRefs.current[currentRoute]) {
|
|
@@ -31232,7 +31230,7 @@ const EmergencyFixedPointDispatchDetails = _ref => {
|
|
|
31232
31230
|
}
|
|
31233
31231
|
}),
|
|
31234
31232
|
vehicleSearchData = _Digit$Hooks$fsm$useV2.data;
|
|
31235
|
-
useEffect
|
|
31233
|
+
useEffect(() => {
|
|
31236
31234
|
var _vehicleSearchData$ve, _vehicleSearchData$ve2;
|
|
31237
31235
|
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
31236
|
if (drv) {
|
|
@@ -31361,7 +31359,7 @@ const WTModule = _ref => {
|
|
|
31361
31359
|
language
|
|
31362
31360
|
});
|
|
31363
31361
|
Digit.SessionStorage.set("WT_TENANTS", tenants);
|
|
31364
|
-
useEffect
|
|
31362
|
+
useEffect(() => userType === "employee" && Digit.LocalizationService.getLocale({
|
|
31365
31363
|
modules: ["rainmaker-" + Digit.ULBService.getCurrentTenantId()],
|
|
31366
31364
|
locale: Digit.StoreData.getCurrentLanguage(),
|
|
31367
31365
|
tenantId: Digit.ULBService.getCurrentTenantId()
|
|
@@ -31380,7 +31378,7 @@ const WTLinks = _ref2 => {
|
|
|
31380
31378
|
t = _useTranslation.t;
|
|
31381
31379
|
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("WT", {}),
|
|
31382
31380
|
clearParams = _Digit$Hooks$useSessi[2];
|
|
31383
|
-
useEffect
|
|
31381
|
+
useEffect(() => {
|
|
31384
31382
|
clearParams();
|
|
31385
31383
|
}, []);
|
|
31386
31384
|
const links = [{
|