@djb25/digit-ui-module-ws 1.0.34 → 1.0.35
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 +262 -222
- 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, 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"
|
|
@@ -12194,7 +12236,7 @@ const WSPropertyDetails = ({
|
|
|
12194
12236
|
type: "button",
|
|
12195
12237
|
onClick: () => setPropertyId(propertyId)
|
|
12196
12238
|
}, `${t("PT_SEARCH")}`))), /*#__PURE__*/React.createElement(Link, {
|
|
12197
|
-
to: `/digit-ui/${userType}/commonpt/search`
|
|
12239
|
+
to: `/digit-ui/${userType}/commonpt/search?redirectToUrl=${window.location.pathname}`
|
|
12198
12240
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
12199
12241
|
label: t("CPT_SEARCH_PROPERTY"),
|
|
12200
12242
|
style: {
|
|
@@ -12202,7 +12244,7 @@ const WSPropertyDetails = ({
|
|
|
12202
12244
|
display: "inline-block"
|
|
12203
12245
|
}
|
|
12204
12246
|
})), "\xA0 | \xA0", /*#__PURE__*/React.createElement(Link, {
|
|
12205
|
-
to: `/digit-ui/${userType}/commonpt/new-application`
|
|
12247
|
+
to: `/digit-ui/${userType}/commonpt/property/new-application?redirectToUrl=${window.location.pathname}`
|
|
12206
12248
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
12207
12249
|
label: t("CPT_CREATE_PROPERTY"),
|
|
12208
12250
|
style: {
|
|
@@ -24600,9 +24642,15 @@ const WSCreate = () => {
|
|
|
24600
24642
|
}
|
|
24601
24643
|
let redirectWithHistory = history.push;
|
|
24602
24644
|
if (nextStep === null) {
|
|
24603
|
-
return redirectWithHistory(
|
|
24645
|
+
return redirectWithHistory({
|
|
24646
|
+
pathname: `${getPath(match.path, match.params)}/check`,
|
|
24647
|
+
search: location.search
|
|
24648
|
+
});
|
|
24604
24649
|
}
|
|
24605
|
-
redirectWithHistory(
|
|
24650
|
+
redirectWithHistory({
|
|
24651
|
+
pathname: `${getPath(match.path, match.params)}/${nextStep}`,
|
|
24652
|
+
search: location.search
|
|
24653
|
+
});
|
|
24606
24654
|
};
|
|
24607
24655
|
if (params && Object.keys(params).length > 0 && window.location.href.includes("/citizen/ws/create-application/search-property")) {
|
|
24608
24656
|
clearParams();
|
|
@@ -27263,7 +27311,10 @@ const WSWFApplicationTimeline = props => {
|
|
|
27263
27311
|
} = Digit.Hooks.useWorkflowDetails({
|
|
27264
27312
|
tenantId: (_props$application2 = props.application) === null || _props$application2 === void 0 ? void 0 : _props$application2.tenantId,
|
|
27265
27313
|
id: props.id,
|
|
27266
|
-
moduleCode: businessService
|
|
27314
|
+
moduleCode: businessService,
|
|
27315
|
+
config: {
|
|
27316
|
+
enabled: !!props.id
|
|
27317
|
+
}
|
|
27267
27318
|
});
|
|
27268
27319
|
const [showAllTimeline, setShowAllTimeline] = useState(false);
|
|
27269
27320
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
@@ -27569,13 +27620,14 @@ const getWSDisconnectionApplicationForm = async (application, property, tenantIn
|
|
|
27569
27620
|
};
|
|
27570
27621
|
|
|
27571
27622
|
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;
|
|
27623
|
+
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
27624
|
const {
|
|
27574
27625
|
t
|
|
27575
27626
|
} = useTranslation();
|
|
27576
27627
|
const menuRef = useRef();
|
|
27577
27628
|
const user = Digit.UserService.getUser();
|
|
27578
|
-
const
|
|
27629
|
+
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;
|
|
27630
|
+
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
27631
|
const [showOptions, setShowOptions] = useState(false);
|
|
27580
27632
|
const [viewTimeline, setViewTimeline] = useState(false);
|
|
27581
27633
|
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 +28010,7 @@ const WSApplicationDetails = () => {
|
|
|
27958
28010
|
requestBody: {},
|
|
27959
28011
|
requestParam: {
|
|
27960
28012
|
tenantId: tenantId,
|
|
27961
|
-
|
|
28013
|
+
mobileNumber: userMobileNumber
|
|
27962
28014
|
},
|
|
27963
28015
|
jsonPath: "Properties[0].address.street",
|
|
27964
28016
|
isArray: false,
|
|
@@ -27969,25 +28021,25 @@ const WSApplicationDetails = () => {
|
|
|
27969
28021
|
}
|
|
27970
28022
|
}
|
|
27971
28023
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
27972
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(data === null || data === void 0 ? void 0 : (_data$
|
|
28024
|
+
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
28025
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
27974
28026
|
style: {
|
|
27975
28027
|
textAlign: "left"
|
|
27976
28028
|
},
|
|
27977
28029
|
label: t("WS_VIEW_PROPERTY")
|
|
27978
|
-
})))), (data === null || data === void 0 ? void 0 : (_data$
|
|
28030
|
+
})))), (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
28031
|
styles: {
|
|
27980
28032
|
fontSize: "28px"
|
|
27981
28033
|
}
|
|
27982
28034
|
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
27983
28035
|
className: "border-none",
|
|
27984
28036
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
27985
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28037
|
+
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
28038
|
textStyle: {
|
|
27987
28039
|
whiteSpace: "pre"
|
|
27988
28040
|
},
|
|
27989
28041
|
privacy: {
|
|
27990
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28042
|
+
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
28043
|
fieldName: "connectionHoldersMobileNumber",
|
|
27992
28044
|
model: "WnSConnectionOwner",
|
|
27993
28045
|
showValue: false,
|
|
@@ -28005,19 +28057,19 @@ const WSApplicationDetails = () => {
|
|
|
28005
28057
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28006
28058
|
className: "border-none",
|
|
28007
28059
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
28008
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28060
|
+
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
28061
|
textStyle: {
|
|
28010
28062
|
whiteSpace: "pre"
|
|
28011
28063
|
}
|
|
28012
28064
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28013
28065
|
className: "border-none",
|
|
28014
28066
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
28015
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
28067
|
+
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
28068
|
textStyle: {
|
|
28017
28069
|
whiteSpace: "pre"
|
|
28018
28070
|
},
|
|
28019
28071
|
privacy: {
|
|
28020
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28072
|
+
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
28073
|
fieldName: "gender",
|
|
28022
28074
|
model: "WnSConnectionOwner",
|
|
28023
28075
|
showValue: false,
|
|
@@ -28035,12 +28087,12 @@ const WSApplicationDetails = () => {
|
|
|
28035
28087
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28036
28088
|
className: "border-none",
|
|
28037
28089
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
28038
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28090
|
+
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
28091
|
textStyle: {
|
|
28040
28092
|
whiteSpace: "pre"
|
|
28041
28093
|
},
|
|
28042
28094
|
privacy: {
|
|
28043
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28095
|
+
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
28096
|
fieldName: "fatherOrHusbandName",
|
|
28045
28097
|
model: "WnSConnectionOwner",
|
|
28046
28098
|
showValue: false,
|
|
@@ -28058,12 +28110,12 @@ const WSApplicationDetails = () => {
|
|
|
28058
28110
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28059
28111
|
className: "border-none",
|
|
28060
28112
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
28061
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28113
|
+
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
28114
|
textStyle: {
|
|
28063
28115
|
whiteSpace: "pre"
|
|
28064
28116
|
},
|
|
28065
28117
|
privacy: {
|
|
28066
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28118
|
+
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
28119
|
fieldName: "relationship",
|
|
28068
28120
|
model: "WnSConnection",
|
|
28069
28121
|
showValue: false,
|
|
@@ -28081,9 +28133,9 @@ const WSApplicationDetails = () => {
|
|
|
28081
28133
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28082
28134
|
className: "border-none",
|
|
28083
28135
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
28084
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28136
|
+
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
28137
|
privacy: {
|
|
28086
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28138
|
+
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
28139
|
fieldName: "correspondenceAddress",
|
|
28088
28140
|
model: "WnSConnectionOwner",
|
|
28089
28141
|
showValue: false,
|
|
@@ -28101,12 +28153,12 @@ const WSApplicationDetails = () => {
|
|
|
28101
28153
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28102
28154
|
className: "border-none",
|
|
28103
28155
|
label: t("WS_OWN_DETAIL_SPECIAL_APPLICANT_LABEL"),
|
|
28104
|
-
text: (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? !(data !== null && data !== void 0 && (_data$
|
|
28156
|
+
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
28157
|
textStyle: {
|
|
28106
28158
|
whiteSpace: "pre"
|
|
28107
28159
|
},
|
|
28108
28160
|
privacy: {
|
|
28109
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28161
|
+
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
28162
|
fieldName: "ownerType",
|
|
28111
28163
|
model: "WnSConnection",
|
|
28112
28164
|
showValue: false,
|
|
@@ -28129,12 +28181,12 @@ const WSApplicationDetails = () => {
|
|
|
28129
28181
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28130
28182
|
className: "border-none",
|
|
28131
28183
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
28132
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28184
|
+
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
28185
|
textStyle: {
|
|
28134
28186
|
whiteSpace: "pre"
|
|
28135
28187
|
},
|
|
28136
28188
|
privacy: {
|
|
28137
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28189
|
+
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
28190
|
fieldName: "connectionHoldersEmailId",
|
|
28139
28191
|
model: "WnSConnectionOwner",
|
|
28140
28192
|
showValue: false,
|
|
@@ -28153,43 +28205,43 @@ const WSApplicationDetails = () => {
|
|
|
28153
28205
|
styles: {
|
|
28154
28206
|
fontSize: "28px"
|
|
28155
28207
|
}
|
|
28156
|
-
}, t("WS_COMMON_CONNECTION_DETAIL")), (data === null || data === void 0 ? void 0 : data.WaterConnection) && (data === null || data === void 0 ? void 0 : (_data$
|
|
28208
|
+
}, 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
28209
|
className: "border-none",
|
|
28158
28210
|
label: t("WS_TASK_DETAILS_CONN_DETAIL_NO_OF_TAPS_PROPOSED"),
|
|
28159
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28211
|
+
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
28212
|
textStyle: {
|
|
28161
28213
|
whiteSpace: "pre"
|
|
28162
28214
|
}
|
|
28163
28215
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28164
28216
|
className: "border-none",
|
|
28165
28217
|
label: t("WS_SERV_DETAIL_PIPE_SIZE"),
|
|
28166
|
-
text: `${data === null || data === void 0 ? void 0 : (_data$
|
|
28218
|
+
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
28219
|
textStyle: {
|
|
28168
28220
|
whiteSpace: "pre"
|
|
28169
28221
|
}
|
|
28170
28222
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
28171
|
-
to: `/digit-ui/citizen/ws/connection/additional/${data === null || data === void 0 ? void 0 : (_data$
|
|
28223
|
+
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
28224
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
28173
28225
|
style: {
|
|
28174
28226
|
textAlign: "left"
|
|
28175
28227
|
},
|
|
28176
28228
|
label: t("WS_ADDITIONAL_DETAILS")
|
|
28177
|
-
}))), (data === null || data === void 0 ? void 0 : data.SewerageConnections) && (data === null || data === void 0 ? void 0 : (_data$
|
|
28229
|
+
}))), (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
28230
|
className: "border-none",
|
|
28179
28231
|
label: t("WS_NO_OF_WATER_CLOSETS_LABEL"),
|
|
28180
|
-
text: data === null || data === void 0 ? void 0 : (_data$
|
|
28232
|
+
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
28233
|
textStyle: {
|
|
28182
28234
|
whiteSpace: "pre"
|
|
28183
28235
|
}
|
|
28184
28236
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28185
28237
|
className: "border-none",
|
|
28186
28238
|
label: t("WS_SERV_DETAIL_NO_OF_TOILETS"),
|
|
28187
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28239
|
+
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
28240
|
textStyle: {
|
|
28189
28241
|
whiteSpace: "pre"
|
|
28190
28242
|
}
|
|
28191
28243
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
28192
|
-
to: `/digit-ui/citizen/ws/connection/additional/${data === null || data === void 0 ? void 0 : (_data$
|
|
28244
|
+
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
28245
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
28194
28246
|
style: {
|
|
28195
28247
|
textAlign: "left"
|
|
@@ -28199,15 +28251,15 @@ const WSApplicationDetails = () => {
|
|
|
28199
28251
|
styles: {
|
|
28200
28252
|
fontSize: "28px"
|
|
28201
28253
|
}
|
|
28202
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
28203
|
-
var _doc$documentType, _data$
|
|
28254
|
+
}, 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) => {
|
|
28255
|
+
var _doc$documentType, _data$WaterConnection160, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163;
|
|
28204
28256
|
return /*#__PURE__*/React.createElement("div", {
|
|
28205
28257
|
key: `doc-${index}`
|
|
28206
28258
|
}, /*#__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$
|
|
28259
|
+
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
28260
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28209
28261
|
index: index
|
|
28210
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28262
|
+
}), (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
28263
|
style: {
|
|
28212
28264
|
color: "#cccccc",
|
|
28213
28265
|
backgroundColor: "#cccccc",
|
|
@@ -28216,15 +28268,15 @@ const WSApplicationDetails = () => {
|
|
|
28216
28268
|
marginBottom: "20px"
|
|
28217
28269
|
}
|
|
28218
28270
|
}) : null)));
|
|
28219
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
28220
|
-
var _doc$documentType2, _data$
|
|
28271
|
+
})), (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) => {
|
|
28272
|
+
var _doc$documentType2, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154;
|
|
28221
28273
|
return /*#__PURE__*/React.createElement("div", {
|
|
28222
28274
|
key: `doc-${index}`
|
|
28223
28275
|
}, /*#__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$
|
|
28276
|
+
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
28277
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28226
28278
|
index: index
|
|
28227
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28279
|
+
}), (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
28280
|
style: {
|
|
28229
28281
|
color: "white",
|
|
28230
28282
|
backgroundColor: "white",
|
|
@@ -28236,39 +28288,39 @@ const WSApplicationDetails = () => {
|
|
|
28236
28288
|
}))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
28237
28289
|
id: "timeline"
|
|
28238
28290
|
}, /*#__PURE__*/React.createElement(WSWFApplicationTimeline, {
|
|
28239
|
-
application: (data === null || data === void 0 ? void 0 : (_data$
|
|
28240
|
-
id: (data === null || data === void 0 ? void 0 : (_data$
|
|
28291
|
+
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]),
|
|
28292
|
+
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
28293
|
paymentbuttonenabled: false
|
|
28242
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
28294
|
+
})), (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
28295
|
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$
|
|
28296
|
+
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
28297
|
state: {}
|
|
28246
28298
|
}
|
|
28247
28299
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
28248
28300
|
label: t("MAKE_PAYMENT")
|
|
28249
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
28301
|
+
})) : 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
28302
|
to: {
|
|
28251
|
-
pathname: `/digit-ui/citizen/ws/edit-application/${(data === null || data === void 0 ? void 0 : (_data$
|
|
28303
|
+
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
28304
|
state: {
|
|
28253
|
-
id: `${(data === null || data === void 0 ? void 0 : (_data$
|
|
28305
|
+
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
28306
|
}
|
|
28255
28307
|
}
|
|
28256
28308
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
28257
28309
|
label: t("COMMON_EDIT")
|
|
28258
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
28310
|
+
})) : 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
28311
|
to: {
|
|
28260
28312
|
pathname: `/digit-ui/citizen/ws/resubmit-disconnect-application`,
|
|
28261
28313
|
state: {
|
|
28262
|
-
id: `${(data === null || data === void 0 ? void 0 : (_data$
|
|
28314
|
+
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
28315
|
}
|
|
28264
28316
|
}
|
|
28265
28317
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
28266
28318
|
label: t("RESUBMIT_APPLICATION"),
|
|
28267
28319
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
28268
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28320
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect183 = data.SewerageConnections) === null || _data$SewerageConnect183 === void 0 ? void 0 : _data$SewerageConnect183[0],
|
|
28269
28321
|
serviceType: "SEWERAGE",
|
|
28270
28322
|
WSDisconnectionForm: {
|
|
28271
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28323
|
+
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
28324
|
code: "type",
|
|
28273
28325
|
value: {
|
|
28274
28326
|
name: "Temporary",
|
|
@@ -28285,18 +28337,18 @@ const WSApplicationDetails = () => {
|
|
|
28285
28337
|
code: "Permanent"
|
|
28286
28338
|
}
|
|
28287
28339
|
},
|
|
28288
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28340
|
+
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
28341
|
reason: {
|
|
28290
28342
|
code: "reason",
|
|
28291
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28343
|
+
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
28344
|
},
|
|
28293
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28345
|
+
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
28346
|
}
|
|
28295
28347
|
} : {
|
|
28296
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28348
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection192 = data.WaterConnection) === null || _data$WaterConnection192 === void 0 ? void 0 : _data$WaterConnection192[0],
|
|
28297
28349
|
serviceType: "WATER",
|
|
28298
28350
|
WSDisconnectionForm: {
|
|
28299
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28351
|
+
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
28352
|
code: "type",
|
|
28301
28353
|
value: {
|
|
28302
28354
|
name: "Temporary",
|
|
@@ -28313,12 +28365,12 @@ const WSApplicationDetails = () => {
|
|
|
28313
28365
|
code: "Permanent"
|
|
28314
28366
|
}
|
|
28315
28367
|
},
|
|
28316
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28368
|
+
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
28369
|
reason: {
|
|
28318
28370
|
code: "reason",
|
|
28319
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28371
|
+
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
28372
|
},
|
|
28321
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28373
|
+
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
28374
|
}
|
|
28323
28375
|
})
|
|
28324
28376
|
})) : null)));
|
|
@@ -28649,7 +28701,7 @@ const getConnectionDetailsPDF = async (application, property, tenantInfo, t) =>
|
|
|
28649
28701
|
};
|
|
28650
28702
|
|
|
28651
28703
|
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,
|
|
28704
|
+
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
28705
|
const {
|
|
28654
28706
|
t
|
|
28655
28707
|
} = useTranslation();
|
|
@@ -29084,7 +29136,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29084
29136
|
requestBody: {},
|
|
29085
29137
|
requestParam: {
|
|
29086
29138
|
tenantId: tenantId,
|
|
29087
|
-
|
|
29139
|
+
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
29140
|
},
|
|
29089
29141
|
jsonPath: "Properties[0].address.street",
|
|
29090
29142
|
isArray: false,
|
|
@@ -29095,7 +29147,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29095
29147
|
}
|
|
29096
29148
|
}
|
|
29097
29149
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
29098
|
-
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${(
|
|
29150
|
+
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
29151
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
29100
29152
|
style: {
|
|
29101
29153
|
textAlign: "left",
|
|
@@ -29107,10 +29159,10 @@ const ConnectionDetails$5 = () => {
|
|
|
29107
29159
|
styles: {
|
|
29108
29160
|
fontSize: "28px"
|
|
29109
29161
|
}
|
|
29110
|
-
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (
|
|
29162
|
+
}, 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
29163
|
className: "border-none",
|
|
29112
29164
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
29113
|
-
text: (
|
|
29165
|
+
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
29166
|
textStyle: {
|
|
29115
29167
|
whiteSpace: "pre"
|
|
29116
29168
|
}
|
|
@@ -29214,7 +29266,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29214
29266
|
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
29267
|
fieldName: "correspondenceAddress",
|
|
29216
29268
|
model: "WnSConnectionOwner",
|
|
29217
|
-
hide: !((
|
|
29269
|
+
hide: !((_state31 = state) !== null && _state31 !== void 0 && _state31.connectionHolders),
|
|
29218
29270
|
showValue: false,
|
|
29219
29271
|
loadData: {
|
|
29220
29272
|
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
@@ -29238,7 +29290,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29238
29290
|
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
29291
|
fieldName: "ownerType",
|
|
29240
29292
|
model: "WnSConnection",
|
|
29241
|
-
hide: !((
|
|
29293
|
+
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
29294
|
showValue: false,
|
|
29243
29295
|
loadData: {
|
|
29244
29296
|
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
@@ -29279,7 +29331,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29279
29331
|
isArray: false
|
|
29280
29332
|
}
|
|
29281
29333
|
}
|
|
29282
|
-
}))) : /*#__PURE__*/React.createElement(CardText, null, t("WS_PROPERTY_OWNER_SAME_AS_CONN_HOLDERS")), (((
|
|
29334
|
+
}))) : /*#__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
29335
|
style: {
|
|
29284
29336
|
position: "relative",
|
|
29285
29337
|
boxShadow: "none",
|
|
@@ -29298,7 +29350,7 @@ const ConnectionDetails$5 = () => {
|
|
|
29298
29350
|
},
|
|
29299
29351
|
label: t("WS_DISCONNECTION_BUTTON"),
|
|
29300
29352
|
onSubmit: onActionSelect
|
|
29301
|
-
}))) : ((
|
|
29353
|
+
}))) : ((_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
29354
|
style: {
|
|
29303
29355
|
position: "relative",
|
|
29304
29356
|
boxShadow: "none",
|
|
@@ -29330,8 +29382,8 @@ const ConnectionDetails$5 = () => {
|
|
|
29330
29382
|
actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
|
|
29331
29383
|
hideSubmit: true,
|
|
29332
29384
|
actionSingleSubmit: () => {
|
|
29333
|
-
var
|
|
29334
|
-
history.push(`/digit-ui/citizen/payment/collect/${isSW ? "SW" : "WS"}/${encodeURIComponent((
|
|
29385
|
+
var _state39, _state40;
|
|
29386
|
+
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
29387
|
setshowModal(false);
|
|
29336
29388
|
},
|
|
29337
29389
|
popupStyles: mobileView ? {
|
|
@@ -29508,20 +29560,21 @@ const WSPayments = ({
|
|
|
29508
29560
|
};
|
|
29509
29561
|
|
|
29510
29562
|
const WSMyPayments = () => {
|
|
29511
|
-
var
|
|
29563
|
+
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
29564
|
const {
|
|
29513
29565
|
t
|
|
29514
29566
|
} = useTranslation();
|
|
29515
29567
|
const user = Digit.UserService.getUser();
|
|
29516
|
-
const tenantId =
|
|
29568
|
+
const tenantId = "dl.djb";
|
|
29517
29569
|
let filter = window.location.href.split("/").pop();
|
|
29570
|
+
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
29571
|
let filter1 = !isNaN(parseInt(filter)) ? {
|
|
29519
29572
|
tenantId: tenantId,
|
|
29520
|
-
mobileNumber:
|
|
29573
|
+
mobileNumber: userMobileNumber,
|
|
29521
29574
|
searchType: "CONNECTION"
|
|
29522
29575
|
} : {
|
|
29523
29576
|
tenantId: tenantId,
|
|
29524
|
-
mobileNumber:
|
|
29577
|
+
mobileNumber: userMobileNumber,
|
|
29525
29578
|
searchType: "CONNECTION"
|
|
29526
29579
|
};
|
|
29527
29580
|
const {
|
|
@@ -29581,10 +29634,10 @@ const WSMyPayments = () => {
|
|
|
29581
29634
|
} = Digit.Hooks.ws.useWaterPropertySearch({
|
|
29582
29635
|
tenantId: tenantId,
|
|
29583
29636
|
filters: {
|
|
29584
|
-
|
|
29637
|
+
mobileNumber: userMobileNumber
|
|
29585
29638
|
}
|
|
29586
29639
|
}, {
|
|
29587
|
-
enabled:
|
|
29640
|
+
enabled: userMobileNumber ? true : false
|
|
29588
29641
|
});
|
|
29589
29642
|
if (isLoading || iswsLoading || isswLoading || isSWLoading || isPropertyLoading) {
|
|
29590
29643
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
@@ -30308,10 +30361,12 @@ const CheckPage = ({
|
|
|
30308
30361
|
const WSConnection = ({
|
|
30309
30362
|
application
|
|
30310
30363
|
}) => {
|
|
30311
|
-
var _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6
|
|
30364
|
+
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
30365
|
const {
|
|
30313
30366
|
t
|
|
30314
30367
|
} = useTranslation();
|
|
30368
|
+
const user = Digit.UserService.getUser();
|
|
30369
|
+
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
30370
|
let encodeApplicationNo = encodeURI(application.applicationNo);
|
|
30316
30371
|
return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(KeyNote, {
|
|
30317
30372
|
keyValue: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
@@ -30337,8 +30392,8 @@ const WSConnection = ({
|
|
|
30337
30392
|
serviceName: "/property-services/property/_search",
|
|
30338
30393
|
requestBody: {},
|
|
30339
30394
|
requestParam: {
|
|
30340
|
-
tenantId: application === null || application === void 0 ? void 0 : application.tenantId,
|
|
30341
|
-
|
|
30395
|
+
tenantId: (application === null || application === void 0 ? void 0 : application.tenantId) || "dl.djb",
|
|
30396
|
+
mobileNumber: userMobileNumber
|
|
30342
30397
|
},
|
|
30343
30398
|
jsonPath: "Properties[0].address.street",
|
|
30344
30399
|
isArray: false,
|
|
@@ -30366,20 +30421,21 @@ const WSConnection = ({
|
|
|
30366
30421
|
const MyConnections = ({
|
|
30367
30422
|
view
|
|
30368
30423
|
}) => {
|
|
30369
|
-
var
|
|
30424
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList, _connectionList2;
|
|
30370
30425
|
const {
|
|
30371
30426
|
t
|
|
30372
30427
|
} = useTranslation();
|
|
30373
30428
|
const user = Digit.UserService.getUser();
|
|
30374
|
-
const tenantId =
|
|
30429
|
+
const tenantId = "dl.djb";
|
|
30375
30430
|
let filter = window.location.href.split("/").pop();
|
|
30431
|
+
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
30432
|
let filter1 = !isNaN(parseInt(filter)) ? {
|
|
30377
30433
|
tenantId: tenantId,
|
|
30378
|
-
mobileNumber:
|
|
30434
|
+
mobileNumber: userMobileNumber,
|
|
30379
30435
|
searchType: "CONNECTION"
|
|
30380
30436
|
} : {
|
|
30381
30437
|
tenantId: tenantId,
|
|
30382
|
-
mobileNumber:
|
|
30438
|
+
mobileNumber: userMobileNumber,
|
|
30383
30439
|
searchType: "CONNECTION"
|
|
30384
30440
|
};
|
|
30385
30441
|
const {
|
|
@@ -30413,14 +30469,15 @@ const MyConnections = ({
|
|
|
30413
30469
|
error: PTerror,
|
|
30414
30470
|
data: PTdata
|
|
30415
30471
|
} = Digit.Hooks.pt.usePropertySearch({
|
|
30472
|
+
tenantId: tenantId,
|
|
30416
30473
|
filters: {
|
|
30417
|
-
|
|
30474
|
+
mobileNumber: userMobileNumber
|
|
30418
30475
|
}
|
|
30419
30476
|
}, {
|
|
30420
30477
|
filters: {
|
|
30421
|
-
|
|
30478
|
+
mobileNumber: userMobileNumber
|
|
30422
30479
|
},
|
|
30423
|
-
enabled:
|
|
30480
|
+
enabled: userMobileNumber ? true : false
|
|
30424
30481
|
});
|
|
30425
30482
|
connectionList = connectionList && connectionList.map(ob => {
|
|
30426
30483
|
var _PTdata$Properties;
|
|
@@ -31296,7 +31353,7 @@ const WNSMyBills = ({
|
|
|
31296
31353
|
header,
|
|
31297
31354
|
actionButtonLabel
|
|
31298
31355
|
}) => {
|
|
31299
|
-
var _Digit$UserService$ge, _Digit$SessionStorage, _Digit$UserService$ge2, _Digit$UserService$ge3, _location$state, _Digit$UserService$ge4, _searchResults, _searchResults2, _searchResults3;
|
|
31356
|
+
var _Digit$UserService$ge, _Digit$SessionStorage, _Digit$UserService$ge2, _Digit$UserService$ge3, _location$state, _Digit$UserService$ge4, _userInfo$userName, _searchResults, _searchResults2, _searchResults3;
|
|
31300
31357
|
const {
|
|
31301
31358
|
t
|
|
31302
31359
|
} = useTranslation();
|
|
@@ -31317,9 +31374,8 @@ const WNSMyBills = ({
|
|
|
31317
31374
|
});
|
|
31318
31375
|
}
|
|
31319
31376
|
let filters = {};
|
|
31320
|
-
const {
|
|
31321
|
-
|
|
31322
|
-
} = ((_Digit$UserService$ge4 = Digit.UserService.getUser()) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.info) || {};
|
|
31377
|
+
const userInfo = ((_Digit$UserService$ge4 = Digit.UserService.getUser()) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.info) || {};
|
|
31378
|
+
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
31379
|
filters = {
|
|
31324
31380
|
...filters,
|
|
31325
31381
|
searchType: "CONNECTION"
|
|
@@ -39483,7 +39539,7 @@ function PropertyDocuments({
|
|
|
39483
39539
|
}));
|
|
39484
39540
|
};
|
|
39485
39541
|
const renderDocumentRow = (value, index) => {
|
|
39486
|
-
var _pdfFiles$value$fileS, _value$originalDoc, _value$
|
|
39542
|
+
var _pdfFiles$value$fileS, _value$originalDoc, _value$originalDoc2, _value$originalDoc3;
|
|
39487
39543
|
const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
|
|
39488
39544
|
const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
|
|
39489
39545
|
const docUid = (value === null || value === void 0 ? void 0 : value.documentUid) || "";
|
|
@@ -39566,19 +39622,17 @@ function PropertyDocuments({
|
|
|
39566
39622
|
margin: 0
|
|
39567
39623
|
}
|
|
39568
39624
|
}, /*#__PURE__*/React.createElement("input", {
|
|
39625
|
+
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
39626
|
type: "checkbox",
|
|
39570
39627
|
style: {
|
|
39571
39628
|
width: "18px",
|
|
39572
39629
|
height: "18px",
|
|
39573
39630
|
accentColor: "#F47738"
|
|
39574
39631
|
},
|
|
39575
|
-
defaultChecked: value === null || value === void 0 ? void 0 : (_value$
|
|
39632
|
+
defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified,
|
|
39576
39633
|
onChange: e => {
|
|
39577
39634
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
39578
|
-
|
|
39579
|
-
value.originalDoc.additionalDetails = {};
|
|
39580
|
-
}
|
|
39581
|
-
value.originalDoc.additionalDetails.isDocumentVerified = e.target.checked;
|
|
39635
|
+
value.originalDoc.isVerified = e.target.checked;
|
|
39582
39636
|
}
|
|
39583
39637
|
}
|
|
39584
39638
|
}), "Check Verified"))
|
|
@@ -47292,21 +47346,6 @@ const OLDApplication = () => {
|
|
|
47292
47346
|
var _sessionFormData$cpt, _sessionFormData$cpt$, _sessionFormData$cpt2, _sessionFormData$cpt3;
|
|
47293
47347
|
!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
47348
|
}, [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
47349
|
const {
|
|
47311
47350
|
isLoading: creatingWaterApplicationLoading,
|
|
47312
47351
|
isError: createWaterApplicationError,
|
|
@@ -47341,8 +47380,9 @@ const OLDApplication = () => {
|
|
|
47341
47380
|
...sessionFormData,
|
|
47342
47381
|
...formData
|
|
47343
47382
|
};
|
|
47344
|
-
|
|
47345
|
-
|
|
47383
|
+
const cleanedFormData = JSON.parse(JSON.stringify(updatedFormData));
|
|
47384
|
+
if (!lodash.isEqual(sessionFormData, cleanedFormData)) {
|
|
47385
|
+
setSessionFormData(cleanedFormData);
|
|
47346
47386
|
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
|
|
47347
47387
|
}
|
|
47348
47388
|
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 +47394,8 @@ const OLDApplication = () => {
|
|
|
47354
47394
|
setShowToast(null);
|
|
47355
47395
|
};
|
|
47356
47396
|
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$
|
|
47397
|
+
var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$keys2, _formStateErros$Conne2;
|
|
47398
|
+
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
47399
|
var _data$cpt2;
|
|
47360
47400
|
if (!(data !== null && data !== void 0 && (_data$cpt2 = data.cpt) !== null && _data$cpt2 !== void 0 && _data$cpt2.details) || !propertyDetails) {
|
|
47361
47401
|
console.warn("[WS] onSubmit EXIT: invalid property", {
|
|
@@ -47385,7 +47425,7 @@ const OLDApplication = () => {
|
|
|
47385
47425
|
setShowCheckPage(true);
|
|
47386
47426
|
};
|
|
47387
47427
|
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$
|
|
47428
|
+
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
47429
|
const basePath = window.location.href.includes("/employee") ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
|
|
47390
47430
|
if (data !== null && data !== void 0 && (_data$useDetails = data.useDetails) !== null && _data$useDetails !== void 0 && _data$useDetails.useDetails) {
|
|
47391
47431
|
data.useDetails = {
|
|
@@ -47481,9 +47521,9 @@ const OLDApplication = () => {
|
|
|
47481
47521
|
data.declarationData.declarations = data.declaration.declarations;
|
|
47482
47522
|
}
|
|
47483
47523
|
if (!(data !== null && data !== void 0 && (_data$cpt3 = data.cpt) !== null && _data$cpt3 !== void 0 && _data$cpt3.details)) {
|
|
47484
|
-
var _propertyDetails$
|
|
47524
|
+
var _propertyDetails$Prop2;
|
|
47485
47525
|
data.cpt = {
|
|
47486
|
-
details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
47526
|
+
details: propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop2 = propertyDetails.Properties) === null || _propertyDetails$Prop2 === void 0 ? void 0 : _propertyDetails$Prop2[0]
|
|
47487
47527
|
};
|
|
47488
47528
|
}
|
|
47489
47529
|
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 +47538,7 @@ const OLDApplication = () => {
|
|
|
47498
47538
|
code: "NONPTPRESSURE"
|
|
47499
47539
|
},
|
|
47500
47540
|
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$
|
|
47541
|
+
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
47542
|
},
|
|
47503
47543
|
domesticType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.domesticType,
|
|
47504
47544
|
departmentType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.departmentType,
|