@djb25/digit-ui-module-ws 1.0.41 → 1.0.43
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 +865 -1112
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +867 -1114
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { useState, useEffect, useRef,
|
|
1
|
+
import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$1, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useHistory, useLocation, Switch, Route, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon,
|
|
4
|
+
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, CardLabel, TextInput, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, LabelFieldPair, DatePicker, CollapsibleCardPage, Dropdown, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, CardLabelError, WrapUnMaskComponent, MobileNumber, CheckBox, StatusTable, Row, Header, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, VerticalTimeline, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, AddIcon, Menu, ButtonSelector, 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';
|
|
@@ -7836,7 +7836,7 @@ const WSInfoLabel = _ref2 => {
|
|
|
7836
7836
|
};
|
|
7837
7837
|
|
|
7838
7838
|
const WSMyApplications = () => {
|
|
7839
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _data$WaterConnection2, _SWdata$SewerageConne2, _WSapplicationsList, _SWapplicationsList, _WSapplicationsList2, _SWapplicationsList2, _applicationsList
|
|
7839
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _data$WaterConnection2, _SWdata$SewerageConne2, _WSapplicationsList, _SWapplicationsList, _WSapplicationsList2, _SWapplicationsList2, _applicationsList;
|
|
7840
7840
|
const _useTranslation = useTranslation(),
|
|
7841
7841
|
t = _useTranslation.t;
|
|
7842
7842
|
const user = Digit.UserService.getUser();
|
|
@@ -7892,15 +7892,114 @@ const WSMyApplications = () => {
|
|
|
7892
7892
|
}),
|
|
7893
7893
|
PTisLoading = _Digit$Hooks$pt$usePr.isLoading,
|
|
7894
7894
|
PTdata = _Digit$Hooks$pt$usePr.data;
|
|
7895
|
+
const _useState = useState(0),
|
|
7896
|
+
pageOffset = _useState[0],
|
|
7897
|
+
setPageOffset = _useState[1];
|
|
7898
|
+
const _useState2 = useState(10),
|
|
7899
|
+
pageSize = _useState2[0],
|
|
7900
|
+
setPageSize = _useState2[1];
|
|
7901
|
+
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
7902
|
+
const GetCell = value => /*#__PURE__*/React.createElement("span", {
|
|
7903
|
+
className: "cell-text"
|
|
7904
|
+
}, value);
|
|
7905
|
+
const columns = useMemo(() => {
|
|
7906
|
+
return [{
|
|
7907
|
+
Header: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
7908
|
+
disableSortBy: true,
|
|
7909
|
+
Cell: _ref => {
|
|
7910
|
+
var _row$original, _row$original2;
|
|
7911
|
+
let row = _ref.row;
|
|
7912
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
7913
|
+
className: "link"
|
|
7914
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
7915
|
+
to: "/digit-ui/citizen/ws/connection/application/" + encodeURI((_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationNo)
|
|
7916
|
+
}, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.applicationNo) || "NA"));
|
|
7917
|
+
}
|
|
7918
|
+
}, {
|
|
7919
|
+
Header: t("WS_SERVICE_NAME"),
|
|
7920
|
+
disableSortBy: true,
|
|
7921
|
+
Cell: _ref2 => {
|
|
7922
|
+
var _row$original3;
|
|
7923
|
+
let row = _ref2.row;
|
|
7924
|
+
return GetCell(t("WS_APPLICATION_TYPE_" + ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.applicationType)));
|
|
7925
|
+
}
|
|
7926
|
+
}, {
|
|
7927
|
+
Header: t("WS_CONSUMER_NAME"),
|
|
7928
|
+
disableSortBy: true,
|
|
7929
|
+
Cell: _ref3 => {
|
|
7930
|
+
var _row$original4, _row$original4$connec, _row$original5, _row$original5$proper, _row$original5$proper2;
|
|
7931
|
+
let row = _ref3.row;
|
|
7932
|
+
const names = ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : (_row$original4$connec = _row$original4.connectionHolders) === null || _row$original4$connec === void 0 ? void 0 : _row$original4$connec.map(owner => owner.name).join(",")) || ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : (_row$original5$proper = _row$original5.property) === null || _row$original5$proper === void 0 ? void 0 : (_row$original5$proper2 = _row$original5$proper.owners) === null || _row$original5$proper2 === void 0 ? void 0 : _row$original5$proper2.sort((a, b) => {
|
|
7933
|
+
var _a$additionalDetails, _b$additionalDetails;
|
|
7934
|
+
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);
|
|
7935
|
+
}).map(owner => owner.name).join(",")) || t("CS_NA");
|
|
7936
|
+
return GetCell(names);
|
|
7937
|
+
}
|
|
7938
|
+
}, {
|
|
7939
|
+
Header: t("WS_PROPERTY_ID"),
|
|
7940
|
+
disableSortBy: true,
|
|
7941
|
+
Cell: _ref4 => {
|
|
7942
|
+
var _row$original6;
|
|
7943
|
+
let row = _ref4.row;
|
|
7944
|
+
return GetCell(((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.propertyId) || t("CS_NA"));
|
|
7945
|
+
}
|
|
7946
|
+
}, {
|
|
7947
|
+
Header: t("WS_STATUS"),
|
|
7948
|
+
disableSortBy: true,
|
|
7949
|
+
Cell: _ref5 => {
|
|
7950
|
+
var _row$original7;
|
|
7951
|
+
let row = _ref5.row;
|
|
7952
|
+
return GetCell(t("CS_" + ((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.applicationStatus)) || t("CS_NA"));
|
|
7953
|
+
}
|
|
7954
|
+
}, {
|
|
7955
|
+
Header: t("WS_SLA"),
|
|
7956
|
+
disableSortBy: true,
|
|
7957
|
+
Cell: _ref6 => {
|
|
7958
|
+
var _row$original8;
|
|
7959
|
+
let row = _ref6.row;
|
|
7960
|
+
const slaDays = Math.round(((_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : _row$original8.sla) / (24 * 60 * 60 * 1000));
|
|
7961
|
+
return GetCell(slaDays ? slaDays + " Days" : t("CS_NA"));
|
|
7962
|
+
}
|
|
7963
|
+
}, {
|
|
7964
|
+
Header: t("WS_VIEW_DETAILS"),
|
|
7965
|
+
disableSortBy: true,
|
|
7966
|
+
Cell: _ref7 => {
|
|
7967
|
+
let row = _ref7.row;
|
|
7968
|
+
const application = row.original;
|
|
7969
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
7970
|
+
className: "link"
|
|
7971
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
7972
|
+
to: "/digit-ui/citizen/ws/connection/application/" + encodeURI(application === null || application === void 0 ? void 0 : application.applicationNo)
|
|
7973
|
+
}, t("WS_VIEW_DETAILS_LABEL")));
|
|
7974
|
+
}
|
|
7975
|
+
}, {
|
|
7976
|
+
Header: t("MAKE_PAYMENT"),
|
|
7977
|
+
disableSortBy: true,
|
|
7978
|
+
Cell: _ref8 => {
|
|
7979
|
+
var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$connecti, _application$connecti2, _application$property, _application$property2, _application$applicat5;
|
|
7980
|
+
let row = _ref8.row;
|
|
7981
|
+
const application = row.original;
|
|
7982
|
+
const businessService = application !== null && application !== void 0 && (_application$applicat = application.applicationNo) !== null && _application$applicat !== void 0 && _application$applicat.includes("SW") ? application !== null && application !== void 0 && (_application$applicat2 = application.applicationNo) !== null && _application$applicat2 !== void 0 && _application$applicat2.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("DC") ? "WS" : "WS.ONE_TIME_FEE";
|
|
7983
|
+
return (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("span", {
|
|
7984
|
+
className: "link"
|
|
7985
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
7986
|
+
to: {
|
|
7987
|
+
pathname: "/digit-ui/citizen/payment/my-bills/" + businessService + "/" + (application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.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$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$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$property = application.property) === null || _application$property === void 0 ? void 0 : (_application$property2 = _application$property.owners) === null || _application$property2 === void 0 ? void 0 : _application$property2.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? true : false),
|
|
7988
|
+
state: {}
|
|
7989
|
+
}
|
|
7990
|
+
}, t("MAKE_PAYMENT"))) : null;
|
|
7991
|
+
}
|
|
7992
|
+
}];
|
|
7993
|
+
}, [t]);
|
|
7895
7994
|
if (isLoading || isSWLoading || PTisLoading) {
|
|
7896
7995
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
7897
7996
|
}
|
|
7898
|
-
let
|
|
7899
|
-
|
|
7900
|
-
WSapplicationsList =
|
|
7901
|
-
let
|
|
7902
|
-
|
|
7903
|
-
SWapplicationsList =
|
|
7997
|
+
let _ref9 = data || {},
|
|
7998
|
+
_ref9$WaterConnection = _ref9.WaterConnection,
|
|
7999
|
+
WSapplicationsList = _ref9$WaterConnection === void 0 ? [] : _ref9$WaterConnection;
|
|
8000
|
+
let _ref0 = SWdata || {},
|
|
8001
|
+
_ref0$SewerageConnect = _ref0.SewerageConnections,
|
|
8002
|
+
SWapplicationsList = _ref0$SewerageConnect === void 0 ? [] : _ref0$SewerageConnect;
|
|
7904
8003
|
WSapplicationsList = ((_WSapplicationsList = WSapplicationsList) === null || _WSapplicationsList === void 0 ? void 0 : _WSapplicationsList.map(ob => {
|
|
7905
8004
|
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3;
|
|
7906
8005
|
return _extends({}, ob, {
|
|
@@ -7922,16 +8021,28 @@ const WSMyApplications = () => {
|
|
|
7922
8021
|
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]
|
|
7923
8022
|
});
|
|
7924
8023
|
});
|
|
7925
|
-
|
|
7926
|
-
t: t
|
|
7927
|
-
}), /*#__PURE__*/React.createElement("div", null, ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 && applicationsList.sort((a, b) => {
|
|
8024
|
+
const sortedApplications = ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 ? applicationsList.sort((a, b) => {
|
|
7928
8025
|
var _b$auditDetails, _a$auditDetails;
|
|
7929
8026
|
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);
|
|
7930
|
-
})
|
|
8027
|
+
}) : [];
|
|
8028
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
8029
|
+
t: t
|
|
8030
|
+
}), /*#__PURE__*/React.createElement("div", null, (sortedApplications === null || sortedApplications === void 0 ? void 0 : sortedApplications.length) > 0 ? isMobile ? sortedApplications.map((application, index) => /*#__PURE__*/React.createElement("div", {
|
|
7931
8031
|
key: index
|
|
7932
8032
|
}, /*#__PURE__*/React.createElement(WSApplication, {
|
|
7933
8033
|
application: application
|
|
7934
|
-
})))
|
|
8034
|
+
}))) : /*#__PURE__*/React.createElement(Table, {
|
|
8035
|
+
t: t,
|
|
8036
|
+
data: sortedApplications.slice(pageOffset, pageOffset + pageSize),
|
|
8037
|
+
totalRecords: sortedApplications.length,
|
|
8038
|
+
columns: columns,
|
|
8039
|
+
onPageSizeChange: e => setPageSize(Number(e.target.value)),
|
|
8040
|
+
currentPage: Math.floor(pageOffset / pageSize),
|
|
8041
|
+
onNextPage: () => setPageOffset(pageOffset + pageSize),
|
|
8042
|
+
onPrevPage: () => setPageOffset(pageOffset - pageSize),
|
|
8043
|
+
pageSizeLimit: pageSize,
|
|
8044
|
+
disableSort: true
|
|
8045
|
+
}) : /*#__PURE__*/React.createElement("p", {
|
|
7935
8046
|
style: {
|
|
7936
8047
|
marginLeft: "16px",
|
|
7937
8048
|
marginTop: "16px"
|
|
@@ -8341,7 +8452,7 @@ const getWSAcknowledgementData$1 = function (newApplication, property, tenantInf
|
|
|
8341
8452
|
};
|
|
8342
8453
|
|
|
8343
8454
|
const WSResponse = props => {
|
|
8344
|
-
var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2;
|
|
8455
|
+
var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2, _waterApplicationData8, _waterApplicationData9, _waterApplicationData0, _waterApplicationData1, _waterApplicationData10, _waterApplicationData11, _waterApplicationData12, _waterApplicationData13, _waterApplicationData14, _waterApplicationData15, _waterApplicationData16, _waterApplicationData17, _waterApplicationData18, _waterApplicationData19, _waterApplicationData20, _waterApplicationData21, _waterApplicationData22, _waterApplicationData23, _sewerageApplicationD8, _sewerageApplicationD9, _sewerageApplicationD0, _sewerageApplicationD1, _sewerageApplicationD10, _sewerageApplicationD11, _sewerageApplicationD12, _sewerageApplicationD13, _sewerageApplicationD14, _sewerageApplicationD15, _sewerageApplicationD16, _sewerageApplicationD17, _sewerageApplicationD18, _sewerageApplicationD19, _sewerageApplicationD20, _sewerageApplicationD21, _sewerageApplicationD22, _sewerageApplicationD23;
|
|
8345
8456
|
const _useTranslation = useTranslation(),
|
|
8346
8457
|
t = _useTranslation.t;
|
|
8347
8458
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
@@ -8493,7 +8604,30 @@ const WSResponse = props => {
|
|
|
8493
8604
|
}, /*#__PURE__*/React.createElement("path", {
|
|
8494
8605
|
d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
|
|
8495
8606
|
fill: "#a82227"
|
|
8496
|
-
})), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.createElement(
|
|
8607
|
+
})), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
|
|
8608
|
+
to: {
|
|
8609
|
+
pathname: "/digit-ui/citizen/payment/my-bills/" + (waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData9 = waterApplicationData.applicationData) !== null && _waterApplicationData9 !== void 0 && (_waterApplicationData0 = _waterApplicationData9.applicationNo) !== null && _waterApplicationData0 !== void 0 && _waterApplicationData0.includes("SW") ? waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData11 = waterApplicationData.applicationData) !== null && _waterApplicationData11 !== void 0 && (_waterApplicationData12 = _waterApplicationData11.applicationNo) !== null && _waterApplicationData12 !== void 0 && _waterApplicationData12.includes("DC") ? "WS" : "WS.ONE_TIME_FEE") + "/" + (waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData13 = waterApplicationData.applicationData) !== null && _waterApplicationData13 !== void 0 && (_waterApplicationData14 = _waterApplicationData13.applicationNo) !== null && _waterApplicationData14 !== void 0 && _waterApplicationData14.includes("DC") ? stringReplaceAll(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData15 = waterApplicationData.applicationData) === null || _waterApplicationData15 === void 0 ? void 0 : _waterApplicationData15.connectionNo, "/", "+") : stringReplaceAll(waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData16 = waterApplicationData.applicationData) === null || _waterApplicationData16 === void 0 ? void 0 : _waterApplicationData16.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData17 = waterApplicationData.applicationData) === null || _waterApplicationData17 === void 0 ? void 0 : _waterApplicationData17.tenantId) + "&ConsumerName=" + ((waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData18 = waterApplicationData.applicationData) === null || _waterApplicationData18 === void 0 ? void 0 : (_waterApplicationData19 = _waterApplicationData18.connectionHolders) === null || _waterApplicationData19 === void 0 ? void 0 : _waterApplicationData19.map(owner => owner.name).join(",")) || (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData20 = waterApplicationData.propertyDetails) === null || _waterApplicationData20 === void 0 ? void 0 : (_waterApplicationData21 = _waterApplicationData20.owners) === null || _waterApplicationData21 === void 0 ? void 0 : _waterApplicationData21.map(owner => owner.name).join(","))) + "&isDisconnectFlow=" + (waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData22 = waterApplicationData.applicationData) !== null && _waterApplicationData22 !== void 0 && (_waterApplicationData23 = _waterApplicationData22.applicationNo) !== null && _waterApplicationData23 !== void 0 && _waterApplicationData23.includes("DC") ? true : false),
|
|
8610
|
+
state: {}
|
|
8611
|
+
}
|
|
8612
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8613
|
+
style: {
|
|
8614
|
+
marginTop: "10px"
|
|
8615
|
+
}
|
|
8616
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
8617
|
+
label: t("MAKE_PAYMENT")
|
|
8618
|
+
}))) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
|
|
8619
|
+
to: {
|
|
8620
|
+
pathname: "/digit-ui/citizen/payment/my-bills/" + (sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD9 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD9 !== void 0 && (_sewerageApplicationD0 = _sewerageApplicationD9.applicationNo) !== null && _sewerageApplicationD0 !== void 0 && _sewerageApplicationD0.includes("SW") ? sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD11 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD11 !== void 0 && (_sewerageApplicationD12 = _sewerageApplicationD11.applicationNo) !== null && _sewerageApplicationD12 !== void 0 && _sewerageApplicationD12.includes("DC") ? "WS" : "WS.ONE_TIME_FEE") + "/" + (sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD13 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD13 !== void 0 && (_sewerageApplicationD14 = _sewerageApplicationD13.applicationNo) !== null && _sewerageApplicationD14 !== void 0 && _sewerageApplicationD14.includes("DC") ? stringReplaceAll(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD15 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD15 === void 0 ? void 0 : _sewerageApplicationD15.connectionNo, "/", "+") : stringReplaceAll(sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD16 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD16 === void 0 ? void 0 : _sewerageApplicationD16.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD17 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD17 === void 0 ? void 0 : _sewerageApplicationD17.tenantId) + "&ConsumerName=" + ((sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD18 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD18 === void 0 ? void 0 : (_sewerageApplicationD19 = _sewerageApplicationD18.connectionHolders) === null || _sewerageApplicationD19 === void 0 ? void 0 : _sewerageApplicationD19.map(owner => owner.name).join(",")) || (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD20 = sewerageApplicationData.propertyDetails) === null || _sewerageApplicationD20 === void 0 ? void 0 : (_sewerageApplicationD21 = _sewerageApplicationD20.owners) === null || _sewerageApplicationD21 === void 0 ? void 0 : _sewerageApplicationD21.map(owner => owner.name).join(","))) + "&isDisconnectFlow=" + (sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD22 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD22 !== void 0 && (_sewerageApplicationD23 = _sewerageApplicationD22.applicationNo) !== null && _sewerageApplicationD23 !== void 0 && _sewerageApplicationD23.includes("DC") ? true : false),
|
|
8621
|
+
state: {}
|
|
8622
|
+
}
|
|
8623
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8624
|
+
style: {
|
|
8625
|
+
marginTop: "10px",
|
|
8626
|
+
marginLeft: "10px"
|
|
8627
|
+
}
|
|
8628
|
+
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
8629
|
+
label: t("MAKE_PAYMENT")
|
|
8630
|
+
}))) : null), /*#__PURE__*/React.createElement(ActionBar, {
|
|
8497
8631
|
style: {
|
|
8498
8632
|
display: "flex",
|
|
8499
8633
|
justifyContent: "flex-end",
|
|
@@ -8509,7 +8643,7 @@ const WSResponse = props => {
|
|
|
8509
8643
|
};
|
|
8510
8644
|
|
|
8511
8645
|
const App = _ref => {
|
|
8512
|
-
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg;
|
|
8646
|
+
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _user$info, _user$info$userName, _user$info2, _user$info3, _wsData$WaterConnecti, _wsData$WaterConnecti2, _swData$SewerageConne, _swData$SewerageConne2, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg;
|
|
8513
8647
|
let path = _ref.path;
|
|
8514
8648
|
const location = useLocation();
|
|
8515
8649
|
const _useTranslation = useTranslation(),
|
|
@@ -8519,6 +8653,40 @@ const App = _ref => {
|
|
|
8519
8653
|
let isAcknowledgement = window.location.href.includes("/acknowledgement") || window.location.href.includes("/disconnect-acknowledge");
|
|
8520
8654
|
const WSDisconnectAcknowledgement = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSDisconnectAcknowledgement");
|
|
8521
8655
|
const WSRestorationAcknowledgement = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WSRestorationAcknowledgement");
|
|
8656
|
+
const user = window.Digit.UserService.getUser();
|
|
8657
|
+
const tenantId = "dl.djb";
|
|
8658
|
+
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;
|
|
8659
|
+
const isMyApps = location.pathname.includes("/my-applications");
|
|
8660
|
+
const _window$Digit$Hooks$w = window.Digit.Hooks.ws.useMyApplicationSearch({
|
|
8661
|
+
filters: {
|
|
8662
|
+
tenantId,
|
|
8663
|
+
mobileNumber: userMobileNumber
|
|
8664
|
+
}
|
|
8665
|
+
}, {
|
|
8666
|
+
filters: {
|
|
8667
|
+
tenantId,
|
|
8668
|
+
mobileNumber: userMobileNumber
|
|
8669
|
+
},
|
|
8670
|
+
enabled: isMyApps
|
|
8671
|
+
}),
|
|
8672
|
+
wsData = _window$Digit$Hooks$w.data;
|
|
8673
|
+
const _window$Digit$Hooks$w2 = window.Digit.Hooks.ws.useMyApplicationSearch({
|
|
8674
|
+
filters: {
|
|
8675
|
+
tenantId,
|
|
8676
|
+
mobileNumber: userMobileNumber
|
|
8677
|
+
},
|
|
8678
|
+
BusinessService: "SW"
|
|
8679
|
+
}, {
|
|
8680
|
+
filters: {
|
|
8681
|
+
tenantId,
|
|
8682
|
+
mobileNumber: userMobileNumber
|
|
8683
|
+
},
|
|
8684
|
+
enabled: isMyApps
|
|
8685
|
+
}),
|
|
8686
|
+
swData = _window$Digit$Hooks$w2.data;
|
|
8687
|
+
let wsCount = (wsData === null || wsData === void 0 ? void 0 : (_wsData$WaterConnecti = wsData.WaterConnection) === null || _wsData$WaterConnecti === void 0 ? void 0 : (_wsData$WaterConnecti2 = _wsData$WaterConnecti.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.applicationType) !== "MODIFY_WATER_CONNECTION")) === null || _wsData$WaterConnecti2 === void 0 ? void 0 : _wsData$WaterConnecti2.length) || 0;
|
|
8688
|
+
let swCount = (swData === null || swData === void 0 ? void 0 : (_swData$SewerageConne = swData.SewerageConnections) === null || _swData$SewerageConne === void 0 ? void 0 : (_swData$SewerageConne2 = _swData$SewerageConne.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.applicationType) !== "MODIFY_SEWERAGE_CONNECTION")) === null || _swData$SewerageConne2 === void 0 ? void 0 : _swData$SewerageConne2.length) || 0;
|
|
8689
|
+
let totalAppsCount = wsCount + swCount;
|
|
8522
8690
|
const crumbs = [{
|
|
8523
8691
|
path: "/digit-ui/employee",
|
|
8524
8692
|
show: true,
|
|
@@ -8536,11 +8704,11 @@ const App = _ref => {
|
|
|
8536
8704
|
show: location.pathname.includes("/search")
|
|
8537
8705
|
}, {
|
|
8538
8706
|
path: "/digit-ui/citizen/ws/my-applications",
|
|
8539
|
-
label: t("CS_HOME_MY_APPLICATIONS"),
|
|
8707
|
+
label: t("CS_HOME_MY_APPLICATIONS") + " " + (totalAppsCount ? "(" + totalAppsCount + ")" : ""),
|
|
8540
8708
|
show: location.pathname.includes("/my-applications")
|
|
8541
8709
|
}, {
|
|
8542
8710
|
path: "/digit-ui/citizen/ws/my-connections",
|
|
8543
|
-
label: t("
|
|
8711
|
+
label: t("WS_MYCONNECTIONS_HEADER"),
|
|
8544
8712
|
show: location.pathname.includes("/my-connections")
|
|
8545
8713
|
}, {
|
|
8546
8714
|
path: "/digit-ui/citizen/ws/my-bills",
|
|
@@ -8554,6 +8722,14 @@ const App = _ref => {
|
|
|
8554
8722
|
path: "/digit-ui/citizen/ws/old-application",
|
|
8555
8723
|
label: t("WS_COMMON_APPL_NEW_CONNECTION"),
|
|
8556
8724
|
show: location.pathname.includes("/old-application")
|
|
8725
|
+
}, {
|
|
8726
|
+
path: location.pathname,
|
|
8727
|
+
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
8728
|
+
show: location.pathname.includes("/connection/application")
|
|
8729
|
+
}, {
|
|
8730
|
+
path: location.pathname,
|
|
8731
|
+
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
8732
|
+
show: location.pathname.includes("ws-response")
|
|
8557
8733
|
}];
|
|
8558
8734
|
const getDynamicBreadcrumbs = () => {
|
|
8559
8735
|
return crumbs.filter(crumb => crumb.show);
|
|
@@ -8579,7 +8755,7 @@ const App = _ref => {
|
|
|
8579
8755
|
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
8580
8756
|
leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
|
|
8581
8757
|
className: "icon"
|
|
8582
|
-
}), "
|
|
8758
|
+
}), t("CS_COMMON_BACK")),
|
|
8583
8759
|
onLeftClick: () => window.history.back(),
|
|
8584
8760
|
breadcrumbs: getDynamicBreadcrumbs()
|
|
8585
8761
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -10253,38 +10429,6 @@ const WSDocsRequired = _ref => {
|
|
|
10253
10429
|
}))));
|
|
10254
10430
|
};
|
|
10255
10431
|
|
|
10256
|
-
// A type of promise-like that resolves synchronously and supports only one observer
|
|
10257
|
-
|
|
10258
|
-
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
10259
|
-
|
|
10260
|
-
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
10261
|
-
|
|
10262
|
-
// Asynchronously call a function and send errors to recovery continuation
|
|
10263
|
-
function _catch(body, recover) {
|
|
10264
|
-
try {
|
|
10265
|
-
var result = body();
|
|
10266
|
-
} catch(e) {
|
|
10267
|
-
return recover(e);
|
|
10268
|
-
}
|
|
10269
|
-
if (result && result.then) {
|
|
10270
|
-
return result.then(void 0, recover);
|
|
10271
|
-
}
|
|
10272
|
-
return result;
|
|
10273
|
-
}
|
|
10274
|
-
|
|
10275
|
-
// Asynchronously await a promise and pass the result to a finally continuation
|
|
10276
|
-
function _finallyRethrows(body, finalizer) {
|
|
10277
|
-
try {
|
|
10278
|
-
var result = body();
|
|
10279
|
-
} catch (e) {
|
|
10280
|
-
return finalizer(true, e);
|
|
10281
|
-
}
|
|
10282
|
-
if (result && result.then) {
|
|
10283
|
-
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
10284
|
-
}
|
|
10285
|
-
return finalizer(false, result);
|
|
10286
|
-
}
|
|
10287
|
-
|
|
10288
10432
|
const WSSewerageConnectionDetails = _ref => {
|
|
10289
10433
|
var _formData$sewerageCon, _formData$sewerageCon2;
|
|
10290
10434
|
let t = _ref.t,
|
|
@@ -10718,6 +10862,31 @@ const WSActivationDetails = _ref => {
|
|
|
10718
10862
|
}))));
|
|
10719
10863
|
};
|
|
10720
10864
|
|
|
10865
|
+
const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
10866
|
+
const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
10867
|
+
function _catch(body, recover) {
|
|
10868
|
+
try {
|
|
10869
|
+
var result = body();
|
|
10870
|
+
} catch (e) {
|
|
10871
|
+
return recover(e);
|
|
10872
|
+
}
|
|
10873
|
+
if (result && result.then) {
|
|
10874
|
+
return result.then(void 0, recover);
|
|
10875
|
+
}
|
|
10876
|
+
return result;
|
|
10877
|
+
}
|
|
10878
|
+
function _finallyRethrows(body, finalizer) {
|
|
10879
|
+
try {
|
|
10880
|
+
var result = body();
|
|
10881
|
+
} catch (e) {
|
|
10882
|
+
return finalizer(true, e);
|
|
10883
|
+
}
|
|
10884
|
+
if (result && result.then) {
|
|
10885
|
+
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
10886
|
+
}
|
|
10887
|
+
return finalizer(false, result);
|
|
10888
|
+
}
|
|
10889
|
+
|
|
10721
10890
|
const createConnectionDetails = () => ({
|
|
10722
10891
|
water: true,
|
|
10723
10892
|
sewerage: false,
|
|
@@ -20960,14 +21129,6 @@ const useInboxTableConfig = _ref => {
|
|
|
20960
21129
|
}];
|
|
20961
21130
|
});
|
|
20962
21131
|
return {
|
|
20963
|
-
getCellProps: cellInfo => {
|
|
20964
|
-
return {
|
|
20965
|
-
style: {
|
|
20966
|
-
padding: "20px 18px",
|
|
20967
|
-
fontSize: "16px"
|
|
20968
|
-
}
|
|
20969
|
-
};
|
|
20970
|
-
},
|
|
20971
21132
|
disableSort: false,
|
|
20972
21133
|
autoSort: false,
|
|
20973
21134
|
manualPagination: true,
|
|
@@ -21293,12 +21454,6 @@ const WSInbox = _ref => {
|
|
|
21293
21454
|
});
|
|
21294
21455
|
});
|
|
21295
21456
|
}, [statuses]);
|
|
21296
|
-
let links = [{
|
|
21297
|
-
text: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
21298
|
-
link: "/digit-ui/employee/ws/create-application",
|
|
21299
|
-
roles: ["WS_CEMP", "SW_CEMP"]
|
|
21300
|
-
}];
|
|
21301
|
-
links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
|
|
21302
21457
|
const PropsForInboxLinks = {
|
|
21303
21458
|
logoIcon: /*#__PURE__*/React.createElement(DropIcon, null),
|
|
21304
21459
|
headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW"
|
|
@@ -24213,7 +24368,7 @@ const newConfig = [{
|
|
|
24213
24368
|
}
|
|
24214
24369
|
}, {
|
|
24215
24370
|
route: "property-location-details",
|
|
24216
|
-
component: "
|
|
24371
|
+
component: "WSPropertyLocationDetails",
|
|
24217
24372
|
key: "propertyLocationDetails",
|
|
24218
24373
|
nextStep: "property-water-details",
|
|
24219
24374
|
hideInEmployee: true,
|
|
@@ -25176,385 +25331,394 @@ const config = [{
|
|
|
25176
25331
|
}]
|
|
25177
25332
|
}];
|
|
25178
25333
|
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
|
|
25189
|
-
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
|
|
25206
|
-
|
|
25207
|
-
|
|
25208
|
-
|
|
25209
|
-
|
|
25210
|
-
|
|
25211
|
-
isContextProvider: isContextProvider,
|
|
25212
|
-
isElement: isElement,
|
|
25213
|
-
isForwardRef: isForwardRef,
|
|
25214
|
-
isFragment: isFragment,
|
|
25215
|
-
isLazy: isLazy,
|
|
25216
|
-
isMemo: isMemo,
|
|
25217
|
-
isPortal: isPortal,
|
|
25218
|
-
isProfiler: isProfiler,
|
|
25219
|
-
isStrictMode: isStrictMode,
|
|
25220
|
-
isSuspense: isSuspense,
|
|
25221
|
-
isValidElementType: isValidElementType,
|
|
25222
|
-
typeOf: typeOf
|
|
25223
|
-
};
|
|
25224
|
-
|
|
25225
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
25226
|
-
|
|
25227
|
-
|
|
25228
|
-
|
|
25229
|
-
if (process.env.NODE_ENV !== "production") {
|
|
25230
|
-
(function() {
|
|
25231
|
-
|
|
25232
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
25233
|
-
// nor polyfill, then a plain number is used for performance.
|
|
25234
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
25235
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25236
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
25237
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
25238
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
25239
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
25240
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
25241
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
25242
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
25243
|
-
|
|
25244
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
25245
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
25246
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
25247
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
25248
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
25249
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
25250
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
25251
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
25252
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
25253
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
25254
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
25255
|
-
|
|
25256
|
-
function isValidElementType(type) {
|
|
25257
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
25258
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
25259
|
-
}
|
|
25260
|
-
|
|
25261
|
-
function typeOf(object) {
|
|
25262
|
-
if (typeof object === 'object' && object !== null) {
|
|
25263
|
-
var $$typeof = object.$$typeof;
|
|
25264
|
-
|
|
25265
|
-
switch ($$typeof) {
|
|
25266
|
-
case REACT_ELEMENT_TYPE:
|
|
25267
|
-
var type = object.type;
|
|
25268
|
-
|
|
25269
|
-
switch (type) {
|
|
25270
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
25271
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
25272
|
-
case REACT_FRAGMENT_TYPE:
|
|
25273
|
-
case REACT_PROFILER_TYPE:
|
|
25274
|
-
case REACT_STRICT_MODE_TYPE:
|
|
25275
|
-
case REACT_SUSPENSE_TYPE:
|
|
25276
|
-
return type;
|
|
25277
|
-
|
|
25334
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
|
25335
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
25336
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
|
25337
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
|
25338
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
25339
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
|
25340
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
|
25341
|
+
k = b ? Symbol.for("react.context") : 60110,
|
|
25342
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
25343
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
25344
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
25345
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
|
25346
|
+
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
25347
|
+
r = b ? Symbol.for("react.memo") : 60115,
|
|
25348
|
+
t = b ? Symbol.for("react.lazy") : 60116,
|
|
25349
|
+
v = b ? Symbol.for("react.block") : 60121,
|
|
25350
|
+
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
25351
|
+
x = b ? Symbol.for("react.responder") : 60118,
|
|
25352
|
+
y = b ? Symbol.for("react.scope") : 60119;
|
|
25353
|
+
function z(a) {
|
|
25354
|
+
if ("object" === typeof a && null !== a) {
|
|
25355
|
+
var u = a.$$typeof;
|
|
25356
|
+
switch (u) {
|
|
25357
|
+
case c:
|
|
25358
|
+
switch (a = a.type, a) {
|
|
25359
|
+
case l:
|
|
25360
|
+
case m:
|
|
25361
|
+
case e:
|
|
25362
|
+
case g:
|
|
25363
|
+
case f:
|
|
25364
|
+
case p:
|
|
25365
|
+
return a;
|
|
25278
25366
|
default:
|
|
25279
|
-
|
|
25280
|
-
|
|
25281
|
-
|
|
25282
|
-
case
|
|
25283
|
-
case
|
|
25284
|
-
case
|
|
25285
|
-
|
|
25286
|
-
case REACT_PROVIDER_TYPE:
|
|
25287
|
-
return $$typeofType;
|
|
25288
|
-
|
|
25367
|
+
switch (a = a && a.$$typeof, a) {
|
|
25368
|
+
case k:
|
|
25369
|
+
case n:
|
|
25370
|
+
case t:
|
|
25371
|
+
case r:
|
|
25372
|
+
case h:
|
|
25373
|
+
return a;
|
|
25289
25374
|
default:
|
|
25290
|
-
return
|
|
25375
|
+
return u;
|
|
25291
25376
|
}
|
|
25292
|
-
|
|
25293
25377
|
}
|
|
25294
|
-
|
|
25295
|
-
|
|
25296
|
-
return $$typeof;
|
|
25378
|
+
case d:
|
|
25379
|
+
return u;
|
|
25297
25380
|
}
|
|
25298
25381
|
}
|
|
25299
|
-
|
|
25300
|
-
return undefined;
|
|
25301
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
25302
|
-
|
|
25303
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
25304
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
25305
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
25306
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
25307
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
25308
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
25309
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
25310
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
25311
|
-
var Memo = REACT_MEMO_TYPE;
|
|
25312
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
25313
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
25314
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
25315
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
25316
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
25317
|
-
|
|
25318
|
-
function isAsyncMode(object) {
|
|
25319
|
-
{
|
|
25320
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
25321
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
25322
|
-
|
|
25323
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
25324
|
-
}
|
|
25325
|
-
}
|
|
25326
|
-
|
|
25327
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
25328
|
-
}
|
|
25329
|
-
function isConcurrentMode(object) {
|
|
25330
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
25331
|
-
}
|
|
25332
|
-
function isContextConsumer(object) {
|
|
25333
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
25334
|
-
}
|
|
25335
|
-
function isContextProvider(object) {
|
|
25336
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
25337
|
-
}
|
|
25338
|
-
function isElement(object) {
|
|
25339
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
25340
|
-
}
|
|
25341
|
-
function isForwardRef(object) {
|
|
25342
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
25343
25382
|
}
|
|
25344
|
-
function
|
|
25345
|
-
return
|
|
25346
|
-
}
|
|
25347
|
-
function isLazy(object) {
|
|
25348
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
25349
|
-
}
|
|
25350
|
-
function isMemo(object) {
|
|
25351
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
25352
|
-
}
|
|
25353
|
-
function isPortal(object) {
|
|
25354
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
25355
|
-
}
|
|
25356
|
-
function isProfiler(object) {
|
|
25357
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
25358
|
-
}
|
|
25359
|
-
function isStrictMode(object) {
|
|
25360
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
25361
|
-
}
|
|
25362
|
-
function isSuspense(object) {
|
|
25363
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
25383
|
+
function A(a) {
|
|
25384
|
+
return z(a) === m;
|
|
25364
25385
|
}
|
|
25386
|
+
var AsyncMode = l;
|
|
25387
|
+
var ConcurrentMode = m;
|
|
25388
|
+
var ContextConsumer = k;
|
|
25389
|
+
var ContextProvider = h;
|
|
25390
|
+
var Element = c;
|
|
25391
|
+
var ForwardRef = n;
|
|
25392
|
+
var Fragment = e;
|
|
25393
|
+
var Lazy = t;
|
|
25394
|
+
var Memo = r;
|
|
25395
|
+
var Portal = d;
|
|
25396
|
+
var Profiler = g;
|
|
25397
|
+
var StrictMode = f;
|
|
25398
|
+
var Suspense = p;
|
|
25399
|
+
var isAsyncMode = function (a) {
|
|
25400
|
+
return A(a) || z(a) === l;
|
|
25401
|
+
};
|
|
25402
|
+
var isConcurrentMode = A;
|
|
25403
|
+
var isContextConsumer = function (a) {
|
|
25404
|
+
return z(a) === k;
|
|
25405
|
+
};
|
|
25406
|
+
var isContextProvider = function (a) {
|
|
25407
|
+
return z(a) === h;
|
|
25408
|
+
};
|
|
25409
|
+
var isElement = function (a) {
|
|
25410
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
25411
|
+
};
|
|
25412
|
+
var isForwardRef = function (a) {
|
|
25413
|
+
return z(a) === n;
|
|
25414
|
+
};
|
|
25415
|
+
var isFragment = function (a) {
|
|
25416
|
+
return z(a) === e;
|
|
25417
|
+
};
|
|
25418
|
+
var isLazy = function (a) {
|
|
25419
|
+
return z(a) === t;
|
|
25420
|
+
};
|
|
25421
|
+
var isMemo = function (a) {
|
|
25422
|
+
return z(a) === r;
|
|
25423
|
+
};
|
|
25424
|
+
var isPortal = function (a) {
|
|
25425
|
+
return z(a) === d;
|
|
25426
|
+
};
|
|
25427
|
+
var isProfiler = function (a) {
|
|
25428
|
+
return z(a) === g;
|
|
25429
|
+
};
|
|
25430
|
+
var isStrictMode = function (a) {
|
|
25431
|
+
return z(a) === f;
|
|
25432
|
+
};
|
|
25433
|
+
var isSuspense = function (a) {
|
|
25434
|
+
return z(a) === p;
|
|
25435
|
+
};
|
|
25436
|
+
var isValidElementType = function (a) {
|
|
25437
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
25438
|
+
};
|
|
25439
|
+
var typeOf = z;
|
|
25440
|
+
var reactIs_production_min = {
|
|
25441
|
+
AsyncMode: AsyncMode,
|
|
25442
|
+
ConcurrentMode: ConcurrentMode,
|
|
25443
|
+
ContextConsumer: ContextConsumer,
|
|
25444
|
+
ContextProvider: ContextProvider,
|
|
25445
|
+
Element: Element,
|
|
25446
|
+
ForwardRef: ForwardRef,
|
|
25447
|
+
Fragment: Fragment,
|
|
25448
|
+
Lazy: Lazy,
|
|
25449
|
+
Memo: Memo,
|
|
25450
|
+
Portal: Portal,
|
|
25451
|
+
Profiler: Profiler,
|
|
25452
|
+
StrictMode: StrictMode,
|
|
25453
|
+
Suspense: Suspense,
|
|
25454
|
+
isAsyncMode: isAsyncMode,
|
|
25455
|
+
isConcurrentMode: isConcurrentMode,
|
|
25456
|
+
isContextConsumer: isContextConsumer,
|
|
25457
|
+
isContextProvider: isContextProvider,
|
|
25458
|
+
isElement: isElement,
|
|
25459
|
+
isForwardRef: isForwardRef,
|
|
25460
|
+
isFragment: isFragment,
|
|
25461
|
+
isLazy: isLazy,
|
|
25462
|
+
isMemo: isMemo,
|
|
25463
|
+
isPortal: isPortal,
|
|
25464
|
+
isProfiler: isProfiler,
|
|
25465
|
+
isStrictMode: isStrictMode,
|
|
25466
|
+
isSuspense: isSuspense,
|
|
25467
|
+
isValidElementType: isValidElementType,
|
|
25468
|
+
typeOf: typeOf
|
|
25469
|
+
};
|
|
25365
25470
|
|
|
25366
|
-
|
|
25367
|
-
|
|
25368
|
-
|
|
25369
|
-
|
|
25370
|
-
|
|
25371
|
-
|
|
25372
|
-
|
|
25373
|
-
|
|
25374
|
-
|
|
25375
|
-
|
|
25376
|
-
|
|
25377
|
-
|
|
25378
|
-
|
|
25379
|
-
|
|
25380
|
-
|
|
25381
|
-
|
|
25382
|
-
|
|
25383
|
-
|
|
25384
|
-
|
|
25385
|
-
|
|
25386
|
-
|
|
25387
|
-
|
|
25388
|
-
|
|
25389
|
-
|
|
25390
|
-
|
|
25391
|
-
|
|
25392
|
-
|
|
25393
|
-
|
|
25394
|
-
|
|
25395
|
-
|
|
25471
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
25472
|
+
|
|
25473
|
+
if (process.env.NODE_ENV !== "production") {
|
|
25474
|
+
(function () {
|
|
25475
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
25476
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25477
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
25478
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
25479
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
25480
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
25481
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
25482
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
25483
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
25484
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
25485
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
25486
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
25487
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
25488
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
25489
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
25490
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
25491
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
25492
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
25493
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
25494
|
+
function isValidElementType(type) {
|
|
25495
|
+
return typeof type === 'string' || typeof type === 'function' || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
25496
|
+
}
|
|
25497
|
+
function typeOf(object) {
|
|
25498
|
+
if (typeof object === 'object' && object !== null) {
|
|
25499
|
+
var $$typeof = object.$$typeof;
|
|
25500
|
+
switch ($$typeof) {
|
|
25501
|
+
case REACT_ELEMENT_TYPE:
|
|
25502
|
+
var type = object.type;
|
|
25503
|
+
switch (type) {
|
|
25504
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
25505
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
25506
|
+
case REACT_FRAGMENT_TYPE:
|
|
25507
|
+
case REACT_PROFILER_TYPE:
|
|
25508
|
+
case REACT_STRICT_MODE_TYPE:
|
|
25509
|
+
case REACT_SUSPENSE_TYPE:
|
|
25510
|
+
return type;
|
|
25511
|
+
default:
|
|
25512
|
+
var $$typeofType = type && type.$$typeof;
|
|
25513
|
+
switch ($$typeofType) {
|
|
25514
|
+
case REACT_CONTEXT_TYPE:
|
|
25515
|
+
case REACT_FORWARD_REF_TYPE:
|
|
25516
|
+
case REACT_LAZY_TYPE:
|
|
25517
|
+
case REACT_MEMO_TYPE:
|
|
25518
|
+
case REACT_PROVIDER_TYPE:
|
|
25519
|
+
return $$typeofType;
|
|
25520
|
+
default:
|
|
25521
|
+
return $$typeof;
|
|
25522
|
+
}
|
|
25523
|
+
}
|
|
25524
|
+
case REACT_PORTAL_TYPE:
|
|
25525
|
+
return $$typeof;
|
|
25526
|
+
}
|
|
25527
|
+
}
|
|
25528
|
+
return undefined;
|
|
25529
|
+
}
|
|
25530
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
25531
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
25532
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
25533
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
25534
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
25535
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
25536
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
25537
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
25538
|
+
var Memo = REACT_MEMO_TYPE;
|
|
25539
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
25540
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
25541
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
25542
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
25543
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
25544
|
+
function isAsyncMode(object) {
|
|
25545
|
+
{
|
|
25546
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
25547
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
25548
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
25549
|
+
}
|
|
25550
|
+
}
|
|
25551
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
25552
|
+
}
|
|
25553
|
+
function isConcurrentMode(object) {
|
|
25554
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
25555
|
+
}
|
|
25556
|
+
function isContextConsumer(object) {
|
|
25557
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
25558
|
+
}
|
|
25559
|
+
function isContextProvider(object) {
|
|
25560
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
25561
|
+
}
|
|
25562
|
+
function isElement(object) {
|
|
25563
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
25564
|
+
}
|
|
25565
|
+
function isForwardRef(object) {
|
|
25566
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
25567
|
+
}
|
|
25568
|
+
function isFragment(object) {
|
|
25569
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
25570
|
+
}
|
|
25571
|
+
function isLazy(object) {
|
|
25572
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
25573
|
+
}
|
|
25574
|
+
function isMemo(object) {
|
|
25575
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
25576
|
+
}
|
|
25577
|
+
function isPortal(object) {
|
|
25578
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
25579
|
+
}
|
|
25580
|
+
function isProfiler(object) {
|
|
25581
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
25582
|
+
}
|
|
25583
|
+
function isStrictMode(object) {
|
|
25584
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
25585
|
+
}
|
|
25586
|
+
function isSuspense(object) {
|
|
25587
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
25588
|
+
}
|
|
25589
|
+
exports.AsyncMode = AsyncMode;
|
|
25590
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
25591
|
+
exports.ContextConsumer = ContextConsumer;
|
|
25592
|
+
exports.ContextProvider = ContextProvider;
|
|
25593
|
+
exports.Element = Element;
|
|
25594
|
+
exports.ForwardRef = ForwardRef;
|
|
25595
|
+
exports.Fragment = Fragment;
|
|
25596
|
+
exports.Lazy = Lazy;
|
|
25597
|
+
exports.Memo = Memo;
|
|
25598
|
+
exports.Portal = Portal;
|
|
25599
|
+
exports.Profiler = Profiler;
|
|
25600
|
+
exports.StrictMode = StrictMode;
|
|
25601
|
+
exports.Suspense = Suspense;
|
|
25602
|
+
exports.isAsyncMode = isAsyncMode;
|
|
25603
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
25604
|
+
exports.isContextConsumer = isContextConsumer;
|
|
25605
|
+
exports.isContextProvider = isContextProvider;
|
|
25606
|
+
exports.isElement = isElement;
|
|
25607
|
+
exports.isForwardRef = isForwardRef;
|
|
25608
|
+
exports.isFragment = isFragment;
|
|
25609
|
+
exports.isLazy = isLazy;
|
|
25610
|
+
exports.isMemo = isMemo;
|
|
25611
|
+
exports.isPortal = isPortal;
|
|
25612
|
+
exports.isProfiler = isProfiler;
|
|
25613
|
+
exports.isStrictMode = isStrictMode;
|
|
25614
|
+
exports.isSuspense = isSuspense;
|
|
25615
|
+
exports.isValidElementType = isValidElementType;
|
|
25616
|
+
exports.typeOf = typeOf;
|
|
25617
|
+
})();
|
|
25618
|
+
}
|
|
25396
25619
|
});
|
|
25397
25620
|
|
|
25398
25621
|
var reactIs = createCommonjsModule(function (module) {
|
|
25399
25622
|
|
|
25400
|
-
if (process.env.NODE_ENV === 'production') {
|
|
25401
|
-
|
|
25402
|
-
} else {
|
|
25403
|
-
|
|
25404
|
-
}
|
|
25623
|
+
if (process.env.NODE_ENV === 'production') {
|
|
25624
|
+
module.exports = reactIs_production_min;
|
|
25625
|
+
} else {
|
|
25626
|
+
module.exports = reactIs_development;
|
|
25627
|
+
}
|
|
25405
25628
|
});
|
|
25406
25629
|
|
|
25407
|
-
/*
|
|
25408
|
-
object-assign
|
|
25409
|
-
(c) Sindre Sorhus
|
|
25410
|
-
@license MIT
|
|
25411
|
-
*/
|
|
25412
|
-
/* eslint-disable no-unused-vars */
|
|
25413
25630
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
25414
25631
|
var hasOwnProperty$a = Object.prototype.hasOwnProperty;
|
|
25415
25632
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
25416
|
-
|
|
25417
25633
|
function toObject(val) {
|
|
25418
|
-
|
|
25419
|
-
|
|
25420
|
-
|
|
25421
|
-
|
|
25422
|
-
return Object(val);
|
|
25634
|
+
if (val === null || val === undefined) {
|
|
25635
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
25636
|
+
}
|
|
25637
|
+
return Object(val);
|
|
25423
25638
|
}
|
|
25424
|
-
|
|
25425
25639
|
function shouldUseNative() {
|
|
25426
|
-
|
|
25427
|
-
|
|
25428
|
-
|
|
25429
|
-
|
|
25430
|
-
|
|
25431
|
-
|
|
25432
|
-
|
|
25433
|
-
|
|
25434
|
-
|
|
25435
|
-
|
|
25436
|
-
|
|
25437
|
-
|
|
25438
|
-
|
|
25439
|
-
|
|
25440
|
-
|
|
25441
|
-
|
|
25442
|
-
|
|
25443
|
-
|
|
25444
|
-
|
|
25445
|
-
|
|
25446
|
-
|
|
25447
|
-
|
|
25448
|
-
|
|
25449
|
-
|
|
25450
|
-
|
|
25451
|
-
|
|
25452
|
-
|
|
25453
|
-
|
|
25454
|
-
|
|
25455
|
-
|
|
25456
|
-
});
|
|
25457
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
25458
|
-
'abcdefghijklmnopqrst') {
|
|
25459
|
-
return false;
|
|
25460
|
-
}
|
|
25461
|
-
|
|
25462
|
-
return true;
|
|
25463
|
-
} catch (err) {
|
|
25464
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
25465
|
-
return false;
|
|
25466
|
-
}
|
|
25640
|
+
try {
|
|
25641
|
+
if (!Object.assign) {
|
|
25642
|
+
return false;
|
|
25643
|
+
}
|
|
25644
|
+
var test1 = new String('abc');
|
|
25645
|
+
test1[5] = 'de';
|
|
25646
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
25647
|
+
return false;
|
|
25648
|
+
}
|
|
25649
|
+
var test2 = {};
|
|
25650
|
+
for (var i = 0; i < 10; i++) {
|
|
25651
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
25652
|
+
}
|
|
25653
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
25654
|
+
return test2[n];
|
|
25655
|
+
});
|
|
25656
|
+
if (order2.join('') !== '0123456789') {
|
|
25657
|
+
return false;
|
|
25658
|
+
}
|
|
25659
|
+
var test3 = {};
|
|
25660
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
25661
|
+
test3[letter] = letter;
|
|
25662
|
+
});
|
|
25663
|
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
|
25664
|
+
return false;
|
|
25665
|
+
}
|
|
25666
|
+
return true;
|
|
25667
|
+
} catch (err) {
|
|
25668
|
+
return false;
|
|
25669
|
+
}
|
|
25467
25670
|
}
|
|
25468
|
-
|
|
25469
25671
|
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
25470
|
-
|
|
25471
|
-
|
|
25472
|
-
|
|
25473
|
-
|
|
25474
|
-
|
|
25475
|
-
|
|
25476
|
-
|
|
25477
|
-
|
|
25478
|
-
|
|
25479
|
-
|
|
25480
|
-
|
|
25481
|
-
|
|
25482
|
-
|
|
25483
|
-
|
|
25484
|
-
|
|
25485
|
-
|
|
25486
|
-
|
|
25487
|
-
|
|
25488
|
-
|
|
25489
|
-
|
|
25490
|
-
}
|
|
25491
|
-
}
|
|
25492
|
-
|
|
25493
|
-
return to;
|
|
25672
|
+
var from;
|
|
25673
|
+
var to = toObject(target);
|
|
25674
|
+
var symbols;
|
|
25675
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
25676
|
+
from = Object(arguments[s]);
|
|
25677
|
+
for (var key in from) {
|
|
25678
|
+
if (hasOwnProperty$a.call(from, key)) {
|
|
25679
|
+
to[key] = from[key];
|
|
25680
|
+
}
|
|
25681
|
+
}
|
|
25682
|
+
if (getOwnPropertySymbols) {
|
|
25683
|
+
symbols = getOwnPropertySymbols(from);
|
|
25684
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
25685
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
25686
|
+
to[symbols[i]] = from[symbols[i]];
|
|
25687
|
+
}
|
|
25688
|
+
}
|
|
25689
|
+
}
|
|
25690
|
+
}
|
|
25691
|
+
return to;
|
|
25494
25692
|
};
|
|
25495
25693
|
|
|
25496
|
-
/**
|
|
25497
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
25498
|
-
*
|
|
25499
|
-
* This source code is licensed under the MIT license found in the
|
|
25500
|
-
* LICENSE file in the root directory of this source tree.
|
|
25501
|
-
*/
|
|
25502
|
-
|
|
25503
25694
|
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
25504
|
-
|
|
25505
25695
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
25506
25696
|
|
|
25507
25697
|
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
25508
25698
|
|
|
25509
|
-
var printWarning = function() {};
|
|
25510
|
-
|
|
25699
|
+
var printWarning = function () {};
|
|
25511
25700
|
if (process.env.NODE_ENV !== 'production') {
|
|
25512
25701
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
25513
25702
|
var loggedTypeFailures = {};
|
|
25514
25703
|
var has$1 = has;
|
|
25515
|
-
|
|
25516
|
-
printWarning = function(text) {
|
|
25704
|
+
printWarning = function (text) {
|
|
25517
25705
|
var message = 'Warning: ' + text;
|
|
25518
25706
|
if (typeof console !== 'undefined') {
|
|
25519
25707
|
console.error(message);
|
|
25520
25708
|
}
|
|
25521
25709
|
try {
|
|
25522
|
-
// --- Welcome to debugging React ---
|
|
25523
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
25524
|
-
// to find the callsite that caused this warning to fire.
|
|
25525
25710
|
throw new Error(message);
|
|
25526
|
-
} catch (x) {
|
|
25711
|
+
} catch (x) {}
|
|
25527
25712
|
};
|
|
25528
25713
|
}
|
|
25529
|
-
|
|
25530
|
-
/**
|
|
25531
|
-
* Assert that the values match with the type specs.
|
|
25532
|
-
* Error messages are memorized and will only be shown once.
|
|
25533
|
-
*
|
|
25534
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
25535
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
25536
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
25537
|
-
* @param {string} componentName Name of the component for error messages.
|
|
25538
|
-
* @param {?Function} getStack Returns the component stack.
|
|
25539
|
-
* @private
|
|
25540
|
-
*/
|
|
25541
25714
|
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
25542
25715
|
if (process.env.NODE_ENV !== 'production') {
|
|
25543
25716
|
for (var typeSpecName in typeSpecs) {
|
|
25544
25717
|
if (has$1(typeSpecs, typeSpecName)) {
|
|
25545
25718
|
var error;
|
|
25546
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
25547
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
25548
|
-
// After these have been cleaned up, we'll let them throw.
|
|
25549
25719
|
try {
|
|
25550
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
25551
|
-
// behavior as without this statement except with a better message.
|
|
25552
25720
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
25553
|
-
var err = Error(
|
|
25554
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
25555
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
25556
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
25557
|
-
);
|
|
25721
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
25558
25722
|
err.name = 'Invariant Violation';
|
|
25559
25723
|
throw err;
|
|
25560
25724
|
}
|
|
@@ -25563,142 +25727,49 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
25563
25727
|
error = ex;
|
|
25564
25728
|
}
|
|
25565
25729
|
if (error && !(error instanceof Error)) {
|
|
25566
|
-
printWarning(
|
|
25567
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
25568
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
25569
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
25570
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
25571
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
25572
|
-
'shape all require an argument).'
|
|
25573
|
-
);
|
|
25730
|
+
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
25574
25731
|
}
|
|
25575
25732
|
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
25576
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
25577
|
-
// same error.
|
|
25578
25733
|
loggedTypeFailures[error.message] = true;
|
|
25579
|
-
|
|
25580
25734
|
var stack = getStack ? getStack() : '';
|
|
25581
|
-
|
|
25582
|
-
printWarning(
|
|
25583
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
25584
|
-
);
|
|
25735
|
+
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
25585
25736
|
}
|
|
25586
25737
|
}
|
|
25587
25738
|
}
|
|
25588
25739
|
}
|
|
25589
25740
|
}
|
|
25590
|
-
|
|
25591
|
-
/**
|
|
25592
|
-
* Resets warning cache when testing.
|
|
25593
|
-
*
|
|
25594
|
-
* @private
|
|
25595
|
-
*/
|
|
25596
|
-
checkPropTypes.resetWarningCache = function() {
|
|
25741
|
+
checkPropTypes.resetWarningCache = function () {
|
|
25597
25742
|
if (process.env.NODE_ENV !== 'production') {
|
|
25598
25743
|
loggedTypeFailures = {};
|
|
25599
25744
|
}
|
|
25600
25745
|
};
|
|
25601
|
-
|
|
25602
25746
|
var checkPropTypes_1 = checkPropTypes;
|
|
25603
25747
|
|
|
25604
|
-
var printWarning$1 = function() {};
|
|
25605
|
-
|
|
25748
|
+
var printWarning$1 = function () {};
|
|
25606
25749
|
if (process.env.NODE_ENV !== 'production') {
|
|
25607
|
-
printWarning$1 = function(text) {
|
|
25750
|
+
printWarning$1 = function (text) {
|
|
25608
25751
|
var message = 'Warning: ' + text;
|
|
25609
25752
|
if (typeof console !== 'undefined') {
|
|
25610
25753
|
console.error(message);
|
|
25611
25754
|
}
|
|
25612
25755
|
try {
|
|
25613
|
-
// --- Welcome to debugging React ---
|
|
25614
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
25615
|
-
// to find the callsite that caused this warning to fire.
|
|
25616
25756
|
throw new Error(message);
|
|
25617
25757
|
} catch (x) {}
|
|
25618
25758
|
};
|
|
25619
25759
|
}
|
|
25620
|
-
|
|
25621
25760
|
function emptyFunctionThatReturnsNull() {
|
|
25622
25761
|
return null;
|
|
25623
25762
|
}
|
|
25624
|
-
|
|
25625
|
-
var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
25626
|
-
/* global Symbol */
|
|
25763
|
+
var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
25627
25764
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
25628
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
25629
|
-
|
|
25630
|
-
/**
|
|
25631
|
-
* Returns the iterator method function contained on the iterable object.
|
|
25632
|
-
*
|
|
25633
|
-
* Be sure to invoke the function with the iterable as context:
|
|
25634
|
-
*
|
|
25635
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
25636
|
-
* if (iteratorFn) {
|
|
25637
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
25638
|
-
* ...
|
|
25639
|
-
* }
|
|
25640
|
-
*
|
|
25641
|
-
* @param {?object} maybeIterable
|
|
25642
|
-
* @return {?function}
|
|
25643
|
-
*/
|
|
25765
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
25644
25766
|
function getIteratorFn(maybeIterable) {
|
|
25645
25767
|
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
25646
25768
|
if (typeof iteratorFn === 'function') {
|
|
25647
25769
|
return iteratorFn;
|
|
25648
25770
|
}
|
|
25649
25771
|
}
|
|
25650
|
-
|
|
25651
|
-
/**
|
|
25652
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
25653
|
-
* supplied to React components. Example usage:
|
|
25654
|
-
*
|
|
25655
|
-
* var Props = require('ReactPropTypes');
|
|
25656
|
-
* var MyArticle = React.createClass({
|
|
25657
|
-
* propTypes: {
|
|
25658
|
-
* // An optional string prop named "description".
|
|
25659
|
-
* description: Props.string,
|
|
25660
|
-
*
|
|
25661
|
-
* // A required enum prop named "category".
|
|
25662
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
25663
|
-
*
|
|
25664
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
25665
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
25666
|
-
* },
|
|
25667
|
-
* render: function() { ... }
|
|
25668
|
-
* });
|
|
25669
|
-
*
|
|
25670
|
-
* A more formal specification of how these methods are used:
|
|
25671
|
-
*
|
|
25672
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
25673
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
25674
|
-
*
|
|
25675
|
-
* Each and every declaration produces a function with the same signature. This
|
|
25676
|
-
* allows the creation of custom validation functions. For example:
|
|
25677
|
-
*
|
|
25678
|
-
* var MyLink = React.createClass({
|
|
25679
|
-
* propTypes: {
|
|
25680
|
-
* // An optional string or URI prop named "href".
|
|
25681
|
-
* href: function(props, propName, componentName) {
|
|
25682
|
-
* var propValue = props[propName];
|
|
25683
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
25684
|
-
* !(propValue instanceof URI)) {
|
|
25685
|
-
* return new Error(
|
|
25686
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
25687
|
-
* componentName
|
|
25688
|
-
* );
|
|
25689
|
-
* }
|
|
25690
|
-
* }
|
|
25691
|
-
* },
|
|
25692
|
-
* render: function() {...}
|
|
25693
|
-
* });
|
|
25694
|
-
*
|
|
25695
|
-
* @internal
|
|
25696
|
-
*/
|
|
25697
|
-
|
|
25698
25772
|
var ANONYMOUS = '<<anonymous>>';
|
|
25699
|
-
|
|
25700
|
-
// Important!
|
|
25701
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
25702
25773
|
var ReactPropTypes = {
|
|
25703
25774
|
array: createPrimitiveTypeChecker('array'),
|
|
25704
25775
|
bigint: createPrimitiveTypeChecker('bigint'),
|
|
@@ -25708,7 +25779,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25708
25779
|
object: createPrimitiveTypeChecker('object'),
|
|
25709
25780
|
string: createPrimitiveTypeChecker('string'),
|
|
25710
25781
|
symbol: createPrimitiveTypeChecker('symbol'),
|
|
25711
|
-
|
|
25712
25782
|
any: createAnyTypeChecker(),
|
|
25713
25783
|
arrayOf: createArrayOfTypeChecker,
|
|
25714
25784
|
element: createElementTypeChecker(),
|
|
@@ -25719,42 +25789,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25719
25789
|
oneOf: createEnumTypeChecker,
|
|
25720
25790
|
oneOfType: createUnionTypeChecker,
|
|
25721
25791
|
shape: createShapeTypeChecker,
|
|
25722
|
-
exact: createStrictShapeTypeChecker
|
|
25792
|
+
exact: createStrictShapeTypeChecker
|
|
25723
25793
|
};
|
|
25724
|
-
|
|
25725
|
-
/**
|
|
25726
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
25727
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
25728
|
-
*/
|
|
25729
|
-
/*eslint-disable no-self-compare*/
|
|
25730
25794
|
function is(x, y) {
|
|
25731
|
-
// SameValue algorithm
|
|
25732
25795
|
if (x === y) {
|
|
25733
|
-
// Steps 1-5, 7-10
|
|
25734
|
-
// Steps 6.b-6.e: +0 != -0
|
|
25735
25796
|
return x !== 0 || 1 / x === 1 / y;
|
|
25736
25797
|
} else {
|
|
25737
|
-
// Step 6.a: NaN == NaN
|
|
25738
25798
|
return x !== x && y !== y;
|
|
25739
25799
|
}
|
|
25740
25800
|
}
|
|
25741
|
-
/*eslint-enable no-self-compare*/
|
|
25742
|
-
|
|
25743
|
-
/**
|
|
25744
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
25745
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
25746
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
25747
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
25748
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
25749
|
-
*/
|
|
25750
25801
|
function PropTypeError(message, data) {
|
|
25751
25802
|
this.message = message;
|
|
25752
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
25803
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
25753
25804
|
this.stack = '';
|
|
25754
25805
|
}
|
|
25755
|
-
// Make `instanceof Error` still work for returned errors.
|
|
25756
25806
|
PropTypeError.prototype = Error.prototype;
|
|
25757
|
-
|
|
25758
25807
|
function createChainableTypeChecker(validate) {
|
|
25759
25808
|
if (process.env.NODE_ENV !== 'production') {
|
|
25760
25809
|
var manualPropTypeCallCache = {};
|
|
@@ -25763,32 +25812,15 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25763
25812
|
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
25764
25813
|
componentName = componentName || ANONYMOUS;
|
|
25765
25814
|
propFullName = propFullName || propName;
|
|
25766
|
-
|
|
25767
25815
|
if (secret !== ReactPropTypesSecret_1) {
|
|
25768
25816
|
if (throwOnDirectAccess) {
|
|
25769
|
-
|
|
25770
|
-
var err = new Error(
|
|
25771
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
25772
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
25773
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
25774
|
-
);
|
|
25817
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
25775
25818
|
err.name = 'Invariant Violation';
|
|
25776
25819
|
throw err;
|
|
25777
25820
|
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
25778
|
-
// Old behavior for people using React.PropTypes
|
|
25779
25821
|
var cacheKey = componentName + ':' + propName;
|
|
25780
|
-
if (
|
|
25781
|
-
|
|
25782
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
25783
|
-
manualPropTypeWarningCount < 3
|
|
25784
|
-
) {
|
|
25785
|
-
printWarning$1(
|
|
25786
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
25787
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
25788
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
25789
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
25790
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
25791
|
-
);
|
|
25822
|
+
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
|
|
25823
|
+
printWarning$1('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
|
25792
25824
|
manualPropTypeCallCache[cacheKey] = true;
|
|
25793
25825
|
manualPropTypeWarningCount++;
|
|
25794
25826
|
}
|
|
@@ -25806,37 +25838,27 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25806
25838
|
return validate(props, propName, componentName, location, propFullName);
|
|
25807
25839
|
}
|
|
25808
25840
|
}
|
|
25809
|
-
|
|
25810
25841
|
var chainedCheckType = checkType.bind(null, false);
|
|
25811
25842
|
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
25812
|
-
|
|
25813
25843
|
return chainedCheckType;
|
|
25814
25844
|
}
|
|
25815
|
-
|
|
25816
25845
|
function createPrimitiveTypeChecker(expectedType) {
|
|
25817
25846
|
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
25818
25847
|
var propValue = props[propName];
|
|
25819
25848
|
var propType = getPropType(propValue);
|
|
25820
25849
|
if (propType !== expectedType) {
|
|
25821
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
25822
|
-
// check, but we can offer a more precise error message here rather than
|
|
25823
|
-
// 'of type `object`'.
|
|
25824
25850
|
var preciseType = getPreciseType(propValue);
|
|
25825
|
-
|
|
25826
|
-
|
|
25827
|
-
|
|
25828
|
-
{expectedType: expectedType}
|
|
25829
|
-
);
|
|
25851
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
25852
|
+
expectedType: expectedType
|
|
25853
|
+
});
|
|
25830
25854
|
}
|
|
25831
25855
|
return null;
|
|
25832
25856
|
}
|
|
25833
25857
|
return createChainableTypeChecker(validate);
|
|
25834
25858
|
}
|
|
25835
|
-
|
|
25836
25859
|
function createAnyTypeChecker() {
|
|
25837
25860
|
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
25838
25861
|
}
|
|
25839
|
-
|
|
25840
25862
|
function createArrayOfTypeChecker(typeChecker) {
|
|
25841
25863
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25842
25864
|
if (typeof typeChecker !== 'function') {
|
|
@@ -25857,7 +25879,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25857
25879
|
}
|
|
25858
25880
|
return createChainableTypeChecker(validate);
|
|
25859
25881
|
}
|
|
25860
|
-
|
|
25861
25882
|
function createElementTypeChecker() {
|
|
25862
25883
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25863
25884
|
var propValue = props[propName];
|
|
@@ -25869,7 +25890,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25869
25890
|
}
|
|
25870
25891
|
return createChainableTypeChecker(validate);
|
|
25871
25892
|
}
|
|
25872
|
-
|
|
25873
25893
|
function createElementTypeTypeChecker() {
|
|
25874
25894
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25875
25895
|
var propValue = props[propName];
|
|
@@ -25881,7 +25901,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25881
25901
|
}
|
|
25882
25902
|
return createChainableTypeChecker(validate);
|
|
25883
25903
|
}
|
|
25884
|
-
|
|
25885
25904
|
function createInstanceTypeChecker(expectedClass) {
|
|
25886
25905
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25887
25906
|
if (!(props[propName] instanceof expectedClass)) {
|
|
@@ -25893,22 +25912,17 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25893
25912
|
}
|
|
25894
25913
|
return createChainableTypeChecker(validate);
|
|
25895
25914
|
}
|
|
25896
|
-
|
|
25897
25915
|
function createEnumTypeChecker(expectedValues) {
|
|
25898
25916
|
if (!Array.isArray(expectedValues)) {
|
|
25899
25917
|
if (process.env.NODE_ENV !== 'production') {
|
|
25900
25918
|
if (arguments.length > 1) {
|
|
25901
|
-
printWarning$1(
|
|
25902
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
25903
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
25904
|
-
);
|
|
25919
|
+
printWarning$1('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
|
25905
25920
|
} else {
|
|
25906
25921
|
printWarning$1('Invalid argument supplied to oneOf, expected an array.');
|
|
25907
25922
|
}
|
|
25908
25923
|
}
|
|
25909
25924
|
return emptyFunctionThatReturnsNull;
|
|
25910
25925
|
}
|
|
25911
|
-
|
|
25912
25926
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25913
25927
|
var propValue = props[propName];
|
|
25914
25928
|
for (var i = 0; i < expectedValues.length; i++) {
|
|
@@ -25916,7 +25930,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25916
25930
|
return null;
|
|
25917
25931
|
}
|
|
25918
25932
|
}
|
|
25919
|
-
|
|
25920
25933
|
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
25921
25934
|
var type = getPreciseType(value);
|
|
25922
25935
|
if (type === 'symbol') {
|
|
@@ -25928,7 +25941,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25928
25941
|
}
|
|
25929
25942
|
return createChainableTypeChecker(validate);
|
|
25930
25943
|
}
|
|
25931
|
-
|
|
25932
25944
|
function createObjectOfTypeChecker(typeChecker) {
|
|
25933
25945
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25934
25946
|
if (typeof typeChecker !== 'function') {
|
|
@@ -25951,24 +25963,18 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25951
25963
|
}
|
|
25952
25964
|
return createChainableTypeChecker(validate);
|
|
25953
25965
|
}
|
|
25954
|
-
|
|
25955
25966
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
25956
25967
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
25957
25968
|
process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
25958
25969
|
return emptyFunctionThatReturnsNull;
|
|
25959
25970
|
}
|
|
25960
|
-
|
|
25961
25971
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
25962
25972
|
var checker = arrayOfTypeCheckers[i];
|
|
25963
25973
|
if (typeof checker !== 'function') {
|
|
25964
|
-
printWarning$1(
|
|
25965
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
25966
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
25967
|
-
);
|
|
25974
|
+
printWarning$1('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
25968
25975
|
return emptyFunctionThatReturnsNull;
|
|
25969
25976
|
}
|
|
25970
25977
|
}
|
|
25971
|
-
|
|
25972
25978
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25973
25979
|
var expectedTypes = [];
|
|
25974
25980
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
@@ -25981,12 +25987,11 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25981
25987
|
expectedTypes.push(checkerResult.data.expectedType);
|
|
25982
25988
|
}
|
|
25983
25989
|
}
|
|
25984
|
-
var expectedTypesMessage =
|
|
25990
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
25985
25991
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
25986
25992
|
}
|
|
25987
25993
|
return createChainableTypeChecker(validate);
|
|
25988
25994
|
}
|
|
25989
|
-
|
|
25990
25995
|
function createNodeChecker() {
|
|
25991
25996
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25992
25997
|
if (!isNode(props[propName])) {
|
|
@@ -25996,14 +26001,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25996
26001
|
}
|
|
25997
26002
|
return createChainableTypeChecker(validate);
|
|
25998
26003
|
}
|
|
25999
|
-
|
|
26000
26004
|
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
26001
|
-
return new PropTypeError(
|
|
26002
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
26003
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
26004
|
-
);
|
|
26005
|
+
return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
|
|
26005
26006
|
}
|
|
26006
|
-
|
|
26007
26007
|
function createShapeTypeChecker(shapeTypes) {
|
|
26008
26008
|
function validate(props, propName, componentName, location, propFullName) {
|
|
26009
26009
|
var propValue = props[propName];
|
|
@@ -26025,7 +26025,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26025
26025
|
}
|
|
26026
26026
|
return createChainableTypeChecker(validate);
|
|
26027
26027
|
}
|
|
26028
|
-
|
|
26029
26028
|
function createStrictShapeTypeChecker(shapeTypes) {
|
|
26030
26029
|
function validate(props, propName, componentName, location, propFullName) {
|
|
26031
26030
|
var propValue = props[propName];
|
|
@@ -26033,7 +26032,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26033
26032
|
if (propType !== 'object') {
|
|
26034
26033
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
26035
26034
|
}
|
|
26036
|
-
// We need to check all keys in case some are required but missing from props.
|
|
26037
26035
|
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
26038
26036
|
for (var key in allKeys) {
|
|
26039
26037
|
var checker = shapeTypes[key];
|
|
@@ -26041,11 +26039,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26041
26039
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
26042
26040
|
}
|
|
26043
26041
|
if (!checker) {
|
|
26044
|
-
return new PropTypeError(
|
|
26045
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
26046
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
26047
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
26048
|
-
);
|
|
26042
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
26049
26043
|
}
|
|
26050
26044
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
26051
26045
|
if (error) {
|
|
@@ -26054,10 +26048,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26054
26048
|
}
|
|
26055
26049
|
return null;
|
|
26056
26050
|
}
|
|
26057
|
-
|
|
26058
26051
|
return createChainableTypeChecker(validate);
|
|
26059
26052
|
}
|
|
26060
|
-
|
|
26061
26053
|
function isNode(propValue) {
|
|
26062
26054
|
switch (typeof propValue) {
|
|
26063
26055
|
case 'number':
|
|
@@ -26073,7 +26065,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26073
26065
|
if (propValue === null || isValidElement(propValue)) {
|
|
26074
26066
|
return true;
|
|
26075
26067
|
}
|
|
26076
|
-
|
|
26077
26068
|
var iteratorFn = getIteratorFn(propValue);
|
|
26078
26069
|
if (iteratorFn) {
|
|
26079
26070
|
var iterator = iteratorFn.call(propValue);
|
|
@@ -26085,7 +26076,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26085
26076
|
}
|
|
26086
26077
|
}
|
|
26087
26078
|
} else {
|
|
26088
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
26089
26079
|
while (!(step = iterator.next()).done) {
|
|
26090
26080
|
var entry = step.value;
|
|
26091
26081
|
if (entry) {
|
|
@@ -26098,47 +26088,32 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26098
26088
|
} else {
|
|
26099
26089
|
return false;
|
|
26100
26090
|
}
|
|
26101
|
-
|
|
26102
26091
|
return true;
|
|
26103
26092
|
default:
|
|
26104
26093
|
return false;
|
|
26105
26094
|
}
|
|
26106
26095
|
}
|
|
26107
|
-
|
|
26108
26096
|
function isSymbol(propType, propValue) {
|
|
26109
|
-
// Native Symbol.
|
|
26110
26097
|
if (propType === 'symbol') {
|
|
26111
26098
|
return true;
|
|
26112
26099
|
}
|
|
26113
|
-
|
|
26114
|
-
// falsy value can't be a Symbol
|
|
26115
26100
|
if (!propValue) {
|
|
26116
26101
|
return false;
|
|
26117
26102
|
}
|
|
26118
|
-
|
|
26119
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
26120
26103
|
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
26121
26104
|
return true;
|
|
26122
26105
|
}
|
|
26123
|
-
|
|
26124
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
26125
26106
|
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
26126
26107
|
return true;
|
|
26127
26108
|
}
|
|
26128
|
-
|
|
26129
26109
|
return false;
|
|
26130
26110
|
}
|
|
26131
|
-
|
|
26132
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
26133
26111
|
function getPropType(propValue) {
|
|
26134
26112
|
var propType = typeof propValue;
|
|
26135
26113
|
if (Array.isArray(propValue)) {
|
|
26136
26114
|
return 'array';
|
|
26137
26115
|
}
|
|
26138
26116
|
if (propValue instanceof RegExp) {
|
|
26139
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
26140
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
26141
|
-
// passes PropTypes.object.
|
|
26142
26117
|
return 'object';
|
|
26143
26118
|
}
|
|
26144
26119
|
if (isSymbol(propType, propValue)) {
|
|
@@ -26146,9 +26121,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26146
26121
|
}
|
|
26147
26122
|
return propType;
|
|
26148
26123
|
}
|
|
26149
|
-
|
|
26150
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
26151
|
-
// See `createPrimitiveTypeChecker`.
|
|
26152
26124
|
function getPreciseType(propValue) {
|
|
26153
26125
|
if (typeof propValue === 'undefined' || propValue === null) {
|
|
26154
26126
|
return '' + propValue;
|
|
@@ -26163,9 +26135,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26163
26135
|
}
|
|
26164
26136
|
return propType;
|
|
26165
26137
|
}
|
|
26166
|
-
|
|
26167
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
26168
|
-
// For example, "undefined" or "of type array"
|
|
26169
26138
|
function getPostfixForTypeWarning(value) {
|
|
26170
26139
|
var type = getPreciseType(value);
|
|
26171
26140
|
switch (type) {
|
|
@@ -26180,44 +26149,34 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26180
26149
|
return type;
|
|
26181
26150
|
}
|
|
26182
26151
|
}
|
|
26183
|
-
|
|
26184
|
-
// Returns class name of the object, if any.
|
|
26185
26152
|
function getClassName(propValue) {
|
|
26186
26153
|
if (!propValue.constructor || !propValue.constructor.name) {
|
|
26187
26154
|
return ANONYMOUS;
|
|
26188
26155
|
}
|
|
26189
26156
|
return propValue.constructor.name;
|
|
26190
26157
|
}
|
|
26191
|
-
|
|
26192
26158
|
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
26193
26159
|
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
26194
26160
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
26195
|
-
|
|
26196
26161
|
return ReactPropTypes;
|
|
26197
26162
|
};
|
|
26198
26163
|
|
|
26199
26164
|
function emptyFunction() {}
|
|
26200
26165
|
function emptyFunctionWithReset() {}
|
|
26201
26166
|
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
26202
|
-
|
|
26203
|
-
var factoryWithThrowingShims = function() {
|
|
26167
|
+
var factoryWithThrowingShims = function () {
|
|
26204
26168
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
26205
26169
|
if (secret === ReactPropTypesSecret_1) {
|
|
26206
|
-
// It is still safe when called from React.
|
|
26207
26170
|
return;
|
|
26208
26171
|
}
|
|
26209
|
-
var err = new Error(
|
|
26210
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
26211
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
26212
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
26213
|
-
);
|
|
26172
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
26214
26173
|
err.name = 'Invariant Violation';
|
|
26215
26174
|
throw err;
|
|
26216
|
-
}
|
|
26175
|
+
}
|
|
26176
|
+
shim.isRequired = shim;
|
|
26217
26177
|
function getShim() {
|
|
26218
26178
|
return shim;
|
|
26219
|
-
}
|
|
26220
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
26179
|
+
}
|
|
26221
26180
|
var ReactPropTypes = {
|
|
26222
26181
|
array: shim,
|
|
26223
26182
|
bigint: shim,
|
|
@@ -26227,7 +26186,6 @@ var factoryWithThrowingShims = function() {
|
|
|
26227
26186
|
object: shim,
|
|
26228
26187
|
string: shim,
|
|
26229
26188
|
symbol: shim,
|
|
26230
|
-
|
|
26231
26189
|
any: shim,
|
|
26232
26190
|
arrayOf: getShim,
|
|
26233
26191
|
element: shim,
|
|
@@ -26239,36 +26197,21 @@ var factoryWithThrowingShims = function() {
|
|
|
26239
26197
|
oneOfType: getShim,
|
|
26240
26198
|
shape: getShim,
|
|
26241
26199
|
exact: getShim,
|
|
26242
|
-
|
|
26243
26200
|
checkPropTypes: emptyFunctionWithReset,
|
|
26244
26201
|
resetWarningCache: emptyFunction
|
|
26245
26202
|
};
|
|
26246
|
-
|
|
26247
26203
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
26248
|
-
|
|
26249
26204
|
return ReactPropTypes;
|
|
26250
26205
|
};
|
|
26251
26206
|
|
|
26252
26207
|
var propTypes = createCommonjsModule(function (module) {
|
|
26253
|
-
|
|
26254
|
-
|
|
26255
|
-
|
|
26256
|
-
|
|
26257
|
-
|
|
26258
|
-
|
|
26259
|
-
|
|
26260
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
26261
|
-
var ReactIs = reactIs;
|
|
26262
|
-
|
|
26263
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
26264
|
-
// http://fb.me/prop-types-in-prod
|
|
26265
|
-
var throwOnDirectAccess = true;
|
|
26266
|
-
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
26267
|
-
} else {
|
|
26268
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
26269
|
-
// http://fb.me/prop-types-in-prod
|
|
26270
|
-
module.exports = factoryWithThrowingShims();
|
|
26271
|
-
}
|
|
26208
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26209
|
+
var ReactIs = reactIs;
|
|
26210
|
+
var throwOnDirectAccess = true;
|
|
26211
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
26212
|
+
} else {
|
|
26213
|
+
module.exports = factoryWithThrowingShims();
|
|
26214
|
+
}
|
|
26272
26215
|
});
|
|
26273
26216
|
|
|
26274
26217
|
const SearchConnection = _ref => {
|
|
@@ -28043,31 +27986,31 @@ const checkForNA$1 = value => {
|
|
|
28043
27986
|
return value ? value : "CS_NA";
|
|
28044
27987
|
};
|
|
28045
27988
|
const WSApplicationDetails = () => {
|
|
28046
|
-
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$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect58, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data$3, _paymentDetails$data$4, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _paymentDetails$data5, _paymentDetails$data6, _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, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$WaterConnection135, _data$WaterConnection136, _data$WaterConnection137, _data$WaterConnection138, _data$SewerageConnect130, _data$SewerageConnect131, _data$SewerageConnect132, _data$SewerageConnect133, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection145, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$WaterConnection153, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect151, _data$SewerageConnect152, _paymentDetails$data20, _paymentDetails$data21, _paymentDetails$data22, _data$WaterConnection158, _data$WaterConnection159, _data$SewerageConnect153, _data$SewerageConnect154, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect155, _data$SewerageConnect156, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect157, _data$SewerageConnect158, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection171, _data$WaterConnection172, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection173, _data$WaterConnection174, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$WaterConnection179, _data$WaterConnection180, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$SewerageConnect181, _data$SewerageConnect182, _data$SewerageConnect183, _data$SewerageConnect184, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186, _data$WaterConnection187, _data$WaterConnection188, _data$WaterConnection189;
|
|
27989
|
+
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$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$SewerageConnect1, _PTData$Properties, _PTData$Properties$, _data$WaterConnection10, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$SewerageConnect10, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$SewerageConnect36, _data$SewerageConnect37, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect40, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect41, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$SewerageConnect47, _data$SewerageConnect48, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect49, _data$SewerageConnect50, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$SewerageConnect59, _data$SewerageConnect60, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data$3, _paymentDetails$data$4, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _paymentDetails$data5, _paymentDetails$data6, _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, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection70, _data$WaterConnection71, _data$WaterConnection72, _data$SewerageConnect65, _data$SewerageConnect66, _data$SewerageConnect67, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$WaterConnection125, _data$WaterConnection126, _data$SewerageConnect120, _data$SewerageConnect121, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection127, _data$WaterConnection128, _data$SewerageConnect122, _data$SewerageConnect123, _data$WaterConnection129, _data$WaterConnection130, _data$SewerageConnect124, _data$SewerageConnect125, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect134, _data$SewerageConnect135, _paymentDetails$data20, _paymentDetails$data21, _paymentDetails$data22, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _data$WaterConnection150, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection156, _data$WaterConnection157, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172;
|
|
28047
27990
|
const getDisconnectionNoticeSearch = function () {
|
|
28048
27991
|
try {
|
|
28049
|
-
var _data$
|
|
27992
|
+
var _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect169, _data$SewerageConnect170;
|
|
28050
27993
|
let key = "ws-waterdisconnectionnotice";
|
|
28051
27994
|
let details = {};
|
|
28052
27995
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
28053
|
-
var _data$
|
|
27996
|
+
var _data$WaterConnection173, _PTData$Properties9;
|
|
28054
27997
|
details = {
|
|
28055
|
-
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
27998
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection173 = data.WaterConnection) === null || _data$WaterConnection173 === void 0 ? void 0 : _data$WaterConnection173[0], {
|
|
28056
27999
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : _PTData$Properties9[0]
|
|
28057
28000
|
})]
|
|
28058
28001
|
};
|
|
28059
28002
|
} else {
|
|
28060
|
-
var _data$
|
|
28003
|
+
var _data$SewerageConnect168, _PTData$Properties0;
|
|
28061
28004
|
key = "ws-seweragedisconnectionnotice";
|
|
28062
28005
|
details = {
|
|
28063
|
-
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
28006
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect168 = data.SewerageConnections) === null || _data$SewerageConnect168 === void 0 ? void 0 : _data$SewerageConnect168[0], {
|
|
28064
28007
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : _PTData$Properties0[0]
|
|
28065
28008
|
})]
|
|
28066
28009
|
};
|
|
28067
28010
|
}
|
|
28068
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
28069
|
-
var _data$
|
|
28070
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
28011
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection174 = data.WaterConnection) === null || _data$WaterConnection174 === void 0 ? void 0 : (_data$WaterConnection175 = _data$WaterConnection174[0]) === null || _data$WaterConnection175 === void 0 ? void 0 : _data$WaterConnection175.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect169 = data.SewerageConnections) === null || _data$SewerageConnect169 === void 0 ? void 0 : (_data$SewerageConnect170 = _data$SewerageConnect169[0]) === null || _data$SewerageConnect170 === void 0 ? void 0 : _data$SewerageConnect170.tenantId), details, key)).then(function (response) {
|
|
28012
|
+
var _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect171, _data$SewerageConnect172;
|
|
28013
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection176 = data.WaterConnection) === null || _data$WaterConnection176 === void 0 ? void 0 : (_data$WaterConnection177 = _data$WaterConnection176[0]) === null || _data$WaterConnection177 === void 0 ? void 0 : _data$WaterConnection177.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect171 = data.SewerageConnections) === null || _data$SewerageConnect171 === void 0 ? void 0 : (_data$SewerageConnect172 = _data$SewerageConnect171[0]) === null || _data$SewerageConnect172 === void 0 ? void 0 : _data$SewerageConnect172.tenantId), {
|
|
28071
28014
|
fileStoreIds: response.filestoreIds[0]
|
|
28072
28015
|
})).then(function (fileStore) {
|
|
28073
28016
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -28086,8 +28029,7 @@ const WSApplicationDetails = () => {
|
|
|
28086
28029
|
const _useState = useState(false),
|
|
28087
28030
|
showOptions = _useState[0],
|
|
28088
28031
|
setShowOptions = _useState[1];
|
|
28089
|
-
const _useState2 = useState(false)
|
|
28090
|
-
setViewTimeline = _useState2[1];
|
|
28032
|
+
const _useState2 = useState(false);
|
|
28091
28033
|
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_"));
|
|
28092
28034
|
let filter1 = {
|
|
28093
28035
|
tenantId: tenantId,
|
|
@@ -28188,15 +28130,6 @@ const WSApplicationDetails = () => {
|
|
|
28188
28130
|
return Promise.reject(e);
|
|
28189
28131
|
}
|
|
28190
28132
|
};
|
|
28191
|
-
const handleViewTimeline = () => {
|
|
28192
|
-
const timelineSection = document.getElementById("timeline");
|
|
28193
|
-
if (timelineSection) {
|
|
28194
|
-
timelineSection.scrollIntoView({
|
|
28195
|
-
behavior: "smooth"
|
|
28196
|
-
});
|
|
28197
|
-
}
|
|
28198
|
-
setViewTimeline(true);
|
|
28199
|
-
};
|
|
28200
28133
|
const printApplicationReceipts = function () {
|
|
28201
28134
|
try {
|
|
28202
28135
|
var _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect24, _data$SewerageConnect25;
|
|
@@ -28312,12 +28245,34 @@ const WSApplicationDetails = () => {
|
|
|
28312
28245
|
let serviceType = data && data !== null && data !== void 0 && (_data$WaterConnection44 = data.WaterConnection) !== null && _data$WaterConnection44 !== void 0 && _data$WaterConnection44[0] ? "WATER" : "SEWERAGE";
|
|
28313
28246
|
sessionStorage.setItem("ApplicationNoState", applicationNobyData);
|
|
28314
28247
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
28248
|
+
className: "employee-main-application-details",
|
|
28249
|
+
style: {
|
|
28250
|
+
display: "flex",
|
|
28251
|
+
gap: "20px"
|
|
28252
|
+
}
|
|
28253
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28254
|
+
className: "workflow-timeline-wrapper no-scrollbar",
|
|
28255
|
+
style: {
|
|
28256
|
+
flex: "1 1 300px",
|
|
28257
|
+
maxWidth: "400px"
|
|
28258
|
+
}
|
|
28259
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
28260
|
+
id: "timeline"
|
|
28261
|
+
}, /*#__PURE__*/React.createElement(WSWFApplicationTimeline, {
|
|
28262
|
+
application: (data === null || data === void 0 ? void 0 : (_data$WaterConnection45 = data.WaterConnection) === null || _data$WaterConnection45 === void 0 ? void 0 : _data$WaterConnection45[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect40 = data.SewerageConnections) === null || _data$SewerageConnect40 === void 0 ? void 0 : _data$SewerageConnect40[0]),
|
|
28263
|
+
id: (data === null || data === void 0 ? void 0 : (_data$WaterConnection46 = data.WaterConnection) === null || _data$WaterConnection46 === void 0 ? void 0 : (_data$WaterConnection47 = _data$WaterConnection46[0]) === null || _data$WaterConnection47 === void 0 ? void 0 : _data$WaterConnection47.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect41 = data.SewerageConnections) === null || _data$SewerageConnect41 === void 0 ? void 0 : (_data$SewerageConnect42 = _data$SewerageConnect41[0]) === null || _data$SewerageConnect42 === void 0 ? void 0 : _data$SewerageConnect42.applicationNo),
|
|
28264
|
+
paymentbuttonenabled: false
|
|
28265
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
28266
|
+
style: {
|
|
28267
|
+
flex: "2 1 500px"
|
|
28268
|
+
}
|
|
28269
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement("div", {
|
|
28315
28270
|
className: "cardHeaderWithOptions",
|
|
28316
28271
|
style: {
|
|
28317
28272
|
marginRight: "auto",
|
|
28318
28273
|
maxWidth: "960px"
|
|
28319
28274
|
}
|
|
28320
|
-
}, /*#__PURE__*/React.createElement(
|
|
28275
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28321
28276
|
style: {
|
|
28322
28277
|
zIndex: "10",
|
|
28323
28278
|
display: "flex",
|
|
@@ -28332,88 +28287,63 @@ const WSApplicationDetails = () => {
|
|
|
28332
28287
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
28333
28288
|
displayOptions: showOptions,
|
|
28334
28289
|
options: downloadOptions
|
|
28335
|
-
})), /*#__PURE__*/React.createElement(
|
|
28336
|
-
label: t("VIEW_TIMELINE"),
|
|
28337
|
-
style: {
|
|
28338
|
-
color: "#A52A2A"
|
|
28339
|
-
},
|
|
28340
|
-
onClick: handleViewTimeline
|
|
28341
|
-
}))), checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
28290
|
+
})))), checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
28342
28291
|
t: t
|
|
28343
28292
|
}), /*#__PURE__*/React.createElement("div", {
|
|
28344
28293
|
className: "hide-seperator"
|
|
28345
|
-
}, /*#__PURE__*/React.createElement(
|
|
28346
|
-
className: "border-none",
|
|
28294
|
+
}, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
28347
28295
|
label: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
28348
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28296
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection48 = data.WaterConnection) === null || _data$WaterConnection48 === void 0 ? void 0 : (_data$WaterConnection49 = _data$WaterConnection48[0]) === null || _data$WaterConnection49 === void 0 ? void 0 : _data$WaterConnection49.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect43 = data.SewerageConnections) === null || _data$SewerageConnect43 === void 0 ? void 0 : (_data$SewerageConnect44 = _data$SewerageConnect43[0]) === null || _data$SewerageConnect44 === void 0 ? void 0 : _data$SewerageConnect44.applicationNo),
|
|
28349
28297
|
textStyle: {}
|
|
28350
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28351
|
-
className: "border-none",
|
|
28298
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection50 = data.WaterConnection) === null || _data$WaterConnection50 === void 0 ? void 0 : (_data$WaterConnection51 = _data$WaterConnection50[0].applicationType) === null || _data$WaterConnection51 === void 0 ? void 0 : _data$WaterConnection51.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect45 = data.SewerageConnections) === null || _data$SewerageConnect45 === void 0 ? void 0 : (_data$SewerageConnect46 = _data$SewerageConnect45[0].applicationType) === null || _data$SewerageConnect46 === void 0 ? void 0 : _data$SewerageConnect46.includes("DISCONNECT"))) && /*#__PURE__*/React.createElement(Row, {
|
|
28352
28299
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
28353
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28300
|
+
text: (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$WaterConnection53.connectionNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect47 = data.SewerageConnections) === null || _data$SewerageConnect47 === void 0 ? void 0 : (_data$SewerageConnect48 = _data$SewerageConnect47[0]) === null || _data$SewerageConnect48 === void 0 ? void 0 : _data$SewerageConnect48.connectionNo),
|
|
28354
28301
|
textStyle: {
|
|
28355
28302
|
wordBreak: "break-word"
|
|
28356
28303
|
}
|
|
28357
28304
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28358
|
-
className: "border-none",
|
|
28359
28305
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
28360
|
-
text: t("WS_APPLICATION_TYPE_" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28306
|
+
text: t("WS_APPLICATION_TYPE_" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection54 = data.WaterConnection) === null || _data$WaterConnection54 === void 0 ? void 0 : (_data$WaterConnection55 = _data$WaterConnection54[0]) === null || _data$WaterConnection55 === void 0 ? void 0 : _data$WaterConnection55.applicationType) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect49 = data.SewerageConnections) === null || _data$SewerageConnect49 === void 0 ? void 0 : (_data$SewerageConnect50 = _data$SewerageConnect49[0]) === null || _data$SewerageConnect50 === void 0 ? void 0 : _data$SewerageConnect50.applicationType))),
|
|
28361
28307
|
textStyle: {
|
|
28362
28308
|
wordBreak: "break-word"
|
|
28363
28309
|
}
|
|
28364
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28365
|
-
className: "border-none",
|
|
28310
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection56 = data.WaterConnection) === null || _data$WaterConnection56 === void 0 ? void 0 : (_data$WaterConnection57 = _data$WaterConnection56[0].applicationType) === null || _data$WaterConnection57 === void 0 ? void 0 : _data$WaterConnection57.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect51 = data.SewerageConnections) === null || _data$SewerageConnect51 === void 0 ? void 0 : (_data$SewerageConnect52 = _data$SewerageConnect51[0].applicationType) === null || _data$SewerageConnect52 === void 0 ? void 0 : _data$SewerageConnect52.includes("DISCONNECT"))) && /*#__PURE__*/React.createElement(Row, {
|
|
28366
28311
|
label: t("WS_DISCONNECTION_PROPOSED_DATE"),
|
|
28367
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
28312
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection58 = data.WaterConnection) === null || _data$WaterConnection58 === void 0 ? void 0 : (_data$WaterConnection59 = _data$WaterConnection58[0]) === null || _data$WaterConnection59 === void 0 ? void 0 : _data$WaterConnection59.dateEffectiveFrom) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect53 = data.SewerageConnections) === null || _data$SewerageConnect53 === void 0 ? void 0 : (_data$SewerageConnect54 = _data$SewerageConnect53[0]) === null || _data$SewerageConnect54 === void 0 ? void 0 : _data$SewerageConnect54.dateEffectiveFrom),
|
|
28368
28313
|
textStyle: {
|
|
28369
28314
|
wordBreak: "break-word"
|
|
28370
28315
|
}
|
|
28371
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28372
|
-
className: "border-none",
|
|
28316
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection60 = data.WaterConnection) === null || _data$WaterConnection60 === void 0 ? void 0 : (_data$WaterConnection61 = _data$WaterConnection60[0].applicationType) === null || _data$WaterConnection61 === void 0 ? void 0 : _data$WaterConnection61.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect55 = data.SewerageConnections) === null || _data$SewerageConnect55 === void 0 ? void 0 : (_data$SewerageConnect56 = _data$SewerageConnect55[0].applicationType) === null || _data$SewerageConnect56 === void 0 ? void 0 : _data$SewerageConnect56.includes("DISCONNECT"))) && /*#__PURE__*/React.createElement(Row, {
|
|
28373
28317
|
label: t("WS_DISCONNECTION_EXECUTED_DATE"),
|
|
28374
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
28318
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection62 = data.WaterConnection) === null || _data$WaterConnection62 === void 0 ? void 0 : (_data$WaterConnection63 = _data$WaterConnection62[0]) === null || _data$WaterConnection63 === void 0 ? void 0 : _data$WaterConnection63.disconnectionExecutionDate) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect57 = data.SewerageConnections) === null || _data$SewerageConnect57 === void 0 ? void 0 : (_data$SewerageConnect58 = _data$SewerageConnect57[0]) === null || _data$SewerageConnect58 === void 0 ? void 0 : _data$SewerageConnect58.disconnectionExecutionDate),
|
|
28375
28319
|
textStyle: {
|
|
28376
28320
|
wordBreak: "break-word"
|
|
28377
28321
|
}
|
|
28378
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28379
|
-
className: "border-none",
|
|
28322
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection64 = data.WaterConnection) === null || _data$WaterConnection64 === void 0 ? void 0 : (_data$WaterConnection65 = _data$WaterConnection64[0].applicationType) === null || _data$WaterConnection65 === void 0 ? void 0 : _data$WaterConnection65.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect59 = data.SewerageConnections) === null || _data$SewerageConnect59 === void 0 ? void 0 : (_data$SewerageConnect60 = _data$SewerageConnect59[0].applicationType) === null || _data$SewerageConnect60 === void 0 ? void 0 : _data$SewerageConnect60.includes("DISCONNECT"))) && /*#__PURE__*/React.createElement(Row, {
|
|
28380
28323
|
label: t("WS_DISCONNECTION_REASON"),
|
|
28381
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28324
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection66 = data.WaterConnection) === null || _data$WaterConnection66 === void 0 ? void 0 : (_data$WaterConnection67 = _data$WaterConnection66[0]) === null || _data$WaterConnection67 === void 0 ? void 0 : _data$WaterConnection67.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$WaterConnection68 = data.WaterConnection) === null || _data$WaterConnection68 === void 0 ? void 0 : (_data$WaterConnection69 = _data$WaterConnection68[0]) === null || _data$WaterConnection69 === void 0 ? void 0 : _data$WaterConnection69.disconnectionReason : (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$SewerageConnect62.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$SewerageConnect63 = data.SewerageConnections) === null || _data$SewerageConnect63 === void 0 ? void 0 : (_data$SewerageConnect64 = _data$SewerageConnect63[0]) === null || _data$SewerageConnect64 === void 0 ? void 0 : _data$SewerageConnect64.disconnectionReason : t("NA"),
|
|
28382
28325
|
textStyle: {
|
|
28383
28326
|
wordBreak: "break-word"
|
|
28384
28327
|
}
|
|
28385
|
-
}))
|
|
28328
|
+
})), (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : (_paymentDetails$data$3 = _paymentDetails$data$2.billDetails) === null || _paymentDetails$data$3 === void 0 ? void 0 : (_paymentDetails$data$4 = _paymentDetails$data$3[0]) === null || _paymentDetails$data$4 === void 0 ? void 0 : _paymentDetails$data$4.billAccountDetails.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
|
|
28386
28329
|
styles: {
|
|
28387
28330
|
fontSize: "28px"
|
|
28388
28331
|
}
|
|
28389
28332
|
}, t("WS_FEE_DEATAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, null, paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : (_paymentDetails$data5 = _paymentDetails$data4.billDetails) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5[0]) === null || _paymentDetails$data6 === void 0 ? void 0 : _paymentDetails$data6.billAccountDetails.map(bill => /*#__PURE__*/React.createElement(Row, {
|
|
28390
|
-
className: "border-none",
|
|
28391
28333
|
label: t(bill === null || bill === void 0 ? void 0 : bill.taxHeadCode),
|
|
28392
|
-
text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2)
|
|
28393
|
-
textStyle: {
|
|
28394
|
-
textAlign: "right"
|
|
28395
|
-
}
|
|
28334
|
+
text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2)
|
|
28396
28335
|
})), /*#__PURE__*/React.createElement(Row, {
|
|
28397
|
-
className: "border-none",
|
|
28398
28336
|
label: t("WS_TOTAL_AMOUNT_DUE"),
|
|
28399
|
-
text: "\u20B9" + Number(isPaid ? 0 : paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data7 = paymentDetails.data) === null || _paymentDetails$data7 === void 0 ? void 0 : (_paymentDetails$data8 = _paymentDetails$data7.Bill) === null || _paymentDetails$data8 === void 0 ? void 0 : (_paymentDetails$data9 = _paymentDetails$data8[0]) === null || _paymentDetails$data9 === void 0 ? void 0 : (_paymentDetails$data0 = _paymentDetails$data9.billDetails) === null || _paymentDetails$data0 === void 0 ? void 0 : (_paymentDetails$data1 = _paymentDetails$data0[0]) === null || _paymentDetails$data1 === void 0 ? void 0 : _paymentDetails$data1.amount).toFixed(2)
|
|
28400
|
-
textStyle: {
|
|
28401
|
-
textAlign: "right",
|
|
28402
|
-
fontSize: "18px",
|
|
28403
|
-
fontWeight: "700"
|
|
28404
|
-
}
|
|
28337
|
+
text: "\u20B9" + Number(isPaid ? 0 : paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data7 = paymentDetails.data) === null || _paymentDetails$data7 === void 0 ? void 0 : (_paymentDetails$data8 = _paymentDetails$data7.Bill) === null || _paymentDetails$data8 === void 0 ? void 0 : (_paymentDetails$data9 = _paymentDetails$data8[0]) === null || _paymentDetails$data9 === void 0 ? void 0 : (_paymentDetails$data0 = _paymentDetails$data9.billDetails) === null || _paymentDetails$data0 === void 0 ? void 0 : (_paymentDetails$data1 = _paymentDetails$data0[0]) === null || _paymentDetails$data1 === void 0 ? void 0 : _paymentDetails$data1.amount).toFixed(2)
|
|
28405
28338
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28406
|
-
className: "border-none",
|
|
28407
28339
|
label: t("WS_COMMON_TABLE_COL_APPLICATION_STATUS"),
|
|
28408
28340
|
text: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data10 = paymentDetails.data) === null || _paymentDetails$data10 === void 0 ? void 0 : (_paymentDetails$data11 = _paymentDetails$data10.Bill) === null || _paymentDetails$data11 === void 0 ? void 0 : (_paymentDetails$data12 = _paymentDetails$data11[0]) === null || _paymentDetails$data12 === void 0 ? void 0 : (_paymentDetails$data13 = _paymentDetails$data12.billDetails) === null || _paymentDetails$data13 === void 0 ? void 0 : (_paymentDetails$data14 = _paymentDetails$data13[0]) === null || _paymentDetails$data14 === void 0 ? void 0 : _paymentDetails$data14.amount).toFixed(2) == 0 ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
28409
28341
|
textStyle: isPaid || Number(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data15 = paymentDetails.data) === null || _paymentDetails$data15 === void 0 ? void 0 : (_paymentDetails$data16 = _paymentDetails$data15.Bill) === null || _paymentDetails$data16 === void 0 ? void 0 : (_paymentDetails$data17 = _paymentDetails$data16[0]) === null || _paymentDetails$data17 === void 0 ? void 0 : (_paymentDetails$data18 = _paymentDetails$data17.billDetails) === null || _paymentDetails$data18 === void 0 ? void 0 : (_paymentDetails$data19 = _paymentDetails$data18[0]) === null || _paymentDetails$data19 === void 0 ? void 0 : _paymentDetails$data19.amount).toFixed(2) == 0 ? {
|
|
28410
|
-
textAlign: "right",
|
|
28411
28342
|
color: "darkgreen"
|
|
28412
28343
|
} : {
|
|
28413
|
-
textAlign: "right",
|
|
28414
28344
|
color: "red"
|
|
28415
28345
|
}
|
|
28416
|
-
}))), /*#__PURE__*/React.createElement(
|
|
28346
|
+
}))), /*#__PURE__*/React.createElement(CardHeader, {
|
|
28417
28347
|
styles: {
|
|
28418
28348
|
fontSize: "28px"
|
|
28419
28349
|
}
|
|
@@ -28446,19 +28376,18 @@ const WSApplicationDetails = () => {
|
|
|
28446
28376
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28447
28377
|
label: t("WS_NATURE_OF_WORK"),
|
|
28448
28378
|
text: "" + t(checkForNA$1(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.natureOfWork))
|
|
28449
|
-
})))
|
|
28379
|
+
}))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection70 = data.WaterConnection) === null || _data$WaterConnection70 === void 0 ? void 0 : (_data$WaterConnection71 = _data$WaterConnection70[0]) === null || _data$WaterConnection71 === void 0 ? void 0 : (_data$WaterConnection72 = _data$WaterConnection71.connectionHolders) === null || _data$WaterConnection72 === void 0 ? void 0 : _data$WaterConnection72.length) > 0 || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect65 = data.SewerageConnections) === null || _data$SewerageConnect65 === void 0 ? void 0 : (_data$SewerageConnect66 = _data$SewerageConnect65[0]) === null || _data$SewerageConnect66 === void 0 ? void 0 : (_data$SewerageConnect67 = _data$SewerageConnect66.connectionHolders) === null || _data$SewerageConnect67 === void 0 ? void 0 : _data$SewerageConnect67.length) > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
|
|
28450
28380
|
styles: {
|
|
28451
28381
|
fontSize: "28px"
|
|
28452
28382
|
}
|
|
28453
28383
|
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
28454
|
-
className: "border-none",
|
|
28455
28384
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
28456
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28385
|
+
text: (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$WaterConnection75 = _data$WaterConnection74.connectionHolders) === null || _data$WaterConnection75 === void 0 ? void 0 : (_data$WaterConnection76 = _data$WaterConnection75[0]) === null || _data$WaterConnection76 === void 0 ? void 0 : _data$WaterConnection76.mobileNumber) || (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$SewerageConnect71 = _data$SewerageConnect70[0]) === null || _data$SewerageConnect71 === void 0 ? void 0 : _data$SewerageConnect71.mobileNumber),
|
|
28457
28386
|
textStyle: {
|
|
28458
28387
|
whiteSpace: "pre"
|
|
28459
28388
|
},
|
|
28460
28389
|
privacy: {
|
|
28461
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28390
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? 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$WaterConnection80 = _data$WaterConnection79[0]) === null || _data$WaterConnection80 === void 0 ? void 0 : _data$WaterConnection80.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect72 = data.SewerageConnections) === null || _data$SewerageConnect72 === void 0 ? void 0 : (_data$SewerageConnect73 = _data$SewerageConnect72[0]) === null || _data$SewerageConnect73 === void 0 ? void 0 : (_data$SewerageConnect74 = _data$SewerageConnect73.connectionHolders) === null || _data$SewerageConnect74 === void 0 ? void 0 : (_data$SewerageConnect75 = _data$SewerageConnect74[0]) === null || _data$SewerageConnect75 === void 0 ? void 0 : _data$SewerageConnect75.uuid,
|
|
28462
28391
|
fieldName: "connectionHoldersMobileNumber",
|
|
28463
28392
|
model: "WnSConnectionOwner",
|
|
28464
28393
|
showValue: false,
|
|
@@ -28474,21 +28403,19 @@ const WSApplicationDetails = () => {
|
|
|
28474
28403
|
}
|
|
28475
28404
|
}
|
|
28476
28405
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28477
|
-
className: "border-none",
|
|
28478
28406
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
28479
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28407
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection81 = data.WaterConnection) === null || _data$WaterConnection81 === void 0 ? void 0 : (_data$WaterConnection82 = _data$WaterConnection81[0]) === null || _data$WaterConnection82 === void 0 ? void 0 : (_data$WaterConnection83 = _data$WaterConnection82.connectionHolders) === null || _data$WaterConnection83 === void 0 ? void 0 : (_data$WaterConnection84 = _data$WaterConnection83[0]) === null || _data$WaterConnection84 === void 0 ? void 0 : _data$WaterConnection84.name) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect76 = data.SewerageConnections) === null || _data$SewerageConnect76 === void 0 ? void 0 : (_data$SewerageConnect77 = _data$SewerageConnect76[0]) === null || _data$SewerageConnect77 === void 0 ? void 0 : (_data$SewerageConnect78 = _data$SewerageConnect77.connectionHolders) === null || _data$SewerageConnect78 === void 0 ? void 0 : (_data$SewerageConnect79 = _data$SewerageConnect78[0]) === null || _data$SewerageConnect79 === void 0 ? void 0 : _data$SewerageConnect79.name),
|
|
28480
28408
|
textStyle: {
|
|
28481
28409
|
whiteSpace: "pre"
|
|
28482
28410
|
}
|
|
28483
28411
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28484
|
-
className: "border-none",
|
|
28485
28412
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
28486
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
28413
|
+
text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection85 = data.WaterConnection) === null || _data$WaterConnection85 === void 0 ? void 0 : (_data$WaterConnection86 = _data$WaterConnection85[0]) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86.connectionHolders) === null || _data$WaterConnection87 === void 0 ? void 0 : (_data$WaterConnection88 = _data$WaterConnection87[0]) === null || _data$WaterConnection88 === void 0 ? void 0 : _data$WaterConnection88.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect80 = data.SewerageConnections) === null || _data$SewerageConnect80 === void 0 ? void 0 : (_data$SewerageConnect81 = _data$SewerageConnect80[0]) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81.connectionHolders) === null || _data$SewerageConnect82 === void 0 ? void 0 : (_data$SewerageConnect83 = _data$SewerageConnect82[0]) === null || _data$SewerageConnect83 === void 0 ? void 0 : _data$SewerageConnect83.gender)),
|
|
28487
28414
|
textStyle: {
|
|
28488
28415
|
whiteSpace: "pre"
|
|
28489
28416
|
},
|
|
28490
28417
|
privacy: {
|
|
28491
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28418
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection89 = data.WaterConnection) === null || _data$WaterConnection89 === void 0 ? void 0 : (_data$WaterConnection90 = _data$WaterConnection89[0]) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90.connectionHolders) === null || _data$WaterConnection91 === void 0 ? void 0 : (_data$WaterConnection92 = _data$WaterConnection91[0]) === null || _data$WaterConnection92 === void 0 ? void 0 : _data$WaterConnection92.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect84 = data.SewerageConnections) === null || _data$SewerageConnect84 === void 0 ? void 0 : (_data$SewerageConnect85 = _data$SewerageConnect84[0]) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85.connectionHolders) === null || _data$SewerageConnect86 === void 0 ? void 0 : (_data$SewerageConnect87 = _data$SewerageConnect86[0]) === null || _data$SewerageConnect87 === void 0 ? void 0 : _data$SewerageConnect87.uuid,
|
|
28492
28419
|
fieldName: "gender",
|
|
28493
28420
|
model: "WnSConnectionOwner",
|
|
28494
28421
|
showValue: false,
|
|
@@ -28504,14 +28431,13 @@ const WSApplicationDetails = () => {
|
|
|
28504
28431
|
}
|
|
28505
28432
|
}
|
|
28506
28433
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28507
|
-
className: "border-none",
|
|
28508
28434
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
28509
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28435
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection93 = data.WaterConnection) === null || _data$WaterConnection93 === void 0 ? void 0 : (_data$WaterConnection94 = _data$WaterConnection93[0]) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94.connectionHolders) === null || _data$WaterConnection95 === void 0 ? void 0 : (_data$WaterConnection96 = _data$WaterConnection95[0]) === null || _data$WaterConnection96 === void 0 ? void 0 : _data$WaterConnection96.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect88 = data.SewerageConnections) === null || _data$SewerageConnect88 === void 0 ? void 0 : (_data$SewerageConnect89 = _data$SewerageConnect88[0]) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89.connectionHolders) === null || _data$SewerageConnect90 === void 0 ? void 0 : (_data$SewerageConnect91 = _data$SewerageConnect90[0]) === null || _data$SewerageConnect91 === void 0 ? void 0 : _data$SewerageConnect91.fatherOrHusbandName) || t("CS_NA"),
|
|
28510
28436
|
textStyle: {
|
|
28511
28437
|
whiteSpace: "pre"
|
|
28512
28438
|
},
|
|
28513
28439
|
privacy: {
|
|
28514
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28440
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection97 = data.WaterConnection) === null || _data$WaterConnection97 === void 0 ? void 0 : (_data$WaterConnection98 = _data$WaterConnection97[0]) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98.connectionHolders) === null || _data$WaterConnection99 === void 0 ? void 0 : (_data$WaterConnection100 = _data$WaterConnection99[0]) === null || _data$WaterConnection100 === void 0 ? void 0 : _data$WaterConnection100.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect92 = data.SewerageConnections) === null || _data$SewerageConnect92 === void 0 ? void 0 : (_data$SewerageConnect93 = _data$SewerageConnect92[0]) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93.connectionHolders) === null || _data$SewerageConnect94 === void 0 ? void 0 : (_data$SewerageConnect95 = _data$SewerageConnect94[0]) === null || _data$SewerageConnect95 === void 0 ? void 0 : _data$SewerageConnect95.uuid,
|
|
28515
28441
|
fieldName: "fatherOrHusbandName",
|
|
28516
28442
|
model: "WnSConnectionOwner",
|
|
28517
28443
|
showValue: false,
|
|
@@ -28527,14 +28453,13 @@ const WSApplicationDetails = () => {
|
|
|
28527
28453
|
}
|
|
28528
28454
|
}
|
|
28529
28455
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28530
|
-
className: "border-none",
|
|
28531
28456
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
28532
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28457
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection101 = data.WaterConnection) === null || _data$WaterConnection101 === void 0 ? void 0 : (_data$WaterConnection102 = _data$WaterConnection101[0]) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102.connectionHolders) === null || _data$WaterConnection103 === void 0 ? void 0 : (_data$WaterConnection104 = _data$WaterConnection103[0]) === null || _data$WaterConnection104 === void 0 ? void 0 : _data$WaterConnection104.relationship) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect96 = data.SewerageConnections) === null || _data$SewerageConnect96 === void 0 ? void 0 : (_data$SewerageConnect97 = _data$SewerageConnect96[0]) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97.connectionHolders) === null || _data$SewerageConnect98 === void 0 ? void 0 : (_data$SewerageConnect99 = _data$SewerageConnect98[0]) === null || _data$SewerageConnect99 === void 0 ? void 0 : _data$SewerageConnect99.relationship) || t("CS_NA"),
|
|
28533
28458
|
textStyle: {
|
|
28534
28459
|
whiteSpace: "pre"
|
|
28535
28460
|
},
|
|
28536
28461
|
privacy: {
|
|
28537
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28462
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection105 = data.WaterConnection) === null || _data$WaterConnection105 === void 0 ? void 0 : (_data$WaterConnection106 = _data$WaterConnection105[0]) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106.connectionHolders) === null || _data$WaterConnection107 === void 0 ? void 0 : (_data$WaterConnection108 = _data$WaterConnection107[0]) === null || _data$WaterConnection108 === void 0 ? void 0 : _data$WaterConnection108.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect100 = data.SewerageConnections) === null || _data$SewerageConnect100 === void 0 ? void 0 : (_data$SewerageConnect101 = _data$SewerageConnect100[0]) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101.connectionHolders) === null || _data$SewerageConnect102 === void 0 ? void 0 : (_data$SewerageConnect103 = _data$SewerageConnect102[0]) === null || _data$SewerageConnect103 === void 0 ? void 0 : _data$SewerageConnect103.uuid,
|
|
28538
28463
|
fieldName: "relationship",
|
|
28539
28464
|
model: "WnSConnection",
|
|
28540
28465
|
showValue: false,
|
|
@@ -28550,11 +28475,10 @@ const WSApplicationDetails = () => {
|
|
|
28550
28475
|
}
|
|
28551
28476
|
}
|
|
28552
28477
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28553
|
-
className: "border-none",
|
|
28554
28478
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
28555
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28479
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection109 = data.WaterConnection) === null || _data$WaterConnection109 === void 0 ? void 0 : (_data$WaterConnection110 = _data$WaterConnection109[0]) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110.connectionHolders) === null || _data$WaterConnection111 === void 0 ? void 0 : (_data$WaterConnection112 = _data$WaterConnection111[0]) === null || _data$WaterConnection112 === void 0 ? void 0 : _data$WaterConnection112.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect104 = data.SewerageConnections) === null || _data$SewerageConnect104 === void 0 ? void 0 : (_data$SewerageConnect105 = _data$SewerageConnect104[0]) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105.connectionHolders) === null || _data$SewerageConnect106 === void 0 ? void 0 : (_data$SewerageConnect107 = _data$SewerageConnect106[0]) === null || _data$SewerageConnect107 === void 0 ? void 0 : _data$SewerageConnect107.correspondenceAddress) || t("CS_NA"),
|
|
28556
28480
|
privacy: {
|
|
28557
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28481
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection113 = data.WaterConnection) === null || _data$WaterConnection113 === void 0 ? void 0 : (_data$WaterConnection114 = _data$WaterConnection113[0]) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114.connectionHolders) === null || _data$WaterConnection115 === void 0 ? void 0 : (_data$WaterConnection116 = _data$WaterConnection115[0]) === null || _data$WaterConnection116 === void 0 ? void 0 : _data$WaterConnection116.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect108 = data.SewerageConnections) === null || _data$SewerageConnect108 === void 0 ? void 0 : (_data$SewerageConnect109 = _data$SewerageConnect108[0]) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109.connectionHolders) === null || _data$SewerageConnect110 === void 0 ? void 0 : (_data$SewerageConnect111 = _data$SewerageConnect110[0]) === null || _data$SewerageConnect111 === void 0 ? void 0 : _data$SewerageConnect111.uuid,
|
|
28558
28482
|
fieldName: "correspondenceAddress",
|
|
28559
28483
|
model: "WnSConnectionOwner",
|
|
28560
28484
|
showValue: false,
|
|
@@ -28570,42 +28494,13 @@ const WSApplicationDetails = () => {
|
|
|
28570
28494
|
}
|
|
28571
28495
|
}
|
|
28572
28496
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28573
|
-
className: "border-none",
|
|
28574
|
-
label: t("WS_OWN_DETAIL_SPECIAL_APPLICANT_LABEL"),
|
|
28575
|
-
text: (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? !(data !== null && data !== void 0 && (_data$WaterConnection114 = data.WaterConnection) !== null && _data$WaterConnection114 !== void 0 && (_data$WaterConnection115 = _data$WaterConnection114[0]) !== null && _data$WaterConnection115 !== void 0 && (_data$WaterConnection116 = _data$WaterConnection115.connectionHolders) !== null && _data$WaterConnection116 !== void 0 && (_data$WaterConnection117 = _data$WaterConnection116[0]) !== null && _data$WaterConnection117 !== void 0 && (_data$WaterConnection118 = _data$WaterConnection117.ownerType) !== null && _data$WaterConnection118 !== void 0 && _data$WaterConnection118.includes("*")) : !(data !== null && data !== void 0 && (_data$SewerageConnect109 = data.SewerageConnections) !== null && _data$SewerageConnect109 !== void 0 && (_data$SewerageConnect110 = _data$SewerageConnect109[0]) !== null && _data$SewerageConnect110 !== void 0 && (_data$SewerageConnect111 = _data$SewerageConnect110.connectionHolders) !== null && _data$SewerageConnect111 !== void 0 && (_data$SewerageConnect112 = _data$SewerageConnect111[0]) !== null && _data$SewerageConnect112 !== void 0 && (_data$SewerageConnect113 = _data$SewerageConnect112.ownerType) !== null && _data$SewerageConnect113 !== void 0 && _data$SewerageConnect113.includes("*"))) ? t("COMMON_MASTERS_OWNERTYPE_" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection119 = data.WaterConnection) === null || _data$WaterConnection119 === void 0 ? void 0 : (_data$WaterConnection120 = _data$WaterConnection119[0]) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120.connectionHolders) === null || _data$WaterConnection121 === void 0 ? void 0 : (_data$WaterConnection122 = _data$WaterConnection121[0]) === null || _data$WaterConnection122 === void 0 ? void 0 : _data$WaterConnection122.ownerType : data === null || data === void 0 ? void 0 : (_data$SewerageConnect114 = data.SewerageConnections) === null || _data$SewerageConnect114 === void 0 ? void 0 : (_data$SewerageConnect115 = _data$SewerageConnect114[0]) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115.connectionHolders) === null || _data$SewerageConnect116 === void 0 ? void 0 : (_data$SewerageConnect117 = _data$SewerageConnect116[0]) === null || _data$SewerageConnect117 === void 0 ? void 0 : _data$SewerageConnect117.ownerType)) : applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection123 = data.WaterConnection) === null || _data$WaterConnection123 === void 0 ? void 0 : (_data$WaterConnection124 = _data$WaterConnection123[0]) === null || _data$WaterConnection124 === void 0 ? void 0 : (_data$WaterConnection125 = _data$WaterConnection124.connectionHolders) === null || _data$WaterConnection125 === void 0 ? void 0 : (_data$WaterConnection126 = _data$WaterConnection125[0]) === null || _data$WaterConnection126 === void 0 ? void 0 : _data$WaterConnection126.ownerType : data === null || data === void 0 ? void 0 : (_data$SewerageConnect118 = data.SewerageConnections) === null || _data$SewerageConnect118 === void 0 ? void 0 : (_data$SewerageConnect119 = _data$SewerageConnect118[0]) === null || _data$SewerageConnect119 === void 0 ? void 0 : (_data$SewerageConnect120 = _data$SewerageConnect119.connectionHolders) === null || _data$SewerageConnect120 === void 0 ? void 0 : (_data$SewerageConnect121 = _data$SewerageConnect120[0]) === null || _data$SewerageConnect121 === void 0 ? void 0 : _data$SewerageConnect121.ownerType,
|
|
28576
|
-
textStyle: {
|
|
28577
|
-
whiteSpace: "pre"
|
|
28578
|
-
},
|
|
28579
|
-
privacy: {
|
|
28580
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection127 = data.WaterConnection) === null || _data$WaterConnection127 === void 0 ? void 0 : (_data$WaterConnection128 = _data$WaterConnection127[0]) === null || _data$WaterConnection128 === void 0 ? void 0 : (_data$WaterConnection129 = _data$WaterConnection128.connectionHolders) === null || _data$WaterConnection129 === void 0 ? void 0 : (_data$WaterConnection130 = _data$WaterConnection129[0]) === null || _data$WaterConnection130 === void 0 ? void 0 : _data$WaterConnection130.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect122 = data.SewerageConnections) === null || _data$SewerageConnect122 === void 0 ? void 0 : (_data$SewerageConnect123 = _data$SewerageConnect122[0]) === null || _data$SewerageConnect123 === void 0 ? void 0 : (_data$SewerageConnect124 = _data$SewerageConnect123.connectionHolders) === null || _data$SewerageConnect124 === void 0 ? void 0 : (_data$SewerageConnect125 = _data$SewerageConnect124[0]) === null || _data$SewerageConnect125 === void 0 ? void 0 : _data$SewerageConnect125.uuid,
|
|
28581
|
-
fieldName: "ownerType",
|
|
28582
|
-
model: "WnSConnection",
|
|
28583
|
-
showValue: false,
|
|
28584
|
-
loadData: {
|
|
28585
|
-
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
28586
|
-
requestBody: {},
|
|
28587
|
-
requestParam: {
|
|
28588
|
-
tenantId,
|
|
28589
|
-
applicationNumber: applicationNobyData
|
|
28590
|
-
},
|
|
28591
|
-
jsonPath: serviceType === "WATER" ? "WaterConnection[0].connectionHolders[0].ownerType" : "SewerageConnections[0].connectionHolders[0].ownerType",
|
|
28592
|
-
isArray: false,
|
|
28593
|
-
d: res => {
|
|
28594
|
-
var _res$WaterConnection, _res$WaterConnection2, _res$WaterConnection3, _res$WaterConnection4, _res$WaterConnection5, _res$WaterConnection6, _res$SewerageConnecti, _res$SewerageConnecti2, _res$SewerageConnecti3, _res$SewerageConnecti4, _res$SewerageConnecti5;
|
|
28595
|
-
let resultString = res !== null && res !== void 0 && (_res$WaterConnection = res.WaterConnection) !== null && _res$WaterConnection !== void 0 && _res$WaterConnection[0] ? t("PROPERTYTAX_OWNERTYPE_" + (res === null || res === void 0 ? void 0 : (_res$WaterConnection2 = res.WaterConnection) === null || _res$WaterConnection2 === void 0 ? void 0 : (_res$WaterConnection3 = _res$WaterConnection2[0]) === null || _res$WaterConnection3 === void 0 ? void 0 : (_res$WaterConnection4 = _res$WaterConnection3.connectionHolders) === null || _res$WaterConnection4 === void 0 ? void 0 : (_res$WaterConnection5 = _res$WaterConnection4[0]) === null || _res$WaterConnection5 === void 0 ? void 0 : (_res$WaterConnection6 = _res$WaterConnection5.ownerType) === null || _res$WaterConnection6 === void 0 ? void 0 : _res$WaterConnection6.toUpperCase())) : t("PROPERTYTAX_OWNERTYPE_" + (res === null || res === void 0 ? void 0 : (_res$SewerageConnecti = res.SewerageConnections) === null || _res$SewerageConnecti === void 0 ? void 0 : (_res$SewerageConnecti2 = _res$SewerageConnecti[0]) === null || _res$SewerageConnecti2 === void 0 ? void 0 : (_res$SewerageConnecti3 = _res$SewerageConnecti2.connectionHolders) === null || _res$SewerageConnecti3 === void 0 ? void 0 : (_res$SewerageConnecti4 = _res$SewerageConnecti3[0]) === null || _res$SewerageConnecti4 === void 0 ? void 0 : (_res$SewerageConnecti5 = _res$SewerageConnecti4.ownerType) === null || _res$SewerageConnecti5 === void 0 ? void 0 : _res$SewerageConnecti5.toUpperCase()));
|
|
28596
|
-
return resultString;
|
|
28597
|
-
}
|
|
28598
|
-
}
|
|
28599
|
-
}
|
|
28600
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
28601
|
-
className: "border-none",
|
|
28602
28497
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
28603
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28498
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection117 = data.WaterConnection) === null || _data$WaterConnection117 === void 0 ? void 0 : (_data$WaterConnection118 = _data$WaterConnection117[0]) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118.connectionHolders) === null || _data$WaterConnection119 === void 0 ? void 0 : (_data$WaterConnection120 = _data$WaterConnection119[0]) === null || _data$WaterConnection120 === void 0 ? void 0 : _data$WaterConnection120.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect112 = data.SewerageConnections) === null || _data$SewerageConnect112 === void 0 ? void 0 : (_data$SewerageConnect113 = _data$SewerageConnect112[0]) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113.connectionHolders) === null || _data$SewerageConnect114 === void 0 ? void 0 : (_data$SewerageConnect115 = _data$SewerageConnect114[0]) === null || _data$SewerageConnect115 === void 0 ? void 0 : _data$SewerageConnect115.emailId) || "NA",
|
|
28604
28499
|
textStyle: {
|
|
28605
28500
|
whiteSpace: "pre"
|
|
28606
28501
|
},
|
|
28607
28502
|
privacy: {
|
|
28608
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28503
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection121 = data.WaterConnection) === null || _data$WaterConnection121 === void 0 ? void 0 : (_data$WaterConnection122 = _data$WaterConnection121[0]) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122.connectionHolders) === null || _data$WaterConnection123 === void 0 ? void 0 : (_data$WaterConnection124 = _data$WaterConnection123[0]) === null || _data$WaterConnection124 === void 0 ? void 0 : _data$WaterConnection124.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect116 = data.SewerageConnections) === null || _data$SewerageConnect116 === void 0 ? void 0 : (_data$SewerageConnect117 = _data$SewerageConnect116[0]) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117.connectionHolders) === null || _data$SewerageConnect118 === void 0 ? void 0 : (_data$SewerageConnect119 = _data$SewerageConnect118[0]) === null || _data$SewerageConnect119 === void 0 ? void 0 : _data$SewerageConnect119.uuid,
|
|
28609
28504
|
fieldName: "connectionHoldersEmailId",
|
|
28610
28505
|
model: "WnSConnectionOwner",
|
|
28611
28506
|
showValue: false,
|
|
@@ -28620,19 +28515,17 @@ const WSApplicationDetails = () => {
|
|
|
28620
28515
|
isArray: false
|
|
28621
28516
|
}
|
|
28622
28517
|
}
|
|
28623
|
-
}))) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(
|
|
28518
|
+
}))) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React.createElement(CardText, null, t("WS_SAME_AS_PROPERTY_OWNERS"))), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, {
|
|
28624
28519
|
styles: {
|
|
28625
28520
|
fontSize: "28px"
|
|
28626
28521
|
}
|
|
28627
28522
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
28628
|
-
className: "border-none",
|
|
28629
28523
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
28630
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28524
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection125 = data.WaterConnection) === null || _data$WaterConnection125 === void 0 ? void 0 : (_data$WaterConnection126 = _data$WaterConnection125[0]) === null || _data$WaterConnection126 === void 0 ? void 0 : _data$WaterConnection126.propertyId) || (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$SewerageConnect121.propertyId),
|
|
28631
28525
|
textStyle: {
|
|
28632
28526
|
wordBreak: "break-word"
|
|
28633
28527
|
}
|
|
28634
28528
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28635
|
-
className: "border-none",
|
|
28636
28529
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
28637
28530
|
text: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties4 = PTData.Properties) === null || _PTData$Properties4 === void 0 ? void 0 : (_PTData$Properties4$ = _PTData$Properties4[0]) === null || _PTData$Properties4$ === void 0 ? void 0 : (_PTData$Properties4$$ = _PTData$Properties4$.owners.sort((a, b) => {
|
|
28638
28531
|
var _a$additionalDetails, _b$additionalDetails;
|
|
@@ -28642,7 +28535,6 @@ const WSApplicationDetails = () => {
|
|
|
28642
28535
|
whiteSpace: "pre"
|
|
28643
28536
|
}
|
|
28644
28537
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28645
|
-
className: "border-none",
|
|
28646
28538
|
label: t("WS_PROPERTY_ADDRESS"),
|
|
28647
28539
|
text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties5 = PTData.Properties) === null || _PTData$Properties5 === void 0 ? void 0 : (_PTData$Properties5$ = _PTData$Properties5[0]) === null || _PTData$Properties5$ === void 0 ? void 0 : _PTData$Properties5$.address, t) || t("CS_NA"),
|
|
28648
28540
|
textStyle: {
|
|
@@ -28670,13 +28562,13 @@ const WSApplicationDetails = () => {
|
|
|
28670
28562
|
}
|
|
28671
28563
|
}
|
|
28672
28564
|
}), /*#__PURE__*/React.createElement(Link, {
|
|
28673
|
-
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28565
|
+
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection127 = data.WaterConnection) === null || _data$WaterConnection127 === void 0 ? void 0 : (_data$WaterConnection128 = _data$WaterConnection127[0]) === null || _data$WaterConnection128 === void 0 ? void 0 : _data$WaterConnection128.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect122 = data.SewerageConnections) === null || _data$SewerageConnect122 === void 0 ? void 0 : (_data$SewerageConnect123 = _data$SewerageConnect122[0]) === null || _data$SewerageConnect123 === void 0 ? void 0 : _data$SewerageConnect123.propertyId)) + "&tenantId=" + ((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$WaterConnection130.tenantId) || (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$SewerageConnect125.tenantId))
|
|
28674
28566
|
}, /*#__PURE__*/React.createElement(LinkButton, {
|
|
28675
28567
|
style: {
|
|
28676
28568
|
textAlign: "left"
|
|
28677
28569
|
},
|
|
28678
28570
|
label: t("WS_VIEW_PROPERTY")
|
|
28679
|
-
})))), /*#__PURE__*/React.createElement(
|
|
28571
|
+
})))), /*#__PURE__*/React.createElement(CardHeader, {
|
|
28680
28572
|
styles: {
|
|
28681
28573
|
fontSize: "28px"
|
|
28682
28574
|
}
|
|
@@ -28742,7 +28634,7 @@ const WSApplicationDetails = () => {
|
|
|
28742
28634
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28743
28635
|
label: t("LANDMARK"),
|
|
28744
28636
|
text: "" + t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
|
|
28745
|
-
}))
|
|
28637
|
+
})), /*#__PURE__*/React.createElement(CardHeader, {
|
|
28746
28638
|
styles: {
|
|
28747
28639
|
fontSize: "28px"
|
|
28748
28640
|
}
|
|
@@ -28778,7 +28670,7 @@ const WSApplicationDetails = () => {
|
|
|
28778
28670
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28779
28671
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
28780
28672
|
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))
|
|
28781
|
-
}))
|
|
28673
|
+
})), /*#__PURE__*/React.createElement(CardHeader, {
|
|
28782
28674
|
styles: {
|
|
28783
28675
|
fontSize: "28px"
|
|
28784
28676
|
}
|
|
@@ -28799,7 +28691,7 @@ const WSApplicationDetails = () => {
|
|
|
28799
28691
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28800
28692
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
28801
28693
|
text: "" + t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))
|
|
28802
|
-
})))
|
|
28694
|
+
}))), /*#__PURE__*/React.createElement(CardHeader, {
|
|
28803
28695
|
styles: {
|
|
28804
28696
|
fontSize: "28px"
|
|
28805
28697
|
}
|
|
@@ -28820,19 +28712,19 @@ const WSApplicationDetails = () => {
|
|
|
28820
28712
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
28821
28713
|
label: t("WS_BANK_ACCOUNT_NO"),
|
|
28822
28714
|
text: "" + t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))
|
|
28823
|
-
}))
|
|
28715
|
+
})), /*#__PURE__*/React.createElement(CardHeader, {
|
|
28824
28716
|
styles: {
|
|
28825
28717
|
fontSize: "28px"
|
|
28826
28718
|
}
|
|
28827
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
28828
|
-
var _doc$documentType, _data$
|
|
28719
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection131 = data.WaterConnection) === null || _data$WaterConnection131 === void 0 ? void 0 : (_data$WaterConnection132 = _data$WaterConnection131[0]) === null || _data$WaterConnection132 === void 0 ? void 0 : _data$WaterConnection132.documents) && (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$WaterConnection134.documents.map((doc, index) => {
|
|
28720
|
+
var _doc$documentType, _data$WaterConnection135, _data$WaterConnection136, _data$WaterConnection137, _data$WaterConnection138;
|
|
28829
28721
|
return /*#__PURE__*/React.createElement("div", {
|
|
28830
28722
|
key: "doc-" + index
|
|
28831
28723
|
}, /*#__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, {
|
|
28832
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28724
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection135 = data.WaterConnection) === null || _data$WaterConnection135 === void 0 ? void 0 : (_data$WaterConnection136 = _data$WaterConnection135[0]) === null || _data$WaterConnection136 === void 0 ? void 0 : _data$WaterConnection136.documents,
|
|
28833
28725
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28834
28726
|
index: index
|
|
28835
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28727
|
+
}), (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$WaterConnection138.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
28836
28728
|
style: {
|
|
28837
28729
|
color: "#cccccc",
|
|
28838
28730
|
backgroundColor: "#cccccc",
|
|
@@ -28841,15 +28733,15 @@ const WSApplicationDetails = () => {
|
|
|
28841
28733
|
marginBottom: "20px"
|
|
28842
28734
|
}
|
|
28843
28735
|
}) : null)));
|
|
28844
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
28845
|
-
var _doc$documentType2, _data$
|
|
28736
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect126 = data.SewerageConnections) === null || _data$SewerageConnect126 === void 0 ? void 0 : (_data$SewerageConnect127 = _data$SewerageConnect126[0]) === null || _data$SewerageConnect127 === void 0 ? void 0 : _data$SewerageConnect127.documents) && (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$SewerageConnect129.documents.map((doc, index) => {
|
|
28737
|
+
var _doc$documentType2, _data$SewerageConnect130, _data$SewerageConnect131, _data$SewerageConnect132, _data$SewerageConnect133;
|
|
28846
28738
|
return /*#__PURE__*/React.createElement("div", {
|
|
28847
28739
|
key: "doc-" + index
|
|
28848
28740
|
}, /*#__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, {
|
|
28849
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28741
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect130 = data.SewerageConnections) === null || _data$SewerageConnect130 === void 0 ? void 0 : (_data$SewerageConnect131 = _data$SewerageConnect130[0]) === null || _data$SewerageConnect131 === void 0 ? void 0 : _data$SewerageConnect131.documents,
|
|
28850
28742
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28851
28743
|
index: index
|
|
28852
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28744
|
+
}), (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$SewerageConnect133.documents.length) != index + 1 ? /*#__PURE__*/React.createElement("hr", {
|
|
28853
28745
|
style: {
|
|
28854
28746
|
color: "white",
|
|
28855
28747
|
backgroundColor: "white",
|
|
@@ -28858,42 +28750,36 @@ const WSApplicationDetails = () => {
|
|
|
28858
28750
|
marginBottom: "20px"
|
|
28859
28751
|
}
|
|
28860
28752
|
}) : null)));
|
|
28861
|
-
}))
|
|
28862
|
-
id: "timeline"
|
|
28863
|
-
}, /*#__PURE__*/React.createElement(WSWFApplicationTimeline, {
|
|
28864
|
-
application: (data === null || data === void 0 ? void 0 : (_data$WaterConnection153 = data.WaterConnection) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect148 = data.SewerageConnections) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148[0]),
|
|
28865
|
-
id: (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) || (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.applicationNo),
|
|
28866
|
-
paymentbuttonenabled: false
|
|
28867
|
-
})), (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.applicationStatus) === "PENDING_FOR_PAYMENT" || (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.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
|
|
28753
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection139 = data.WaterConnection) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139[0]) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect134 = data.SewerageConnections) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134[0]) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement(Link, {
|
|
28868
28754
|
to: {
|
|
28869
|
-
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data20 = paymentDetails.data) === null || _paymentDetails$data20 === void 0 ? void 0 : (_paymentDetails$data21 = _paymentDetails$data20.Bill) === null || _paymentDetails$data21 === void 0 ? void 0 : (_paymentDetails$data22 = _paymentDetails$data21[0]) === null || _paymentDetails$data22 === void 0 ? void 0 : _paymentDetails$data22.businessService) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$
|
|
28755
|
+
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data20 = paymentDetails.data) === null || _paymentDetails$data20 === void 0 ? void 0 : (_paymentDetails$data21 = _paymentDetails$data20.Bill) === null || _paymentDetails$data21 === void 0 ? void 0 : (_paymentDetails$data22 = _paymentDetails$data21[0]) === null || _paymentDetails$data22 === void 0 ? void 0 : _paymentDetails$data22.businessService) + "/" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? stringReplaceAll(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$WaterConnection142.connectionNo, "/", "+") || stringReplaceAll(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$SewerageConnect137.connectionNo, "/", "+") : stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$WaterConnection143 = data.WaterConnection) === null || _data$WaterConnection143 === void 0 ? void 0 : (_data$WaterConnection144 = _data$WaterConnection143[0]) === null || _data$WaterConnection144 === void 0 ? void 0 : _data$WaterConnection144.applicationNo, "/", "+") || stringReplaceAll(data === null || data === void 0 ? void 0 : (_data$SewerageConnect138 = data.SewerageConnections) === null || _data$SewerageConnect138 === void 0 ? void 0 : (_data$SewerageConnect139 = _data$SewerageConnect138[0]) === null || _data$SewerageConnect139 === void 0 ? void 0 : _data$SewerageConnect139.applicationNo, "/", "+")) + "?workflow=WNS&tenantId=" + ((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$WaterConnection146.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect140 = data.SewerageConnections) === null || _data$SewerageConnect140 === void 0 ? void 0 : (_data$SewerageConnect141 = _data$SewerageConnect140[0]) === null || _data$SewerageConnect141 === void 0 ? void 0 : _data$SewerageConnect141.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection147 = data.WaterConnection) === null || _data$WaterConnection147 === void 0 ? void 0 : (_data$WaterConnection148 = _data$WaterConnection147[0]) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148.connectionHolders) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect142 = data.SewerageConnections) === null || _data$SewerageConnect142 === void 0 ? void 0 : (_data$SewerageConnect143 = _data$SewerageConnect142[0]) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143.connectionHolders) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : (_PTData$Properties8$$ = _PTData$Properties8$.owners) === null || _PTData$Properties8$$ === void 0 ? void 0 : _PTData$Properties8$$.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false),
|
|
28870
28756
|
state: {}
|
|
28871
28757
|
}
|
|
28872
28758
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
28873
28759
|
label: t("MAKE_PAYMENT")
|
|
28874
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
28760
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection150 = data.WaterConnection) !== null && _data$WaterConnection150 !== void 0 && (_data$WaterConnection151 = _data$WaterConnection150[0]) !== null && _data$WaterConnection151 !== void 0 && _data$WaterConnection151.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection152 = data.WaterConnection) !== null && _data$WaterConnection152 !== void 0 && (_data$WaterConnection153 = _data$WaterConnection152[0]) !== null && _data$WaterConnection153 !== void 0 && _data$WaterConnection153.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect145 = data.SewerageConnections) !== null && _data$SewerageConnect145 !== void 0 && (_data$SewerageConnect146 = _data$SewerageConnect145[0]) !== null && _data$SewerageConnect146 !== void 0 && _data$SewerageConnect146.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect147 = data.SewerageConnections) !== null && _data$SewerageConnect147 !== void 0 && (_data$SewerageConnect148 = _data$SewerageConnect147[0]) !== null && _data$SewerageConnect148 !== void 0 && _data$SewerageConnect148.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
|
|
28875
28761
|
to: {
|
|
28876
|
-
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28762
|
+
pathname: "/digit-ui/citizen/ws/edit-application/" + ((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.tenantId) || (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.tenantId)),
|
|
28877
28763
|
state: {
|
|
28878
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28764
|
+
id: "" + ((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.applicationNo) || (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.applicationNo))
|
|
28879
28765
|
}
|
|
28880
28766
|
}
|
|
28881
28767
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
28882
28768
|
label: t("COMMON_EDIT")
|
|
28883
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
28769
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection158 = data.WaterConnection) !== null && _data$WaterConnection158 !== void 0 && (_data$WaterConnection159 = _data$WaterConnection158[0]) !== null && _data$WaterConnection159 !== void 0 && _data$WaterConnection159.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection160 = data.WaterConnection) !== null && _data$WaterConnection160 !== void 0 && (_data$WaterConnection161 = _data$WaterConnection160[0]) !== null && _data$WaterConnection161 !== void 0 && _data$WaterConnection161.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect153 = data.SewerageConnections) !== null && _data$SewerageConnect153 !== void 0 && (_data$SewerageConnect154 = _data$SewerageConnect153[0]) !== null && _data$SewerageConnect154 !== void 0 && _data$SewerageConnect154.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect155 = data.SewerageConnections) !== null && _data$SewerageConnect155 !== void 0 && (_data$SewerageConnect156 = _data$SewerageConnect155[0]) !== null && _data$SewerageConnect156 !== void 0 && _data$SewerageConnect156.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React.createElement(Link, {
|
|
28884
28770
|
to: {
|
|
28885
28771
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
28886
28772
|
state: {
|
|
28887
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28773
|
+
id: "" + ((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.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect157 = data.SewerageConnections) === null || _data$SewerageConnect157 === void 0 ? void 0 : (_data$SewerageConnect158 = _data$SewerageConnect157[0]) === null || _data$SewerageConnect158 === void 0 ? void 0 : _data$SewerageConnect158.applicationNo))
|
|
28888
28774
|
}
|
|
28889
28775
|
}
|
|
28890
28776
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
28891
28777
|
label: t("RESUBMIT_APPLICATION"),
|
|
28892
28778
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
28893
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28779
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect159 = data.SewerageConnections) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159[0],
|
|
28894
28780
|
serviceType: "SEWERAGE",
|
|
28895
28781
|
WSDisconnectionForm: {
|
|
28896
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28782
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect160 = data.SewerageConnections) !== null && _data$SewerageConnect160 !== void 0 && (_data$SewerageConnect161 = _data$SewerageConnect160[0]) !== null && _data$SewerageConnect161 !== void 0 && _data$SewerageConnect161.isDisconnectionTemporary ? {
|
|
28897
28783
|
code: "type",
|
|
28898
28784
|
value: {
|
|
28899
28785
|
name: "Temporary",
|
|
@@ -28910,18 +28796,18 @@ const WSApplicationDetails = () => {
|
|
|
28910
28796
|
code: "Permanent"
|
|
28911
28797
|
}
|
|
28912
28798
|
},
|
|
28913
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28799
|
+
date: convertEpochToDateDMY(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.dateEffectiveFrom, true),
|
|
28914
28800
|
reason: {
|
|
28915
28801
|
code: "reason",
|
|
28916
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28802
|
+
value: 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.disconnectionReason
|
|
28917
28803
|
},
|
|
28918
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28804
|
+
documents: 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$SewerageConnect167.documents
|
|
28919
28805
|
}
|
|
28920
28806
|
} : {
|
|
28921
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28807
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection164 = data.WaterConnection) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164[0],
|
|
28922
28808
|
serviceType: "WATER",
|
|
28923
28809
|
WSDisconnectionForm: {
|
|
28924
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28810
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection165 = data.WaterConnection) !== null && _data$WaterConnection165 !== void 0 && (_data$WaterConnection166 = _data$WaterConnection165[0]) !== null && _data$WaterConnection166 !== void 0 && _data$WaterConnection166.isDisconnectionTemporary ? {
|
|
28925
28811
|
code: "type",
|
|
28926
28812
|
value: {
|
|
28927
28813
|
name: "Temporary",
|
|
@@ -28938,15 +28824,15 @@ const WSApplicationDetails = () => {
|
|
|
28938
28824
|
code: "Permanent"
|
|
28939
28825
|
}
|
|
28940
28826
|
},
|
|
28941
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28827
|
+
date: convertEpochToDateDMY(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.dateEffectiveFrom, true),
|
|
28942
28828
|
reason: {
|
|
28943
28829
|
code: "reason",
|
|
28944
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28830
|
+
value: 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.disconnectionReason
|
|
28945
28831
|
},
|
|
28946
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28832
|
+
documents: 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.documents
|
|
28947
28833
|
}
|
|
28948
28834
|
})
|
|
28949
|
-
})) : null)));
|
|
28835
|
+
})) : null)))));
|
|
28950
28836
|
};
|
|
28951
28837
|
|
|
28952
28838
|
const WSAdditionalDetails = () => {
|
|
@@ -31145,7 +31031,7 @@ const WSConnection = _ref => {
|
|
|
31145
31031
|
};
|
|
31146
31032
|
|
|
31147
31033
|
const MyConnections = _ref => {
|
|
31148
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList
|
|
31034
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList;
|
|
31149
31035
|
const _useTranslation = useTranslation(),
|
|
31150
31036
|
t = _useTranslation.t;
|
|
31151
31037
|
const user = Digit.UserService.getUser();
|
|
@@ -31176,7 +31062,7 @@ const MyConnections = _ref => {
|
|
|
31176
31062
|
}),
|
|
31177
31063
|
isSWLoading = _Digit$Hooks$ws$useMy2.isLoading,
|
|
31178
31064
|
SWdata = _Digit$Hooks$ws$useMy2.data;
|
|
31179
|
-
let connectionList = data === null || data === void 0 ? void 0 : data.WaterConnection.concat(SWdata === null || SWdata === void 0 ? void 0 : SWdata.SewerageConnections);
|
|
31065
|
+
let connectionList = ((data === null || data === void 0 ? void 0 : data.WaterConnection) || []).concat((SWdata === null || SWdata === void 0 ? void 0 : SWdata.SewerageConnections) || []);
|
|
31180
31066
|
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 === null || ob === void 0 ? void 0 : ob.propertyId).join(",")) || "";
|
|
31181
31067
|
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 === null || ob === void 0 ? void 0 : ob.propertyId).join(",")) || "";
|
|
31182
31068
|
let applicationNos = applicationNoWS.concat(applicaionNoSW);
|
|
@@ -31199,16 +31085,114 @@ const MyConnections = _ref => {
|
|
|
31199
31085
|
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]
|
|
31200
31086
|
});
|
|
31201
31087
|
});
|
|
31088
|
+
const _useState = useState(0),
|
|
31089
|
+
pageOffset = _useState[0],
|
|
31090
|
+
setPageOffset = _useState[1];
|
|
31091
|
+
const _useState2 = useState(10),
|
|
31092
|
+
pageSize = _useState2[0],
|
|
31093
|
+
setPageSize = _useState2[1];
|
|
31094
|
+
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
31095
|
+
const GetCell = value => /*#__PURE__*/React.createElement("span", {
|
|
31096
|
+
className: "cell-text"
|
|
31097
|
+
}, value);
|
|
31098
|
+
const columns = useMemo(() => {
|
|
31099
|
+
return [{
|
|
31100
|
+
Header: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
31101
|
+
disableSortBy: true,
|
|
31102
|
+
Cell: _ref2 => {
|
|
31103
|
+
var _row$original, _row$original2;
|
|
31104
|
+
let row = _ref2.row;
|
|
31105
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
31106
|
+
className: "link"
|
|
31107
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
31108
|
+
to: {
|
|
31109
|
+
pathname: "/digit-ui/citizen/ws/connection/details/" + encodeURI((_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationNo),
|
|
31110
|
+
state: _extends({}, row.original)
|
|
31111
|
+
}
|
|
31112
|
+
}, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.connectionNo) || "NA"));
|
|
31113
|
+
}
|
|
31114
|
+
}, {
|
|
31115
|
+
Header: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
31116
|
+
disableSortBy: true,
|
|
31117
|
+
Cell: _ref3 => {
|
|
31118
|
+
var _row$original3;
|
|
31119
|
+
let row = _ref3.row;
|
|
31120
|
+
return /*#__PURE__*/React.createElement("span", null, ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.applicationNo) || "NA");
|
|
31121
|
+
}
|
|
31122
|
+
}, {
|
|
31123
|
+
Header: t("WS_SERVICE_NAME_LABEL"),
|
|
31124
|
+
disableSortBy: true,
|
|
31125
|
+
Cell: _ref4 => {
|
|
31126
|
+
var _row$original4;
|
|
31127
|
+
let row = _ref4.row;
|
|
31128
|
+
return GetCell(t("WS_APPLICATION_TYPE_" + ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.applicationType)));
|
|
31129
|
+
}
|
|
31130
|
+
}, {
|
|
31131
|
+
Header: t("WS_CONSUMER_NAME"),
|
|
31132
|
+
disableSortBy: true,
|
|
31133
|
+
Cell: _ref5 => {
|
|
31134
|
+
var _row$original5, _row$original5$connec, _row$original6, _row$original6$proper, _row$original6$proper2, _row$original6$proper3;
|
|
31135
|
+
let row = _ref5.row;
|
|
31136
|
+
const names = ((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : (_row$original5$connec = _row$original5.connectionHolders) === null || _row$original5$connec === void 0 ? void 0 : _row$original5$connec.map(owner => owner.name).join(",")) || ((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : (_row$original6$proper = _row$original6.property) === null || _row$original6$proper === void 0 ? void 0 : (_row$original6$proper2 = _row$original6$proper.owners) === null || _row$original6$proper2 === void 0 ? void 0 : (_row$original6$proper3 = _row$original6$proper2.sort((a, b) => {
|
|
31137
|
+
var _a$additionalDetails, _b$additionalDetails;
|
|
31138
|
+
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);
|
|
31139
|
+
})) === null || _row$original6$proper3 === void 0 ? void 0 : _row$original6$proper3.map(owner => owner.name).join(",")) || t("CS_NA");
|
|
31140
|
+
return GetCell(names);
|
|
31141
|
+
}
|
|
31142
|
+
}, {
|
|
31143
|
+
Header: t("WS_MYCONNECTIONS_STATUS"),
|
|
31144
|
+
disableSortBy: true,
|
|
31145
|
+
Cell: _ref6 => {
|
|
31146
|
+
var _row$original7;
|
|
31147
|
+
let row = _ref6.row;
|
|
31148
|
+
return GetCell(t((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.status) || t("CS_NA"));
|
|
31149
|
+
}
|
|
31150
|
+
}, {
|
|
31151
|
+
Header: t("WS_VIEW_DETAILS"),
|
|
31152
|
+
disableSortBy: true,
|
|
31153
|
+
Cell: _ref7 => {
|
|
31154
|
+
let row = _ref7.row;
|
|
31155
|
+
const application = row.original;
|
|
31156
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
31157
|
+
className: "link"
|
|
31158
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
31159
|
+
to: {
|
|
31160
|
+
pathname: "/digit-ui/citizen/ws/connection/details/" + encodeURI(application === null || application === void 0 ? void 0 : application.applicationNo),
|
|
31161
|
+
state: _extends({}, application)
|
|
31162
|
+
}
|
|
31163
|
+
}, t("WS_VIEW_DETAILS_LABEL")));
|
|
31164
|
+
}
|
|
31165
|
+
}];
|
|
31166
|
+
}, [t]);
|
|
31202
31167
|
if (isLoading || PTisLoading || isSWLoading) {
|
|
31203
31168
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
31204
31169
|
}
|
|
31205
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
31170
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
31206
31171
|
t: t
|
|
31207
|
-
}), /*#__PURE__*/React.createElement("div", null, ((_connectionList = connectionList) === null || _connectionList === void 0 ? void 0 : _connectionList.length) > 0
|
|
31172
|
+
}), /*#__PURE__*/React.createElement("div", null, ((_connectionList = connectionList) === null || _connectionList === void 0 ? void 0 : _connectionList.length) > 0 ? isMobile ? connectionList.map((application, index) => /*#__PURE__*/React.createElement("div", {
|
|
31208
31173
|
key: index
|
|
31209
31174
|
}, /*#__PURE__*/React.createElement(WSConnection, {
|
|
31210
31175
|
application: application
|
|
31211
|
-
})))
|
|
31176
|
+
}))) : /*#__PURE__*/React.createElement(Table, {
|
|
31177
|
+
t: t,
|
|
31178
|
+
data: connectionList.slice(pageOffset, pageOffset + pageSize),
|
|
31179
|
+
totalRecords: connectionList.length,
|
|
31180
|
+
columns: columns,
|
|
31181
|
+
getCellProps: cellInfo => {
|
|
31182
|
+
return {
|
|
31183
|
+
style: {
|
|
31184
|
+
padding: "20px 18px",
|
|
31185
|
+
fontSize: "16px"
|
|
31186
|
+
}
|
|
31187
|
+
};
|
|
31188
|
+
},
|
|
31189
|
+
onPageSizeChange: e => setPageSize(Number(e.target.value)),
|
|
31190
|
+
currentPage: Math.floor(pageOffset / pageSize),
|
|
31191
|
+
onNextPage: () => setPageOffset(pageOffset + pageSize),
|
|
31192
|
+
onPrevPage: () => setPageOffset(pageOffset - pageSize),
|
|
31193
|
+
pageSizeLimit: pageSize,
|
|
31194
|
+
disableSort: true
|
|
31195
|
+
}) : /*#__PURE__*/React.createElement("p", {
|
|
31212
31196
|
style: {
|
|
31213
31197
|
marginLeft: "16px",
|
|
31214
31198
|
marginTop: "16px"
|
|
@@ -32454,176 +32438,6 @@ const WSInfoPage = () => {
|
|
|
32454
32438
|
})));
|
|
32455
32439
|
};
|
|
32456
32440
|
|
|
32457
|
-
const _excluded$3 = ["address", "actionCancelOnSubmit", "isEdit", "onSelect", "config", "hideZRO", "formData"];
|
|
32458
|
-
const PropertyLocationDetails = _ref => {
|
|
32459
|
-
var _formDataProp$cpt2;
|
|
32460
|
-
let address = _ref.address,
|
|
32461
|
-
isEdit = _ref.isEdit,
|
|
32462
|
-
onSelect = _ref.onSelect,
|
|
32463
|
-
config = _ref.config,
|
|
32464
|
-
hideZRO = _ref.hideZRO,
|
|
32465
|
-
formDataProp = _ref.formData,
|
|
32466
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
32467
|
-
const _useTranslation = useTranslation(),
|
|
32468
|
-
t = _useTranslation.t;
|
|
32469
|
-
const _useState = useState(null),
|
|
32470
|
-
showToast = _useState[0],
|
|
32471
|
-
setShowToast = _useState[1];
|
|
32472
|
-
const _useState2 = useState({
|
|
32473
|
-
addressType: (address === null || address === void 0 ? void 0 : address.addressType) || "",
|
|
32474
|
-
pincode: (address === null || address === void 0 ? void 0 : address.pinCode) || "",
|
|
32475
|
-
city: (address === null || address === void 0 ? void 0 : address.city) || "",
|
|
32476
|
-
locality: (address === null || address === void 0 ? void 0 : address.locality) || "",
|
|
32477
|
-
streetName: (address === null || address === void 0 ? void 0 : address.streetName) || "",
|
|
32478
|
-
houseNo: (address === null || address === void 0 ? void 0 : address.houseNumber) || "",
|
|
32479
|
-
houseName: (address === null || address === void 0 ? void 0 : address.houseName) || "",
|
|
32480
|
-
landmark: (address === null || address === void 0 ? void 0 : address.landmark) || "",
|
|
32481
|
-
addressLine1: (address === null || address === void 0 ? void 0 : address.address) || "",
|
|
32482
|
-
addressLine2: (address === null || address === void 0 ? void 0 : address.address2) || "",
|
|
32483
|
-
latitude: (address === null || address === void 0 ? void 0 : address.latitude) || "",
|
|
32484
|
-
longitude: (address === null || address === void 0 ? void 0 : address.longitude) || "",
|
|
32485
|
-
assembly: (address === null || address === void 0 ? void 0 : address.assembly) || "",
|
|
32486
|
-
block: (address === null || address === void 0 ? void 0 : address.block) || "",
|
|
32487
|
-
zone: (address === null || address === void 0 ? void 0 : address.zone) || "",
|
|
32488
|
-
zroLocation: (address === null || address === void 0 ? void 0 : address.zroLocation) || "",
|
|
32489
|
-
subLocality: (address === null || address === void 0 ? void 0 : address.subLocality) || "",
|
|
32490
|
-
actualAssembly: (address === null || address === void 0 ? void 0 : address.actualAssembly) || "",
|
|
32491
|
-
actualWard: (address === null || address === void 0 ? void 0 : address.actualWard) || "",
|
|
32492
|
-
actualZone: (address === null || address === void 0 ? void 0 : address.actualZone) || ""
|
|
32493
|
-
}),
|
|
32494
|
-
formData = _useState2[0],
|
|
32495
|
-
setFormData = _useState2[1];
|
|
32496
|
-
const isPropertyFound = window.location.href.includes("ws/old-application");
|
|
32497
|
-
useEffect(() => {
|
|
32498
|
-
if (props.register) {
|
|
32499
|
-
props.register({
|
|
32500
|
-
name: "cpt"
|
|
32501
|
-
});
|
|
32502
|
-
props.register({
|
|
32503
|
-
name: "cptId"
|
|
32504
|
-
});
|
|
32505
|
-
}
|
|
32506
|
-
}, [props.register]);
|
|
32507
|
-
useEffect(() => {
|
|
32508
|
-
var _formDataProp$cpt;
|
|
32509
|
-
if (formDataProp !== null && formDataProp !== void 0 && (_formDataProp$cpt = formDataProp.cpt) !== null && _formDataProp$cpt !== void 0 && _formDataProp$cpt.details) {
|
|
32510
|
-
var _addressData$locality, _addressData$geoLocat, _addressData$geoLocat2, _addressData$locality2, _addressData$geoLocat3, _addressData$geoLocat4, _addressData$locality3, _addressData$addition, _addressData$addition2, _addressData$addition3, _addressData$addition4, _addressData$addition5, _addressData$addition6, _addressData$addition7, _addressData$addition8, _addressData$addition9, _addressData$addition0, _addressData$addition1, _addressData$addition10, _addressData$addition11;
|
|
32511
|
-
const details = formDataProp.cpt.details;
|
|
32512
|
-
const addressData = details.address || {};
|
|
32513
|
-
const additionalDetails = details.additionalDetails || {};
|
|
32514
|
-
const localityCode = ((_addressData$locality = addressData.locality) === null || _addressData$locality === void 0 ? void 0 : _addressData$locality.code) || addressData.locality || "";
|
|
32515
|
-
const lat = (_addressData$geoLocat = addressData.geoLocation) !== null && _addressData$geoLocat !== void 0 && _addressData$geoLocat.latitude && ((_addressData$geoLocat2 = addressData.geoLocation) === null || _addressData$geoLocat2 === void 0 ? void 0 : _addressData$geoLocat2.latitude) !== 0 ? addressData.geoLocation.latitude : ((_addressData$locality2 = addressData.locality) === null || _addressData$locality2 === void 0 ? void 0 : _addressData$locality2.latitude) || addressData.latitude || "";
|
|
32516
|
-
const lng = (_addressData$geoLocat3 = addressData.geoLocation) !== null && _addressData$geoLocat3 !== void 0 && _addressData$geoLocat3.longitude && ((_addressData$geoLocat4 = addressData.geoLocation) === null || _addressData$geoLocat4 === void 0 ? void 0 : _addressData$geoLocat4.longitude) !== 0 ? addressData.geoLocation.longitude : ((_addressData$locality3 = addressData.locality) === null || _addressData$locality3 === void 0 ? void 0 : _addressData$locality3.longitude) || addressData.longitude || "";
|
|
32517
|
-
const zroCode = addressData.zroLocation || additionalDetails.zroLocation || ((_addressData$addition = addressData.additionalDetails) === null || _addressData$addition === void 0 ? void 0 : _addressData$addition.zroLocation) || "";
|
|
32518
|
-
const zroValue = zroCode ? {
|
|
32519
|
-
code: zroCode,
|
|
32520
|
-
name: zroCode,
|
|
32521
|
-
i18nKey: zroCode
|
|
32522
|
-
} : "";
|
|
32523
|
-
setFormData({
|
|
32524
|
-
pincode: addressData.pincode || "",
|
|
32525
|
-
city: addressData.city || "",
|
|
32526
|
-
locality: localityCode,
|
|
32527
|
-
streetName: addressData.street || "",
|
|
32528
|
-
houseNo: addressData.houseNo || "",
|
|
32529
|
-
landmark: addressData.landmark || "",
|
|
32530
|
-
latitude: lat,
|
|
32531
|
-
longitude: lng,
|
|
32532
|
-
assembly: additionalDetails.assembly || ((_addressData$addition2 = addressData.additionalDetails) === null || _addressData$addition2 === void 0 ? void 0 : _addressData$addition2.assembly) || "",
|
|
32533
|
-
block: additionalDetails.block || ((_addressData$addition3 = addressData.additionalDetails) === null || _addressData$addition3 === void 0 ? void 0 : _addressData$addition3.block) || "",
|
|
32534
|
-
zone: additionalDetails.zone || ((_addressData$addition4 = addressData.additionalDetails) === null || _addressData$addition4 === void 0 ? void 0 : _addressData$addition4.zone) || "",
|
|
32535
|
-
zroLocation: zroCode,
|
|
32536
|
-
zro: zroValue,
|
|
32537
|
-
subLocality: addressData.subLocality || "",
|
|
32538
|
-
actualAssembly: addressData.actualAssembly || additionalDetails.actualAssembly || ((_addressData$addition5 = addressData.additionalDetails) === null || _addressData$addition5 === void 0 ? void 0 : _addressData$addition5.actualAssembly) || "",
|
|
32539
|
-
actualWard: addressData.actualWard || additionalDetails.actualWard || ((_addressData$addition6 = addressData.additionalDetails) === null || _addressData$addition6 === void 0 ? void 0 : _addressData$addition6.actualWard) || "",
|
|
32540
|
-
actualZone: addressData.actualZone || additionalDetails.actualZone || ((_addressData$addition7 = addressData.additionalDetails) === null || _addressData$addition7 === void 0 ? void 0 : _addressData$addition7.actualZone) || "",
|
|
32541
|
-
address: _extends({}, addressData, {
|
|
32542
|
-
city: addressData.city || "",
|
|
32543
|
-
pincode: addressData.pincode || "",
|
|
32544
|
-
locality: localityCode,
|
|
32545
|
-
streetName: addressData.street || "",
|
|
32546
|
-
houseNo: addressData.houseNo || "",
|
|
32547
|
-
addressLine1: addressData.street || "",
|
|
32548
|
-
latitude: lat,
|
|
32549
|
-
longitude: lng,
|
|
32550
|
-
zroLocation: zroCode,
|
|
32551
|
-
zro: zroValue,
|
|
32552
|
-
assembly: additionalDetails.assembly || ((_addressData$addition8 = addressData.additionalDetails) === null || _addressData$addition8 === void 0 ? void 0 : _addressData$addition8.assembly) || "",
|
|
32553
|
-
block: additionalDetails.block || ((_addressData$addition9 = addressData.additionalDetails) === null || _addressData$addition9 === void 0 ? void 0 : _addressData$addition9.block) || "",
|
|
32554
|
-
zone: additionalDetails.zone || ((_addressData$addition0 = addressData.additionalDetails) === null || _addressData$addition0 === void 0 ? void 0 : _addressData$addition0.zone) || "",
|
|
32555
|
-
subLocality: addressData.subLocality || "",
|
|
32556
|
-
actualWard: addressData.actualWard || additionalDetails.actualWard || ((_addressData$addition1 = addressData.additionalDetails) === null || _addressData$addition1 === void 0 ? void 0 : _addressData$addition1.actualWard) || "",
|
|
32557
|
-
actualZone: addressData.actualZone || additionalDetails.actualZone || ((_addressData$addition10 = addressData.additionalDetails) === null || _addressData$addition10 === void 0 ? void 0 : _addressData$addition10.actualZone) || "",
|
|
32558
|
-
actualAssembly: addressData.actualAssembly || additionalDetails.actualAssembly || ((_addressData$addition11 = addressData.additionalDetails) === null || _addressData$addition11 === void 0 ? void 0 : _addressData$addition11.actualAssembly) || ""
|
|
32559
|
-
})
|
|
32560
|
-
});
|
|
32561
|
-
} else if ((formDataProp === null || formDataProp === void 0 ? void 0 : formDataProp.cpt) === null) {
|
|
32562
|
-
const clearedData = {
|
|
32563
|
-
addressType: "",
|
|
32564
|
-
pincode: "",
|
|
32565
|
-
city: "",
|
|
32566
|
-
locality: "",
|
|
32567
|
-
streetName: "",
|
|
32568
|
-
houseNo: "",
|
|
32569
|
-
houseName: "",
|
|
32570
|
-
landmark: "",
|
|
32571
|
-
addressLine1: "",
|
|
32572
|
-
addressLine2: "",
|
|
32573
|
-
latitude: "",
|
|
32574
|
-
longitude: "",
|
|
32575
|
-
assembly: "",
|
|
32576
|
-
block: "",
|
|
32577
|
-
zone: "",
|
|
32578
|
-
zroLocation: "",
|
|
32579
|
-
subLocality: "",
|
|
32580
|
-
actualWard: "",
|
|
32581
|
-
actualZone: "",
|
|
32582
|
-
actualAssembly: "",
|
|
32583
|
-
zro: "",
|
|
32584
|
-
address: {}
|
|
32585
|
-
};
|
|
32586
|
-
setFormData(clearedData);
|
|
32587
|
-
onSelect((config === null || config === void 0 ? void 0 : config.key) || "address", clearedData);
|
|
32588
|
-
}
|
|
32589
|
-
}, [formDataProp === null || formDataProp === void 0 ? void 0 : (_formDataProp$cpt2 = formDataProp.cpt) === null || _formDataProp$cpt2 === void 0 ? void 0 : _formDataProp$cpt2.details, formDataProp === null || formDataProp === void 0 ? void 0 : formDataProp.cpt]);
|
|
32590
|
-
useEffect(() => {
|
|
32591
|
-
if (showToast) {
|
|
32592
|
-
const timer = setTimeout(() => {
|
|
32593
|
-
setShowToast(null);
|
|
32594
|
-
}, 1000);
|
|
32595
|
-
return () => clearTimeout(timer);
|
|
32596
|
-
}
|
|
32597
|
-
}, [showToast]);
|
|
32598
|
-
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
32599
|
-
title: t("PT_LOCATION_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property )" : ""),
|
|
32600
|
-
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true
|
|
32601
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
32602
|
-
style: _extends({
|
|
32603
|
-
boxShadow: "none"
|
|
32604
|
-
}, props.style)
|
|
32605
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
32606
|
-
style: {
|
|
32607
|
-
marginTop: "20px"
|
|
32608
|
-
}
|
|
32609
|
-
}, /*#__PURE__*/React.createElement(AddressDetails, {
|
|
32610
|
-
t: t,
|
|
32611
|
-
formData: formData,
|
|
32612
|
-
onSelect: (key, data) => {
|
|
32613
|
-
setFormData(prev => _extends({}, prev, data));
|
|
32614
|
-
onSelect(key, data);
|
|
32615
|
-
},
|
|
32616
|
-
config: _extends({
|
|
32617
|
-
isCollapsible: false
|
|
32618
|
-
}, config),
|
|
32619
|
-
isEdit: isEdit,
|
|
32620
|
-
showZRO: hideZRO ? false : true,
|
|
32621
|
-
showMapActualLocation: true,
|
|
32622
|
-
disable: isPropertyFound,
|
|
32623
|
-
hideNextButton: true
|
|
32624
|
-
}))));
|
|
32625
|
-
};
|
|
32626
|
-
|
|
32627
32441
|
const WSPropertyLocationDetails = props => {
|
|
32628
32442
|
const t = props.t,
|
|
32629
32443
|
config = props.config,
|
|
@@ -32636,6 +32450,7 @@ const WSPropertyLocationDetails = props => {
|
|
|
32636
32450
|
onSelect(config.key, data);
|
|
32637
32451
|
};
|
|
32638
32452
|
const onSkip = () => onSelect();
|
|
32453
|
+
const PropertyLocationDetails = Digit.ComponentRegistryService.setComponent("PropertyLocationDetails");
|
|
32639
32454
|
if (userType === "citizen") {
|
|
32640
32455
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Timeline, {
|
|
32641
32456
|
currentStep: 2
|
|
@@ -32659,7 +32474,7 @@ const WSPropertyLocationDetails = props => {
|
|
|
32659
32474
|
return /*#__PURE__*/React.createElement(PropertyLocationDetails, props);
|
|
32660
32475
|
};
|
|
32661
32476
|
|
|
32662
|
-
const _excluded$
|
|
32477
|
+
const _excluded$3 = ["errors"],
|
|
32663
32478
|
_excluded2$2 = ["register", "control", "watch", "setValue", "unregister", "handleSubmit", "formState", "getValues", "reset"];
|
|
32664
32479
|
const ApplicationBillAmendment = () => {
|
|
32665
32480
|
var _data$BillingService, _data$BillingService$, _data$BillingService2, _data$BillingService3, _state, _state$data, _state$data$applicati, _state$data$applicati2, _state$data$applicati3, _billSearchData, _billSearchData$filte, _billSearchData2, _state9, _state9$data, _errors$WS_REDUCED_AM, _errors$WS_ADDITIONAL, _billSearchData3, _errors$effectiveTill, _errors$effectiveTill2, _state12, _state12$data;
|
|
@@ -32716,7 +32531,7 @@ const ApplicationBillAmendment = () => {
|
|
|
32716
32531
|
handleSubmit = _useForm.handleSubmit,
|
|
32717
32532
|
_useForm$formState = _useForm.formState,
|
|
32718
32533
|
errors = _useForm$formState.errors,
|
|
32719
|
-
rest = _objectWithoutPropertiesLoose(_useForm$formState, _excluded$
|
|
32534
|
+
rest = _objectWithoutPropertiesLoose(_useForm$formState, _excluded$3),
|
|
32720
32535
|
getValues = _useForm.getValues,
|
|
32721
32536
|
methods = _objectWithoutPropertiesLoose(_useForm, _excluded2$2);
|
|
32722
32537
|
const _Digit$Hooks$ws$useAp = Digit.Hooks.ws.useApplicationActionsBillAmendUpdate(),
|
|
@@ -36710,31 +36525,6 @@ const WorkflowTimeline = _ref => {
|
|
|
36710
36525
|
})));
|
|
36711
36526
|
};
|
|
36712
36527
|
|
|
36713
|
-
const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
36714
|
-
const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
36715
|
-
function _catch$1(body, recover) {
|
|
36716
|
-
try {
|
|
36717
|
-
var result = body();
|
|
36718
|
-
} catch (e) {
|
|
36719
|
-
return recover(e);
|
|
36720
|
-
}
|
|
36721
|
-
if (result && result.then) {
|
|
36722
|
-
return result.then(void 0, recover);
|
|
36723
|
-
}
|
|
36724
|
-
return result;
|
|
36725
|
-
}
|
|
36726
|
-
function _finallyRethrows$1(body, finalizer) {
|
|
36727
|
-
try {
|
|
36728
|
-
var result = body();
|
|
36729
|
-
} catch (e) {
|
|
36730
|
-
return finalizer(true, e);
|
|
36731
|
-
}
|
|
36732
|
-
if (result && result.then) {
|
|
36733
|
-
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
36734
|
-
}
|
|
36735
|
-
return finalizer(false, result);
|
|
36736
|
-
}
|
|
36737
|
-
|
|
36738
36528
|
const configPTApproverApplication = _ref => {
|
|
36739
36529
|
var _action$assigneeRoles;
|
|
36740
36530
|
let t = _ref.t,
|
|
@@ -37483,7 +37273,7 @@ const ActionModal = _ref => {
|
|
|
37483
37273
|
if (file.size >= 5242880) {
|
|
37484
37274
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
37485
37275
|
} else {
|
|
37486
|
-
const _temp = _catch
|
|
37276
|
+
const _temp = _catch(function () {
|
|
37487
37277
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
37488
37278
|
var _response$data, _response$data$files;
|
|
37489
37279
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -37710,7 +37500,7 @@ const ActionModal$1 = _ref => {
|
|
|
37710
37500
|
if (file.size >= 5242880) {
|
|
37711
37501
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
37712
37502
|
} else {
|
|
37713
|
-
const _temp = _catch
|
|
37503
|
+
const _temp = _catch(function () {
|
|
37714
37504
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
37715
37505
|
var _response$data, _response$data$files;
|
|
37716
37506
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -37880,7 +37670,7 @@ const ActionModal$2 = _ref => {
|
|
|
37880
37670
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
37881
37671
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
37882
37672
|
} else {
|
|
37883
|
-
const _temp = _catch
|
|
37673
|
+
const _temp = _catch(function () {
|
|
37884
37674
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
37885
37675
|
var _response$data, _response$data$files;
|
|
37886
37676
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -38163,7 +37953,7 @@ const ActionModal$3 = _ref => {
|
|
|
38163
37953
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
38164
37954
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
38165
37955
|
} else {
|
|
38166
|
-
const _temp = _catch
|
|
37956
|
+
const _temp = _catch(function () {
|
|
38167
37957
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
38168
37958
|
var _response$data, _response$data$files;
|
|
38169
37959
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -38421,7 +38211,7 @@ const ActionModal$4 = _ref => {
|
|
|
38421
38211
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
38422
38212
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
38423
38213
|
} else {
|
|
38424
|
-
const _temp = _catch
|
|
38214
|
+
const _temp = _catch(function () {
|
|
38425
38215
|
return Promise.resolve(Digit.UploadServices.Filestorage("NOC", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
38426
38216
|
var _response$data, _response$data$files;
|
|
38427
38217
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -38648,7 +38438,7 @@ const ActionModal$5 = _ref => {
|
|
|
38648
38438
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
38649
38439
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
38650
38440
|
} else {
|
|
38651
|
-
const _temp = _catch
|
|
38441
|
+
const _temp = _catch(function () {
|
|
38652
38442
|
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getCurrentTenantId())).then(function (response) {
|
|
38653
38443
|
var _response$data, _response$data$files;
|
|
38654
38444
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -38958,7 +38748,7 @@ const ActionModal$6 = _ref => {
|
|
|
38958
38748
|
if (file.size >= 5242880) {
|
|
38959
38749
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
38960
38750
|
} else {
|
|
38961
|
-
const _temp = _catch
|
|
38751
|
+
const _temp = _catch(function () {
|
|
38962
38752
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
38963
38753
|
var _response$data, _response$data$files;
|
|
38964
38754
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -39248,7 +39038,7 @@ const ActionModal$8 = _ref => {
|
|
|
39248
39038
|
if (file.size >= 5242880) {
|
|
39249
39039
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39250
39040
|
} else {
|
|
39251
|
-
const _temp = _catch
|
|
39041
|
+
const _temp = _catch(function () {
|
|
39252
39042
|
return Promise.resolve(Digit.UploadServices.Filestorage("CHB", file, tenantId)).then(function (response) {
|
|
39253
39043
|
var _response$data, _response$data$files;
|
|
39254
39044
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -39414,7 +39204,7 @@ const ActionModal$9 = _ref => {
|
|
|
39414
39204
|
if (file.size >= 5242880) {
|
|
39415
39205
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39416
39206
|
} else {
|
|
39417
|
-
const _temp = _catch
|
|
39207
|
+
const _temp = _catch(function () {
|
|
39418
39208
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
39419
39209
|
var _response$data, _response$data$files;
|
|
39420
39210
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -39586,8 +39376,8 @@ const ActionModal$a = _ref => {
|
|
|
39586
39376
|
if (file.size >= 5242880) {
|
|
39587
39377
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39588
39378
|
} else {
|
|
39589
|
-
const _temp = _finallyRethrows
|
|
39590
|
-
return _catch
|
|
39379
|
+
const _temp = _finallyRethrows(function () {
|
|
39380
|
+
return _catch(function () {
|
|
39591
39381
|
return Promise.resolve(Digit.UploadServices.Filestorage("StreetVending", file, tenantId)).then(function (response) {
|
|
39592
39382
|
var _response$data, _response$data$files;
|
|
39593
39383
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -39873,7 +39663,7 @@ const ActionModal$b = _ref => {
|
|
|
39873
39663
|
if (file.size >= 5242880) {
|
|
39874
39664
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39875
39665
|
} else {
|
|
39876
|
-
const _temp = _catch
|
|
39666
|
+
const _temp = _catch(function () {
|
|
39877
39667
|
return Promise.resolve(Digit.UploadServices.Filestorage("WT", file, tenantId)).then(function (response) {
|
|
39878
39668
|
var _response$data, _response$data$files;
|
|
39879
39669
|
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
@@ -40561,7 +40351,7 @@ function SelectDocument$4(_ref) {
|
|
|
40561
40351
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
40562
40352
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
40563
40353
|
} else {
|
|
40564
|
-
const _temp = _catch
|
|
40354
|
+
const _temp = _catch(function () {
|
|
40565
40355
|
setUploadedFile(null);
|
|
40566
40356
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
40567
40357
|
var _response$data, _response$data$files;
|
|
@@ -40951,7 +40741,7 @@ function PropertyDocuments(_ref) {
|
|
|
40951
40741
|
};
|
|
40952
40742
|
const forceDownload = function (url, fileName) {
|
|
40953
40743
|
try {
|
|
40954
|
-
return Promise.resolve(_catch
|
|
40744
|
+
return Promise.resolve(_catch(function () {
|
|
40955
40745
|
return Promise.resolve(fetch(url)).then(function (response) {
|
|
40956
40746
|
if (!response.ok) {
|
|
40957
40747
|
throw new Error("HTTP error! status: " + response.status);
|
|
@@ -41181,7 +40971,7 @@ function PropertyDocuments(_ref) {
|
|
|
41181
40971
|
y1: "15",
|
|
41182
40972
|
x2: "12",
|
|
41183
40973
|
y2: "3"
|
|
41184
|
-
}))), /*#__PURE__*/React.createElement("label", {
|
|
40974
|
+
}))), applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "WF_PENDING_FOR_PAYMENT" && /*#__PURE__*/React.createElement("label", {
|
|
41185
40975
|
style: {
|
|
41186
40976
|
display: "flex",
|
|
41187
40977
|
alignItems: "center",
|
|
@@ -41214,7 +41004,7 @@ function PropertyDocuments(_ref) {
|
|
|
41214
41004
|
}));
|
|
41215
41005
|
}
|
|
41216
41006
|
}
|
|
41217
|
-
}), "Check Verified"));
|
|
41007
|
+
}), t("Check Verified")));
|
|
41218
41008
|
})())
|
|
41219
41009
|
})));
|
|
41220
41010
|
};
|
|
@@ -44161,7 +43951,7 @@ const ApplicationDetails = props => {
|
|
|
44161
43951
|
const nocPrmomises = (_nocData = nocData) === null || _nocData === void 0 ? void 0 : _nocData.map(noc => {
|
|
44162
43952
|
return nocMutation === null || nocMutation === void 0 ? void 0 : nocMutation.mutateAsync(noc);
|
|
44163
43953
|
});
|
|
44164
|
-
const _temp = _catch
|
|
43954
|
+
const _temp = _catch(function () {
|
|
44165
43955
|
setIsEnableLoader(true);
|
|
44166
43956
|
return Promise.resolve(Promise.all(nocPrmomises)).then(function (values) {
|
|
44167
43957
|
values && values.map(ob => {
|
|
@@ -44251,7 +44041,7 @@ const ApplicationDetails = props => {
|
|
|
44251
44041
|
};
|
|
44252
44042
|
|
|
44253
44043
|
const ApplicationDetails$1 = () => {
|
|
44254
|
-
var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data37, _workflowDetails$data38, _workflowDetails$data39, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$
|
|
44044
|
+
var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _workflowDetails$data37, _workflowDetails$data38, _workflowDetails$data39, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a18, _applicationDetails$a19, _reciept_data$Payment2, _applicationDetails$p11, _applicationDetails$p12, _applicationDetails$p13, _applicationDetails$p14, _applicationDetails$p15, _applicationDetails$p16;
|
|
44255
44045
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
44256
44046
|
try {
|
|
44257
44047
|
let response = null;
|
|
@@ -44387,6 +44177,15 @@ const ApplicationDetails$1 = () => {
|
|
|
44387
44177
|
});
|
|
44388
44178
|
const _Digit$Hooks$ws$useWS2 = Digit.Hooks.ws.useWSApplicationActions(serviceType),
|
|
44389
44179
|
mutate = _Digit$Hooks$ws$useWS2.mutate;
|
|
44180
|
+
const _Digit$Hooks$useRecie = Digit.Hooks.useRecieptSearch({
|
|
44181
|
+
tenantId: tenantId,
|
|
44182
|
+
businessService: serviceType == "WATER" ? "WS.ONE_TIME_FEE" : "SW.ONE_TIME_FEE",
|
|
44183
|
+
consumerCodes: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.applicationNo
|
|
44184
|
+
}, {
|
|
44185
|
+
enabled: applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a7 = applicationDetails.applicationData) !== null && _applicationDetails$a7 !== void 0 && (_applicationDetails$a8 = _applicationDetails$a7.applicationType) !== null && _applicationDetails$a8 !== void 0 && _applicationDetails$a8.includes("NEW_") ? true : false,
|
|
44186
|
+
privacy: Digit.Utils.getPrivacyObject()
|
|
44187
|
+
}),
|
|
44188
|
+
reciept_data = _Digit$Hooks$useRecie.data;
|
|
44390
44189
|
const clearDataDetails = () => {
|
|
44391
44190
|
clearSessionFormData();
|
|
44392
44191
|
setSessionFormData({});
|
|
@@ -44400,7 +44199,7 @@ const ApplicationDetails$1 = () => {
|
|
|
44400
44199
|
return true;
|
|
44401
44200
|
};
|
|
44402
44201
|
let dowloadOptions = [],
|
|
44403
|
-
appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
44202
|
+
appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.applicationStatus) || "";
|
|
44404
44203
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.actionState) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.nextActions) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.forEach(action => {
|
|
44405
44204
|
if ((action === null || action === void 0 ? void 0 : action.action) === "ACTIVATE_CONNECTION") {
|
|
44406
44205
|
action.redirectionUrll = {
|
|
@@ -44531,10 +44330,10 @@ const ApplicationDetails$1 = () => {
|
|
|
44531
44330
|
const oldApplication = serviceType === "WATER" ? oldData === null || oldData === void 0 ? void 0 : (_oldData$WaterConnect = oldData.WaterConnection) === null || _oldData$WaterConnect === void 0 ? void 0 : _oldData$WaterConnect[(oldData === null || oldData === void 0 ? void 0 : (_oldData$WaterConnect2 = oldData.WaterConnection) === null || _oldData$WaterConnect2 === void 0 ? void 0 : _oldData$WaterConnect2.length) - 1] : oldData === null || oldData === void 0 ? void 0 : (_oldData$SewerageConn = oldData.SewerageConnections) === null || _oldData$SewerageConn === void 0 ? void 0 : _oldData$SewerageConn[(oldData === null || oldData === void 0 ? void 0 : (_oldData$SewerageConn2 = oldData.SewerageConnections) === null || _oldData$SewerageConn2 === void 0 ? void 0 : _oldData$SewerageConn2.length) - 1];
|
|
44532
44331
|
const handleDownloadPdf = function () {
|
|
44533
44332
|
try {
|
|
44534
|
-
var _applicationDetails$
|
|
44535
|
-
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
44333
|
+
var _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10;
|
|
44334
|
+
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a0 = applicationDetails.applicationData) === null || _applicationDetails$a0 === void 0 ? void 0 : _applicationDetails$a0.tenantId;
|
|
44536
44335
|
let result = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
|
|
44537
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
44336
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a1 = applicationDetails.applicationData) !== null && _applicationDetails$a1 !== void 0 && (_applicationDetails$a10 = _applicationDetails$a1.applicationType) !== null && _applicationDetails$a10 !== void 0 && _applicationDetails$a10.includes("MODIFY_")) {
|
|
44538
44337
|
const PDFdata = getWSAcknowledgementData$1(_extends({}, result), _extends({}, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.propertyDetails), tenantInfo, t, oldApplication);
|
|
44539
44338
|
PDFdata.then(ress => Digit.Utils.pdf.generateModifyPdf(ress));
|
|
44540
44339
|
return Promise.resolve();
|
|
@@ -44548,10 +44347,10 @@ const ApplicationDetails$1 = () => {
|
|
|
44548
44347
|
};
|
|
44549
44348
|
const handleEstimateDownload = function () {
|
|
44550
44349
|
try {
|
|
44551
|
-
const _temp2 = function (_applicationDetails$
|
|
44552
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
44553
|
-
var _applicationDetails$
|
|
44554
|
-
getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
44350
|
+
const _temp2 = function (_applicationDetails$a11, _applicationDetails$a12) {
|
|
44351
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a11 = applicationDetails.applicationData) !== null && _applicationDetails$a11 !== void 0 && (_applicationDetails$a12 = _applicationDetails$a11.additionalDetails) !== null && _applicationDetails$a12 !== void 0 && _applicationDetails$a12.estimationFileStoreId) {
|
|
44352
|
+
var _applicationDetails$a13, _applicationDetails$a14;
|
|
44353
|
+
getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a13 = applicationDetails.applicationData) === null || _applicationDetails$a13 === void 0 ? void 0 : (_applicationDetails$a14 = _applicationDetails$a13.additionalDetails) === null || _applicationDetails$a14 === void 0 ? void 0 : _applicationDetails$a14.estimationFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
|
|
44555
44354
|
} else {
|
|
44556
44355
|
const warningCount = sessionStorage.getItem("WARINIG_COUNT") || "0";
|
|
44557
44356
|
const warningCountDetails = JSON.parse(warningCount);
|
|
@@ -44609,8 +44408,8 @@ const ApplicationDetails$1 = () => {
|
|
|
44609
44408
|
order: 2,
|
|
44610
44409
|
label: t("WS_SANCTION_LETTER"),
|
|
44611
44410
|
onClick: () => {
|
|
44612
|
-
var _applicationDetails$
|
|
44613
|
-
return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
44411
|
+
var _applicationDetails$a15, _applicationDetails$a16;
|
|
44412
|
+
return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a15 = applicationDetails.applicationData) === null || _applicationDetails$a15 === void 0 ? void 0 : (_applicationDetails$a16 = _applicationDetails$a15.additionalDetails) === null || _applicationDetails$a16 === void 0 ? void 0 : _applicationDetails$a16.sanctionFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
|
|
44614
44413
|
}
|
|
44615
44414
|
};
|
|
44616
44415
|
const applicationDownloadObject = {
|
|
@@ -44622,8 +44421,8 @@ const ApplicationDetails$1 = () => {
|
|
|
44622
44421
|
order: 4,
|
|
44623
44422
|
label: t("DOWNLOAD_RECEIPT_HEADER"),
|
|
44624
44423
|
onClick: () => {
|
|
44625
|
-
var _reciept_data
|
|
44626
|
-
return getRecieptSearch(Digit.ULBService.getStateId(),
|
|
44424
|
+
var _reciept_data$Payment, _applicationDetails$a17;
|
|
44425
|
+
return getRecieptSearch(Digit.ULBService.getStateId(), reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment[0], applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.applicationNo, receiptKey);
|
|
44627
44426
|
}
|
|
44628
44427
|
};
|
|
44629
44428
|
switch (appStatus) {
|
|
@@ -44638,7 +44437,7 @@ const ApplicationDetails$1 = () => {
|
|
|
44638
44437
|
break;
|
|
44639
44438
|
case "PENDING_FOR_CONNECTION_ACTIVATION":
|
|
44640
44439
|
case "CONNECTION_ACTIVATED":
|
|
44641
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
44440
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a18 = applicationDetails.applicationData) !== null && _applicationDetails$a18 !== void 0 && (_applicationDetails$a19 = _applicationDetails$a18.applicationType) !== null && _applicationDetails$a19 !== void 0 && _applicationDetails$a19.includes("NEW_") && (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.length) > 0) dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject, appFeeDownloadReceipt];else dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject];
|
|
44642
44441
|
break;
|
|
44643
44442
|
case "REJECTED":
|
|
44644
44443
|
dowloadOptions = [applicationDownloadObject];
|
|
@@ -49029,31 +48828,21 @@ const CheckPage$4 = _ref2 => {
|
|
|
49029
48828
|
const OLDApplication = () => {
|
|
49030
48829
|
const _useTranslation = useTranslation(),
|
|
49031
48830
|
t = _useTranslation.t;
|
|
49032
|
-
const location = useLocation();
|
|
49033
48831
|
const history = useHistory();
|
|
49034
|
-
let filters = getQueryStringParams(location.search);
|
|
49035
48832
|
const _useState = useState(false),
|
|
49036
|
-
|
|
49037
|
-
|
|
49038
|
-
|
|
49039
|
-
|
|
49040
|
-
|
|
49041
|
-
|
|
49042
|
-
setShowToast = _useState3[1];
|
|
49043
|
-
const _useState4 = useState({}),
|
|
49044
|
-
setAppDetails = _useState4[1];
|
|
49045
|
-
const _useState5 = useState(null),
|
|
49046
|
-
setWaterAndSewerageBoth = _useState5[1];
|
|
49047
|
-
const _useState6 = useState({
|
|
48833
|
+
isEnableLoader = _useState[0],
|
|
48834
|
+
setIsEnableLoader = _useState[1];
|
|
48835
|
+
const _useState2 = useState(null),
|
|
48836
|
+
showToast = _useState2[0],
|
|
48837
|
+
setShowToast = _useState2[1];
|
|
48838
|
+
const _useState3 = useState({
|
|
49048
48839
|
body: []
|
|
49049
48840
|
}),
|
|
49050
|
-
config =
|
|
49051
|
-
setConfig =
|
|
49052
|
-
const
|
|
49053
|
-
|
|
49054
|
-
|
|
49055
|
-
showCheckPage = _useState8[0],
|
|
49056
|
-
setShowCheckPage = _useState8[1];
|
|
48841
|
+
config = _useState3[0],
|
|
48842
|
+
setConfig = _useState3[1];
|
|
48843
|
+
const _useState4 = useState(false),
|
|
48844
|
+
showCheckPage = _useState4[0],
|
|
48845
|
+
setShowCheckPage = _useState4[1];
|
|
49057
48846
|
const timelineConfig = [{
|
|
49058
48847
|
label: "WS_COMMON_PROPERTY_DETAILS"
|
|
49059
48848
|
}, {
|
|
@@ -49088,9 +48877,9 @@ const OLDApplication = () => {
|
|
|
49088
48877
|
let _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.WSCreateConfig(stateId, {}),
|
|
49089
48878
|
newConfig = _Digit$Hooks$ws$useWS.data,
|
|
49090
48879
|
isLoading = _Digit$Hooks$ws$useWS.isLoading;
|
|
49091
|
-
const
|
|
49092
|
-
propertyId =
|
|
49093
|
-
setPropertyId =
|
|
48880
|
+
const _useState5 = useState(new URLSearchParams(useLocation().search).get("propertyId")),
|
|
48881
|
+
propertyId = _useState5[0],
|
|
48882
|
+
setPropertyId = _useState5[1];
|
|
49094
48883
|
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("PT_CREATE_EMP_WS_NEW_FORM", {}),
|
|
49095
48884
|
sessionFormData = _Digit$Hooks$useSessi[0],
|
|
49096
48885
|
setSessionFormData = _Digit$Hooks$useSessi[1],
|
|
@@ -49105,7 +48894,7 @@ const OLDApplication = () => {
|
|
|
49105
48894
|
propertyIds: propertyId
|
|
49106
48895
|
},
|
|
49107
48896
|
tenantId: tenantId,
|
|
49108
|
-
enabled: propertyId && propertyId
|
|
48897
|
+
enabled: propertyId && propertyId !== "" ? true : false
|
|
49109
48898
|
}),
|
|
49110
48899
|
propertyDetails = _Digit$Hooks$pt$usePr.data;
|
|
49111
48900
|
useEffect(() => {
|
|
@@ -49117,7 +48906,7 @@ const OLDApplication = () => {
|
|
|
49117
48906
|
if (config) {
|
|
49118
48907
|
var _config$body;
|
|
49119
48908
|
const allCreateSections = (config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
|
|
49120
|
-
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "
|
|
48909
|
+
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
|
|
49121
48910
|
const reorderedBody = [];
|
|
49122
48911
|
desiredComponentOrder.forEach(compName => {
|
|
49123
48912
|
const section = allCreateSections.find(s => {
|
|
@@ -49127,13 +48916,13 @@ const OLDApplication = () => {
|
|
|
49127
48916
|
});
|
|
49128
48917
|
if (section) {
|
|
49129
48918
|
reorderedBody.push(section);
|
|
49130
|
-
} else if (compName === "
|
|
48919
|
+
} else if (compName === "WSPropertyLocationDetails") {
|
|
49131
48920
|
reorderedBody.push({
|
|
49132
48921
|
isCreateConnection: true,
|
|
49133
48922
|
body: [{
|
|
49134
48923
|
type: "component",
|
|
49135
48924
|
key: "propertyAddress",
|
|
49136
|
-
component: "
|
|
48925
|
+
component: "WSPropertyLocationDetails",
|
|
49137
48926
|
withoutLabel: true,
|
|
49138
48927
|
isAutomaticFill: true
|
|
49139
48928
|
}]
|
|
@@ -49213,23 +49002,18 @@ const OLDApplication = () => {
|
|
|
49213
49002
|
updatingSewerageApplicationLoading = _Digit$Hooks$ws$useWS3.isLoading,
|
|
49214
49003
|
sewerageUpdateMutation = _Digit$Hooks$ws$useWS3.mutate;
|
|
49215
49004
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
49216
|
-
var _formState$errors, _formState$errors$Con, _Object$keys, _formState$errors2, _formState$errors2$Co;
|
|
49217
49005
|
const updatedFormData = _extends({}, sessionFormData, formData);
|
|
49218
49006
|
const cleanedFormData = JSON.parse(JSON.stringify(updatedFormData));
|
|
49219
49007
|
if (!lodash.isEqual(sessionFormData, cleanedFormData)) {
|
|
49220
49008
|
setSessionFormData(cleanedFormData);
|
|
49221
49009
|
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
|
|
49222
49010
|
}
|
|
49223
|
-
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 => {
|
|
49224
|
-
var _ob$ref;
|
|
49225
|
-
return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$ref = ob.ref) === null || _ob$ref === void 0 ? void 0 : _ob$ref.value) !== "";
|
|
49226
|
-
}).length > 0) setSubmitValve(true);else setSubmitValve(!Object.keys(formState.errors).length);
|
|
49227
49011
|
};
|
|
49228
49012
|
const closeToastOfError = () => {
|
|
49229
49013
|
setShowToast(null);
|
|
49230
49014
|
};
|
|
49231
49015
|
const onFormSubmit = data => {
|
|
49232
|
-
var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$
|
|
49016
|
+
var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$keys, _formStateErros$Conne2;
|
|
49233
49017
|
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])) {
|
|
49234
49018
|
var _data$cpt2;
|
|
49235
49019
|
if (!(data !== null && data !== void 0 && (_data$cpt2 = data.cpt) !== null && _data$cpt2 !== void 0 && _data$cpt2.details) || !propertyDetails) {
|
|
@@ -49246,9 +49030,9 @@ const OLDApplication = () => {
|
|
|
49246
49030
|
}
|
|
49247
49031
|
const errors = sessionStorage.getItem("FORMSTATE_ERRORS");
|
|
49248
49032
|
const formStateErros = typeof errors === "string" && errors !== "null" ? JSON.parse(errors) : {};
|
|
49249
|
-
if (Object.keys(formStateErros).length > 0 && !(Object.keys(formStateErros).length
|
|
49250
|
-
var _ob$
|
|
49251
|
-
return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$
|
|
49033
|
+
if (Object.keys(formStateErros).length > 0 && !(Object.keys(formStateErros).length === 1 && formStateErros !== null && formStateErros !== void 0 && (_formStateErros$Conne = formStateErros["ConnectionHolderDetails"]) !== null && _formStateErros$Conne !== void 0 && _formStateErros$Conne.type && ((_Object$keys = Object.keys(formStateErros === null || formStateErros === void 0 ? void 0 : (_formStateErros$Conne2 = formStateErros["ConnectionHolderDetails"]) === null || _formStateErros$Conne2 === void 0 ? void 0 : _formStateErros$Conne2.type)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 1 && formStateErros["ConnectionHolderDetails"] && Object.values(formStateErros["ConnectionHolderDetails"].type).filter(ob => {
|
|
49034
|
+
var _ob$ref;
|
|
49035
|
+
return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$ref = ob.ref) === null || _ob$ref === void 0 ? void 0 : _ob$ref.value) !== "";
|
|
49252
49036
|
}).length > 0)) {
|
|
49253
49037
|
console.warn("[WS] onSubmit EXIT: formState errors blocking submit", formStateErros);
|
|
49254
49038
|
setShowToast({
|
|
@@ -49373,7 +49157,6 @@ const OLDApplication = () => {
|
|
|
49373
49157
|
waterDemandType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.waterDemandType,
|
|
49374
49158
|
ownerContactNumber: (data === null || data === void 0 ? void 0 : (_data$ConnectionHolde6 = data.ConnectionHolderDetails) === null || _data$ConnectionHolde6 === void 0 ? void 0 : (_data$ConnectionHolde7 = _data$ConnectionHolde6[0]) === null || _data$ConnectionHolde7 === void 0 ? void 0 : _data$ConnectionHolde7.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$cpt4 = data.cpt) === null || _data$cpt4 === void 0 ? void 0 : (_data$cpt4$details = _data$cpt4.details) === null || _data$cpt4$details === void 0 ? void 0 : (_data$cpt4$details$ow = _data$cpt4$details.owners) === null || _data$cpt4$details$ow === void 0 ? void 0 : (_data$cpt4$details$ow2 = _data$cpt4$details$ow[0]) === null || _data$cpt4$details$ow2 === void 0 ? void 0 : _data$cpt4$details$ow2.mobileNumber)
|
|
49375
49159
|
};
|
|
49376
|
-
const allDetails = cloneDeep_1(data);
|
|
49377
49160
|
return Promise.resolve(createPayloadOfWS(data)).then(function (payload) {
|
|
49378
49161
|
if (!(payload !== null && payload !== void 0 && payload.water) && !(payload !== null && payload !== void 0 && payload.sewerage)) {
|
|
49379
49162
|
console.error("[WS] onSubmit EXIT: payload has neither water nor sewerage", payload);
|
|
@@ -49383,12 +49166,8 @@ const OLDApplication = () => {
|
|
|
49383
49166
|
});
|
|
49384
49167
|
return;
|
|
49385
49168
|
}
|
|
49386
|
-
let waterAndSewerageLoader = false
|
|
49387
|
-
waterLoader = false,
|
|
49388
|
-
sewerageLoader = false;
|
|
49169
|
+
let waterAndSewerageLoader = false;
|
|
49389
49170
|
if (payload !== null && payload !== void 0 && payload.water && payload !== null && payload !== void 0 && payload.sewerage) waterAndSewerageLoader = true;
|
|
49390
|
-
if (payload !== null && payload !== void 0 && payload.water && !(payload !== null && payload !== void 0 && payload.sewerage)) waterLoader = true;
|
|
49391
|
-
if (!(payload !== null && payload !== void 0 && payload.water) && payload !== null && payload !== void 0 && payload.sewerage) sewerageLoader = true;
|
|
49392
49171
|
let waterConnection = {
|
|
49393
49172
|
WaterConnection: payload,
|
|
49394
49173
|
disconnectRequest: false,
|
|
@@ -49400,7 +49179,6 @@ const OLDApplication = () => {
|
|
|
49400
49179
|
reconnectRequest: false
|
|
49401
49180
|
};
|
|
49402
49181
|
if (waterAndSewerageLoader) {
|
|
49403
|
-
setWaterAndSewerageBoth(true);
|
|
49404
49182
|
sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(true));
|
|
49405
49183
|
} else {
|
|
49406
49184
|
sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(false));
|
|
@@ -49441,12 +49219,6 @@ const OLDApplication = () => {
|
|
|
49441
49219
|
},
|
|
49442
49220
|
onSuccess: function (waterUpdateData) {
|
|
49443
49221
|
try {
|
|
49444
|
-
setAppDetails(prev => {
|
|
49445
|
-
var _waterUpdateData$Wate;
|
|
49446
|
-
return _extends({}, prev, {
|
|
49447
|
-
waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
|
|
49448
|
-
});
|
|
49449
|
-
});
|
|
49450
49222
|
return Promise.resolve(sewerageMutation(sewerageConnection, {
|
|
49451
49223
|
onError: error => {
|
|
49452
49224
|
var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
|
|
@@ -49478,15 +49250,9 @@ const OLDApplication = () => {
|
|
|
49478
49250
|
},
|
|
49479
49251
|
onSuccess: function (sewerageUpdateData) {
|
|
49480
49252
|
try {
|
|
49481
|
-
var _waterUpdateData$
|
|
49482
|
-
setAppDetails(prev => {
|
|
49483
|
-
var _sewerageUpdateData$S;
|
|
49484
|
-
return _extends({}, prev, {
|
|
49485
|
-
sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
|
|
49486
|
-
});
|
|
49487
|
-
});
|
|
49253
|
+
var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
|
|
49488
49254
|
clearSessionFormData();
|
|
49489
|
-
history.push(basePath + "/ws-response?applicationNumber=" + (waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$
|
|
49255
|
+
history.push(basePath + "/ws-response?applicationNumber=" + (waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : (_waterUpdateData$Wate2 = _waterUpdateData$Wate[0]) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : _waterUpdateData$Wate2.applicationNo) + "&applicationNumber1=" + (sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : (_sewerageUpdateData$S2 = _sewerageUpdateData$S[0]) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : _sewerageUpdateData$S2.applicationNo));
|
|
49490
49256
|
return Promise.resolve();
|
|
49491
49257
|
} catch (e) {
|
|
49492
49258
|
return Promise.reject(e);
|
|
@@ -49549,15 +49315,9 @@ const OLDApplication = () => {
|
|
|
49549
49315
|
setTimeout(closeToastOfError, 5000);
|
|
49550
49316
|
},
|
|
49551
49317
|
onSuccess: data => {
|
|
49552
|
-
var _data$
|
|
49553
|
-
setAppDetails(prev => {
|
|
49554
|
-
var _data$WaterConnection2;
|
|
49555
|
-
return _extends({}, prev, {
|
|
49556
|
-
waterConnection: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
|
|
49557
|
-
});
|
|
49558
|
-
});
|
|
49318
|
+
var _data$WaterConnection2, _data$WaterConnection3;
|
|
49559
49319
|
clearSessionFormData();
|
|
49560
|
-
history.push(basePath + "/ws-response?applicationNumber=" + (data === null || data === void 0 ? void 0 : (_data$
|
|
49320
|
+
history.push(basePath + "/ws-response?applicationNumber=" + (data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : (_data$WaterConnection3 = _data$WaterConnection2[0]) === null || _data$WaterConnection3 === void 0 ? void 0 : _data$WaterConnection3.applicationNo));
|
|
49561
49321
|
}
|
|
49562
49322
|
});
|
|
49563
49323
|
});
|
|
@@ -49605,15 +49365,9 @@ const OLDApplication = () => {
|
|
|
49605
49365
|
setTimeout(closeToastOfError, 5000);
|
|
49606
49366
|
},
|
|
49607
49367
|
onSuccess: data => {
|
|
49608
|
-
var _data$
|
|
49609
|
-
setAppDetails(prev => {
|
|
49610
|
-
var _data$SewerageConnect2;
|
|
49611
|
-
return _extends({}, prev, {
|
|
49612
|
-
sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
|
|
49613
|
-
});
|
|
49614
|
-
});
|
|
49368
|
+
var _data$SewerageConnect2, _data$SewerageConnect3;
|
|
49615
49369
|
clearSessionFormData();
|
|
49616
|
-
history.push(basePath + "/ws-response?applicationNumber1=" + (data === null || data === void 0 ? void 0 : (_data$
|
|
49370
|
+
history.push(basePath + "/ws-response?applicationNumber1=" + (data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : (_data$SewerageConnect3 = _data$SewerageConnect2[0]) === null || _data$SewerageConnect3 === void 0 ? void 0 : _data$SewerageConnect3.applicationNo));
|
|
49617
49371
|
}
|
|
49618
49372
|
})).then(function () {});
|
|
49619
49373
|
});
|
|
@@ -49662,7 +49416,7 @@ const OLDApplication = () => {
|
|
|
49662
49416
|
className: "employee-form-section-wrapper"
|
|
49663
49417
|
}, /*#__PURE__*/React.createElement(VerticalTimeline, {
|
|
49664
49418
|
config: timelineConfig,
|
|
49665
|
-
currentActiveIndex:
|
|
49419
|
+
currentActiveIndex: 0,
|
|
49666
49420
|
showFinalStep: false
|
|
49667
49421
|
}), /*#__PURE__*/React.createElement(FormComposer, {
|
|
49668
49422
|
config: config.body,
|
|
@@ -49747,8 +49501,7 @@ const componentsToRegister = {
|
|
|
49747
49501
|
WSLinks,
|
|
49748
49502
|
WSServiceName: WSConnectionDetails,
|
|
49749
49503
|
WSWaterConnectionDetails,
|
|
49750
|
-
|
|
49751
|
-
PTPropertyLocationDetails: WSPropertyLocationDetails,
|
|
49504
|
+
WSPropertyLocationDetails,
|
|
49752
49505
|
WSPropertyWaterConnection,
|
|
49753
49506
|
WSDocsRequired,
|
|
49754
49507
|
WSDocumentDetails: WSDocumentsEmployee,
|