@djb25/digit-ui-module-ws 1.0.34 → 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 +578 -382
- 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 {
|
|
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';
|
|
@@ -1368,7 +1368,8 @@ const convertApplicationData = (data, serviceType, modify = false, editByConfig
|
|
|
1368
1368
|
documentType: data === null || data === void 0 ? void 0 : data.documentType,
|
|
1369
1369
|
id: data.id,
|
|
1370
1370
|
documentUid: data === null || data === void 0 ? void 0 : data.documentUid,
|
|
1371
|
-
fileStoreId: data === null || data === void 0 ? void 0 : data.fileStoreId
|
|
1371
|
+
fileStoreId: data === null || data === void 0 ? void 0 : data.fileStoreId,
|
|
1372
|
+
isVerified: data === null || data === void 0 ? void 0 : data.isVerified
|
|
1372
1373
|
});
|
|
1373
1374
|
});
|
|
1374
1375
|
}
|
|
@@ -1569,7 +1570,8 @@ const convertDisonnectApplicationData = (data, serviceType, editByConfig = false
|
|
|
1569
1570
|
documentType: data === null || data === void 0 ? void 0 : data.documentType,
|
|
1570
1571
|
id: data.id,
|
|
1571
1572
|
documentUid: data === null || data === void 0 ? void 0 : data.documentUid,
|
|
1572
|
-
fileStoreId: data === null || data === void 0 ? void 0 : data.fileStoreId
|
|
1573
|
+
fileStoreId: data === null || data === void 0 ? void 0 : data.fileStoreId,
|
|
1574
|
+
isVerified: data === null || data === void 0 ? void 0 : data.isVerified
|
|
1573
1575
|
});
|
|
1574
1576
|
});
|
|
1575
1577
|
}
|
|
@@ -7586,6 +7588,117 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
7586
7588
|
}).call(commonjsGlobal);
|
|
7587
7589
|
});
|
|
7588
7590
|
|
|
7591
|
+
const WSApplication = ({
|
|
7592
|
+
application
|
|
7593
|
+
}) => {
|
|
7594
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6, _application$applicat6, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat7;
|
|
7595
|
+
const {
|
|
7596
|
+
t
|
|
7597
|
+
} = useTranslation();
|
|
7598
|
+
const user = Digit.UserService.getUser();
|
|
7599
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.userName : user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.mobileNumber;
|
|
7600
|
+
let encodeApplicationNo = encodeURI(application.applicationNo);
|
|
7601
|
+
let filter1 = {
|
|
7602
|
+
tenantId: application.tenantId,
|
|
7603
|
+
applicationNumber: application.applicationNo
|
|
7604
|
+
};
|
|
7605
|
+
const {
|
|
7606
|
+
isLoading,
|
|
7607
|
+
isError,
|
|
7608
|
+
error,
|
|
7609
|
+
data
|
|
7610
|
+
} = Digit.Hooks.ws.useMyApplicationSearch({
|
|
7611
|
+
filters: filter1,
|
|
7612
|
+
BusinessService: (_application$applicat = application.applicationNo) !== null && _application$applicat !== void 0 && _application$applicat.includes("SW") ? "SW" : "WS"
|
|
7613
|
+
}, {
|
|
7614
|
+
filters: filter1,
|
|
7615
|
+
privacy: Digit.Utils.getPrivacyObject()
|
|
7616
|
+
});
|
|
7617
|
+
const {
|
|
7618
|
+
isLoading: isPTLoading,
|
|
7619
|
+
isError: isPTError,
|
|
7620
|
+
error: PTerror,
|
|
7621
|
+
data: PTData
|
|
7622
|
+
} = Digit.Hooks.pt.usePropertySearch({
|
|
7623
|
+
tenantId: application === null || application === void 0 ? void 0 : application.tenantId,
|
|
7624
|
+
filters: {
|
|
7625
|
+
propertyIds: application === null || application === void 0 ? void 0 : application.propertyId
|
|
7626
|
+
}
|
|
7627
|
+
}, {
|
|
7628
|
+
filters: {
|
|
7629
|
+
propertyIds: application === null || application === void 0 ? void 0 : application.propertyId
|
|
7630
|
+
},
|
|
7631
|
+
privacy: Digit.Utils.getPrivacyObject()
|
|
7632
|
+
});
|
|
7633
|
+
const businessService = application !== null && application !== void 0 && (_application$applicat2 = application.applicationNo) !== null && _application$applicat2 !== void 0 && _application$applicat2.includes("SW") ? application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("DC") ? "WS" : "WS.ONE_TIME_FEE";
|
|
7634
|
+
const fetchBillParams = {
|
|
7635
|
+
consumerCode: application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.connectionNo
|
|
7636
|
+
};
|
|
7637
|
+
if (isLoading) {
|
|
7638
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
7639
|
+
}
|
|
7640
|
+
return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(KeyNote, {
|
|
7641
|
+
keyValue: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
7642
|
+
note: application === null || application === void 0 ? void 0 : application.applicationNo
|
|
7643
|
+
}), /*#__PURE__*/React.createElement(KeyNote, {
|
|
7644
|
+
keyValue: t("WS_SERVICE_NAME"),
|
|
7645
|
+
note: t(`WS_APPLICATION_TYPE_${application === null || application === void 0 ? void 0 : application.applicationType}`)
|
|
7646
|
+
}), /*#__PURE__*/React.createElement(KeyNote, {
|
|
7647
|
+
keyValue: t("WS_CONSUMER_NAME"),
|
|
7648
|
+
note: (application === null || application === void 0 ? void 0 : (_application$connecti = application.connectionHolders) === null || _application$connecti === void 0 ? void 0 : _application$connecti.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$property = application.property) === null || _application$property === void 0 ? void 0 : (_application$property2 = _application$property.owners) === null || _application$property2 === void 0 ? void 0 : _application$property2.sort((a, b) => {
|
|
7649
|
+
var _a$additionalDetails, _b$additionalDetails;
|
|
7650
|
+
return (a === null || a === void 0 ? void 0 : (_a$additionalDetails = a.additionalDetails) === null || _a$additionalDetails === void 0 ? void 0 : _a$additionalDetails.ownerSequence) - (b === null || b === void 0 ? void 0 : (_b$additionalDetails = b.additionalDetails) === null || _b$additionalDetails === void 0 ? void 0 : _b$additionalDetails.ownerSequence);
|
|
7651
|
+
}).map(owner => owner.name).join(",")) || t("CS_NA")
|
|
7652
|
+
}), /*#__PURE__*/React.createElement(KeyNote, {
|
|
7653
|
+
keyValue: t("WS_PROPERTY_ID"),
|
|
7654
|
+
note: (application === null || application === void 0 ? void 0 : application.propertyId) || t("CS_NA")
|
|
7655
|
+
}), /*#__PURE__*/React.createElement(KeyNote, {
|
|
7656
|
+
keyValue: t("WS_STATUS"),
|
|
7657
|
+
note: t(`CS_${application === null || application === void 0 ? void 0 : application.applicationStatus}`) || t("CS_NA")
|
|
7658
|
+
}), /*#__PURE__*/React.createElement(KeyNote, {
|
|
7659
|
+
keyValue: t("WS_SLA"),
|
|
7660
|
+
note: Math.round((application === null || application === void 0 ? void 0 : application.sla) / (24 * 60 * 60 * 1000)) ? `${Math.round((application === null || application === void 0 ? void 0 : application.sla) / (24 * 60 * 60 * 1000))} Days` : t("CS_NA")
|
|
7661
|
+
}), /*#__PURE__*/React.createElement(KeyNote, {
|
|
7662
|
+
keyValue: t("WS_PROPERTY_ADDRESS"),
|
|
7663
|
+
note: getAddress(application === null || application === void 0 ? void 0 : (_application$property3 = application.property) === null || _application$property3 === void 0 ? void 0 : _application$property3.address, t),
|
|
7664
|
+
privacy: {
|
|
7665
|
+
uuid: application === null || application === void 0 ? void 0 : (_application$property4 = application.property) === null || _application$property4 === void 0 ? void 0 : (_application$property5 = _application$property4.owners) === null || _application$property5 === void 0 ? void 0 : (_application$property6 = _application$property5[0]) === null || _application$property6 === void 0 ? void 0 : _application$property6.uuid,
|
|
7666
|
+
fieldName: ["doorNo", "street", "landmark"],
|
|
7667
|
+
model: "Property",
|
|
7668
|
+
showValue: true,
|
|
7669
|
+
loadData: {
|
|
7670
|
+
serviceName: "/property-services/property/_search",
|
|
7671
|
+
requestBody: {},
|
|
7672
|
+
requestParam: {
|
|
7673
|
+
tenantId: (application === null || application === void 0 ? void 0 : application.tenantId) || "dl.djb",
|
|
7674
|
+
mobileNumber: userMobileNumber
|
|
7675
|
+
},
|
|
7676
|
+
jsonPath: "Properties[0].address.street",
|
|
7677
|
+
isArray: false,
|
|
7678
|
+
d: res => {
|
|
7679
|
+
let resultString = (lodash.get(res, "Properties[0].address.doorNo") ? `${lodash.get(res, "Properties[0].address.doorNo")}, ` : "") + (lodash.get(res, "Properties[0].address.street") ? `${lodash.get(res, "Properties[0].address.street")}, ` : "") + (lodash.get(res, "Properties[0].address.landmark") ? `${lodash.get(res, "Properties[0].address.landmark")}` : "");
|
|
7680
|
+
return resultString;
|
|
7681
|
+
}
|
|
7682
|
+
}
|
|
7683
|
+
}
|
|
7684
|
+
}), /*#__PURE__*/React.createElement(Link, {
|
|
7685
|
+
to: `/digit-ui/citizen/ws/connection/application/${encodeApplicationNo}`
|
|
7686
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
7687
|
+
label: t("WS_VIEW_DETAILS_LABEL")
|
|
7688
|
+
})), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
|
|
7689
|
+
to: {
|
|
7690
|
+
pathname: `/digit-ui/citizen/payment/my-bills/${businessService}/${application !== null && application !== void 0 && (_application$applicat6 = application.applicationNo) !== null && _application$applicat6 !== void 0 && _application$applicat6.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")}?workflow=WNS&tenantId=${application === null || application === void 0 ? void 0 : application.tenantId}&ConsumerName=${(application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))}&isDisoconnectFlow=${application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? true : false}`,
|
|
7691
|
+
state: {}
|
|
7692
|
+
}
|
|
7693
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7694
|
+
style: {
|
|
7695
|
+
marginTop: "10px"
|
|
7696
|
+
}
|
|
7697
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
7698
|
+
label: t("MAKE_PAYMENT")
|
|
7699
|
+
}))) : null);
|
|
7700
|
+
};
|
|
7701
|
+
|
|
7589
7702
|
const EyeSvgINdex = ({
|
|
7590
7703
|
style
|
|
7591
7704
|
}) => {
|
|
@@ -7641,19 +7754,20 @@ const WSInfoLabel = ({
|
|
|
7641
7754
|
};
|
|
7642
7755
|
|
|
7643
7756
|
const WSMyApplications = () => {
|
|
7644
|
-
var
|
|
7757
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _data$WaterConnection2, _SWdata$SewerageConne2, _WSapplicationsList, _SWapplicationsList, _WSapplicationsList2, _SWapplicationsList2, _applicationsList, _applicationsList2;
|
|
7645
7758
|
const {
|
|
7646
7759
|
t
|
|
7647
7760
|
} = useTranslation();
|
|
7648
7761
|
const user = Digit.UserService.getUser();
|
|
7649
|
-
const tenantId =
|
|
7762
|
+
const tenantId = "dl.djb";
|
|
7650
7763
|
let filter = window.location.href.split("/").pop();
|
|
7764
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.userName : user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.mobileNumber;
|
|
7651
7765
|
let filter1 = !isNaN(parseInt(filter)) ? {
|
|
7652
7766
|
tenantId: tenantId,
|
|
7653
|
-
mobileNumber:
|
|
7767
|
+
mobileNumber: userMobileNumber
|
|
7654
7768
|
} : {
|
|
7655
7769
|
tenantId: tenantId,
|
|
7656
|
-
mobileNumber:
|
|
7770
|
+
mobileNumber: userMobileNumber
|
|
7657
7771
|
};
|
|
7658
7772
|
const {
|
|
7659
7773
|
isLoading,
|
|
@@ -7678,7 +7792,7 @@ const WSMyApplications = () => {
|
|
|
7678
7792
|
});
|
|
7679
7793
|
let applicationNoWS = data && (data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : _data$WaterConnection.map(ob => ob.applicationNo).join(",")) || "";
|
|
7680
7794
|
let applicaionNoSW = SWdata && (SWdata === null || SWdata === void 0 ? void 0 : (_SWdata$SewerageConne = SWdata.SewerageConnections) === null || _SWdata$SewerageConne === void 0 ? void 0 : _SWdata$SewerageConne.map(ob => ob.applicationNo).join(",")) || "";
|
|
7681
|
-
let applicationNos =
|
|
7795
|
+
let applicationNos = applicationNoWS.concat(applicaionNoSW);
|
|
7682
7796
|
let workflowDetails = Digit.Hooks.useWorkflowDetails({
|
|
7683
7797
|
tenantId: tenantId,
|
|
7684
7798
|
id: applicationNos,
|
|
@@ -7687,20 +7801,24 @@ const WSMyApplications = () => {
|
|
|
7687
7801
|
enabled: !!applicationNos
|
|
7688
7802
|
}
|
|
7689
7803
|
});
|
|
7804
|
+
let propertyWS = data && (data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2.map(ob => ob === null || ob === void 0 ? void 0 : ob.propertyId).join(",")) || "";
|
|
7805
|
+
let propertySW = SWdata && (SWdata === null || SWdata === void 0 ? void 0 : (_SWdata$SewerageConne2 = SWdata.SewerageConnections) === null || _SWdata$SewerageConne2 === void 0 ? void 0 : _SWdata$SewerageConne2.map(ob => ob === null || ob === void 0 ? void 0 : ob.propertyId).join(",")) || "";
|
|
7806
|
+
let propertyNos = propertyWS.concat(propertySW);
|
|
7690
7807
|
const {
|
|
7691
7808
|
isLoading: PTisLoading,
|
|
7692
7809
|
isError: PTisError,
|
|
7693
7810
|
error: PTerror,
|
|
7694
7811
|
data: PTdata
|
|
7695
7812
|
} = Digit.Hooks.pt.usePropertySearch({
|
|
7813
|
+
tenantId: tenantId,
|
|
7696
7814
|
filters: {
|
|
7697
|
-
mobileNumber:
|
|
7815
|
+
mobileNumber: userMobileNumber
|
|
7698
7816
|
}
|
|
7699
7817
|
}, {
|
|
7700
7818
|
filters: {
|
|
7701
|
-
mobileNumber:
|
|
7819
|
+
mobileNumber: userMobileNumber
|
|
7702
7820
|
},
|
|
7703
|
-
enabled:
|
|
7821
|
+
enabled: userMobileNumber ? true : false
|
|
7704
7822
|
});
|
|
7705
7823
|
if (isLoading || isSWLoading || PTisLoading) {
|
|
7706
7824
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
@@ -7712,115 +7830,39 @@ const WSMyApplications = () => {
|
|
|
7712
7830
|
SewerageConnections: SWapplicationsList
|
|
7713
7831
|
} = SWdata || {};
|
|
7714
7832
|
WSapplicationsList = (_WSapplicationsList = WSapplicationsList) === null || _WSapplicationsList === void 0 ? void 0 : _WSapplicationsList.map(ob => {
|
|
7715
|
-
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3
|
|
7833
|
+
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3;
|
|
7716
7834
|
return {
|
|
7717
7835
|
...ob,
|
|
7718
|
-
"sla": workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.filter(pi => pi.businessId == ob.applicationNo)
|
|
7836
|
+
"sla": workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.filter(pi => pi.businessId == ob.applicationNo)[0]) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.businesssServiceSla
|
|
7719
7837
|
};
|
|
7720
7838
|
});
|
|
7721
7839
|
SWapplicationsList = (_SWapplicationsList = SWapplicationsList) === null || _SWapplicationsList === void 0 ? void 0 : _SWapplicationsList.map(ob => {
|
|
7722
|
-
var _workflowDetails$
|
|
7840
|
+
var _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6;
|
|
7723
7841
|
return {
|
|
7724
7842
|
...ob,
|
|
7725
|
-
"sla": workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
7843
|
+
"sla": workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4.processInstances) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.filter(pi => pi.businessId == ob.applicationNo)[0]) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.businesssServiceSla
|
|
7726
7844
|
};
|
|
7727
7845
|
});
|
|
7728
|
-
WSapplicationsList = (
|
|
7729
|
-
SWapplicationsList = (
|
|
7846
|
+
WSapplicationsList = (_WSapplicationsList2 = WSapplicationsList) === null || _WSapplicationsList2 === void 0 ? void 0 : _WSapplicationsList2.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.applicationType) !== "MODIFY_WATER_CONNECTION");
|
|
7847
|
+
SWapplicationsList = (_SWapplicationsList2 = SWapplicationsList) === null || _SWapplicationsList2 === void 0 ? void 0 : _SWapplicationsList2.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.applicationType) !== "MODIFY_SEWERAGE_CONNECTION");
|
|
7730
7848
|
let applicationsList = WSapplicationsList.concat(SWapplicationsList);
|
|
7731
|
-
applicationsList =
|
|
7849
|
+
applicationsList = applicationsList && applicationsList.map(ob => {
|
|
7732
7850
|
var _PTdata$Properties;
|
|
7733
7851
|
return {
|
|
7734
7852
|
...ob,
|
|
7735
7853
|
property: PTdata === null || PTdata === void 0 ? void 0 : (_PTdata$Properties = PTdata.Properties) === null || _PTdata$Properties === void 0 ? void 0 : _PTdata$Properties.filter(pt => (pt === null || pt === void 0 ? void 0 : pt.propertyId) === (ob === null || ob === void 0 ? void 0 : ob.propertyId))[0]
|
|
7736
7854
|
};
|
|
7737
7855
|
});
|
|
7738
|
-
const GetCell = value => /*#__PURE__*/React.createElement("span", {
|
|
7739
|
-
className: "cell-text"
|
|
7740
|
-
}, value);
|
|
7741
|
-
const columns = [{
|
|
7742
|
-
Header: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
7743
|
-
disableSortBy: true,
|
|
7744
|
-
accessor: "applicationNo",
|
|
7745
|
-
Cell: ({
|
|
7746
|
-
row
|
|
7747
|
-
}) => {
|
|
7748
|
-
let encodeApplicationNo = encodeURI(row.original.applicationNo);
|
|
7749
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
7750
|
-
className: "link"
|
|
7751
|
-
}, /*#__PURE__*/React.createElement(Link, {
|
|
7752
|
-
to: `/digit-ui/citizen/ws/connection/application/${encodeApplicationNo}`
|
|
7753
|
-
}, row.original.applicationNo || "NA"));
|
|
7754
|
-
}
|
|
7755
|
-
}, {
|
|
7756
|
-
Header: t("WS_SERVICE_NAME"),
|
|
7757
|
-
disableSortBy: true,
|
|
7758
|
-
Cell: ({
|
|
7759
|
-
row
|
|
7760
|
-
}) => {
|
|
7761
|
-
var _row$original;
|
|
7762
|
-
return GetCell(t(`WS_APPLICATION_TYPE_${(_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationType}`));
|
|
7763
|
-
}
|
|
7764
|
-
}, {
|
|
7765
|
-
Header: t("WS_CONSUMER_NAME"),
|
|
7766
|
-
disableSortBy: true,
|
|
7767
|
-
Cell: ({
|
|
7768
|
-
row
|
|
7769
|
-
}) => {
|
|
7770
|
-
var _row$original2, _row$original2$connec, _row$original3, _row$original3$proper, _row$original3$proper2;
|
|
7771
|
-
return GetCell(((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : (_row$original2$connec = _row$original2.connectionHolders) === null || _row$original2$connec === void 0 ? void 0 : _row$original2$connec.map(owner => owner.name).join(",")) || ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : (_row$original3$proper = _row$original3.property) === null || _row$original3$proper === void 0 ? void 0 : (_row$original3$proper2 = _row$original3$proper.owners) === null || _row$original3$proper2 === void 0 ? void 0 : _row$original3$proper2.sort((a, b) => {
|
|
7772
|
-
var _a$additionalDetails, _b$additionalDetails;
|
|
7773
|
-
return (a === null || a === void 0 ? void 0 : (_a$additionalDetails = a.additionalDetails) === null || _a$additionalDetails === void 0 ? void 0 : _a$additionalDetails.ownerSequence) - (b === null || b === void 0 ? void 0 : (_b$additionalDetails = b.additionalDetails) === null || _b$additionalDetails === void 0 ? void 0 : _b$additionalDetails.ownerSequence);
|
|
7774
|
-
}).map(owner => owner.name).join(",")) || t("CS_NA"));
|
|
7775
|
-
}
|
|
7776
|
-
}, {
|
|
7777
|
-
Header: t("WS_PROPERTY_ID"),
|
|
7778
|
-
disableSortBy: true,
|
|
7779
|
-
Cell: ({
|
|
7780
|
-
row
|
|
7781
|
-
}) => {
|
|
7782
|
-
var _row$original4;
|
|
7783
|
-
return GetCell(((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.propertyId) || t("CS_NA"));
|
|
7784
|
-
}
|
|
7785
|
-
}, {
|
|
7786
|
-
Header: t("WS_STATUS"),
|
|
7787
|
-
disableSortBy: true,
|
|
7788
|
-
Cell: ({
|
|
7789
|
-
row
|
|
7790
|
-
}) => {
|
|
7791
|
-
var _row$original5;
|
|
7792
|
-
return GetCell(t(`CS_${(_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.applicationStatus}`) || t("CS_NA"));
|
|
7793
|
-
}
|
|
7794
|
-
}, {
|
|
7795
|
-
Header: t("WS_SLA"),
|
|
7796
|
-
disableSortBy: true,
|
|
7797
|
-
Cell: ({
|
|
7798
|
-
row
|
|
7799
|
-
}) => {
|
|
7800
|
-
var _row$original6, _row$original7;
|
|
7801
|
-
return GetCell(Math.round(((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.sla) / (24 * 60 * 60 * 1000)) ? `${Math.round(((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.sla) / (24 * 60 * 60 * 1000))} Days` : t("CS_NA"));
|
|
7802
|
-
}
|
|
7803
|
-
}];
|
|
7804
7856
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, `${t("CS_HOME_MY_APPLICATIONS")} ${applicationsList ? `(${applicationsList.length})` : ""}`), /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
7805
7857
|
t: t
|
|
7806
|
-
}), /*#__PURE__*/React.createElement("div", null, ((
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
return {
|
|
7815
|
-
style: {
|
|
7816
|
-
padding: "20px 18px",
|
|
7817
|
-
fontSize: "16px"
|
|
7818
|
-
}
|
|
7819
|
-
};
|
|
7820
|
-
},
|
|
7821
|
-
disableSort: true,
|
|
7822
|
-
autoSort: false
|
|
7823
|
-
}) : /*#__PURE__*/React.createElement("p", {
|
|
7858
|
+
}), /*#__PURE__*/React.createElement("div", null, ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 && applicationsList.sort((a, b) => {
|
|
7859
|
+
var _b$auditDetails, _a$auditDetails;
|
|
7860
|
+
return ((_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.lastModifiedTime) - ((_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.lastModifiedTime);
|
|
7861
|
+
}).map((application, index) => /*#__PURE__*/React.createElement("div", {
|
|
7862
|
+
key: index
|
|
7863
|
+
}, /*#__PURE__*/React.createElement(WSApplication, {
|
|
7864
|
+
application: application
|
|
7865
|
+
}))), !((_applicationsList2 = applicationsList) !== null && _applicationsList2 !== void 0 && _applicationsList2.length) > 0 && /*#__PURE__*/React.createElement("p", {
|
|
7824
7866
|
style: {
|
|
7825
7867
|
marginLeft: "16px",
|
|
7826
7868
|
marginTop: "16px"
|
|
@@ -8384,7 +8426,7 @@ const WSResponse = props => {
|
|
|
8384
8426
|
const App = ({
|
|
8385
8427
|
path
|
|
8386
8428
|
}) => {
|
|
8387
|
-
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;
|
|
8388
8430
|
const location = useLocation();
|
|
8389
8431
|
const {
|
|
8390
8432
|
t
|
|
@@ -8400,7 +8442,7 @@ const App = ({
|
|
|
8400
8442
|
}, {
|
|
8401
8443
|
path: "/digit-ui/citizen/ws/create-application",
|
|
8402
8444
|
label: t("CS_WS_CREATE_APPLICATION"),
|
|
8403
|
-
show: location.pathname.includes("/create-application")
|
|
8445
|
+
show: location.pathname.includes("/create-application") || location.pathname.includes("/info")
|
|
8404
8446
|
}, {
|
|
8405
8447
|
path: "/digit-ui/citizen/ws/search",
|
|
8406
8448
|
label: t("CS_WS_SEARCH_CONNECTION"),
|
|
@@ -8444,6 +8486,7 @@ const App = ({
|
|
|
8444
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");
|
|
8445
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");
|
|
8446
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");
|
|
8447
8490
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
8448
8491
|
className: "ground-container employee-app-container form-container"
|
|
8449
8492
|
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
@@ -8516,6 +8559,9 @@ const App = ({
|
|
|
8516
8559
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8517
8560
|
path: `${path}/old-application`,
|
|
8518
8561
|
component: WSOLDApplication
|
|
8562
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8563
|
+
path: `${path}/info`,
|
|
8564
|
+
component: WSInfoPage
|
|
8519
8565
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
8520
8566
|
path: `${path}/ws-response`,
|
|
8521
8567
|
component: WSResponse
|
|
@@ -9286,10 +9332,14 @@ const BILLSBreadCrumbs = ({
|
|
|
9286
9332
|
width: "20%"
|
|
9287
9333
|
} : {},
|
|
9288
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")
|
|
9289
9339
|
}, {
|
|
9290
9340
|
path: "/digit-ui/employee/module/details",
|
|
9291
9341
|
label: t("ES_TITLE_WATER_AND_SEWERAGE"),
|
|
9292
|
-
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")
|
|
9293
9343
|
}, {
|
|
9294
9344
|
path: "/digit-ui/employee/ws/create-application",
|
|
9295
9345
|
label: t("ES_COMMON_WS_DOCUMENTS_REQUIRED"),
|
|
@@ -9513,7 +9563,7 @@ const BILLSBreadCrumbs = ({
|
|
|
9513
9563
|
const App$1 = ({
|
|
9514
9564
|
path
|
|
9515
9565
|
}) => {
|
|
9516
|
-
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;
|
|
9517
9567
|
const location = useLocation();
|
|
9518
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");
|
|
9519
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");
|
|
@@ -9545,6 +9595,7 @@ const App$1 = ({
|
|
|
9545
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");
|
|
9546
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");
|
|
9547
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");
|
|
9548
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");
|
|
9549
9600
|
const locationCheckReqDocs = window.location.href.includes("/employee/ws/create-application") || window.location.href.includes("/employee/ws/new-disconnection/docsrequired");
|
|
9550
9601
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -9720,6 +9771,9 @@ const App$1 = ({
|
|
|
9720
9771
|
component: props => /*#__PURE__*/React.createElement(WSBillIAmendMentInbox, Object.assign({}, props, {
|
|
9721
9772
|
parentRoute: path
|
|
9722
9773
|
}))
|
|
9774
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9775
|
+
path: `${path}/info`,
|
|
9776
|
+
component: WSInfoPage
|
|
9723
9777
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9724
9778
|
path: `${path}/sewerage/bill-amendment/inbox`,
|
|
9725
9779
|
component: props => /*#__PURE__*/React.createElement(WSBillIAmendMentInbox, Object.assign({}, props, {
|
|
@@ -12194,7 +12248,7 @@ const WSPropertyDetails = ({
|
|
|
12194
12248
|
type: "button",
|
|
12195
12249
|
onClick: () => setPropertyId(propertyId)
|
|
12196
12250
|
}, `${t("PT_SEARCH")}`))), /*#__PURE__*/React.createElement(Link, {
|
|
12197
|
-
to: `/digit-ui/${userType}/commonpt/search`
|
|
12251
|
+
to: `/digit-ui/${userType}/commonpt/search?redirectToUrl=${window.location.pathname}`
|
|
12198
12252
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
12199
12253
|
label: t("CPT_SEARCH_PROPERTY"),
|
|
12200
12254
|
style: {
|
|
@@ -12202,7 +12256,7 @@ const WSPropertyDetails = ({
|
|
|
12202
12256
|
display: "inline-block"
|
|
12203
12257
|
}
|
|
12204
12258
|
})), "\xA0 | \xA0", /*#__PURE__*/React.createElement(Link, {
|
|
12205
|
-
to: `/digit-ui/${userType}/commonpt/new-application`
|
|
12259
|
+
to: `/digit-ui/${userType}/commonpt/property/new-application?redirectToUrl=${window.location.pathname}`
|
|
12206
12260
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
12207
12261
|
label: t("CPT_CREATE_PROPERTY"),
|
|
12208
12262
|
style: {
|
|
@@ -23119,7 +23173,7 @@ const WSCard = () => {
|
|
|
23119
23173
|
}, [wsData]);
|
|
23120
23174
|
let links = [{
|
|
23121
23175
|
label: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
23122
|
-
link: `/digit-ui/employee/ws/
|
|
23176
|
+
link: `/digit-ui/employee/ws/info`,
|
|
23123
23177
|
roles: ["WS_CEMP", "SW_CEMP"]
|
|
23124
23178
|
}];
|
|
23125
23179
|
links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
|
|
@@ -24600,9 +24654,15 @@ const WSCreate = () => {
|
|
|
24600
24654
|
}
|
|
24601
24655
|
let redirectWithHistory = history.push;
|
|
24602
24656
|
if (nextStep === null) {
|
|
24603
|
-
return redirectWithHistory(
|
|
24657
|
+
return redirectWithHistory({
|
|
24658
|
+
pathname: `${getPath(match.path, match.params)}/check`,
|
|
24659
|
+
search: location.search
|
|
24660
|
+
});
|
|
24604
24661
|
}
|
|
24605
|
-
redirectWithHistory(
|
|
24662
|
+
redirectWithHistory({
|
|
24663
|
+
pathname: `${getPath(match.path, match.params)}/${nextStep}`,
|
|
24664
|
+
search: location.search
|
|
24665
|
+
});
|
|
24606
24666
|
};
|
|
24607
24667
|
if (params && Object.keys(params).length > 0 && window.location.href.includes("/citizen/ws/create-application/search-property")) {
|
|
24608
24668
|
clearParams();
|
|
@@ -27263,7 +27323,10 @@ const WSWFApplicationTimeline = props => {
|
|
|
27263
27323
|
} = Digit.Hooks.useWorkflowDetails({
|
|
27264
27324
|
tenantId: (_props$application2 = props.application) === null || _props$application2 === void 0 ? void 0 : _props$application2.tenantId,
|
|
27265
27325
|
id: props.id,
|
|
27266
|
-
moduleCode: businessService
|
|
27326
|
+
moduleCode: businessService,
|
|
27327
|
+
config: {
|
|
27328
|
+
enabled: !!props.id
|
|
27329
|
+
}
|
|
27267
27330
|
});
|
|
27268
27331
|
const [showAllTimeline, setShowAllTimeline] = useState(false);
|
|
27269
27332
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
@@ -27569,13 +27632,14 @@ const getWSDisconnectionApplicationForm = async (application, property, tenantIn
|
|
|
27569
27632
|
};
|
|
27570
27633
|
|
|
27571
27634
|
const WSApplicationDetails = () => {
|
|
27572
|
-
var _Digit$SessionStorage, _user$info, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$WaterConnection1, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect7, _data$SewerageConnect8, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect46, _data$SewerageConnect47, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data$3, _paymentDetails$data$4, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _paymentDetails$data5, _paymentDetails$data6, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect58, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _paymentDetails$data7, _paymentDetails$data8, _paymentDetails$data9, _paymentDetails$data0, _paymentDetails$data1, _paymentDetails$data10, _paymentDetails$data11, _paymentDetails$data12, _paymentDetails$data13, _paymentDetails$data14, _paymentDetails$data15, _paymentDetails$data16, _paymentDetails$data17, _paymentDetails$data18, _paymentDetails$data19, _paymentDetails$data20, _paymentDetails$data21, _paymentDetails$data22, _paymentDetails$data23, _paymentDetails$data24, _paymentDetails$data25, _paymentDetails$data26, _paymentDetails$data27, _paymentDetails$data28, _paymentDetails$data29, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect62, _data$SewerageConnect63, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect64, _data$SewerageConnect65, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect66, _data$SewerageConnect67, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$WaterConnection135, _data$WaterConnection136, _data$WaterConnection137, _data$WaterConnection138, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect130, _data$SewerageConnect131, _data$SewerageConnect132, _data$SewerageConnect133, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection166, _data$SewerageConnect157, _data$WaterConnection167, _data$WaterConnection168, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection169, _data$WaterConnection170, _data$SewerageConnect160, _data$SewerageConnect161, _paymentDetails$data30, _paymentDetails$data31, _paymentDetails$data32, _data$WaterConnection171, _data$WaterConnection172, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection173, _data$WaterConnection174, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _PTData$Properties9, _PTData$Properties9$, _PTData$Properties9$$, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection184, _data$WaterConnection185, _data$SewerageConnect175, _data$SewerageConnect176, _data$WaterConnection186, _data$WaterConnection187, _data$SewerageConnect177, _data$SewerageConnect178, _data$WaterConnection188, _data$WaterConnection189, _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect179, _data$SewerageConnect180, _data$SewerageConnect181, _data$SewerageConnect182, _data$WaterConnection192, _data$WaterConnection193, _data$SewerageConnect183, _data$SewerageConnect184, _data$SewerageConnect185, _data$SewerageConnect186, _data$SewerageConnect187, _data$SewerageConnect188, _data$SewerageConnect189, _data$SewerageConnect190, _data$SewerageConnect191, _data$SewerageConnect192, _data$SewerageConnect193, _data$WaterConnection194, _data$WaterConnection195, _data$WaterConnection196, _data$WaterConnection197, _data$WaterConnection198, _data$WaterConnection199, _data$WaterConnection200, _data$WaterConnection201, _data$WaterConnection202;
|
|
27635
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$WaterConnection1, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect7, _data$SewerageConnect8, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect46, _data$SewerageConnect47, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data$3, _paymentDetails$data$4, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _paymentDetails$data5, _paymentDetails$data6, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect58, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _paymentDetails$data7, _paymentDetails$data8, _paymentDetails$data9, _paymentDetails$data0, _paymentDetails$data1, _paymentDetails$data10, _paymentDetails$data11, _paymentDetails$data12, _paymentDetails$data13, _paymentDetails$data14, _paymentDetails$data15, _paymentDetails$data16, _paymentDetails$data17, _paymentDetails$data18, _paymentDetails$data19, _paymentDetails$data20, _paymentDetails$data21, _paymentDetails$data22, _paymentDetails$data23, _paymentDetails$data24, _paymentDetails$data25, _paymentDetails$data26, _paymentDetails$data27, _paymentDetails$data28, _paymentDetails$data29, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect62, _data$SewerageConnect63, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect64, _data$SewerageConnect65, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect66, _data$SewerageConnect67, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$WaterConnection136, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$WaterConnection137, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$SewerageConnect131, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect132, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$WaterConnection145, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection164, _data$SewerageConnect155, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection167, _data$WaterConnection168, _data$SewerageConnect158, _data$SewerageConnect159, _paymentDetails$data30, _paymentDetails$data31, _paymentDetails$data32, _data$WaterConnection169, _data$WaterConnection170, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection171, _data$WaterConnection172, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection173, _data$WaterConnection174, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _PTData$Properties9, _PTData$Properties9$, _PTData$Properties9$$, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$WaterConnection182, _data$WaterConnection183, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection184, _data$WaterConnection185, _data$SewerageConnect175, _data$SewerageConnect176, _data$WaterConnection186, _data$WaterConnection187, _data$WaterConnection188, _data$WaterConnection189, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect181, _data$SewerageConnect182, _data$SewerageConnect183, _data$SewerageConnect184, _data$SewerageConnect185, _data$SewerageConnect186, _data$SewerageConnect187, _data$SewerageConnect188, _data$SewerageConnect189, _data$SewerageConnect190, _data$SewerageConnect191, _data$WaterConnection192, _data$WaterConnection193, _data$WaterConnection194, _data$WaterConnection195, _data$WaterConnection196, _data$WaterConnection197, _data$WaterConnection198, _data$WaterConnection199, _data$WaterConnection200;
|
|
27573
27636
|
const {
|
|
27574
27637
|
t
|
|
27575
27638
|
} = useTranslation();
|
|
27576
27639
|
const menuRef = useRef();
|
|
27577
27640
|
const user = Digit.UserService.getUser();
|
|
27578
|
-
const
|
|
27641
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.userName : user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.mobileNumber;
|
|
27642
|
+
const tenantId = ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || (user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.permanentCity) || Digit.ULBService.getCurrentTenantId();
|
|
27579
27643
|
const [showOptions, setShowOptions] = useState(false);
|
|
27580
27644
|
const [viewTimeline, setViewTimeline] = useState(false);
|
|
27581
27645
|
const applicationNobyData = window.location.href.includes("SW_") ? window.location.href.substring(window.location.href.indexOf("SW_")) : window.location.href.substring(window.location.href.indexOf("WS_"));
|
|
@@ -27958,7 +28022,7 @@ const WSApplicationDetails = () => {
|
|
|
27958
28022
|
requestBody: {},
|
|
27959
28023
|
requestParam: {
|
|
27960
28024
|
tenantId: tenantId,
|
|
27961
|
-
|
|
28025
|
+
mobileNumber: userMobileNumber
|
|
27962
28026
|
},
|
|
27963
28027
|
jsonPath: "Properties[0].address.street",
|
|
27964
28028
|
isArray: false,
|
|
@@ -27969,25 +28033,25 @@ const WSApplicationDetails = () => {
|
|
|
27969
28033
|
}
|
|
27970
28034
|
}
|
|
27971
28035
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
27972
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(data === null || data === void 0 ? void 0 : (_data$
|
|
28036
|
+
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection73 = data.WaterConnection) === null || _data$WaterConnection73 === void 0 ? void 0 : (_data$WaterConnection74 = _data$WaterConnection73[0]) === null || _data$WaterConnection74 === void 0 ? void 0 : _data$WaterConnection74.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect64 = data.SewerageConnections) === null || _data$SewerageConnect64 === void 0 ? void 0 : (_data$SewerageConnect65 = _data$SewerageConnect64[0]) === null || _data$SewerageConnect65 === void 0 ? void 0 : _data$SewerageConnect65.propertyId)}&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection75 = data.WaterConnection) === null || _data$WaterConnection75 === void 0 ? void 0 : (_data$WaterConnection76 = _data$WaterConnection75[0]) === null || _data$WaterConnection76 === void 0 ? void 0 : _data$WaterConnection76.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect66 = data.SewerageConnections) === null || _data$SewerageConnect66 === void 0 ? void 0 : (_data$SewerageConnect67 = _data$SewerageConnect66[0]) === null || _data$SewerageConnect67 === void 0 ? void 0 : _data$SewerageConnect67.tenantId)}`
|
|
27973
28037
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
27974
28038
|
style: {
|
|
27975
28039
|
textAlign: "left"
|
|
27976
28040
|
},
|
|
27977
28041
|
label: t("WS_VIEW_PROPERTY")
|
|
27978
|
-
})))), (data === null || data === void 0 ? void 0 : (_data$
|
|
28042
|
+
})))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection77 = data.WaterConnection) === null || _data$WaterConnection77 === void 0 ? void 0 : (_data$WaterConnection78 = _data$WaterConnection77[0]) === null || _data$WaterConnection78 === void 0 ? void 0 : (_data$WaterConnection79 = _data$WaterConnection78.connectionHolders) === null || _data$WaterConnection79 === void 0 ? void 0 : _data$WaterConnection79.length) > 0 || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect68 = data.SewerageConnections) === null || _data$SewerageConnect68 === void 0 ? void 0 : (_data$SewerageConnect69 = _data$SewerageConnect68[0]) === null || _data$SewerageConnect69 === void 0 ? void 0 : (_data$SewerageConnect70 = _data$SewerageConnect69.connectionHolders) === null || _data$SewerageConnect70 === void 0 ? void 0 : _data$SewerageConnect70.length) > 0 ? /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, {
|
|
27979
28043
|
styles: {
|
|
27980
28044
|
fontSize: "28px"
|
|
27981
28045
|
}
|
|
27982
28046
|
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
27983
28047
|
className: "border-none",
|
|
27984
28048
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
27985
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28049
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection80 = data.WaterConnection) === null || _data$WaterConnection80 === void 0 ? void 0 : (_data$WaterConnection81 = _data$WaterConnection80[0]) === null || _data$WaterConnection81 === void 0 ? void 0 : (_data$WaterConnection82 = _data$WaterConnection81.connectionHolders) === null || _data$WaterConnection82 === void 0 ? void 0 : (_data$WaterConnection83 = _data$WaterConnection82[0]) === null || _data$WaterConnection83 === void 0 ? void 0 : _data$WaterConnection83.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect71 = data.SewerageConnections) === null || _data$SewerageConnect71 === void 0 ? void 0 : (_data$SewerageConnect72 = _data$SewerageConnect71[0]) === null || _data$SewerageConnect72 === void 0 ? void 0 : (_data$SewerageConnect73 = _data$SewerageConnect72.connectionHolders) === null || _data$SewerageConnect73 === void 0 ? void 0 : (_data$SewerageConnect74 = _data$SewerageConnect73[0]) === null || _data$SewerageConnect74 === void 0 ? void 0 : _data$SewerageConnect74.mobileNumber),
|
|
27986
28050
|
textStyle: {
|
|
27987
28051
|
whiteSpace: "pre"
|
|
27988
28052
|
},
|
|
27989
28053
|
privacy: {
|
|
27990
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28054
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection84 = data.WaterConnection) === null || _data$WaterConnection84 === void 0 ? void 0 : (_data$WaterConnection85 = _data$WaterConnection84[0]) === null || _data$WaterConnection85 === void 0 ? void 0 : (_data$WaterConnection86 = _data$WaterConnection85.connectionHolders) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86[0]) === null || _data$WaterConnection87 === void 0 ? void 0 : _data$WaterConnection87.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect75 = data.SewerageConnections) === null || _data$SewerageConnect75 === void 0 ? void 0 : (_data$SewerageConnect76 = _data$SewerageConnect75[0]) === null || _data$SewerageConnect76 === void 0 ? void 0 : (_data$SewerageConnect77 = _data$SewerageConnect76.connectionHolders) === null || _data$SewerageConnect77 === void 0 ? void 0 : (_data$SewerageConnect78 = _data$SewerageConnect77[0]) === null || _data$SewerageConnect78 === void 0 ? void 0 : _data$SewerageConnect78.uuid,
|
|
27991
28055
|
fieldName: "connectionHoldersMobileNumber",
|
|
27992
28056
|
model: "WnSConnectionOwner",
|
|
27993
28057
|
showValue: false,
|
|
@@ -28005,19 +28069,19 @@ const WSApplicationDetails = () => {
|
|
|
28005
28069
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28006
28070
|
className: "border-none",
|
|
28007
28071
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
28008
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28072
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection88 = data.WaterConnection) === null || _data$WaterConnection88 === void 0 ? void 0 : (_data$WaterConnection89 = _data$WaterConnection88[0]) === null || _data$WaterConnection89 === void 0 ? void 0 : (_data$WaterConnection90 = _data$WaterConnection89.connectionHolders) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90[0]) === null || _data$WaterConnection91 === void 0 ? void 0 : _data$WaterConnection91.name) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect79 = data.SewerageConnections) === null || _data$SewerageConnect79 === void 0 ? void 0 : (_data$SewerageConnect80 = _data$SewerageConnect79[0]) === null || _data$SewerageConnect80 === void 0 ? void 0 : (_data$SewerageConnect81 = _data$SewerageConnect80.connectionHolders) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81[0]) === null || _data$SewerageConnect82 === void 0 ? void 0 : _data$SewerageConnect82.name),
|
|
28009
28073
|
textStyle: {
|
|
28010
28074
|
whiteSpace: "pre"
|
|
28011
28075
|
}
|
|
28012
28076
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28013
28077
|
className: "border-none",
|
|
28014
28078
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
28015
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
28079
|
+
text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection92 = data.WaterConnection) === null || _data$WaterConnection92 === void 0 ? void 0 : (_data$WaterConnection93 = _data$WaterConnection92[0]) === null || _data$WaterConnection93 === void 0 ? void 0 : (_data$WaterConnection94 = _data$WaterConnection93.connectionHolders) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94[0]) === null || _data$WaterConnection95 === void 0 ? void 0 : _data$WaterConnection95.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect83 = data.SewerageConnections) === null || _data$SewerageConnect83 === void 0 ? void 0 : (_data$SewerageConnect84 = _data$SewerageConnect83[0]) === null || _data$SewerageConnect84 === void 0 ? void 0 : (_data$SewerageConnect85 = _data$SewerageConnect84.connectionHolders) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85[0]) === null || _data$SewerageConnect86 === void 0 ? void 0 : _data$SewerageConnect86.gender)),
|
|
28016
28080
|
textStyle: {
|
|
28017
28081
|
whiteSpace: "pre"
|
|
28018
28082
|
},
|
|
28019
28083
|
privacy: {
|
|
28020
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28084
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection96 = data.WaterConnection) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96[0]) === null || _data$WaterConnection97 === void 0 ? void 0 : (_data$WaterConnection98 = _data$WaterConnection97.connectionHolders) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98[0]) === null || _data$WaterConnection99 === void 0 ? void 0 : _data$WaterConnection99.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect87 = data.SewerageConnections) === null || _data$SewerageConnect87 === void 0 ? void 0 : (_data$SewerageConnect88 = _data$SewerageConnect87[0]) === null || _data$SewerageConnect88 === void 0 ? void 0 : (_data$SewerageConnect89 = _data$SewerageConnect88.connectionHolders) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89[0]) === null || _data$SewerageConnect90 === void 0 ? void 0 : _data$SewerageConnect90.uuid,
|
|
28021
28085
|
fieldName: "gender",
|
|
28022
28086
|
model: "WnSConnectionOwner",
|
|
28023
28087
|
showValue: false,
|
|
@@ -28035,12 +28099,12 @@ const WSApplicationDetails = () => {
|
|
|
28035
28099
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28036
28100
|
className: "border-none",
|
|
28037
28101
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
28038
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28102
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection100 = data.WaterConnection) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100[0]) === null || _data$WaterConnection101 === void 0 ? void 0 : (_data$WaterConnection102 = _data$WaterConnection101.connectionHolders) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102[0]) === null || _data$WaterConnection103 === void 0 ? void 0 : _data$WaterConnection103.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect91 = data.SewerageConnections) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91[0]) === null || _data$SewerageConnect92 === void 0 ? void 0 : (_data$SewerageConnect93 = _data$SewerageConnect92.connectionHolders) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93[0]) === null || _data$SewerageConnect94 === void 0 ? void 0 : _data$SewerageConnect94.fatherOrHusbandName) || t("CS_NA"),
|
|
28039
28103
|
textStyle: {
|
|
28040
28104
|
whiteSpace: "pre"
|
|
28041
28105
|
},
|
|
28042
28106
|
privacy: {
|
|
28043
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28107
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection104 = data.WaterConnection) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104[0]) === null || _data$WaterConnection105 === void 0 ? void 0 : (_data$WaterConnection106 = _data$WaterConnection105.connectionHolders) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106[0]) === null || _data$WaterConnection107 === void 0 ? void 0 : _data$WaterConnection107.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect95 = data.SewerageConnections) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95[0]) === null || _data$SewerageConnect96 === void 0 ? void 0 : (_data$SewerageConnect97 = _data$SewerageConnect96.connectionHolders) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97[0]) === null || _data$SewerageConnect98 === void 0 ? void 0 : _data$SewerageConnect98.uuid,
|
|
28044
28108
|
fieldName: "fatherOrHusbandName",
|
|
28045
28109
|
model: "WnSConnectionOwner",
|
|
28046
28110
|
showValue: false,
|
|
@@ -28058,12 +28122,12 @@ const WSApplicationDetails = () => {
|
|
|
28058
28122
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28059
28123
|
className: "border-none",
|
|
28060
28124
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
28061
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28125
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection108 = data.WaterConnection) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108[0]) === null || _data$WaterConnection109 === void 0 ? void 0 : (_data$WaterConnection110 = _data$WaterConnection109.connectionHolders) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : _data$WaterConnection111.relationship) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect99 = data.SewerageConnections) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99[0]) === null || _data$SewerageConnect100 === void 0 ? void 0 : (_data$SewerageConnect101 = _data$SewerageConnect100.connectionHolders) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101[0]) === null || _data$SewerageConnect102 === void 0 ? void 0 : _data$SewerageConnect102.relationship) || t("CS_NA"),
|
|
28062
28126
|
textStyle: {
|
|
28063
28127
|
whiteSpace: "pre"
|
|
28064
28128
|
},
|
|
28065
28129
|
privacy: {
|
|
28066
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28130
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection112 = data.WaterConnection) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : (_data$WaterConnection114 = _data$WaterConnection113.connectionHolders) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114[0]) === null || _data$WaterConnection115 === void 0 ? void 0 : _data$WaterConnection115.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect103 = data.SewerageConnections) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103[0]) === null || _data$SewerageConnect104 === void 0 ? void 0 : (_data$SewerageConnect105 = _data$SewerageConnect104.connectionHolders) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : _data$SewerageConnect106.uuid,
|
|
28067
28131
|
fieldName: "relationship",
|
|
28068
28132
|
model: "WnSConnection",
|
|
28069
28133
|
showValue: false,
|
|
@@ -28081,9 +28145,9 @@ const WSApplicationDetails = () => {
|
|
|
28081
28145
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28082
28146
|
className: "border-none",
|
|
28083
28147
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
28084
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28148
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection116 = data.WaterConnection) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116[0]) === null || _data$WaterConnection117 === void 0 ? void 0 : (_data$WaterConnection118 = _data$WaterConnection117.connectionHolders) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118[0]) === null || _data$WaterConnection119 === void 0 ? void 0 : _data$WaterConnection119.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect107 = data.SewerageConnections) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : (_data$SewerageConnect109 = _data$SewerageConnect108.connectionHolders) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109[0]) === null || _data$SewerageConnect110 === void 0 ? void 0 : _data$SewerageConnect110.correspondenceAddress) || t("CS_NA"),
|
|
28085
28149
|
privacy: {
|
|
28086
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28150
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection120 = data.WaterConnection) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120[0]) === null || _data$WaterConnection121 === void 0 ? void 0 : (_data$WaterConnection122 = _data$WaterConnection121.connectionHolders) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122[0]) === null || _data$WaterConnection123 === void 0 ? void 0 : _data$WaterConnection123.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect111 = data.SewerageConnections) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111[0]) === null || _data$SewerageConnect112 === void 0 ? void 0 : (_data$SewerageConnect113 = _data$SewerageConnect112.connectionHolders) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113[0]) === null || _data$SewerageConnect114 === void 0 ? void 0 : _data$SewerageConnect114.uuid,
|
|
28087
28151
|
fieldName: "correspondenceAddress",
|
|
28088
28152
|
model: "WnSConnectionOwner",
|
|
28089
28153
|
showValue: false,
|
|
@@ -28101,12 +28165,12 @@ const WSApplicationDetails = () => {
|
|
|
28101
28165
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28102
28166
|
className: "border-none",
|
|
28103
28167
|
label: t("WS_OWN_DETAIL_SPECIAL_APPLICANT_LABEL"),
|
|
28104
|
-
text: (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? !(data !== null && data !== void 0 && (_data$
|
|
28168
|
+
text: (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? !(data !== null && data !== void 0 && (_data$WaterConnection124 = data.WaterConnection) !== null && _data$WaterConnection124 !== void 0 && (_data$WaterConnection125 = _data$WaterConnection124[0]) !== null && _data$WaterConnection125 !== void 0 && (_data$WaterConnection126 = _data$WaterConnection125.connectionHolders) !== null && _data$WaterConnection126 !== void 0 && (_data$WaterConnection127 = _data$WaterConnection126[0]) !== null && _data$WaterConnection127 !== void 0 && (_data$WaterConnection128 = _data$WaterConnection127.ownerType) !== null && _data$WaterConnection128 !== void 0 && _data$WaterConnection128.includes("*")) : !(data !== null && data !== void 0 && (_data$SewerageConnect115 = data.SewerageConnections) !== null && _data$SewerageConnect115 !== void 0 && (_data$SewerageConnect116 = _data$SewerageConnect115[0]) !== null && _data$SewerageConnect116 !== void 0 && (_data$SewerageConnect117 = _data$SewerageConnect116.connectionHolders) !== null && _data$SewerageConnect117 !== void 0 && (_data$SewerageConnect118 = _data$SewerageConnect117[0]) !== null && _data$SewerageConnect118 !== void 0 && (_data$SewerageConnect119 = _data$SewerageConnect118.ownerType) !== null && _data$SewerageConnect119 !== void 0 && _data$SewerageConnect119.includes("*"))) ? t(`COMMON_MASTERS_OWNERTYPE_${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection129 = data.WaterConnection) === null || _data$WaterConnection129 === void 0 ? void 0 : (_data$WaterConnection130 = _data$WaterConnection129[0]) === null || _data$WaterConnection130 === void 0 ? void 0 : (_data$WaterConnection131 = _data$WaterConnection130.connectionHolders) === null || _data$WaterConnection131 === void 0 ? void 0 : (_data$WaterConnection132 = _data$WaterConnection131[0]) === null || _data$WaterConnection132 === void 0 ? void 0 : _data$WaterConnection132.ownerType : data === null || data === void 0 ? void 0 : (_data$SewerageConnect120 = data.SewerageConnections) === null || _data$SewerageConnect120 === void 0 ? void 0 : (_data$SewerageConnect121 = _data$SewerageConnect120[0]) === null || _data$SewerageConnect121 === void 0 ? void 0 : (_data$SewerageConnect122 = _data$SewerageConnect121.connectionHolders) === null || _data$SewerageConnect122 === void 0 ? void 0 : (_data$SewerageConnect123 = _data$SewerageConnect122[0]) === null || _data$SewerageConnect123 === void 0 ? void 0 : _data$SewerageConnect123.ownerType}`) : applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection133 = data.WaterConnection) === null || _data$WaterConnection133 === void 0 ? void 0 : (_data$WaterConnection134 = _data$WaterConnection133[0]) === null || _data$WaterConnection134 === void 0 ? void 0 : (_data$WaterConnection135 = _data$WaterConnection134.connectionHolders) === null || _data$WaterConnection135 === void 0 ? void 0 : (_data$WaterConnection136 = _data$WaterConnection135[0]) === null || _data$WaterConnection136 === void 0 ? void 0 : _data$WaterConnection136.ownerType : data === null || data === void 0 ? void 0 : (_data$SewerageConnect124 = data.SewerageConnections) === null || _data$SewerageConnect124 === void 0 ? void 0 : (_data$SewerageConnect125 = _data$SewerageConnect124[0]) === null || _data$SewerageConnect125 === void 0 ? void 0 : (_data$SewerageConnect126 = _data$SewerageConnect125.connectionHolders) === null || _data$SewerageConnect126 === void 0 ? void 0 : (_data$SewerageConnect127 = _data$SewerageConnect126[0]) === null || _data$SewerageConnect127 === void 0 ? void 0 : _data$SewerageConnect127.ownerType,
|
|
28105
28169
|
textStyle: {
|
|
28106
28170
|
whiteSpace: "pre"
|
|
28107
28171
|
},
|
|
28108
28172
|
privacy: {
|
|
28109
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28173
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection137 = data.WaterConnection) === null || _data$WaterConnection137 === void 0 ? void 0 : (_data$WaterConnection138 = _data$WaterConnection137[0]) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138.connectionHolders) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139[0]) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect128 = data.SewerageConnections) === null || _data$SewerageConnect128 === void 0 ? void 0 : (_data$SewerageConnect129 = _data$SewerageConnect128[0]) === null || _data$SewerageConnect129 === void 0 ? void 0 : (_data$SewerageConnect130 = _data$SewerageConnect129.connectionHolders) === null || _data$SewerageConnect130 === void 0 ? void 0 : (_data$SewerageConnect131 = _data$SewerageConnect130[0]) === null || _data$SewerageConnect131 === void 0 ? void 0 : _data$SewerageConnect131.uuid,
|
|
28110
28174
|
fieldName: "ownerType",
|
|
28111
28175
|
model: "WnSConnection",
|
|
28112
28176
|
showValue: false,
|
|
@@ -28129,12 +28193,12 @@ const WSApplicationDetails = () => {
|
|
|
28129
28193
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28130
28194
|
className: "border-none",
|
|
28131
28195
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
28132
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28196
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection141 = data.WaterConnection) === null || _data$WaterConnection141 === void 0 ? void 0 : (_data$WaterConnection142 = _data$WaterConnection141[0]) === null || _data$WaterConnection142 === void 0 ? void 0 : (_data$WaterConnection143 = _data$WaterConnection142.connectionHolders) === null || _data$WaterConnection143 === void 0 ? void 0 : (_data$WaterConnection144 = _data$WaterConnection143[0]) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect132 = data.SewerageConnections) === null || _data$SewerageConnect132 === void 0 ? void 0 : (_data$SewerageConnect133 = _data$SewerageConnect132[0]) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133.connectionHolders) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134[0]) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.emailId) || "NA",
|
|
28133
28197
|
textStyle: {
|
|
28134
28198
|
whiteSpace: "pre"
|
|
28135
28199
|
},
|
|
28136
28200
|
privacy: {
|
|
28137
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28201
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection145 = data.WaterConnection) === null || _data$WaterConnection145 === void 0 ? void 0 : (_data$WaterConnection146 = _data$WaterConnection145[0]) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146.connectionHolders) === null || _data$WaterConnection147 === void 0 ? void 0 : (_data$WaterConnection148 = _data$WaterConnection147[0]) === null || _data$WaterConnection148 === void 0 ? void 0 : _data$WaterConnection148.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect136 = data.SewerageConnections) === null || _data$SewerageConnect136 === void 0 ? void 0 : (_data$SewerageConnect137 = _data$SewerageConnect136[0]) === null || _data$SewerageConnect137 === void 0 ? void 0 : (_data$SewerageConnect138 = _data$SewerageConnect137.connectionHolders) === null || _data$SewerageConnect138 === void 0 ? void 0 : (_data$SewerageConnect139 = _data$SewerageConnect138[0]) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139.uuid,
|
|
28138
28202
|
fieldName: "connectionHoldersEmailId",
|
|
28139
28203
|
model: "WnSConnectionOwner",
|
|
28140
28204
|
showValue: false,
|
|
@@ -28153,43 +28217,43 @@ const WSApplicationDetails = () => {
|
|
|
28153
28217
|
styles: {
|
|
28154
28218
|
fontSize: "28px"
|
|
28155
28219
|
}
|
|
28156
|
-
}, t("WS_COMMON_CONNECTION_DETAIL")), (data === null || data === void 0 ? void 0 : data.WaterConnection) && (data === null || data === void 0 ? void 0 : (_data$
|
|
28220
|
+
}, t("WS_COMMON_CONNECTION_DETAIL")), (data === null || data === void 0 ? void 0 : data.WaterConnection) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection149 = data.WaterConnection) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.length) > 0 && /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
28157
28221
|
className: "border-none",
|
|
28158
28222
|
label: t("WS_TASK_DETAILS_CONN_DETAIL_NO_OF_TAPS_PROPOSED"),
|
|
28159
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28223
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.proposedTaps) || t("CS_NA"),
|
|
28160
28224
|
textStyle: {
|
|
28161
28225
|
whiteSpace: "pre"
|
|
28162
28226
|
}
|
|
28163
28227
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28164
28228
|
className: "border-none",
|
|
28165
28229
|
label: t("WS_SERV_DETAIL_PIPE_SIZE"),
|
|
28166
|
-
text: `${data === null || data === void 0 ? void 0 : (_data$
|
|
28230
|
+
text: `${data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.proposedPipeSize} ${t("WS_INCHES_LABEL")}` || t("CS_NA"),
|
|
28167
28231
|
textStyle: {
|
|
28168
28232
|
whiteSpace: "pre"
|
|
28169
28233
|
}
|
|
28170
28234
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
28171
|
-
to: `/digit-ui/citizen/ws/connection/additional/${data === null || data === void 0 ? void 0 : (_data$
|
|
28235
|
+
to: `/digit-ui/citizen/ws/connection/additional/${data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : _data$WaterConnection155.applicationNo}`
|
|
28172
28236
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
28173
28237
|
style: {
|
|
28174
28238
|
textAlign: "left"
|
|
28175
28239
|
},
|
|
28176
28240
|
label: t("WS_ADDITIONAL_DETAILS")
|
|
28177
|
-
}))), (data === null || data === void 0 ? void 0 : data.SewerageConnections) && (data === null || data === void 0 ? void 0 : (_data$
|
|
28241
|
+
}))), (data === null || data === void 0 ? void 0 : data.SewerageConnections) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : _data$SewerageConnect140.length) > 0 && /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
28178
28242
|
className: "border-none",
|
|
28179
28243
|
label: t("WS_NO_OF_WATER_CLOSETS_LABEL"),
|
|
28180
|
-
text: data === null || data === void 0 ? void 0 : (_data$
|
|
28244
|
+
text: data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.proposedWaterClosets,
|
|
28181
28245
|
textStyle: {
|
|
28182
28246
|
whiteSpace: "pre"
|
|
28183
28247
|
}
|
|
28184
28248
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28185
28249
|
className: "border-none",
|
|
28186
28250
|
label: t("WS_SERV_DETAIL_NO_OF_TOILETS"),
|
|
28187
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28251
|
+
text: (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.proposedToilets) || t("CS_NA"),
|
|
28188
28252
|
textStyle: {
|
|
28189
28253
|
whiteSpace: "pre"
|
|
28190
28254
|
}
|
|
28191
28255
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
28192
|
-
to: `/digit-ui/citizen/ws/connection/additional/${data === null || data === void 0 ? void 0 : (_data$
|
|
28256
|
+
to: `/digit-ui/citizen/ws/connection/additional/${data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationNo}`
|
|
28193
28257
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
28194
28258
|
style: {
|
|
28195
28259
|
textAlign: "left"
|
|
@@ -28199,15 +28263,15 @@ const WSApplicationDetails = () => {
|
|
|
28199
28263
|
styles: {
|
|
28200
28264
|
fontSize: "28px"
|
|
28201
28265
|
}
|
|
28202
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
28203
|
-
var _doc$documentType, _data$
|
|
28266
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection156 = data.WaterConnection) === null || _data$WaterConnection156 === void 0 ? void 0 : (_data$WaterConnection157 = _data$WaterConnection156[0]) === null || _data$WaterConnection157 === void 0 ? void 0 : _data$WaterConnection157.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection158 = data.WaterConnection) === null || _data$WaterConnection158 === void 0 ? void 0 : (_data$WaterConnection159 = _data$WaterConnection158[0]) === null || _data$WaterConnection159 === void 0 ? void 0 : _data$WaterConnection159.documents.map((doc, index) => {
|
|
28267
|
+
var _doc$documentType, _data$WaterConnection160, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163;
|
|
28204
28268
|
return /*#__PURE__*/React.createElement("div", {
|
|
28205
28269
|
key: `doc-${index}`
|
|
28206
28270
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
|
|
28207
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28271
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection160 = data.WaterConnection) === null || _data$WaterConnection160 === void 0 ? void 0 : (_data$WaterConnection161 = _data$WaterConnection160[0]) === null || _data$WaterConnection161 === void 0 ? void 0 : _data$WaterConnection161.documents,
|
|
28208
28272
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28209
28273
|
index: index
|
|
28210
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28274
|
+
}), (data === null || data === void 0 ? void 0 : (_data$WaterConnection162 = data.WaterConnection) === null || _data$WaterConnection162 === void 0 ? void 0 : (_data$WaterConnection163 = _data$WaterConnection162[0]) === null || _data$WaterConnection163 === void 0 ? void 0 : _data$WaterConnection163.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
28211
28275
|
style: {
|
|
28212
28276
|
color: "#cccccc",
|
|
28213
28277
|
backgroundColor: "#cccccc",
|
|
@@ -28216,15 +28280,15 @@ const WSApplicationDetails = () => {
|
|
|
28216
28280
|
marginBottom: "20px"
|
|
28217
28281
|
}
|
|
28218
28282
|
}) : null)));
|
|
28219
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
28220
|
-
var _doc$documentType2, _data$
|
|
28283
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : _data$SewerageConnect150.documents.map((doc, index) => {
|
|
28284
|
+
var _doc$documentType2, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154;
|
|
28221
28285
|
return /*#__PURE__*/React.createElement("div", {
|
|
28222
28286
|
key: `doc-${index}`
|
|
28223
28287
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(WSDocument, {
|
|
28224
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28288
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect151 = data.SewerageConnections) === null || _data$SewerageConnect151 === void 0 ? void 0 : (_data$SewerageConnect152 = _data$SewerageConnect151[0]) === null || _data$SewerageConnect152 === void 0 ? void 0 : _data$SewerageConnect152.documents,
|
|
28225
28289
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28226
28290
|
index: index
|
|
28227
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28291
|
+
}), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect153 = data.SewerageConnections) === null || _data$SewerageConnect153 === void 0 ? void 0 : (_data$SewerageConnect154 = _data$SewerageConnect153[0]) === null || _data$SewerageConnect154 === void 0 ? void 0 : _data$SewerageConnect154.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
28228
28292
|
style: {
|
|
28229
28293
|
color: "white",
|
|
28230
28294
|
backgroundColor: "white",
|
|
@@ -28236,39 +28300,39 @@ const WSApplicationDetails = () => {
|
|
|
28236
28300
|
}))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
28237
28301
|
id: "timeline"
|
|
28238
28302
|
}, /*#__PURE__*/React.createElement(WSWFApplicationTimeline, {
|
|
28239
|
-
application: (data === null || data === void 0 ? void 0 : (_data$
|
|
28240
|
-
id: (data === null || data === void 0 ? void 0 : (_data$
|
|
28303
|
+
application: (data === null || data === void 0 ? void 0 : (_data$WaterConnection164 = data.WaterConnection) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect155 = data.SewerageConnections) === null || _data$SewerageConnect155 === void 0 ? void 0 : _data$SewerageConnect155[0]),
|
|
28304
|
+
id: (data === null || data === void 0 ? void 0 : (_data$WaterConnection165 = data.WaterConnection) === null || _data$WaterConnection165 === void 0 ? void 0 : (_data$WaterConnection166 = _data$WaterConnection165[0]) === null || _data$WaterConnection166 === void 0 ? void 0 : _data$WaterConnection166.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.applicationNo),
|
|
28241
28305
|
paymentbuttonenabled: false
|
|
28242
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
28306
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection167 = data.WaterConnection) === null || _data$WaterConnection167 === void 0 ? void 0 : (_data$WaterConnection168 = _data$WaterConnection167[0]) === null || _data$WaterConnection168 === void 0 ? void 0 : _data$WaterConnection168.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect158 = data.SewerageConnections) === null || _data$SewerageConnect158 === void 0 ? void 0 : (_data$SewerageConnect159 = _data$SewerageConnect158[0]) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
|
|
28243
28307
|
to: {
|
|
28244
|
-
pathname: `/digit-ui/citizen/payment/my-bills/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data30 = paymentDetails.data) === null || _paymentDetails$data30 === void 0 ? void 0 : (_paymentDetails$data31 = _paymentDetails$data30.Bill) === null || _paymentDetails$data31 === void 0 ? void 0 : (_paymentDetails$data32 = _paymentDetails$data31[0]) === null || _paymentDetails$data32 === void 0 ? void 0 : _paymentDetails$data32.businessService}/${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$
|
|
28308
|
+
pathname: `/digit-ui/citizen/payment/my-bills/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data30 = paymentDetails.data) === null || _paymentDetails$data30 === void 0 ? void 0 : (_paymentDetails$data31 = _paymentDetails$data30.Bill) === null || _paymentDetails$data31 === void 0 ? void 0 : (_paymentDetails$data32 = _paymentDetails$data31[0]) === null || _paymentDetails$data32 === void 0 ? void 0 : _paymentDetails$data32.businessService}/${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection169 = data.WaterConnection) === null || _data$WaterConnection169 === void 0 ? void 0 : (_data$WaterConnection170 = _data$WaterConnection169[0]) === null || _data$WaterConnection170 === void 0 ? void 0 : _data$WaterConnection170.connectionNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect160 = data.SewerageConnections) === null || _data$SewerageConnect160 === void 0 ? void 0 : (_data$SewerageConnect161 = _data$SewerageConnect160[0]) === null || _data$SewerageConnect161 === void 0 ? void 0 : _data$SewerageConnect161.connectionNo, "/", "+") : stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection171 = data.WaterConnection) === null || _data$WaterConnection171 === void 0 ? void 0 : (_data$WaterConnection172 = _data$WaterConnection171[0]) === null || _data$WaterConnection172 === void 0 ? void 0 : _data$WaterConnection172.applicationNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect162 = data.SewerageConnections) === null || _data$SewerageConnect162 === void 0 ? void 0 : (_data$SewerageConnect163 = _data$SewerageConnect162[0]) === null || _data$SewerageConnect163 === void 0 ? void 0 : _data$SewerageConnect163.applicationNo, "/", "+")}?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection173 = data.WaterConnection) === null || _data$WaterConnection173 === void 0 ? void 0 : (_data$WaterConnection174 = _data$WaterConnection173[0]) === null || _data$WaterConnection174 === void 0 ? void 0 : _data$WaterConnection174.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection175 = data.WaterConnection) === null || _data$WaterConnection175 === void 0 ? void 0 : (_data$WaterConnection176 = _data$WaterConnection175[0]) === null || _data$WaterConnection176 === void 0 ? void 0 : (_data$WaterConnection177 = _data$WaterConnection176.connectionHolders) === null || _data$WaterConnection177 === void 0 ? void 0 : _data$WaterConnection177.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect166 = data.SewerageConnections) === null || _data$SewerageConnect166 === void 0 ? void 0 : (_data$SewerageConnect167 = _data$SewerageConnect166[0]) === null || _data$SewerageConnect167 === void 0 ? void 0 : (_data$SewerageConnect168 = _data$SewerageConnect167.connectionHolders) === null || _data$SewerageConnect168 === void 0 ? void 0 : _data$SewerageConnect168.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : (_PTData$Properties9$$ = _PTData$Properties9$.owners) === null || _PTData$Properties9$$ === void 0 ? void 0 : _PTData$Properties9$$.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}`,
|
|
28245
28309
|
state: {}
|
|
28246
28310
|
}
|
|
28247
28311
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
28248
28312
|
label: t("MAKE_PAYMENT")
|
|
28249
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
28313
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection178 = data.WaterConnection) !== null && _data$WaterConnection178 !== void 0 && (_data$WaterConnection179 = _data$WaterConnection178[0]) !== null && _data$WaterConnection179 !== void 0 && _data$WaterConnection179.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection180 = data.WaterConnection) !== null && _data$WaterConnection180 !== void 0 && (_data$WaterConnection181 = _data$WaterConnection180[0]) !== null && _data$WaterConnection181 !== void 0 && _data$WaterConnection181.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect169 = data.SewerageConnections) !== null && _data$SewerageConnect169 !== void 0 && (_data$SewerageConnect170 = _data$SewerageConnect169[0]) !== null && _data$SewerageConnect170 !== void 0 && _data$SewerageConnect170.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect171 = data.SewerageConnections) !== null && _data$SewerageConnect171 !== void 0 && (_data$SewerageConnect172 = _data$SewerageConnect171[0]) !== null && _data$SewerageConnect172 !== void 0 && _data$SewerageConnect172.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
|
|
28250
28314
|
to: {
|
|
28251
|
-
pathname: `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$
|
|
28315
|
+
pathname: `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$WaterConnection182 = data.WaterConnection) === null || _data$WaterConnection182 === void 0 ? void 0 : (_data$WaterConnection183 = _data$WaterConnection182[0]) === null || _data$WaterConnection183 === void 0 ? void 0 : _data$WaterConnection183.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect173 = data.SewerageConnections) === null || _data$SewerageConnect173 === void 0 ? void 0 : (_data$SewerageConnect174 = _data$SewerageConnect173[0]) === null || _data$SewerageConnect174 === void 0 ? void 0 : _data$SewerageConnect174.tenantId)}`,
|
|
28252
28316
|
state: {
|
|
28253
|
-
id: `${(data === null || data === void 0 ? void 0 : (_data$
|
|
28317
|
+
id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection184 = data.WaterConnection) === null || _data$WaterConnection184 === void 0 ? void 0 : (_data$WaterConnection185 = _data$WaterConnection184[0]) === null || _data$WaterConnection185 === void 0 ? void 0 : _data$WaterConnection185.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect175 = data.SewerageConnections) === null || _data$SewerageConnect175 === void 0 ? void 0 : (_data$SewerageConnect176 = _data$SewerageConnect175[0]) === null || _data$SewerageConnect176 === void 0 ? void 0 : _data$SewerageConnect176.applicationNo)}`
|
|
28254
28318
|
}
|
|
28255
28319
|
}
|
|
28256
28320
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
28257
28321
|
label: t("COMMON_EDIT")
|
|
28258
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
28322
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection186 = data.WaterConnection) !== null && _data$WaterConnection186 !== void 0 && (_data$WaterConnection187 = _data$WaterConnection186[0]) !== null && _data$WaterConnection187 !== void 0 && _data$WaterConnection187.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection188 = data.WaterConnection) !== null && _data$WaterConnection188 !== void 0 && (_data$WaterConnection189 = _data$WaterConnection188[0]) !== null && _data$WaterConnection189 !== void 0 && _data$WaterConnection189.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect177 = data.SewerageConnections) !== null && _data$SewerageConnect177 !== void 0 && (_data$SewerageConnect178 = _data$SewerageConnect177[0]) !== null && _data$SewerageConnect178 !== void 0 && _data$SewerageConnect178.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect179 = data.SewerageConnections) !== null && _data$SewerageConnect179 !== void 0 && (_data$SewerageConnect180 = _data$SewerageConnect179[0]) !== null && _data$SewerageConnect180 !== void 0 && _data$SewerageConnect180.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
|
|
28259
28323
|
to: {
|
|
28260
28324
|
pathname: `/digit-ui/citizen/ws/resubmit-disconnect-application`,
|
|
28261
28325
|
state: {
|
|
28262
|
-
id: `${(data === null || data === void 0 ? void 0 : (_data$
|
|
28326
|
+
id: `${(data === null || data === void 0 ? void 0 : (_data$WaterConnection190 = data.WaterConnection) === null || _data$WaterConnection190 === void 0 ? void 0 : (_data$WaterConnection191 = _data$WaterConnection190[0]) === null || _data$WaterConnection191 === void 0 ? void 0 : _data$WaterConnection191.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : (_data$SewerageConnect182 = _data$SewerageConnect181[0]) === null || _data$SewerageConnect182 === void 0 ? void 0 : _data$SewerageConnect182.applicationNo)}`
|
|
28263
28327
|
}
|
|
28264
28328
|
}
|
|
28265
28329
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
28266
28330
|
label: t("RESUBMIT_APPLICATION"),
|
|
28267
28331
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
28268
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28332
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect183 = data.SewerageConnections) === null || _data$SewerageConnect183 === void 0 ? void 0 : _data$SewerageConnect183[0],
|
|
28269
28333
|
serviceType: "SEWERAGE",
|
|
28270
28334
|
WSDisconnectionForm: {
|
|
28271
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28335
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect184 = data.SewerageConnections) !== null && _data$SewerageConnect184 !== void 0 && (_data$SewerageConnect185 = _data$SewerageConnect184[0]) !== null && _data$SewerageConnect185 !== void 0 && _data$SewerageConnect185.isDisconnectionTemporary ? {
|
|
28272
28336
|
code: "type",
|
|
28273
28337
|
value: {
|
|
28274
28338
|
name: "Temporary",
|
|
@@ -28285,18 +28349,18 @@ const WSApplicationDetails = () => {
|
|
|
28285
28349
|
code: "Permanent"
|
|
28286
28350
|
}
|
|
28287
28351
|
},
|
|
28288
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28352
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect186 = data.SewerageConnections) === null || _data$SewerageConnect186 === void 0 ? void 0 : (_data$SewerageConnect187 = _data$SewerageConnect186[0]) === null || _data$SewerageConnect187 === void 0 ? void 0 : _data$SewerageConnect187.dateEffectiveFrom, true),
|
|
28289
28353
|
reason: {
|
|
28290
28354
|
code: "reason",
|
|
28291
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28355
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect188 = data.SewerageConnections) === null || _data$SewerageConnect188 === void 0 ? void 0 : (_data$SewerageConnect189 = _data$SewerageConnect188[0]) === null || _data$SewerageConnect189 === void 0 ? void 0 : _data$SewerageConnect189.disconnectionReason
|
|
28292
28356
|
},
|
|
28293
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28357
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect190 = data.SewerageConnections) === null || _data$SewerageConnect190 === void 0 ? void 0 : (_data$SewerageConnect191 = _data$SewerageConnect190[0]) === null || _data$SewerageConnect191 === void 0 ? void 0 : _data$SewerageConnect191.documents
|
|
28294
28358
|
}
|
|
28295
28359
|
} : {
|
|
28296
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28360
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection192 = data.WaterConnection) === null || _data$WaterConnection192 === void 0 ? void 0 : _data$WaterConnection192[0],
|
|
28297
28361
|
serviceType: "WATER",
|
|
28298
28362
|
WSDisconnectionForm: {
|
|
28299
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28363
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection193 = data.WaterConnection) !== null && _data$WaterConnection193 !== void 0 && (_data$WaterConnection194 = _data$WaterConnection193[0]) !== null && _data$WaterConnection194 !== void 0 && _data$WaterConnection194.isDisconnectionTemporary ? {
|
|
28300
28364
|
code: "type",
|
|
28301
28365
|
value: {
|
|
28302
28366
|
name: "Temporary",
|
|
@@ -28313,12 +28377,12 @@ const WSApplicationDetails = () => {
|
|
|
28313
28377
|
code: "Permanent"
|
|
28314
28378
|
}
|
|
28315
28379
|
},
|
|
28316
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28380
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection195 = data.WaterConnection) === null || _data$WaterConnection195 === void 0 ? void 0 : (_data$WaterConnection196 = _data$WaterConnection195[0]) === null || _data$WaterConnection196 === void 0 ? void 0 : _data$WaterConnection196.dateEffectiveFrom, true),
|
|
28317
28381
|
reason: {
|
|
28318
28382
|
code: "reason",
|
|
28319
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28383
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection197 = data.WaterConnection) === null || _data$WaterConnection197 === void 0 ? void 0 : (_data$WaterConnection198 = _data$WaterConnection197[0]) === null || _data$WaterConnection198 === void 0 ? void 0 : _data$WaterConnection198.disconnectionReason
|
|
28320
28384
|
},
|
|
28321
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28385
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection199 = data.WaterConnection) === null || _data$WaterConnection199 === void 0 ? void 0 : (_data$WaterConnection200 = _data$WaterConnection199[0]) === null || _data$WaterConnection200 === void 0 ? void 0 : _data$WaterConnection200.documents
|
|
28322
28386
|
}
|
|
28323
28387
|
})
|
|
28324
28388
|
})) : null)));
|
|
@@ -28649,7 +28713,7 @@ const getConnectionDetailsPDF = async (application, property, tenantInfo, t) =>
|
|
|
28649
28713
|
};
|
|
28650
28714
|
|
|
28651
28715
|
const ConnectionDetails$5 = () => {
|
|
28652
|
-
var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Sewer, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state24, _state25, _state26, _state26$property, _state26$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _state27, _state28, _state29, _state30,
|
|
28716
|
+
var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Sewer, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state3, _state4, _state4$applicationTy, _state5, _state6, _state7, _state8, _state8$applicationTy, _state9, _state0, _state1, _state10, _state10$applicationT, _state11, _state12, _state13, _state14, _state15, _state15$applicationT, _state16, _state16$waterSource, _state16$waterSource$, _state17, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state21, _state22, _state22$additionalDe, _state23, _state24, _state25, _state26, _state26$property, _state26$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state27, _state28, _state29, _state30, _state30$connectionHo, _state30$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state31, _data$WaterConnection56, _data$WaterConnection57, _data$WaterConnection58, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect48, _data$SewerageConnect49, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection61, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect53, _data$SewerageConnect54, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$SewerageConnect60, _data$WaterConnection69, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _state32, _state32$connectionHo, _state32$connectionHo2, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _state33, _state34, _state35, _state36, _state37, _state38, _paymentDetails$data17, _paymentDetails$data18;
|
|
28653
28717
|
const {
|
|
28654
28718
|
t
|
|
28655
28719
|
} = useTranslation();
|
|
@@ -29084,7 +29148,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29084
29148
|
requestBody: {},
|
|
29085
29149
|
requestParam: {
|
|
29086
29150
|
tenantId: tenantId,
|
|
29087
|
-
|
|
29151
|
+
mobileNumber: user !== null && user !== void 0 && (_user$info2 = user.info) !== null && _user$info2 !== void 0 && (_user$info2$userName = _user$info2.userName) !== null && _user$info2$userName !== void 0 && _user$info2$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.userName : user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.mobileNumber
|
|
29088
29152
|
},
|
|
29089
29153
|
jsonPath: "Properties[0].address.street",
|
|
29090
29154
|
isArray: false,
|
|
@@ -29095,7 +29159,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29095
29159
|
}
|
|
29096
29160
|
}
|
|
29097
29161
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
29098
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(
|
|
29162
|
+
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(_state27 = state) === null || _state27 === void 0 ? void 0 : _state27.propertyId}&tenantId=${(_state28 = state) === null || _state28 === void 0 ? void 0 : _state28.tenantId}`
|
|
29099
29163
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
29100
29164
|
style: {
|
|
29101
29165
|
textAlign: "left",
|
|
@@ -29107,10 +29171,10 @@ const ConnectionDetails$5 = () => {
|
|
|
29107
29171
|
styles: {
|
|
29108
29172
|
fontSize: "28px"
|
|
29109
29173
|
}
|
|
29110
|
-
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (
|
|
29174
|
+
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (_state29 = state) !== null && _state29 !== void 0 && _state29.connectionHolders ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
29111
29175
|
className: "border-none",
|
|
29112
29176
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
29113
|
-
text: (
|
|
29177
|
+
text: (_state30 = state) === null || _state30 === void 0 ? void 0 : (_state30$connectionHo = _state30.connectionHolders) === null || _state30$connectionHo === void 0 ? void 0 : (_state30$connectionHo2 = _state30$connectionHo[0]) === null || _state30$connectionHo2 === void 0 ? void 0 : _state30$connectionHo2.name,
|
|
29114
29178
|
textStyle: {
|
|
29115
29179
|
whiteSpace: "pre"
|
|
29116
29180
|
}
|
|
@@ -29214,7 +29278,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29214
29278
|
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection52 = data.WaterConnection) === null || _data$WaterConnection52 === void 0 ? void 0 : (_data$WaterConnection53 = _data$WaterConnection52[0]) === null || _data$WaterConnection53 === void 0 ? void 0 : (_data$WaterConnection54 = _data$WaterConnection53.connectionHolders) === null || _data$WaterConnection54 === void 0 ? void 0 : (_data$WaterConnection55 = _data$WaterConnection54[0]) === null || _data$WaterConnection55 === void 0 ? void 0 : _data$WaterConnection55.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect44 = data.SewerageConnections) === null || _data$SewerageConnect44 === void 0 ? void 0 : (_data$SewerageConnect45 = _data$SewerageConnect44[0]) === null || _data$SewerageConnect45 === void 0 ? void 0 : (_data$SewerageConnect46 = _data$SewerageConnect45.connectionHolders) === null || _data$SewerageConnect46 === void 0 ? void 0 : (_data$SewerageConnect47 = _data$SewerageConnect46[0]) === null || _data$SewerageConnect47 === void 0 ? void 0 : _data$SewerageConnect47.uuid,
|
|
29215
29279
|
fieldName: "correspondenceAddress",
|
|
29216
29280
|
model: "WnSConnectionOwner",
|
|
29217
|
-
hide: !((
|
|
29281
|
+
hide: !((_state31 = state) !== null && _state31 !== void 0 && _state31.connectionHolders),
|
|
29218
29282
|
showValue: false,
|
|
29219
29283
|
loadData: {
|
|
29220
29284
|
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
@@ -29238,7 +29302,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29238
29302
|
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection69 = data.WaterConnection) === null || _data$WaterConnection69 === void 0 ? void 0 : (_data$WaterConnection70 = _data$WaterConnection69[0]) === null || _data$WaterConnection70 === void 0 ? void 0 : (_data$WaterConnection71 = _data$WaterConnection70.connectionHolders) === null || _data$WaterConnection71 === void 0 ? void 0 : (_data$WaterConnection72 = _data$WaterConnection71[0]) === null || _data$WaterConnection72 === void 0 ? void 0 : _data$WaterConnection72.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect61 = data.SewerageConnections) === null || _data$SewerageConnect61 === void 0 ? void 0 : (_data$SewerageConnect62 = _data$SewerageConnect61[0]) === null || _data$SewerageConnect62 === void 0 ? void 0 : (_data$SewerageConnect63 = _data$SewerageConnect62.connectionHolders) === null || _data$SewerageConnect63 === void 0 ? void 0 : (_data$SewerageConnect64 = _data$SewerageConnect63[0]) === null || _data$SewerageConnect64 === void 0 ? void 0 : _data$SewerageConnect64.uuid,
|
|
29239
29303
|
fieldName: "ownerType",
|
|
29240
29304
|
model: "WnSConnection",
|
|
29241
|
-
hide: !((
|
|
29305
|
+
hide: !((_state32 = state) !== null && _state32 !== void 0 && (_state32$connectionHo = _state32.connectionHolders) !== null && _state32$connectionHo !== void 0 && (_state32$connectionHo2 = _state32$connectionHo[0]) !== null && _state32$connectionHo2 !== void 0 && _state32$connectionHo2.ownerType),
|
|
29242
29306
|
showValue: false,
|
|
29243
29307
|
loadData: {
|
|
29244
29308
|
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
@@ -29279,7 +29343,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29279
29343
|
isArray: false
|
|
29280
29344
|
}
|
|
29281
29345
|
}
|
|
29282
|
-
}))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), (((
|
|
29346
|
+
}))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), (((_state33 = state) === null || _state33 === void 0 ? void 0 : _state33.status) !== "inactive" || ((_state34 = state) === null || _state34 === void 0 ? void 0 : _state34.applicationStatus) !== "Inactive" || ((_state35 = state) === null || _state35 === void 0 ? void 0 : _state35.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React.createElement(ActionBar, {
|
|
29283
29347
|
style: {
|
|
29284
29348
|
position: "relative",
|
|
29285
29349
|
boxShadow: "none",
|
|
@@ -29298,7 +29362,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29298
29362
|
},
|
|
29299
29363
|
label: t("WS_DISCONNECTION_BUTTON"),
|
|
29300
29364
|
onSubmit: onActionSelect
|
|
29301
|
-
}))) : ((
|
|
29365
|
+
}))) : ((_state36 = state) === null || _state36 === void 0 ? void 0 : _state36.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state37 = state) === null || _state37 === void 0 ? void 0 : _state37.status) == "Inactive" && ((_state38 = state) === null || _state38 === void 0 ? void 0 : _state38.isDisconnectionTemporary) && /*#__PURE__*/React.createElement(ActionBar, {
|
|
29302
29366
|
style: {
|
|
29303
29367
|
position: "relative",
|
|
29304
29368
|
boxShadow: "none",
|
|
@@ -29330,8 +29394,8 @@ const ConnectionDetails$5 = () => {
|
|
|
29330
29394
|
actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
|
|
29331
29395
|
hideSubmit: true,
|
|
29332
29396
|
actionSingleSubmit: () => {
|
|
29333
|
-
var
|
|
29334
|
-
history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((
|
|
29397
|
+
var _state39, _state40;
|
|
29398
|
+
history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((_state39 = state) === null || _state39 === void 0 ? void 0 : _state39.connectionNo)}/${tenantId}?consumerCode=${(_state40 = state) === null || _state40 === void 0 ? void 0 : _state40.connectionNo}&&tenantId=${tenantId}&&workflow=WNS`);
|
|
29335
29399
|
setshowModal(false);
|
|
29336
29400
|
},
|
|
29337
29401
|
popupStyles: mobileView ? {
|
|
@@ -29508,20 +29572,21 @@ const WSPayments = ({
|
|
|
29508
29572
|
};
|
|
29509
29573
|
|
|
29510
29574
|
const WSMyPayments = () => {
|
|
29511
|
-
var
|
|
29575
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _data$WaterConnection2, _data$WaterConnection3, _SWdata$SewerageConne, _SWdata$SewerageConne2, _data$WaterConnection4, _data$WaterConnection5, _SWdata$SewerageConne3, _SWdata$SewerageConne4, _applicationsList, _applicationsList2, _applicationsList3, _applicationsList4;
|
|
29512
29576
|
const {
|
|
29513
29577
|
t
|
|
29514
29578
|
} = useTranslation();
|
|
29515
29579
|
const user = Digit.UserService.getUser();
|
|
29516
|
-
const tenantId =
|
|
29580
|
+
const tenantId = "dl.djb";
|
|
29517
29581
|
let filter = window.location.href.split("/").pop();
|
|
29582
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.userName : user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.mobileNumber;
|
|
29518
29583
|
let filter1 = !isNaN(parseInt(filter)) ? {
|
|
29519
29584
|
tenantId: tenantId,
|
|
29520
|
-
mobileNumber:
|
|
29585
|
+
mobileNumber: userMobileNumber,
|
|
29521
29586
|
searchType: "CONNECTION"
|
|
29522
29587
|
} : {
|
|
29523
29588
|
tenantId: tenantId,
|
|
29524
|
-
mobileNumber:
|
|
29589
|
+
mobileNumber: userMobileNumber,
|
|
29525
29590
|
searchType: "CONNECTION"
|
|
29526
29591
|
};
|
|
29527
29592
|
const {
|
|
@@ -29581,10 +29646,10 @@ const WSMyPayments = () => {
|
|
|
29581
29646
|
} = Digit.Hooks.ws.useWaterPropertySearch({
|
|
29582
29647
|
tenantId: tenantId,
|
|
29583
29648
|
filters: {
|
|
29584
|
-
|
|
29649
|
+
mobileNumber: userMobileNumber
|
|
29585
29650
|
}
|
|
29586
29651
|
}, {
|
|
29587
|
-
enabled:
|
|
29652
|
+
enabled: userMobileNumber ? true : false
|
|
29588
29653
|
});
|
|
29589
29654
|
if (isLoading || iswsLoading || isswLoading || isSWLoading || isPropertyLoading) {
|
|
29590
29655
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
@@ -30308,10 +30373,12 @@ const CheckPage = ({
|
|
|
30308
30373
|
const WSConnection = ({
|
|
30309
30374
|
application
|
|
30310
30375
|
}) => {
|
|
30311
|
-
var _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6
|
|
30376
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6;
|
|
30312
30377
|
const {
|
|
30313
30378
|
t
|
|
30314
30379
|
} = useTranslation();
|
|
30380
|
+
const user = Digit.UserService.getUser();
|
|
30381
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.userName : user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.mobileNumber;
|
|
30315
30382
|
let encodeApplicationNo = encodeURI(application.applicationNo);
|
|
30316
30383
|
return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(KeyNote, {
|
|
30317
30384
|
keyValue: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
@@ -30337,8 +30404,8 @@ const WSConnection = ({
|
|
|
30337
30404
|
serviceName: "/property-services/property/_search",
|
|
30338
30405
|
requestBody: {},
|
|
30339
30406
|
requestParam: {
|
|
30340
|
-
tenantId: application === null || application === void 0 ? void 0 : application.tenantId,
|
|
30341
|
-
|
|
30407
|
+
tenantId: (application === null || application === void 0 ? void 0 : application.tenantId) || "dl.djb",
|
|
30408
|
+
mobileNumber: userMobileNumber
|
|
30342
30409
|
},
|
|
30343
30410
|
jsonPath: "Properties[0].address.street",
|
|
30344
30411
|
isArray: false,
|
|
@@ -30366,20 +30433,21 @@ const WSConnection = ({
|
|
|
30366
30433
|
const MyConnections = ({
|
|
30367
30434
|
view
|
|
30368
30435
|
}) => {
|
|
30369
|
-
var
|
|
30436
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList, _connectionList2;
|
|
30370
30437
|
const {
|
|
30371
30438
|
t
|
|
30372
30439
|
} = useTranslation();
|
|
30373
30440
|
const user = Digit.UserService.getUser();
|
|
30374
|
-
const tenantId =
|
|
30441
|
+
const tenantId = "dl.djb";
|
|
30375
30442
|
let filter = window.location.href.split("/").pop();
|
|
30443
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.userName : user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.mobileNumber;
|
|
30376
30444
|
let filter1 = !isNaN(parseInt(filter)) ? {
|
|
30377
30445
|
tenantId: tenantId,
|
|
30378
|
-
mobileNumber:
|
|
30446
|
+
mobileNumber: userMobileNumber,
|
|
30379
30447
|
searchType: "CONNECTION"
|
|
30380
30448
|
} : {
|
|
30381
30449
|
tenantId: tenantId,
|
|
30382
|
-
mobileNumber:
|
|
30450
|
+
mobileNumber: userMobileNumber,
|
|
30383
30451
|
searchType: "CONNECTION"
|
|
30384
30452
|
};
|
|
30385
30453
|
const {
|
|
@@ -30413,14 +30481,15 @@ const MyConnections = ({
|
|
|
30413
30481
|
error: PTerror,
|
|
30414
30482
|
data: PTdata
|
|
30415
30483
|
} = Digit.Hooks.pt.usePropertySearch({
|
|
30484
|
+
tenantId: tenantId,
|
|
30416
30485
|
filters: {
|
|
30417
|
-
|
|
30486
|
+
mobileNumber: userMobileNumber
|
|
30418
30487
|
}
|
|
30419
30488
|
}, {
|
|
30420
30489
|
filters: {
|
|
30421
|
-
|
|
30490
|
+
mobileNumber: userMobileNumber
|
|
30422
30491
|
},
|
|
30423
|
-
enabled:
|
|
30492
|
+
enabled: userMobileNumber ? true : false
|
|
30424
30493
|
});
|
|
30425
30494
|
connectionList = connectionList && connectionList.map(ob => {
|
|
30426
30495
|
var _PTdata$Properties;
|
|
@@ -31296,7 +31365,7 @@ const WNSMyBills = ({
|
|
|
31296
31365
|
header,
|
|
31297
31366
|
actionButtonLabel
|
|
31298
31367
|
}) => {
|
|
31299
|
-
var _Digit$UserService$ge, _Digit$SessionStorage, _Digit$UserService$ge2, _Digit$UserService$ge3, _location$state, _Digit$UserService$ge4, _searchResults, _searchResults2, _searchResults3;
|
|
31368
|
+
var _Digit$UserService$ge, _Digit$SessionStorage, _Digit$UserService$ge2, _Digit$UserService$ge3, _location$state, _Digit$UserService$ge4, _userInfo$userName, _searchResults, _searchResults2, _searchResults3;
|
|
31300
31369
|
const {
|
|
31301
31370
|
t
|
|
31302
31371
|
} = useTranslation();
|
|
@@ -31317,9 +31386,8 @@ const WNSMyBills = ({
|
|
|
31317
31386
|
});
|
|
31318
31387
|
}
|
|
31319
31388
|
let filters = {};
|
|
31320
|
-
const {
|
|
31321
|
-
|
|
31322
|
-
} = ((_Digit$UserService$ge4 = Digit.UserService.getUser()) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.info) || {};
|
|
31389
|
+
const userInfo = ((_Digit$UserService$ge4 = Digit.UserService.getUser()) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.info) || {};
|
|
31390
|
+
const mobileNumber = userInfo !== null && userInfo !== void 0 && (_userInfo$userName = userInfo.userName) !== null && _userInfo$userName !== void 0 && _userInfo$userName.match(/^[0-9]{10}$/) ? userInfo === null || userInfo === void 0 ? void 0 : userInfo.userName : userInfo === null || userInfo === void 0 ? void 0 : userInfo.mobileNumber;
|
|
31323
31391
|
filters = {
|
|
31324
31392
|
...filters,
|
|
31325
31393
|
searchType: "CONNECTION"
|
|
@@ -31417,6 +31485,266 @@ const BillSearchResults = () => {
|
|
|
31417
31485
|
})));
|
|
31418
31486
|
};
|
|
31419
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
|
+
|
|
31420
31748
|
const ApplicationBillAmendment = () => {
|
|
31421
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;
|
|
31422
31750
|
const [showToast, setShowToast] = useState(null);
|
|
@@ -39483,7 +39811,7 @@ function PropertyDocuments({
|
|
|
39483
39811
|
}));
|
|
39484
39812
|
};
|
|
39485
39813
|
const renderDocumentRow = (value, index) => {
|
|
39486
|
-
var _pdfFiles$value$fileS, _value$originalDoc, _value$
|
|
39814
|
+
var _pdfFiles$value$fileS, _value$originalDoc, _value$originalDoc2, _value$originalDoc3;
|
|
39487
39815
|
const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
|
|
39488
39816
|
const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
|
|
39489
39817
|
const docUid = (value === null || value === void 0 ? void 0 : value.documentUid) || "";
|
|
@@ -39566,19 +39894,17 @@ function PropertyDocuments({
|
|
|
39566
39894
|
margin: 0
|
|
39567
39895
|
}
|
|
39568
39896
|
}, /*#__PURE__*/React.createElement("input", {
|
|
39897
|
+
key: `chk-${value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.id}-${value === null || value === void 0 ? void 0 : (_value$originalDoc2 = value.originalDoc) === null || _value$originalDoc2 === void 0 ? void 0 : _value$originalDoc2.isVerified}`,
|
|
39569
39898
|
type: "checkbox",
|
|
39570
39899
|
style: {
|
|
39571
39900
|
width: "18px",
|
|
39572
39901
|
height: "18px",
|
|
39573
39902
|
accentColor: "#F47738"
|
|
39574
39903
|
},
|
|
39575
|
-
defaultChecked: value === null || value === void 0 ? void 0 : (_value$
|
|
39904
|
+
defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified,
|
|
39576
39905
|
onChange: e => {
|
|
39577
39906
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
39578
|
-
|
|
39579
|
-
value.originalDoc.additionalDetails = {};
|
|
39580
|
-
}
|
|
39581
|
-
value.originalDoc.additionalDetails.isDocumentVerified = e.target.checked;
|
|
39907
|
+
value.originalDoc.isVerified = e.target.checked;
|
|
39582
39908
|
}
|
|
39583
39909
|
}
|
|
39584
39910
|
}), "Check Verified"))
|
|
@@ -39834,131 +40160,6 @@ function PropertyFloors({
|
|
|
39834
40160
|
}));
|
|
39835
40161
|
}
|
|
39836
40162
|
|
|
39837
|
-
function PropertyOwners({
|
|
39838
|
-
owners
|
|
39839
|
-
}) {
|
|
39840
|
-
let ownerSequences = {};
|
|
39841
|
-
if (window.location.href.includes("/employee/pt/")) {
|
|
39842
|
-
ownerSequences = owners.slice().reverse();
|
|
39843
|
-
} else {
|
|
39844
|
-
ownerSequences = owners;
|
|
39845
|
-
}
|
|
39846
|
-
const {
|
|
39847
|
-
t
|
|
39848
|
-
} = useTranslation();
|
|
39849
|
-
const checkOwnerLength = (owners === null || owners === void 0 ? void 0 : owners.length) || 1;
|
|
39850
|
-
let cardStyles = {
|
|
39851
|
-
marginTop: "19px"
|
|
39852
|
-
};
|
|
39853
|
-
let statusTableStyles = {
|
|
39854
|
-
position: "relative",
|
|
39855
|
-
padding: "8px"
|
|
39856
|
-
};
|
|
39857
|
-
let rowContainerStyle = {
|
|
39858
|
-
justifyContent: "space-between",
|
|
39859
|
-
fontSize: "16px",
|
|
39860
|
-
lineHeight: "19px",
|
|
39861
|
-
color: "#0B0C0C"
|
|
39862
|
-
};
|
|
39863
|
-
if ( Number(checkOwnerLength) > 1) {
|
|
39864
|
-
cardStyles = {
|
|
39865
|
-
marginTop: "19px",
|
|
39866
|
-
background: "#FAFAFA",
|
|
39867
|
-
border: "1px solid #D6D5D4",
|
|
39868
|
-
borderRadius: "4px",
|
|
39869
|
-
padding: "8px",
|
|
39870
|
-
lineHeight: "19px",
|
|
39871
|
-
maxWidth: "600px",
|
|
39872
|
-
minWidth: "280px"
|
|
39873
|
-
};
|
|
39874
|
-
} else if ( !(Number(checkOwnerLength) > 1)) {
|
|
39875
|
-
cardStyles = {
|
|
39876
|
-
marginTop: "19px",
|
|
39877
|
-
lineHeight: "19px",
|
|
39878
|
-
maxWidth: "600px",
|
|
39879
|
-
minWidth: "280px"
|
|
39880
|
-
};
|
|
39881
|
-
statusTableStyles = {
|
|
39882
|
-
position: "relative",
|
|
39883
|
-
marginTop: "19px"
|
|
39884
|
-
};
|
|
39885
|
-
}
|
|
39886
|
-
if (window.location.href.includes("obps")) {
|
|
39887
|
-
cardStyles = {
|
|
39888
|
-
...cardStyles,
|
|
39889
|
-
maxWidth: "950px"
|
|
39890
|
-
};
|
|
39891
|
-
cardStyles = {
|
|
39892
|
-
...cardStyles,
|
|
39893
|
-
maxWidth: "950px"
|
|
39894
|
-
};
|
|
39895
|
-
rowContainerStyle = {};
|
|
39896
|
-
}
|
|
39897
|
-
let owners1 = owners.sort((item, item2) => {
|
|
39898
|
-
var _item$additionalDetai, _item2$additionalDeta;
|
|
39899
|
-
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);
|
|
39900
|
-
});
|
|
39901
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
39902
|
-
className: "owner-details"
|
|
39903
|
-
}, ownerSequences.map((owner, index) => {
|
|
39904
|
-
var _owner$values;
|
|
39905
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
39906
|
-
key: t(owner === null || owner === void 0 ? void 0 : owner.title),
|
|
39907
|
-
style: cardStyles,
|
|
39908
|
-
className: "owner-details-child"
|
|
39909
|
-
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
39910
|
-
style: Number(checkOwnerLength) > 1 ? {
|
|
39911
|
-
marginBottom: "8px",
|
|
39912
|
-
paddingBottom: "9px",
|
|
39913
|
-
color: "#0B0C0C",
|
|
39914
|
-
fontSize: "16px",
|
|
39915
|
-
lineHeight: "19px"
|
|
39916
|
-
} : {
|
|
39917
|
-
marginBottom: "8px",
|
|
39918
|
-
color: "#505A5F",
|
|
39919
|
-
fontSize: "24px"
|
|
39920
|
-
}
|
|
39921
|
-
}, 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, {
|
|
39922
|
-
key: index
|
|
39923
|
-
}, /*#__PURE__*/React.createElement(StatusTable, {
|
|
39924
|
-
style: statusTableStyles
|
|
39925
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
39926
|
-
style: {
|
|
39927
|
-
maxWidth: "640px",
|
|
39928
|
-
top: 0,
|
|
39929
|
-
left: 0,
|
|
39930
|
-
bottom: 0,
|
|
39931
|
-
right: 0,
|
|
39932
|
-
width: "auto"
|
|
39933
|
-
}
|
|
39934
|
-
}), owner === null || owner === void 0 ? void 0 : (_owner$values = owner.values) === null || _owner$values === void 0 ? void 0 : _owner$values.map((value, index) => {
|
|
39935
|
-
var _value$values;
|
|
39936
|
-
if (value.map === true && value.value !== "N/A") {
|
|
39937
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
39938
|
-
key: t(value.title),
|
|
39939
|
-
label: t(value.title),
|
|
39940
|
-
text: /*#__PURE__*/React.createElement("img", {
|
|
39941
|
-
src: t(value.value),
|
|
39942
|
-
alt: "",
|
|
39943
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy
|
|
39944
|
-
})
|
|
39945
|
-
});
|
|
39946
|
-
}
|
|
39947
|
-
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Row, {
|
|
39948
|
-
key: t(value.title),
|
|
39949
|
-
label: `${t(value.title)}`,
|
|
39950
|
-
text: t(value.value) || "N/A",
|
|
39951
|
-
last: index === (value === null || value === void 0 ? void 0 : (_value$values = value.values) === null || _value$values === void 0 ? void 0 : _value$values.length) - 1,
|
|
39952
|
-
caption: value.caption,
|
|
39953
|
-
className: "border-none",
|
|
39954
|
-
textStyle: value.textStyle,
|
|
39955
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy,
|
|
39956
|
-
rowContainerStyle: rowContainerStyle
|
|
39957
|
-
}));
|
|
39958
|
-
}))));
|
|
39959
|
-
})));
|
|
39960
|
-
}
|
|
39961
|
-
|
|
39962
40163
|
const ScruntinyDetails = ({
|
|
39963
40164
|
scrutinyDetails,
|
|
39964
40165
|
paymentsList: _paymentsList = []
|
|
@@ -41752,7 +41953,7 @@ function ApplicationDetailsContent({
|
|
|
41752
41953
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
41753
41954
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
41754
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) => {
|
|
41755
|
-
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;
|
|
41756
41957
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
41757
41958
|
key: index
|
|
41758
41959
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -41950,53 +42151,51 @@ function ApplicationDetailsContent({
|
|
|
41950
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
|
|
41951
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, {
|
|
41952
42153
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
41953
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.
|
|
41954
|
-
|
|
41955
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.
|
|
41956
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.
|
|
41957
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.
|
|
41958
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.accessories
|
|
41959
|
-
}), (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, {
|
|
41960
42159
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
41961
42160
|
t: t,
|
|
41962
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
41963
|
-
}), (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, {
|
|
41964
42163
|
t: t,
|
|
41965
42164
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
41966
42165
|
docs: detail.additionalDetails.obpsDocuments,
|
|
41967
42166
|
bpaActionsDetails: workflowDetails
|
|
41968
|
-
}), (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, {
|
|
41969
42168
|
t: t,
|
|
41970
42169
|
isNoc: true,
|
|
41971
42170
|
NOCdata: detail.values,
|
|
41972
42171
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
41973
42172
|
docs: detail.additionalDetails.noc,
|
|
41974
|
-
noc: (_detail$
|
|
42173
|
+
noc: (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.data,
|
|
41975
42174
|
bpaActionsDetails: workflowDetails
|
|
41976
|
-
}), (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, {
|
|
41977
42176
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
41978
|
-
}), (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, {
|
|
41979
42178
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
41980
|
-
}), (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, {
|
|
41981
42180
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
41982
42181
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
41983
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
41984
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
41985
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
41986
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
41987
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
41988
|
-
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
|
|
41989
42188
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
41990
42189
|
wsAdditionalDetails: detail,
|
|
41991
42190
|
oldValue: oldValue
|
|
41992
|
-
}), (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$
|
|
41993
|
-
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
|
|
41994
42193
|
}, /*#__PURE__*/React.createElement("span", {
|
|
41995
42194
|
className: "add-details-link hover-button"
|
|
41996
|
-
}, 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, {
|
|
41997
42196
|
wsAdditionalDetails: detail,
|
|
41998
42197
|
workflowDetails: workflowDetails
|
|
41999
|
-
}), (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, {
|
|
42000
42199
|
wsAdditionalDetails: detail,
|
|
42001
42200
|
workflowDetails: workflowDetails
|
|
42002
42201
|
}));
|
|
@@ -47166,9 +47365,17 @@ const OLDApplication = () => {
|
|
|
47166
47365
|
}, {
|
|
47167
47366
|
label: "WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER"
|
|
47168
47367
|
}, {
|
|
47169
|
-
label: "
|
|
47368
|
+
label: "PT_LOCATION_DETAILS"
|
|
47369
|
+
}, {
|
|
47370
|
+
label: "WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS"
|
|
47170
47371
|
}, {
|
|
47171
|
-
label: "
|
|
47372
|
+
label: "WS_DJB_EMPLOYEE"
|
|
47373
|
+
}, {
|
|
47374
|
+
label: "WS_BANK_DETAILS"
|
|
47375
|
+
}, {
|
|
47376
|
+
label: "WS_DOCUMENTS"
|
|
47377
|
+
}, {
|
|
47378
|
+
label: "WS_DECLARATION"
|
|
47172
47379
|
}].map((step, index) => ({
|
|
47173
47380
|
route: `step-${index + 1}`,
|
|
47174
47381
|
timeLine: [{
|
|
@@ -47228,7 +47435,8 @@ const OLDApplication = () => {
|
|
|
47228
47435
|
type: "component",
|
|
47229
47436
|
key: "propertyAddress",
|
|
47230
47437
|
component: "CPTPropertyLocationDetails",
|
|
47231
|
-
withoutLabel: true
|
|
47438
|
+
withoutLabel: true,
|
|
47439
|
+
isAutomaticFill: true
|
|
47232
47440
|
}]
|
|
47233
47441
|
});
|
|
47234
47442
|
} else if (compName === "PropertyWaterConnection") {
|
|
@@ -47238,7 +47446,8 @@ const OLDApplication = () => {
|
|
|
47238
47446
|
type: "component",
|
|
47239
47447
|
key: "useDetails",
|
|
47240
47448
|
component: "PropertyWaterConnection",
|
|
47241
|
-
withoutLabel: true
|
|
47449
|
+
withoutLabel: true,
|
|
47450
|
+
isAutomaticFill: true
|
|
47242
47451
|
}]
|
|
47243
47452
|
});
|
|
47244
47453
|
} else if (compName === "WSBankDetails") {
|
|
@@ -47292,21 +47501,6 @@ const OLDApplication = () => {
|
|
|
47292
47501
|
var _sessionFormData$cpt, _sessionFormData$cpt$, _sessionFormData$cpt2, _sessionFormData$cpt3;
|
|
47293
47502
|
!propertyId && (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$cpt = sessionFormData.cpt) === null || _sessionFormData$cpt === void 0 ? void 0 : (_sessionFormData$cpt$ = _sessionFormData$cpt.details) === null || _sessionFormData$cpt$ === void 0 ? void 0 : _sessionFormData$cpt$.propertyId) && setPropertyId(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$cpt2 = sessionFormData.cpt) === null || _sessionFormData$cpt2 === void 0 ? void 0 : (_sessionFormData$cpt3 = _sessionFormData$cpt2.details) === null || _sessionFormData$cpt3 === void 0 ? void 0 : _sessionFormData$cpt3.propertyId);
|
|
47294
47503
|
}, [sessionFormData === null || sessionFormData === void 0 ? void 0 : sessionFormData.cpt]);
|
|
47295
|
-
useEffect(() => {
|
|
47296
|
-
var _propertyDetails$Prop;
|
|
47297
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0]) {
|
|
47298
|
-
var _propertyDetails$Prop2, _sessionFormData$cpt4;
|
|
47299
|
-
const newCptDetails = propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop2 = propertyDetails.Properties) === null || _propertyDetails$Prop2 === void 0 ? void 0 : _propertyDetails$Prop2[0];
|
|
47300
|
-
if (!lodash.isEqual(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$cpt4 = sessionFormData.cpt) === null || _sessionFormData$cpt4 === void 0 ? void 0 : _sessionFormData$cpt4.details, newCptDetails)) {
|
|
47301
|
-
setSessionFormData({
|
|
47302
|
-
...sessionFormData,
|
|
47303
|
-
cpt: {
|
|
47304
|
-
details: newCptDetails
|
|
47305
|
-
}
|
|
47306
|
-
});
|
|
47307
|
-
}
|
|
47308
|
-
}
|
|
47309
|
-
}, [propertyDetails, sessionFormData]);
|
|
47310
47504
|
const {
|
|
47311
47505
|
isLoading: creatingWaterApplicationLoading,
|
|
47312
47506
|
isError: createWaterApplicationError,
|
|
@@ -47341,8 +47535,9 @@ const OLDApplication = () => {
|
|
|
47341
47535
|
...sessionFormData,
|
|
47342
47536
|
...formData
|
|
47343
47537
|
};
|
|
47344
|
-
|
|
47345
|
-
|
|
47538
|
+
const cleanedFormData = JSON.parse(JSON.stringify(updatedFormData));
|
|
47539
|
+
if (!lodash.isEqual(sessionFormData, cleanedFormData)) {
|
|
47540
|
+
setSessionFormData(cleanedFormData);
|
|
47346
47541
|
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
|
|
47347
47542
|
}
|
|
47348
47543
|
if (Object.keys(formState.errors).length > 0 && Object.keys(formState.errors).length == 1 && formState !== null && formState !== void 0 && (_formState$errors = formState.errors) !== null && _formState$errors !== void 0 && (_formState$errors$Con = _formState$errors["ConnectionHolderDetails"]) !== null && _formState$errors$Con !== void 0 && _formState$errors$Con.type && ((_Object$keys = Object.keys(formState === null || formState === void 0 ? void 0 : (_formState$errors2 = formState.errors) === null || _formState$errors2 === void 0 ? void 0 : (_formState$errors2$Co = _formState$errors2["ConnectionHolderDetails"]) === null || _formState$errors2$Co === void 0 ? void 0 : _formState$errors2$Co.type)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) == 1 && formState.errors["ConnectionHolderDetails"] && Object.values(formState.errors["ConnectionHolderDetails"].type).filter(ob => {
|
|
@@ -47354,8 +47549,8 @@ const OLDApplication = () => {
|
|
|
47354
47549
|
setShowToast(null);
|
|
47355
47550
|
};
|
|
47356
47551
|
const onFormSubmit = data => {
|
|
47357
|
-
var _data$cpt, _propertyDetails$
|
|
47358
|
-
if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$
|
|
47552
|
+
var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$keys2, _formStateErros$Conne2;
|
|
47553
|
+
if (!(data !== null && data !== void 0 && (_data$cpt = data.cpt) !== null && _data$cpt !== void 0 && _data$cpt.id) && !(propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop[0])) {
|
|
47359
47554
|
var _data$cpt2;
|
|
47360
47555
|
if (!(data !== null && data !== void 0 && (_data$cpt2 = data.cpt) !== null && _data$cpt2 !== void 0 && _data$cpt2.details) || !propertyDetails) {
|
|
47361
47556
|
console.warn("[WS] onSubmit EXIT: invalid property", {
|
|
@@ -47385,7 +47580,7 @@ const OLDApplication = () => {
|
|
|
47385
47580
|
setShowCheckPage(true);
|
|
47386
47581
|
};
|
|
47387
47582
|
const processSubmission = async data => {
|
|
47388
|
-
var _data$useDetails, _data$ConnectionDetai, _data$ConnectionDetai2, _data$DocumentsRequir, _data$cpt3, _Digit$UserService$ge, _data$ConnectionHolde, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _propertyDetails$
|
|
47583
|
+
var _data$useDetails, _data$ConnectionDetai, _data$ConnectionDetai2, _data$DocumentsRequir, _data$cpt3, _Digit$UserService$ge, _data$ConnectionHolde, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _propertyDetails$Prop3, _propertyDetails$Prop4, _propertyDetails$Prop5, _propertyDetails$Prop6, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$cpt4, _data$cpt4$details, _data$cpt4$details$ow, _data$cpt4$details$ow2;
|
|
47389
47584
|
const basePath = window.location.href.includes("/employee") ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
|
|
47390
47585
|
if (data !== null && data !== void 0 && (_data$useDetails = data.useDetails) !== null && _data$useDetails !== void 0 && _data$useDetails.useDetails) {
|
|
47391
47586
|
data.useDetails = {
|
|
@@ -47481,9 +47676,9 @@ const OLDApplication = () => {
|
|
|
47481
47676
|
data.declarationData.declarations = data.declaration.declarations;
|
|
47482
47677
|
}
|
|
47483
47678
|
if (!(data !== null && data !== void 0 && (_data$cpt3 = data.cpt) !== null && _data$cpt3 !== void 0 && _data$cpt3.details)) {
|
|
47484
|
-
var _propertyDetails$
|
|
47679
|
+
var _propertyDetails$Prop2;
|
|
47485
47680
|
data.cpt = {
|
|
47486
|
-
details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
47681
|
+
details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop2 = propertyDetails.Properties) === null || _propertyDetails$Prop2 === void 0 ? void 0 : _propertyDetails$Prop2[0]
|
|
47487
47682
|
};
|
|
47488
47683
|
}
|
|
47489
47684
|
data.channel = ((_Digit$UserService$ge = Digit.UserService.getType()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER";
|
|
@@ -47498,7 +47693,7 @@ const OLDApplication = () => {
|
|
|
47498
47693
|
code: "NONPTPRESSURE"
|
|
47499
47694
|
},
|
|
47500
47695
|
categoryType: (connDetail === null || connDetail === void 0 ? void 0 : connDetail.categoryType) || {
|
|
47501
|
-
code: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde = data.ConnectionHolderDetails) === null || _data$ConnectionHolde === void 0 ? void 0 : (_data$ConnectionHolde2 = _data$ConnectionHolde[0]) === null || _data$ConnectionHolde2 === void 0 ? void 0 : (_data$ConnectionHolde3 = _data$ConnectionHolde2.ownerType) === null || _data$ConnectionHolde3 === void 0 ? void 0 : _data$ConnectionHolde3.code) || (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde4 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde4 === void 0 ? void 0 : (_data$ConnectionHolde5 = _data$ConnectionHolde4[0]) === null || _data$ConnectionHolde5 === void 0 ? void 0 : _data$ConnectionHolde5.ownerType) || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
47696
|
+
code: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde = data.ConnectionHolderDetails) === null || _data$ConnectionHolde === void 0 ? void 0 : (_data$ConnectionHolde2 = _data$ConnectionHolde[0]) === null || _data$ConnectionHolde2 === void 0 ? void 0 : (_data$ConnectionHolde3 = _data$ConnectionHolde2.ownerType) === null || _data$ConnectionHolde3 === void 0 ? void 0 : _data$ConnectionHolde3.code) || (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde4 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde4 === void 0 ? void 0 : (_data$ConnectionHolde5 = _data$ConnectionHolde4[0]) === null || _data$ConnectionHolde5 === void 0 ? void 0 : _data$ConnectionHolde5.ownerType) || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop3 = propertyDetails.Properties) === null || _propertyDetails$Prop3 === void 0 ? void 0 : (_propertyDetails$Prop4 = _propertyDetails$Prop3[0]) === null || _propertyDetails$Prop4 === void 0 ? void 0 : (_propertyDetails$Prop5 = _propertyDetails$Prop4.owners) === null || _propertyDetails$Prop5 === void 0 ? void 0 : (_propertyDetails$Prop6 = _propertyDetails$Prop5[0]) === null || _propertyDetails$Prop6 === void 0 ? void 0 : _propertyDetails$Prop6.ownerType) || "NONE"
|
|
47502
47697
|
},
|
|
47503
47698
|
domesticType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.domesticType,
|
|
47504
47699
|
departmentType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.departmentType,
|
|
@@ -47808,7 +48003,7 @@ const WSLinks = ({
|
|
|
47808
48003
|
t
|
|
47809
48004
|
} = useTranslation();
|
|
47810
48005
|
const links = [{
|
|
47811
|
-
link: `${matchPath}/
|
|
48006
|
+
link: `${matchPath}/info`,
|
|
47812
48007
|
i18nKey: t("ACTION_TEST_APPLY_NEW_CONNECTION")
|
|
47813
48008
|
}, {
|
|
47814
48009
|
link: `${matchPath}/my-applications`,
|
|
@@ -47885,6 +48080,7 @@ const componentsToRegister = {
|
|
|
47885
48080
|
WSCitizenEditApplication: EditApplication,
|
|
47886
48081
|
WSReSubmitDisconnectionApplication: ReSubmitDisconnectionApplication,
|
|
47887
48082
|
WNSMyBillsComponent: BillSearchResults,
|
|
48083
|
+
WSInfoPage: WSInfoPage,
|
|
47888
48084
|
WSCheckPage: CheckPage,
|
|
47889
48085
|
WSAcknowledgement,
|
|
47890
48086
|
WSDisconnectionCheckPage: CheckPage$1,
|