@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.js
CHANGED
|
@@ -7839,7 +7839,7 @@ const WSInfoLabel = _ref2 => {
|
|
|
7839
7839
|
};
|
|
7840
7840
|
|
|
7841
7841
|
const WSMyApplications = () => {
|
|
7842
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _data$WaterConnection2, _SWdata$SewerageConne2, _WSapplicationsList, _SWapplicationsList, _WSapplicationsList2, _SWapplicationsList2, _applicationsList
|
|
7842
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _data$WaterConnection2, _SWdata$SewerageConne2, _WSapplicationsList, _SWapplicationsList, _WSapplicationsList2, _SWapplicationsList2, _applicationsList;
|
|
7843
7843
|
const _useTranslation = reactI18next.useTranslation(),
|
|
7844
7844
|
t = _useTranslation.t;
|
|
7845
7845
|
const user = Digit.UserService.getUser();
|
|
@@ -7895,15 +7895,114 @@ const WSMyApplications = () => {
|
|
|
7895
7895
|
}),
|
|
7896
7896
|
PTisLoading = _Digit$Hooks$pt$usePr.isLoading,
|
|
7897
7897
|
PTdata = _Digit$Hooks$pt$usePr.data;
|
|
7898
|
+
const _useState = React.useState(0),
|
|
7899
|
+
pageOffset = _useState[0],
|
|
7900
|
+
setPageOffset = _useState[1];
|
|
7901
|
+
const _useState2 = React.useState(10),
|
|
7902
|
+
pageSize = _useState2[0],
|
|
7903
|
+
setPageSize = _useState2[1];
|
|
7904
|
+
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
7905
|
+
const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
|
|
7906
|
+
className: "cell-text"
|
|
7907
|
+
}, value);
|
|
7908
|
+
const columns = React.useMemo(() => {
|
|
7909
|
+
return [{
|
|
7910
|
+
Header: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
7911
|
+
disableSortBy: true,
|
|
7912
|
+
Cell: _ref => {
|
|
7913
|
+
var _row$original, _row$original2;
|
|
7914
|
+
let row = _ref.row;
|
|
7915
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
7916
|
+
className: "link"
|
|
7917
|
+
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
7918
|
+
to: "/digit-ui/citizen/ws/connection/application/" + encodeURI((_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationNo)
|
|
7919
|
+
}, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.applicationNo) || "NA"));
|
|
7920
|
+
}
|
|
7921
|
+
}, {
|
|
7922
|
+
Header: t("WS_SERVICE_NAME"),
|
|
7923
|
+
disableSortBy: true,
|
|
7924
|
+
Cell: _ref2 => {
|
|
7925
|
+
var _row$original3;
|
|
7926
|
+
let row = _ref2.row;
|
|
7927
|
+
return GetCell(t("WS_APPLICATION_TYPE_" + ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.applicationType)));
|
|
7928
|
+
}
|
|
7929
|
+
}, {
|
|
7930
|
+
Header: t("WS_CONSUMER_NAME"),
|
|
7931
|
+
disableSortBy: true,
|
|
7932
|
+
Cell: _ref3 => {
|
|
7933
|
+
var _row$original4, _row$original4$connec, _row$original5, _row$original5$proper, _row$original5$proper2;
|
|
7934
|
+
let row = _ref3.row;
|
|
7935
|
+
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) => {
|
|
7936
|
+
var _a$additionalDetails, _b$additionalDetails;
|
|
7937
|
+
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);
|
|
7938
|
+
}).map(owner => owner.name).join(",")) || t("CS_NA");
|
|
7939
|
+
return GetCell(names);
|
|
7940
|
+
}
|
|
7941
|
+
}, {
|
|
7942
|
+
Header: t("WS_PROPERTY_ID"),
|
|
7943
|
+
disableSortBy: true,
|
|
7944
|
+
Cell: _ref4 => {
|
|
7945
|
+
var _row$original6;
|
|
7946
|
+
let row = _ref4.row;
|
|
7947
|
+
return GetCell(((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.propertyId) || t("CS_NA"));
|
|
7948
|
+
}
|
|
7949
|
+
}, {
|
|
7950
|
+
Header: t("WS_STATUS"),
|
|
7951
|
+
disableSortBy: true,
|
|
7952
|
+
Cell: _ref5 => {
|
|
7953
|
+
var _row$original7;
|
|
7954
|
+
let row = _ref5.row;
|
|
7955
|
+
return GetCell(t("CS_" + ((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.applicationStatus)) || t("CS_NA"));
|
|
7956
|
+
}
|
|
7957
|
+
}, {
|
|
7958
|
+
Header: t("WS_SLA"),
|
|
7959
|
+
disableSortBy: true,
|
|
7960
|
+
Cell: _ref6 => {
|
|
7961
|
+
var _row$original8;
|
|
7962
|
+
let row = _ref6.row;
|
|
7963
|
+
const slaDays = Math.round(((_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : _row$original8.sla) / (24 * 60 * 60 * 1000));
|
|
7964
|
+
return GetCell(slaDays ? slaDays + " Days" : t("CS_NA"));
|
|
7965
|
+
}
|
|
7966
|
+
}, {
|
|
7967
|
+
Header: t("WS_VIEW_DETAILS"),
|
|
7968
|
+
disableSortBy: true,
|
|
7969
|
+
Cell: _ref7 => {
|
|
7970
|
+
let row = _ref7.row;
|
|
7971
|
+
const application = row.original;
|
|
7972
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
7973
|
+
className: "link"
|
|
7974
|
+
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
7975
|
+
to: "/digit-ui/citizen/ws/connection/application/" + encodeURI(application === null || application === void 0 ? void 0 : application.applicationNo)
|
|
7976
|
+
}, t("WS_VIEW_DETAILS_LABEL")));
|
|
7977
|
+
}
|
|
7978
|
+
}, {
|
|
7979
|
+
Header: t("MAKE_PAYMENT"),
|
|
7980
|
+
disableSortBy: true,
|
|
7981
|
+
Cell: _ref8 => {
|
|
7982
|
+
var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$connecti, _application$connecti2, _application$property, _application$property2, _application$applicat5;
|
|
7983
|
+
let row = _ref8.row;
|
|
7984
|
+
const application = row.original;
|
|
7985
|
+
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";
|
|
7986
|
+
return (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("span", {
|
|
7987
|
+
className: "link"
|
|
7988
|
+
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
7989
|
+
to: {
|
|
7990
|
+
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),
|
|
7991
|
+
state: {}
|
|
7992
|
+
}
|
|
7993
|
+
}, t("MAKE_PAYMENT"))) : null;
|
|
7994
|
+
}
|
|
7995
|
+
}];
|
|
7996
|
+
}, [t]);
|
|
7898
7997
|
if (isLoading || isSWLoading || PTisLoading) {
|
|
7899
7998
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
7900
7999
|
}
|
|
7901
|
-
let
|
|
7902
|
-
|
|
7903
|
-
WSapplicationsList =
|
|
7904
|
-
let
|
|
7905
|
-
|
|
7906
|
-
SWapplicationsList =
|
|
8000
|
+
let _ref9 = data || {},
|
|
8001
|
+
_ref9$WaterConnection = _ref9.WaterConnection,
|
|
8002
|
+
WSapplicationsList = _ref9$WaterConnection === void 0 ? [] : _ref9$WaterConnection;
|
|
8003
|
+
let _ref0 = SWdata || {},
|
|
8004
|
+
_ref0$SewerageConnect = _ref0.SewerageConnections,
|
|
8005
|
+
SWapplicationsList = _ref0$SewerageConnect === void 0 ? [] : _ref0$SewerageConnect;
|
|
7907
8006
|
WSapplicationsList = ((_WSapplicationsList = WSapplicationsList) === null || _WSapplicationsList === void 0 ? void 0 : _WSapplicationsList.map(ob => {
|
|
7908
8007
|
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3;
|
|
7909
8008
|
return _extends({}, ob, {
|
|
@@ -7925,16 +8024,28 @@ const WSMyApplications = () => {
|
|
|
7925
8024
|
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]
|
|
7926
8025
|
});
|
|
7927
8026
|
});
|
|
7928
|
-
|
|
7929
|
-
t: t
|
|
7930
|
-
}), /*#__PURE__*/React__default.createElement("div", null, ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 && applicationsList.sort((a, b) => {
|
|
8027
|
+
const sortedApplications = ((_applicationsList = applicationsList) === null || _applicationsList === void 0 ? void 0 : _applicationsList.length) > 0 ? applicationsList.sort((a, b) => {
|
|
7931
8028
|
var _b$auditDetails, _a$auditDetails;
|
|
7932
8029
|
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);
|
|
7933
|
-
})
|
|
8030
|
+
}) : [];
|
|
8031
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
8032
|
+
t: t
|
|
8033
|
+
}), /*#__PURE__*/React__default.createElement("div", null, (sortedApplications === null || sortedApplications === void 0 ? void 0 : sortedApplications.length) > 0 ? isMobile ? sortedApplications.map((application, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
7934
8034
|
key: index
|
|
7935
8035
|
}, /*#__PURE__*/React__default.createElement(WSApplication, {
|
|
7936
8036
|
application: application
|
|
7937
|
-
})))
|
|
8037
|
+
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
|
|
8038
|
+
t: t,
|
|
8039
|
+
data: sortedApplications.slice(pageOffset, pageOffset + pageSize),
|
|
8040
|
+
totalRecords: sortedApplications.length,
|
|
8041
|
+
columns: columns,
|
|
8042
|
+
onPageSizeChange: e => setPageSize(Number(e.target.value)),
|
|
8043
|
+
currentPage: Math.floor(pageOffset / pageSize),
|
|
8044
|
+
onNextPage: () => setPageOffset(pageOffset + pageSize),
|
|
8045
|
+
onPrevPage: () => setPageOffset(pageOffset - pageSize),
|
|
8046
|
+
pageSizeLimit: pageSize,
|
|
8047
|
+
disableSort: true
|
|
8048
|
+
}) : /*#__PURE__*/React__default.createElement("p", {
|
|
7938
8049
|
style: {
|
|
7939
8050
|
marginLeft: "16px",
|
|
7940
8051
|
marginTop: "16px"
|
|
@@ -8344,7 +8455,7 @@ const getWSAcknowledgementData$1 = function (newApplication, property, tenantInf
|
|
|
8344
8455
|
};
|
|
8345
8456
|
|
|
8346
8457
|
const WSResponse = props => {
|
|
8347
|
-
var _waterApplicationData, _waterApplicationData2, _waterApplicationData3, _sewerageApplicationD, _sewerageApplicationD2, _sewerageApplicationD3, _oldDataWater$WaterCo, _oldDataWater$WaterCo2, _oldDataSew$SewerageC, _oldDataSew$SewerageC2;
|
|
8458
|
+
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;
|
|
8348
8459
|
const _useTranslation = reactI18next.useTranslation(),
|
|
8349
8460
|
t = _useTranslation.t;
|
|
8350
8461
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
@@ -8496,7 +8607,30 @@ const WSResponse = props => {
|
|
|
8496
8607
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
8497
8608
|
d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
|
|
8498
8609
|
fill: "#a82227"
|
|
8499
|
-
})), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.createElement(
|
|
8610
|
+
})), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.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__default.createElement(reactRouterDom.Link, {
|
|
8611
|
+
to: {
|
|
8612
|
+
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),
|
|
8613
|
+
state: {}
|
|
8614
|
+
}
|
|
8615
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
8616
|
+
style: {
|
|
8617
|
+
marginTop: "10px"
|
|
8618
|
+
}
|
|
8619
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
8620
|
+
label: t("MAKE_PAYMENT")
|
|
8621
|
+
}))) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
8622
|
+
to: {
|
|
8623
|
+
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),
|
|
8624
|
+
state: {}
|
|
8625
|
+
}
|
|
8626
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
8627
|
+
style: {
|
|
8628
|
+
marginTop: "10px",
|
|
8629
|
+
marginLeft: "10px"
|
|
8630
|
+
}
|
|
8631
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
8632
|
+
label: t("MAKE_PAYMENT")
|
|
8633
|
+
}))) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
|
|
8500
8634
|
style: {
|
|
8501
8635
|
display: "flex",
|
|
8502
8636
|
justifyContent: "flex-end",
|
|
@@ -8512,7 +8646,7 @@ const WSResponse = props => {
|
|
|
8512
8646
|
};
|
|
8513
8647
|
|
|
8514
8648
|
const App = _ref => {
|
|
8515
|
-
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;
|
|
8649
|
+
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;
|
|
8516
8650
|
let path = _ref.path;
|
|
8517
8651
|
const location = reactRouterDom.useLocation();
|
|
8518
8652
|
const _useTranslation = reactI18next.useTranslation(),
|
|
@@ -8522,6 +8656,40 @@ const App = _ref => {
|
|
|
8522
8656
|
let isAcknowledgement = window.location.href.includes("/acknowledgement") || window.location.href.includes("/disconnect-acknowledge");
|
|
8523
8657
|
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");
|
|
8524
8658
|
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");
|
|
8659
|
+
const user = window.Digit.UserService.getUser();
|
|
8660
|
+
const tenantId = "dl.djb";
|
|
8661
|
+
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;
|
|
8662
|
+
const isMyApps = location.pathname.includes("/my-applications");
|
|
8663
|
+
const _window$Digit$Hooks$w = window.Digit.Hooks.ws.useMyApplicationSearch({
|
|
8664
|
+
filters: {
|
|
8665
|
+
tenantId,
|
|
8666
|
+
mobileNumber: userMobileNumber
|
|
8667
|
+
}
|
|
8668
|
+
}, {
|
|
8669
|
+
filters: {
|
|
8670
|
+
tenantId,
|
|
8671
|
+
mobileNumber: userMobileNumber
|
|
8672
|
+
},
|
|
8673
|
+
enabled: isMyApps
|
|
8674
|
+
}),
|
|
8675
|
+
wsData = _window$Digit$Hooks$w.data;
|
|
8676
|
+
const _window$Digit$Hooks$w2 = window.Digit.Hooks.ws.useMyApplicationSearch({
|
|
8677
|
+
filters: {
|
|
8678
|
+
tenantId,
|
|
8679
|
+
mobileNumber: userMobileNumber
|
|
8680
|
+
},
|
|
8681
|
+
BusinessService: "SW"
|
|
8682
|
+
}, {
|
|
8683
|
+
filters: {
|
|
8684
|
+
tenantId,
|
|
8685
|
+
mobileNumber: userMobileNumber
|
|
8686
|
+
},
|
|
8687
|
+
enabled: isMyApps
|
|
8688
|
+
}),
|
|
8689
|
+
swData = _window$Digit$Hooks$w2.data;
|
|
8690
|
+
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;
|
|
8691
|
+
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;
|
|
8692
|
+
let totalAppsCount = wsCount + swCount;
|
|
8525
8693
|
const crumbs = [{
|
|
8526
8694
|
path: "/digit-ui/employee",
|
|
8527
8695
|
show: true,
|
|
@@ -8539,11 +8707,11 @@ const App = _ref => {
|
|
|
8539
8707
|
show: location.pathname.includes("/search")
|
|
8540
8708
|
}, {
|
|
8541
8709
|
path: "/digit-ui/citizen/ws/my-applications",
|
|
8542
|
-
label: t("CS_HOME_MY_APPLICATIONS"),
|
|
8710
|
+
label: t("CS_HOME_MY_APPLICATIONS") + " " + (totalAppsCount ? "(" + totalAppsCount + ")" : ""),
|
|
8543
8711
|
show: location.pathname.includes("/my-applications")
|
|
8544
8712
|
}, {
|
|
8545
8713
|
path: "/digit-ui/citizen/ws/my-connections",
|
|
8546
|
-
label: t("
|
|
8714
|
+
label: t("WS_MYCONNECTIONS_HEADER"),
|
|
8547
8715
|
show: location.pathname.includes("/my-connections")
|
|
8548
8716
|
}, {
|
|
8549
8717
|
path: "/digit-ui/citizen/ws/my-bills",
|
|
@@ -8557,6 +8725,14 @@ const App = _ref => {
|
|
|
8557
8725
|
path: "/digit-ui/citizen/ws/old-application",
|
|
8558
8726
|
label: t("WS_COMMON_APPL_NEW_CONNECTION"),
|
|
8559
8727
|
show: location.pathname.includes("/old-application")
|
|
8728
|
+
}, {
|
|
8729
|
+
path: location.pathname,
|
|
8730
|
+
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
8731
|
+
show: location.pathname.includes("/connection/application")
|
|
8732
|
+
}, {
|
|
8733
|
+
path: location.pathname,
|
|
8734
|
+
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
8735
|
+
show: location.pathname.includes("ws-response")
|
|
8560
8736
|
}];
|
|
8561
8737
|
const getDynamicBreadcrumbs = () => {
|
|
8562
8738
|
return crumbs.filter(crumb => crumb.show);
|
|
@@ -8582,7 +8758,7 @@ const App = _ref => {
|
|
|
8582
8758
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ModuleHeader, {
|
|
8583
8759
|
leftContent: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ArrowLeft, {
|
|
8584
8760
|
className: "icon"
|
|
8585
|
-
}), "
|
|
8761
|
+
}), t("CS_COMMON_BACK")),
|
|
8586
8762
|
onLeftClick: () => window.history.back(),
|
|
8587
8763
|
breadcrumbs: getDynamicBreadcrumbs()
|
|
8588
8764
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -10256,38 +10432,6 @@ const WSDocsRequired = _ref => {
|
|
|
10256
10432
|
}))));
|
|
10257
10433
|
};
|
|
10258
10434
|
|
|
10259
|
-
// A type of promise-like that resolves synchronously and supports only one observer
|
|
10260
|
-
|
|
10261
|
-
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
10262
|
-
|
|
10263
|
-
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
10264
|
-
|
|
10265
|
-
// Asynchronously call a function and send errors to recovery continuation
|
|
10266
|
-
function _catch(body, recover) {
|
|
10267
|
-
try {
|
|
10268
|
-
var result = body();
|
|
10269
|
-
} catch(e) {
|
|
10270
|
-
return recover(e);
|
|
10271
|
-
}
|
|
10272
|
-
if (result && result.then) {
|
|
10273
|
-
return result.then(void 0, recover);
|
|
10274
|
-
}
|
|
10275
|
-
return result;
|
|
10276
|
-
}
|
|
10277
|
-
|
|
10278
|
-
// Asynchronously await a promise and pass the result to a finally continuation
|
|
10279
|
-
function _finallyRethrows(body, finalizer) {
|
|
10280
|
-
try {
|
|
10281
|
-
var result = body();
|
|
10282
|
-
} catch (e) {
|
|
10283
|
-
return finalizer(true, e);
|
|
10284
|
-
}
|
|
10285
|
-
if (result && result.then) {
|
|
10286
|
-
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
10287
|
-
}
|
|
10288
|
-
return finalizer(false, result);
|
|
10289
|
-
}
|
|
10290
|
-
|
|
10291
10435
|
const WSSewerageConnectionDetails = _ref => {
|
|
10292
10436
|
var _formData$sewerageCon, _formData$sewerageCon2;
|
|
10293
10437
|
let t = _ref.t,
|
|
@@ -10721,6 +10865,31 @@ const WSActivationDetails = _ref => {
|
|
|
10721
10865
|
}))));
|
|
10722
10866
|
};
|
|
10723
10867
|
|
|
10868
|
+
const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
10869
|
+
const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
10870
|
+
function _catch(body, recover) {
|
|
10871
|
+
try {
|
|
10872
|
+
var result = body();
|
|
10873
|
+
} catch (e) {
|
|
10874
|
+
return recover(e);
|
|
10875
|
+
}
|
|
10876
|
+
if (result && result.then) {
|
|
10877
|
+
return result.then(void 0, recover);
|
|
10878
|
+
}
|
|
10879
|
+
return result;
|
|
10880
|
+
}
|
|
10881
|
+
function _finallyRethrows(body, finalizer) {
|
|
10882
|
+
try {
|
|
10883
|
+
var result = body();
|
|
10884
|
+
} catch (e) {
|
|
10885
|
+
return finalizer(true, e);
|
|
10886
|
+
}
|
|
10887
|
+
if (result && result.then) {
|
|
10888
|
+
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
10889
|
+
}
|
|
10890
|
+
return finalizer(false, result);
|
|
10891
|
+
}
|
|
10892
|
+
|
|
10724
10893
|
const createConnectionDetails = () => ({
|
|
10725
10894
|
water: true,
|
|
10726
10895
|
sewerage: false,
|
|
@@ -20963,14 +21132,6 @@ const useInboxTableConfig = _ref => {
|
|
|
20963
21132
|
}];
|
|
20964
21133
|
});
|
|
20965
21134
|
return {
|
|
20966
|
-
getCellProps: cellInfo => {
|
|
20967
|
-
return {
|
|
20968
|
-
style: {
|
|
20969
|
-
padding: "20px 18px",
|
|
20970
|
-
fontSize: "16px"
|
|
20971
|
-
}
|
|
20972
|
-
};
|
|
20973
|
-
},
|
|
20974
21135
|
disableSort: false,
|
|
20975
21136
|
autoSort: false,
|
|
20976
21137
|
manualPagination: true,
|
|
@@ -21296,12 +21457,6 @@ const WSInbox = _ref => {
|
|
|
21296
21457
|
});
|
|
21297
21458
|
});
|
|
21298
21459
|
}, [statuses]);
|
|
21299
|
-
let links = [{
|
|
21300
|
-
text: t("WS_APPLY_NEW_CONNECTION_HOME_CARD_LABEL"),
|
|
21301
|
-
link: "/digit-ui/employee/ws/create-application",
|
|
21302
|
-
roles: ["WS_CEMP", "SW_CEMP"]
|
|
21303
|
-
}];
|
|
21304
|
-
links = links.filter(link => link.roles ? checkForEmployee(link.roles) : true);
|
|
21305
21460
|
const PropsForInboxLinks = {
|
|
21306
21461
|
logoIcon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.DropIcon, null),
|
|
21307
21462
|
headerText: checkPathName ? "MODULE_WATER" : "MODULE_SW"
|
|
@@ -24216,7 +24371,7 @@ const newConfig = [{
|
|
|
24216
24371
|
}
|
|
24217
24372
|
}, {
|
|
24218
24373
|
route: "property-location-details",
|
|
24219
|
-
component: "
|
|
24374
|
+
component: "WSPropertyLocationDetails",
|
|
24220
24375
|
key: "propertyLocationDetails",
|
|
24221
24376
|
nextStep: "property-water-details",
|
|
24222
24377
|
hideInEmployee: true,
|
|
@@ -25179,385 +25334,394 @@ const config = [{
|
|
|
25179
25334
|
}]
|
|
25180
25335
|
}];
|
|
25181
25336
|
|
|
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
|
-
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
isContextProvider: isContextProvider,
|
|
25215
|
-
isElement: isElement,
|
|
25216
|
-
isForwardRef: isForwardRef,
|
|
25217
|
-
isFragment: isFragment,
|
|
25218
|
-
isLazy: isLazy,
|
|
25219
|
-
isMemo: isMemo,
|
|
25220
|
-
isPortal: isPortal,
|
|
25221
|
-
isProfiler: isProfiler,
|
|
25222
|
-
isStrictMode: isStrictMode,
|
|
25223
|
-
isSuspense: isSuspense,
|
|
25224
|
-
isValidElementType: isValidElementType,
|
|
25225
|
-
typeOf: typeOf
|
|
25226
|
-
};
|
|
25227
|
-
|
|
25228
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
25229
|
-
|
|
25230
|
-
|
|
25231
|
-
|
|
25232
|
-
if (process.env.NODE_ENV !== "production") {
|
|
25233
|
-
(function() {
|
|
25234
|
-
|
|
25235
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
25236
|
-
// nor polyfill, then a plain number is used for performance.
|
|
25237
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
25238
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25239
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
25240
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
25241
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
25242
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
25243
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
25244
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
25245
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
25246
|
-
|
|
25247
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
25248
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
25249
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
25250
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
25251
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
25252
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
25253
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
25254
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
25255
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
25256
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
25257
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
25258
|
-
|
|
25259
|
-
function isValidElementType(type) {
|
|
25260
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
25261
|
-
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);
|
|
25262
|
-
}
|
|
25263
|
-
|
|
25264
|
-
function typeOf(object) {
|
|
25265
|
-
if (typeof object === 'object' && object !== null) {
|
|
25266
|
-
var $$typeof = object.$$typeof;
|
|
25267
|
-
|
|
25268
|
-
switch ($$typeof) {
|
|
25269
|
-
case REACT_ELEMENT_TYPE:
|
|
25270
|
-
var type = object.type;
|
|
25271
|
-
|
|
25272
|
-
switch (type) {
|
|
25273
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
25274
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
25275
|
-
case REACT_FRAGMENT_TYPE:
|
|
25276
|
-
case REACT_PROFILER_TYPE:
|
|
25277
|
-
case REACT_STRICT_MODE_TYPE:
|
|
25278
|
-
case REACT_SUSPENSE_TYPE:
|
|
25279
|
-
return type;
|
|
25280
|
-
|
|
25337
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
|
25338
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
25339
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
|
25340
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
|
25341
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
25342
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
|
25343
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
|
25344
|
+
k = b ? Symbol.for("react.context") : 60110,
|
|
25345
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
25346
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
25347
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
25348
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
|
25349
|
+
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
25350
|
+
r = b ? Symbol.for("react.memo") : 60115,
|
|
25351
|
+
t = b ? Symbol.for("react.lazy") : 60116,
|
|
25352
|
+
v = b ? Symbol.for("react.block") : 60121,
|
|
25353
|
+
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
25354
|
+
x = b ? Symbol.for("react.responder") : 60118,
|
|
25355
|
+
y = b ? Symbol.for("react.scope") : 60119;
|
|
25356
|
+
function z(a) {
|
|
25357
|
+
if ("object" === typeof a && null !== a) {
|
|
25358
|
+
var u = a.$$typeof;
|
|
25359
|
+
switch (u) {
|
|
25360
|
+
case c:
|
|
25361
|
+
switch (a = a.type, a) {
|
|
25362
|
+
case l:
|
|
25363
|
+
case m:
|
|
25364
|
+
case e:
|
|
25365
|
+
case g:
|
|
25366
|
+
case f:
|
|
25367
|
+
case p:
|
|
25368
|
+
return a;
|
|
25281
25369
|
default:
|
|
25282
|
-
|
|
25283
|
-
|
|
25284
|
-
|
|
25285
|
-
case
|
|
25286
|
-
case
|
|
25287
|
-
case
|
|
25288
|
-
|
|
25289
|
-
case REACT_PROVIDER_TYPE:
|
|
25290
|
-
return $$typeofType;
|
|
25291
|
-
|
|
25370
|
+
switch (a = a && a.$$typeof, a) {
|
|
25371
|
+
case k:
|
|
25372
|
+
case n:
|
|
25373
|
+
case t:
|
|
25374
|
+
case r:
|
|
25375
|
+
case h:
|
|
25376
|
+
return a;
|
|
25292
25377
|
default:
|
|
25293
|
-
return
|
|
25378
|
+
return u;
|
|
25294
25379
|
}
|
|
25295
|
-
|
|
25296
25380
|
}
|
|
25297
|
-
|
|
25298
|
-
|
|
25299
|
-
return $$typeof;
|
|
25381
|
+
case d:
|
|
25382
|
+
return u;
|
|
25300
25383
|
}
|
|
25301
25384
|
}
|
|
25302
|
-
|
|
25303
|
-
return undefined;
|
|
25304
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
25305
|
-
|
|
25306
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
25307
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
25308
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
25309
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
25310
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
25311
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
25312
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
25313
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
25314
|
-
var Memo = REACT_MEMO_TYPE;
|
|
25315
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
25316
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
25317
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
25318
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
25319
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
25320
|
-
|
|
25321
|
-
function isAsyncMode(object) {
|
|
25322
|
-
{
|
|
25323
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
25324
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
25325
|
-
|
|
25326
|
-
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.');
|
|
25327
|
-
}
|
|
25328
|
-
}
|
|
25329
|
-
|
|
25330
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
25331
|
-
}
|
|
25332
|
-
function isConcurrentMode(object) {
|
|
25333
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
25334
|
-
}
|
|
25335
|
-
function isContextConsumer(object) {
|
|
25336
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
25337
|
-
}
|
|
25338
|
-
function isContextProvider(object) {
|
|
25339
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
25340
|
-
}
|
|
25341
|
-
function isElement(object) {
|
|
25342
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
25343
|
-
}
|
|
25344
|
-
function isForwardRef(object) {
|
|
25345
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
25346
25385
|
}
|
|
25347
|
-
function
|
|
25348
|
-
return
|
|
25349
|
-
}
|
|
25350
|
-
function isLazy(object) {
|
|
25351
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
25352
|
-
}
|
|
25353
|
-
function isMemo(object) {
|
|
25354
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
25355
|
-
}
|
|
25356
|
-
function isPortal(object) {
|
|
25357
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
25358
|
-
}
|
|
25359
|
-
function isProfiler(object) {
|
|
25360
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
25361
|
-
}
|
|
25362
|
-
function isStrictMode(object) {
|
|
25363
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
25364
|
-
}
|
|
25365
|
-
function isSuspense(object) {
|
|
25366
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
25386
|
+
function A(a) {
|
|
25387
|
+
return z(a) === m;
|
|
25367
25388
|
}
|
|
25389
|
+
var AsyncMode = l;
|
|
25390
|
+
var ConcurrentMode = m;
|
|
25391
|
+
var ContextConsumer = k;
|
|
25392
|
+
var ContextProvider = h;
|
|
25393
|
+
var Element = c;
|
|
25394
|
+
var ForwardRef = n;
|
|
25395
|
+
var Fragment = e;
|
|
25396
|
+
var Lazy = t;
|
|
25397
|
+
var Memo = r;
|
|
25398
|
+
var Portal = d;
|
|
25399
|
+
var Profiler = g;
|
|
25400
|
+
var StrictMode = f;
|
|
25401
|
+
var Suspense = p;
|
|
25402
|
+
var isAsyncMode = function (a) {
|
|
25403
|
+
return A(a) || z(a) === l;
|
|
25404
|
+
};
|
|
25405
|
+
var isConcurrentMode = A;
|
|
25406
|
+
var isContextConsumer = function (a) {
|
|
25407
|
+
return z(a) === k;
|
|
25408
|
+
};
|
|
25409
|
+
var isContextProvider = function (a) {
|
|
25410
|
+
return z(a) === h;
|
|
25411
|
+
};
|
|
25412
|
+
var isElement = function (a) {
|
|
25413
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
25414
|
+
};
|
|
25415
|
+
var isForwardRef = function (a) {
|
|
25416
|
+
return z(a) === n;
|
|
25417
|
+
};
|
|
25418
|
+
var isFragment = function (a) {
|
|
25419
|
+
return z(a) === e;
|
|
25420
|
+
};
|
|
25421
|
+
var isLazy = function (a) {
|
|
25422
|
+
return z(a) === t;
|
|
25423
|
+
};
|
|
25424
|
+
var isMemo = function (a) {
|
|
25425
|
+
return z(a) === r;
|
|
25426
|
+
};
|
|
25427
|
+
var isPortal = function (a) {
|
|
25428
|
+
return z(a) === d;
|
|
25429
|
+
};
|
|
25430
|
+
var isProfiler = function (a) {
|
|
25431
|
+
return z(a) === g;
|
|
25432
|
+
};
|
|
25433
|
+
var isStrictMode = function (a) {
|
|
25434
|
+
return z(a) === f;
|
|
25435
|
+
};
|
|
25436
|
+
var isSuspense = function (a) {
|
|
25437
|
+
return z(a) === p;
|
|
25438
|
+
};
|
|
25439
|
+
var isValidElementType = function (a) {
|
|
25440
|
+
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);
|
|
25441
|
+
};
|
|
25442
|
+
var typeOf = z;
|
|
25443
|
+
var reactIs_production_min = {
|
|
25444
|
+
AsyncMode: AsyncMode,
|
|
25445
|
+
ConcurrentMode: ConcurrentMode,
|
|
25446
|
+
ContextConsumer: ContextConsumer,
|
|
25447
|
+
ContextProvider: ContextProvider,
|
|
25448
|
+
Element: Element,
|
|
25449
|
+
ForwardRef: ForwardRef,
|
|
25450
|
+
Fragment: Fragment,
|
|
25451
|
+
Lazy: Lazy,
|
|
25452
|
+
Memo: Memo,
|
|
25453
|
+
Portal: Portal,
|
|
25454
|
+
Profiler: Profiler,
|
|
25455
|
+
StrictMode: StrictMode,
|
|
25456
|
+
Suspense: Suspense,
|
|
25457
|
+
isAsyncMode: isAsyncMode,
|
|
25458
|
+
isConcurrentMode: isConcurrentMode,
|
|
25459
|
+
isContextConsumer: isContextConsumer,
|
|
25460
|
+
isContextProvider: isContextProvider,
|
|
25461
|
+
isElement: isElement,
|
|
25462
|
+
isForwardRef: isForwardRef,
|
|
25463
|
+
isFragment: isFragment,
|
|
25464
|
+
isLazy: isLazy,
|
|
25465
|
+
isMemo: isMemo,
|
|
25466
|
+
isPortal: isPortal,
|
|
25467
|
+
isProfiler: isProfiler,
|
|
25468
|
+
isStrictMode: isStrictMode,
|
|
25469
|
+
isSuspense: isSuspense,
|
|
25470
|
+
isValidElementType: isValidElementType,
|
|
25471
|
+
typeOf: typeOf
|
|
25472
|
+
};
|
|
25368
25473
|
|
|
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
|
-
|
|
25396
|
-
|
|
25397
|
-
|
|
25398
|
-
|
|
25474
|
+
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
25475
|
+
|
|
25476
|
+
if (process.env.NODE_ENV !== "production") {
|
|
25477
|
+
(function () {
|
|
25478
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
25479
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25480
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
25481
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
25482
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
25483
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
25484
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
25485
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
25486
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
25487
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
25488
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
25489
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
25490
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
25491
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
25492
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
25493
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
25494
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
25495
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
25496
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
25497
|
+
function isValidElementType(type) {
|
|
25498
|
+
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);
|
|
25499
|
+
}
|
|
25500
|
+
function typeOf(object) {
|
|
25501
|
+
if (typeof object === 'object' && object !== null) {
|
|
25502
|
+
var $$typeof = object.$$typeof;
|
|
25503
|
+
switch ($$typeof) {
|
|
25504
|
+
case REACT_ELEMENT_TYPE:
|
|
25505
|
+
var type = object.type;
|
|
25506
|
+
switch (type) {
|
|
25507
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
25508
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
25509
|
+
case REACT_FRAGMENT_TYPE:
|
|
25510
|
+
case REACT_PROFILER_TYPE:
|
|
25511
|
+
case REACT_STRICT_MODE_TYPE:
|
|
25512
|
+
case REACT_SUSPENSE_TYPE:
|
|
25513
|
+
return type;
|
|
25514
|
+
default:
|
|
25515
|
+
var $$typeofType = type && type.$$typeof;
|
|
25516
|
+
switch ($$typeofType) {
|
|
25517
|
+
case REACT_CONTEXT_TYPE:
|
|
25518
|
+
case REACT_FORWARD_REF_TYPE:
|
|
25519
|
+
case REACT_LAZY_TYPE:
|
|
25520
|
+
case REACT_MEMO_TYPE:
|
|
25521
|
+
case REACT_PROVIDER_TYPE:
|
|
25522
|
+
return $$typeofType;
|
|
25523
|
+
default:
|
|
25524
|
+
return $$typeof;
|
|
25525
|
+
}
|
|
25526
|
+
}
|
|
25527
|
+
case REACT_PORTAL_TYPE:
|
|
25528
|
+
return $$typeof;
|
|
25529
|
+
}
|
|
25530
|
+
}
|
|
25531
|
+
return undefined;
|
|
25532
|
+
}
|
|
25533
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
25534
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
25535
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
25536
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
25537
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
25538
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
25539
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
25540
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
25541
|
+
var Memo = REACT_MEMO_TYPE;
|
|
25542
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
25543
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
25544
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
25545
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
25546
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
25547
|
+
function isAsyncMode(object) {
|
|
25548
|
+
{
|
|
25549
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
25550
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
25551
|
+
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.');
|
|
25552
|
+
}
|
|
25553
|
+
}
|
|
25554
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
25555
|
+
}
|
|
25556
|
+
function isConcurrentMode(object) {
|
|
25557
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
25558
|
+
}
|
|
25559
|
+
function isContextConsumer(object) {
|
|
25560
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
25561
|
+
}
|
|
25562
|
+
function isContextProvider(object) {
|
|
25563
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
25564
|
+
}
|
|
25565
|
+
function isElement(object) {
|
|
25566
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
25567
|
+
}
|
|
25568
|
+
function isForwardRef(object) {
|
|
25569
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
25570
|
+
}
|
|
25571
|
+
function isFragment(object) {
|
|
25572
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
25573
|
+
}
|
|
25574
|
+
function isLazy(object) {
|
|
25575
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
25576
|
+
}
|
|
25577
|
+
function isMemo(object) {
|
|
25578
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
25579
|
+
}
|
|
25580
|
+
function isPortal(object) {
|
|
25581
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
25582
|
+
}
|
|
25583
|
+
function isProfiler(object) {
|
|
25584
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
25585
|
+
}
|
|
25586
|
+
function isStrictMode(object) {
|
|
25587
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
25588
|
+
}
|
|
25589
|
+
function isSuspense(object) {
|
|
25590
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
25591
|
+
}
|
|
25592
|
+
exports.AsyncMode = AsyncMode;
|
|
25593
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
25594
|
+
exports.ContextConsumer = ContextConsumer;
|
|
25595
|
+
exports.ContextProvider = ContextProvider;
|
|
25596
|
+
exports.Element = Element;
|
|
25597
|
+
exports.ForwardRef = ForwardRef;
|
|
25598
|
+
exports.Fragment = Fragment;
|
|
25599
|
+
exports.Lazy = Lazy;
|
|
25600
|
+
exports.Memo = Memo;
|
|
25601
|
+
exports.Portal = Portal;
|
|
25602
|
+
exports.Profiler = Profiler;
|
|
25603
|
+
exports.StrictMode = StrictMode;
|
|
25604
|
+
exports.Suspense = Suspense;
|
|
25605
|
+
exports.isAsyncMode = isAsyncMode;
|
|
25606
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
25607
|
+
exports.isContextConsumer = isContextConsumer;
|
|
25608
|
+
exports.isContextProvider = isContextProvider;
|
|
25609
|
+
exports.isElement = isElement;
|
|
25610
|
+
exports.isForwardRef = isForwardRef;
|
|
25611
|
+
exports.isFragment = isFragment;
|
|
25612
|
+
exports.isLazy = isLazy;
|
|
25613
|
+
exports.isMemo = isMemo;
|
|
25614
|
+
exports.isPortal = isPortal;
|
|
25615
|
+
exports.isProfiler = isProfiler;
|
|
25616
|
+
exports.isStrictMode = isStrictMode;
|
|
25617
|
+
exports.isSuspense = isSuspense;
|
|
25618
|
+
exports.isValidElementType = isValidElementType;
|
|
25619
|
+
exports.typeOf = typeOf;
|
|
25620
|
+
})();
|
|
25621
|
+
}
|
|
25399
25622
|
});
|
|
25400
25623
|
|
|
25401
25624
|
var reactIs = createCommonjsModule(function (module) {
|
|
25402
25625
|
|
|
25403
|
-
if (process.env.NODE_ENV === 'production') {
|
|
25404
|
-
|
|
25405
|
-
} else {
|
|
25406
|
-
|
|
25407
|
-
}
|
|
25626
|
+
if (process.env.NODE_ENV === 'production') {
|
|
25627
|
+
module.exports = reactIs_production_min;
|
|
25628
|
+
} else {
|
|
25629
|
+
module.exports = reactIs_development;
|
|
25630
|
+
}
|
|
25408
25631
|
});
|
|
25409
25632
|
|
|
25410
|
-
/*
|
|
25411
|
-
object-assign
|
|
25412
|
-
(c) Sindre Sorhus
|
|
25413
|
-
@license MIT
|
|
25414
|
-
*/
|
|
25415
|
-
/* eslint-disable no-unused-vars */
|
|
25416
25633
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
25417
25634
|
var hasOwnProperty$a = Object.prototype.hasOwnProperty;
|
|
25418
25635
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
25419
|
-
|
|
25420
25636
|
function toObject(val) {
|
|
25421
|
-
|
|
25422
|
-
|
|
25423
|
-
|
|
25424
|
-
|
|
25425
|
-
return Object(val);
|
|
25637
|
+
if (val === null || val === undefined) {
|
|
25638
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
25639
|
+
}
|
|
25640
|
+
return Object(val);
|
|
25426
25641
|
}
|
|
25427
|
-
|
|
25428
25642
|
function shouldUseNative() {
|
|
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
|
-
|
|
25458
|
-
|
|
25459
|
-
});
|
|
25460
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
25461
|
-
'abcdefghijklmnopqrst') {
|
|
25462
|
-
return false;
|
|
25463
|
-
}
|
|
25464
|
-
|
|
25465
|
-
return true;
|
|
25466
|
-
} catch (err) {
|
|
25467
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
25468
|
-
return false;
|
|
25469
|
-
}
|
|
25643
|
+
try {
|
|
25644
|
+
if (!Object.assign) {
|
|
25645
|
+
return false;
|
|
25646
|
+
}
|
|
25647
|
+
var test1 = new String('abc');
|
|
25648
|
+
test1[5] = 'de';
|
|
25649
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
25650
|
+
return false;
|
|
25651
|
+
}
|
|
25652
|
+
var test2 = {};
|
|
25653
|
+
for (var i = 0; i < 10; i++) {
|
|
25654
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
25655
|
+
}
|
|
25656
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
25657
|
+
return test2[n];
|
|
25658
|
+
});
|
|
25659
|
+
if (order2.join('') !== '0123456789') {
|
|
25660
|
+
return false;
|
|
25661
|
+
}
|
|
25662
|
+
var test3 = {};
|
|
25663
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
25664
|
+
test3[letter] = letter;
|
|
25665
|
+
});
|
|
25666
|
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
|
25667
|
+
return false;
|
|
25668
|
+
}
|
|
25669
|
+
return true;
|
|
25670
|
+
} catch (err) {
|
|
25671
|
+
return false;
|
|
25672
|
+
}
|
|
25470
25673
|
}
|
|
25471
|
-
|
|
25472
25674
|
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
25473
|
-
|
|
25474
|
-
|
|
25475
|
-
|
|
25476
|
-
|
|
25477
|
-
|
|
25478
|
-
|
|
25479
|
-
|
|
25480
|
-
|
|
25481
|
-
|
|
25482
|
-
|
|
25483
|
-
|
|
25484
|
-
|
|
25485
|
-
|
|
25486
|
-
|
|
25487
|
-
|
|
25488
|
-
|
|
25489
|
-
|
|
25490
|
-
|
|
25491
|
-
|
|
25492
|
-
|
|
25493
|
-
}
|
|
25494
|
-
}
|
|
25495
|
-
|
|
25496
|
-
return to;
|
|
25675
|
+
var from;
|
|
25676
|
+
var to = toObject(target);
|
|
25677
|
+
var symbols;
|
|
25678
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
25679
|
+
from = Object(arguments[s]);
|
|
25680
|
+
for (var key in from) {
|
|
25681
|
+
if (hasOwnProperty$a.call(from, key)) {
|
|
25682
|
+
to[key] = from[key];
|
|
25683
|
+
}
|
|
25684
|
+
}
|
|
25685
|
+
if (getOwnPropertySymbols) {
|
|
25686
|
+
symbols = getOwnPropertySymbols(from);
|
|
25687
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
25688
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
25689
|
+
to[symbols[i]] = from[symbols[i]];
|
|
25690
|
+
}
|
|
25691
|
+
}
|
|
25692
|
+
}
|
|
25693
|
+
}
|
|
25694
|
+
return to;
|
|
25497
25695
|
};
|
|
25498
25696
|
|
|
25499
|
-
/**
|
|
25500
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
25501
|
-
*
|
|
25502
|
-
* This source code is licensed under the MIT license found in the
|
|
25503
|
-
* LICENSE file in the root directory of this source tree.
|
|
25504
|
-
*/
|
|
25505
|
-
|
|
25506
25697
|
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
25507
|
-
|
|
25508
25698
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
25509
25699
|
|
|
25510
25700
|
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
25511
25701
|
|
|
25512
|
-
var printWarning = function() {};
|
|
25513
|
-
|
|
25702
|
+
var printWarning = function () {};
|
|
25514
25703
|
if (process.env.NODE_ENV !== 'production') {
|
|
25515
25704
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
25516
25705
|
var loggedTypeFailures = {};
|
|
25517
25706
|
var has$1 = has;
|
|
25518
|
-
|
|
25519
|
-
printWarning = function(text) {
|
|
25707
|
+
printWarning = function (text) {
|
|
25520
25708
|
var message = 'Warning: ' + text;
|
|
25521
25709
|
if (typeof console !== 'undefined') {
|
|
25522
25710
|
console.error(message);
|
|
25523
25711
|
}
|
|
25524
25712
|
try {
|
|
25525
|
-
// --- Welcome to debugging React ---
|
|
25526
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
25527
|
-
// to find the callsite that caused this warning to fire.
|
|
25528
25713
|
throw new Error(message);
|
|
25529
|
-
} catch (x) {
|
|
25714
|
+
} catch (x) {}
|
|
25530
25715
|
};
|
|
25531
25716
|
}
|
|
25532
|
-
|
|
25533
|
-
/**
|
|
25534
|
-
* Assert that the values match with the type specs.
|
|
25535
|
-
* Error messages are memorized and will only be shown once.
|
|
25536
|
-
*
|
|
25537
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
25538
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
25539
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
25540
|
-
* @param {string} componentName Name of the component for error messages.
|
|
25541
|
-
* @param {?Function} getStack Returns the component stack.
|
|
25542
|
-
* @private
|
|
25543
|
-
*/
|
|
25544
25717
|
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
25545
25718
|
if (process.env.NODE_ENV !== 'production') {
|
|
25546
25719
|
for (var typeSpecName in typeSpecs) {
|
|
25547
25720
|
if (has$1(typeSpecs, typeSpecName)) {
|
|
25548
25721
|
var error;
|
|
25549
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
25550
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
25551
|
-
// After these have been cleaned up, we'll let them throw.
|
|
25552
25722
|
try {
|
|
25553
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
25554
|
-
// behavior as without this statement except with a better message.
|
|
25555
25723
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
25556
|
-
var err = Error(
|
|
25557
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
25558
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
25559
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
25560
|
-
);
|
|
25724
|
+
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`.');
|
|
25561
25725
|
err.name = 'Invariant Violation';
|
|
25562
25726
|
throw err;
|
|
25563
25727
|
}
|
|
@@ -25566,142 +25730,49 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
25566
25730
|
error = ex;
|
|
25567
25731
|
}
|
|
25568
25732
|
if (error && !(error instanceof Error)) {
|
|
25569
|
-
printWarning(
|
|
25570
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
25571
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
25572
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
25573
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
25574
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
25575
|
-
'shape all require an argument).'
|
|
25576
|
-
);
|
|
25733
|
+
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).');
|
|
25577
25734
|
}
|
|
25578
25735
|
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
25579
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
25580
|
-
// same error.
|
|
25581
25736
|
loggedTypeFailures[error.message] = true;
|
|
25582
|
-
|
|
25583
25737
|
var stack = getStack ? getStack() : '';
|
|
25584
|
-
|
|
25585
|
-
printWarning(
|
|
25586
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
25587
|
-
);
|
|
25738
|
+
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
|
25588
25739
|
}
|
|
25589
25740
|
}
|
|
25590
25741
|
}
|
|
25591
25742
|
}
|
|
25592
25743
|
}
|
|
25593
|
-
|
|
25594
|
-
/**
|
|
25595
|
-
* Resets warning cache when testing.
|
|
25596
|
-
*
|
|
25597
|
-
* @private
|
|
25598
|
-
*/
|
|
25599
|
-
checkPropTypes.resetWarningCache = function() {
|
|
25744
|
+
checkPropTypes.resetWarningCache = function () {
|
|
25600
25745
|
if (process.env.NODE_ENV !== 'production') {
|
|
25601
25746
|
loggedTypeFailures = {};
|
|
25602
25747
|
}
|
|
25603
25748
|
};
|
|
25604
|
-
|
|
25605
25749
|
var checkPropTypes_1 = checkPropTypes;
|
|
25606
25750
|
|
|
25607
|
-
var printWarning$1 = function() {};
|
|
25608
|
-
|
|
25751
|
+
var printWarning$1 = function () {};
|
|
25609
25752
|
if (process.env.NODE_ENV !== 'production') {
|
|
25610
|
-
printWarning$1 = function(text) {
|
|
25753
|
+
printWarning$1 = function (text) {
|
|
25611
25754
|
var message = 'Warning: ' + text;
|
|
25612
25755
|
if (typeof console !== 'undefined') {
|
|
25613
25756
|
console.error(message);
|
|
25614
25757
|
}
|
|
25615
25758
|
try {
|
|
25616
|
-
// --- Welcome to debugging React ---
|
|
25617
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
25618
|
-
// to find the callsite that caused this warning to fire.
|
|
25619
25759
|
throw new Error(message);
|
|
25620
25760
|
} catch (x) {}
|
|
25621
25761
|
};
|
|
25622
25762
|
}
|
|
25623
|
-
|
|
25624
25763
|
function emptyFunctionThatReturnsNull() {
|
|
25625
25764
|
return null;
|
|
25626
25765
|
}
|
|
25627
|
-
|
|
25628
|
-
var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
25629
|
-
/* global Symbol */
|
|
25766
|
+
var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
|
25630
25767
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
25631
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
25632
|
-
|
|
25633
|
-
/**
|
|
25634
|
-
* Returns the iterator method function contained on the iterable object.
|
|
25635
|
-
*
|
|
25636
|
-
* Be sure to invoke the function with the iterable as context:
|
|
25637
|
-
*
|
|
25638
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
25639
|
-
* if (iteratorFn) {
|
|
25640
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
25641
|
-
* ...
|
|
25642
|
-
* }
|
|
25643
|
-
*
|
|
25644
|
-
* @param {?object} maybeIterable
|
|
25645
|
-
* @return {?function}
|
|
25646
|
-
*/
|
|
25768
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
25647
25769
|
function getIteratorFn(maybeIterable) {
|
|
25648
25770
|
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
25649
25771
|
if (typeof iteratorFn === 'function') {
|
|
25650
25772
|
return iteratorFn;
|
|
25651
25773
|
}
|
|
25652
25774
|
}
|
|
25653
|
-
|
|
25654
|
-
/**
|
|
25655
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
25656
|
-
* supplied to React components. Example usage:
|
|
25657
|
-
*
|
|
25658
|
-
* var Props = require('ReactPropTypes');
|
|
25659
|
-
* var MyArticle = React.createClass({
|
|
25660
|
-
* propTypes: {
|
|
25661
|
-
* // An optional string prop named "description".
|
|
25662
|
-
* description: Props.string,
|
|
25663
|
-
*
|
|
25664
|
-
* // A required enum prop named "category".
|
|
25665
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
25666
|
-
*
|
|
25667
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
25668
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
25669
|
-
* },
|
|
25670
|
-
* render: function() { ... }
|
|
25671
|
-
* });
|
|
25672
|
-
*
|
|
25673
|
-
* A more formal specification of how these methods are used:
|
|
25674
|
-
*
|
|
25675
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
25676
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
25677
|
-
*
|
|
25678
|
-
* Each and every declaration produces a function with the same signature. This
|
|
25679
|
-
* allows the creation of custom validation functions. For example:
|
|
25680
|
-
*
|
|
25681
|
-
* var MyLink = React.createClass({
|
|
25682
|
-
* propTypes: {
|
|
25683
|
-
* // An optional string or URI prop named "href".
|
|
25684
|
-
* href: function(props, propName, componentName) {
|
|
25685
|
-
* var propValue = props[propName];
|
|
25686
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
25687
|
-
* !(propValue instanceof URI)) {
|
|
25688
|
-
* return new Error(
|
|
25689
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
25690
|
-
* componentName
|
|
25691
|
-
* );
|
|
25692
|
-
* }
|
|
25693
|
-
* }
|
|
25694
|
-
* },
|
|
25695
|
-
* render: function() {...}
|
|
25696
|
-
* });
|
|
25697
|
-
*
|
|
25698
|
-
* @internal
|
|
25699
|
-
*/
|
|
25700
|
-
|
|
25701
25775
|
var ANONYMOUS = '<<anonymous>>';
|
|
25702
|
-
|
|
25703
|
-
// Important!
|
|
25704
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
25705
25776
|
var ReactPropTypes = {
|
|
25706
25777
|
array: createPrimitiveTypeChecker('array'),
|
|
25707
25778
|
bigint: createPrimitiveTypeChecker('bigint'),
|
|
@@ -25711,7 +25782,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25711
25782
|
object: createPrimitiveTypeChecker('object'),
|
|
25712
25783
|
string: createPrimitiveTypeChecker('string'),
|
|
25713
25784
|
symbol: createPrimitiveTypeChecker('symbol'),
|
|
25714
|
-
|
|
25715
25785
|
any: createAnyTypeChecker(),
|
|
25716
25786
|
arrayOf: createArrayOfTypeChecker,
|
|
25717
25787
|
element: createElementTypeChecker(),
|
|
@@ -25722,42 +25792,21 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25722
25792
|
oneOf: createEnumTypeChecker,
|
|
25723
25793
|
oneOfType: createUnionTypeChecker,
|
|
25724
25794
|
shape: createShapeTypeChecker,
|
|
25725
|
-
exact: createStrictShapeTypeChecker
|
|
25795
|
+
exact: createStrictShapeTypeChecker
|
|
25726
25796
|
};
|
|
25727
|
-
|
|
25728
|
-
/**
|
|
25729
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
25730
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
25731
|
-
*/
|
|
25732
|
-
/*eslint-disable no-self-compare*/
|
|
25733
25797
|
function is(x, y) {
|
|
25734
|
-
// SameValue algorithm
|
|
25735
25798
|
if (x === y) {
|
|
25736
|
-
// Steps 1-5, 7-10
|
|
25737
|
-
// Steps 6.b-6.e: +0 != -0
|
|
25738
25799
|
return x !== 0 || 1 / x === 1 / y;
|
|
25739
25800
|
} else {
|
|
25740
|
-
// Step 6.a: NaN == NaN
|
|
25741
25801
|
return x !== x && y !== y;
|
|
25742
25802
|
}
|
|
25743
25803
|
}
|
|
25744
|
-
/*eslint-enable no-self-compare*/
|
|
25745
|
-
|
|
25746
|
-
/**
|
|
25747
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
25748
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
25749
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
25750
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
25751
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
25752
|
-
*/
|
|
25753
25804
|
function PropTypeError(message, data) {
|
|
25754
25805
|
this.message = message;
|
|
25755
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
25806
|
+
this.data = data && typeof data === 'object' ? data : {};
|
|
25756
25807
|
this.stack = '';
|
|
25757
25808
|
}
|
|
25758
|
-
// Make `instanceof Error` still work for returned errors.
|
|
25759
25809
|
PropTypeError.prototype = Error.prototype;
|
|
25760
|
-
|
|
25761
25810
|
function createChainableTypeChecker(validate) {
|
|
25762
25811
|
if (process.env.NODE_ENV !== 'production') {
|
|
25763
25812
|
var manualPropTypeCallCache = {};
|
|
@@ -25766,32 +25815,15 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25766
25815
|
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
25767
25816
|
componentName = componentName || ANONYMOUS;
|
|
25768
25817
|
propFullName = propFullName || propName;
|
|
25769
|
-
|
|
25770
25818
|
if (secret !== ReactPropTypesSecret_1) {
|
|
25771
25819
|
if (throwOnDirectAccess) {
|
|
25772
|
-
|
|
25773
|
-
var err = new Error(
|
|
25774
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
25775
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
25776
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
25777
|
-
);
|
|
25820
|
+
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');
|
|
25778
25821
|
err.name = 'Invariant Violation';
|
|
25779
25822
|
throw err;
|
|
25780
25823
|
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
25781
|
-
// Old behavior for people using React.PropTypes
|
|
25782
25824
|
var cacheKey = componentName + ':' + propName;
|
|
25783
|
-
if (
|
|
25784
|
-
|
|
25785
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
25786
|
-
manualPropTypeWarningCount < 3
|
|
25787
|
-
) {
|
|
25788
|
-
printWarning$1(
|
|
25789
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
25790
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
25791
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
25792
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
25793
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
25794
|
-
);
|
|
25825
|
+
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
|
|
25826
|
+
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.');
|
|
25795
25827
|
manualPropTypeCallCache[cacheKey] = true;
|
|
25796
25828
|
manualPropTypeWarningCount++;
|
|
25797
25829
|
}
|
|
@@ -25809,37 +25841,27 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25809
25841
|
return validate(props, propName, componentName, location, propFullName);
|
|
25810
25842
|
}
|
|
25811
25843
|
}
|
|
25812
|
-
|
|
25813
25844
|
var chainedCheckType = checkType.bind(null, false);
|
|
25814
25845
|
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
25815
|
-
|
|
25816
25846
|
return chainedCheckType;
|
|
25817
25847
|
}
|
|
25818
|
-
|
|
25819
25848
|
function createPrimitiveTypeChecker(expectedType) {
|
|
25820
25849
|
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
25821
25850
|
var propValue = props[propName];
|
|
25822
25851
|
var propType = getPropType(propValue);
|
|
25823
25852
|
if (propType !== expectedType) {
|
|
25824
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
25825
|
-
// check, but we can offer a more precise error message here rather than
|
|
25826
|
-
// 'of type `object`'.
|
|
25827
25853
|
var preciseType = getPreciseType(propValue);
|
|
25828
|
-
|
|
25829
|
-
|
|
25830
|
-
|
|
25831
|
-
{expectedType: expectedType}
|
|
25832
|
-
);
|
|
25854
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
|
25855
|
+
expectedType: expectedType
|
|
25856
|
+
});
|
|
25833
25857
|
}
|
|
25834
25858
|
return null;
|
|
25835
25859
|
}
|
|
25836
25860
|
return createChainableTypeChecker(validate);
|
|
25837
25861
|
}
|
|
25838
|
-
|
|
25839
25862
|
function createAnyTypeChecker() {
|
|
25840
25863
|
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
25841
25864
|
}
|
|
25842
|
-
|
|
25843
25865
|
function createArrayOfTypeChecker(typeChecker) {
|
|
25844
25866
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25845
25867
|
if (typeof typeChecker !== 'function') {
|
|
@@ -25860,7 +25882,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25860
25882
|
}
|
|
25861
25883
|
return createChainableTypeChecker(validate);
|
|
25862
25884
|
}
|
|
25863
|
-
|
|
25864
25885
|
function createElementTypeChecker() {
|
|
25865
25886
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25866
25887
|
var propValue = props[propName];
|
|
@@ -25872,7 +25893,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25872
25893
|
}
|
|
25873
25894
|
return createChainableTypeChecker(validate);
|
|
25874
25895
|
}
|
|
25875
|
-
|
|
25876
25896
|
function createElementTypeTypeChecker() {
|
|
25877
25897
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25878
25898
|
var propValue = props[propName];
|
|
@@ -25884,7 +25904,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25884
25904
|
}
|
|
25885
25905
|
return createChainableTypeChecker(validate);
|
|
25886
25906
|
}
|
|
25887
|
-
|
|
25888
25907
|
function createInstanceTypeChecker(expectedClass) {
|
|
25889
25908
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25890
25909
|
if (!(props[propName] instanceof expectedClass)) {
|
|
@@ -25896,22 +25915,17 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25896
25915
|
}
|
|
25897
25916
|
return createChainableTypeChecker(validate);
|
|
25898
25917
|
}
|
|
25899
|
-
|
|
25900
25918
|
function createEnumTypeChecker(expectedValues) {
|
|
25901
25919
|
if (!Array.isArray(expectedValues)) {
|
|
25902
25920
|
if (process.env.NODE_ENV !== 'production') {
|
|
25903
25921
|
if (arguments.length > 1) {
|
|
25904
|
-
printWarning$1(
|
|
25905
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
25906
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
25907
|
-
);
|
|
25922
|
+
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]).');
|
|
25908
25923
|
} else {
|
|
25909
25924
|
printWarning$1('Invalid argument supplied to oneOf, expected an array.');
|
|
25910
25925
|
}
|
|
25911
25926
|
}
|
|
25912
25927
|
return emptyFunctionThatReturnsNull;
|
|
25913
25928
|
}
|
|
25914
|
-
|
|
25915
25929
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25916
25930
|
var propValue = props[propName];
|
|
25917
25931
|
for (var i = 0; i < expectedValues.length; i++) {
|
|
@@ -25919,7 +25933,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25919
25933
|
return null;
|
|
25920
25934
|
}
|
|
25921
25935
|
}
|
|
25922
|
-
|
|
25923
25936
|
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
25924
25937
|
var type = getPreciseType(value);
|
|
25925
25938
|
if (type === 'symbol') {
|
|
@@ -25931,7 +25944,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25931
25944
|
}
|
|
25932
25945
|
return createChainableTypeChecker(validate);
|
|
25933
25946
|
}
|
|
25934
|
-
|
|
25935
25947
|
function createObjectOfTypeChecker(typeChecker) {
|
|
25936
25948
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25937
25949
|
if (typeof typeChecker !== 'function') {
|
|
@@ -25954,24 +25966,18 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25954
25966
|
}
|
|
25955
25967
|
return createChainableTypeChecker(validate);
|
|
25956
25968
|
}
|
|
25957
|
-
|
|
25958
25969
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
25959
25970
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
25960
25971
|
process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
25961
25972
|
return emptyFunctionThatReturnsNull;
|
|
25962
25973
|
}
|
|
25963
|
-
|
|
25964
25974
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
25965
25975
|
var checker = arrayOfTypeCheckers[i];
|
|
25966
25976
|
if (typeof checker !== 'function') {
|
|
25967
|
-
printWarning$1(
|
|
25968
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
25969
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
25970
|
-
);
|
|
25977
|
+
printWarning$1('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
|
25971
25978
|
return emptyFunctionThatReturnsNull;
|
|
25972
25979
|
}
|
|
25973
25980
|
}
|
|
25974
|
-
|
|
25975
25981
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25976
25982
|
var expectedTypes = [];
|
|
25977
25983
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
@@ -25984,12 +25990,11 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25984
25990
|
expectedTypes.push(checkerResult.data.expectedType);
|
|
25985
25991
|
}
|
|
25986
25992
|
}
|
|
25987
|
-
var expectedTypesMessage =
|
|
25993
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
|
25988
25994
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
25989
25995
|
}
|
|
25990
25996
|
return createChainableTypeChecker(validate);
|
|
25991
25997
|
}
|
|
25992
|
-
|
|
25993
25998
|
function createNodeChecker() {
|
|
25994
25999
|
function validate(props, propName, componentName, location, propFullName) {
|
|
25995
26000
|
if (!isNode(props[propName])) {
|
|
@@ -25999,14 +26004,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
25999
26004
|
}
|
|
26000
26005
|
return createChainableTypeChecker(validate);
|
|
26001
26006
|
}
|
|
26002
|
-
|
|
26003
26007
|
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
26004
|
-
return new PropTypeError(
|
|
26005
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
26006
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
26007
|
-
);
|
|
26008
|
+
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 + '`.');
|
|
26008
26009
|
}
|
|
26009
|
-
|
|
26010
26010
|
function createShapeTypeChecker(shapeTypes) {
|
|
26011
26011
|
function validate(props, propName, componentName, location, propFullName) {
|
|
26012
26012
|
var propValue = props[propName];
|
|
@@ -26028,7 +26028,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26028
26028
|
}
|
|
26029
26029
|
return createChainableTypeChecker(validate);
|
|
26030
26030
|
}
|
|
26031
|
-
|
|
26032
26031
|
function createStrictShapeTypeChecker(shapeTypes) {
|
|
26033
26032
|
function validate(props, propName, componentName, location, propFullName) {
|
|
26034
26033
|
var propValue = props[propName];
|
|
@@ -26036,7 +26035,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26036
26035
|
if (propType !== 'object') {
|
|
26037
26036
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
26038
26037
|
}
|
|
26039
|
-
// We need to check all keys in case some are required but missing from props.
|
|
26040
26038
|
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
26041
26039
|
for (var key in allKeys) {
|
|
26042
26040
|
var checker = shapeTypes[key];
|
|
@@ -26044,11 +26042,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26044
26042
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
26045
26043
|
}
|
|
26046
26044
|
if (!checker) {
|
|
26047
|
-
return new PropTypeError(
|
|
26048
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
26049
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
26050
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
26051
|
-
);
|
|
26045
|
+
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, ' '));
|
|
26052
26046
|
}
|
|
26053
26047
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
26054
26048
|
if (error) {
|
|
@@ -26057,10 +26051,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26057
26051
|
}
|
|
26058
26052
|
return null;
|
|
26059
26053
|
}
|
|
26060
|
-
|
|
26061
26054
|
return createChainableTypeChecker(validate);
|
|
26062
26055
|
}
|
|
26063
|
-
|
|
26064
26056
|
function isNode(propValue) {
|
|
26065
26057
|
switch (typeof propValue) {
|
|
26066
26058
|
case 'number':
|
|
@@ -26076,7 +26068,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26076
26068
|
if (propValue === null || isValidElement(propValue)) {
|
|
26077
26069
|
return true;
|
|
26078
26070
|
}
|
|
26079
|
-
|
|
26080
26071
|
var iteratorFn = getIteratorFn(propValue);
|
|
26081
26072
|
if (iteratorFn) {
|
|
26082
26073
|
var iterator = iteratorFn.call(propValue);
|
|
@@ -26088,7 +26079,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26088
26079
|
}
|
|
26089
26080
|
}
|
|
26090
26081
|
} else {
|
|
26091
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
26092
26082
|
while (!(step = iterator.next()).done) {
|
|
26093
26083
|
var entry = step.value;
|
|
26094
26084
|
if (entry) {
|
|
@@ -26101,47 +26091,32 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26101
26091
|
} else {
|
|
26102
26092
|
return false;
|
|
26103
26093
|
}
|
|
26104
|
-
|
|
26105
26094
|
return true;
|
|
26106
26095
|
default:
|
|
26107
26096
|
return false;
|
|
26108
26097
|
}
|
|
26109
26098
|
}
|
|
26110
|
-
|
|
26111
26099
|
function isSymbol(propType, propValue) {
|
|
26112
|
-
// Native Symbol.
|
|
26113
26100
|
if (propType === 'symbol') {
|
|
26114
26101
|
return true;
|
|
26115
26102
|
}
|
|
26116
|
-
|
|
26117
|
-
// falsy value can't be a Symbol
|
|
26118
26103
|
if (!propValue) {
|
|
26119
26104
|
return false;
|
|
26120
26105
|
}
|
|
26121
|
-
|
|
26122
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
26123
26106
|
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
26124
26107
|
return true;
|
|
26125
26108
|
}
|
|
26126
|
-
|
|
26127
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
26128
26109
|
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
26129
26110
|
return true;
|
|
26130
26111
|
}
|
|
26131
|
-
|
|
26132
26112
|
return false;
|
|
26133
26113
|
}
|
|
26134
|
-
|
|
26135
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
26136
26114
|
function getPropType(propValue) {
|
|
26137
26115
|
var propType = typeof propValue;
|
|
26138
26116
|
if (Array.isArray(propValue)) {
|
|
26139
26117
|
return 'array';
|
|
26140
26118
|
}
|
|
26141
26119
|
if (propValue instanceof RegExp) {
|
|
26142
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
26143
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
26144
|
-
// passes PropTypes.object.
|
|
26145
26120
|
return 'object';
|
|
26146
26121
|
}
|
|
26147
26122
|
if (isSymbol(propType, propValue)) {
|
|
@@ -26149,9 +26124,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26149
26124
|
}
|
|
26150
26125
|
return propType;
|
|
26151
26126
|
}
|
|
26152
|
-
|
|
26153
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
26154
|
-
// See `createPrimitiveTypeChecker`.
|
|
26155
26127
|
function getPreciseType(propValue) {
|
|
26156
26128
|
if (typeof propValue === 'undefined' || propValue === null) {
|
|
26157
26129
|
return '' + propValue;
|
|
@@ -26166,9 +26138,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26166
26138
|
}
|
|
26167
26139
|
return propType;
|
|
26168
26140
|
}
|
|
26169
|
-
|
|
26170
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
26171
|
-
// For example, "undefined" or "of type array"
|
|
26172
26141
|
function getPostfixForTypeWarning(value) {
|
|
26173
26142
|
var type = getPreciseType(value);
|
|
26174
26143
|
switch (type) {
|
|
@@ -26183,44 +26152,34 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
26183
26152
|
return type;
|
|
26184
26153
|
}
|
|
26185
26154
|
}
|
|
26186
|
-
|
|
26187
|
-
// Returns class name of the object, if any.
|
|
26188
26155
|
function getClassName(propValue) {
|
|
26189
26156
|
if (!propValue.constructor || !propValue.constructor.name) {
|
|
26190
26157
|
return ANONYMOUS;
|
|
26191
26158
|
}
|
|
26192
26159
|
return propValue.constructor.name;
|
|
26193
26160
|
}
|
|
26194
|
-
|
|
26195
26161
|
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
26196
26162
|
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
26197
26163
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
26198
|
-
|
|
26199
26164
|
return ReactPropTypes;
|
|
26200
26165
|
};
|
|
26201
26166
|
|
|
26202
26167
|
function emptyFunction() {}
|
|
26203
26168
|
function emptyFunctionWithReset() {}
|
|
26204
26169
|
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
26205
|
-
|
|
26206
|
-
var factoryWithThrowingShims = function() {
|
|
26170
|
+
var factoryWithThrowingShims = function () {
|
|
26207
26171
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
26208
26172
|
if (secret === ReactPropTypesSecret_1) {
|
|
26209
|
-
// It is still safe when called from React.
|
|
26210
26173
|
return;
|
|
26211
26174
|
}
|
|
26212
|
-
var err = new Error(
|
|
26213
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
26214
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
26215
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
26216
|
-
);
|
|
26175
|
+
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');
|
|
26217
26176
|
err.name = 'Invariant Violation';
|
|
26218
26177
|
throw err;
|
|
26219
|
-
}
|
|
26178
|
+
}
|
|
26179
|
+
shim.isRequired = shim;
|
|
26220
26180
|
function getShim() {
|
|
26221
26181
|
return shim;
|
|
26222
|
-
}
|
|
26223
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
26182
|
+
}
|
|
26224
26183
|
var ReactPropTypes = {
|
|
26225
26184
|
array: shim,
|
|
26226
26185
|
bigint: shim,
|
|
@@ -26230,7 +26189,6 @@ var factoryWithThrowingShims = function() {
|
|
|
26230
26189
|
object: shim,
|
|
26231
26190
|
string: shim,
|
|
26232
26191
|
symbol: shim,
|
|
26233
|
-
|
|
26234
26192
|
any: shim,
|
|
26235
26193
|
arrayOf: getShim,
|
|
26236
26194
|
element: shim,
|
|
@@ -26242,36 +26200,21 @@ var factoryWithThrowingShims = function() {
|
|
|
26242
26200
|
oneOfType: getShim,
|
|
26243
26201
|
shape: getShim,
|
|
26244
26202
|
exact: getShim,
|
|
26245
|
-
|
|
26246
26203
|
checkPropTypes: emptyFunctionWithReset,
|
|
26247
26204
|
resetWarningCache: emptyFunction
|
|
26248
26205
|
};
|
|
26249
|
-
|
|
26250
26206
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
26251
|
-
|
|
26252
26207
|
return ReactPropTypes;
|
|
26253
26208
|
};
|
|
26254
26209
|
|
|
26255
26210
|
var propTypes = createCommonjsModule(function (module) {
|
|
26256
|
-
|
|
26257
|
-
|
|
26258
|
-
|
|
26259
|
-
|
|
26260
|
-
|
|
26261
|
-
|
|
26262
|
-
|
|
26263
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
26264
|
-
var ReactIs = reactIs;
|
|
26265
|
-
|
|
26266
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
26267
|
-
// http://fb.me/prop-types-in-prod
|
|
26268
|
-
var throwOnDirectAccess = true;
|
|
26269
|
-
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
26270
|
-
} else {
|
|
26271
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
26272
|
-
// http://fb.me/prop-types-in-prod
|
|
26273
|
-
module.exports = factoryWithThrowingShims();
|
|
26274
|
-
}
|
|
26211
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26212
|
+
var ReactIs = reactIs;
|
|
26213
|
+
var throwOnDirectAccess = true;
|
|
26214
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
26215
|
+
} else {
|
|
26216
|
+
module.exports = factoryWithThrowingShims();
|
|
26217
|
+
}
|
|
26275
26218
|
});
|
|
26276
26219
|
|
|
26277
26220
|
const SearchConnection = _ref => {
|
|
@@ -28046,31 +27989,31 @@ const checkForNA$1 = value => {
|
|
|
28046
27989
|
return value ? value : "CS_NA";
|
|
28047
27990
|
};
|
|
28048
27991
|
const WSApplicationDetails = () => {
|
|
28049
|
-
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;
|
|
27992
|
+
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;
|
|
28050
27993
|
const getDisconnectionNoticeSearch = function () {
|
|
28051
27994
|
try {
|
|
28052
|
-
var _data$
|
|
27995
|
+
var _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect169, _data$SewerageConnect170;
|
|
28053
27996
|
let key = "ws-waterdisconnectionnotice";
|
|
28054
27997
|
let details = {};
|
|
28055
27998
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
28056
|
-
var _data$
|
|
27999
|
+
var _data$WaterConnection173, _PTData$Properties9;
|
|
28057
28000
|
details = {
|
|
28058
|
-
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
28001
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection173 = data.WaterConnection) === null || _data$WaterConnection173 === void 0 ? void 0 : _data$WaterConnection173[0], {
|
|
28059
28002
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : _PTData$Properties9[0]
|
|
28060
28003
|
})]
|
|
28061
28004
|
};
|
|
28062
28005
|
} else {
|
|
28063
|
-
var _data$
|
|
28006
|
+
var _data$SewerageConnect168, _PTData$Properties0;
|
|
28064
28007
|
key = "ws-seweragedisconnectionnotice";
|
|
28065
28008
|
details = {
|
|
28066
|
-
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
28009
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect168 = data.SewerageConnections) === null || _data$SewerageConnect168 === void 0 ? void 0 : _data$SewerageConnect168[0], {
|
|
28067
28010
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : _PTData$Properties0[0]
|
|
28068
28011
|
})]
|
|
28069
28012
|
};
|
|
28070
28013
|
}
|
|
28071
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
28072
|
-
var _data$
|
|
28073
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
28014
|
+
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) {
|
|
28015
|
+
var _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect171, _data$SewerageConnect172;
|
|
28016
|
+
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), {
|
|
28074
28017
|
fileStoreIds: response.filestoreIds[0]
|
|
28075
28018
|
})).then(function (fileStore) {
|
|
28076
28019
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -28089,8 +28032,7 @@ const WSApplicationDetails = () => {
|
|
|
28089
28032
|
const _useState = React.useState(false),
|
|
28090
28033
|
showOptions = _useState[0],
|
|
28091
28034
|
setShowOptions = _useState[1];
|
|
28092
|
-
const _useState2 = React.useState(false)
|
|
28093
|
-
setViewTimeline = _useState2[1];
|
|
28035
|
+
const _useState2 = React.useState(false);
|
|
28094
28036
|
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_"));
|
|
28095
28037
|
let filter1 = {
|
|
28096
28038
|
tenantId: tenantId,
|
|
@@ -28191,15 +28133,6 @@ const WSApplicationDetails = () => {
|
|
|
28191
28133
|
return Promise.reject(e);
|
|
28192
28134
|
}
|
|
28193
28135
|
};
|
|
28194
|
-
const handleViewTimeline = () => {
|
|
28195
|
-
const timelineSection = document.getElementById("timeline");
|
|
28196
|
-
if (timelineSection) {
|
|
28197
|
-
timelineSection.scrollIntoView({
|
|
28198
|
-
behavior: "smooth"
|
|
28199
|
-
});
|
|
28200
|
-
}
|
|
28201
|
-
setViewTimeline(true);
|
|
28202
|
-
};
|
|
28203
28136
|
const printApplicationReceipts = function () {
|
|
28204
28137
|
try {
|
|
28205
28138
|
var _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect24, _data$SewerageConnect25;
|
|
@@ -28315,12 +28248,34 @@ const WSApplicationDetails = () => {
|
|
|
28315
28248
|
let serviceType = data && data !== null && data !== void 0 && (_data$WaterConnection44 = data.WaterConnection) !== null && _data$WaterConnection44 !== void 0 && _data$WaterConnection44[0] ? "WATER" : "SEWERAGE";
|
|
28316
28249
|
sessionStorage.setItem("ApplicationNoState", applicationNobyData);
|
|
28317
28250
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28251
|
+
className: "employee-main-application-details",
|
|
28252
|
+
style: {
|
|
28253
|
+
display: "flex",
|
|
28254
|
+
gap: "20px"
|
|
28255
|
+
}
|
|
28256
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28257
|
+
className: "workflow-timeline-wrapper no-scrollbar",
|
|
28258
|
+
style: {
|
|
28259
|
+
flex: "1 1 300px",
|
|
28260
|
+
maxWidth: "400px"
|
|
28261
|
+
}
|
|
28262
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28263
|
+
id: "timeline"
|
|
28264
|
+
}, /*#__PURE__*/React__default.createElement(WSWFApplicationTimeline, {
|
|
28265
|
+
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]),
|
|
28266
|
+
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),
|
|
28267
|
+
paymentbuttonenabled: false
|
|
28268
|
+
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
28269
|
+
style: {
|
|
28270
|
+
flex: "2 1 500px"
|
|
28271
|
+
}
|
|
28272
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
28318
28273
|
className: "cardHeaderWithOptions",
|
|
28319
28274
|
style: {
|
|
28320
28275
|
marginRight: "auto",
|
|
28321
28276
|
maxWidth: "960px"
|
|
28322
28277
|
}
|
|
28323
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
28278
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
28324
28279
|
style: {
|
|
28325
28280
|
zIndex: "10",
|
|
28326
28281
|
display: "flex",
|
|
@@ -28335,88 +28290,63 @@ const WSApplicationDetails = () => {
|
|
|
28335
28290
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
28336
28291
|
displayOptions: showOptions,
|
|
28337
28292
|
options: downloadOptions
|
|
28338
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
28339
|
-
label: t("VIEW_TIMELINE"),
|
|
28340
|
-
style: {
|
|
28341
|
-
color: "#A52A2A"
|
|
28342
|
-
},
|
|
28343
|
-
onClick: handleViewTimeline
|
|
28344
|
-
}))), checkifPrivacyenabled && /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
28293
|
+
})))), checkifPrivacyenabled && /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
28345
28294
|
t: t
|
|
28346
28295
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
28347
28296
|
className: "hide-seperator"
|
|
28348
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
28349
|
-
className: "border-none",
|
|
28297
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28350
28298
|
label: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
28351
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28299
|
+
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),
|
|
28352
28300
|
textStyle: {}
|
|
28353
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28354
|
-
className: "border-none",
|
|
28301
|
+
}), ((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__default.createElement(digitUiReactComponents.Row, {
|
|
28355
28302
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
28356
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28303
|
+
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),
|
|
28357
28304
|
textStyle: {
|
|
28358
28305
|
wordBreak: "break-word"
|
|
28359
28306
|
}
|
|
28360
28307
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28361
|
-
className: "border-none",
|
|
28362
28308
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
28363
|
-
text: t("WS_APPLICATION_TYPE_" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28309
|
+
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))),
|
|
28364
28310
|
textStyle: {
|
|
28365
28311
|
wordBreak: "break-word"
|
|
28366
28312
|
}
|
|
28367
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28368
|
-
className: "border-none",
|
|
28313
|
+
}), ((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__default.createElement(digitUiReactComponents.Row, {
|
|
28369
28314
|
label: t("WS_DISCONNECTION_PROPOSED_DATE"),
|
|
28370
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
28315
|
+
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),
|
|
28371
28316
|
textStyle: {
|
|
28372
28317
|
wordBreak: "break-word"
|
|
28373
28318
|
}
|
|
28374
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28375
|
-
className: "border-none",
|
|
28319
|
+
}), ((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__default.createElement(digitUiReactComponents.Row, {
|
|
28376
28320
|
label: t("WS_DISCONNECTION_EXECUTED_DATE"),
|
|
28377
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
28321
|
+
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),
|
|
28378
28322
|
textStyle: {
|
|
28379
28323
|
wordBreak: "break-word"
|
|
28380
28324
|
}
|
|
28381
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
28382
|
-
className: "border-none",
|
|
28325
|
+
}), ((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__default.createElement(digitUiReactComponents.Row, {
|
|
28383
28326
|
label: t("WS_DISCONNECTION_REASON"),
|
|
28384
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28327
|
+
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"),
|
|
28385
28328
|
textStyle: {
|
|
28386
28329
|
wordBreak: "break-word"
|
|
28387
28330
|
}
|
|
28388
|
-
}))
|
|
28331
|
+
})), (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__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28389
28332
|
styles: {
|
|
28390
28333
|
fontSize: "28px"
|
|
28391
28334
|
}
|
|
28392
28335
|
}, t("WS_FEE_DEATAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.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__default.createElement(digitUiReactComponents.Row, {
|
|
28393
|
-
className: "border-none",
|
|
28394
28336
|
label: t(bill === null || bill === void 0 ? void 0 : bill.taxHeadCode),
|
|
28395
|
-
text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2)
|
|
28396
|
-
textStyle: {
|
|
28397
|
-
textAlign: "right"
|
|
28398
|
-
}
|
|
28337
|
+
text: "\u20B9" + Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2)
|
|
28399
28338
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28400
|
-
className: "border-none",
|
|
28401
28339
|
label: t("WS_TOTAL_AMOUNT_DUE"),
|
|
28402
|
-
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)
|
|
28403
|
-
textStyle: {
|
|
28404
|
-
textAlign: "right",
|
|
28405
|
-
fontSize: "18px",
|
|
28406
|
-
fontWeight: "700"
|
|
28407
|
-
}
|
|
28340
|
+
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)
|
|
28408
28341
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28409
|
-
className: "border-none",
|
|
28410
28342
|
label: t("WS_COMMON_TABLE_COL_APPLICATION_STATUS"),
|
|
28411
28343
|
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"),
|
|
28412
28344
|
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 ? {
|
|
28413
|
-
textAlign: "right",
|
|
28414
28345
|
color: "darkgreen"
|
|
28415
28346
|
} : {
|
|
28416
|
-
textAlign: "right",
|
|
28417
28347
|
color: "red"
|
|
28418
28348
|
}
|
|
28419
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
28349
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28420
28350
|
styles: {
|
|
28421
28351
|
fontSize: "28px"
|
|
28422
28352
|
}
|
|
@@ -28449,19 +28379,18 @@ const WSApplicationDetails = () => {
|
|
|
28449
28379
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28450
28380
|
label: t("WS_NATURE_OF_WORK"),
|
|
28451
28381
|
text: "" + t(checkForNA$1(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.natureOfWork))
|
|
28452
|
-
})))
|
|
28382
|
+
}))), (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__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28453
28383
|
styles: {
|
|
28454
28384
|
fontSize: "28px"
|
|
28455
28385
|
}
|
|
28456
28386
|
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28457
|
-
className: "border-none",
|
|
28458
28387
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
28459
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28388
|
+
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),
|
|
28460
28389
|
textStyle: {
|
|
28461
28390
|
whiteSpace: "pre"
|
|
28462
28391
|
},
|
|
28463
28392
|
privacy: {
|
|
28464
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28393
|
+
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,
|
|
28465
28394
|
fieldName: "connectionHoldersMobileNumber",
|
|
28466
28395
|
model: "WnSConnectionOwner",
|
|
28467
28396
|
showValue: false,
|
|
@@ -28477,21 +28406,19 @@ const WSApplicationDetails = () => {
|
|
|
28477
28406
|
}
|
|
28478
28407
|
}
|
|
28479
28408
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28480
|
-
className: "border-none",
|
|
28481
28409
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
28482
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28410
|
+
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),
|
|
28483
28411
|
textStyle: {
|
|
28484
28412
|
whiteSpace: "pre"
|
|
28485
28413
|
}
|
|
28486
28414
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28487
|
-
className: "border-none",
|
|
28488
28415
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
28489
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
28416
|
+
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)),
|
|
28490
28417
|
textStyle: {
|
|
28491
28418
|
whiteSpace: "pre"
|
|
28492
28419
|
},
|
|
28493
28420
|
privacy: {
|
|
28494
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28421
|
+
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,
|
|
28495
28422
|
fieldName: "gender",
|
|
28496
28423
|
model: "WnSConnectionOwner",
|
|
28497
28424
|
showValue: false,
|
|
@@ -28507,14 +28434,13 @@ const WSApplicationDetails = () => {
|
|
|
28507
28434
|
}
|
|
28508
28435
|
}
|
|
28509
28436
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28510
|
-
className: "border-none",
|
|
28511
28437
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
28512
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28438
|
+
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"),
|
|
28513
28439
|
textStyle: {
|
|
28514
28440
|
whiteSpace: "pre"
|
|
28515
28441
|
},
|
|
28516
28442
|
privacy: {
|
|
28517
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28443
|
+
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,
|
|
28518
28444
|
fieldName: "fatherOrHusbandName",
|
|
28519
28445
|
model: "WnSConnectionOwner",
|
|
28520
28446
|
showValue: false,
|
|
@@ -28530,14 +28456,13 @@ const WSApplicationDetails = () => {
|
|
|
28530
28456
|
}
|
|
28531
28457
|
}
|
|
28532
28458
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28533
|
-
className: "border-none",
|
|
28534
28459
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
28535
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28460
|
+
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"),
|
|
28536
28461
|
textStyle: {
|
|
28537
28462
|
whiteSpace: "pre"
|
|
28538
28463
|
},
|
|
28539
28464
|
privacy: {
|
|
28540
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28465
|
+
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,
|
|
28541
28466
|
fieldName: "relationship",
|
|
28542
28467
|
model: "WnSConnection",
|
|
28543
28468
|
showValue: false,
|
|
@@ -28553,11 +28478,10 @@ const WSApplicationDetails = () => {
|
|
|
28553
28478
|
}
|
|
28554
28479
|
}
|
|
28555
28480
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28556
|
-
className: "border-none",
|
|
28557
28481
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
28558
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28482
|
+
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"),
|
|
28559
28483
|
privacy: {
|
|
28560
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28484
|
+
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,
|
|
28561
28485
|
fieldName: "correspondenceAddress",
|
|
28562
28486
|
model: "WnSConnectionOwner",
|
|
28563
28487
|
showValue: false,
|
|
@@ -28573,42 +28497,13 @@ const WSApplicationDetails = () => {
|
|
|
28573
28497
|
}
|
|
28574
28498
|
}
|
|
28575
28499
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28576
|
-
className: "border-none",
|
|
28577
|
-
label: t("WS_OWN_DETAIL_SPECIAL_APPLICANT_LABEL"),
|
|
28578
|
-
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,
|
|
28579
|
-
textStyle: {
|
|
28580
|
-
whiteSpace: "pre"
|
|
28581
|
-
},
|
|
28582
|
-
privacy: {
|
|
28583
|
-
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,
|
|
28584
|
-
fieldName: "ownerType",
|
|
28585
|
-
model: "WnSConnection",
|
|
28586
|
-
showValue: false,
|
|
28587
|
-
loadData: {
|
|
28588
|
-
serviceName: serviceType === "WATER" ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
|
|
28589
|
-
requestBody: {},
|
|
28590
|
-
requestParam: {
|
|
28591
|
-
tenantId,
|
|
28592
|
-
applicationNumber: applicationNobyData
|
|
28593
|
-
},
|
|
28594
|
-
jsonPath: serviceType === "WATER" ? "WaterConnection[0].connectionHolders[0].ownerType" : "SewerageConnections[0].connectionHolders[0].ownerType",
|
|
28595
|
-
isArray: false,
|
|
28596
|
-
d: res => {
|
|
28597
|
-
var _res$WaterConnection, _res$WaterConnection2, _res$WaterConnection3, _res$WaterConnection4, _res$WaterConnection5, _res$WaterConnection6, _res$SewerageConnecti, _res$SewerageConnecti2, _res$SewerageConnecti3, _res$SewerageConnecti4, _res$SewerageConnecti5;
|
|
28598
|
-
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()));
|
|
28599
|
-
return resultString;
|
|
28600
|
-
}
|
|
28601
|
-
}
|
|
28602
|
-
}
|
|
28603
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28604
|
-
className: "border-none",
|
|
28605
28500
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
28606
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28501
|
+
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",
|
|
28607
28502
|
textStyle: {
|
|
28608
28503
|
whiteSpace: "pre"
|
|
28609
28504
|
},
|
|
28610
28505
|
privacy: {
|
|
28611
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
28506
|
+
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,
|
|
28612
28507
|
fieldName: "connectionHoldersEmailId",
|
|
28613
28508
|
model: "WnSConnectionOwner",
|
|
28614
28509
|
showValue: false,
|
|
@@ -28623,19 +28518,17 @@ const WSApplicationDetails = () => {
|
|
|
28623
28518
|
isArray: false
|
|
28624
28519
|
}
|
|
28625
28520
|
}
|
|
28626
|
-
}))) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
28521
|
+
}))) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, null, t("WS_SAME_AS_PROPERTY_OWNERS"))), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28627
28522
|
styles: {
|
|
28628
28523
|
fontSize: "28px"
|
|
28629
28524
|
}
|
|
28630
28525
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28631
|
-
className: "border-none",
|
|
28632
28526
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
28633
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
28527
|
+
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),
|
|
28634
28528
|
textStyle: {
|
|
28635
28529
|
wordBreak: "break-word"
|
|
28636
28530
|
}
|
|
28637
28531
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28638
|
-
className: "border-none",
|
|
28639
28532
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
28640
28533
|
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) => {
|
|
28641
28534
|
var _a$additionalDetails, _b$additionalDetails;
|
|
@@ -28645,7 +28538,6 @@ const WSApplicationDetails = () => {
|
|
|
28645
28538
|
whiteSpace: "pre"
|
|
28646
28539
|
}
|
|
28647
28540
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28648
|
-
className: "border-none",
|
|
28649
28541
|
label: t("WS_PROPERTY_ADDRESS"),
|
|
28650
28542
|
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"),
|
|
28651
28543
|
textStyle: {
|
|
@@ -28673,13 +28565,13 @@ const WSApplicationDetails = () => {
|
|
|
28673
28565
|
}
|
|
28674
28566
|
}
|
|
28675
28567
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28676
|
-
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28568
|
+
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))
|
|
28677
28569
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
28678
28570
|
style: {
|
|
28679
28571
|
textAlign: "left"
|
|
28680
28572
|
},
|
|
28681
28573
|
label: t("WS_VIEW_PROPERTY")
|
|
28682
|
-
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
28574
|
+
})))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28683
28575
|
styles: {
|
|
28684
28576
|
fontSize: "28px"
|
|
28685
28577
|
}
|
|
@@ -28745,7 +28637,7 @@ const WSApplicationDetails = () => {
|
|
|
28745
28637
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28746
28638
|
label: t("LANDMARK"),
|
|
28747
28639
|
text: "" + t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.landmark))
|
|
28748
|
-
}))
|
|
28640
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28749
28641
|
styles: {
|
|
28750
28642
|
fontSize: "28px"
|
|
28751
28643
|
}
|
|
@@ -28781,7 +28673,7 @@ const WSApplicationDetails = () => {
|
|
|
28781
28673
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28782
28674
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
28783
28675
|
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))
|
|
28784
|
-
}))
|
|
28676
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28785
28677
|
styles: {
|
|
28786
28678
|
fontSize: "28px"
|
|
28787
28679
|
}
|
|
@@ -28802,7 +28694,7 @@ const WSApplicationDetails = () => {
|
|
|
28802
28694
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28803
28695
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
28804
28696
|
text: "" + t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))
|
|
28805
|
-
})))
|
|
28697
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28806
28698
|
styles: {
|
|
28807
28699
|
fontSize: "28px"
|
|
28808
28700
|
}
|
|
@@ -28823,19 +28715,19 @@ const WSApplicationDetails = () => {
|
|
|
28823
28715
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
28824
28716
|
label: t("WS_BANK_ACCOUNT_NO"),
|
|
28825
28717
|
text: "" + t(checkForNA$1((bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.bankAccountNumber) || (bankDetails === null || bankDetails === void 0 ? void 0 : bankDetails.accountNumber)))
|
|
28826
|
-
}))
|
|
28718
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
28827
28719
|
styles: {
|
|
28828
28720
|
fontSize: "28px"
|
|
28829
28721
|
}
|
|
28830
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
28831
|
-
var _doc$documentType, _data$
|
|
28722
|
+
}, 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) => {
|
|
28723
|
+
var _doc$documentType, _data$WaterConnection135, _data$WaterConnection136, _data$WaterConnection137, _data$WaterConnection138;
|
|
28832
28724
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
28833
28725
|
key: "doc-" + index
|
|
28834
28726
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.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__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
28835
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28727
|
+
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,
|
|
28836
28728
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28837
28729
|
index: index
|
|
28838
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28730
|
+
}), (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__default.createElement("hr", {
|
|
28839
28731
|
style: {
|
|
28840
28732
|
color: "#cccccc",
|
|
28841
28733
|
backgroundColor: "#cccccc",
|
|
@@ -28844,15 +28736,15 @@ const WSApplicationDetails = () => {
|
|
|
28844
28736
|
marginBottom: "20px"
|
|
28845
28737
|
}
|
|
28846
28738
|
}) : null)));
|
|
28847
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
28848
|
-
var _doc$documentType2, _data$
|
|
28739
|
+
})), (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) => {
|
|
28740
|
+
var _doc$documentType2, _data$SewerageConnect130, _data$SewerageConnect131, _data$SewerageConnect132, _data$SewerageConnect133;
|
|
28849
28741
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
28850
28742
|
key: "doc-" + index
|
|
28851
28743
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.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__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
28852
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28744
|
+
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,
|
|
28853
28745
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
28854
28746
|
index: index
|
|
28855
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
28747
|
+
}), (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__default.createElement("hr", {
|
|
28856
28748
|
style: {
|
|
28857
28749
|
color: "white",
|
|
28858
28750
|
backgroundColor: "white",
|
|
@@ -28861,42 +28753,36 @@ const WSApplicationDetails = () => {
|
|
|
28861
28753
|
marginBottom: "20px"
|
|
28862
28754
|
}
|
|
28863
28755
|
}) : null)));
|
|
28864
|
-
}))
|
|
28865
|
-
id: "timeline"
|
|
28866
|
-
}, /*#__PURE__*/React__default.createElement(WSWFApplicationTimeline, {
|
|
28867
|
-
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]),
|
|
28868
|
-
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),
|
|
28869
|
-
paymentbuttonenabled: false
|
|
28870
|
-
})), (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__default.createElement(reactRouterDom.Link, {
|
|
28756
|
+
})), (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__default.createElement(reactRouterDom.Link, {
|
|
28871
28757
|
to: {
|
|
28872
|
-
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$
|
|
28758
|
+
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),
|
|
28873
28759
|
state: {}
|
|
28874
28760
|
}
|
|
28875
28761
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
28876
28762
|
label: t("MAKE_PAYMENT")
|
|
28877
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
28763
|
+
})) : 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__default.createElement(reactRouterDom.Link, {
|
|
28878
28764
|
to: {
|
|
28879
|
-
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28765
|
+
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)),
|
|
28880
28766
|
state: {
|
|
28881
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28767
|
+
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))
|
|
28882
28768
|
}
|
|
28883
28769
|
}
|
|
28884
28770
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
28885
28771
|
label: t("COMMON_EDIT")
|
|
28886
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
28772
|
+
})) : 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__default.createElement(reactRouterDom.Link, {
|
|
28887
28773
|
to: {
|
|
28888
28774
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
28889
28775
|
state: {
|
|
28890
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
28776
|
+
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))
|
|
28891
28777
|
}
|
|
28892
28778
|
}
|
|
28893
28779
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
28894
28780
|
label: t("RESUBMIT_APPLICATION"),
|
|
28895
28781
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
28896
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28782
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect159 = data.SewerageConnections) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159[0],
|
|
28897
28783
|
serviceType: "SEWERAGE",
|
|
28898
28784
|
WSDisconnectionForm: {
|
|
28899
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28785
|
+
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 ? {
|
|
28900
28786
|
code: "type",
|
|
28901
28787
|
value: {
|
|
28902
28788
|
name: "Temporary",
|
|
@@ -28913,18 +28799,18 @@ const WSApplicationDetails = () => {
|
|
|
28913
28799
|
code: "Permanent"
|
|
28914
28800
|
}
|
|
28915
28801
|
},
|
|
28916
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28802
|
+
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),
|
|
28917
28803
|
reason: {
|
|
28918
28804
|
code: "reason",
|
|
28919
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28805
|
+
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
|
|
28920
28806
|
},
|
|
28921
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28807
|
+
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
|
|
28922
28808
|
}
|
|
28923
28809
|
} : {
|
|
28924
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
28810
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection164 = data.WaterConnection) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164[0],
|
|
28925
28811
|
serviceType: "WATER",
|
|
28926
28812
|
WSDisconnectionForm: {
|
|
28927
|
-
type: data !== null && data !== void 0 && (_data$
|
|
28813
|
+
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 ? {
|
|
28928
28814
|
code: "type",
|
|
28929
28815
|
value: {
|
|
28930
28816
|
name: "Temporary",
|
|
@@ -28941,15 +28827,15 @@ const WSApplicationDetails = () => {
|
|
|
28941
28827
|
code: "Permanent"
|
|
28942
28828
|
}
|
|
28943
28829
|
},
|
|
28944
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
28830
|
+
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),
|
|
28945
28831
|
reason: {
|
|
28946
28832
|
code: "reason",
|
|
28947
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
28833
|
+
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
|
|
28948
28834
|
},
|
|
28949
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
28835
|
+
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
|
|
28950
28836
|
}
|
|
28951
28837
|
})
|
|
28952
|
-
})) : null)));
|
|
28838
|
+
})) : null)))));
|
|
28953
28839
|
};
|
|
28954
28840
|
|
|
28955
28841
|
const WSAdditionalDetails = () => {
|
|
@@ -31148,7 +31034,7 @@ const WSConnection = _ref => {
|
|
|
31148
31034
|
};
|
|
31149
31035
|
|
|
31150
31036
|
const MyConnections = _ref => {
|
|
31151
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList
|
|
31037
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _data$WaterConnection, _SWdata$SewerageConne, _connectionList;
|
|
31152
31038
|
const _useTranslation = reactI18next.useTranslation(),
|
|
31153
31039
|
t = _useTranslation.t;
|
|
31154
31040
|
const user = Digit.UserService.getUser();
|
|
@@ -31179,7 +31065,7 @@ const MyConnections = _ref => {
|
|
|
31179
31065
|
}),
|
|
31180
31066
|
isSWLoading = _Digit$Hooks$ws$useMy2.isLoading,
|
|
31181
31067
|
SWdata = _Digit$Hooks$ws$useMy2.data;
|
|
31182
|
-
let connectionList = data === null || data === void 0 ? void 0 : data.WaterConnection.concat(SWdata === null || SWdata === void 0 ? void 0 : SWdata.SewerageConnections);
|
|
31068
|
+
let connectionList = ((data === null || data === void 0 ? void 0 : data.WaterConnection) || []).concat((SWdata === null || SWdata === void 0 ? void 0 : SWdata.SewerageConnections) || []);
|
|
31183
31069
|
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(",")) || "";
|
|
31184
31070
|
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(",")) || "";
|
|
31185
31071
|
let applicationNos = applicationNoWS.concat(applicaionNoSW);
|
|
@@ -31202,16 +31088,114 @@ const MyConnections = _ref => {
|
|
|
31202
31088
|
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]
|
|
31203
31089
|
});
|
|
31204
31090
|
});
|
|
31091
|
+
const _useState = React.useState(0),
|
|
31092
|
+
pageOffset = _useState[0],
|
|
31093
|
+
setPageOffset = _useState[1];
|
|
31094
|
+
const _useState2 = React.useState(10),
|
|
31095
|
+
pageSize = _useState2[0],
|
|
31096
|
+
setPageSize = _useState2[1];
|
|
31097
|
+
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
31098
|
+
const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
|
|
31099
|
+
className: "cell-text"
|
|
31100
|
+
}, value);
|
|
31101
|
+
const columns = React.useMemo(() => {
|
|
31102
|
+
return [{
|
|
31103
|
+
Header: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
31104
|
+
disableSortBy: true,
|
|
31105
|
+
Cell: _ref2 => {
|
|
31106
|
+
var _row$original, _row$original2;
|
|
31107
|
+
let row = _ref2.row;
|
|
31108
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
31109
|
+
className: "link"
|
|
31110
|
+
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
31111
|
+
to: {
|
|
31112
|
+
pathname: "/digit-ui/citizen/ws/connection/details/" + encodeURI((_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationNo),
|
|
31113
|
+
state: _extends({}, row.original)
|
|
31114
|
+
}
|
|
31115
|
+
}, ((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.connectionNo) || "NA"));
|
|
31116
|
+
}
|
|
31117
|
+
}, {
|
|
31118
|
+
Header: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
31119
|
+
disableSortBy: true,
|
|
31120
|
+
Cell: _ref3 => {
|
|
31121
|
+
var _row$original3;
|
|
31122
|
+
let row = _ref3.row;
|
|
31123
|
+
return /*#__PURE__*/React__default.createElement("span", null, ((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.applicationNo) || "NA");
|
|
31124
|
+
}
|
|
31125
|
+
}, {
|
|
31126
|
+
Header: t("WS_SERVICE_NAME_LABEL"),
|
|
31127
|
+
disableSortBy: true,
|
|
31128
|
+
Cell: _ref4 => {
|
|
31129
|
+
var _row$original4;
|
|
31130
|
+
let row = _ref4.row;
|
|
31131
|
+
return GetCell(t("WS_APPLICATION_TYPE_" + ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.applicationType)));
|
|
31132
|
+
}
|
|
31133
|
+
}, {
|
|
31134
|
+
Header: t("WS_CONSUMER_NAME"),
|
|
31135
|
+
disableSortBy: true,
|
|
31136
|
+
Cell: _ref5 => {
|
|
31137
|
+
var _row$original5, _row$original5$connec, _row$original6, _row$original6$proper, _row$original6$proper2, _row$original6$proper3;
|
|
31138
|
+
let row = _ref5.row;
|
|
31139
|
+
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) => {
|
|
31140
|
+
var _a$additionalDetails, _b$additionalDetails;
|
|
31141
|
+
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);
|
|
31142
|
+
})) === null || _row$original6$proper3 === void 0 ? void 0 : _row$original6$proper3.map(owner => owner.name).join(",")) || t("CS_NA");
|
|
31143
|
+
return GetCell(names);
|
|
31144
|
+
}
|
|
31145
|
+
}, {
|
|
31146
|
+
Header: t("WS_MYCONNECTIONS_STATUS"),
|
|
31147
|
+
disableSortBy: true,
|
|
31148
|
+
Cell: _ref6 => {
|
|
31149
|
+
var _row$original7;
|
|
31150
|
+
let row = _ref6.row;
|
|
31151
|
+
return GetCell(t((_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.status) || t("CS_NA"));
|
|
31152
|
+
}
|
|
31153
|
+
}, {
|
|
31154
|
+
Header: t("WS_VIEW_DETAILS"),
|
|
31155
|
+
disableSortBy: true,
|
|
31156
|
+
Cell: _ref7 => {
|
|
31157
|
+
let row = _ref7.row;
|
|
31158
|
+
const application = row.original;
|
|
31159
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
31160
|
+
className: "link"
|
|
31161
|
+
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
31162
|
+
to: {
|
|
31163
|
+
pathname: "/digit-ui/citizen/ws/connection/details/" + encodeURI(application === null || application === void 0 ? void 0 : application.applicationNo),
|
|
31164
|
+
state: _extends({}, application)
|
|
31165
|
+
}
|
|
31166
|
+
}, t("WS_VIEW_DETAILS_LABEL")));
|
|
31167
|
+
}
|
|
31168
|
+
}];
|
|
31169
|
+
}, [t]);
|
|
31205
31170
|
if (isLoading || PTisLoading || isSWLoading) {
|
|
31206
31171
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
31207
31172
|
}
|
|
31208
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
31173
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
31209
31174
|
t: t
|
|
31210
|
-
}), /*#__PURE__*/React__default.createElement("div", null, ((_connectionList = connectionList) === null || _connectionList === void 0 ? void 0 : _connectionList.length) > 0
|
|
31175
|
+
}), /*#__PURE__*/React__default.createElement("div", null, ((_connectionList = connectionList) === null || _connectionList === void 0 ? void 0 : _connectionList.length) > 0 ? isMobile ? connectionList.map((application, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
31211
31176
|
key: index
|
|
31212
31177
|
}, /*#__PURE__*/React__default.createElement(WSConnection, {
|
|
31213
31178
|
application: application
|
|
31214
|
-
})))
|
|
31179
|
+
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
|
|
31180
|
+
t: t,
|
|
31181
|
+
data: connectionList.slice(pageOffset, pageOffset + pageSize),
|
|
31182
|
+
totalRecords: connectionList.length,
|
|
31183
|
+
columns: columns,
|
|
31184
|
+
getCellProps: cellInfo => {
|
|
31185
|
+
return {
|
|
31186
|
+
style: {
|
|
31187
|
+
padding: "20px 18px",
|
|
31188
|
+
fontSize: "16px"
|
|
31189
|
+
}
|
|
31190
|
+
};
|
|
31191
|
+
},
|
|
31192
|
+
onPageSizeChange: e => setPageSize(Number(e.target.value)),
|
|
31193
|
+
currentPage: Math.floor(pageOffset / pageSize),
|
|
31194
|
+
onNextPage: () => setPageOffset(pageOffset + pageSize),
|
|
31195
|
+
onPrevPage: () => setPageOffset(pageOffset - pageSize),
|
|
31196
|
+
pageSizeLimit: pageSize,
|
|
31197
|
+
disableSort: true
|
|
31198
|
+
}) : /*#__PURE__*/React__default.createElement("p", {
|
|
31215
31199
|
style: {
|
|
31216
31200
|
marginLeft: "16px",
|
|
31217
31201
|
marginTop: "16px"
|
|
@@ -32457,176 +32441,6 @@ const WSInfoPage = () => {
|
|
|
32457
32441
|
})));
|
|
32458
32442
|
};
|
|
32459
32443
|
|
|
32460
|
-
const _excluded$3 = ["address", "actionCancelOnSubmit", "isEdit", "onSelect", "config", "hideZRO", "formData"];
|
|
32461
|
-
const PropertyLocationDetails = _ref => {
|
|
32462
|
-
var _formDataProp$cpt2;
|
|
32463
|
-
let address = _ref.address,
|
|
32464
|
-
isEdit = _ref.isEdit,
|
|
32465
|
-
onSelect = _ref.onSelect,
|
|
32466
|
-
config = _ref.config,
|
|
32467
|
-
hideZRO = _ref.hideZRO,
|
|
32468
|
-
formDataProp = _ref.formData,
|
|
32469
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
32470
|
-
const _useTranslation = reactI18next.useTranslation(),
|
|
32471
|
-
t = _useTranslation.t;
|
|
32472
|
-
const _useState = React.useState(null),
|
|
32473
|
-
showToast = _useState[0],
|
|
32474
|
-
setShowToast = _useState[1];
|
|
32475
|
-
const _useState2 = React.useState({
|
|
32476
|
-
addressType: (address === null || address === void 0 ? void 0 : address.addressType) || "",
|
|
32477
|
-
pincode: (address === null || address === void 0 ? void 0 : address.pinCode) || "",
|
|
32478
|
-
city: (address === null || address === void 0 ? void 0 : address.city) || "",
|
|
32479
|
-
locality: (address === null || address === void 0 ? void 0 : address.locality) || "",
|
|
32480
|
-
streetName: (address === null || address === void 0 ? void 0 : address.streetName) || "",
|
|
32481
|
-
houseNo: (address === null || address === void 0 ? void 0 : address.houseNumber) || "",
|
|
32482
|
-
houseName: (address === null || address === void 0 ? void 0 : address.houseName) || "",
|
|
32483
|
-
landmark: (address === null || address === void 0 ? void 0 : address.landmark) || "",
|
|
32484
|
-
addressLine1: (address === null || address === void 0 ? void 0 : address.address) || "",
|
|
32485
|
-
addressLine2: (address === null || address === void 0 ? void 0 : address.address2) || "",
|
|
32486
|
-
latitude: (address === null || address === void 0 ? void 0 : address.latitude) || "",
|
|
32487
|
-
longitude: (address === null || address === void 0 ? void 0 : address.longitude) || "",
|
|
32488
|
-
assembly: (address === null || address === void 0 ? void 0 : address.assembly) || "",
|
|
32489
|
-
block: (address === null || address === void 0 ? void 0 : address.block) || "",
|
|
32490
|
-
zone: (address === null || address === void 0 ? void 0 : address.zone) || "",
|
|
32491
|
-
zroLocation: (address === null || address === void 0 ? void 0 : address.zroLocation) || "",
|
|
32492
|
-
subLocality: (address === null || address === void 0 ? void 0 : address.subLocality) || "",
|
|
32493
|
-
actualAssembly: (address === null || address === void 0 ? void 0 : address.actualAssembly) || "",
|
|
32494
|
-
actualWard: (address === null || address === void 0 ? void 0 : address.actualWard) || "",
|
|
32495
|
-
actualZone: (address === null || address === void 0 ? void 0 : address.actualZone) || ""
|
|
32496
|
-
}),
|
|
32497
|
-
formData = _useState2[0],
|
|
32498
|
-
setFormData = _useState2[1];
|
|
32499
|
-
const isPropertyFound = window.location.href.includes("ws/old-application");
|
|
32500
|
-
React.useEffect(() => {
|
|
32501
|
-
if (props.register) {
|
|
32502
|
-
props.register({
|
|
32503
|
-
name: "cpt"
|
|
32504
|
-
});
|
|
32505
|
-
props.register({
|
|
32506
|
-
name: "cptId"
|
|
32507
|
-
});
|
|
32508
|
-
}
|
|
32509
|
-
}, [props.register]);
|
|
32510
|
-
React.useEffect(() => {
|
|
32511
|
-
var _formDataProp$cpt;
|
|
32512
|
-
if (formDataProp !== null && formDataProp !== void 0 && (_formDataProp$cpt = formDataProp.cpt) !== null && _formDataProp$cpt !== void 0 && _formDataProp$cpt.details) {
|
|
32513
|
-
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;
|
|
32514
|
-
const details = formDataProp.cpt.details;
|
|
32515
|
-
const addressData = details.address || {};
|
|
32516
|
-
const additionalDetails = details.additionalDetails || {};
|
|
32517
|
-
const localityCode = ((_addressData$locality = addressData.locality) === null || _addressData$locality === void 0 ? void 0 : _addressData$locality.code) || addressData.locality || "";
|
|
32518
|
-
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 || "";
|
|
32519
|
-
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 || "";
|
|
32520
|
-
const zroCode = addressData.zroLocation || additionalDetails.zroLocation || ((_addressData$addition = addressData.additionalDetails) === null || _addressData$addition === void 0 ? void 0 : _addressData$addition.zroLocation) || "";
|
|
32521
|
-
const zroValue = zroCode ? {
|
|
32522
|
-
code: zroCode,
|
|
32523
|
-
name: zroCode,
|
|
32524
|
-
i18nKey: zroCode
|
|
32525
|
-
} : "";
|
|
32526
|
-
setFormData({
|
|
32527
|
-
pincode: addressData.pincode || "",
|
|
32528
|
-
city: addressData.city || "",
|
|
32529
|
-
locality: localityCode,
|
|
32530
|
-
streetName: addressData.street || "",
|
|
32531
|
-
houseNo: addressData.houseNo || "",
|
|
32532
|
-
landmark: addressData.landmark || "",
|
|
32533
|
-
latitude: lat,
|
|
32534
|
-
longitude: lng,
|
|
32535
|
-
assembly: additionalDetails.assembly || ((_addressData$addition2 = addressData.additionalDetails) === null || _addressData$addition2 === void 0 ? void 0 : _addressData$addition2.assembly) || "",
|
|
32536
|
-
block: additionalDetails.block || ((_addressData$addition3 = addressData.additionalDetails) === null || _addressData$addition3 === void 0 ? void 0 : _addressData$addition3.block) || "",
|
|
32537
|
-
zone: additionalDetails.zone || ((_addressData$addition4 = addressData.additionalDetails) === null || _addressData$addition4 === void 0 ? void 0 : _addressData$addition4.zone) || "",
|
|
32538
|
-
zroLocation: zroCode,
|
|
32539
|
-
zro: zroValue,
|
|
32540
|
-
subLocality: addressData.subLocality || "",
|
|
32541
|
-
actualAssembly: addressData.actualAssembly || additionalDetails.actualAssembly || ((_addressData$addition5 = addressData.additionalDetails) === null || _addressData$addition5 === void 0 ? void 0 : _addressData$addition5.actualAssembly) || "",
|
|
32542
|
-
actualWard: addressData.actualWard || additionalDetails.actualWard || ((_addressData$addition6 = addressData.additionalDetails) === null || _addressData$addition6 === void 0 ? void 0 : _addressData$addition6.actualWard) || "",
|
|
32543
|
-
actualZone: addressData.actualZone || additionalDetails.actualZone || ((_addressData$addition7 = addressData.additionalDetails) === null || _addressData$addition7 === void 0 ? void 0 : _addressData$addition7.actualZone) || "",
|
|
32544
|
-
address: _extends({}, addressData, {
|
|
32545
|
-
city: addressData.city || "",
|
|
32546
|
-
pincode: addressData.pincode || "",
|
|
32547
|
-
locality: localityCode,
|
|
32548
|
-
streetName: addressData.street || "",
|
|
32549
|
-
houseNo: addressData.houseNo || "",
|
|
32550
|
-
addressLine1: addressData.street || "",
|
|
32551
|
-
latitude: lat,
|
|
32552
|
-
longitude: lng,
|
|
32553
|
-
zroLocation: zroCode,
|
|
32554
|
-
zro: zroValue,
|
|
32555
|
-
assembly: additionalDetails.assembly || ((_addressData$addition8 = addressData.additionalDetails) === null || _addressData$addition8 === void 0 ? void 0 : _addressData$addition8.assembly) || "",
|
|
32556
|
-
block: additionalDetails.block || ((_addressData$addition9 = addressData.additionalDetails) === null || _addressData$addition9 === void 0 ? void 0 : _addressData$addition9.block) || "",
|
|
32557
|
-
zone: additionalDetails.zone || ((_addressData$addition0 = addressData.additionalDetails) === null || _addressData$addition0 === void 0 ? void 0 : _addressData$addition0.zone) || "",
|
|
32558
|
-
subLocality: addressData.subLocality || "",
|
|
32559
|
-
actualWard: addressData.actualWard || additionalDetails.actualWard || ((_addressData$addition1 = addressData.additionalDetails) === null || _addressData$addition1 === void 0 ? void 0 : _addressData$addition1.actualWard) || "",
|
|
32560
|
-
actualZone: addressData.actualZone || additionalDetails.actualZone || ((_addressData$addition10 = addressData.additionalDetails) === null || _addressData$addition10 === void 0 ? void 0 : _addressData$addition10.actualZone) || "",
|
|
32561
|
-
actualAssembly: addressData.actualAssembly || additionalDetails.actualAssembly || ((_addressData$addition11 = addressData.additionalDetails) === null || _addressData$addition11 === void 0 ? void 0 : _addressData$addition11.actualAssembly) || ""
|
|
32562
|
-
})
|
|
32563
|
-
});
|
|
32564
|
-
} else if ((formDataProp === null || formDataProp === void 0 ? void 0 : formDataProp.cpt) === null) {
|
|
32565
|
-
const clearedData = {
|
|
32566
|
-
addressType: "",
|
|
32567
|
-
pincode: "",
|
|
32568
|
-
city: "",
|
|
32569
|
-
locality: "",
|
|
32570
|
-
streetName: "",
|
|
32571
|
-
houseNo: "",
|
|
32572
|
-
houseName: "",
|
|
32573
|
-
landmark: "",
|
|
32574
|
-
addressLine1: "",
|
|
32575
|
-
addressLine2: "",
|
|
32576
|
-
latitude: "",
|
|
32577
|
-
longitude: "",
|
|
32578
|
-
assembly: "",
|
|
32579
|
-
block: "",
|
|
32580
|
-
zone: "",
|
|
32581
|
-
zroLocation: "",
|
|
32582
|
-
subLocality: "",
|
|
32583
|
-
actualWard: "",
|
|
32584
|
-
actualZone: "",
|
|
32585
|
-
actualAssembly: "",
|
|
32586
|
-
zro: "",
|
|
32587
|
-
address: {}
|
|
32588
|
-
};
|
|
32589
|
-
setFormData(clearedData);
|
|
32590
|
-
onSelect((config === null || config === void 0 ? void 0 : config.key) || "address", clearedData);
|
|
32591
|
-
}
|
|
32592
|
-
}, [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]);
|
|
32593
|
-
React.useEffect(() => {
|
|
32594
|
-
if (showToast) {
|
|
32595
|
-
const timer = setTimeout(() => {
|
|
32596
|
-
setShowToast(null);
|
|
32597
|
-
}, 1000);
|
|
32598
|
-
return () => clearTimeout(timer);
|
|
32599
|
-
}
|
|
32600
|
-
}, [showToast]);
|
|
32601
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
32602
|
-
title: t("PT_LOCATION_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property )" : ""),
|
|
32603
|
-
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true
|
|
32604
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
32605
|
-
style: _extends({
|
|
32606
|
-
boxShadow: "none"
|
|
32607
|
-
}, props.style)
|
|
32608
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
32609
|
-
style: {
|
|
32610
|
-
marginTop: "20px"
|
|
32611
|
-
}
|
|
32612
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.AddressDetails, {
|
|
32613
|
-
t: t,
|
|
32614
|
-
formData: formData,
|
|
32615
|
-
onSelect: (key, data) => {
|
|
32616
|
-
setFormData(prev => _extends({}, prev, data));
|
|
32617
|
-
onSelect(key, data);
|
|
32618
|
-
},
|
|
32619
|
-
config: _extends({
|
|
32620
|
-
isCollapsible: false
|
|
32621
|
-
}, config),
|
|
32622
|
-
isEdit: isEdit,
|
|
32623
|
-
showZRO: hideZRO ? false : true,
|
|
32624
|
-
showMapActualLocation: true,
|
|
32625
|
-
disable: isPropertyFound,
|
|
32626
|
-
hideNextButton: true
|
|
32627
|
-
}))));
|
|
32628
|
-
};
|
|
32629
|
-
|
|
32630
32444
|
const WSPropertyLocationDetails = props => {
|
|
32631
32445
|
const t = props.t,
|
|
32632
32446
|
config = props.config,
|
|
@@ -32639,6 +32453,7 @@ const WSPropertyLocationDetails = props => {
|
|
|
32639
32453
|
onSelect(config.key, data);
|
|
32640
32454
|
};
|
|
32641
32455
|
const onSkip = () => onSelect();
|
|
32456
|
+
const PropertyLocationDetails = Digit.ComponentRegistryService.setComponent("PropertyLocationDetails");
|
|
32642
32457
|
if (userType === "citizen") {
|
|
32643
32458
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Timeline, {
|
|
32644
32459
|
currentStep: 2
|
|
@@ -32662,7 +32477,7 @@ const WSPropertyLocationDetails = props => {
|
|
|
32662
32477
|
return /*#__PURE__*/React__default.createElement(PropertyLocationDetails, props);
|
|
32663
32478
|
};
|
|
32664
32479
|
|
|
32665
|
-
const _excluded$
|
|
32480
|
+
const _excluded$3 = ["errors"],
|
|
32666
32481
|
_excluded2$2 = ["register", "control", "watch", "setValue", "unregister", "handleSubmit", "formState", "getValues", "reset"];
|
|
32667
32482
|
const ApplicationBillAmendment = () => {
|
|
32668
32483
|
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;
|
|
@@ -32719,7 +32534,7 @@ const ApplicationBillAmendment = () => {
|
|
|
32719
32534
|
handleSubmit = _useForm.handleSubmit,
|
|
32720
32535
|
_useForm$formState = _useForm.formState,
|
|
32721
32536
|
errors = _useForm$formState.errors,
|
|
32722
|
-
rest = _objectWithoutPropertiesLoose(_useForm$formState, _excluded$
|
|
32537
|
+
rest = _objectWithoutPropertiesLoose(_useForm$formState, _excluded$3),
|
|
32723
32538
|
getValues = _useForm.getValues,
|
|
32724
32539
|
methods = _objectWithoutPropertiesLoose(_useForm, _excluded2$2);
|
|
32725
32540
|
const _Digit$Hooks$ws$useAp = Digit.Hooks.ws.useApplicationActionsBillAmendUpdate(),
|
|
@@ -36713,31 +36528,6 @@ const WorkflowTimeline = _ref => {
|
|
|
36713
36528
|
})));
|
|
36714
36529
|
};
|
|
36715
36530
|
|
|
36716
|
-
const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
36717
|
-
const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
36718
|
-
function _catch$1(body, recover) {
|
|
36719
|
-
try {
|
|
36720
|
-
var result = body();
|
|
36721
|
-
} catch (e) {
|
|
36722
|
-
return recover(e);
|
|
36723
|
-
}
|
|
36724
|
-
if (result && result.then) {
|
|
36725
|
-
return result.then(void 0, recover);
|
|
36726
|
-
}
|
|
36727
|
-
return result;
|
|
36728
|
-
}
|
|
36729
|
-
function _finallyRethrows$1(body, finalizer) {
|
|
36730
|
-
try {
|
|
36731
|
-
var result = body();
|
|
36732
|
-
} catch (e) {
|
|
36733
|
-
return finalizer(true, e);
|
|
36734
|
-
}
|
|
36735
|
-
if (result && result.then) {
|
|
36736
|
-
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
36737
|
-
}
|
|
36738
|
-
return finalizer(false, result);
|
|
36739
|
-
}
|
|
36740
|
-
|
|
36741
36531
|
const configPTApproverApplication = _ref => {
|
|
36742
36532
|
var _action$assigneeRoles;
|
|
36743
36533
|
let t = _ref.t,
|
|
@@ -37486,7 +37276,7 @@ const ActionModal = _ref => {
|
|
|
37486
37276
|
if (file.size >= 5242880) {
|
|
37487
37277
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
37488
37278
|
} else {
|
|
37489
|
-
const _temp = _catch
|
|
37279
|
+
const _temp = _catch(function () {
|
|
37490
37280
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
37491
37281
|
var _response$data, _response$data$files;
|
|
37492
37282
|
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) {
|
|
@@ -37713,7 +37503,7 @@ const ActionModal$1 = _ref => {
|
|
|
37713
37503
|
if (file.size >= 5242880) {
|
|
37714
37504
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
37715
37505
|
} else {
|
|
37716
|
-
const _temp = _catch
|
|
37506
|
+
const _temp = _catch(function () {
|
|
37717
37507
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
37718
37508
|
var _response$data, _response$data$files;
|
|
37719
37509
|
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) {
|
|
@@ -37883,7 +37673,7 @@ const ActionModal$2 = _ref => {
|
|
|
37883
37673
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
37884
37674
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
37885
37675
|
} else {
|
|
37886
|
-
const _temp = _catch
|
|
37676
|
+
const _temp = _catch(function () {
|
|
37887
37677
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
37888
37678
|
var _response$data, _response$data$files;
|
|
37889
37679
|
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) {
|
|
@@ -38166,7 +37956,7 @@ const ActionModal$3 = _ref => {
|
|
|
38166
37956
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
38167
37957
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
38168
37958
|
} else {
|
|
38169
|
-
const _temp = _catch
|
|
37959
|
+
const _temp = _catch(function () {
|
|
38170
37960
|
return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
38171
37961
|
var _response$data, _response$data$files;
|
|
38172
37962
|
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) {
|
|
@@ -38424,7 +38214,7 @@ const ActionModal$4 = _ref => {
|
|
|
38424
38214
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
38425
38215
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
38426
38216
|
} else {
|
|
38427
|
-
const _temp = _catch
|
|
38217
|
+
const _temp = _catch(function () {
|
|
38428
38218
|
return Promise.resolve(Digit.UploadServices.Filestorage("NOC", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
|
|
38429
38219
|
var _response$data, _response$data$files;
|
|
38430
38220
|
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) {
|
|
@@ -38651,7 +38441,7 @@ const ActionModal$5 = _ref => {
|
|
|
38651
38441
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
38652
38442
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
38653
38443
|
} else {
|
|
38654
|
-
const _temp = _catch
|
|
38444
|
+
const _temp = _catch(function () {
|
|
38655
38445
|
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getCurrentTenantId())).then(function (response) {
|
|
38656
38446
|
var _response$data, _response$data$files;
|
|
38657
38447
|
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) {
|
|
@@ -38961,7 +38751,7 @@ const ActionModal$6 = _ref => {
|
|
|
38961
38751
|
if (file.size >= 5242880) {
|
|
38962
38752
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
38963
38753
|
} else {
|
|
38964
|
-
const _temp = _catch
|
|
38754
|
+
const _temp = _catch(function () {
|
|
38965
38755
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
38966
38756
|
var _response$data, _response$data$files;
|
|
38967
38757
|
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) {
|
|
@@ -39251,7 +39041,7 @@ const ActionModal$8 = _ref => {
|
|
|
39251
39041
|
if (file.size >= 5242880) {
|
|
39252
39042
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39253
39043
|
} else {
|
|
39254
|
-
const _temp = _catch
|
|
39044
|
+
const _temp = _catch(function () {
|
|
39255
39045
|
return Promise.resolve(Digit.UploadServices.Filestorage("CHB", file, tenantId)).then(function (response) {
|
|
39256
39046
|
var _response$data, _response$data$files;
|
|
39257
39047
|
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) {
|
|
@@ -39417,7 +39207,7 @@ const ActionModal$9 = _ref => {
|
|
|
39417
39207
|
if (file.size >= 5242880) {
|
|
39418
39208
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39419
39209
|
} else {
|
|
39420
|
-
const _temp = _catch
|
|
39210
|
+
const _temp = _catch(function () {
|
|
39421
39211
|
return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
39422
39212
|
var _response$data, _response$data$files;
|
|
39423
39213
|
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) {
|
|
@@ -39589,8 +39379,8 @@ const ActionModal$a = _ref => {
|
|
|
39589
39379
|
if (file.size >= 5242880) {
|
|
39590
39380
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39591
39381
|
} else {
|
|
39592
|
-
const _temp = _finallyRethrows
|
|
39593
|
-
return _catch
|
|
39382
|
+
const _temp = _finallyRethrows(function () {
|
|
39383
|
+
return _catch(function () {
|
|
39594
39384
|
return Promise.resolve(Digit.UploadServices.Filestorage("StreetVending", file, tenantId)).then(function (response) {
|
|
39595
39385
|
var _response$data, _response$data$files;
|
|
39596
39386
|
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) {
|
|
@@ -39876,7 +39666,7 @@ const ActionModal$b = _ref => {
|
|
|
39876
39666
|
if (file.size >= 5242880) {
|
|
39877
39667
|
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
39878
39668
|
} else {
|
|
39879
|
-
const _temp = _catch
|
|
39669
|
+
const _temp = _catch(function () {
|
|
39880
39670
|
return Promise.resolve(Digit.UploadServices.Filestorage("WT", file, tenantId)).then(function (response) {
|
|
39881
39671
|
var _response$data, _response$data$files;
|
|
39882
39672
|
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) {
|
|
@@ -40564,7 +40354,7 @@ function SelectDocument$4(_ref) {
|
|
|
40564
40354
|
if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
|
|
40565
40355
|
setError(t("NOT_SUPPORTED_FILE_TYPE"));
|
|
40566
40356
|
} else {
|
|
40567
|
-
const _temp = _catch
|
|
40357
|
+
const _temp = _catch(function () {
|
|
40568
40358
|
setUploadedFile(null);
|
|
40569
40359
|
return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
40570
40360
|
var _response$data, _response$data$files;
|
|
@@ -40954,7 +40744,7 @@ function PropertyDocuments(_ref) {
|
|
|
40954
40744
|
};
|
|
40955
40745
|
const forceDownload = function (url, fileName) {
|
|
40956
40746
|
try {
|
|
40957
|
-
return Promise.resolve(_catch
|
|
40747
|
+
return Promise.resolve(_catch(function () {
|
|
40958
40748
|
return Promise.resolve(fetch(url)).then(function (response) {
|
|
40959
40749
|
if (!response.ok) {
|
|
40960
40750
|
throw new Error("HTTP error! status: " + response.status);
|
|
@@ -41184,7 +40974,7 @@ function PropertyDocuments(_ref) {
|
|
|
41184
40974
|
y1: "15",
|
|
41185
40975
|
x2: "12",
|
|
41186
40976
|
y2: "3"
|
|
41187
|
-
}))), /*#__PURE__*/React__default.createElement("label", {
|
|
40977
|
+
}))), applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "WF_PENDING_FOR_PAYMENT" && /*#__PURE__*/React__default.createElement("label", {
|
|
41188
40978
|
style: {
|
|
41189
40979
|
display: "flex",
|
|
41190
40980
|
alignItems: "center",
|
|
@@ -41217,7 +41007,7 @@ function PropertyDocuments(_ref) {
|
|
|
41217
41007
|
}));
|
|
41218
41008
|
}
|
|
41219
41009
|
}
|
|
41220
|
-
}), "Check Verified"));
|
|
41010
|
+
}), t("Check Verified")));
|
|
41221
41011
|
})())
|
|
41222
41012
|
})));
|
|
41223
41013
|
};
|
|
@@ -44164,7 +43954,7 @@ const ApplicationDetails = props => {
|
|
|
44164
43954
|
const nocPrmomises = (_nocData = nocData) === null || _nocData === void 0 ? void 0 : _nocData.map(noc => {
|
|
44165
43955
|
return nocMutation === null || nocMutation === void 0 ? void 0 : nocMutation.mutateAsync(noc);
|
|
44166
43956
|
});
|
|
44167
|
-
const _temp = _catch
|
|
43957
|
+
const _temp = _catch(function () {
|
|
44168
43958
|
setIsEnableLoader(true);
|
|
44169
43959
|
return Promise.resolve(Promise.all(nocPrmomises)).then(function (values) {
|
|
44170
43960
|
values && values.map(ob => {
|
|
@@ -44254,7 +44044,7 @@ const ApplicationDetails = props => {
|
|
|
44254
44044
|
};
|
|
44255
44045
|
|
|
44256
44046
|
const ApplicationDetails$1 = () => {
|
|
44257
|
-
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$
|
|
44047
|
+
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;
|
|
44258
44048
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
44259
44049
|
try {
|
|
44260
44050
|
let response = null;
|
|
@@ -44390,6 +44180,15 @@ const ApplicationDetails$1 = () => {
|
|
|
44390
44180
|
});
|
|
44391
44181
|
const _Digit$Hooks$ws$useWS2 = Digit.Hooks.ws.useWSApplicationActions(serviceType),
|
|
44392
44182
|
mutate = _Digit$Hooks$ws$useWS2.mutate;
|
|
44183
|
+
const _Digit$Hooks$useRecie = Digit.Hooks.useRecieptSearch({
|
|
44184
|
+
tenantId: tenantId,
|
|
44185
|
+
businessService: serviceType == "WATER" ? "WS.ONE_TIME_FEE" : "SW.ONE_TIME_FEE",
|
|
44186
|
+
consumerCodes: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.applicationNo
|
|
44187
|
+
}, {
|
|
44188
|
+
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,
|
|
44189
|
+
privacy: Digit.Utils.getPrivacyObject()
|
|
44190
|
+
}),
|
|
44191
|
+
reciept_data = _Digit$Hooks$useRecie.data;
|
|
44393
44192
|
const clearDataDetails = () => {
|
|
44394
44193
|
clearSessionFormData();
|
|
44395
44194
|
setSessionFormData({});
|
|
@@ -44403,7 +44202,7 @@ const ApplicationDetails$1 = () => {
|
|
|
44403
44202
|
return true;
|
|
44404
44203
|
};
|
|
44405
44204
|
let dowloadOptions = [],
|
|
44406
|
-
appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
44205
|
+
appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.applicationStatus) || "";
|
|
44407
44206
|
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 => {
|
|
44408
44207
|
if ((action === null || action === void 0 ? void 0 : action.action) === "ACTIVATE_CONNECTION") {
|
|
44409
44208
|
action.redirectionUrll = {
|
|
@@ -44534,10 +44333,10 @@ const ApplicationDetails$1 = () => {
|
|
|
44534
44333
|
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];
|
|
44535
44334
|
const handleDownloadPdf = function () {
|
|
44536
44335
|
try {
|
|
44537
|
-
var _applicationDetails$
|
|
44538
|
-
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
44336
|
+
var _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10;
|
|
44337
|
+
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a0 = applicationDetails.applicationData) === null || _applicationDetails$a0 === void 0 ? void 0 : _applicationDetails$a0.tenantId;
|
|
44539
44338
|
let result = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
|
|
44540
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
44339
|
+
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_")) {
|
|
44541
44340
|
const PDFdata = getWSAcknowledgementData$1(_extends({}, result), _extends({}, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.propertyDetails), tenantInfo, t, oldApplication);
|
|
44542
44341
|
PDFdata.then(ress => Digit.Utils.pdf.generateModifyPdf(ress));
|
|
44543
44342
|
return Promise.resolve();
|
|
@@ -44551,10 +44350,10 @@ const ApplicationDetails$1 = () => {
|
|
|
44551
44350
|
};
|
|
44552
44351
|
const handleEstimateDownload = function () {
|
|
44553
44352
|
try {
|
|
44554
|
-
const _temp2 = function (_applicationDetails$
|
|
44555
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
44556
|
-
var _applicationDetails$
|
|
44557
|
-
getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
44353
|
+
const _temp2 = function (_applicationDetails$a11, _applicationDetails$a12) {
|
|
44354
|
+
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) {
|
|
44355
|
+
var _applicationDetails$a13, _applicationDetails$a14;
|
|
44356
|
+
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);
|
|
44558
44357
|
} else {
|
|
44559
44358
|
const warningCount = sessionStorage.getItem("WARINIG_COUNT") || "0";
|
|
44560
44359
|
const warningCountDetails = JSON.parse(warningCount);
|
|
@@ -44612,8 +44411,8 @@ const ApplicationDetails$1 = () => {
|
|
|
44612
44411
|
order: 2,
|
|
44613
44412
|
label: t("WS_SANCTION_LETTER"),
|
|
44614
44413
|
onClick: () => {
|
|
44615
|
-
var _applicationDetails$
|
|
44616
|
-
return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
44414
|
+
var _applicationDetails$a15, _applicationDetails$a16;
|
|
44415
|
+
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);
|
|
44617
44416
|
}
|
|
44618
44417
|
};
|
|
44619
44418
|
const applicationDownloadObject = {
|
|
@@ -44625,8 +44424,8 @@ const ApplicationDetails$1 = () => {
|
|
|
44625
44424
|
order: 4,
|
|
44626
44425
|
label: t("DOWNLOAD_RECEIPT_HEADER"),
|
|
44627
44426
|
onClick: () => {
|
|
44628
|
-
var _reciept_data
|
|
44629
|
-
return getRecieptSearch(Digit.ULBService.getStateId(),
|
|
44427
|
+
var _reciept_data$Payment, _applicationDetails$a17;
|
|
44428
|
+
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);
|
|
44630
44429
|
}
|
|
44631
44430
|
};
|
|
44632
44431
|
switch (appStatus) {
|
|
@@ -44641,7 +44440,7 @@ const ApplicationDetails$1 = () => {
|
|
|
44641
44440
|
break;
|
|
44642
44441
|
case "PENDING_FOR_CONNECTION_ACTIVATION":
|
|
44643
44442
|
case "CONNECTION_ACTIVATED":
|
|
44644
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
44443
|
+
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];
|
|
44645
44444
|
break;
|
|
44646
44445
|
case "REJECTED":
|
|
44647
44446
|
dowloadOptions = [applicationDownloadObject];
|
|
@@ -49032,31 +48831,21 @@ const CheckPage$4 = _ref2 => {
|
|
|
49032
48831
|
const OLDApplication = () => {
|
|
49033
48832
|
const _useTranslation = reactI18next.useTranslation(),
|
|
49034
48833
|
t = _useTranslation.t;
|
|
49035
|
-
const location = reactRouterDom.useLocation();
|
|
49036
48834
|
const history = reactRouterDom.useHistory();
|
|
49037
|
-
let filters = getQueryStringParams(location.search);
|
|
49038
48835
|
const _useState = React.useState(false),
|
|
49039
|
-
|
|
49040
|
-
|
|
49041
|
-
|
|
49042
|
-
|
|
49043
|
-
|
|
49044
|
-
|
|
49045
|
-
setShowToast = _useState3[1];
|
|
49046
|
-
const _useState4 = React.useState({}),
|
|
49047
|
-
setAppDetails = _useState4[1];
|
|
49048
|
-
const _useState5 = React.useState(null),
|
|
49049
|
-
setWaterAndSewerageBoth = _useState5[1];
|
|
49050
|
-
const _useState6 = React.useState({
|
|
48836
|
+
isEnableLoader = _useState[0],
|
|
48837
|
+
setIsEnableLoader = _useState[1];
|
|
48838
|
+
const _useState2 = React.useState(null),
|
|
48839
|
+
showToast = _useState2[0],
|
|
48840
|
+
setShowToast = _useState2[1];
|
|
48841
|
+
const _useState3 = React.useState({
|
|
49051
48842
|
body: []
|
|
49052
48843
|
}),
|
|
49053
|
-
config =
|
|
49054
|
-
setConfig =
|
|
49055
|
-
const
|
|
49056
|
-
|
|
49057
|
-
|
|
49058
|
-
showCheckPage = _useState8[0],
|
|
49059
|
-
setShowCheckPage = _useState8[1];
|
|
48844
|
+
config = _useState3[0],
|
|
48845
|
+
setConfig = _useState3[1];
|
|
48846
|
+
const _useState4 = React.useState(false),
|
|
48847
|
+
showCheckPage = _useState4[0],
|
|
48848
|
+
setShowCheckPage = _useState4[1];
|
|
49060
48849
|
const timelineConfig = [{
|
|
49061
48850
|
label: "WS_COMMON_PROPERTY_DETAILS"
|
|
49062
48851
|
}, {
|
|
@@ -49091,9 +48880,9 @@ const OLDApplication = () => {
|
|
|
49091
48880
|
let _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.WSCreateConfig(stateId, {}),
|
|
49092
48881
|
newConfig = _Digit$Hooks$ws$useWS.data,
|
|
49093
48882
|
isLoading = _Digit$Hooks$ws$useWS.isLoading;
|
|
49094
|
-
const
|
|
49095
|
-
propertyId =
|
|
49096
|
-
setPropertyId =
|
|
48883
|
+
const _useState5 = React.useState(new URLSearchParams(reactRouterDom.useLocation().search).get("propertyId")),
|
|
48884
|
+
propertyId = _useState5[0],
|
|
48885
|
+
setPropertyId = _useState5[1];
|
|
49097
48886
|
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("PT_CREATE_EMP_WS_NEW_FORM", {}),
|
|
49098
48887
|
sessionFormData = _Digit$Hooks$useSessi[0],
|
|
49099
48888
|
setSessionFormData = _Digit$Hooks$useSessi[1],
|
|
@@ -49108,7 +48897,7 @@ const OLDApplication = () => {
|
|
|
49108
48897
|
propertyIds: propertyId
|
|
49109
48898
|
},
|
|
49110
48899
|
tenantId: tenantId,
|
|
49111
|
-
enabled: propertyId && propertyId
|
|
48900
|
+
enabled: propertyId && propertyId !== "" ? true : false
|
|
49112
48901
|
}),
|
|
49113
48902
|
propertyDetails = _Digit$Hooks$pt$usePr.data;
|
|
49114
48903
|
React.useEffect(() => {
|
|
@@ -49120,7 +48909,7 @@ const OLDApplication = () => {
|
|
|
49120
48909
|
if (config) {
|
|
49121
48910
|
var _config$body;
|
|
49122
48911
|
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)) || [];
|
|
49123
|
-
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "
|
|
48912
|
+
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
|
|
49124
48913
|
const reorderedBody = [];
|
|
49125
48914
|
desiredComponentOrder.forEach(compName => {
|
|
49126
48915
|
const section = allCreateSections.find(s => {
|
|
@@ -49130,13 +48919,13 @@ const OLDApplication = () => {
|
|
|
49130
48919
|
});
|
|
49131
48920
|
if (section) {
|
|
49132
48921
|
reorderedBody.push(section);
|
|
49133
|
-
} else if (compName === "
|
|
48922
|
+
} else if (compName === "WSPropertyLocationDetails") {
|
|
49134
48923
|
reorderedBody.push({
|
|
49135
48924
|
isCreateConnection: true,
|
|
49136
48925
|
body: [{
|
|
49137
48926
|
type: "component",
|
|
49138
48927
|
key: "propertyAddress",
|
|
49139
|
-
component: "
|
|
48928
|
+
component: "WSPropertyLocationDetails",
|
|
49140
48929
|
withoutLabel: true,
|
|
49141
48930
|
isAutomaticFill: true
|
|
49142
48931
|
}]
|
|
@@ -49216,23 +49005,18 @@ const OLDApplication = () => {
|
|
|
49216
49005
|
updatingSewerageApplicationLoading = _Digit$Hooks$ws$useWS3.isLoading,
|
|
49217
49006
|
sewerageUpdateMutation = _Digit$Hooks$ws$useWS3.mutate;
|
|
49218
49007
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
49219
|
-
var _formState$errors, _formState$errors$Con, _Object$keys, _formState$errors2, _formState$errors2$Co;
|
|
49220
49008
|
const updatedFormData = _extends({}, sessionFormData, formData);
|
|
49221
49009
|
const cleanedFormData = JSON.parse(JSON.stringify(updatedFormData));
|
|
49222
49010
|
if (!lodash.isEqual(sessionFormData, cleanedFormData)) {
|
|
49223
49011
|
setSessionFormData(cleanedFormData);
|
|
49224
49012
|
sessionStorage.setItem("FORMSTATE_ERRORS", JSON.stringify(formState === null || formState === void 0 ? void 0 : formState.errors));
|
|
49225
49013
|
}
|
|
49226
|
-
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 => {
|
|
49227
|
-
var _ob$ref;
|
|
49228
|
-
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) !== "";
|
|
49229
|
-
}).length > 0) setSubmitValve(true);else setSubmitValve(!Object.keys(formState.errors).length);
|
|
49230
49014
|
};
|
|
49231
49015
|
const closeToastOfError = () => {
|
|
49232
49016
|
setShowToast(null);
|
|
49233
49017
|
};
|
|
49234
49018
|
const onFormSubmit = data => {
|
|
49235
|
-
var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$
|
|
49019
|
+
var _data$cpt, _propertyDetails$Prop, _formStateErros$Conne, _Object$keys, _formStateErros$Conne2;
|
|
49236
49020
|
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])) {
|
|
49237
49021
|
var _data$cpt2;
|
|
49238
49022
|
if (!(data !== null && data !== void 0 && (_data$cpt2 = data.cpt) !== null && _data$cpt2 !== void 0 && _data$cpt2.details) || !propertyDetails) {
|
|
@@ -49249,9 +49033,9 @@ const OLDApplication = () => {
|
|
|
49249
49033
|
}
|
|
49250
49034
|
const errors = sessionStorage.getItem("FORMSTATE_ERRORS");
|
|
49251
49035
|
const formStateErros = typeof errors === "string" && errors !== "null" ? JSON.parse(errors) : {};
|
|
49252
|
-
if (Object.keys(formStateErros).length > 0 && !(Object.keys(formStateErros).length
|
|
49253
|
-
var _ob$
|
|
49254
|
-
return ob.type === "required" && (ob === null || ob === void 0 ? void 0 : (_ob$
|
|
49036
|
+
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 => {
|
|
49037
|
+
var _ob$ref;
|
|
49038
|
+
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) !== "";
|
|
49255
49039
|
}).length > 0)) {
|
|
49256
49040
|
console.warn("[WS] onSubmit EXIT: formState errors blocking submit", formStateErros);
|
|
49257
49041
|
setShowToast({
|
|
@@ -49376,7 +49160,6 @@ const OLDApplication = () => {
|
|
|
49376
49160
|
waterDemandType: connDetail === null || connDetail === void 0 ? void 0 : connDetail.waterDemandType,
|
|
49377
49161
|
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)
|
|
49378
49162
|
};
|
|
49379
|
-
const allDetails = cloneDeep_1(data);
|
|
49380
49163
|
return Promise.resolve(createPayloadOfWS(data)).then(function (payload) {
|
|
49381
49164
|
if (!(payload !== null && payload !== void 0 && payload.water) && !(payload !== null && payload !== void 0 && payload.sewerage)) {
|
|
49382
49165
|
console.error("[WS] onSubmit EXIT: payload has neither water nor sewerage", payload);
|
|
@@ -49386,12 +49169,8 @@ const OLDApplication = () => {
|
|
|
49386
49169
|
});
|
|
49387
49170
|
return;
|
|
49388
49171
|
}
|
|
49389
|
-
let waterAndSewerageLoader = false
|
|
49390
|
-
waterLoader = false,
|
|
49391
|
-
sewerageLoader = false;
|
|
49172
|
+
let waterAndSewerageLoader = false;
|
|
49392
49173
|
if (payload !== null && payload !== void 0 && payload.water && payload !== null && payload !== void 0 && payload.sewerage) waterAndSewerageLoader = true;
|
|
49393
|
-
if (payload !== null && payload !== void 0 && payload.water && !(payload !== null && payload !== void 0 && payload.sewerage)) waterLoader = true;
|
|
49394
|
-
if (!(payload !== null && payload !== void 0 && payload.water) && payload !== null && payload !== void 0 && payload.sewerage) sewerageLoader = true;
|
|
49395
49174
|
let waterConnection = {
|
|
49396
49175
|
WaterConnection: payload,
|
|
49397
49176
|
disconnectRequest: false,
|
|
@@ -49403,7 +49182,6 @@ const OLDApplication = () => {
|
|
|
49403
49182
|
reconnectRequest: false
|
|
49404
49183
|
};
|
|
49405
49184
|
if (waterAndSewerageLoader) {
|
|
49406
|
-
setWaterAndSewerageBoth(true);
|
|
49407
49185
|
sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(true));
|
|
49408
49186
|
} else {
|
|
49409
49187
|
sessionStorage.setItem("setWaterAndSewerageBoth", JSON.stringify(false));
|
|
@@ -49444,12 +49222,6 @@ const OLDApplication = () => {
|
|
|
49444
49222
|
},
|
|
49445
49223
|
onSuccess: function (waterUpdateData) {
|
|
49446
49224
|
try {
|
|
49447
|
-
setAppDetails(prev => {
|
|
49448
|
-
var _waterUpdateData$Wate;
|
|
49449
|
-
return _extends({}, prev, {
|
|
49450
|
-
waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
|
|
49451
|
-
});
|
|
49452
|
-
});
|
|
49453
49225
|
return Promise.resolve(sewerageMutation(sewerageConnection, {
|
|
49454
49226
|
onError: error => {
|
|
49455
49227
|
var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
|
|
@@ -49481,15 +49253,9 @@ const OLDApplication = () => {
|
|
|
49481
49253
|
},
|
|
49482
49254
|
onSuccess: function (sewerageUpdateData) {
|
|
49483
49255
|
try {
|
|
49484
|
-
var _waterUpdateData$
|
|
49485
|
-
setAppDetails(prev => {
|
|
49486
|
-
var _sewerageUpdateData$S;
|
|
49487
|
-
return _extends({}, prev, {
|
|
49488
|
-
sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
|
|
49489
|
-
});
|
|
49490
|
-
});
|
|
49256
|
+
var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
|
|
49491
49257
|
clearSessionFormData();
|
|
49492
|
-
history.push(basePath + "/ws-response?applicationNumber=" + (waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$
|
|
49258
|
+
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));
|
|
49493
49259
|
return Promise.resolve();
|
|
49494
49260
|
} catch (e) {
|
|
49495
49261
|
return Promise.reject(e);
|
|
@@ -49552,15 +49318,9 @@ const OLDApplication = () => {
|
|
|
49552
49318
|
setTimeout(closeToastOfError, 5000);
|
|
49553
49319
|
},
|
|
49554
49320
|
onSuccess: data => {
|
|
49555
|
-
var _data$
|
|
49556
|
-
setAppDetails(prev => {
|
|
49557
|
-
var _data$WaterConnection2;
|
|
49558
|
-
return _extends({}, prev, {
|
|
49559
|
-
waterConnection: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
|
|
49560
|
-
});
|
|
49561
|
-
});
|
|
49321
|
+
var _data$WaterConnection2, _data$WaterConnection3;
|
|
49562
49322
|
clearSessionFormData();
|
|
49563
|
-
history.push(basePath + "/ws-response?applicationNumber=" + (data === null || data === void 0 ? void 0 : (_data$
|
|
49323
|
+
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));
|
|
49564
49324
|
}
|
|
49565
49325
|
});
|
|
49566
49326
|
});
|
|
@@ -49608,15 +49368,9 @@ const OLDApplication = () => {
|
|
|
49608
49368
|
setTimeout(closeToastOfError, 5000);
|
|
49609
49369
|
},
|
|
49610
49370
|
onSuccess: data => {
|
|
49611
|
-
var _data$
|
|
49612
|
-
setAppDetails(prev => {
|
|
49613
|
-
var _data$SewerageConnect2;
|
|
49614
|
-
return _extends({}, prev, {
|
|
49615
|
-
sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
|
|
49616
|
-
});
|
|
49617
|
-
});
|
|
49371
|
+
var _data$SewerageConnect2, _data$SewerageConnect3;
|
|
49618
49372
|
clearSessionFormData();
|
|
49619
|
-
history.push(basePath + "/ws-response?applicationNumber1=" + (data === null || data === void 0 ? void 0 : (_data$
|
|
49373
|
+
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));
|
|
49620
49374
|
}
|
|
49621
49375
|
})).then(function () {});
|
|
49622
49376
|
});
|
|
@@ -49665,7 +49419,7 @@ const OLDApplication = () => {
|
|
|
49665
49419
|
className: "employee-form-section-wrapper"
|
|
49666
49420
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.VerticalTimeline, {
|
|
49667
49421
|
config: timelineConfig,
|
|
49668
|
-
currentActiveIndex:
|
|
49422
|
+
currentActiveIndex: 0,
|
|
49669
49423
|
showFinalStep: false
|
|
49670
49424
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
|
|
49671
49425
|
config: config.body,
|
|
@@ -49750,8 +49504,7 @@ const componentsToRegister = {
|
|
|
49750
49504
|
WSLinks,
|
|
49751
49505
|
WSServiceName: WSConnectionDetails,
|
|
49752
49506
|
WSWaterConnectionDetails,
|
|
49753
|
-
|
|
49754
|
-
PTPropertyLocationDetails: WSPropertyLocationDetails,
|
|
49507
|
+
WSPropertyLocationDetails,
|
|
49755
49508
|
WSPropertyWaterConnection,
|
|
49756
49509
|
WSDocsRequired,
|
|
49757
49510
|
WSDocumentDetails: WSDocumentsEmployee,
|