@djb25/digit-ui-module-ws 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +251 -237
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$
|
|
1
|
+
import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$1, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useLocation, Switch, Route, useHistory, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader
|
|
4
|
+
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, BackButton, PrivateRoute, Banner, CardText, ActionBar, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, BreadcrumbHeader, ArrowLeft, TickMark, FormStep, CardLabel, RadioOrSelect, TextInput, CardHeader, CitizenInfoLabel, CardSubHeader, LabelFieldPair, Dropdown, CardLabelError, UploadFile, CheckBox, RadioButtons, MobileNumber, DatePicker, DeleteIcon, WrapUnMaskComponent, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, CollapsibleCardPage, Table, Localities, Modal, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, EditIcon, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, ViewsIcon, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
5
5
|
import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
|
|
6
6
|
import { read, utils as utils$1 } from 'xlsx';
|
|
7
7
|
import { useQueryClient } from 'react-query';
|
|
@@ -7510,7 +7510,7 @@ const WSApplication = ({
|
|
|
7510
7510
|
consumerCode: application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.connectionNo
|
|
7511
7511
|
};
|
|
7512
7512
|
if (isLoading) {
|
|
7513
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
7513
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
7514
7514
|
}
|
|
7515
7515
|
return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(KeyNote, {
|
|
7516
7516
|
keyValue: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
@@ -7694,7 +7694,7 @@ const WSMyApplications = () => {
|
|
|
7694
7694
|
enabled: propertyNos ? true : false
|
|
7695
7695
|
});
|
|
7696
7696
|
if (isLoading || isSWLoading || PTisLoading) {
|
|
7697
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
7697
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
7698
7698
|
}
|
|
7699
7699
|
let {
|
|
7700
7700
|
WaterConnection: WSapplicationsList
|
|
@@ -8498,7 +8498,7 @@ const Response = () => {
|
|
|
8498
8498
|
const handleDownloadPdf = () => {
|
|
8499
8499
|
getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails);
|
|
8500
8500
|
};
|
|
8501
|
-
return /*#__PURE__*/React.createElement("div", null, isLoading || isLoadingAppDetails ? /*#__PURE__*/React.createElement(Loader
|
|
8501
|
+
return /*#__PURE__*/React.createElement("div", null, isLoading || isLoadingAppDetails ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
|
|
8502
8502
|
message: isSuccess ? t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL") : t("CS_WATER_UPDATE_APPLICATION_FAILED"),
|
|
8503
8503
|
applicationNumber: data === null || data === void 0 ? void 0 : (_data$Amendments2 = data.Amendments) === null || _data$Amendments2 === void 0 ? void 0 : (_data$Amendments2$ = _data$Amendments2[0]) === null || _data$Amendments2$ === void 0 ? void 0 : _data$Amendments2$.amendmentId,
|
|
8504
8504
|
info: isSuccess ? t("WS_MYCONNECTIONS_APPLICATION_NO") : "",
|
|
@@ -9166,17 +9166,14 @@ const BILLSBreadCrumbs = ({
|
|
|
9166
9166
|
content: t("ES_COMMON_WS_DOCUMENTS_REQUIRED"),
|
|
9167
9167
|
show: location.pathname.includes("/create-application") || location.pathname.includes("/new-application"),
|
|
9168
9168
|
rightContent: location.pathname.includes("/create-application") && /*#__PURE__*/React.createElement("div", {
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
fontWeight: "400",
|
|
9178
|
-
color: "#0B0C0C"
|
|
9179
|
-
}
|
|
9169
|
+
className: "flex-center flex-gap-1 .cursorPointer",
|
|
9170
|
+
onClick: printDiv
|
|
9171
|
+
}, /*#__PURE__*/React.createElement(PrintBtnCommon, {
|
|
9172
|
+
width: 24,
|
|
9173
|
+
heigth: 24,
|
|
9174
|
+
fill: "#fff"
|
|
9175
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
9176
|
+
className: "bread-crumb-item"
|
|
9180
9177
|
}, "Print"))
|
|
9181
9178
|
}, {
|
|
9182
9179
|
path: "/digit-ui/employee/water/inbox",
|
|
@@ -9836,7 +9833,7 @@ const WSWaterConnectionDetails = ({
|
|
|
9836
9833
|
optionKey: "i18nKey",
|
|
9837
9834
|
onSelect: setProposedPipeSizeSelect,
|
|
9838
9835
|
t: t
|
|
9839
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
9836
|
+
})) : /*#__PURE__*/React.createElement(Loader, null), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
9840
9837
|
error: (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? true : false,
|
|
9841
9838
|
label: error,
|
|
9842
9839
|
isDleteBtn: true,
|
|
@@ -9863,6 +9860,15 @@ const WSDocsRequired = ({
|
|
|
9863
9860
|
const goNext = () => {
|
|
9864
9861
|
onSelect("DocsReq", "");
|
|
9865
9862
|
};
|
|
9863
|
+
const {
|
|
9864
|
+
control,
|
|
9865
|
+
formState: localFormState,
|
|
9866
|
+
getValues
|
|
9867
|
+
} = useForm();
|
|
9868
|
+
const [zro, setZro] = useState({
|
|
9869
|
+
value: "",
|
|
9870
|
+
error: ""
|
|
9871
|
+
});
|
|
9866
9872
|
sessionStorage.removeItem("Digit.PT_CREATE_EMP_WS_NEW_FORM");
|
|
9867
9873
|
sessionStorage.removeItem("IsDetailsExists");
|
|
9868
9874
|
sessionStorage.removeItem("FORMSTATE_ERRORS");
|
|
@@ -9897,7 +9903,7 @@ const WSDocsRequired = ({
|
|
|
9897
9903
|
color: "#0B0C0C",
|
|
9898
9904
|
marginTop: "12px"
|
|
9899
9905
|
}
|
|
9900
|
-
}, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader
|
|
9906
|
+
}, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(React.Fragment, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Documents = wsDocs.Documents) === null || _wsDocs$Documents === void 0 ? void 0 : _wsDocs$Documents.map((doc, index) => {
|
|
9901
9907
|
var _doc$dropdownData;
|
|
9902
9908
|
return /*#__PURE__*/React.createElement("div", {
|
|
9903
9909
|
key: index
|
|
@@ -9929,16 +9935,33 @@ const WSDocsRequired = ({
|
|
|
9929
9935
|
onSubmit: goNext
|
|
9930
9936
|
})));
|
|
9931
9937
|
}
|
|
9938
|
+
const menu = [{
|
|
9939
|
+
i18nKey: "ASHOK VIHAR",
|
|
9940
|
+
code: "ASHOK VIHAR",
|
|
9941
|
+
value: "ASHOK VIHAR"
|
|
9942
|
+
}, {
|
|
9943
|
+
i18nKey: "BURARI",
|
|
9944
|
+
code: "BURARI",
|
|
9945
|
+
value: "BURARI"
|
|
9946
|
+
}, {
|
|
9947
|
+
i18nKey: "DWARKA",
|
|
9948
|
+
code: "DWARKA",
|
|
9949
|
+
value: "DWARKA"
|
|
9950
|
+
}, {
|
|
9951
|
+
i18nKey: "OKHLA",
|
|
9952
|
+
code: "OKHLA",
|
|
9953
|
+
value: "OKHLA"
|
|
9954
|
+
}];
|
|
9932
9955
|
return /*#__PURE__*/React.createElement("div", {
|
|
9933
9956
|
className: "employee-form-content-with-action-bar"
|
|
9934
|
-
}, /*#__PURE__*/React.createElement(
|
|
9957
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9935
9958
|
className: "overflow-y-scroll"
|
|
9936
|
-
}, wsDocsLoading ? /*#__PURE__*/React.createElement(Loader
|
|
9959
|
+
}, wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
|
|
9937
9960
|
id: "documents-div",
|
|
9938
9961
|
className: "ws-docs-container"
|
|
9939
9962
|
}, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Documents2 = wsDocs.Documents) === null || _wsDocs$Documents2 === void 0 ? void 0 : _wsDocs$Documents2.map((doc, index) => {
|
|
9940
9963
|
var _doc$dropdownData3;
|
|
9941
|
-
return /*#__PURE__*/React.createElement(
|
|
9964
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
9942
9965
|
key: index,
|
|
9943
9966
|
className: "ws-doc-card"
|
|
9944
9967
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -9957,7 +9980,37 @@ const WSDocsRequired = ({
|
|
|
9957
9980
|
}, /*#__PURE__*/React.createElement("span", {
|
|
9958
9981
|
className: "ws-doc-bullet"
|
|
9959
9982
|
}, idx + 1, "."), /*#__PURE__*/React.createElement("span", null, t(value === null || value === void 0 ? void 0 : value.i18nKey))))));
|
|
9960
|
-
})
|
|
9983
|
+
}), /*#__PURE__*/React.createElement(Card, {
|
|
9984
|
+
className: "ws-doc-card"
|
|
9985
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9986
|
+
className: "card-label-smaller"
|
|
9987
|
+
}, "ZRO Location"), /*#__PURE__*/React.createElement("div", {
|
|
9988
|
+
className: "field"
|
|
9989
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9990
|
+
control: control,
|
|
9991
|
+
name: "zro",
|
|
9992
|
+
defaultValue: zro,
|
|
9993
|
+
rules: {
|
|
9994
|
+
required: t("REQUIRED_FIELD")
|
|
9995
|
+
},
|
|
9996
|
+
isMandatory: true,
|
|
9997
|
+
render: props => /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Dropdown, {
|
|
9998
|
+
className: "form-field",
|
|
9999
|
+
selected: getValues("gender"),
|
|
10000
|
+
disable: false,
|
|
10001
|
+
option: menu,
|
|
10002
|
+
errorStyle: localFormState.touched.gender && zro.error ? true : false,
|
|
10003
|
+
select: e => {
|
|
10004
|
+
setZro(prev => ({
|
|
10005
|
+
...prev,
|
|
10006
|
+
value: e
|
|
10007
|
+
}));
|
|
10008
|
+
},
|
|
10009
|
+
optionKey: "i18nKey",
|
|
10010
|
+
onBlur: props.onBlur,
|
|
10011
|
+
t: t
|
|
10012
|
+
}))
|
|
10013
|
+
}))), localFormState && zro.error && /*#__PURE__*/React.createElement(CardLabelError, null, zro.error)))), /*#__PURE__*/React.createElement(ActionBar, {
|
|
9961
10014
|
style: {
|
|
9962
10015
|
display: "flex",
|
|
9963
10016
|
justifyContent: "flex-end",
|
|
@@ -9968,7 +10021,7 @@ const WSDocsRequired = ({
|
|
|
9968
10021
|
onSubmit: () => {
|
|
9969
10022
|
history.push(match.path.replace("create-application", "new-application"));
|
|
9970
10023
|
},
|
|
9971
|
-
disabled: wsDocsLoading ? true : false
|
|
10024
|
+
disabled: wsDocsLoading || !zro.value ? true : false
|
|
9972
10025
|
}))));
|
|
9973
10026
|
};
|
|
9974
10027
|
|
|
@@ -10038,7 +10091,7 @@ const WSDocumentDetails = ({
|
|
|
10038
10091
|
label: error,
|
|
10039
10092
|
onClose: () => setError(null),
|
|
10040
10093
|
error: true
|
|
10041
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
10094
|
+
})) : /*#__PURE__*/React.createElement(Loader, null));
|
|
10042
10095
|
};
|
|
10043
10096
|
function SelectDocument({
|
|
10044
10097
|
t,
|
|
@@ -10812,7 +10865,7 @@ const WSConnectionHolder = ({
|
|
|
10812
10865
|
style: {
|
|
10813
10866
|
color: "red"
|
|
10814
10867
|
}
|
|
10815
|
-
}, error)))) : /*#__PURE__*/React.createElement(Loader
|
|
10868
|
+
}, error)))) : /*#__PURE__*/React.createElement(Loader, null));
|
|
10816
10869
|
};
|
|
10817
10870
|
|
|
10818
10871
|
const WSActivationDetails = ({
|
|
@@ -10971,7 +11024,7 @@ const WSConnectionDetails = ({
|
|
|
10971
11024
|
setConnectionDetails([createConnectionDetails()]);
|
|
10972
11025
|
}
|
|
10973
11026
|
}, [formData === null || formData === void 0 ? void 0 : formData.ConnectionDetails]);
|
|
10974
|
-
if (isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader
|
|
11027
|
+
if (isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
10975
11028
|
const commonProps = {
|
|
10976
11029
|
focusIndex,
|
|
10977
11030
|
connectionDetails,
|
|
@@ -11455,7 +11508,7 @@ const WSRoadCuttingDetails = ({
|
|
|
11455
11508
|
});
|
|
11456
11509
|
const addroadCutt = () => {
|
|
11457
11510
|
const newRoadCutting = createRoadCuttingDetails();
|
|
11458
|
-
setRoadCuttingDetails(prev => [...prev, newRoadCutting]);
|
|
11511
|
+
setRoadCuttingDetails(prev => [...(Array.isArray(prev) ? prev : []), newRoadCutting]);
|
|
11459
11512
|
};
|
|
11460
11513
|
const removeroadCutt = roadCutt => {
|
|
11461
11514
|
(roadCutt === null || roadCutt === void 0 ? void 0 : roadCutt.id) !== null ? setRoadCuttingDetails(prev => prev.map(e => e.key == roadCutt.key && e.id !== null ? {
|
|
@@ -11485,7 +11538,7 @@ const WSRoadCuttingDetails = ({
|
|
|
11485
11538
|
isEditScreen
|
|
11486
11539
|
};
|
|
11487
11540
|
if (isMdmsLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
11488
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, roadCuttingDetails.filter(o => o.status !== "INACTIVE").map((roadCutt, index) => /*#__PURE__*/React.createElement(RoadCuttForm, Object.assign({
|
|
11541
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (roadCuttingDetails === null || roadCuttingDetails === void 0 ? void 0 : roadCuttingDetails.length) && roadCuttingDetails.filter(o => o.status !== "INACTIVE").map((roadCutt, index) => /*#__PURE__*/React.createElement(RoadCuttForm, Object.assign({
|
|
11489
11542
|
key: roadCutt.key,
|
|
11490
11543
|
index: index,
|
|
11491
11544
|
roadCutt: roadCutt
|
|
@@ -11718,7 +11771,7 @@ const WSPropertyDetails = ({
|
|
|
11718
11771
|
${pinCode ? ", " + pinCode : ""}`;
|
|
11719
11772
|
};
|
|
11720
11773
|
if (loading) {
|
|
11721
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
11774
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
11722
11775
|
}
|
|
11723
11776
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
11724
11777
|
className: "card-label-smaller"
|
|
@@ -13735,7 +13788,7 @@ const WSActivationConnectionDetails = ({
|
|
|
13735
13788
|
data: wsServicesCalculationData
|
|
13736
13789
|
} = Digit.Hooks.ws.useMDMS(stateCode, "ws-services-calculation", ["PipeSize"]);
|
|
13737
13790
|
useEffect(() => {
|
|
13738
|
-
const data = connectionDetails.map(e => {
|
|
13791
|
+
const data = (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.length) && connectionDetails.map(e => {
|
|
13739
13792
|
return e;
|
|
13740
13793
|
});
|
|
13741
13794
|
onSelect(config === null || config === void 0 ? void 0 : config.key, data);
|
|
@@ -13792,7 +13845,7 @@ const WSActivationConnectionDetails = ({
|
|
|
13792
13845
|
});
|
|
13793
13846
|
}
|
|
13794
13847
|
}, [connectionDetails]);
|
|
13795
|
-
if (isMdmsLoading || isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader
|
|
13848
|
+
if (isMdmsLoading || isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
13796
13849
|
const commonProps = {
|
|
13797
13850
|
focusIndex,
|
|
13798
13851
|
allOwners: connectionDetails,
|
|
@@ -13815,11 +13868,11 @@ const WSActivationConnectionDetails = ({
|
|
|
13815
13868
|
setWaterSubSourceList,
|
|
13816
13869
|
mdmsData
|
|
13817
13870
|
};
|
|
13818
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, connectionDetails.map((connectionDetail, index) => /*#__PURE__*/React.createElement(ConnectionDetails$2, Object.assign({
|
|
13871
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.length) && (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.map((connectionDetail, index) => /*#__PURE__*/React.createElement(ConnectionDetails$2, Object.assign({
|
|
13819
13872
|
key: connectionDetail.key || index,
|
|
13820
13873
|
index: index,
|
|
13821
13874
|
connectionDetail: connectionDetail
|
|
13822
|
-
}, commonProps))));
|
|
13875
|
+
}, commonProps)))));
|
|
13823
13876
|
};
|
|
13824
13877
|
const ConnectionDetails$2 = _props => {
|
|
13825
13878
|
var _errors$connectionTyp2, _errors$waterSource2, _errors$sourceSubData2, _errors$pipeSize2, _errors$noOfTaps2, _errors$noOfWaterClos2, _errors$noOfToilets2;
|
|
@@ -14239,7 +14292,7 @@ const WSActivationPlumberDetails = ({
|
|
|
14239
14292
|
code: "Self"
|
|
14240
14293
|
}];
|
|
14241
14294
|
useEffect(() => {
|
|
14242
|
-
const data = plumberDetails.map(e => {
|
|
14295
|
+
const data = plumberDetails.length && plumberDetails.map(e => {
|
|
14243
14296
|
return e;
|
|
14244
14297
|
});
|
|
14245
14298
|
onSelect(config === null || config === void 0 ? void 0 : config.key, data);
|
|
@@ -14262,7 +14315,7 @@ const WSActivationPlumberDetails = ({
|
|
|
14262
14315
|
options,
|
|
14263
14316
|
setPlumberDetails
|
|
14264
14317
|
};
|
|
14265
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, plumberDetails.map((plumberDetail, index) => /*#__PURE__*/React.createElement(PlumberDetails, Object.assign({
|
|
14318
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (plumberDetails === null || plumberDetails === void 0 ? void 0 : plumberDetails.length) && plumberDetails.map((plumberDetail, index) => /*#__PURE__*/React.createElement(PlumberDetails, Object.assign({
|
|
14266
14319
|
key: plumberDetail.key || index,
|
|
14267
14320
|
index: index,
|
|
14268
14321
|
plumberDetail: plumberDetail
|
|
@@ -15069,7 +15122,7 @@ const WSDocumentsEmployee = ({
|
|
|
15069
15122
|
goNext();
|
|
15070
15123
|
}, [documents]);
|
|
15071
15124
|
if (isLoading) {
|
|
15072
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
15125
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
15073
15126
|
}
|
|
15074
15127
|
const applicationDetailsData = JSON.parse(sessionStorage.getItem("WS_EDIT_APPLICATION_DETAILS"));
|
|
15075
15128
|
if (window.location.href.includes("edit") && (applicationDetailsData === null || applicationDetailsData === void 0 ? void 0 : (_applicationDetailsDa = applicationDetailsData.applicationData) === null || _applicationDetailsDa === void 0 ? void 0 : (_applicationDetailsDa2 = _applicationDetailsDa.documents) === null || _applicationDetailsDa2 === void 0 ? void 0 : _applicationDetailsDa2.length) > 0) {
|
|
@@ -15360,7 +15413,7 @@ const WSEditConnectionDetails = ({
|
|
|
15360
15413
|
setConnectionDetails([createConnectionDetails$2()]);
|
|
15361
15414
|
}
|
|
15362
15415
|
}, [formData === null || formData === void 0 ? void 0 : formData.ConnectionDetails]);
|
|
15363
|
-
if (isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader
|
|
15416
|
+
if (isWSServicesCalculationLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
15364
15417
|
const commonProps = {
|
|
15365
15418
|
focusIndex,
|
|
15366
15419
|
connectionDetails,
|
|
@@ -15756,7 +15809,7 @@ const WSDisconnectionDocsRequired = ({
|
|
|
15756
15809
|
} = Digit.Hooks.ws.WSSearchMdmsTypes.useWSServicesMasters(tenantId, "DisconnectionDocuments");
|
|
15757
15810
|
if (userType === "citizen") {
|
|
15758
15811
|
var _wsDocs$Disconnection;
|
|
15759
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
15812
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`WS_COMMON_APPLICATION_DISCONNECTION`)), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
|
|
15760
15813
|
style: {
|
|
15761
15814
|
margin: "0px"
|
|
15762
15815
|
},
|
|
@@ -15782,7 +15835,7 @@ const WSDisconnectionDocsRequired = ({
|
|
|
15782
15835
|
color: "#0B0C0C",
|
|
15783
15836
|
marginTop: "12px"
|
|
15784
15837
|
}
|
|
15785
|
-
}, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader
|
|
15838
|
+
}, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((doc, index) => {
|
|
15786
15839
|
var _doc$dropdownData;
|
|
15787
15840
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
15788
15841
|
style: {
|
|
@@ -15828,7 +15881,7 @@ const WSDisconnectionDocsRequired = ({
|
|
|
15828
15881
|
fontSize: "32px",
|
|
15829
15882
|
marginLeft: "18px"
|
|
15830
15883
|
}
|
|
15831
|
-
}, t("WS_WATER_AND_SEWERAGE_DISCONNECTION")), /*#__PURE__*/React.createElement(Card, null, wsDocsLoading ? /*#__PURE__*/React.createElement(Loader
|
|
15884
|
+
}, t("WS_WATER_AND_SEWERAGE_DISCONNECTION")), /*#__PURE__*/React.createElement(Card, null, wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
|
|
15832
15885
|
id: "documents-div"
|
|
15833
15886
|
}, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection2 = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection2 === void 0 ? void 0 : _wsDocs$Disconnection2.map((doc, index) => {
|
|
15834
15887
|
var _doc$dropdownData3;
|
|
@@ -17664,7 +17717,7 @@ const WSDisconnectionForm = ({
|
|
|
17664
17717
|
}
|
|
17665
17718
|
}
|
|
17666
17719
|
};
|
|
17667
|
-
if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader
|
|
17720
|
+
if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
17668
17721
|
if (userType === 'citizen') {
|
|
17669
17722
|
var _disconnectionData$ty, _disconnectionData$ty2, _disconnectionData$ty3, _disconnectionData$ty4, _disconnectionData$ty5, _disconnectionData$re2, _disconnectionData$re3, _disconnectionData$re4, _disconnectionData$re5;
|
|
17670
17723
|
return /*#__PURE__*/React.createElement("div", null, userType === "citizen" && /*#__PURE__*/React.createElement(DisconnectTimeline, {
|
|
@@ -18341,7 +18394,7 @@ const WSRestorationForm = ({
|
|
|
18341
18394
|
}
|
|
18342
18395
|
}
|
|
18343
18396
|
};
|
|
18344
|
-
if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader
|
|
18397
|
+
if (isMdmsLoading || wsDocsLoading || isEnableLoader || slaLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
18345
18398
|
if (userType === 'citizen') {
|
|
18346
18399
|
var _disconnectionData$re2, _disconnectionData$re3;
|
|
18347
18400
|
return /*#__PURE__*/React.createElement("div", null, userType === "citizen" && /*#__PURE__*/React.createElement(DisconnectTimeline, {
|
|
@@ -18551,7 +18604,7 @@ function WSDisconnectionDocumentsForm({
|
|
|
18551
18604
|
data: wsDocs
|
|
18552
18605
|
} = Digit.Hooks.ws.WSSearchMdmsTypes.useWSServicesMasters(tenantId, 'DisconnectionDocuments');
|
|
18553
18606
|
if (wsDocsLoading) {
|
|
18554
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
18607
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
18555
18608
|
}
|
|
18556
18609
|
return /*#__PURE__*/React.createElement("div", {
|
|
18557
18610
|
style: {
|
|
@@ -19216,7 +19269,7 @@ const FilterFormFieldsComponent = ({
|
|
|
19216
19269
|
});
|
|
19217
19270
|
return props.onChange(res);
|
|
19218
19271
|
};
|
|
19219
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
19272
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
19220
19273
|
name: "assignee",
|
|
19221
19274
|
control: controlFilterForm,
|
|
19222
19275
|
render: props => {
|
|
@@ -19247,7 +19300,7 @@ const FilterFormFieldsComponent = ({
|
|
|
19247
19300
|
});
|
|
19248
19301
|
});
|
|
19249
19302
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
19250
|
-
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader
|
|
19303
|
+
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
19251
19304
|
className: "filter-label sub-filter-label"
|
|
19252
19305
|
}, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
|
|
19253
19306
|
options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
|
|
@@ -19282,9 +19335,9 @@ const FilterFormFieldsComponent = ({
|
|
|
19282
19335
|
key: index + 1
|
|
19283
19336
|
});
|
|
19284
19337
|
}), [props.value, statuses]);
|
|
19285
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
19338
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
19286
19339
|
className: "filter-label sub-filter-label"
|
|
19287
|
-
}, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader
|
|
19340
|
+
}, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
|
|
19288
19341
|
}
|
|
19289
19342
|
})), (selectedApplicationType === null || selectedApplicationType === void 0 ? void 0 : selectedApplicationType.length) > 0 ? /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
19290
19343
|
name: "applicationStatus",
|
|
@@ -19311,9 +19364,9 @@ const FilterFormFieldsComponent = ({
|
|
|
19311
19364
|
});
|
|
19312
19365
|
});
|
|
19313
19366
|
}, [props.value, statuses, selectedApplicationType]);
|
|
19314
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
19367
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
19315
19368
|
className: "filter-label sub-filter-label"
|
|
19316
|
-
}, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader
|
|
19369
|
+
}, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, renderStatusCheckBoxes));
|
|
19317
19370
|
}
|
|
19318
19371
|
})) : null);
|
|
19319
19372
|
};
|
|
@@ -20021,7 +20074,7 @@ const SearchFields = ({
|
|
|
20021
20074
|
name: "mobileNumber",
|
|
20022
20075
|
type: "number",
|
|
20023
20076
|
inputRef: register({})
|
|
20024
|
-
}, propsForMobileNumber))), applicationTypesLoading ? /*#__PURE__*/React.createElement(Loader
|
|
20077
|
+
}, propsForMobileNumber))), applicationTypesLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_APPLICATION_TYPE_LABEL")), /*#__PURE__*/React.createElement(Controller, {
|
|
20025
20078
|
control: control,
|
|
20026
20079
|
name: "applicationType",
|
|
20027
20080
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
@@ -20032,7 +20085,7 @@ const SearchFields = ({
|
|
|
20032
20085
|
optionKey: "i18nKey",
|
|
20033
20086
|
t: t
|
|
20034
20087
|
})
|
|
20035
|
-
})), isLoading ? /*#__PURE__*/React.createElement(Loader
|
|
20088
|
+
})), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_COMMON_TABLE_COL_APPLICATION_STATUS_LABEL")), /*#__PURE__*/React.createElement(Controller, {
|
|
20036
20089
|
control: control,
|
|
20037
20090
|
name: "applicationStatus",
|
|
20038
20091
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
@@ -20474,7 +20527,7 @@ const SearchApplication = ({
|
|
|
20474
20527
|
sortOrder: "DESC"
|
|
20475
20528
|
});
|
|
20476
20529
|
}
|
|
20477
|
-
}, t(`CS_COMMON_CLEAR_SEARCH`))))), isLoading ? /*#__PURE__*/React.createElement(Loader
|
|
20530
|
+
}, t(`CS_COMMON_CLEAR_SEARCH`))))), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
|
|
20478
20531
|
style: {
|
|
20479
20532
|
marginTop: 20
|
|
20480
20533
|
}
|
|
@@ -20530,7 +20583,7 @@ const SearchFields$1 = ({
|
|
|
20530
20583
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
20531
20584
|
};
|
|
20532
20585
|
let validation = {};
|
|
20533
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
20586
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
20534
20587
|
name: "connectionNumber",
|
|
20535
20588
|
inputRef: register({})
|
|
20536
20589
|
}, validation = {
|
|
@@ -21073,7 +21126,7 @@ const SearchWaterConnection = ({
|
|
|
21073
21126
|
oldConnectionNumber: ""
|
|
21074
21127
|
});
|
|
21075
21128
|
}
|
|
21076
|
-
}, t("WS_SEARCH_CONNECTION_RESET_BUTTON"))))), isLoading ? /*#__PURE__*/React.createElement(Loader
|
|
21129
|
+
}, t("WS_SEARCH_CONNECTION_RESET_BUTTON"))))), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
|
|
21077
21130
|
style: {
|
|
21078
21131
|
marginTop: 20
|
|
21079
21132
|
}
|
|
@@ -21164,7 +21217,7 @@ const BulkBillSearchFields = ({
|
|
|
21164
21217
|
setValue('tenantId', tenant);
|
|
21165
21218
|
setLocality(value);
|
|
21166
21219
|
}
|
|
21167
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
21220
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_CITY")), /*#__PURE__*/React.createElement(TextInput, {
|
|
21168
21221
|
name: "city",
|
|
21169
21222
|
disable: true,
|
|
21170
21223
|
value: t(tenant),
|
|
@@ -21569,7 +21622,7 @@ const BulkBillSearch = ({
|
|
|
21569
21622
|
return GetCell((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["status"]);
|
|
21570
21623
|
}
|
|
21571
21624
|
}]);
|
|
21572
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
21625
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
|
|
21573
21626
|
styles: {
|
|
21574
21627
|
fontSize: "32px"
|
|
21575
21628
|
}
|
|
@@ -21584,7 +21637,7 @@ const BulkBillSearch = ({
|
|
|
21584
21637
|
tenantId,
|
|
21585
21638
|
t,
|
|
21586
21639
|
setValue
|
|
21587
|
-
})), isLoading ? /*#__PURE__*/React.createElement(Loader
|
|
21640
|
+
})), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, isLoadingBulkMeterReading && /*#__PURE__*/React.createElement(Loader, null), data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
|
|
21588
21641
|
style: {
|
|
21589
21642
|
marginTop: 20
|
|
21590
21643
|
}
|
|
@@ -21937,7 +21990,7 @@ const SearchFormFieldsComponents$1 = ({
|
|
|
21937
21990
|
componentInFront: "+91"
|
|
21938
21991
|
};
|
|
21939
21992
|
let validation = {};
|
|
21940
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
21993
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
|
|
21941
21994
|
className: "wns-search-field"
|
|
21942
21995
|
}, /*#__PURE__*/React.createElement("label", null, t("BILLAMEND_APPLICATIONNO")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
21943
21996
|
name: "applicationNumber",
|
|
@@ -22004,7 +22057,7 @@ const FilterFormFieldsComponent$1 = ({
|
|
|
22004
22057
|
});
|
|
22005
22058
|
return props.onChange(res);
|
|
22006
22059
|
};
|
|
22007
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
22060
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
22008
22061
|
name: "assignee",
|
|
22009
22062
|
control: controlFilterForm,
|
|
22010
22063
|
render: props => /*#__PURE__*/React.createElement(RadioButtons, {
|
|
@@ -22033,7 +22086,7 @@ const FilterFormFieldsComponent$1 = ({
|
|
|
22033
22086
|
});
|
|
22034
22087
|
});
|
|
22035
22088
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
22036
|
-
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader
|
|
22089
|
+
return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
22037
22090
|
className: "filter-label sub-filter-label"
|
|
22038
22091
|
}, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
|
|
22039
22092
|
options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
|
|
@@ -22072,9 +22125,9 @@ const FilterFormFieldsComponent$1 = ({
|
|
|
22072
22125
|
key: index + 1
|
|
22073
22126
|
});
|
|
22074
22127
|
}), [props.value, statuses]);
|
|
22075
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
22128
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
22076
22129
|
className: "filter-label sub-filter-label"
|
|
22077
|
-
}, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader
|
|
22130
|
+
}, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
|
|
22078
22131
|
}
|
|
22079
22132
|
})));
|
|
22080
22133
|
};
|
|
@@ -22102,7 +22155,7 @@ const useInboxTableConfig$1 = ({
|
|
|
22102
22155
|
if (value === "Approved") {
|
|
22103
22156
|
return /*#__PURE__*/React.createElement("span", {
|
|
22104
22157
|
style: {
|
|
22105
|
-
color: "#
|
|
22158
|
+
color: "#2E9E8F"
|
|
22106
22159
|
}
|
|
22107
22160
|
}, value);
|
|
22108
22161
|
}
|
|
@@ -22582,7 +22635,7 @@ const Inbox = ({
|
|
|
22582
22635
|
sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
|
|
22583
22636
|
onSortFormReset
|
|
22584
22637
|
};
|
|
22585
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
22638
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, null, t("ES_COMMON_INBOX"), totalCount ? /*#__PURE__*/React.createElement("p", {
|
|
22586
22639
|
className: "inbox-count"
|
|
22587
22640
|
}, totalCount) : null), /*#__PURE__*/React.createElement(InboxComposer, _extends({
|
|
22588
22641
|
isInboxLoading,
|
|
@@ -23696,7 +23749,7 @@ var ContextConsumer = k;
|
|
|
23696
23749
|
var ContextProvider = h;
|
|
23697
23750
|
var Element = c;
|
|
23698
23751
|
var ForwardRef = n;
|
|
23699
|
-
var Fragment
|
|
23752
|
+
var Fragment = e;
|
|
23700
23753
|
var Lazy = t;
|
|
23701
23754
|
var Memo = r;
|
|
23702
23755
|
var Portal = d;
|
|
@@ -23751,7 +23804,7 @@ var reactIs_production_min = {
|
|
|
23751
23804
|
ContextProvider: ContextProvider,
|
|
23752
23805
|
Element: Element,
|
|
23753
23806
|
ForwardRef: ForwardRef,
|
|
23754
|
-
Fragment: Fragment
|
|
23807
|
+
Fragment: Fragment,
|
|
23755
23808
|
Lazy: Lazy,
|
|
23756
23809
|
Memo: Memo,
|
|
23757
23810
|
Portal: Portal,
|
|
@@ -24567,7 +24620,7 @@ const SearchConnection = ({
|
|
|
24567
24620
|
}
|
|
24568
24621
|
});
|
|
24569
24622
|
if (isLoading) {
|
|
24570
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
24623
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
24571
24624
|
}
|
|
24572
24625
|
const onConnectionSearch = async data => {
|
|
24573
24626
|
if (searchType.code === "CONSUMER_NUMBER") {
|
|
@@ -25828,7 +25881,7 @@ const ChallanSearchResults = ({
|
|
|
25828
25881
|
privacy: Digit.Utils.getPrivacyObject()
|
|
25829
25882
|
});
|
|
25830
25883
|
if (isWSLoading || isSWLoading) {
|
|
25831
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
25884
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
25832
25885
|
}
|
|
25833
25886
|
const onSubmit = data => {
|
|
25834
25887
|
history.push(`/digit-ui/citizen/payment/my-bills/${data === null || data === void 0 ? void 0 : data.ConsumerNumber.split("/")[0]}/${stringReplaceAll(data === null || data === void 0 ? void 0 : data.ConsumerNumber, "/", "+")}?workflow=WNS&tenantId=${tenantId}&ConsumerName=${data === null || data === void 0 ? void 0 : data.ConsumerName}`);
|
|
@@ -26056,12 +26109,12 @@ const WSWFApplicationTimeline = props => {
|
|
|
26056
26109
|
}
|
|
26057
26110
|
};
|
|
26058
26111
|
if (isLoading) {
|
|
26059
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
26112
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
26060
26113
|
}
|
|
26061
26114
|
const toggleTimeline = () => {
|
|
26062
26115
|
setShowAllTimeline(prev => !prev);
|
|
26063
26116
|
};
|
|
26064
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading && /*#__PURE__*/React.createElement(Fragment$
|
|
26117
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading && /*#__PURE__*/React.createElement(Fragment$1, null, (data === null || data === void 0 ? void 0 : (_data$timeline = data.timeline) === null || _data$timeline === void 0 ? void 0 : _data$timeline.length) > 0 && /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
26065
26118
|
style: {
|
|
26066
26119
|
marginBottom: "16px"
|
|
26067
26120
|
}
|
|
@@ -26111,7 +26164,7 @@ function WSDocument({
|
|
|
26111
26164
|
documents.push(ob);
|
|
26112
26165
|
});
|
|
26113
26166
|
if (isLoading) {
|
|
26114
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
26167
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
26115
26168
|
}
|
|
26116
26169
|
return /*#__PURE__*/React.createElement("div", {
|
|
26117
26170
|
style: {
|
|
@@ -26339,7 +26392,7 @@ const WSApplicationDetails = () => {
|
|
|
26339
26392
|
}) || false;
|
|
26340
26393
|
const isPaid = (data === null || data === void 0 ? void 0 : (_data$WaterConnection13 = data.WaterConnection) === null || _data$WaterConnection13 === void 0 ? void 0 : (_data$WaterConnection14 = _data$WaterConnection13[0]) === null || _data$WaterConnection14 === void 0 ? void 0 : _data$WaterConnection14.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection15 = data.WaterConnection) === null || _data$WaterConnection15 === void 0 ? void 0 : (_data$WaterConnection16 = _data$WaterConnection15[0]) === null || _data$WaterConnection16 === void 0 ? void 0 : _data$WaterConnection16.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect1 = data.SewerageConnections) === null || _data$SewerageConnect1 === void 0 ? void 0 : (_data$SewerageConnect10 = _data$SewerageConnect1[0]) === null || _data$SewerageConnect10 === void 0 ? void 0 : _data$SewerageConnect10.applicationStatus) === "CONNECTION_ACTIVATED" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect11 = data.SewerageConnections) === null || _data$SewerageConnect11 === void 0 ? void 0 : (_data$SewerageConnect12 = _data$SewerageConnect11[0]) === null || _data$SewerageConnect12 === void 0 ? void 0 : _data$SewerageConnect12.applicationStatus) === "PENDING_FOR_CONNECTION_ACTIVATION" ? true : false;
|
|
26341
26394
|
if (isLoading) {
|
|
26342
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
26395
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
26343
26396
|
}
|
|
26344
26397
|
const handleDownloadPdf = async () => {
|
|
26345
26398
|
var _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection19, _data$SewerageConnect15, _PTData$Properties;
|
|
@@ -27040,7 +27093,7 @@ const WSAdditionalDetails = () => {
|
|
|
27040
27093
|
filters: filter1
|
|
27041
27094
|
});
|
|
27042
27095
|
if (isLoading) {
|
|
27043
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
27096
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
27044
27097
|
}
|
|
27045
27098
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, t("WS_COMMON_ADDN_DETAILS")), /*#__PURE__*/React.createElement("div", {
|
|
27046
27099
|
className: "hide-seperator"
|
|
@@ -27604,7 +27657,7 @@ const ConnectionDetails$5 = () => {
|
|
|
27604
27657
|
}, /*#__PURE__*/React.createElement(Close, null));
|
|
27605
27658
|
};
|
|
27606
27659
|
if (isLoading || isPTLoading) {
|
|
27607
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
27660
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
27608
27661
|
}
|
|
27609
27662
|
sessionStorage.setItem("ApplicationNoState", (_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.applicationNo);
|
|
27610
27663
|
let serviceType = (_state4 = state) !== null && _state4 !== void 0 && (_state4$applicationTy = _state4.applicationType) !== null && _state4$applicationTy !== void 0 && _state4$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
|
|
@@ -28089,7 +28142,7 @@ const consumptionDetails = ({
|
|
|
28089
28142
|
} else return t("NA");
|
|
28090
28143
|
};
|
|
28091
28144
|
if (isLoading) {
|
|
28092
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
28145
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
28093
28146
|
}
|
|
28094
28147
|
let {
|
|
28095
28148
|
meterReadings
|
|
@@ -28279,7 +28332,7 @@ const WSMyPayments = () => {
|
|
|
28279
28332
|
enabled: connectionNoSW !== null ? true : false
|
|
28280
28333
|
});
|
|
28281
28334
|
if (isLoading || iswsLoading || isswLoading || isSWLoading || isPropertyLoading) {
|
|
28282
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
28335
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
28283
28336
|
}
|
|
28284
28337
|
const wspayment = wspayments && (wspayments === null || wspayments === void 0 ? void 0 : wspayments.Payments) || [];
|
|
28285
28338
|
const swpayment = swpayments && (swpayments === null || swpayments === void 0 ? void 0 : swpayments.Payments) || [];
|
|
@@ -28642,7 +28695,7 @@ const EditApplication = ({
|
|
|
28642
28695
|
});
|
|
28643
28696
|
config.indexRoute = "property-details";
|
|
28644
28697
|
if ((Waterresult && Object.keys(Waterresult).length > 0 || !Sewarageresult) && Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || configLoading) {
|
|
28645
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
28698
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
28646
28699
|
}
|
|
28647
28700
|
const CheckPage = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent('WSCheckPage');
|
|
28648
28701
|
const Acknowledgement = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent('WSAcknowledgement');
|
|
@@ -29122,7 +29175,7 @@ const MyConnections = ({
|
|
|
29122
29175
|
};
|
|
29123
29176
|
});
|
|
29124
29177
|
if (isLoading || PTisLoading || isSWLoading) {
|
|
29125
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
29178
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
29126
29179
|
}
|
|
29127
29180
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, `${t("WS_MYCONNECTIONS_HEADER")} ${connectionList ? `(${connectionList.length})` : ""}`), /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
29128
29181
|
t: t
|
|
@@ -29246,7 +29299,7 @@ const WSAcknowledgement = ({
|
|
|
29246
29299
|
}, tenantInfo === null || tenantInfo === void 0 ? void 0 : tenantInfo.code, t);
|
|
29247
29300
|
data2.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
29248
29301
|
};
|
|
29249
|
-
return ((data === null || data === void 0 ? void 0 : (_data$serviceName7 = data.serviceName) === null || _data$serviceName7 === void 0 ? void 0 : _data$serviceName7.code) === "WATER" ? WSmutation.isLoading || WSmutation.isIdle : (data === null || data === void 0 ? void 0 : (_data$serviceName8 = data.serviceName) === null || _data$serviceName8 === void 0 ? void 0 : _data$serviceName8.code) === "SEWERAGE" ? SWmutation.isLoading || SWmutation.isIdle : WSmutation.isLoading || WSmutation.isIdle || SWmutation.isLoading || SWmutation.isIdle) ? /*#__PURE__*/React.createElement(Loader
|
|
29302
|
+
return ((data === null || data === void 0 ? void 0 : (_data$serviceName7 = data.serviceName) === null || _data$serviceName7 === void 0 ? void 0 : _data$serviceName7.code) === "WATER" ? WSmutation.isLoading || WSmutation.isIdle : (data === null || data === void 0 ? void 0 : (_data$serviceName8 = data.serviceName) === null || _data$serviceName8 === void 0 ? void 0 : _data$serviceName8.code) === "SEWERAGE" ? SWmutation.isLoading || SWmutation.isIdle : WSmutation.isLoading || WSmutation.isIdle || SWmutation.isLoading || SWmutation.isIdle) ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(BannerPicker$2, {
|
|
29250
29303
|
t: t,
|
|
29251
29304
|
clearParams: clearParams,
|
|
29252
29305
|
Waterdata: WSmutation.data,
|
|
@@ -29438,7 +29491,7 @@ const CheckPage$1 = () => {
|
|
|
29438
29491
|
}
|
|
29439
29492
|
};
|
|
29440
29493
|
if (isEnableLoader) {
|
|
29441
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
29494
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
29442
29495
|
}
|
|
29443
29496
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
|
|
29444
29497
|
styles: {
|
|
@@ -29701,7 +29754,7 @@ const CheckPage$2 = () => {
|
|
|
29701
29754
|
}
|
|
29702
29755
|
};
|
|
29703
29756
|
if (isEnableLoader) {
|
|
29704
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
29757
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
29705
29758
|
}
|
|
29706
29759
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
|
|
29707
29760
|
styles: {
|
|
@@ -29847,7 +29900,7 @@ const CheckPage$3 = () => {
|
|
|
29847
29900
|
}
|
|
29848
29901
|
};
|
|
29849
29902
|
if (isEnableLoader) {
|
|
29850
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
29903
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
29851
29904
|
}
|
|
29852
29905
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
|
|
29853
29906
|
styles: {
|
|
@@ -30041,7 +30094,7 @@ const WNSMyBills = ({
|
|
|
30041
30094
|
privacy: Digit.Utils.getPrivacyObject()
|
|
30042
30095
|
});
|
|
30043
30096
|
if (Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || Waterresult == undefined || Sewarageresult == undefined) {
|
|
30044
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
30097
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
30045
30098
|
}
|
|
30046
30099
|
const onSubmit = data => {
|
|
30047
30100
|
history.push(`/digit-ui/citizen/payment/my-bills/${data === null || data === void 0 ? void 0 : data.ConsumerNumber.split("/")[0]}/${stringReplaceAll(data === null || data === void 0 ? void 0 : data.ConsumerNumber, "/", "+")}?workflow=WNS&tenantId=${tenantId}&ConsumerName=${data === null || data === void 0 ? void 0 : data.ConsumerName}`);
|
|
@@ -30481,7 +30534,7 @@ const ApplicationBillAmendment = () => {
|
|
|
30481
30534
|
style: {
|
|
30482
30535
|
paddingLeft: "150px"
|
|
30483
30536
|
}
|
|
30484
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
30537
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
|
|
30485
30538
|
name: `${servicev1}_REDUCED_AMOUNT.VALUE`,
|
|
30486
30539
|
key: `${servicev1}_REDUCED_AMOUNT.VALUE`,
|
|
30487
30540
|
control: control,
|
|
@@ -30516,7 +30569,7 @@ const ApplicationBillAmendment = () => {
|
|
|
30516
30569
|
checked: props === null || props === void 0 ? void 0 : props.value
|
|
30517
30570
|
}));
|
|
30518
30571
|
}
|
|
30519
|
-
}), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$
|
|
30572
|
+
}), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
|
|
30520
30573
|
name: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
|
|
30521
30574
|
key: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
|
|
30522
30575
|
control: control,
|
|
@@ -30567,7 +30620,7 @@ const ApplicationBillAmendment = () => {
|
|
|
30567
30620
|
paddingRight: "60px",
|
|
30568
30621
|
paddingLeft: "150px"
|
|
30569
30622
|
}
|
|
30570
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
30623
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
30571
30624
|
disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
|
|
30572
30625
|
type: "number",
|
|
30573
30626
|
name: `${servicev1}_REDUCED_AMOUNT.${node.taxHeadCode}`,
|
|
@@ -30597,7 +30650,7 @@ const ApplicationBillAmendment = () => {
|
|
|
30597
30650
|
style: {
|
|
30598
30651
|
paddingRight: "60px"
|
|
30599
30652
|
}
|
|
30600
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
30653
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
30601
30654
|
disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
|
|
30602
30655
|
type: "number",
|
|
30603
30656
|
name: `${servicev1}_ADDITIONAL_AMOUNT.${node.taxHeadCode}`,
|
|
@@ -30645,7 +30698,7 @@ const ApplicationBillAmendment = () => {
|
|
|
30645
30698
|
paddingRight: "60px",
|
|
30646
30699
|
paddingLeft: "150px"
|
|
30647
30700
|
}
|
|
30648
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
30701
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
30649
30702
|
disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
|
|
30650
30703
|
name: `${servicev1}_REBATE`,
|
|
30651
30704
|
inputRef: register()
|
|
@@ -30653,11 +30706,11 @@ const ApplicationBillAmendment = () => {
|
|
|
30653
30706
|
style: {
|
|
30654
30707
|
paddingRight: "60px"
|
|
30655
30708
|
}
|
|
30656
|
-
}, /*#__PURE__*/React.createElement(Fragment$
|
|
30709
|
+
}, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
30657
30710
|
disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
|
|
30658
30711
|
name: `${servicev1}_PENALTY`,
|
|
30659
30712
|
inputRef: register()
|
|
30660
|
-
}))))))) : /*#__PURE__*/React.createElement(Loader
|
|
30713
|
+
}))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
30661
30714
|
style: {
|
|
30662
30715
|
marginBottom: "16px"
|
|
30663
30716
|
}
|
|
@@ -30867,7 +30920,7 @@ const RequiredDocuments = ({
|
|
|
30867
30920
|
}));
|
|
30868
30921
|
};
|
|
30869
30922
|
const handlePrint = () => Digit.Download.PDF(fullPageRef, t("ES_COMMON_WS_DOCUMENTS_REQUIRED"));
|
|
30870
|
-
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
30923
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
30871
30924
|
ref: fullPageRef
|
|
30872
30925
|
}, /*#__PURE__*/React.createElement("div", {
|
|
30873
30926
|
className: "options"
|
|
@@ -30884,8 +30937,8 @@ const RequiredDocuments = ({
|
|
|
30884
30937
|
position: "relative"
|
|
30885
30938
|
},
|
|
30886
30939
|
className: "employeeCard-override"
|
|
30887
|
-
}, BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader
|
|
30888
|
-
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardHeader, null, t(e.code).replaceAll("_", " ")), /*#__PURE__*/React.createElement(CardLabel, null, t(`WS_DOCS_REQ_INFO`)), e.allowedDocuments.allowedDocs.map((e, i) => /*#__PURE__*/React.createElement(CardLabelDesc, null, i + 1, ". ", t(`${e.documentType}`))));
|
|
30940
|
+
}, BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : BillAmendmentMDMS === null || BillAmendmentMDMS === void 0 ? void 0 : BillAmendmentMDMS.map(e => {
|
|
30941
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardHeader, null, t(e.code).replaceAll("_", " ")), /*#__PURE__*/React.createElement(CardLabel, null, t(`WS_DOCS_REQ_INFO`)), e.allowedDocuments.allowedDocs.map((e, i) => /*#__PURE__*/React.createElement(CardLabelDesc, null, i + 1, ". ", t(`${e.documentType}`))));
|
|
30889
30942
|
}))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
30890
30943
|
label: t("WS_COMMON_BUTTON_APPLY"),
|
|
30891
30944
|
onSubmit: () => redirectToBillAmdmentPage()
|
|
@@ -31225,7 +31278,7 @@ const NewApplication = () => {
|
|
|
31225
31278
|
setShowToast(null);
|
|
31226
31279
|
};
|
|
31227
31280
|
if (isEnableLoader || isLoading) {
|
|
31228
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
31281
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
31229
31282
|
}
|
|
31230
31283
|
return /*#__PURE__*/React.createElement("div", {
|
|
31231
31284
|
className: "employee-form-content-with-action-bar"
|
|
@@ -32145,7 +32198,7 @@ const ActionModal = ({
|
|
|
32145
32198
|
actionSaveOnSubmit: () => {},
|
|
32146
32199
|
isDisabled: !action.showFinancialYearsModal ? PTALoading || (action === null || action === void 0 ? void 0 : action.docUploadRequired) && !uploadedFile : !selectedFinancialYear,
|
|
32147
32200
|
formId: "modal-action"
|
|
32148
|
-
}, financialYearsLoading ? /*#__PURE__*/React.createElement(Loader
|
|
32201
|
+
}, financialYearsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
|
|
32149
32202
|
config: config.form,
|
|
32150
32203
|
noBoxShadow: true,
|
|
32151
32204
|
inline: true,
|
|
@@ -32153,7 +32206,7 @@ const ActionModal = ({
|
|
|
32153
32206
|
onSubmit: submit,
|
|
32154
32207
|
defaultValues: defaultValues,
|
|
32155
32208
|
formId: "modal-action"
|
|
32156
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
32209
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
32157
32210
|
};
|
|
32158
32211
|
|
|
32159
32212
|
const Heading$1 = props => {
|
|
@@ -32311,7 +32364,7 @@ const ActionModal$1 = ({
|
|
|
32311
32364
|
actionSaveLabel: t(config.label.submit),
|
|
32312
32365
|
actionSaveOnSubmit: () => {},
|
|
32313
32366
|
formId: "modal-action"
|
|
32314
|
-
}, financialYearsLoading ? /*#__PURE__*/React.createElement(Loader
|
|
32367
|
+
}, financialYearsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
|
|
32315
32368
|
config: config.form,
|
|
32316
32369
|
noBoxShadow: true,
|
|
32317
32370
|
inline: true,
|
|
@@ -32319,7 +32372,7 @@ const ActionModal$1 = ({
|
|
|
32319
32372
|
onSubmit: submit,
|
|
32320
32373
|
defaultValues: defaultValues,
|
|
32321
32374
|
formId: "modal-action"
|
|
32322
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
32375
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
32323
32376
|
};
|
|
32324
32377
|
|
|
32325
32378
|
const Heading$2 = props => {
|
|
@@ -32481,7 +32534,7 @@ const ActionModal$2 = ({
|
|
|
32481
32534
|
popupModuleMianStyles: mobileView ? {
|
|
32482
32535
|
paddingLeft: "5px"
|
|
32483
32536
|
} : {}
|
|
32484
|
-
}, PTALoading ? /*#__PURE__*/React.createElement(Loader
|
|
32537
|
+
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
|
|
32485
32538
|
config: config.form,
|
|
32486
32539
|
cardStyle: {
|
|
32487
32540
|
marginLeft: "0px",
|
|
@@ -32495,7 +32548,7 @@ const ActionModal$2 = ({
|
|
|
32495
32548
|
onSubmit: submit,
|
|
32496
32549
|
defaultValues: defaultValues,
|
|
32497
32550
|
formId: "modal-action"
|
|
32498
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
32551
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
32499
32552
|
};
|
|
32500
32553
|
|
|
32501
32554
|
const Heading$3 = props => {
|
|
@@ -32786,7 +32839,7 @@ const ActionModal$3 = ({
|
|
|
32786
32839
|
popupModuleMianStyles: mobileView ? {
|
|
32787
32840
|
paddingLeft: "5px"
|
|
32788
32841
|
} : {}
|
|
32789
|
-
}, PTALoading ? /*#__PURE__*/React.createElement(Loader
|
|
32842
|
+
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
|
|
32790
32843
|
config: config.form,
|
|
32791
32844
|
cardStyle: {
|
|
32792
32845
|
marginLeft: "0px",
|
|
@@ -32800,7 +32853,7 @@ const ActionModal$3 = ({
|
|
|
32800
32853
|
onSubmit: submit,
|
|
32801
32854
|
defaultValues: defaultValues,
|
|
32802
32855
|
formId: "modal-action"
|
|
32803
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
32856
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
32804
32857
|
};
|
|
32805
32858
|
|
|
32806
32859
|
const Heading$4 = props => {
|
|
@@ -32973,7 +33026,7 @@ const ActionModal$4 = ({
|
|
|
32973
33026
|
popupModuleMianStyles: mobileView ? {
|
|
32974
33027
|
paddingLeft: "5px"
|
|
32975
33028
|
} : {}
|
|
32976
|
-
}, PTALoading ? /*#__PURE__*/React.createElement(Loader
|
|
33029
|
+
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
|
|
32977
33030
|
config: config.form,
|
|
32978
33031
|
cardStyle: {
|
|
32979
33032
|
marginLeft: "0px",
|
|
@@ -32987,7 +33040,7 @@ const ActionModal$4 = ({
|
|
|
32987
33040
|
onSubmit: submit,
|
|
32988
33041
|
defaultValues: defaultValues,
|
|
32989
33042
|
formId: "modal-action"
|
|
32990
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
33043
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
32991
33044
|
};
|
|
32992
33045
|
|
|
32993
33046
|
const Heading$5 = props => {
|
|
@@ -33281,7 +33334,7 @@ const ActionModal$5 = ({
|
|
|
33281
33334
|
width: "100%",
|
|
33282
33335
|
height: "auto"
|
|
33283
33336
|
} : {}
|
|
33284
|
-
}, PTALoading ? /*#__PURE__*/React.createElement(Loader
|
|
33337
|
+
}, PTALoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
|
|
33285
33338
|
config: config.form,
|
|
33286
33339
|
noBoxShadow: true,
|
|
33287
33340
|
inline: true,
|
|
@@ -33293,7 +33346,7 @@ const ActionModal$5 = ({
|
|
|
33293
33346
|
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
33294
33347
|
cardClassName: cardClassName,
|
|
33295
33348
|
formClassName: formClassName
|
|
33296
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
33349
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
33297
33350
|
};
|
|
33298
33351
|
|
|
33299
33352
|
const Heading$6 = props => {
|
|
@@ -33441,7 +33494,7 @@ const ActionModal$6 = ({
|
|
|
33441
33494
|
onSubmit: submit,
|
|
33442
33495
|
defaultValues: defaultValues,
|
|
33443
33496
|
formId: "modal-action"
|
|
33444
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
33497
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
33445
33498
|
};
|
|
33446
33499
|
|
|
33447
33500
|
const Heading$7 = props => {
|
|
@@ -33565,7 +33618,7 @@ const ActionModal$7 = ({
|
|
|
33565
33618
|
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
33566
33619
|
cardClassName: cardClassName,
|
|
33567
33620
|
formClassName: formClassName
|
|
33568
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
33621
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
33569
33622
|
};
|
|
33570
33623
|
|
|
33571
33624
|
const Heading$8 = props => {
|
|
@@ -33712,7 +33765,7 @@ const ActionModal$8 = ({
|
|
|
33712
33765
|
onSubmit: submit,
|
|
33713
33766
|
defaultValues: defaultValues,
|
|
33714
33767
|
formId: "modal-action"
|
|
33715
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
33768
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
33716
33769
|
};
|
|
33717
33770
|
|
|
33718
33771
|
const Heading$9 = props => {
|
|
@@ -33866,7 +33919,7 @@ const ActionModal$9 = ({
|
|
|
33866
33919
|
onSubmit: submit,
|
|
33867
33920
|
defaultValues: defaultValues,
|
|
33868
33921
|
formId: "modal-action"
|
|
33869
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
33922
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
33870
33923
|
};
|
|
33871
33924
|
|
|
33872
33925
|
const Heading$a = props => {
|
|
@@ -34018,7 +34071,7 @@ const ActionModal$a = ({
|
|
|
34018
34071
|
onSubmit: submit,
|
|
34019
34072
|
defaultValues: defaultValues,
|
|
34020
34073
|
formId: "modal-action"
|
|
34021
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
34074
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
34022
34075
|
};
|
|
34023
34076
|
|
|
34024
34077
|
const configWTApproverApplication = ({
|
|
@@ -34305,7 +34358,7 @@ const ActionModal$b = ({
|
|
|
34305
34358
|
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
34306
34359
|
cardClassName: cardClassName,
|
|
34307
34360
|
formClassName: formClassName
|
|
34308
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
34361
|
+
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
34309
34362
|
};
|
|
34310
34363
|
|
|
34311
34364
|
const ActionModal$c = props => {
|
|
@@ -35004,7 +35057,7 @@ const NOCDocuments = ({
|
|
|
35004
35057
|
}
|
|
35005
35058
|
}, [nocDocs, commonDocMaping]);
|
|
35006
35059
|
useEffect(() => {
|
|
35007
|
-
if (bpaApplicationStatus ===
|
|
35060
|
+
if (bpaApplicationStatus === "NOC_VERIFICATION_INPROGRESS" && (actions === null || actions === void 0 ? void 0 : actions.length) > 0) setCheckEnablingDocs(true);else setCheckEnablingDocs(false);
|
|
35008
35061
|
}, [applicationData, bpaActionsDetails]);
|
|
35009
35062
|
return /*#__PURE__*/React.createElement("div", {
|
|
35010
35063
|
style: {
|
|
@@ -35029,9 +35082,9 @@ const NOCDocuments = ({
|
|
|
35029
35082
|
label: isEmployee ? `${t(noc === null || noc === void 0 ? void 0 : noc.title)}` : t(noc === null || noc === void 0 ? void 0 : noc.title),
|
|
35030
35083
|
text: noc !== null && noc !== void 0 && noc.value ? t(noc === null || noc === void 0 ? void 0 : noc.value) : t("CS_NA"),
|
|
35031
35084
|
textStyle: (noc === null || noc === void 0 ? void 0 : noc.value) == "APPROVED" || (noc === null || noc === void 0 ? void 0 : noc.value) == "AUTO_APPROVED" ? {
|
|
35032
|
-
color: "#
|
|
35085
|
+
color: "#2E9E8F"
|
|
35033
35086
|
} : {
|
|
35034
|
-
color: "#
|
|
35087
|
+
color: "#D83A2F"
|
|
35035
35088
|
}
|
|
35036
35089
|
});
|
|
35037
35090
|
} else {
|
|
@@ -35583,11 +35636,11 @@ const ScruntinyDetails = ({
|
|
|
35583
35636
|
const getTextValues = data => {
|
|
35584
35637
|
if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return /*#__PURE__*/React.createElement("span", {
|
|
35585
35638
|
style: {
|
|
35586
|
-
color: "#
|
|
35639
|
+
color: "#2E9E8F"
|
|
35587
35640
|
}
|
|
35588
35641
|
}, t(data === null || data === void 0 ? void 0 : data.value));else if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return t(data === null || data === void 0 ? void 0 : data.value);else if (data !== null && data !== void 0 && data.value) return data === null || data === void 0 ? void 0 : data.value;else t("NA");
|
|
35589
35642
|
};
|
|
35590
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
35643
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, !(scrutinyDetails !== null && scrutinyDetails !== void 0 && scrutinyDetails.isChecklist) && /*#__PURE__*/React.createElement("div", {
|
|
35591
35644
|
style: {
|
|
35592
35645
|
background: "#FAFAFA",
|
|
35593
35646
|
border: "1px solid #D6D5D4",
|
|
@@ -35645,7 +35698,7 @@ const ScruntinyDetails = ({
|
|
|
35645
35698
|
}
|
|
35646
35699
|
}, value === null || value === void 0 ? void 0 : value.title);
|
|
35647
35700
|
})), /*#__PURE__*/React.createElement("div", null, scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$scru = scrutinyDetails.scruntinyDetails) === null || _scrutinyDetails$scru === void 0 ? void 0 : _scrutinyDetails$scru.map((report, index) => {
|
|
35648
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
35701
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Row, {
|
|
35649
35702
|
className: "border-none",
|
|
35650
35703
|
label: `${t(report === null || report === void 0 ? void 0 : report.title)}`,
|
|
35651
35704
|
labelStyle: {
|
|
@@ -35744,7 +35797,7 @@ const SubOccupancyTable = ({
|
|
|
35744
35797
|
}
|
|
35745
35798
|
return returnValue ? returnValue : "NA";
|
|
35746
35799
|
}
|
|
35747
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
35800
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
35748
35801
|
style: {
|
|
35749
35802
|
background: "#FAFAFA",
|
|
35750
35803
|
border: "1px solid #D6D5D4",
|
|
@@ -36255,7 +36308,7 @@ const WSFeeEstimation = ({
|
|
|
36255
36308
|
var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
|
|
36256
36309
|
result === null || result === void 0 ? void 0 : (_result$Calculation2 = result.Calculation) === null || _result$Calculation2 === void 0 ? void 0 : (_result$Calculation2$ = _result$Calculation2[0]) === null || _result$Calculation2$ === void 0 ? void 0 : (_result$Calculation2$2 = _result$Calculation2$.taxHeadEstimates) === null || _result$Calculation2$2 === void 0 ? void 0 : _result$Calculation2$2.forEach(data => data.amount = data.estimateAmount);
|
|
36257
36310
|
}
|
|
36258
|
-
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates,
|
|
36311
|
+
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
|
|
36259
36312
|
const values = [{
|
|
36260
36313
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
36261
36314
|
value: (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.fee
|
|
@@ -36301,7 +36354,7 @@ const WSFeeEstimation = ({
|
|
|
36301
36354
|
if (targetValueSign == 1) {
|
|
36302
36355
|
values[value] = e.target.value;
|
|
36303
36356
|
} else {
|
|
36304
|
-
values[value] =
|
|
36357
|
+
values[value] = "";
|
|
36305
36358
|
}
|
|
36306
36359
|
} else if (isDropDownValue) {
|
|
36307
36360
|
values[`${value}_data`] = e;
|
|
@@ -36313,10 +36366,10 @@ const WSFeeEstimation = ({
|
|
|
36313
36366
|
}
|
|
36314
36367
|
setFields(values);
|
|
36315
36368
|
};
|
|
36316
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
36369
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
36317
36370
|
style: {
|
|
36318
36371
|
lineHeight: "19px",
|
|
36319
|
-
maxWidth: "
|
|
36372
|
+
maxWidth: "100%",
|
|
36320
36373
|
minWidth: "280px"
|
|
36321
36374
|
}
|
|
36322
36375
|
}, values && /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", null, values === null || values === void 0 ? void 0 : values.map((value, index) => {
|
|
@@ -36347,15 +36400,16 @@ const WSFeeEstimation = ({
|
|
|
36347
36400
|
label: `${t(`CS_INBOX_STATUS_FILTER`)}`,
|
|
36348
36401
|
text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
36349
36402
|
textStyle: !isPaid ? {
|
|
36350
|
-
color: "#
|
|
36403
|
+
color: "#D83A2F"
|
|
36351
36404
|
} : {
|
|
36352
|
-
color: "#
|
|
36405
|
+
color: "#2E9E8F"
|
|
36353
36406
|
}
|
|
36354
36407
|
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
|
|
36355
36408
|
onClick: e => {
|
|
36356
36409
|
showPopUp(true);
|
|
36357
36410
|
}
|
|
36358
36411
|
}, /*#__PURE__*/React.createElement("span", {
|
|
36412
|
+
className: "add-details-link hover-button",
|
|
36359
36413
|
style: {
|
|
36360
36414
|
cursor: "pointer",
|
|
36361
36415
|
color: "#a82227"
|
|
@@ -36379,14 +36433,16 @@ const WSFeeEstimation = ({
|
|
|
36379
36433
|
actionSaveOnSubmit: e => addAdhocRebatePenality(),
|
|
36380
36434
|
hideSubmit: false,
|
|
36381
36435
|
popupStyles: {
|
|
36382
|
-
overflowY: "auto"
|
|
36436
|
+
overflowY: "auto",
|
|
36437
|
+
background: "#f0f3f7"
|
|
36383
36438
|
}
|
|
36384
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
36439
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
36385
36440
|
style: {
|
|
36386
|
-
|
|
36387
|
-
|
|
36441
|
+
display: "flex",
|
|
36442
|
+
flexDirection: "column",
|
|
36443
|
+
gap: "16px"
|
|
36388
36444
|
}
|
|
36389
|
-
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
36445
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
36390
36446
|
style: {
|
|
36391
36447
|
fontSize: "16px",
|
|
36392
36448
|
fontWeight: "700",
|
|
@@ -36394,7 +36450,7 @@ const WSFeeEstimation = ({
|
|
|
36394
36450
|
padding: "0px",
|
|
36395
36451
|
margin: "0px 0px 10px 0px"
|
|
36396
36452
|
}
|
|
36397
|
-
}, t("PT_AD_PENALTY")), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
|
|
36453
|
+
}, t("PT_AD_PENALTY")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
|
|
36398
36454
|
className: "field"
|
|
36399
36455
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
36400
36456
|
isMandatory: true,
|
|
@@ -36405,9 +36461,7 @@ const WSFeeEstimation = ({
|
|
|
36405
36461
|
isPropertyAssess: true,
|
|
36406
36462
|
name: "adhocPenaltyReason_data",
|
|
36407
36463
|
t: t
|
|
36408
|
-
})), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement("div", {
|
|
36409
|
-
className: "field"
|
|
36410
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement("div", {
|
|
36464
|
+
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement("div", {
|
|
36411
36465
|
className: "field"
|
|
36412
36466
|
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
36413
36467
|
style: {
|
|
@@ -36424,7 +36478,7 @@ const WSFeeEstimation = ({
|
|
|
36424
36478
|
pattern: "^[a-zA-Z ]*$",
|
|
36425
36479
|
type: "text",
|
|
36426
36480
|
title: t("TL_NAME_ERROR_MESSAGE")
|
|
36427
|
-
})))), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
|
|
36481
|
+
})))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
|
|
36428
36482
|
className: "field"
|
|
36429
36483
|
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
36430
36484
|
style: {
|
|
@@ -36440,12 +36494,7 @@ const WSFeeEstimation = ({
|
|
|
36440
36494
|
isRequired: true,
|
|
36441
36495
|
pattern: "^[1-9]+[0-9]*$",
|
|
36442
36496
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
36443
|
-
})))), /*#__PURE__*/React.createElement(Card, {
|
|
36444
|
-
style: {
|
|
36445
|
-
padding: "10px 10px 1px 10px",
|
|
36446
|
-
margin: "0px 0px 15px 0px"
|
|
36447
|
-
}
|
|
36448
|
-
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
36497
|
+
}))))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
36449
36498
|
style: {
|
|
36450
36499
|
fontSize: "16px",
|
|
36451
36500
|
fontWeight: "700",
|
|
@@ -36453,7 +36502,7 @@ const WSFeeEstimation = ({
|
|
|
36453
36502
|
padding: "0px",
|
|
36454
36503
|
margin: "0px 0px 10px 0px"
|
|
36455
36504
|
}
|
|
36456
|
-
}, t("PT_AD_REBATE")), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
|
|
36505
|
+
}, t("PT_AD_REBATE")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
|
|
36457
36506
|
className: "field"
|
|
36458
36507
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
36459
36508
|
isMandatory: true,
|
|
@@ -36464,9 +36513,7 @@ const WSFeeEstimation = ({
|
|
|
36464
36513
|
name: "adhocRebateReason_data",
|
|
36465
36514
|
isPropertyAssess: true,
|
|
36466
36515
|
t: t
|
|
36467
|
-
})), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement("
|
|
36468
|
-
className: "field"
|
|
36469
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
36516
|
+
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
36470
36517
|
style: {
|
|
36471
36518
|
background: "#FAFAFA"
|
|
36472
36519
|
},
|
|
@@ -36481,7 +36528,7 @@ const WSFeeEstimation = ({
|
|
|
36481
36528
|
pattern: "^[a-zA-Z ]*$",
|
|
36482
36529
|
type: "text",
|
|
36483
36530
|
title: t("TL_NAME_ERROR_MESSAGE")
|
|
36484
|
-
}))), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
|
|
36531
|
+
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
|
|
36485
36532
|
className: "field"
|
|
36486
36533
|
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
36487
36534
|
style: {
|
|
@@ -36497,7 +36544,7 @@ const WSFeeEstimation = ({
|
|
|
36497
36544
|
isRequired: true,
|
|
36498
36545
|
pattern: "^[1-9]+[0-9]*$",
|
|
36499
36546
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
36500
|
-
})))))
|
|
36547
|
+
}))))))), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
36501
36548
|
style: {
|
|
36502
36549
|
zIndex: "10000"
|
|
36503
36550
|
},
|
|
@@ -36599,7 +36646,7 @@ const ViewBreakup = ({
|
|
|
36599
36646
|
setBreakUpData(breakupData);
|
|
36600
36647
|
showPopUp(true);
|
|
36601
36648
|
};
|
|
36602
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
36649
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
36603
36650
|
style: {
|
|
36604
36651
|
lineHeight: "19px",
|
|
36605
36652
|
maxWidth: "950px",
|
|
@@ -36611,10 +36658,7 @@ const ViewBreakup = ({
|
|
|
36611
36658
|
marginTop: "12px"
|
|
36612
36659
|
}
|
|
36613
36660
|
}, /*#__PURE__*/React.createElement("span", {
|
|
36614
|
-
|
|
36615
|
-
cursor: "pointer",
|
|
36616
|
-
color: "#a82227"
|
|
36617
|
-
}
|
|
36661
|
+
className: "add-details-link hover-button"
|
|
36618
36662
|
}, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
|
|
36619
36663
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
36620
36664
|
label: t("WS_CALCULATION_BREAKUP")
|
|
@@ -37056,15 +37100,11 @@ function ApplicationDetailsContent({
|
|
|
37056
37100
|
oldValue,
|
|
37057
37101
|
isInfoLabel = false
|
|
37058
37102
|
}) {
|
|
37059
|
-
var _applicationDetails$
|
|
37103
|
+
var _applicationDetails$a, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
|
|
37060
37104
|
const {
|
|
37061
37105
|
t
|
|
37062
37106
|
} = useTranslation();
|
|
37063
|
-
const history = useHistory();
|
|
37064
|
-
const location = useLocation();
|
|
37065
37107
|
const [showPopup, setShowPopup] = useState(false);
|
|
37066
|
-
const [selectedData, setSelectedData] = useState(null);
|
|
37067
|
-
const searchParams = new URLSearchParams(location.search);
|
|
37068
37108
|
let {
|
|
37069
37109
|
id: applicationNo
|
|
37070
37110
|
} = useParams();
|
|
@@ -37100,7 +37140,7 @@ function ApplicationDetailsContent({
|
|
|
37100
37140
|
loaded: false,
|
|
37101
37141
|
canLoad: false
|
|
37102
37142
|
});
|
|
37103
|
-
if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status)
|
|
37143
|
+
if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) === "ACTIVE" && !billData.loading && !billData.loaded && !billData.canLoad) {
|
|
37104
37144
|
updateCanFetchBillData({
|
|
37105
37145
|
loading: false,
|
|
37106
37146
|
loaded: false,
|
|
@@ -37116,7 +37156,7 @@ function ApplicationDetailsContent({
|
|
|
37116
37156
|
setBillData((applicationData === null || applicationData === void 0 ? void 0 : applicationData.tenantId) || tenantId, applicationData === null || applicationData === void 0 ? void 0 : applicationData.propertyId, updatefetchBillData, updateCanFetchBillData);
|
|
37117
37157
|
}
|
|
37118
37158
|
const convertEpochToDateDMY = dateEpoch => {
|
|
37119
|
-
if (dateEpoch == null || dateEpoch
|
|
37159
|
+
if (dateEpoch == null || dateEpoch === undefined || dateEpoch === "") {
|
|
37120
37160
|
return "NA";
|
|
37121
37161
|
}
|
|
37122
37162
|
const dateFromApi = new Date(dateEpoch);
|
|
@@ -37200,7 +37240,6 @@ function ApplicationDetailsContent({
|
|
|
37200
37240
|
const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc");
|
|
37201
37241
|
const isNocLocation = window.location.href.includes("employee/noc");
|
|
37202
37242
|
const isBPALocation = window.location.href.includes("employee/obps");
|
|
37203
|
-
const isWS = window.location.href.includes("employee/ws");
|
|
37204
37243
|
const getRowStyles = () => {
|
|
37205
37244
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc")) {
|
|
37206
37245
|
return {
|
|
@@ -37239,13 +37278,13 @@ function ApplicationDetailsContent({
|
|
|
37239
37278
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc") || window.location.href.includes("employee/ws")) {
|
|
37240
37279
|
return {
|
|
37241
37280
|
lineHeight: "19px",
|
|
37242
|
-
maxWidth: "
|
|
37281
|
+
maxWidth: "100%",
|
|
37243
37282
|
minWidth: "280px"
|
|
37244
37283
|
};
|
|
37245
37284
|
} else if (checkLocation) {
|
|
37246
37285
|
return {
|
|
37247
37286
|
lineHeight: "19px",
|
|
37248
|
-
maxWidth: "
|
|
37287
|
+
maxWidth: "100%",
|
|
37249
37288
|
minWidth: "280px"
|
|
37250
37289
|
};
|
|
37251
37290
|
} else {
|
|
@@ -37293,7 +37332,6 @@ function ApplicationDetailsContent({
|
|
|
37293
37332
|
});
|
|
37294
37333
|
};
|
|
37295
37334
|
const handleViewClick = data => {
|
|
37296
|
-
setSelectedData(data);
|
|
37297
37335
|
setShowPopup(true);
|
|
37298
37336
|
};
|
|
37299
37337
|
return /*#__PURE__*/React.createElement(Card, {
|
|
@@ -37308,8 +37346,8 @@ function ApplicationDetailsContent({
|
|
|
37308
37346
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
37309
37347
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
37310
37348
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
37311
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
37312
|
-
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$
|
|
37349
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
|
|
37350
|
+
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
37313
37351
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
37314
37352
|
key: index
|
|
37315
37353
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -37402,7 +37440,7 @@ function ApplicationDetailsContent({
|
|
|
37402
37440
|
}
|
|
37403
37441
|
}, /*#__PURE__*/React.createElement("button", null, " ", /*#__PURE__*/React.createElement(EditIcon, null), " ")), /*#__PURE__*/React.createElement("div", {
|
|
37404
37442
|
key: index,
|
|
37405
|
-
onClick: () => handleViewClick(
|
|
37443
|
+
onClick: () => handleViewClick(),
|
|
37406
37444
|
style: {
|
|
37407
37445
|
cursor: "pointer"
|
|
37408
37446
|
}
|
|
@@ -37503,8 +37541,8 @@ function ApplicationDetailsContent({
|
|
|
37503
37541
|
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
37504
37542
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
37505
37543
|
paymentsList: paymentsList
|
|
37506
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
37507
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
37544
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : (_applicationDetails$a3 = _applicationDetails$a2.additionalDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.fieldinspection_pending) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React.createElement(InspectionReport, {
|
|
37545
|
+
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : (_applicationDetails$a6 = _applicationDetails$a5.additionalDetails) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.fieldinspection_pending
|
|
37508
37546
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React.createElement(PropertyFloors, {
|
|
37509
37547
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
37510
37548
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.owners) && /*#__PURE__*/React.createElement(PropertyOwners, {
|
|
@@ -37546,28 +37584,18 @@ function ApplicationDetailsContent({
|
|
|
37546
37584
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
37547
37585
|
wsAdditionalDetails: detail,
|
|
37548
37586
|
oldValue: oldValue
|
|
37549
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(
|
|
37550
|
-
style: {
|
|
37551
|
-
fontSize: "16px",
|
|
37552
|
-
lineHeight: "24px",
|
|
37553
|
-
fontWeight: "400",
|
|
37554
|
-
padding: "10px 0px"
|
|
37555
|
-
}
|
|
37556
|
-
}, /*#__PURE__*/React.createElement(Link, {
|
|
37587
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
37557
37588
|
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.url
|
|
37558
37589
|
}, /*#__PURE__*/React.createElement("span", {
|
|
37559
|
-
className: "link"
|
|
37560
|
-
|
|
37561
|
-
color: "#a82227"
|
|
37562
|
-
}
|
|
37563
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
37590
|
+
className: "add-details-link hover-button"
|
|
37591
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title)), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
37564
37592
|
wsAdditionalDetails: detail,
|
|
37565
37593
|
workflowDetails: workflowDetails
|
|
37566
37594
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
|
|
37567
37595
|
wsAdditionalDetails: detail,
|
|
37568
37596
|
workflowDetails: workflowDetails
|
|
37569
37597
|
}));
|
|
37570
|
-
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader
|
|
37598
|
+
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
37571
37599
|
id: "timeline"
|
|
37572
37600
|
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
37573
37601
|
style: {
|
|
@@ -38085,7 +38113,7 @@ const ApplicationDetails = props => {
|
|
|
38085
38113
|
}
|
|
38086
38114
|
};
|
|
38087
38115
|
if (isLoading || isEnableLoader) {
|
|
38088
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
38116
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
38089
38117
|
}
|
|
38090
38118
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !isLoading ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ApplicationDetailsContent, {
|
|
38091
38119
|
applicationDetails: applicationDetails,
|
|
@@ -38137,7 +38165,7 @@ const ApplicationDetails = props => {
|
|
|
38137
38165
|
ActionBarStyle: ActionBarStyle,
|
|
38138
38166
|
MenuStyle: MenuStyle,
|
|
38139
38167
|
applicationDetails: applicationDetails
|
|
38140
|
-
})) : /*#__PURE__*/React.createElement(Loader
|
|
38168
|
+
})) : /*#__PURE__*/React.createElement(Loader, null));
|
|
38141
38169
|
};
|
|
38142
38170
|
|
|
38143
38171
|
const ApplicationDetails$1 = () => {
|
|
@@ -38172,7 +38200,7 @@ const ApplicationDetails$1 = () => {
|
|
|
38172
38200
|
} = Digit.Hooks.ws.useMDMS(stateCode, "ws-services-masters", ["WSEditApplicationByConfigUser"]);
|
|
38173
38201
|
const commonPayDetails = (mdmsCommonmastersData === null || mdmsCommonmastersData === void 0 ? void 0 : (_mdmsCommonmastersDat = mdmsCommonmastersData["common-masters"]) === null || _mdmsCommonmastersDat === void 0 ? void 0 : _mdmsCommonmastersDat.uiCommonPay) || [];
|
|
38174
38202
|
const index = commonPayDetails && commonPayDetails.findIndex(item => {
|
|
38175
|
-
return item.code
|
|
38203
|
+
return item.code === "WS.ONE_TIME_FEE";
|
|
38176
38204
|
});
|
|
38177
38205
|
let commonPayInfo = "";
|
|
38178
38206
|
if (index > -1) commonPayInfo = commonPayDetails[index];else commonPayInfo = commonPayDetails && commonPayDetails.filter(item => item.code === "DEFAULT");
|
|
@@ -38185,7 +38213,7 @@ const ApplicationDetails$1 = () => {
|
|
|
38185
38213
|
}], {
|
|
38186
38214
|
select: data => {
|
|
38187
38215
|
var _data$DataSecurity, _data$DataSecurity$Se;
|
|
38188
|
-
return (data === null || data === void 0 ? void 0 : (_data$DataSecurity = data.DataSecurity) === null || _data$DataSecurity === void 0 ? void 0 : (_data$DataSecurity$Se = _data$DataSecurity.SecurityPolicy) === null || _data$DataSecurity$Se === void 0 ? void 0 : _data$DataSecurity$Se.find(elem => (elem === null || elem === void 0 ? void 0 : elem.model)
|
|
38216
|
+
return (data === null || data === void 0 ? void 0 : (_data$DataSecurity = data.DataSecurity) === null || _data$DataSecurity === void 0 ? void 0 : (_data$DataSecurity$Se = _data$DataSecurity.SecurityPolicy) === null || _data$DataSecurity$Se === void 0 ? void 0 : _data$DataSecurity$Se.find(elem => (elem === null || elem === void 0 ? void 0 : elem.model) === "User")) || {};
|
|
38189
38217
|
}
|
|
38190
38218
|
});
|
|
38191
38219
|
let {
|
|
@@ -38250,7 +38278,7 @@ const ApplicationDetails$1 = () => {
|
|
|
38250
38278
|
};
|
|
38251
38279
|
const checkWSAdditionalDetails = () => {
|
|
38252
38280
|
var _applicationDetails$p8, _applicationDetails$p9, _applicationDetails$p0, _applicationDetails$p1;
|
|
38253
|
-
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p8 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p8 === void 0 ? void 0 : (_applicationDetails$p9 = _applicationDetails$p8[0]) === null || _applicationDetails$p9 === void 0 ? void 0 : _applicationDetails$p9.businessService)
|
|
38281
|
+
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p8 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p8 === void 0 ? void 0 : (_applicationDetails$p9 = _applicationDetails$p8[0]) === null || _applicationDetails$p9 === void 0 ? void 0 : _applicationDetails$p9.businessService) === "WSReconnection" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p0 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p0 === void 0 ? void 0 : (_applicationDetails$p1 = _applicationDetails$p0[0]) === null || _applicationDetails$p1 === void 0 ? void 0 : _applicationDetails$p1.businessService) === "SWReconnection") {
|
|
38254
38282
|
return true;
|
|
38255
38283
|
} else {
|
|
38256
38284
|
var _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _applicationDetails$a13, _applicationDetails$a14, _applicationDetails$a15, _applicationDetails$a16;
|
|
@@ -38314,7 +38342,7 @@ const ApplicationDetails$1 = () => {
|
|
|
38314
38342
|
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : (_workflowDetails$data5 = _workflowDetails$data4.nextActions) === null || _workflowDetails$data5 === void 0 ? void 0 : _workflowDetails$data5.length) > 0 && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.actionState) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.nextActions) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.length) > 0 && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data9 = workflowDetails.data) !== null && _workflowDetails$data9 !== void 0 && (_workflowDetails$data0 = _workflowDetails$data9.actionState) !== null && _workflowDetails$data0 !== void 0 && (_workflowDetails$data1 = _workflowDetails$data0.nextActions) !== null && _workflowDetails$data1 !== void 0 && _workflowDetails$data1.find(e => e.action === "EDIT")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data10 = workflowDetails.data) !== null && _workflowDetails$data10 !== void 0 && (_workflowDetails$data11 = _workflowDetails$data10.actionState) !== null && _workflowDetails$data11 !== void 0 && (_workflowDetails$data12 = _workflowDetails$data11.nextActions) !== null && _workflowDetails$data12 !== void 0 && _workflowDetails$data12.find(e => e.action === "RESUBMIT_APPLICATION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data13 = workflowDetails.data) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.actionState) !== null && _workflowDetails$data14 !== void 0 && (_workflowDetails$data15 = _workflowDetails$data14.nextActions) !== null && _workflowDetails$data15 !== void 0 && _workflowDetails$data15.find(e => e.action === "ACTIVATE_CONNECTION")) && !(workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data16 = workflowDetails.data) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.actionState) !== null && _workflowDetails$data17 !== void 0 && (_workflowDetails$data18 = _workflowDetails$data17.nextActions) !== null && _workflowDetails$data18 !== void 0 && _workflowDetails$data18.find(e => e.action === "SUBMIT_APPLICATION"))) {
|
|
38315
38343
|
var _workflowDetails$data19, _workflowDetails$data20;
|
|
38316
38344
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19.nextActions) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.forEach(data => {
|
|
38317
|
-
if (data.action
|
|
38345
|
+
if (data.action === "EDIT") workflowDetails.data.actionState.nextActions.push(data);
|
|
38318
38346
|
});
|
|
38319
38347
|
}
|
|
38320
38348
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.actionState) === null || _workflowDetails$data22 === void 0 ? void 0 : (_workflowDetails$data23 = _workflowDetails$data22.nextActions) === null || _workflowDetails$data23 === void 0 ? void 0 : _workflowDetails$data23.forEach(action => {
|
|
@@ -38358,12 +38386,12 @@ const ApplicationDetails$1 = () => {
|
|
|
38358
38386
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data29 = workflowDetails.data) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.nextActions) === null || _workflowDetails$data30 === void 0 ? void 0 : _workflowDetails$data30.forEach(action => {
|
|
38359
38387
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
38360
38388
|
var _workflowDetails$data31, _workflowDetails$data32, _workflowDetails$data33, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36;
|
|
38361
|
-
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data31 = workflowDetails.data) === null || _workflowDetails$data31 === void 0 ? void 0 : (_workflowDetails$data32 = _workflowDetails$data31.processInstances) === null || _workflowDetails$data32 === void 0 ? void 0 : (_workflowDetails$data33 = _workflowDetails$data32[0]) === null || _workflowDetails$data33 === void 0 ? void 0 : _workflowDetails$data33.businessService)
|
|
38389
|
+
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data31 = workflowDetails.data) === null || _workflowDetails$data31 === void 0 ? void 0 : (_workflowDetails$data32 = _workflowDetails$data31.processInstances) === null || _workflowDetails$data32 === void 0 ? void 0 : (_workflowDetails$data33 = _workflowDetails$data32[0]) === null || _workflowDetails$data33 === void 0 ? void 0 : _workflowDetails$data33.businessService) === "WSReconnection") {
|
|
38362
38390
|
action.redirectionUrll = {
|
|
38363
38391
|
pathname: `WSReconnection/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}?tenantId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}&ISWSAPP&applicationNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}`,
|
|
38364
38392
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
38365
38393
|
};
|
|
38366
|
-
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data34 = workflowDetails.data) === null || _workflowDetails$data34 === void 0 ? void 0 : (_workflowDetails$data35 = _workflowDetails$data34.processInstances) === null || _workflowDetails$data35 === void 0 ? void 0 : (_workflowDetails$data36 = _workflowDetails$data35[0]) === null || _workflowDetails$data36 === void 0 ? void 0 : _workflowDetails$data36.businessService)
|
|
38394
|
+
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data34 = workflowDetails.data) === null || _workflowDetails$data34 === void 0 ? void 0 : (_workflowDetails$data35 = _workflowDetails$data34.processInstances) === null || _workflowDetails$data35 === void 0 ? void 0 : (_workflowDetails$data36 = _workflowDetails$data35[0]) === null || _workflowDetails$data36 === void 0 ? void 0 : _workflowDetails$data36.businessService) === "SWReconnection") {
|
|
38367
38395
|
action.redirectionUrll = {
|
|
38368
38396
|
pathname: `SWReconnection/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}?tenantId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}&ISWSAPP&applicationNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}`,
|
|
38369
38397
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
@@ -38379,12 +38407,12 @@ const ApplicationDetails$1 = () => {
|
|
|
38379
38407
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data37 = workflowDetails.data) === null || _workflowDetails$data37 === void 0 ? void 0 : (_workflowDetails$data38 = _workflowDetails$data37.actionState) === null || _workflowDetails$data38 === void 0 ? void 0 : (_workflowDetails$data39 = _workflowDetails$data38.nextActions) === null || _workflowDetails$data39 === void 0 ? void 0 : _workflowDetails$data39.forEach(action => {
|
|
38380
38408
|
if ((action === null || action === void 0 ? void 0 : action.action) === "PAY") {
|
|
38381
38409
|
var _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45;
|
|
38382
|
-
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data40 = workflowDetails.data) === null || _workflowDetails$data40 === void 0 ? void 0 : (_workflowDetails$data41 = _workflowDetails$data40.processInstances) === null || _workflowDetails$data41 === void 0 ? void 0 : (_workflowDetails$data42 = _workflowDetails$data41[0]) === null || _workflowDetails$data42 === void 0 ? void 0 : _workflowDetails$data42.businessService)
|
|
38410
|
+
if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data40 = workflowDetails.data) === null || _workflowDetails$data40 === void 0 ? void 0 : (_workflowDetails$data41 = _workflowDetails$data40.processInstances) === null || _workflowDetails$data41 === void 0 ? void 0 : (_workflowDetails$data42 = _workflowDetails$data41[0]) === null || _workflowDetails$data42 === void 0 ? void 0 : _workflowDetails$data42.businessService) === "WSReconnection") {
|
|
38383
38411
|
action.redirectionUrll = {
|
|
38384
38412
|
pathname: `WSReconnection/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}?tenantId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}&ISWSAPP&applicationNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}`,
|
|
38385
38413
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
38386
38414
|
};
|
|
38387
|
-
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data43 = workflowDetails.data) === null || _workflowDetails$data43 === void 0 ? void 0 : (_workflowDetails$data44 = _workflowDetails$data43.processInstances) === null || _workflowDetails$data44 === void 0 ? void 0 : (_workflowDetails$data45 = _workflowDetails$data44[0]) === null || _workflowDetails$data45 === void 0 ? void 0 : _workflowDetails$data45.businessService)
|
|
38415
|
+
} else if ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data43 = workflowDetails.data) === null || _workflowDetails$data43 === void 0 ? void 0 : (_workflowDetails$data44 = _workflowDetails$data43.processInstances) === null || _workflowDetails$data44 === void 0 ? void 0 : (_workflowDetails$data45 = _workflowDetails$data44[0]) === null || _workflowDetails$data45 === void 0 ? void 0 : _workflowDetails$data45.businessService) === "SWReconnection") {
|
|
38388
38416
|
action.redirectionUrll = {
|
|
38389
38417
|
pathname: `SWReconnection/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}/${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}?tenantId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId}&ISWSAPP&applicationNumber=${applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationNo}`,
|
|
38390
38418
|
state: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId
|
|
@@ -38449,7 +38477,7 @@ const ApplicationDetails$1 = () => {
|
|
|
38449
38477
|
} else {
|
|
38450
38478
|
const warningCount = sessionStorage.getItem("WARINIG_COUNT") || "0";
|
|
38451
38479
|
const warningCountDetails = JSON.parse(warningCount);
|
|
38452
|
-
if (warningCountDetails
|
|
38480
|
+
if (warningCountDetails === 0) {
|
|
38453
38481
|
var _response$WaterConnec, _response$SewerageCon, _details$additionalDe;
|
|
38454
38482
|
const filters = {
|
|
38455
38483
|
applicationNumber
|
|
@@ -38459,9 +38487,9 @@ const ApplicationDetails$1 = () => {
|
|
|
38459
38487
|
filters: {
|
|
38460
38488
|
...filters
|
|
38461
38489
|
},
|
|
38462
|
-
businessService: serviceType
|
|
38490
|
+
businessService: serviceType === "WATER" ? "WS" : "SW"
|
|
38463
38491
|
});
|
|
38464
|
-
let details = serviceType
|
|
38492
|
+
let details = serviceType === "WATER" ? response === null || response === void 0 ? void 0 : (_response$WaterConnec = response.WaterConnection) === null || _response$WaterConnec === void 0 ? void 0 : _response$WaterConnec[0] : response === null || response === void 0 ? void 0 : (_response$SewerageCon = response.SewerageConnections) === null || _response$SewerageCon === void 0 ? void 0 : _response$SewerageCon[0];
|
|
38465
38493
|
if (details !== null && details !== void 0 && (_details$additionalDe = details.additionalDetails) !== null && _details$additionalDe !== void 0 && _details$additionalDe.estimationFileStoreId) {
|
|
38466
38494
|
var _details$additionalDe2;
|
|
38467
38495
|
getFiles([details === null || details === void 0 ? void 0 : (_details$additionalDe2 = details.additionalDetails) === null || _details$additionalDe2 === void 0 ? void 0 : _details$additionalDe2.estimationFileStoreId], tenantId);
|
|
@@ -38513,20 +38541,6 @@ const ApplicationDetails$1 = () => {
|
|
|
38513
38541
|
return getRecieptSearch(Digit.ULBService.getStateId(), (_reciept_data = 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$a27 = applicationDetails.applicationData) === null || _applicationDetails$a27 === void 0 ? void 0 : _applicationDetails$a27.applicationNo, receiptKey);
|
|
38514
38542
|
}
|
|
38515
38543
|
};
|
|
38516
|
-
const applicationFeeReceipt = {
|
|
38517
|
-
order: 4,
|
|
38518
|
-
label: t("WS_APLICATION_RECEIPT"),
|
|
38519
|
-
onClick: async () => {
|
|
38520
|
-
const tenant = Digit.ULBService.getStateId();
|
|
38521
|
-
const ConnectionDetailsfile = await Digit.PaymentService.generatePdf(tenantId, {
|
|
38522
|
-
WaterConnection: [applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData]
|
|
38523
|
-
}, "ws-consolidatedacknowlegment");
|
|
38524
|
-
const file = await Digit.PaymentService.printReciept(tenant, {
|
|
38525
|
-
fileStoreIds: ConnectionDetailsfile.filestoreIds[0]
|
|
38526
|
-
});
|
|
38527
|
-
window.open(file[ConnectionDetailsfile.filestoreIds[0]], "_blank");
|
|
38528
|
-
}
|
|
38529
|
-
};
|
|
38530
38544
|
switch (appStatus) {
|
|
38531
38545
|
case "PENDING_FOR_DOCUMENT_VERIFICATION":
|
|
38532
38546
|
case "PENDING_FOR_CITIZEN_ACTION":
|
|
@@ -38843,7 +38857,7 @@ const GetConnectionDetails = () => {
|
|
|
38843
38857
|
onClick: props.onClick
|
|
38844
38858
|
}, /*#__PURE__*/React.createElement(Close, null));
|
|
38845
38859
|
};
|
|
38846
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
38860
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
38847
38861
|
className: "employee-application-details",
|
|
38848
38862
|
style: {
|
|
38849
38863
|
marginBottom: "15px"
|
|
@@ -39182,7 +39196,7 @@ const ActivateConnection = () => {
|
|
|
39182
39196
|
}
|
|
39183
39197
|
};
|
|
39184
39198
|
if (isEnableLoader || isLoading || isappdetailsLoading) {
|
|
39185
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
39199
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
39186
39200
|
}
|
|
39187
39201
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
39188
39202
|
style: {
|
|
@@ -39270,7 +39284,7 @@ const ApplicationDetailsBillAmendment = () => {
|
|
|
39270
39284
|
label: t("WS_ACK_PDF"),
|
|
39271
39285
|
onClick: () => getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails)
|
|
39272
39286
|
}];
|
|
39273
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
39287
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
39274
39288
|
className: "employee-main-application-details"
|
|
39275
39289
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39276
39290
|
className: "employee-application-details",
|
|
@@ -39366,7 +39380,7 @@ const Search = ({
|
|
|
39366
39380
|
});
|
|
39367
39381
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
39368
39382
|
if (result !== null && result !== void 0 && result.isLoading && isMobile) {
|
|
39369
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
39383
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
39370
39384
|
}
|
|
39371
39385
|
const getData = () => {
|
|
39372
39386
|
var _result$data, _result$data2;
|
|
@@ -39384,7 +39398,7 @@ const Search = ({
|
|
|
39384
39398
|
var _result$data3;
|
|
39385
39399
|
return (result === null || result === void 0 ? void 0 : (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : _result$data3.length) > 0 ? true : false;
|
|
39386
39400
|
};
|
|
39387
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
39401
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Search, {
|
|
39388
39402
|
t: t,
|
|
39389
39403
|
tenantId: tenantId,
|
|
39390
39404
|
onSubmit: onSubmit,
|
|
@@ -39458,7 +39472,7 @@ const SearchWater = ({
|
|
|
39458
39472
|
});
|
|
39459
39473
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
39460
39474
|
if (result !== null && result !== void 0 && result.isLoading && isMobile) {
|
|
39461
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
39475
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
39462
39476
|
}
|
|
39463
39477
|
const getData = () => {
|
|
39464
39478
|
var _result$data, _result$data2;
|
|
@@ -39485,7 +39499,7 @@ const SearchWater = ({
|
|
|
39485
39499
|
}
|
|
39486
39500
|
return item;
|
|
39487
39501
|
});
|
|
39488
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
39502
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
|
|
39489
39503
|
t: t,
|
|
39490
39504
|
tenantId: tenantId,
|
|
39491
39505
|
onSubmit: onSubmit,
|
|
@@ -39683,7 +39697,7 @@ const EditApplication$1 = () => {
|
|
|
39683
39697
|
setShowToast(null);
|
|
39684
39698
|
};
|
|
39685
39699
|
if (enabledLoader || isConfigLoading) {
|
|
39686
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
39700
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
39687
39701
|
}
|
|
39688
39702
|
console.log(config.body);
|
|
39689
39703
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -40041,7 +40055,7 @@ const ConsumptionDetails = ({
|
|
|
40041
40055
|
} else return t("NA");
|
|
40042
40056
|
};
|
|
40043
40057
|
if (isLoading || isConnectionDetailsLoading) {
|
|
40044
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
40058
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
40045
40059
|
}
|
|
40046
40060
|
let {
|
|
40047
40061
|
meterReadings
|
|
@@ -40118,7 +40132,7 @@ const ConsumptionDetails = ({
|
|
|
40118
40132
|
popupModuleMianStyles: mobileView ? {
|
|
40119
40133
|
paddingLeft: "5px"
|
|
40120
40134
|
} : {}
|
|
40121
|
-
}, isEnableLoader ? /*#__PURE__*/React.createElement(Loader
|
|
40135
|
+
}, isEnableLoader ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(FormComposer, {
|
|
40122
40136
|
config: config.form,
|
|
40123
40137
|
onFormValueChange: onFormValueChange,
|
|
40124
40138
|
cardStyle: {
|
|
@@ -40427,7 +40441,7 @@ const ModifyApplication = () => {
|
|
|
40427
40441
|
setShowToast(null);
|
|
40428
40442
|
};
|
|
40429
40443
|
if (enabledLoader || isEnableLoader || isConfigLoading) {
|
|
40430
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
40444
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
40431
40445
|
}
|
|
40432
40446
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
40433
40447
|
style: {
|
|
@@ -40609,7 +40623,7 @@ const EditModifyApplication = () => {
|
|
|
40609
40623
|
setShowToast(null);
|
|
40610
40624
|
};
|
|
40611
40625
|
if (enabledLoader || isConfigLoading) {
|
|
40612
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
40626
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
40613
40627
|
}
|
|
40614
40628
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
40615
40629
|
style: {
|
|
@@ -40653,7 +40667,7 @@ const DisconnectionApplication = () => {
|
|
|
40653
40667
|
});
|
|
40654
40668
|
config.indexRoute = "docsrequired";
|
|
40655
40669
|
} else {
|
|
40656
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
40670
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
40657
40671
|
}
|
|
40658
40672
|
return /*#__PURE__*/React.createElement(Switch, null, config.map((routeObj, index) => {
|
|
40659
40673
|
const {
|
|
@@ -40705,7 +40719,7 @@ const DisconnectionApplication$1 = () => {
|
|
|
40705
40719
|
});
|
|
40706
40720
|
config.indexRoute = "new-restoration";
|
|
40707
40721
|
} else {
|
|
40708
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
40722
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
40709
40723
|
}
|
|
40710
40724
|
console.log("configconfig", config);
|
|
40711
40725
|
return /*#__PURE__*/React.createElement(Switch, null, config.map((routeObj, index) => {
|
|
@@ -40975,7 +40989,7 @@ const WSEditApplicationByConfig = () => {
|
|
|
40975
40989
|
}
|
|
40976
40990
|
};
|
|
40977
40991
|
if (enabledLoader || isConfigLoading) {
|
|
40978
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
40992
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
40979
40993
|
}
|
|
40980
40994
|
return /*#__PURE__*/React.createElement("div", {
|
|
40981
40995
|
className: "employee-form-content-with-action-bar "
|
|
@@ -41173,7 +41187,7 @@ const GetDisconnectionDetails = () => {
|
|
|
41173
41187
|
dowloadOptions.sort(function (a, b) {
|
|
41174
41188
|
return a.order - b.order;
|
|
41175
41189
|
});
|
|
41176
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
41190
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
41177
41191
|
className: "employee-application-details",
|
|
41178
41192
|
style: {
|
|
41179
41193
|
marginBottom: "15px"
|
|
@@ -41411,7 +41425,7 @@ const ModifyApplicationDetails = () => {
|
|
|
41411
41425
|
dowloadOptions.sort(function (a, b) {
|
|
41412
41426
|
return a.order - b.order;
|
|
41413
41427
|
});
|
|
41414
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
41428
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
41415
41429
|
className: "employee-main-application-details"
|
|
41416
41430
|
}, /*#__PURE__*/React.createElement("div", {
|
|
41417
41431
|
className: "employee-application-details",
|
|
@@ -41549,7 +41563,7 @@ const EditDisconnectionByConfig = () => {
|
|
|
41549
41563
|
};
|
|
41550
41564
|
const IsDetailsExists = sessionStorage.getItem("IsDetailsExists") ? JSON.parse(sessionStorage.getItem("IsDetailsExists")) : false;
|
|
41551
41565
|
if (isLoading || !IsDetailsExists || isConfigLoading) {
|
|
41552
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
41566
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
41553
41567
|
}
|
|
41554
41568
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
41555
41569
|
style: {
|
|
@@ -41672,7 +41686,7 @@ const EditDisconnectionByConfig$1 = () => {
|
|
|
41672
41686
|
};
|
|
41673
41687
|
const IsDetailsExists = sessionStorage.getItem("IsDetailsExists") ? JSON.parse(sessionStorage.getItem("IsDetailsExists")) : false;
|
|
41674
41688
|
if (isLoading || !IsDetailsExists || isConfigLoading) {
|
|
41675
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
41689
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
41676
41690
|
}
|
|
41677
41691
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
41678
41692
|
style: {
|
|
@@ -41834,7 +41848,7 @@ const ResubmitDisconnection = () => {
|
|
|
41834
41848
|
};
|
|
41835
41849
|
const IsDetailsExists = sessionStorage.getItem("IsDetailsExists") ? JSON.parse(sessionStorage.getItem("IsDetailsExists")) : false;
|
|
41836
41850
|
if (isLoading || !IsDetailsExists || isConfigLoading) {
|
|
41837
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
41851
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
41838
41852
|
}
|
|
41839
41853
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
41840
41854
|
style: {
|
|
@@ -41876,7 +41890,7 @@ const SearchFields$2 = ({
|
|
|
41876
41890
|
},
|
|
41877
41891
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
41878
41892
|
};
|
|
41879
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
41893
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
|
|
41880
41894
|
style: {
|
|
41881
41895
|
width: "100%"
|
|
41882
41896
|
}
|
|
@@ -42082,7 +42096,7 @@ const SearchWaterConnectionIntegrated = ({
|
|
|
42082
42096
|
return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
|
|
42083
42097
|
}
|
|
42084
42098
|
}], []);
|
|
42085
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
42099
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
|
|
42086
42100
|
styles: {
|
|
42087
42101
|
fontSize: "32px"
|
|
42088
42102
|
}
|
|
@@ -42096,7 +42110,7 @@ const SearchWaterConnectionIntegrated = ({
|
|
|
42096
42110
|
reset,
|
|
42097
42111
|
tenantId,
|
|
42098
42112
|
t
|
|
42099
|
-
})), isLoading ? /*#__PURE__*/React.createElement(Loader
|
|
42113
|
+
})), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, data !== null && data !== void 0 && data.display && !resultOk ? /*#__PURE__*/React.createElement(Card, {
|
|
42100
42114
|
style: {
|
|
42101
42115
|
marginTop: 20
|
|
42102
42116
|
}
|
|
@@ -42221,7 +42235,7 @@ const SearchIntegrated = ({
|
|
|
42221
42235
|
var _result12$data5, _result$data5;
|
|
42222
42236
|
return (result12 === null || result12 === void 0 ? void 0 : (_result12$data5 = result12.data) === null || _result12$data5 === void 0 ? void 0 : _result12$data5.length) > 0 || (result === null || result === void 0 ? void 0 : (_result$data5 = result.data) === null || _result$data5 === void 0 ? void 0 : _result$data5.length) > 0 ? true : false;
|
|
42223
42237
|
};
|
|
42224
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
42238
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
|
|
42225
42239
|
t: t,
|
|
42226
42240
|
tenantId: tenantId,
|
|
42227
42241
|
onSubmit: onSubmit,
|
|
@@ -42245,7 +42259,7 @@ const SearchWaterConnectionViewIntegrated = ({
|
|
|
42245
42259
|
count,
|
|
42246
42260
|
resultOk
|
|
42247
42261
|
}) => {
|
|
42248
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
42262
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchWaterConnectionIntegrated, {
|
|
42249
42263
|
onSubmit: onSubmit,
|
|
42250
42264
|
data: data,
|
|
42251
42265
|
count: count,
|
|
@@ -42284,7 +42298,7 @@ const BulkBillGeneration = ({
|
|
|
42284
42298
|
});
|
|
42285
42299
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
42286
42300
|
if (result !== null && result !== void 0 && result.isLoading && isMobile) {
|
|
42287
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
42301
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
42288
42302
|
}
|
|
42289
42303
|
const getData = () => {
|
|
42290
42304
|
console.log("result", result);
|
|
@@ -42313,7 +42327,7 @@ const BulkBillGeneration = ({
|
|
|
42313
42327
|
var _result$meterReadings;
|
|
42314
42328
|
return (result === null || result === void 0 ? void 0 : (_result$meterReadings = result.meterReadings) === null || _result$meterReadings === void 0 ? void 0 : _result$meterReadings.length) > 0 ? true : false;
|
|
42315
42329
|
};
|
|
42316
|
-
return /*#__PURE__*/React.createElement(Fragment$
|
|
42330
|
+
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(WSBulkBillSearch, {
|
|
42317
42331
|
t: t,
|
|
42318
42332
|
tenantId: tenantId,
|
|
42319
42333
|
onSubmit: onSubmit,
|
|
@@ -42356,7 +42370,7 @@ const WSModule = ({
|
|
|
42356
42370
|
Digit.SessionStorage.set("WS_TENANTS", tenants);
|
|
42357
42371
|
Digit.SessionStorage.set("PT_TENANTS", tenants);
|
|
42358
42372
|
if (isLoading) {
|
|
42359
|
-
return /*#__PURE__*/React.createElement(Loader
|
|
42373
|
+
return /*#__PURE__*/React.createElement(Loader, null);
|
|
42360
42374
|
}
|
|
42361
42375
|
if (userType === "citizen") {
|
|
42362
42376
|
return /*#__PURE__*/React.createElement(App, {
|