@djb25/digit-ui-module-ws 1.0.35 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +317 -161
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$1, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useHistory, useLocation, Switch, Route, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, Banner, CardText, ActionBar, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CollapsibleCardPage, ViewsIcon, Modal, DeleteIcon, CardLabelError, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, VerticalTimeline, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, Menu, ButtonSelector, GenericFileIcon, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
4
|
+
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, Banner, CardText, ActionBar, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, Dropdown, UploadFile, CheckBox, RadioButtons, MobileNumber, LabelFieldPair, DatePicker, CollapsibleCardPage, ViewsIcon, Modal, DeleteIcon, CardLabelError, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, VerticalTimeline, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, Menu, ButtonSelector, GenericFileIcon, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
5
5
|
import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
|
|
6
6
|
import { read, utils as utils$1 } from 'xlsx';
|
|
7
7
|
import { useQueryClient } from 'react-query';
|
|
@@ -8426,7 +8426,7 @@ const WSResponse = props => {
|
|
|
8426
8426
|
const App = ({
|
|
8427
8427
|
path
|
|
8428
8428
|
}) => {
|
|
8429
|
-
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg;
|
|
8429
|
+
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg;
|
|
8430
8430
|
const location = useLocation();
|
|
8431
8431
|
const {
|
|
8432
8432
|
t
|
|
@@ -8442,7 +8442,7 @@ const App = ({
|
|
|
8442
8442
|
}, {
|
|
8443
8443
|
path: "/digit-ui/citizen/ws/create-application",
|
|
8444
8444
|
label: t("CS_WS_CREATE_APPLICATION"),
|
|
8445
|
-
show: location.pathname.includes("/create-application")
|
|
8445
|
+
show: location.pathname.includes("/create-application") || location.pathname.includes("/info")
|
|
8446
8446
|
}, {
|
|
8447
8447
|
path: "/digit-ui/citizen/ws/search",
|
|
8448
8448
|
label: t("CS_WS_SEARCH_CONNECTION"),
|
|
@@ -8486,6 +8486,7 @@ const App = ({
|
|
|
8486
8486
|
const WSMyConnections = (_Digit13 = Digit) === null || _Digit13 === void 0 ? void 0 : (_Digit13$ComponentReg = _Digit13.ComponentRegistryService) === null || _Digit13$ComponentReg === void 0 ? void 0 : _Digit13$ComponentReg.getComponent("WSMyConnections");
|
|
8487
8487
|
const WNSMyBillsComponent = (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$ComponentReg = _Digit14.ComponentRegistryService) === null || _Digit14$ComponentReg === void 0 ? void 0 : _Digit14$ComponentReg.getComponent("WNSMyBillsComponent");
|
|
8488
8488
|
const WSOLDApplication = (_Digit15 = Digit) === null || _Digit15 === void 0 ? void 0 : (_Digit15$ComponentReg = _Digit15.ComponentRegistryService) === null || _Digit15$ComponentReg === void 0 ? void 0 : _Digit15$ComponentReg.getComponent("WSOLDApplication");
|
|
8489
|
+
const WSInfoPage = (_Digit16 = Digit) === null || _Digit16 === void 0 ? void 0 : (_Digit16$ComponentReg = _Digit16.ComponentRegistryService) === null || _Digit16$ComponentReg === void 0 ? void 0 : _Digit16$ComponentReg.getComponent("WSInfoPage");
|
|
8489
8490
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
8490
8491
|
className: "ground-container employee-app-container form-container"
|
|
8491
8492
|
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
@@ -8558,6 +8559,9 @@ const App = ({
|
|
|
8558
8559
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8559
8560
|
path: `${path}/old-application`,
|
|
8560
8561
|
component: WSOLDApplication
|
|
8562
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8563
|
+
path: `${path}/info`,
|
|
8564
|
+
component: WSInfoPage
|
|
8561
8565
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8562
8566
|
path: `${path}/ws-response`,
|
|
8563
8567
|
component: WSResponse
|
|
@@ -9328,10 +9332,14 @@ const BILLSBreadCrumbs = ({
|
|
|
9328
9332
|
width: "20%"
|
|
9329
9333
|
} : {},
|
|
9330
9334
|
icon: HomeIcon
|
|
9335
|
+
}, {
|
|
9336
|
+
path: "/digit-ui/employee/ws/wsinformation",
|
|
9337
|
+
label: t("WS_COMMON_APPL_NEW_CONNECTION"),
|
|
9338
|
+
show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application") || location.pathname.includes("/old-application") || location.pathname.includes("/info")
|
|
9331
9339
|
}, {
|
|
9332
9340
|
path: "/digit-ui/employee/module/details",
|
|
9333
9341
|
label: t("ES_TITLE_WATER_AND_SEWERAGE"),
|
|
9334
|
-
show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application") || location.pathname.includes("/old-application")
|
|
9342
|
+
show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application") || location.pathname.includes("/old-application") || location.pathname.includes("/info")
|
|
9335
9343
|
}, {
|
|
9336
9344
|
path: "/digit-ui/employee/ws/create-application",
|
|
9337
9345
|
label: t("ES_COMMON_WS_DOCUMENTS_REQUIRED"),
|
|
@@ -9555,7 +9563,7 @@ const BILLSBreadCrumbs = ({
|
|
|
9555
9563
|
const App$1 = ({
|
|
9556
9564
|
path
|
|
9557
9565
|
}) => {
|
|
9558
|
-
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg, _Digit17, _Digit17$ComponentReg, _Digit18, _Digit18$ComponentReg, _Digit19, _Digit19$ComponentReg, _Digit20, _Digit20$ComponentReg, _Digit21, _Digit21$ComponentReg, _Digit22, _Digit22$ComponentReg, _Digit23, _Digit23$ComponentReg, _Digit24, _Digit24$ComponentReg, _Digit25, _Digit25$ComponentReg, _Digit26, _Digit26$ComponentReg, _Digit27, _Digit27$ComponentReg, _Digit28, _Digit28$ComponentReg;
|
|
9566
|
+
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg, _Digit17, _Digit17$ComponentReg, _Digit18, _Digit18$ComponentReg, _Digit19, _Digit19$ComponentReg, _Digit20, _Digit20$ComponentReg, _Digit21, _Digit21$ComponentReg, _Digit22, _Digit22$ComponentReg, _Digit23, _Digit23$ComponentReg, _Digit24, _Digit24$ComponentReg, _Digit25, _Digit25$ComponentReg, _Digit26, _Digit26$ComponentReg, _Digit27, _Digit27$ComponentReg, _Digit28, _Digit28$ComponentReg, _Digit29, _Digit29$ComponentReg;
|
|
9559
9567
|
const location = useLocation();
|
|
9560
9568
|
const WSDocsRequired = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSDocsRequired");
|
|
9561
9569
|
const WSInbox = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WSInbox");
|
|
@@ -9587,6 +9595,7 @@ const App$1 = ({
|
|
|
9587
9595
|
const WSBulkBillGeneration = (_Digit26 = Digit) === null || _Digit26 === void 0 ? void 0 : (_Digit26$ComponentReg = _Digit26.ComponentRegistryService) === null || _Digit26$ComponentReg === void 0 ? void 0 : _Digit26$ComponentReg.getComponent("WSBulkBillGeneration");
|
|
9588
9596
|
const CPTCreateProperty = (_Digit27 = Digit) === null || _Digit27 === void 0 ? void 0 : (_Digit27$ComponentReg = _Digit27.ComponentRegistryService) === null || _Digit27$ComponentReg === void 0 ? void 0 : _Digit27$ComponentReg.getComponent("CPTCreateProperty");
|
|
9589
9597
|
const CPTAcknowledgement = (_Digit28 = Digit) === null || _Digit28 === void 0 ? void 0 : (_Digit28$ComponentReg = _Digit28.ComponentRegistryService) === null || _Digit28$ComponentReg === void 0 ? void 0 : _Digit28$ComponentReg.getComponent("CPTAcknowledgement");
|
|
9598
|
+
const WSInfoPage = (_Digit29 = Digit) === null || _Digit29 === void 0 ? void 0 : (_Digit29$ComponentReg = _Digit29.ComponentRegistryService) === null || _Digit29$ComponentReg === void 0 ? void 0 : _Digit29$ComponentReg.getComponent("WSInfoPage");
|
|
9590
9599
|
const locationCheck = window.location.href.includes("/employee/ws/new-application") || window.location.href.includes("/employee/ws/modify-application") || window.location.href.includes("/employee/ws/edit-application") || window.location.href.includes("/employee/ws/activate-connection") || window.location.href.includes("/employee/ws/application-details") || window.location.href.includes("/employee/ws/modify-details") || window.location.href.includes("/employee/ws/ws-response") || window.location.href.includes("/employee/ws/new-disconnection/application-form") || window.location.href.includes("/employee/ws/ws-disconnection-response") || window.location.href.includes("/employee/ws/consumption-details") || window.location.href.includes("/employee/ws/edit-disconnection-application") || window.location.href.includes("/employee/ws/config-by-disconnection-application") || window.location.href.includes("/employee/ws/resubmit-disconnection-application") || window.location.href.includes("/employee/ws/water/bulk-bill");
|
|
9591
9600
|
const locationCheckReqDocs = window.location.href.includes("/employee/ws/create-application") || window.location.href.includes("/employee/ws/new-disconnection/docsrequired");
|
|
9592
9601
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -9762,6 +9771,9 @@ const App$1 = ({
|
|
|
9762
9771
|
component: props => /*#__PURE__*/React.createElement(WSBillIAmendMentInbox, Object.assign({}, props, {
|
|
9763
9772
|
parentRoute: path
|
|
9764
9773
|
}))
|
|
9774
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9775
|
+
path: `${path}/info`,
|
|
9776
|
+
component: WSInfoPage
|
|
9765
9777
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9766
9778
|
path: `${path}/sewerage/bill-amendment/inbox`,
|
|
9767
9779
|
component: props => /*#__PURE__*/React.createElement(WSBillIAmendMentInbox, Object.assign({}, props, {
|
|
@@ -23161,7 +23173,7 @@ const WSCard = () => {
|
|
|
23161
23173
|
}, [wsData]);
|
|
23162
23174
|
let links = [{
|
|
23163
23175
|
label: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
23164
|
-
link: `/digit-ui/employee/ws/
|
|
23176
|
+
link: `/digit-ui/employee/ws/info`,
|
|
23165
23177
|
roles: ["WS_CEMP", "SW_CEMP"]
|
|
23166
23178
|
}];
|
|
23167
23179
|
links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
|
|
@@ -31473,6 +31485,266 @@ const BillSearchResults = () => {
|
|
|
31473
31485
|
})));
|
|
31474
31486
|
};
|
|
31475
31487
|
|
|
31488
|
+
const getAddress$1 = (address, t) => {
|
|
31489
|
+
return `${address !== null && address !== void 0 && address.doorNo ? `${address === null || address === void 0 ? void 0 : address.doorNo}, ` : ""} ${address !== null && address !== void 0 && address.street ? `${address === null || address === void 0 ? void 0 : address.street}, ` : ""}${address !== null && address !== void 0 && address.landmark ? `${address === null || address === void 0 ? void 0 : address.landmark}, ` : ""}${t(Digit.Utils.pt.getMohallaLocale(address === null || address === void 0 ? void 0 : address.locality.code, address === null || address === void 0 ? void 0 : address.tenantId))}, ${t(Digit.Utils.pt.getCityLocale(address === null || address === void 0 ? void 0 : address.tenantId))}${address !== null && address !== void 0 && address.pincode && t(address === null || address === void 0 ? void 0 : address.pincode) ? `, ${address.pincode}` : " "}`;
|
|
31490
|
+
};
|
|
31491
|
+
const WSInfoPage = () => {
|
|
31492
|
+
var _Digit$UserService$ge, _Digit$UserService$ge2, _propertyDetails$Prop;
|
|
31493
|
+
const {
|
|
31494
|
+
t
|
|
31495
|
+
} = useTranslation();
|
|
31496
|
+
const history = useHistory();
|
|
31497
|
+
const location = useLocation();
|
|
31498
|
+
const match = useRouteMatch();
|
|
31499
|
+
const isEmployee = window.location.href.includes("/employee");
|
|
31500
|
+
const [hasProperty, setHasProperty] = useState(null);
|
|
31501
|
+
const [selectedProperty, setSelectedProperty] = useState(null);
|
|
31502
|
+
const [searchMobileNumber, setSearchMobileNumber] = useState("");
|
|
31503
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
31504
|
+
const userMobileNumber = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.mobileNumber;
|
|
31505
|
+
const mobileNumberToSearch = isEmployee ? searchMobileNumber : userMobileNumber;
|
|
31506
|
+
const {
|
|
31507
|
+
isLoading,
|
|
31508
|
+
data: propertyDetails
|
|
31509
|
+
} = Digit.Hooks.pt.usePropertySearch({
|
|
31510
|
+
filters: {
|
|
31511
|
+
mobileNumber: mobileNumberToSearch
|
|
31512
|
+
},
|
|
31513
|
+
tenantId: tenantId
|
|
31514
|
+
}, {
|
|
31515
|
+
filters: {
|
|
31516
|
+
mobileNumber: mobileNumberToSearch
|
|
31517
|
+
},
|
|
31518
|
+
tenantId: tenantId,
|
|
31519
|
+
enabled: (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && (mobileNumberToSearch === null || mobileNumberToSearch === void 0 ? void 0 : mobileNumberToSearch.length) === 10 ? true : false
|
|
31520
|
+
});
|
|
31521
|
+
const radioOptions = [{
|
|
31522
|
+
code: "YES",
|
|
31523
|
+
i18nKey: "TL_COMMON_YES"
|
|
31524
|
+
}, {
|
|
31525
|
+
code: "NO",
|
|
31526
|
+
i18nKey: "TL_COMMON_NO"
|
|
31527
|
+
}];
|
|
31528
|
+
const handleNext = () => {
|
|
31529
|
+
const isEmployee = window.location.href.includes("/employee");
|
|
31530
|
+
const baseUrl = isEmployee ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
|
|
31531
|
+
if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
|
|
31532
|
+
history.push(`${baseUrl}/old-application?propertyId=${selectedProperty.propertyId}`);
|
|
31533
|
+
} else if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty) {
|
|
31534
|
+
return;
|
|
31535
|
+
} else {
|
|
31536
|
+
history.push(`${baseUrl}/old-application`);
|
|
31537
|
+
}
|
|
31538
|
+
};
|
|
31539
|
+
const handleCreateProperty = () => {
|
|
31540
|
+
const propertyUrl = isEmployee ? "/digit-ui/employee/ws/create-application/create-property" : "/digit-ui/citizen/commonpt-home";
|
|
31541
|
+
history.push(propertyUrl);
|
|
31542
|
+
};
|
|
31543
|
+
const propertyOptions = (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop = propertyDetails.Properties) === null || _propertyDetails$Prop === void 0 ? void 0 : _propertyDetails$Prop.map(prop => ({
|
|
31544
|
+
...prop,
|
|
31545
|
+
displayName: `${prop.propertyId} - ${getAddress$1(prop.address, t)}`
|
|
31546
|
+
}))) || [];
|
|
31547
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t("WS_COMMON_APPL_NEW_CONNECTION")), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
|
|
31548
|
+
style: {
|
|
31549
|
+
margin: "0px",
|
|
31550
|
+
textAlign: "left",
|
|
31551
|
+
marginBottom: "16px"
|
|
31552
|
+
},
|
|
31553
|
+
textStyle: {
|
|
31554
|
+
color: "#0B0C0C"
|
|
31555
|
+
},
|
|
31556
|
+
text: t("WS_INFO_ESTIMATED_TIME_10_20_MINS"),
|
|
31557
|
+
showInfo: false
|
|
31558
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
31559
|
+
style: {
|
|
31560
|
+
marginBottom: "24px"
|
|
31561
|
+
}
|
|
31562
|
+
}, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DO_YOU_HAVE_EXISTING_PROPERTY")), /*#__PURE__*/React.createElement(RadioButtons, {
|
|
31563
|
+
t: t,
|
|
31564
|
+
options: radioOptions,
|
|
31565
|
+
optionsKey: "i18nKey",
|
|
31566
|
+
value: hasProperty,
|
|
31567
|
+
selectedOption: hasProperty,
|
|
31568
|
+
onSelect: val => {
|
|
31569
|
+
setHasProperty(val);
|
|
31570
|
+
setSelectedProperty(null);
|
|
31571
|
+
},
|
|
31572
|
+
style: {
|
|
31573
|
+
display: "flex",
|
|
31574
|
+
gap: "24px"
|
|
31575
|
+
}
|
|
31576
|
+
})), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && /*#__PURE__*/React.createElement("div", {
|
|
31577
|
+
style: {
|
|
31578
|
+
marginBottom: "24px"
|
|
31579
|
+
}
|
|
31580
|
+
}, isEmployee && /*#__PURE__*/React.createElement("div", {
|
|
31581
|
+
style: {
|
|
31582
|
+
display: "flex",
|
|
31583
|
+
gap: "24px",
|
|
31584
|
+
marginBottom: "16px",
|
|
31585
|
+
alignItems: "flex-end"
|
|
31586
|
+
}
|
|
31587
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
31588
|
+
style: {
|
|
31589
|
+
flex: 1
|
|
31590
|
+
}
|
|
31591
|
+
}, /*#__PURE__*/React.createElement(Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, {
|
|
31592
|
+
t: t,
|
|
31593
|
+
type: "number",
|
|
31594
|
+
isMandatory: false,
|
|
31595
|
+
name: "mobileNumber",
|
|
31596
|
+
value: searchMobileNumber,
|
|
31597
|
+
onChange: e => {
|
|
31598
|
+
setSearchMobileNumber(e.target.value);
|
|
31599
|
+
setSelectedProperty(null);
|
|
31600
|
+
},
|
|
31601
|
+
placeholder: t("Enter mobile number"),
|
|
31602
|
+
maxLength: 10
|
|
31603
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
31604
|
+
style: {
|
|
31605
|
+
flex: 1
|
|
31606
|
+
}
|
|
31607
|
+
}, /*#__PURE__*/React.createElement(Label, null, t("WS_SELECT_EXISTING_PROPERTY")), /*#__PURE__*/React.createElement("div", {
|
|
31608
|
+
className: "field"
|
|
31609
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
31610
|
+
className: "form-field",
|
|
31611
|
+
option: propertyOptions,
|
|
31612
|
+
optionKey: "displayName",
|
|
31613
|
+
id: "propertyId",
|
|
31614
|
+
selected: selectedProperty,
|
|
31615
|
+
select: setSelectedProperty,
|
|
31616
|
+
t: t,
|
|
31617
|
+
placeholder: t("PT_SELECT_PROPERTY"),
|
|
31618
|
+
disable: isLoading || propertyOptions.length === 0
|
|
31619
|
+
})))), !isEmployee && /*#__PURE__*/React.createElement(Label, null, t("WS_SELECT_EXISTING_PROPERTY")), isLoading && !isEmployee ? /*#__PURE__*/React.createElement(Loader, null) : propertyOptions.length > 0 && !isEmployee && /*#__PURE__*/React.createElement("div", {
|
|
31620
|
+
style: {
|
|
31621
|
+
display: "flex",
|
|
31622
|
+
flexDirection: "column",
|
|
31623
|
+
gap: "8px"
|
|
31624
|
+
}
|
|
31625
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
31626
|
+
option: propertyOptions,
|
|
31627
|
+
optionKey: "displayName",
|
|
31628
|
+
id: "propertyId",
|
|
31629
|
+
selected: selectedProperty,
|
|
31630
|
+
select: setSelectedProperty,
|
|
31631
|
+
t: t,
|
|
31632
|
+
placeholder: t("PT_SELECT_PROPERTY")
|
|
31633
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
31634
|
+
style: {
|
|
31635
|
+
fontSize: "14px",
|
|
31636
|
+
color: "#505A5F"
|
|
31637
|
+
}
|
|
31638
|
+
}, t("WS_PROPERTY_AUTOFILL_MSG")))), (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" && /*#__PURE__*/React.createElement("div", {
|
|
31639
|
+
style: {
|
|
31640
|
+
marginBottom: "24px",
|
|
31641
|
+
display: "flex",
|
|
31642
|
+
flexDirection: "column",
|
|
31643
|
+
gap: "16px"
|
|
31644
|
+
}
|
|
31645
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
31646
|
+
onClick: handleCreateProperty
|
|
31647
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
31648
|
+
className: "submit-bar",
|
|
31649
|
+
type: "button",
|
|
31650
|
+
style: {
|
|
31651
|
+
color: "white",
|
|
31652
|
+
margin: 0
|
|
31653
|
+
}
|
|
31654
|
+
}, t("CPT_CREATE_PROPERTY")))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
31655
|
+
style: {
|
|
31656
|
+
marginTop: "0",
|
|
31657
|
+
marginBottom: "0"
|
|
31658
|
+
}
|
|
31659
|
+
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement("ul", {
|
|
31660
|
+
style: {
|
|
31661
|
+
listStyleType: "disc",
|
|
31662
|
+
marginLeft: "20px",
|
|
31663
|
+
marginBottom: "24px",
|
|
31664
|
+
lineHeight: "2"
|
|
31665
|
+
}
|
|
31666
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_SERVICE_TYPE")), /*#__PURE__*/React.createElement("li", null, t("WS_CONNECTION_TYPE")), /*#__PURE__*/React.createElement("li", null, t("WS_WATER_DEMAND_TYPE")), /*#__PURE__*/React.createElement("li", null, t("WS_APPLICANT_TYPE")), /*#__PURE__*/React.createElement("li", null, t("WS_DOMESTIC_TYPE"))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
31667
|
+
style: {
|
|
31668
|
+
marginTop: "0",
|
|
31669
|
+
marginBottom: "0"
|
|
31670
|
+
}
|
|
31671
|
+
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement("ul", {
|
|
31672
|
+
style: {
|
|
31673
|
+
listStyleType: "disc",
|
|
31674
|
+
marginLeft: "20px",
|
|
31675
|
+
marginBottom: "24px",
|
|
31676
|
+
lineHeight: "2"
|
|
31677
|
+
}
|
|
31678
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_NAME")), /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_MIDDLE_NAME")), /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_LAST_NAME")), /*#__PURE__*/React.createElement("li", null, t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")), /*#__PURE__*/React.createElement("li", null, t("WS_OWN_DETAIL_GUARDIAN_LABEL")), /*#__PURE__*/React.createElement("li", null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React.createElement("li", null, t("WS_EMAIL_ID"))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
31679
|
+
style: {
|
|
31680
|
+
marginTop: "0",
|
|
31681
|
+
marginBottom: "0"
|
|
31682
|
+
}
|
|
31683
|
+
}, t("PT_LOCATION_DETAILS")), /*#__PURE__*/React.createElement("ul", {
|
|
31684
|
+
style: {
|
|
31685
|
+
listStyleType: "disc",
|
|
31686
|
+
marginLeft: "20px",
|
|
31687
|
+
marginBottom: "24px",
|
|
31688
|
+
lineHeight: "2"
|
|
31689
|
+
}
|
|
31690
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_ZRO_LOCATION")), /*#__PURE__*/React.createElement("li", null, t("COMMON_ADDRESS_TYPE")), /*#__PURE__*/React.createElement("li", null, t("CITY")), /*#__PURE__*/React.createElement("li", null, t("PINCODE")), /*#__PURE__*/React.createElement("li", null, t("LOCALITY")), /*#__PURE__*/React.createElement("li", null, t("SubLocality")), /*#__PURE__*/React.createElement("li", null, t("STREET_NAME")), /*#__PURE__*/React.createElement("li", null, t("ADDRESS_LINE1")), /*#__PURE__*/React.createElement("li", null, t("ADDRESS_LINE2")), /*#__PURE__*/React.createElement("li", null, t("HOUSE_NO")), /*#__PURE__*/React.createElement("li", null, t("LATITUDE")), /*#__PURE__*/React.createElement("li", null, t("LONGITUDE")), /*#__PURE__*/React.createElement("li", null, t("ASSEMBLY")), /*#__PURE__*/React.createElement("li", null, t("WARD")), /*#__PURE__*/React.createElement("li", null, t("ZONE")), /*#__PURE__*/React.createElement("li", null, t("LANDMARK"))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
31691
|
+
style: {
|
|
31692
|
+
marginTop: "0",
|
|
31693
|
+
marginBottom: "0"
|
|
31694
|
+
}
|
|
31695
|
+
}, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React.createElement("ul", {
|
|
31696
|
+
style: {
|
|
31697
|
+
listStyleType: "disc",
|
|
31698
|
+
marginLeft: "20px",
|
|
31699
|
+
marginBottom: "24px",
|
|
31700
|
+
lineHeight: "2"
|
|
31701
|
+
}
|
|
31702
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_CATEGORY_TYPE")), /*#__PURE__*/React.createElement("li", null, t("WS_PROPERTY_CATEGORY")), /*#__PURE__*/React.createElement("li", null, t("WS_PROPERTY_TYPE")), /*#__PURE__*/React.createElement("li", null, t("WS_WATER_CONNECTION_USAGE_TYPE")), /*#__PURE__*/React.createElement("li", null, t("WS_NUMBER_OF_FLOORS")), /*#__PURE__*/React.createElement("li", null, t("WS_PLOT_AREA")), /*#__PURE__*/React.createElement("li", null, t("WS_BUILT_UP_AREA")), /*#__PURE__*/React.createElement("li", null, t("WS_SELECT_YEAR_OF_CONSTRUCTION")), /*#__PURE__*/React.createElement("li", null, t("WS_NUMBER_OF_DWELLING_UNITS"))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
31703
|
+
style: {
|
|
31704
|
+
marginTop: "0",
|
|
31705
|
+
marginBottom: "0"
|
|
31706
|
+
}
|
|
31707
|
+
}, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement("ul", {
|
|
31708
|
+
style: {
|
|
31709
|
+
listStyleType: "disc",
|
|
31710
|
+
marginLeft: "20px",
|
|
31711
|
+
marginBottom: "24px",
|
|
31712
|
+
lineHeight: "2"
|
|
31713
|
+
}
|
|
31714
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React.createElement("li", null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React.createElement("li", null, t("WS_EMPLOYEE_DESIGNATION"))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
31715
|
+
style: {
|
|
31716
|
+
marginTop: "0",
|
|
31717
|
+
marginBottom: "0"
|
|
31718
|
+
}
|
|
31719
|
+
}, t("WS_BANK_DETAILS")), /*#__PURE__*/React.createElement("ul", {
|
|
31720
|
+
style: {
|
|
31721
|
+
listStyleType: "disc",
|
|
31722
|
+
marginLeft: "20px",
|
|
31723
|
+
marginBottom: "24px",
|
|
31724
|
+
lineHeight: "2"
|
|
31725
|
+
}
|
|
31726
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_NAME_OF_BANK")), /*#__PURE__*/React.createElement("li", null, t("WS_NAME_OF_BRANCH")), /*#__PURE__*/React.createElement("li", null, t("WS_IFSC_CODE")), /*#__PURE__*/React.createElement("li", null, t("WS_BANK_ACCOUNT_NO"))), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
31727
|
+
style: {
|
|
31728
|
+
marginTop: "0",
|
|
31729
|
+
marginBottom: "0"
|
|
31730
|
+
}
|
|
31731
|
+
}, t("WS_DOCUMENTS")), /*#__PURE__*/React.createElement("ul", {
|
|
31732
|
+
style: {
|
|
31733
|
+
listStyleType: "disc",
|
|
31734
|
+
marginLeft: "20px",
|
|
31735
|
+
marginBottom: "24px",
|
|
31736
|
+
lineHeight: "2"
|
|
31737
|
+
}
|
|
31738
|
+
}, /*#__PURE__*/React.createElement("li", null, t("WS_DOC_IDENTITY_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ADDRESS_PROOF")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_ELECTRICITY_BILL")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PLUMBER_REPORT")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_BUILDING_PLAN")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_PROPERTY_TAX_RECEIPT")), /*#__PURE__*/React.createElement("li", null, t("WS_DOC_APPLICANT_PHOTOGRAPH"))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement(SubmitBar, {
|
|
31739
|
+
label: t("CS_COMMON_NEXT"),
|
|
31740
|
+
onSubmit: () => {},
|
|
31741
|
+
disabled: true
|
|
31742
|
+
}) : /*#__PURE__*/React.createElement(SubmitBar, {
|
|
31743
|
+
label: t("CS_COMMON_NEXT"),
|
|
31744
|
+
onSubmit: handleNext
|
|
31745
|
+
})));
|
|
31746
|
+
};
|
|
31747
|
+
|
|
31476
31748
|
const ApplicationBillAmendment = () => {
|
|
31477
31749
|
var _data$BillingService, _data$BillingService$, _data$BillingService2, _data$BillingService3, _state, _state$data, _state$data$applicati, _state$data$applicati2, _state$data$applicati3, _billSearchData, _billSearchData$filte, _billSearchData2, _state9, _state9$data, _errors$WS_REDUCED_AM, _errors$WS_ADDITIONAL, _billSearchData3, _errors$effectiveTill, _errors$effectiveTill2, _state12, _state12$data;
|
|
31478
31750
|
const [showToast, setShowToast] = useState(null);
|
|
@@ -39888,131 +40160,6 @@ function PropertyFloors({
|
|
|
39888
40160
|
}));
|
|
39889
40161
|
}
|
|
39890
40162
|
|
|
39891
|
-
function PropertyOwners({
|
|
39892
|
-
owners
|
|
39893
|
-
}) {
|
|
39894
|
-
let ownerSequences = {};
|
|
39895
|
-
if (window.location.href.includes("/employee/pt/")) {
|
|
39896
|
-
ownerSequences = owners.slice().reverse();
|
|
39897
|
-
} else {
|
|
39898
|
-
ownerSequences = owners;
|
|
39899
|
-
}
|
|
39900
|
-
const {
|
|
39901
|
-
t
|
|
39902
|
-
} = useTranslation();
|
|
39903
|
-
const checkOwnerLength = (owners === null || owners === void 0 ? void 0 : owners.length) || 1;
|
|
39904
|
-
let cardStyles = {
|
|
39905
|
-
marginTop: "19px"
|
|
39906
|
-
};
|
|
39907
|
-
let statusTableStyles = {
|
|
39908
|
-
position: "relative",
|
|
39909
|
-
padding: "8px"
|
|
39910
|
-
};
|
|
39911
|
-
let rowContainerStyle = {
|
|
39912
|
-
justifyContent: "space-between",
|
|
39913
|
-
fontSize: "16px",
|
|
39914
|
-
lineHeight: "19px",
|
|
39915
|
-
color: "#0B0C0C"
|
|
39916
|
-
};
|
|
39917
|
-
if ( Number(checkOwnerLength) > 1) {
|
|
39918
|
-
cardStyles = {
|
|
39919
|
-
marginTop: "19px",
|
|
39920
|
-
background: "#FAFAFA",
|
|
39921
|
-
border: "1px solid #D6D5D4",
|
|
39922
|
-
borderRadius: "4px",
|
|
39923
|
-
padding: "8px",
|
|
39924
|
-
lineHeight: "19px",
|
|
39925
|
-
maxWidth: "600px",
|
|
39926
|
-
minWidth: "280px"
|
|
39927
|
-
};
|
|
39928
|
-
} else if ( !(Number(checkOwnerLength) > 1)) {
|
|
39929
|
-
cardStyles = {
|
|
39930
|
-
marginTop: "19px",
|
|
39931
|
-
lineHeight: "19px",
|
|
39932
|
-
maxWidth: "600px",
|
|
39933
|
-
minWidth: "280px"
|
|
39934
|
-
};
|
|
39935
|
-
statusTableStyles = {
|
|
39936
|
-
position: "relative",
|
|
39937
|
-
marginTop: "19px"
|
|
39938
|
-
};
|
|
39939
|
-
}
|
|
39940
|
-
if (window.location.href.includes("obps")) {
|
|
39941
|
-
cardStyles = {
|
|
39942
|
-
...cardStyles,
|
|
39943
|
-
maxWidth: "950px"
|
|
39944
|
-
};
|
|
39945
|
-
cardStyles = {
|
|
39946
|
-
...cardStyles,
|
|
39947
|
-
maxWidth: "950px"
|
|
39948
|
-
};
|
|
39949
|
-
rowContainerStyle = {};
|
|
39950
|
-
}
|
|
39951
|
-
let owners1 = owners.sort((item, item2) => {
|
|
39952
|
-
var _item$additionalDetai, _item2$additionalDeta;
|
|
39953
|
-
return (item === null || item === void 0 ? void 0 : (_item$additionalDetai = item.additionalDetails) === null || _item$additionalDetai === void 0 ? void 0 : _item$additionalDetai.ownerSequence) - (item2 === null || item2 === void 0 ? void 0 : (_item2$additionalDeta = item2.additionalDetails) === null || _item2$additionalDeta === void 0 ? void 0 : _item2$additionalDeta.ownerSequence);
|
|
39954
|
-
});
|
|
39955
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
39956
|
-
className: "owner-details"
|
|
39957
|
-
}, ownerSequences.map((owner, index) => {
|
|
39958
|
-
var _owner$values;
|
|
39959
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
39960
|
-
key: t(owner === null || owner === void 0 ? void 0 : owner.title),
|
|
39961
|
-
style: cardStyles,
|
|
39962
|
-
className: "owner-details-child"
|
|
39963
|
-
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
39964
|
-
style: Number(checkOwnerLength) > 1 ? {
|
|
39965
|
-
marginBottom: "8px",
|
|
39966
|
-
paddingBottom: "9px",
|
|
39967
|
-
color: "#0B0C0C",
|
|
39968
|
-
fontSize: "16px",
|
|
39969
|
-
lineHeight: "19px"
|
|
39970
|
-
} : {
|
|
39971
|
-
marginBottom: "8px",
|
|
39972
|
-
color: "#505A5F",
|
|
39973
|
-
fontSize: "24px"
|
|
39974
|
-
}
|
|
39975
|
-
}, Number(checkOwnerLength) > 1 ? `${t(owner === null || owner === void 0 ? void 0 : owner.title)} ${index + 1}` : t(owner === null || owner === void 0 ? void 0 : owner.title)), /*#__PURE__*/React.createElement(React.Fragment, {
|
|
39976
|
-
key: index
|
|
39977
|
-
}, /*#__PURE__*/React.createElement(StatusTable, {
|
|
39978
|
-
style: statusTableStyles
|
|
39979
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
39980
|
-
style: {
|
|
39981
|
-
maxWidth: "640px",
|
|
39982
|
-
top: 0,
|
|
39983
|
-
left: 0,
|
|
39984
|
-
bottom: 0,
|
|
39985
|
-
right: 0,
|
|
39986
|
-
width: "auto"
|
|
39987
|
-
}
|
|
39988
|
-
}), owner === null || owner === void 0 ? void 0 : (_owner$values = owner.values) === null || _owner$values === void 0 ? void 0 : _owner$values.map((value, index) => {
|
|
39989
|
-
var _value$values;
|
|
39990
|
-
if (value.map === true && value.value !== "N/A") {
|
|
39991
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
39992
|
-
key: t(value.title),
|
|
39993
|
-
label: t(value.title),
|
|
39994
|
-
text: /*#__PURE__*/React.createElement("img", {
|
|
39995
|
-
src: t(value.value),
|
|
39996
|
-
alt: "",
|
|
39997
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy
|
|
39998
|
-
})
|
|
39999
|
-
});
|
|
40000
|
-
}
|
|
40001
|
-
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Row, {
|
|
40002
|
-
key: t(value.title),
|
|
40003
|
-
label: `${t(value.title)}`,
|
|
40004
|
-
text: t(value.value) || "N/A",
|
|
40005
|
-
last: index === (value === null || value === void 0 ? void 0 : (_value$values = value.values) === null || _value$values === void 0 ? void 0 : _value$values.length) - 1,
|
|
40006
|
-
caption: value.caption,
|
|
40007
|
-
className: "border-none",
|
|
40008
|
-
textStyle: value.textStyle,
|
|
40009
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy,
|
|
40010
|
-
rowContainerStyle: rowContainerStyle
|
|
40011
|
-
}));
|
|
40012
|
-
}))));
|
|
40013
|
-
})));
|
|
40014
|
-
}
|
|
40015
|
-
|
|
40016
40163
|
const ScruntinyDetails = ({
|
|
40017
40164
|
scrutinyDetails,
|
|
40018
40165
|
paymentsList: _paymentsList = []
|
|
@@ -41806,7 +41953,7 @@ function ApplicationDetailsContent({
|
|
|
41806
41953
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
41807
41954
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
41808
41955
|
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
|
|
41809
|
-
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,
|
|
41956
|
+
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;
|
|
41810
41957
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
41811
41958
|
key: index
|
|
41812
41959
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -42004,53 +42151,51 @@ function ApplicationDetailsContent({
|
|
|
42004
42151
|
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
|
|
42005
42152
|
}), (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, {
|
|
42006
42153
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
42007
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.
|
|
42008
|
-
|
|
42009
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.
|
|
42010
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.
|
|
42011
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.
|
|
42012
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.accessories
|
|
42013
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.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, {
|
|
42154
|
+
}), (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, {
|
|
42155
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet6 = detail.additionalDetails) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.units
|
|
42156
|
+
}), (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, {
|
|
42157
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.accessories
|
|
42158
|
+
}), (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, {
|
|
42014
42159
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
42015
42160
|
t: t,
|
|
42016
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42017
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42161
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.permissions
|
|
42162
|
+
}), (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, {
|
|
42018
42163
|
t: t,
|
|
42019
42164
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
42020
42165
|
docs: detail.additionalDetails.obpsDocuments,
|
|
42021
42166
|
bpaActionsDetails: workflowDetails
|
|
42022
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42167
|
+
}), (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, {
|
|
42023
42168
|
t: t,
|
|
42024
42169
|
isNoc: true,
|
|
42025
42170
|
NOCdata: detail.values,
|
|
42026
42171
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
42027
42172
|
docs: detail.additionalDetails.noc,
|
|
42028
|
-
noc: (_detail$
|
|
42173
|
+
noc: (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.data,
|
|
42029
42174
|
bpaActionsDetails: workflowDetails
|
|
42030
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42175
|
+
}), (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, {
|
|
42031
42176
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
42032
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42177
|
+
}), (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, {
|
|
42033
42178
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
42034
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42179
|
+
}), (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, {
|
|
42035
42180
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
42036
42181
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
42037
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42038
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42039
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42040
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42041
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42042
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42182
|
+
}), (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, {
|
|
42183
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.documentsWithUrl
|
|
42184
|
+
}), (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, {
|
|
42185
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents
|
|
42186
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
42187
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.taxHeadEstimatesCalculation
|
|
42043
42188
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
42044
42189
|
wsAdditionalDetails: detail,
|
|
42045
42190
|
oldValue: oldValue
|
|
42046
|
-
}), (detail === null || detail === void 0 ? void 0 : detail.isDueVerification) && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" && /*#__PURE__*/React.createElement(DueVerification, null), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42047
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42191
|
+
}), (detail === null || detail === void 0 ? void 0 : detail.isDueVerification) && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" && /*#__PURE__*/React.createElement(DueVerification, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
42192
|
+
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : (_detail$additionalDet23 = _detail$additionalDet22.redirectUrl) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.url
|
|
42048
42193
|
}, /*#__PURE__*/React.createElement("span", {
|
|
42049
42194
|
className: "add-details-link hover-button"
|
|
42050
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42195
|
+
}, 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.title)), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : _detail$additionalDet26.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
42051
42196
|
wsAdditionalDetails: detail,
|
|
42052
42197
|
workflowDetails: workflowDetails
|
|
42053
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
42198
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet27 = detail.additionalDetails) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
|
|
42054
42199
|
wsAdditionalDetails: detail,
|
|
42055
42200
|
workflowDetails: workflowDetails
|
|
42056
42201
|
}));
|
|
@@ -47220,9 +47365,17 @@ const OLDApplication = () => {
|
|
|
47220
47365
|
}, {
|
|
47221
47366
|
label: "WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER"
|
|
47222
47367
|
}, {
|
|
47223
|
-
label: "
|
|
47368
|
+
label: "PT_LOCATION_DETAILS"
|
|
47224
47369
|
}, {
|
|
47225
|
-
label: "
|
|
47370
|
+
label: "WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS"
|
|
47371
|
+
}, {
|
|
47372
|
+
label: "WS_DJB_EMPLOYEE"
|
|
47373
|
+
}, {
|
|
47374
|
+
label: "WS_BANK_DETAILS"
|
|
47375
|
+
}, {
|
|
47376
|
+
label: "WS_DOCUMENTS"
|
|
47377
|
+
}, {
|
|
47378
|
+
label: "WS_DECLARATION"
|
|
47226
47379
|
}].map((step, index) => ({
|
|
47227
47380
|
route: `step-${index + 1}`,
|
|
47228
47381
|
timeLine: [{
|
|
@@ -47282,7 +47435,8 @@ const OLDApplication = () => {
|
|
|
47282
47435
|
type: "component",
|
|
47283
47436
|
key: "propertyAddress",
|
|
47284
47437
|
component: "CPTPropertyLocationDetails",
|
|
47285
|
-
withoutLabel: true
|
|
47438
|
+
withoutLabel: true,
|
|
47439
|
+
isAutomaticFill: true
|
|
47286
47440
|
}]
|
|
47287
47441
|
});
|
|
47288
47442
|
} else if (compName === "PropertyWaterConnection") {
|
|
@@ -47292,7 +47446,8 @@ const OLDApplication = () => {
|
|
|
47292
47446
|
type: "component",
|
|
47293
47447
|
key: "useDetails",
|
|
47294
47448
|
component: "PropertyWaterConnection",
|
|
47295
|
-
withoutLabel: true
|
|
47449
|
+
withoutLabel: true,
|
|
47450
|
+
isAutomaticFill: true
|
|
47296
47451
|
}]
|
|
47297
47452
|
});
|
|
47298
47453
|
} else if (compName === "WSBankDetails") {
|
|
@@ -47848,7 +48003,7 @@ const WSLinks = ({
|
|
|
47848
48003
|
t
|
|
47849
48004
|
} = useTranslation();
|
|
47850
48005
|
const links = [{
|
|
47851
|
-
link: `${matchPath}/
|
|
48006
|
+
link: `${matchPath}/info`,
|
|
47852
48007
|
i18nKey: t("ACTION_TEST_APPLY_NEW_CONNECTION")
|
|
47853
48008
|
}, {
|
|
47854
48009
|
link: `${matchPath}/my-applications`,
|
|
@@ -47925,6 +48080,7 @@ const componentsToRegister = {
|
|
|
47925
48080
|
WSCitizenEditApplication: EditApplication,
|
|
47926
48081
|
WSReSubmitDisconnectionApplication: ReSubmitDisconnectionApplication,
|
|
47927
48082
|
WNSMyBillsComponent: BillSearchResults,
|
|
48083
|
+
WSInfoPage: WSInfoPage,
|
|
47928
48084
|
WSCheckPage: CheckPage,
|
|
47929
48085
|
WSAcknowledgement,
|
|
47930
48086
|
WSDisconnectionCheckPage: CheckPage$1,
|