@djb25/digit-ui-module-ws 1.0.101 → 1.0.102
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 +427 -415
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +427 -415
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -504,35 +504,31 @@ const getPattern = type => {
|
|
|
504
504
|
};
|
|
505
505
|
const getFiles = function (filesArray, tenant) {
|
|
506
506
|
try {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
fileURL = link;
|
|
523
|
-
}
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
if (fileURL) {
|
|
527
|
-
window.open(fileURL);
|
|
528
|
-
}
|
|
507
|
+
const _temp3 = _catch(function () {
|
|
508
|
+
return Promise.resolve(Digit.UploadServices.Filefetch(filesArray, tenant)).then(function (response) {
|
|
509
|
+
var _response$data, _response$data$fileSt, _response$data$fileSt2, _response$data2;
|
|
510
|
+
if (response !== null && response !== void 0 && (_response$data = response.data) !== null && _response$data !== void 0 && (_response$data$fileSt = _response$data.fileStoreIds) !== null && _response$data$fileSt !== void 0 && (_response$data$fileSt2 = _response$data$fileSt[0]) !== null && _response$data$fileSt2 !== void 0 && _response$data$fileSt2.url) {
|
|
511
|
+
window.open(response.data.fileStoreIds[0].url);
|
|
512
|
+
} else if (response !== null && response !== void 0 && (_response$data2 = response.data) !== null && _response$data2 !== void 0 && _response$data2[filesArray === null || filesArray === void 0 ? void 0 : filesArray[0]]) {
|
|
513
|
+
let linkText = response.data[filesArray[0]];
|
|
514
|
+
let fileURL = "";
|
|
515
|
+
if (linkText && typeof linkText == "string") {
|
|
516
|
+
const linkList = linkText.split(",");
|
|
517
|
+
linkList.forEach(link => {
|
|
518
|
+
if (!link.includes("large") && !link.includes("medium") && !link.includes("small")) {
|
|
519
|
+
fileURL = link;
|
|
520
|
+
}
|
|
521
|
+
});
|
|
529
522
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
523
|
+
if (fileURL) {
|
|
524
|
+
window.open(fileURL);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
533
527
|
});
|
|
534
|
-
|
|
528
|
+
}, function (error) {
|
|
529
|
+
console.error("Error fetching file URL", error);
|
|
535
530
|
});
|
|
531
|
+
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
536
532
|
} catch (e) {
|
|
537
533
|
return Promise.reject(e);
|
|
538
534
|
}
|
|
@@ -732,7 +728,7 @@ const updatePayloadOfWS = function (data, type) {
|
|
|
732
728
|
},
|
|
733
729
|
documents: JSON.parse(sessionStorage.getItem("WS_DOCUMENTS_INOF") && sessionStorage.getItem("WS_DOCUMENTS_INOF") !== "undefined" ? sessionStorage.getItem("WS_DOCUMENTS_INOF") : "null"),
|
|
734
730
|
property: JSON.parse(sessionStorage.getItem("WS_PROPERTY_INOF") && sessionStorage.getItem("WS_PROPERTY_INOF") !== "undefined" ? sessionStorage.getItem("WS_PROPERTY_INOF") : "null"),
|
|
735
|
-
connectionType: type === "WATER" ? (data === null || data === void 0 ? void 0 : data.connectionType)
|
|
731
|
+
connectionType: type === "WATER" ? (data === null || data === void 0 ? void 0 : data.connectionType) === "Permanent" ? "Metered" : (data === null || data === void 0 ? void 0 : data.connectionType) || "Metered" : "Non Metered",
|
|
736
732
|
additionalDetails: {
|
|
737
733
|
...(data === null || data === void 0 ? void 0 : data.additionalDetails),
|
|
738
734
|
connectionType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai = data.additionalDetails) === null || _data$additionalDetai === void 0 ? void 0 : _data$additionalDetai.connectionType) || "Permanent",
|
|
@@ -12907,6 +12903,7 @@ const WSPlumberPreference = _ref => {
|
|
|
12907
12903
|
};
|
|
12908
12904
|
|
|
12909
12905
|
const WSActivationDetails = _ref => {
|
|
12906
|
+
var _formData$activationD;
|
|
12910
12907
|
let {
|
|
12911
12908
|
t,
|
|
12912
12909
|
config,
|
|
@@ -12914,20 +12911,39 @@ const WSActivationDetails = _ref => {
|
|
|
12914
12911
|
formData,
|
|
12915
12912
|
onSelect
|
|
12916
12913
|
} = _ref;
|
|
12914
|
+
const initialData = Array.isArray(formData === null || formData === void 0 ? void 0 : formData.activationDetails) ? formData === null || formData === void 0 ? void 0 : (_formData$activationD = formData.activationDetails) === null || _formData$activationD === void 0 ? void 0 : _formData$activationD[0] : (formData === null || formData === void 0 ? void 0 : formData.activationDetails) || {};
|
|
12917
12915
|
const [activationDetails, setActivationDetails] = React.useState({
|
|
12918
|
-
meterId: "",
|
|
12919
|
-
meterInstallationDate: "",
|
|
12920
|
-
meterInitialReading: "",
|
|
12921
|
-
connectionExecutionDate: ""
|
|
12916
|
+
meterId: (initialData === null || initialData === void 0 ? void 0 : initialData.meterId) || "",
|
|
12917
|
+
meterInstallationDate: (initialData === null || initialData === void 0 ? void 0 : initialData.meterInstallationDate) || "",
|
|
12918
|
+
meterInitialReading: "0",
|
|
12919
|
+
connectionExecutionDate: (initialData === null || initialData === void 0 ? void 0 : initialData.connectionExecutionDate) || ""
|
|
12922
12920
|
});
|
|
12923
12921
|
React.useEffect(() => {
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12922
|
+
var _formData$activationD2;
|
|
12923
|
+
const actData = Array.isArray(formData === null || formData === void 0 ? void 0 : formData.activationDetails) ? formData === null || formData === void 0 ? void 0 : (_formData$activationD2 = formData.activationDetails) === null || _formData$activationD2 === void 0 ? void 0 : _formData$activationD2[0] : formData === null || formData === void 0 ? void 0 : formData.activationDetails;
|
|
12924
|
+
if (actData) {
|
|
12925
|
+
setActivationDetails(prev => {
|
|
12926
|
+
const nextState = {
|
|
12927
|
+
meterId: actData.meterId !== undefined ? actData.meterId : prev.meterId,
|
|
12928
|
+
meterInstallationDate: actData.meterInstallationDate !== undefined ? actData.meterInstallationDate : prev.meterInstallationDate,
|
|
12929
|
+
meterInitialReading: "0",
|
|
12930
|
+
connectionExecutionDate: actData.connectionExecutionDate !== undefined ? actData.connectionExecutionDate : prev.connectionExecutionDate
|
|
12931
|
+
};
|
|
12932
|
+
if (prev.meterId === nextState.meterId && prev.meterInstallationDate === nextState.meterInstallationDate && prev.meterInitialReading === nextState.meterInitialReading && prev.connectionExecutionDate === nextState.connectionExecutionDate) {
|
|
12933
|
+
return prev;
|
|
12934
|
+
}
|
|
12935
|
+
return nextState;
|
|
12936
|
+
});
|
|
12929
12937
|
}
|
|
12930
|
-
},
|
|
12938
|
+
}, [formData === null || formData === void 0 ? void 0 : formData.activationDetails]);
|
|
12939
|
+
React.useEffect(() => {
|
|
12940
|
+
if (onSelect && config !== null && config !== void 0 && config.key) {
|
|
12941
|
+
onSelect(config.key, [activationDetails]);
|
|
12942
|
+
}
|
|
12943
|
+
}, [activationDetails]);
|
|
12944
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t(`WS_METER_ID`)}`, /*#__PURE__*/React.createElement("span", {
|
|
12945
|
+
className: "check-page-link-button"
|
|
12946
|
+
}, " *")), /*#__PURE__*/React.createElement("div", {
|
|
12931
12947
|
className: "field"
|
|
12932
12948
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
12933
12949
|
t: t,
|
|
@@ -12935,51 +12951,48 @@ const WSActivationDetails = _ref => {
|
|
|
12935
12951
|
optionKey: "i18nKey",
|
|
12936
12952
|
name: "meterId",
|
|
12937
12953
|
value: activationDetails.meterId,
|
|
12954
|
+
placeholder: `${t(`WS_METER_ID_PLACEHOLDER`)}`,
|
|
12938
12955
|
onChange: ev => {
|
|
12939
12956
|
setActivationDetails({
|
|
12940
12957
|
...activationDetails,
|
|
12941
12958
|
meterId: ev.target.value
|
|
12942
12959
|
});
|
|
12943
12960
|
}
|
|
12944
|
-
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12945
|
-
className: "
|
|
12946
|
-
|
|
12947
|
-
fontWeight: "700"
|
|
12948
|
-
}
|
|
12949
|
-
}, `${t(`WS_METER_INSTALLATION_DATE`)}`), /*#__PURE__*/React.createElement("div", {
|
|
12961
|
+
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t(`WS_METER_INSTALLATION_DATE`)}`, /*#__PURE__*/React.createElement("span", {
|
|
12962
|
+
className: "check-page-link-button"
|
|
12963
|
+
}, " *")), /*#__PURE__*/React.createElement("div", {
|
|
12950
12964
|
className: "field"
|
|
12951
12965
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
12952
12966
|
date: activationDetails.meterInstallationDate,
|
|
12967
|
+
placeholder: `${t(`WS_METER_INSTALLATION_DATE_PLACEHOLDER`)}`,
|
|
12953
12968
|
onChange: date => {
|
|
12954
12969
|
setActivationDetails({
|
|
12955
12970
|
...activationDetails,
|
|
12956
12971
|
meterInstallationDate: date
|
|
12957
12972
|
});
|
|
12958
12973
|
}
|
|
12959
|
-
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12960
|
-
className: "
|
|
12961
|
-
|
|
12962
|
-
fontWeight: "700"
|
|
12963
|
-
}
|
|
12964
|
-
}, `${t(`WS_INIT_METER_READING`)}`), /*#__PURE__*/React.createElement("div", {
|
|
12974
|
+
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t(`WS_INIT_METER_READING`)}`, /*#__PURE__*/React.createElement("span", {
|
|
12975
|
+
className: "check-page-link-button"
|
|
12976
|
+
}, " *")), /*#__PURE__*/React.createElement("div", {
|
|
12965
12977
|
className: "field"
|
|
12966
12978
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
12967
|
-
value: activationDetails.meterInitialReading,
|
|
12979
|
+
value: activationDetails.meterInitialReading || "0",
|
|
12980
|
+
disabled: true,
|
|
12981
|
+
disable: true,
|
|
12982
|
+
placeholder: `${t(`WS_INIT_METER_READING_PLACEHOLDER`)}`,
|
|
12968
12983
|
onChange: ev => {
|
|
12969
12984
|
setActivationDetails({
|
|
12970
12985
|
...activationDetails,
|
|
12971
|
-
meterInitialReading:
|
|
12986
|
+
meterInitialReading: "0"
|
|
12972
12987
|
});
|
|
12973
12988
|
}
|
|
12974
|
-
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
12975
|
-
className: "
|
|
12976
|
-
|
|
12977
|
-
fontWeight: "700"
|
|
12978
|
-
}
|
|
12979
|
-
}, `${t(`WS_CONN_EXEC_DATE`)}`), /*#__PURE__*/React.createElement("div", {
|
|
12989
|
+
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t(`WS_CONN_EXEC_DATE`)}`, /*#__PURE__*/React.createElement("span", {
|
|
12990
|
+
className: "check-page-link-button"
|
|
12991
|
+
}, " *")), /*#__PURE__*/React.createElement("div", {
|
|
12980
12992
|
className: "field"
|
|
12981
12993
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
12982
12994
|
date: activationDetails.connectionExecutionDate,
|
|
12995
|
+
placeholder: `${t(`WS_CONN_EXEC_DATE_PLACEHOLDER`)}`,
|
|
12983
12996
|
onChange: date => {
|
|
12984
12997
|
setActivationDetails({
|
|
12985
12998
|
...activationDetails,
|
|
@@ -13432,7 +13445,7 @@ const ConnectionDetails = _props => {
|
|
|
13432
13445
|
placeholder: t("Select Applicant Type")
|
|
13433
13446
|
});
|
|
13434
13447
|
}
|
|
13435
|
-
})), window.location.href.includes("/citizen") && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("
|
|
13448
|
+
})), window.location.href.includes("/citizen") && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("WS_Billing_Address_Type"), /*#__PURE__*/React.createElement("span", {
|
|
13436
13449
|
className: "check-page-link-button"
|
|
13437
13450
|
}, "*")), /*#__PURE__*/React.createElement(Controller, {
|
|
13438
13451
|
control: control,
|
|
@@ -15857,11 +15870,13 @@ const createConnectionDetails$1 = service => service == "WATER" ? {
|
|
|
15857
15870
|
i18nKey: "WS_CONNECTIONTYPE_METERED",
|
|
15858
15871
|
name: "Metered"
|
|
15859
15872
|
},
|
|
15860
|
-
noOfTaps:
|
|
15861
|
-
waterSource: "",
|
|
15862
|
-
pipeSize:
|
|
15873
|
+
noOfTaps: 0,
|
|
15874
|
+
waterSource: "GROUND.WELL",
|
|
15875
|
+
pipeSize: 0,
|
|
15863
15876
|
waterSubSource: "",
|
|
15864
|
-
sourceSubData: ""
|
|
15877
|
+
sourceSubData: "",
|
|
15878
|
+
proposedPipeSize: 0,
|
|
15879
|
+
proposedTaps: 0
|
|
15865
15880
|
} : {
|
|
15866
15881
|
noOfWaterClosets: "",
|
|
15867
15882
|
noOfToilets: ""
|
|
@@ -15882,7 +15897,7 @@ const WSActivationConnectionDetails = _ref => {
|
|
|
15882
15897
|
const {
|
|
15883
15898
|
pathname
|
|
15884
15899
|
} = useLocation();
|
|
15885
|
-
const filters = getQueryStringParams(location.search);
|
|
15900
|
+
const filters = getQueryStringParams(window.location.search);
|
|
15886
15901
|
const [connectionDetails, setConnectionDetails] = useState(() => {
|
|
15887
15902
|
var _formData$connectionD, _filters$service, _filters$service2, _filters$service3;
|
|
15888
15903
|
let details = window.location.href.includes("modify") ? formData !== null && formData !== void 0 && formData.connectionDetails ? [formData === null || formData === void 0 ? void 0 : (_formData$connectionD = formData.connectionDetails) === null || _formData$connectionD === void 0 ? void 0 : _formData$connectionD[0]] : [createConnectionDetails$1(filters === null || filters === void 0 ? void 0 : (_filters$service = filters.service) === null || _filters$service === void 0 ? void 0 : _filters$service.toUpperCase())] : (formData === null || formData === void 0 ? void 0 : formData.connectionDetails) || [createConnectionDetails$1(filters === null || filters === void 0 ? void 0 : (_filters$service2 = filters.service) === null || _filters$service2 === void 0 ? void 0 : _filters$service2.toUpperCase())];
|
|
@@ -16367,6 +16382,7 @@ const PlumberDetails = _props => {
|
|
|
16367
16382
|
selected: getValues("detailsProvidedBy"),
|
|
16368
16383
|
disable: false,
|
|
16369
16384
|
option: options,
|
|
16385
|
+
placeholder: `${t(`WS_ADDN_DETAILS_PLUMBER_PROVIDED_BY_PLACEHOLDER`)}`,
|
|
16370
16386
|
errorStyle: localFormState.touched.detailsProvidedBy && errors !== null && errors !== void 0 && (_errors$detailsProvid = errors.detailsProvidedBy) !== null && _errors$detailsProvid !== void 0 && _errors$detailsProvid.message ? true : false,
|
|
16371
16387
|
select: e => {
|
|
16372
16388
|
if (e.code == "ULB") {
|
|
@@ -16424,7 +16440,8 @@ const PlumberDetails = _props => {
|
|
|
16424
16440
|
labelStyle: {
|
|
16425
16441
|
marginTop: "unset"
|
|
16426
16442
|
},
|
|
16427
|
-
onBlur: props.onBlur
|
|
16443
|
+
onBlur: props.onBlur,
|
|
16444
|
+
placeholder: `${t(`WS_PLIMBER_LICENSE_NO_PLACEHOLDER`)}`
|
|
16428
16445
|
});
|
|
16429
16446
|
}
|
|
16430
16447
|
})), localFormState.touched.plumberLicenseNo && errors !== null && errors !== void 0 && (_errors$plumberLicens2 = errors.plumberLicenseNo) !== null && _errors$plumberLicens2 !== void 0 && _errors$plumberLicens2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
@@ -16460,7 +16477,8 @@ const PlumberDetails = _props => {
|
|
|
16460
16477
|
labelStyle: {
|
|
16461
16478
|
marginTop: "unset"
|
|
16462
16479
|
},
|
|
16463
|
-
onBlur: props.onBlur
|
|
16480
|
+
onBlur: props.onBlur,
|
|
16481
|
+
placeholder: `${t(`WS_ADDN_DETAILS_PLUMBER_NAME_PLACEHOLDER`)}`
|
|
16464
16482
|
});
|
|
16465
16483
|
}
|
|
16466
16484
|
})), localFormState.touched.plumberName && errors !== null && errors !== void 0 && (_errors$plumberName2 = errors.plumberName) !== null && _errors$plumberName2 !== void 0 && _errors$plumberName2.message ? /*#__PURE__*/React.createElement(CardLabelError, {
|
|
@@ -16516,7 +16534,8 @@ const PlumberDetails = _props => {
|
|
|
16516
16534
|
labelStyle: {
|
|
16517
16535
|
marginTop: "unset"
|
|
16518
16536
|
},
|
|
16519
|
-
onBlur: props.onBlur
|
|
16537
|
+
onBlur: props.onBlur,
|
|
16538
|
+
placeholder: `${t(`WS_PLUMBER_MOBILE_NO_PLACEHOLDER`)}`
|
|
16520
16539
|
}), /*#__PURE__*/React.createElement("div", {
|
|
16521
16540
|
style: isMobile && isEmployee ? {} : {
|
|
16522
16541
|
marginRight: "-50px",
|
|
@@ -16974,7 +16993,9 @@ const WSActivationSupportingDocuments = _ref => {
|
|
|
16974
16993
|
});
|
|
16975
16994
|
}
|
|
16976
16995
|
}, [uploadedFile]);
|
|
16977
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t(`WF_APPROVAL_UPLOAD_HEAD`),
|
|
16996
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t(`WF_APPROVAL_UPLOAD_HEAD`), /*#__PURE__*/React.createElement("span", {
|
|
16997
|
+
className: "check-page-link-button"
|
|
16998
|
+
}, " *"), ":"), /*#__PURE__*/React.createElement("div", {
|
|
16978
16999
|
className: "field"
|
|
16979
17000
|
}, /*#__PURE__*/React.createElement(UploadFile, {
|
|
16980
17001
|
onUpload: e => {
|
|
@@ -16992,7 +17013,8 @@ const WSActivationSupportingDocuments = _ref => {
|
|
|
16992
17013
|
},
|
|
16993
17014
|
buttonType: "button",
|
|
16994
17015
|
accept: "image/*, .pdf, .png, .jpeg, .jpg",
|
|
16995
|
-
iserror: error
|
|
17016
|
+
iserror: error,
|
|
17017
|
+
isMandatory: true
|
|
16996
17018
|
}))));
|
|
16997
17019
|
};
|
|
16998
17020
|
|
|
@@ -18601,7 +18623,7 @@ const removeDuplicateOtherDocuments = function (documentList) {
|
|
|
18601
18623
|
});
|
|
18602
18624
|
};
|
|
18603
18625
|
const WSDocumentsEmployee = _ref => {
|
|
18604
|
-
var
|
|
18626
|
+
var _formData$ConnectionD, _formData$ConnectionD2, _formData$ConnectionD3, _formData$application, _formData$application2, _formData$connectionH, _formData$connectionH2, _formData$connectionH3, _formData$connectionH4, _formData$connectionH5, _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData3, _wsDocs$wsDocsData3$f;
|
|
18605
18627
|
let {
|
|
18606
18628
|
t,
|
|
18607
18629
|
config,
|
|
@@ -18613,6 +18635,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18613
18635
|
formState
|
|
18614
18636
|
} = _ref;
|
|
18615
18637
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
18638
|
+
const isTenant = (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD = formData.ConnectionDetails) === null || _formData$ConnectionD === void 0 ? void 0 : (_formData$ConnectionD2 = _formData$ConnectionD[0]) === null || _formData$ConnectionD2 === void 0 ? void 0 : (_formData$ConnectionD3 = _formData$ConnectionD2.applicantType) === null || _formData$ConnectionD3 === void 0 ? void 0 : _formData$ConnectionD3.code) === "TENANT" || (formData === null || formData === void 0 ? void 0 : (_formData$application = formData.applicationSelection) === null || _formData$application === void 0 ? void 0 : (_formData$application2 = _formData$application.applicantType) === null || _formData$application2 === void 0 ? void 0 : _formData$application2.code) === "TENANT" || (formData === null || formData === void 0 ? void 0 : (_formData$connectionH = formData.connectionHolders) === null || _formData$connectionH === void 0 ? void 0 : (_formData$connectionH2 = _formData$connectionH[0]) === null || _formData$connectionH2 === void 0 ? void 0 : _formData$connectionH2.applicantType) === "TENANT" || (formData === null || formData === void 0 ? void 0 : (_formData$connectionH3 = formData.connectionHolders) === null || _formData$connectionH3 === void 0 ? void 0 : (_formData$connectionH4 = _formData$connectionH3[0]) === null || _formData$connectionH4 === void 0 ? void 0 : (_formData$connectionH5 = _formData$connectionH4.applicantType) === null || _formData$connectionH5 === void 0 ? void 0 : _formData$connectionH5.code) === "TENANT";
|
|
18616
18639
|
const [documents, setDocuments] = useState(() => {
|
|
18617
18640
|
var _formData$documents, _formData$DocumentsRe;
|
|
18618
18641
|
return removeDuplicateOtherDocuments(userType === "citizen" ? (formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : _formData$documents.documents) || (formData === null || formData === void 0 ? void 0 : formData.documents) || [] : (formData === null || formData === void 0 ? void 0 : (_formData$DocumentsRe = formData.DocumentsRequired) === null || _formData$DocumentsRe === void 0 ? void 0 : _formData$DocumentsRe.documents) || []);
|
|
@@ -18698,9 +18721,18 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18698
18721
|
const innerContent = /*#__PURE__*/React.createElement("div", {
|
|
18699
18722
|
className: "formcomposer-section-grid ws-doc-upload"
|
|
18700
18723
|
}, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData3 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData3 === void 0 ? void 0 : (_wsDocs$wsDocsData3$f = _wsDocs$wsDocsData3.filter(doc => doc.code !== "OWNER.APPLICANTPHOTO")) === null || _wsDocs$wsDocsData3$f === void 0 ? void 0 : _wsDocs$wsDocsData3$f.map((document, index) => {
|
|
18724
|
+
let modifiedDocument = {
|
|
18725
|
+
...document
|
|
18726
|
+
};
|
|
18727
|
+
if (!isTenant && modifiedDocument.dropdownData) {
|
|
18728
|
+
modifiedDocument.dropdownData = modifiedDocument.dropdownData.filter(opt => {
|
|
18729
|
+
const code = opt.code || "";
|
|
18730
|
+
return !(code.includes("NOC_FROM_OWNER") || code === "NOC from Owner");
|
|
18731
|
+
});
|
|
18732
|
+
}
|
|
18701
18733
|
return /*#__PURE__*/React.createElement(SelectDocument, {
|
|
18702
18734
|
key: index,
|
|
18703
|
-
document:
|
|
18735
|
+
document: modifiedDocument,
|
|
18704
18736
|
action: action,
|
|
18705
18737
|
t: t,
|
|
18706
18738
|
id: `pt-document-${index}`,
|
|
@@ -18716,7 +18748,6 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18716
18748
|
isOtherDocument: isOtherDocument(document === null || document === void 0 ? void 0 : document.code)
|
|
18717
18749
|
});
|
|
18718
18750
|
}));
|
|
18719
|
-
const isTenant = (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD = formData.ConnectionDetails) === null || _formData$ConnectionD === void 0 ? void 0 : (_formData$ConnectionD2 = _formData$ConnectionD[0]) === null || _formData$ConnectionD2 === void 0 ? void 0 : (_formData$ConnectionD3 = _formData$ConnectionD2.applicantType) === null || _formData$ConnectionD3 === void 0 ? void 0 : _formData$ConnectionD3.code) === "TENANT";
|
|
18720
18751
|
const nocDownloadSection = isTenant ? /*#__PURE__*/React.createElement("div", {
|
|
18721
18752
|
style: {
|
|
18722
18753
|
marginBottom: "20px",
|
|
@@ -18775,7 +18806,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18775
18806
|
}));
|
|
18776
18807
|
};
|
|
18777
18808
|
function SelectDocument(_ref2) {
|
|
18778
|
-
var _formData$
|
|
18809
|
+
var _formData$application3, _formData$application4, _formData$application5, _formData$ConnectionD4, _formData$ConnectionD5, _formData$ConnectionD6, _formData$ConnectionD7, _doc$i18nKey, _selectedDocument$cod2, _selectedDocument$cod3, _selectedDocument$cod4, _selectedDocument$cod5, _selectedDocument$cod6, _selectedDocument$cod7, _selectedDocument$cod8, _selectedDocument$cod9, _selectedDocument$cod0, _selectedDocument$cod1, _selectedDocument$cod10, _selectedDocument$cod11, _selectedDocument$cod12, _selectedDocument$cod13, _selectedDocument$cod14, _selectedDocument$cod15, _doc$i18nKey2;
|
|
18779
18810
|
let {
|
|
18780
18811
|
t,
|
|
18781
18812
|
document: doc,
|
|
@@ -18794,9 +18825,10 @@ function SelectDocument(_ref2) {
|
|
|
18794
18825
|
isOtherDocument: isOther = false
|
|
18795
18826
|
} = _ref2;
|
|
18796
18827
|
const fileRef = useRef();
|
|
18828
|
+
const pendingId = useRef(Date.now());
|
|
18797
18829
|
const otherUploadedDocuments = isOther ? (documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
18798
18830
|
var _item$documentType;
|
|
18799
|
-
return item === null || item === void 0 ? void 0 : (_item$documentType = item.documentType) === null || _item$documentType === void 0 ? void 0 : _item$documentType.includes(doc === null || doc === void 0 ? void 0 : doc.code);
|
|
18831
|
+
return (item === null || item === void 0 ? void 0 : (_item$documentType = item.documentType) === null || _item$documentType === void 0 ? void 0 : _item$documentType.includes(doc === null || doc === void 0 ? void 0 : doc.code)) && (item === null || item === void 0 ? void 0 : item.tempId) !== pendingId.current;
|
|
18800
18832
|
})) || [] : [];
|
|
18801
18833
|
const filteredDocument = isOther ? null : documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
18802
18834
|
var _item$documentType2;
|
|
@@ -18927,13 +18959,13 @@ function SelectDocument(_ref2) {
|
|
|
18927
18959
|
dropdownData
|
|
18928
18960
|
} = doc;
|
|
18929
18961
|
var dropDownData = dropdownData;
|
|
18930
|
-
const applicantTypeVal = (formData === null || formData === void 0 ? void 0 : (_formData$
|
|
18962
|
+
const applicantTypeVal = (formData === null || formData === void 0 ? void 0 : (_formData$application3 = formData.applicationSelection) === null || _formData$application3 === void 0 ? void 0 : _formData$application3.applicantType) || (formData === null || formData === void 0 ? void 0 : (_formData$application4 = formData.applicationSelection) === null || _formData$application4 === void 0 ? void 0 : (_formData$application5 = _formData$application4[0]) === null || _formData$application5 === void 0 ? void 0 : _formData$application5.applicantType) || (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD4 = formData.ConnectionDetails) === null || _formData$ConnectionD4 === void 0 ? void 0 : _formData$ConnectionD4.applicantType) || (formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD5 = formData.ConnectionDetails) === null || _formData$ConnectionD5 === void 0 ? void 0 : (_formData$ConnectionD6 = _formData$ConnectionD5[0]) === null || _formData$ConnectionD6 === void 0 ? void 0 : _formData$ConnectionD6.applicantType);
|
|
18931
18963
|
const applicantTypeCode = typeof applicantTypeVal === "object" ? applicantTypeVal === null || applicantTypeVal === void 0 ? void 0 : applicantTypeVal.code : applicantTypeVal;
|
|
18932
|
-
if (isOther && applicantTypeCode
|
|
18964
|
+
if (isOther && applicantTypeCode !== "TENANT") {
|
|
18933
18965
|
var _dropDownData;
|
|
18934
18966
|
dropDownData = (_dropDownData = dropDownData) === null || _dropDownData === void 0 ? void 0 : _dropDownData.filter(d => {
|
|
18935
18967
|
var _d$code;
|
|
18936
|
-
return d.code
|
|
18968
|
+
return d.code !== "OWNER.OTHERDOCUMENTS.NOC_FROM_OWNER" && !((_d$code = d.code) !== null && _d$code !== void 0 && _d$code.includes("NOC_FROM_OWNER"));
|
|
18937
18969
|
});
|
|
18938
18970
|
}
|
|
18939
18971
|
const [isHidden, setHidden] = useState(false);
|
|
@@ -18965,13 +18997,19 @@ function SelectDocument(_ref2) {
|
|
|
18965
18997
|
}
|
|
18966
18998
|
};
|
|
18967
18999
|
useEffect(() => {
|
|
18968
|
-
if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code
|
|
19000
|
+
if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
|
|
18969
19001
|
setDocuments(prev => {
|
|
18970
|
-
|
|
19002
|
+
var _filteredDocumentsByD;
|
|
19003
|
+
let filteredDocumentsByDocumentType = prev || [];
|
|
19004
|
+
if (!isOther) {
|
|
19005
|
+
filteredDocumentsByDocumentType = filteredDocumentsByDocumentType.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
|
|
19006
|
+
} else {
|
|
19007
|
+
filteredDocumentsByDocumentType = filteredDocumentsByDocumentType.filter(item => (item === null || item === void 0 ? void 0 : item.tempId) !== pendingId.current);
|
|
19008
|
+
}
|
|
18971
19009
|
if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) {
|
|
18972
|
-
return
|
|
19010
|
+
return filteredDocumentsByDocumentType;
|
|
18973
19011
|
}
|
|
18974
|
-
const filteredDocumentsByFileStoreId = filteredDocumentsByDocumentType === null ||
|
|
19012
|
+
const filteredDocumentsByFileStoreId = (_filteredDocumentsByD = filteredDocumentsByDocumentType) === null || _filteredDocumentsByD === void 0 ? void 0 : _filteredDocumentsByD.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== uploadedFile);
|
|
18975
19013
|
const data = [...filteredDocumentsByFileStoreId, {
|
|
18976
19014
|
documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
18977
19015
|
fileStoreId: uploadedFile,
|
|
@@ -18981,7 +19019,8 @@ function SelectDocument(_ref2) {
|
|
|
18981
19019
|
documentNumber: documentUid,
|
|
18982
19020
|
i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
18983
19021
|
id: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.id,
|
|
18984
|
-
status: "ACTIVE"
|
|
19022
|
+
status: "ACTIVE",
|
|
19023
|
+
tempId: isOther ? pendingId.current : undefined
|
|
18985
19024
|
}];
|
|
18986
19025
|
sessionStorage.setItem("DISCONNECTION_EDIT_DOCS", JSON.stringify(data));
|
|
18987
19026
|
return data;
|
|
@@ -19302,21 +19341,7 @@ function SelectDocument(_ref2) {
|
|
|
19302
19341
|
setError(docNumberError);
|
|
19303
19342
|
return;
|
|
19304
19343
|
}
|
|
19305
|
-
|
|
19306
|
-
const data = [...(prev || []), {
|
|
19307
|
-
documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
19308
|
-
fileStoreId: uploadedFile,
|
|
19309
|
-
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || "",
|
|
19310
|
-
documentName: (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "",
|
|
19311
|
-
documentUid: documentUid,
|
|
19312
|
-
documentNumber: documentUid,
|
|
19313
|
-
i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
19314
|
-
id: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.id,
|
|
19315
|
-
status: "ACTIVE"
|
|
19316
|
-
}];
|
|
19317
|
-
sessionStorage.setItem("DISCONNECTION_EDIT_DOCS", JSON.stringify(data));
|
|
19318
|
-
return data;
|
|
19319
|
-
});
|
|
19344
|
+
pendingId.current = Date.now();
|
|
19320
19345
|
setUploadedFile(null);
|
|
19321
19346
|
setFile(null);
|
|
19322
19347
|
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
@@ -25488,7 +25513,7 @@ const DECIMAL_PATTERN$1 = /^\d+(\.\d{1,2})?$/;
|
|
|
25488
25513
|
const normalizeCode = value => String(value || "").replace(/[._\s-]/g, "").toUpperCase();
|
|
25489
25514
|
const getCode = value => typeof value === "object" ? (value === null || value === void 0 ? void 0 : value.code) || (value === null || value === void 0 ? void 0 : value.value) : value;
|
|
25490
25515
|
const PropertyWaterConnection = _ref => {
|
|
25491
|
-
var _formData$cpt3, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11
|
|
25516
|
+
var _formData$cpt3, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
|
|
25492
25517
|
let {
|
|
25493
25518
|
t,
|
|
25494
25519
|
config,
|
|
@@ -25530,7 +25555,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
25530
25555
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
25531
25556
|
const {
|
|
25532
25557
|
data: ptServicesMastersData
|
|
25533
|
-
} = Digit.Hooks.pt.usePropertyMDMS(tenantId, "PropertyTax", ["PropertyCategory", "PropertyType", "NoOfFloors", "PropertyNewUsageType", "PropertyToUsageMapping"]);
|
|
25558
|
+
} = Digit.Hooks.pt.usePropertyMDMS(tenantId, "PropertyTax", ["PropertyCategory", "PropertyType", "NoOfFloors", "PropertyNewUsageType", "PropertyToUsageMapping", "PropertyType2"]);
|
|
25534
25559
|
const {
|
|
25535
25560
|
data: wsServicesMastersData
|
|
25536
25561
|
} = Digit.Hooks.ws.useMDMS(tenantId, "ws-services-masters", ["WsCategoryType"]);
|
|
@@ -25539,8 +25564,20 @@ const PropertyWaterConnection = _ref => {
|
|
|
25539
25564
|
useEffect(() => {
|
|
25540
25565
|
var _wsServicesMastersDat;
|
|
25541
25566
|
const categories = (wsServicesMastersData === null || wsServicesMastersData === void 0 ? void 0 : (_wsServicesMastersDat = wsServicesMastersData["ws-services-masters"]) === null || _wsServicesMastersDat === void 0 ? void 0 : _wsServicesMastersDat.WsCategoryType) || [];
|
|
25542
|
-
categories.
|
|
25543
|
-
|
|
25567
|
+
if (categories.length > 0) {
|
|
25568
|
+
categories.forEach(data => data.i18nKey = data.i18nKey || `WS_CATEGORY_${data.code}`);
|
|
25569
|
+
setCategoryTypeList(categories);
|
|
25570
|
+
} else {
|
|
25571
|
+
setCategoryTypeList([{
|
|
25572
|
+
code: "DOMESTIC",
|
|
25573
|
+
name: "Domestic",
|
|
25574
|
+
i18nKey: "WS_CATEGORY_DOMESTIC"
|
|
25575
|
+
}, {
|
|
25576
|
+
code: "NON_DOMESTIC",
|
|
25577
|
+
name: "Non-Domestic",
|
|
25578
|
+
i18nKey: "WS_CATEGORY_NON_DOMESTIC"
|
|
25579
|
+
}]);
|
|
25580
|
+
}
|
|
25544
25581
|
}, [wsServicesMastersData]);
|
|
25545
25582
|
const isPropertyFound = window.location.href.includes("ws/old-application") || window.location.href.includes("/edit-application");
|
|
25546
25583
|
useEffect(() => {
|
|
@@ -25560,7 +25597,6 @@ const PropertyWaterConnection = _ref => {
|
|
|
25560
25597
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
25561
25598
|
const dwellingPropertyTypes = ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse"];
|
|
25562
25599
|
const isDwellingUnit = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
25563
|
-
const isServentHouse = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
25564
25600
|
const yearOptions = useMemo(() => {
|
|
25565
25601
|
const currentYear = new Date().getFullYear();
|
|
25566
25602
|
const years = [];
|
|
@@ -25574,76 +25610,68 @@ const PropertyWaterConnection = _ref => {
|
|
|
25574
25610
|
}, []);
|
|
25575
25611
|
const categoryOptions = useMemo(() => {
|
|
25576
25612
|
var _ptServicesMastersDat, _ptServicesMastersDat2;
|
|
25577
|
-
if (!(watchCategoryType !== null && watchCategoryType !== void 0 && watchCategoryType.code)) return [];
|
|
25578
25613
|
let options = (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat === void 0 ? void 0 : (_ptServicesMastersDat2 = _ptServicesMastersDat.PropertyCategory) === null || _ptServicesMastersDat2 === void 0 ? void 0 : _ptServicesMastersDat2.filter(item => item.active)) || [];
|
|
25579
|
-
options = options.filter(item => normalizeCode(item.type) === normalizeCode(watchCategoryType.code));
|
|
25580
25614
|
return options.map(item => ({
|
|
25581
25615
|
code: item.code,
|
|
25582
25616
|
name: item.name
|
|
25583
25617
|
}));
|
|
25584
|
-
}, [ptServicesMastersData
|
|
25585
|
-
useEffect(() => {
|
|
25586
|
-
var _ptServicesMastersDat3;
|
|
25587
|
-
if (watchCategoryType && watchPropertyCategory && ptServicesMastersData !== null && ptServicesMastersData !== void 0 && (_ptServicesMastersDat3 = ptServicesMastersData.PropertyTax) !== null && _ptServicesMastersDat3 !== void 0 && _ptServicesMastersDat3.PropertyCategory) {
|
|
25588
|
-
const isCategoryValid = categoryOptions.some(opt => opt.code === watchPropertyCategory.code);
|
|
25589
|
-
if (!isCategoryValid) {
|
|
25590
|
-
setValue("useDetails.propertyCategory", null);
|
|
25591
|
-
}
|
|
25592
|
-
}
|
|
25593
|
-
}, [watchCategoryType, categoryOptions, setValue, watchPropertyCategory, ptServicesMastersData]);
|
|
25618
|
+
}, [ptServicesMastersData]);
|
|
25594
25619
|
const propertyTypeOptions = useMemo(() => {
|
|
25595
|
-
var
|
|
25596
|
-
|
|
25597
|
-
|
|
25598
|
-
|
|
25599
|
-
if (mapping.length > 0) {
|
|
25600
|
-
options = options.filter(item => mapping.some(m => m.propertyTypeCode === item.code));
|
|
25601
|
-
}
|
|
25602
|
-
if ((watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : (_watchPropertyCategor = watchPropertyCategory.code) === null || _watchPropertyCategor === void 0 ? void 0 : _watchPropertyCategor.toUpperCase()) !== "MIXED") {
|
|
25603
|
-
options = options.filter(item => normalizeCode(item.type) === normalizeCode(watchPropertyCategory.code));
|
|
25604
|
-
}
|
|
25605
|
-
return options.map(item => ({
|
|
25620
|
+
var _ptServicesMastersDat3, _ptServicesMastersDat4;
|
|
25621
|
+
const list = (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat3 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat3 === void 0 ? void 0 : _ptServicesMastersDat3.PropertyType2) || (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat4 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat4 === void 0 ? void 0 : _ptServicesMastersDat4.PropertyType) || [];
|
|
25622
|
+
return list.filter(item => item.active).map(item => ({
|
|
25623
|
+
...item,
|
|
25606
25624
|
code: item.code,
|
|
25607
25625
|
name: item.name
|
|
25608
25626
|
}));
|
|
25609
|
-
}, [ptServicesMastersData
|
|
25610
|
-
useEffect(() => {
|
|
25611
|
-
var _ptServicesMastersDat7;
|
|
25612
|
-
if (watchPropertyCategory && watchPropertyType && ptServicesMastersData !== null && ptServicesMastersData !== void 0 && (_ptServicesMastersDat7 = ptServicesMastersData.PropertyTax) !== null && _ptServicesMastersDat7 !== void 0 && _ptServicesMastersDat7.PropertyType) {
|
|
25613
|
-
const isTypeValid = propertyTypeOptions.some(opt => opt.code === watchPropertyType.code);
|
|
25614
|
-
if (!isTypeValid) {
|
|
25615
|
-
setValue("useDetails.propertyType", null);
|
|
25616
|
-
}
|
|
25617
|
-
}
|
|
25618
|
-
}, [watchPropertyCategory, propertyTypeOptions, setValue, watchPropertyType, ptServicesMastersData]);
|
|
25627
|
+
}, [ptServicesMastersData]);
|
|
25619
25628
|
const usageTypeOptions = useMemo(() => {
|
|
25620
|
-
var
|
|
25621
|
-
|
|
25622
|
-
|
|
25623
|
-
|
|
25624
|
-
|
|
25625
|
-
|
|
25626
|
-
|
|
25627
|
-
|
|
25628
|
-
options = [];
|
|
25629
|
-
}
|
|
25630
|
-
return options.map(item => ({
|
|
25631
|
-
code: item.code,
|
|
25632
|
-
name: item.name
|
|
25629
|
+
var _ptServicesMastersDat5;
|
|
25630
|
+
const list = (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat5 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat5 === void 0 ? void 0 : _ptServicesMastersDat5.PropertyType2) || [];
|
|
25631
|
+
const uniqueTypes = [...new Set(list.map(item => item.waterConnectionUsageType).filter(Boolean))];
|
|
25632
|
+
const typesToMap = uniqueTypes.length > 0 ? uniqueTypes : ["Normal", "Bulk"];
|
|
25633
|
+
return typesToMap.map(type => ({
|
|
25634
|
+
code: type,
|
|
25635
|
+
name: type,
|
|
25636
|
+
value: type
|
|
25633
25637
|
}));
|
|
25634
|
-
}, [ptServicesMastersData
|
|
25638
|
+
}, [ptServicesMastersData]);
|
|
25639
|
+
const prevPropertyTypeCode = React.useRef(null);
|
|
25635
25640
|
useEffect(() => {
|
|
25636
|
-
var
|
|
25637
|
-
if (watchPropertyType
|
|
25638
|
-
|
|
25639
|
-
|
|
25640
|
-
|
|
25641
|
+
var _ptServicesMastersDat6;
|
|
25642
|
+
if (!(watchPropertyType !== null && watchPropertyType !== void 0 && watchPropertyType.code)) {
|
|
25643
|
+
prevPropertyTypeCode.current = null;
|
|
25644
|
+
return;
|
|
25645
|
+
}
|
|
25646
|
+
const isNewType = prevPropertyTypeCode.current !== watchPropertyType.code;
|
|
25647
|
+
prevPropertyTypeCode.current = watchPropertyType.code;
|
|
25648
|
+
const propertyType2List = (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat6 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat6 === void 0 ? void 0 : _ptServicesMastersDat6.PropertyType2) || [];
|
|
25649
|
+
const matched = propertyType2List.find(item => normalizeCode(item.code) === normalizeCode(watchPropertyType.code));
|
|
25650
|
+
if (matched && isNewType) {
|
|
25651
|
+
if (matched.categoryType && matched.categoryType.length > 0 && categoryTypeList.length > 0) {
|
|
25652
|
+
const catTarget = matched.categoryType[0];
|
|
25653
|
+
const foundCat = categoryTypeList.find(c => normalizeCode(c.code) === normalizeCode(catTarget) || normalizeCode(c.name) === normalizeCode(catTarget));
|
|
25654
|
+
if (foundCat) {
|
|
25655
|
+
setValue("useDetails.categoryType", foundCat);
|
|
25656
|
+
}
|
|
25657
|
+
}
|
|
25658
|
+
if (matched.propertyCategory && categoryOptions.length > 0) {
|
|
25659
|
+
const foundPropCat = categoryOptions.find(c => normalizeCode(c.code) === normalizeCode(matched.propertyCategory) || normalizeCode(c.name) === normalizeCode(matched.propertyCategory));
|
|
25660
|
+
if (foundPropCat) {
|
|
25661
|
+
setValue("useDetails.propertyCategory", foundPropCat);
|
|
25662
|
+
}
|
|
25663
|
+
}
|
|
25664
|
+
if (matched.waterConnectionUsageType && matched.waterConnectionUsageType.length > 0) {
|
|
25665
|
+
const foundUsage = usageTypeOptions.find(u => normalizeCode(u.code) === normalizeCode(matched.waterConnectionUsageType) || normalizeCode(u.name) === normalizeCode(matched.waterConnectionUsageType));
|
|
25666
|
+
if (foundUsage) {
|
|
25667
|
+
setValue("useDetails.WaterConnectionUsageType", foundUsage);
|
|
25668
|
+
}
|
|
25641
25669
|
}
|
|
25642
25670
|
}
|
|
25643
|
-
}, [watchPropertyType,
|
|
25671
|
+
}, [watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code, ptServicesMastersData, categoryTypeList, categoryOptions, usageTypeOptions, setValue]);
|
|
25644
25672
|
const floorOptions = useMemo(() => {
|
|
25645
|
-
var
|
|
25646
|
-
return ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
25673
|
+
var _ptServicesMastersDat7, _ptServicesMastersDat8;
|
|
25674
|
+
return ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat7 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat7 === void 0 ? void 0 : (_ptServicesMastersDat8 = _ptServicesMastersDat7.NoOfFloors) === null || _ptServicesMastersDat8 === void 0 ? void 0 : _ptServicesMastersDat8.filter(item => item.active).map(item => ({
|
|
25647
25675
|
code: item.code,
|
|
25648
25676
|
name: item.name
|
|
25649
25677
|
}));
|
|
@@ -25660,27 +25688,25 @@ const PropertyWaterConnection = _ref => {
|
|
|
25660
25688
|
if (propertyDetailsInitialized.current || !(formData !== null && formData !== void 0 && (_formData$cpt = formData.cpt) !== null && _formData$cpt !== void 0 && _formData$cpt.details)) return;
|
|
25661
25689
|
if (!categoryTypeList.length || !ptServicesMastersData) return;
|
|
25662
25690
|
if (formData !== null && formData !== void 0 && (_formData$cpt2 = formData.cpt) !== null && _formData$cpt2 !== void 0 && _formData$cpt2.details) {
|
|
25663
|
-
var
|
|
25691
|
+
var _ptServicesMastersDat9, _ptServicesMastersDat0, _ref2, _ptServicesMastersDat1, _ptServicesMastersDat10, _details$landArea, _details$superBuiltUp, _details$heightOfTheB, _details$farArea, _details$servantQuart, _details$numberOfBeds, _details$numberOfStud;
|
|
25664
25692
|
const details = formData.cpt.details;
|
|
25665
25693
|
const additionalDetails = (details === null || details === void 0 ? void 0 : details.additionalDetails) || {};
|
|
25666
25694
|
const usageCategory = getCode(additionalDetails.propertyCategory || additionalDetails.usageCategory || details.usageCategory);
|
|
25667
25695
|
const catType = getCode(additionalDetails.categoryType) || (String(usageCategory).includes("RESIDENTIAL") ? "DOMESTIC" : "NON_DOMESTIC");
|
|
25668
25696
|
setValue("useDetails.categoryType", (categoryTypeList === null || categoryTypeList === void 0 ? void 0 : categoryTypeList.find(o => normalizeCode(o.code) === normalizeCode(catType))) || null);
|
|
25669
|
-
const propCategoryMatch = ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
25697
|
+
const propCategoryMatch = ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat9 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat9 === void 0 ? void 0 : (_ptServicesMastersDat0 = _ptServicesMastersDat9.PropertyCategory) === null || _ptServicesMastersDat0 === void 0 ? void 0 : _ptServicesMastersDat0.find(o => normalizeCode(o.code) === normalizeCode(usageCategory));
|
|
25670
25698
|
setValue("useDetails.propertyCategory", propCategoryMatch ? {
|
|
25671
25699
|
code: propCategoryMatch.code,
|
|
25672
25700
|
name: propCategoryMatch.name
|
|
25673
25701
|
} : null);
|
|
25674
|
-
const propTypeMatch = ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (
|
|
25702
|
+
const propTypeMatch = (_ref2 = (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat1 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat1 === void 0 ? void 0 : _ptServicesMastersDat1.PropertyType2) || (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat10 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat10 === void 0 ? void 0 : _ptServicesMastersDat10.PropertyType)) === null || _ref2 === void 0 ? void 0 : _ref2.find(o => normalizeCode(o.code) === normalizeCode(getCode(additionalDetails.propertyType || details.propertyType)));
|
|
25675
25703
|
setValue("useDetails.propertyType", propTypeMatch ? {
|
|
25676
25704
|
code: propTypeMatch.code,
|
|
25677
25705
|
name: propTypeMatch.name
|
|
25678
25706
|
} : null);
|
|
25679
|
-
const
|
|
25680
|
-
|
|
25681
|
-
|
|
25682
|
-
name: usageTypeMatch.name
|
|
25683
|
-
} : null);
|
|
25707
|
+
const usageVal = getCode(additionalDetails.waterConnectionUsageType || additionalDetails.WaterConnectionUsageType);
|
|
25708
|
+
const usageTypeMatch = usageTypeOptions.find(o => normalizeCode(o.code) === normalizeCode(usageVal) || normalizeCode(o.name) === normalizeCode(usageVal));
|
|
25709
|
+
setValue("useDetails.WaterConnectionUsageType", usageTypeMatch || null);
|
|
25684
25710
|
setValue("useDetails.noOfFloors", (floorOptions === null || floorOptions === void 0 ? void 0 : floorOptions.find(o => {
|
|
25685
25711
|
var _details$noOfFloors;
|
|
25686
25712
|
const val1 = getCode(additionalDetails.numberOfFloors);
|
|
@@ -25744,73 +25770,73 @@ const PropertyWaterConnection = _ref => {
|
|
|
25744
25770
|
style: props.style
|
|
25745
25771
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25746
25772
|
className: "formcomposer-section-grid"
|
|
25747
|
-
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("
|
|
25773
|
+
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PROPERTY_TYPE")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
25748
25774
|
className: "check-page-link-button"
|
|
25749
25775
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
25750
25776
|
className: "form-field"
|
|
25751
25777
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25752
25778
|
control: control,
|
|
25753
|
-
name: "useDetails.
|
|
25779
|
+
name: "useDetails.propertyType",
|
|
25754
25780
|
rules: {
|
|
25755
25781
|
required: t("REQUIRED_FIELD")
|
|
25756
25782
|
},
|
|
25757
25783
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
25758
|
-
option:
|
|
25759
|
-
optionKey: "
|
|
25784
|
+
option: propertyTypeOptions,
|
|
25785
|
+
optionKey: "name",
|
|
25760
25786
|
selected: props.value,
|
|
25761
25787
|
select: props.onChange,
|
|
25762
25788
|
t: t,
|
|
25763
25789
|
onBlur: props.onBlur,
|
|
25764
25790
|
disable: isPropertyFound,
|
|
25765
|
-
placeholder: t("
|
|
25791
|
+
placeholder: t("WS_PROPERTY_TYPE")
|
|
25766
25792
|
})
|
|
25767
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails = errors.useDetails) === null || _errors$useDetails === void 0 ? void 0 : _errors$useDetails.
|
|
25793
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails = errors.useDetails) === null || _errors$useDetails === void 0 ? void 0 : _errors$useDetails.propertyType) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
25768
25794
|
style: errorStyle
|
|
25769
|
-
}, errors.useDetails.
|
|
25795
|
+
}, errors.useDetails.propertyType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_CATEGORY_TYPE")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
25770
25796
|
className: "check-page-link-button"
|
|
25771
25797
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
25772
25798
|
className: "form-field"
|
|
25773
25799
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25774
25800
|
control: control,
|
|
25775
|
-
name: "useDetails.
|
|
25801
|
+
name: "useDetails.categoryType",
|
|
25776
25802
|
rules: {
|
|
25777
25803
|
required: t("REQUIRED_FIELD")
|
|
25778
25804
|
},
|
|
25779
25805
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
25780
|
-
option:
|
|
25781
|
-
optionKey: "
|
|
25806
|
+
option: categoryTypeList,
|
|
25807
|
+
optionKey: "i18nKey",
|
|
25782
25808
|
selected: props.value,
|
|
25783
25809
|
select: props.onChange,
|
|
25784
25810
|
t: t,
|
|
25785
25811
|
onBlur: props.onBlur,
|
|
25786
25812
|
disable: isPropertyFound,
|
|
25787
|
-
placeholder: t("
|
|
25813
|
+
placeholder: t("WS_CATEGORY_TYPE")
|
|
25788
25814
|
})
|
|
25789
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails2 = errors.useDetails) === null || _errors$useDetails2 === void 0 ? void 0 : _errors$useDetails2.
|
|
25815
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails2 = errors.useDetails) === null || _errors$useDetails2 === void 0 ? void 0 : _errors$useDetails2.categoryType) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
25790
25816
|
style: errorStyle
|
|
25791
|
-
}, errors.useDetails.
|
|
25817
|
+
}, errors.useDetails.categoryType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PROPERTY_CATEGORY")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
25792
25818
|
className: "check-page-link-button"
|
|
25793
25819
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
25794
25820
|
className: "form-field"
|
|
25795
25821
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25796
25822
|
control: control,
|
|
25797
|
-
name: "useDetails.
|
|
25823
|
+
name: "useDetails.propertyCategory",
|
|
25798
25824
|
rules: {
|
|
25799
25825
|
required: t("REQUIRED_FIELD")
|
|
25800
25826
|
},
|
|
25801
25827
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
25802
|
-
option:
|
|
25828
|
+
option: categoryOptions,
|
|
25803
25829
|
optionKey: "name",
|
|
25804
25830
|
selected: props.value,
|
|
25805
25831
|
select: props.onChange,
|
|
25806
25832
|
t: t,
|
|
25807
25833
|
onBlur: props.onBlur,
|
|
25808
25834
|
disable: isPropertyFound,
|
|
25809
|
-
placeholder: t("
|
|
25835
|
+
placeholder: t("WS_PROPERTY_CATEGORY")
|
|
25810
25836
|
})
|
|
25811
|
-
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails3 = errors.useDetails) === null || _errors$useDetails3 === void 0 ? void 0 : _errors$useDetails3.
|
|
25837
|
+
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails3 = errors.useDetails) === null || _errors$useDetails3 === void 0 ? void 0 : _errors$useDetails3.propertyCategory) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
25812
25838
|
style: errorStyle
|
|
25813
|
-
}, errors.useDetails.
|
|
25839
|
+
}, errors.useDetails.propertyCategory.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_WATER_CONNECTION_USAGE_TYPE")}`, " ", /*#__PURE__*/React.createElement("span", {
|
|
25814
25840
|
className: "check-page-link-button"
|
|
25815
25841
|
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
25816
25842
|
className: "form-field"
|
|
@@ -25933,7 +25959,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
25933
25959
|
})
|
|
25934
25960
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails9 = errors.useDetails) === null || _errors$useDetails9 === void 0 ? void 0 : _errors$useDetails9.SelectYearofConstruction) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
25935
25961
|
style: errorStyle
|
|
25936
|
-
}, errors.useDetails.SelectYearofConstruction.message), isDwellingUnit ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_DWELLING_UNITS")}
|
|
25962
|
+
}, errors.useDetails.SelectYearofConstruction.message), isDwellingUnit ? /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_DWELLING_UNITS")}`, /*#__PURE__*/React.createElement("span", {
|
|
25963
|
+
className: "check-page-link-button"
|
|
25964
|
+
}, " *")), /*#__PURE__*/React.createElement("div", {
|
|
25937
25965
|
className: "form-field"
|
|
25938
25966
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
25939
25967
|
t: t,
|
|
@@ -25941,10 +25969,14 @@ const PropertyWaterConnection = _ref => {
|
|
|
25941
25969
|
pattern: {
|
|
25942
25970
|
value: NUMBER_PATTERN$1,
|
|
25943
25971
|
message: t("ERR_INVALID_NUMBER")
|
|
25944
|
-
}
|
|
25972
|
+
},
|
|
25973
|
+
required: t("REQUIRED_FIELD")
|
|
25945
25974
|
}),
|
|
25946
25975
|
name: "useDetails.NumberofDwellingUnits",
|
|
25947
25976
|
disabled: isPropertyFound,
|
|
25977
|
+
rules: {
|
|
25978
|
+
required: t("REQUIRED_FIELD")
|
|
25979
|
+
},
|
|
25948
25980
|
placeholder: t("WS_NUMBER_OF_DWELLING_UNITS")
|
|
25949
25981
|
}))) : null, isDwellingUnit && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails0 = errors.useDetails) === null || _errors$useDetails0 === void 0 ? void 0 : _errors$useDetails0.NumberofDwellingUnits) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
25950
25982
|
style: errorStyle
|
|
@@ -25999,22 +26031,7 @@ const PropertyWaterConnection = _ref => {
|
|
|
25999
26031
|
placeholder: t("WS_NUMBER_OF_STUDENTS")
|
|
26000
26032
|
}))) : null, isSchoolCollegeProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails11 = errors.useDetails) === null || _errors$useDetails11 === void 0 ? void 0 : _errors$useDetails11.numberOfStudents) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
26001
26033
|
style: errorStyle
|
|
26002
|
-
}, errors.useDetails.numberOfStudents.message)
|
|
26003
|
-
className: "form-field"
|
|
26004
|
-
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
26005
|
-
t: t,
|
|
26006
|
-
inputRef: register({
|
|
26007
|
-
pattern: {
|
|
26008
|
-
value: NUMBER_PATTERN$1,
|
|
26009
|
-
message: t("ERR_INVALID_NUMBER")
|
|
26010
|
-
}
|
|
26011
|
-
}),
|
|
26012
|
-
name: "useDetails.servantQuarterArea",
|
|
26013
|
-
disabled: isPropertyFound,
|
|
26014
|
-
placeholder: t("WS_SERVENT_HOUSE")
|
|
26015
|
-
}))) : null, isServentHouse && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails12 = errors.useDetails) === null || _errors$useDetails12 === void 0 ? void 0 : _errors$useDetails12.servantQuarterArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
26016
|
-
style: errorStyle
|
|
26017
|
-
}, errors.useDetails.servantQuarterArea.message)));
|
|
26034
|
+
}, errors.useDetails.numberOfStudents.message)));
|
|
26018
26035
|
};
|
|
26019
26036
|
|
|
26020
26037
|
const WSPropertyWaterConnection = props => {
|
|
@@ -32978,7 +32995,7 @@ const Rebate_menu = [{
|
|
|
32978
32995
|
value: "Others"
|
|
32979
32996
|
}];
|
|
32980
32997
|
const WSFeeEstimation = _ref => {
|
|
32981
|
-
var _wsAdditionalDetails$, _wsAdditionalDetails$2, _wsAdditionalDetails$3, _billDetails$billDeta, _billDetails$billDeta2, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
32998
|
+
var _wsAdditionalDetails$, _wsAdditionalDetails$2, _wsAdditionalDetails$3, _wsAdditionalDetails$4, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _wsAdditionalDetails$5, _wsAdditionalDetails$6, _wsAdditionalDetails$7, _billDetails$billDeta, _billDetails$billDeta2, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
32982
32999
|
let {
|
|
32983
33000
|
wsAdditionalDetails,
|
|
32984
33001
|
workflowDetails,
|
|
@@ -32989,13 +33006,21 @@ const WSFeeEstimation = _ref => {
|
|
|
32989
33006
|
} = useTranslation();
|
|
32990
33007
|
const [sessionFormData, setSessionFormData, clearSessionFormData] = Digit.Hooks.useSessionStorage("ADHOC_ADD_REBATE_DATA", {});
|
|
32991
33008
|
const [sessionBillFormData, setSessionBillFormData, clearBillSessionFormData] = Digit.Hooks.useSessionStorage("ADHOC_BILL_ADD_REBATE_DATA", {});
|
|
32992
|
-
const
|
|
33009
|
+
const appStatus = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$ = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$ === void 0 ? void 0 : (_wsAdditionalDetails$2 = _wsAdditionalDetails$.appDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : _wsAdditionalDetails$2.applicationStatus) || (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$3 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : (_wsAdditionalDetails$4 = _wsAdditionalDetails$3.data) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4.applicationStatus) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2[0]) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.state) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.applicationStatus) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.processInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state);
|
|
33010
|
+
const timeline = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.processInstances) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.ProcessInstances);
|
|
33011
|
+
const hasPaymentInTimeline = Array.isArray(timeline) && timeline.some(step => {
|
|
33012
|
+
var _step$state, _step$state2;
|
|
33013
|
+
return (step === null || step === void 0 ? void 0 : step.action) === "PAY" || (step === null || step === void 0 ? void 0 : (_step$state = step.state) === null || _step$state === void 0 ? void 0 : _step$state.state) === "PENDING_FOR_PAYMENT" || (step === null || step === void 0 ? void 0 : (_step$state2 = step.state) === null || _step$state2 === void 0 ? void 0 : _step$state2.applicationStatus) === "PENDING_FOR_PAYMENT";
|
|
33014
|
+
});
|
|
33015
|
+
const isPostPaymentState = hasPaymentInTimeline && appStatus !== "PENDING_FOR_PAYMENT" && appStatus !== "INITIATED" && appStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && appStatus !== "PENDING_FOR_CITIZEN_ACTION" && appStatus !== "PENDING_FOR_FIELD_INSPECTION";
|
|
33016
|
+
const isWorkflowPaid = appStatus && appStatus !== "INITIATED" && appStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && appStatus !== "PENDING_FOR_CITIZEN_ACTION" && appStatus !== "PENDING_FOR_FIELD_INSPECTION" && appStatus !== "PENDING_FOR_PAYMENT" && appStatus !== "PENDING_FOR_FINAL_PAYMENT" && appStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" && appStatus !== "PENDING_APPROVAL_FOR_MUTATION";
|
|
33017
|
+
const isPaid = wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$5 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$5 !== void 0 && _wsAdditionalDetails$5.isPaid || isWorkflowPaid || isPostPaymentState ? true : false;
|
|
32993
33018
|
const [popup, showPopUp] = useState(false);
|
|
32994
33019
|
const [fields, setFields] = useState(sessionFormData ? sessionFormData : {});
|
|
32995
33020
|
const [showToast, setShowToast] = useState(null);
|
|
32996
33021
|
const [billDetails, setBillDetails] = useState(wsAdditionalDetails.additionalDetails.data ? wsAdditionalDetails.additionalDetails.data : {});
|
|
32997
33022
|
const [values, setValues] = useState(wsAdditionalDetails.additionalDetails.values ? wsAdditionalDetails.additionalDetails.values : []);
|
|
32998
|
-
const isDisconnectionExecuted = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33023
|
+
const isDisconnectionExecuted = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$6 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$6 === void 0 ? void 0 : (_wsAdditionalDetails$7 = _wsAdditionalDetails$6.appDetails) === null || _wsAdditionalDetails$7 === void 0 ? void 0 : _wsAdditionalDetails$7.applicationStatus) === "DISCONNECTION_EXECUTED";
|
|
32999
33024
|
const billRows = (billDetails === null || billDetails === void 0 ? void 0 : (_billDetails$billDeta = billDetails.billDetails) === null || _billDetails$billDeta === void 0 ? void 0 : (_billDetails$billDeta2 = _billDetails$billDeta[0]) === null || _billDetails$billDeta2 === void 0 ? void 0 : _billDetails$billDeta2.billAccountDetails) || (billDetails === null || billDetails === void 0 ? void 0 : billDetails.taxHeadEstimates) || [];
|
|
33000
33025
|
const disconnectionFee = billRows.find(row => (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "WS_DISCONNECTION_FEE" || (row === null || row === void 0 ? void 0 : row.taxHeadCode) === "SW_DISCONNECTION_FEE");
|
|
33001
33026
|
const displayedValues = onlyDisconnectionFee || isDisconnectionExecuted ? values.filter(value => (value === null || value === void 0 ? void 0 : value.title) === "WS_DISCONNECTION_FEE" || (value === null || value === void 0 ? void 0 : value.title) === "SW_DISCONNECTION_FEE") : values;
|
|
@@ -33007,9 +33032,9 @@ const WSFeeEstimation = _ref => {
|
|
|
33007
33032
|
data: mdmsRes
|
|
33008
33033
|
} = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
|
|
33009
33034
|
useEffect(() => {
|
|
33010
|
-
var _wsAdditionalDetails$
|
|
33035
|
+
var _wsAdditionalDetails$8, _wsAdditionalDetails$9, _sessionFormData$bill;
|
|
33011
33036
|
const data = {
|
|
33012
|
-
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33037
|
+
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$8 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$8 === void 0 ? void 0 : (_wsAdditionalDetails$9 = _wsAdditionalDetails$8.appDetails) === null || _wsAdditionalDetails$9 === void 0 ? void 0 : _wsAdditionalDetails$9.additionalDetails)
|
|
33013
33038
|
};
|
|
33014
33039
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
33015
33040
|
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
@@ -33063,8 +33088,8 @@ const WSFeeEstimation = _ref => {
|
|
|
33063
33088
|
const adhocAmount = fields !== null && fields !== void 0 && fields.adhocPenalty ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocPenalty) : 0;
|
|
33064
33089
|
const rebateAmount = fields !== null && fields !== void 0 && fields.adhocRebate ? Number(fields === null || fields === void 0 ? void 0 : fields.adhocRebate) : 0;
|
|
33065
33090
|
if (adhocAmount || rebateAmount) {
|
|
33066
|
-
var _wsAdditionalDetails$
|
|
33067
|
-
const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33091
|
+
var _wsAdditionalDetails$0, _wsAdditionalDetails$1;
|
|
33092
|
+
const totalAmount = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$0 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$0 === void 0 ? void 0 : (_wsAdditionalDetails$1 = _wsAdditionalDetails$0.data) === null || _wsAdditionalDetails$1 === void 0 ? void 0 : _wsAdditionalDetails$1.totalAmount;
|
|
33068
33093
|
if (rebateAmount > totalAmount) {
|
|
33069
33094
|
setShowToast({
|
|
33070
33095
|
isError: false,
|
|
@@ -33073,16 +33098,16 @@ const WSFeeEstimation = _ref => {
|
|
|
33073
33098
|
message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
|
|
33074
33099
|
});
|
|
33075
33100
|
} else {
|
|
33076
|
-
var _wsAdditionalDetails$
|
|
33077
|
-
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33078
|
-
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33101
|
+
var _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17, _wsAdditionalDetails$18, _wsAdditionalDetails$19, _wsAdditionalDetails$20, _wsAdditionalDetails$21, _wsAdditionalDetails$22, _wsAdditionalDetails$23;
|
|
33102
|
+
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$14 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : (_wsAdditionalDetails$15 = _wsAdditionalDetails$14.appDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : _wsAdditionalDetails$15.applicationNo;
|
|
33103
|
+
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$16 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$16 === void 0 ? void 0 : (_wsAdditionalDetails$17 = _wsAdditionalDetails$16.appDetails) === null || _wsAdditionalDetails$17 === void 0 ? void 0 : _wsAdditionalDetails$17.tenantId;
|
|
33079
33104
|
const appAdditionalDetails = {
|
|
33080
|
-
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33105
|
+
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$18 === void 0 ? void 0 : (_wsAdditionalDetails$19 = _wsAdditionalDetails$18.appDetails) === null || _wsAdditionalDetails$19 === void 0 ? void 0 : _wsAdditionalDetails$19.additionalDetails),
|
|
33081
33106
|
...fields
|
|
33082
33107
|
};
|
|
33083
33108
|
wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
|
|
33084
33109
|
const data = {
|
|
33085
|
-
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33110
|
+
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$20 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$20 === void 0 ? void 0 : (_wsAdditionalDetails$21 = _wsAdditionalDetails$20.appDetails) === null || _wsAdditionalDetails$21 === void 0 ? void 0 : _wsAdditionalDetails$21.service) == "WATER" ? [{
|
|
33086
33111
|
applicationNo: applicationNo,
|
|
33087
33112
|
tenantId: tenantId,
|
|
33088
33113
|
waterConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
@@ -33093,14 +33118,14 @@ const WSFeeEstimation = _ref => {
|
|
|
33093
33118
|
}],
|
|
33094
33119
|
isconnectionCalculation: false
|
|
33095
33120
|
};
|
|
33096
|
-
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
33121
|
+
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$22 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$22 === void 0 ? void 0 : (_wsAdditionalDetails$23 = _wsAdditionalDetails$22.appDetails) === null || _wsAdditionalDetails$23 === void 0 ? void 0 : _wsAdditionalDetails$23.service) == "WATER" ? "WS" : "SW";
|
|
33097
33122
|
Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
|
|
33098
33123
|
var _result$Calculation, _result$Calculation$, _result$Calculation$$, _result$Calculation3, _result$Calculation3$, _result$Calculation4, _result$Calculation4$, _result$Calculation5, _result$Calculation5$, _result$Calculation6, _result$Calculation6$, _result$Calculation7, _result$Calculation7$, _result$Calculation8;
|
|
33099
33124
|
if ((result === null || result === void 0 ? void 0 : (_result$Calculation = result.Calculation) === null || _result$Calculation === void 0 ? void 0 : (_result$Calculation$ = _result$Calculation[0]) === null || _result$Calculation$ === void 0 ? void 0 : (_result$Calculation$$ = _result$Calculation$.taxHeadEstimates) === null || _result$Calculation$$ === void 0 ? void 0 : _result$Calculation$$.length) > 0) {
|
|
33100
33125
|
var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
|
|
33101
33126
|
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);
|
|
33102
33127
|
}
|
|
33103
|
-
result.Calculation[0].billSlabData =
|
|
33128
|
+
result.Calculation[0].billSlabData = lodash.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");
|
|
33104
33129
|
const taxHeadEstimates = (result === null || result === void 0 ? void 0 : (_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$.taxHeadEstimates) || [];
|
|
33105
33130
|
const values = taxHeadEstimates.length > 0 ? taxHeadEstimates.map(data => ({
|
|
33106
33131
|
title: data === null || data === void 0 ? void 0 : data.taxHeadCode,
|
|
@@ -33198,7 +33223,7 @@ const WSFeeEstimation = _ref => {
|
|
|
33198
33223
|
key: `CS_INBOX_STATUS_FILTER`,
|
|
33199
33224
|
label: `${t(`CS_INBOX_STATUS_FILTER`)}`,
|
|
33200
33225
|
text: displayedIsPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
33201
|
-
textStyle: !
|
|
33226
|
+
textStyle: !displayedIsPaid ? {
|
|
33202
33227
|
color: "#D83A2F"
|
|
33203
33228
|
} : {
|
|
33204
33229
|
color: "#2E9E8F"
|
|
@@ -33803,7 +33828,7 @@ const checkForNA$1 = value => {
|
|
|
33803
33828
|
return value ? value : "CS_NA";
|
|
33804
33829
|
};
|
|
33805
33830
|
const WSApplicationDetails = () => {
|
|
33806
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$SewerageConnect10, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$WaterConnection14, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect15, _data$SewerageConnect16, _appDetailsData$appli, _data$WaterConnection35, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect31, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect47, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect54, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect62, _data$SewerageConnect63, _data$WaterConnection69, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect64, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$WaterConnection115, _data$WaterConnection116, _data$SewerageConnect110, _data$SewerageConnect111, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection117, _data$WaterConnection118, _data$SewerageConnect112, _data$SewerageConnect113, _data$WaterConnection119, _data$WaterConnection120, _data$SewerageConnect114, _data$SewerageConnect115, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _applicationData$dueV, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect142, _data$SewerageConnect143, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect144, _data$SewerageConnect145, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect146, _data$SewerageConnect147, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect148, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection174, _data$SewerageConnect168, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection178, _data$WaterConnection179, _data$SewerageConnect171, _data$SewerageConnect172, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect173;
|
|
33831
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$SewerageConnect10, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$WaterConnection14, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect15, _data$SewerageConnect16, _appDetailsData$appli, _data$WaterConnection35, _data$WaterConnection36, _data$WaterConnection37, _data$SewerageConnect31, _data$SewerageConnect32, _data$SewerageConnect33, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect42, _data$WaterConnection48, _data$WaterConnection49, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect45, _data$SewerageConnect46, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect47, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect54, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$SewerageConnect57, _data$SewerageConnect58, _data$WaterConnection64, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect59, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect62, _data$SewerageConnect63, _data$WaterConnection69, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect64, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$WaterConnection115, _data$WaterConnection116, _data$SewerageConnect110, _data$SewerageConnect111, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection117, _data$WaterConnection118, _data$SewerageConnect112, _data$SewerageConnect113, _data$WaterConnection119, _data$WaterConnection120, _data$SewerageConnect114, _data$SewerageConnect115, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyT3, _applicationData$dueV, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$WaterConnection143, _data$WaterConnection144, _data$SewerageConnect138, _data$SewerageConnect139, _data$WaterConnection145, _data$WaterConnection146, _data$SewerageConnect140, _data$SewerageConnect141, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect142, _data$SewerageConnect143, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect144, _data$SewerageConnect145, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect146, _data$SewerageConnect147, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect148, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection161, _data$WaterConnection162, _data$WaterConnection163, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection174, _data$SewerageConnect168, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection178, _data$WaterConnection179, _data$SewerageConnect171, _data$SewerageConnect172, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect173;
|
|
33807
33832
|
const getDisconnectionNoticeSearch = function () {
|
|
33808
33833
|
try {
|
|
33809
33834
|
var _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect175, _data$SewerageConnect176;
|
|
@@ -34396,6 +34421,9 @@ const WSApplicationDetails = () => {
|
|
|
34396
34421
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34397
34422
|
label: t("SubLocality"),
|
|
34398
34423
|
text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$subL = propertyAddress.subLocality) === null || _propertyAddress$subL === void 0 ? void 0 : _propertyAddress$subL.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$subL2 = propertyAddress.subLocality) === null || _propertyAddress$subL2 === void 0 ? void 0 : _propertyAddress$subL2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.subLocality)))}`
|
|
34424
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
34425
|
+
label: t("COMMON_COLONY_MCD_CATEGORY"),
|
|
34426
|
+
text: `${t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.colonyMcdCategory))}`
|
|
34399
34427
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34400
34428
|
label: t("STREET_NAME"),
|
|
34401
34429
|
text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.streetName) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.street)))}`
|
|
@@ -34465,13 +34493,16 @@ const WSApplicationDetails = () => {
|
|
|
34465
34493
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34466
34494
|
label: t("WS_BUILT_UP_AREA"),
|
|
34467
34495
|
text: `${t(checkForNA$1(useDetails === null || useDetails === void 0 ? void 0 : useDetails.builtUpArea))}`
|
|
34496
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
34497
|
+
label: t("WS_HEIGHT_OF_THE_BUILDING"),
|
|
34498
|
+
text: `${t(checkForNA$1(useDetails === null || useDetails === void 0 ? void 0 : useDetails.heightOfTheBuilding))}`
|
|
34468
34499
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34469
34500
|
label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
|
|
34470
34501
|
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea === void 0 ? void 0 : _useDetails$SelectYea.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea2 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea2 === void 0 ? void 0 : _useDetails$SelectYea2.value) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea3 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea3 === void 0 ? void 0 : _useDetails$SelectYea3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.SelectYearofConstruction) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct = useDetails.constructionYear) === null || _useDetails$construct === void 0 ? void 0 : _useDetails$construct.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct2 = useDetails.constructionYear) === null || _useDetails$construct2 === void 0 ? void 0 : _useDetails$construct2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.constructionYear)))}`
|
|
34471
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
34502
|
+
}), ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse", "BuiltUp.GroupHousingSociety", "BuiltUp.JJSLUMS", "BuiltUp.IndividualHouse"].includes((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT3 = useDetails.propertyType) === null || _useDetails$propertyT3 === void 0 ? void 0 : _useDetails$propertyT3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType)) ? /*#__PURE__*/React.createElement(Row, {
|
|
34472
34503
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
34473
34504
|
text: `${t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
|
|
34474
|
-
})), /*#__PURE__*/React.createElement(CardHeader, {
|
|
34505
|
+
}) : null), /*#__PURE__*/React.createElement(CardHeader, {
|
|
34475
34506
|
styles: {
|
|
34476
34507
|
fontSize: "28px"
|
|
34477
34508
|
}
|
|
@@ -34486,9 +34517,6 @@ const WSApplicationDetails = () => {
|
|
|
34486
34517
|
}), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
34487
34518
|
label: t("WS_EMPLOYEE_ID"),
|
|
34488
34519
|
text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
|
|
34489
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
34490
|
-
label: t("WS_DATE_OF_RETIREMENT"),
|
|
34491
|
-
text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.dor))}`
|
|
34492
34520
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
34493
34521
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
34494
34522
|
text: `${t(checkForNA$1(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
|
|
@@ -37338,7 +37366,7 @@ const ReSubmitDisconnectionApplication = () => {
|
|
|
37338
37366
|
};
|
|
37339
37367
|
|
|
37340
37368
|
const CheckPage = _ref => {
|
|
37341
|
-
var _value$ConnectionDeta, _value$waterConnectio, _cpt$details12, _cpt$details13, _cpt$details14, _reversedOwners$, _cpt$details15, _cpt$details16, _cpt$details17, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _ConnectionHolderDeta, _ConnectionHolderDeta2, _ConnectionHolderDeta3, _ConnectionHolderDeta4, _ConnectionHolderDeta5, _ConnectionHolderDeta6, _ConnectionHolderDeta7, _ConnectionHolderDeta8, _ConnectionHolderDeta9, _ConnectionHolderDeta0, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2;
|
|
37369
|
+
var _value$ConnectionDeta, _value$waterConnectio, _cpt$details12, _cpt$details13, _cpt$details14, _reversedOwners$, _cpt$details15, _cpt$details16, _cpt$details17, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _ConnectionHolderDeta, _ConnectionHolderDeta2, _ConnectionHolderDeta3, _ConnectionHolderDeta4, _ConnectionHolderDeta5, _ConnectionHolderDeta6, _ConnectionHolderDeta7, _ConnectionHolderDeta8, _ConnectionHolderDeta9, _ConnectionHolderDeta0, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyT3;
|
|
37342
37370
|
let {
|
|
37343
37371
|
onSubmit,
|
|
37344
37372
|
value
|
|
@@ -37642,10 +37670,10 @@ const CheckPage = _ref => {
|
|
|
37642
37670
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
37643
37671
|
label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
|
|
37644
37672
|
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea === void 0 ? void 0 : _useDetails$SelectYea.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea2 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea2 === void 0 ? void 0 : _useDetails$SelectYea2.value) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea3 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea3 === void 0 ? void 0 : _useDetails$SelectYea3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.SelectYearofConstruction) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct = useDetails.constructionYear) === null || _useDetails$construct === void 0 ? void 0 : _useDetails$construct.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct2 = useDetails.constructionYear) === null || _useDetails$construct2 === void 0 ? void 0 : _useDetails$construct2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.constructionYear)))}`
|
|
37645
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
37673
|
+
}), ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse", "BuiltUp.GroupHousingSociety", "BuiltUp.JJSLUMS", "BuiltUp.IndividualHouse"].includes((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT3 = useDetails.propertyType) === null || _useDetails$propertyT3 === void 0 ? void 0 : _useDetails$propertyT3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType)) ? /*#__PURE__*/React.createElement(Row, {
|
|
37646
37674
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
37647
37675
|
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
|
|
37648
|
-
})), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
37676
|
+
}) : null), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
37649
37677
|
style: {
|
|
37650
37678
|
marginTop: "10px",
|
|
37651
37679
|
marginBottom: "30px"
|
|
@@ -37659,9 +37687,6 @@ const CheckPage = _ref => {
|
|
|
37659
37687
|
}), (djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.isDjbEmployee) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
37660
37688
|
label: t("WS_EMPLOYEE_ID"),
|
|
37661
37689
|
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.employeeId))}`
|
|
37662
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
37663
|
-
label: t("WS_DATE_OF_RETIREMENT"),
|
|
37664
|
-
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.dor))}`
|
|
37665
37690
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
37666
37691
|
label: t("WS_EMPLOYEE_DESIGNATION"),
|
|
37667
37692
|
text: `${t(checkForNA(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.designation))}`
|
|
@@ -40154,92 +40179,12 @@ const WSInfoPage = () => {
|
|
|
40154
40179
|
}
|
|
40155
40180
|
}
|
|
40156
40181
|
`), /*#__PURE__*/React.createElement("div", {
|
|
40157
|
-
className: "ws-info-header-card"
|
|
40158
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
40159
40182
|
className: "ws-header-badge-row"
|
|
40160
40183
|
}, /*#__PURE__*/React.createElement("span", {
|
|
40161
40184
|
className: "ws-service-tag"
|
|
40162
|
-
}, t("
|
|
40185
|
+
}, t("Apply For New Connection")), /*#__PURE__*/React.createElement("span", {
|
|
40163
40186
|
className: "ws-portal-tag"
|
|
40164
|
-
}, isEmployee ? t("Employee Portal") : t("Citizen Services"))), /*#__PURE__*/React.createElement("
|
|
40165
|
-
className: "ws-page-title"
|
|
40166
|
-
}, t("Apply For New Connection")), /*#__PURE__*/React.createElement("p", {
|
|
40167
|
-
className: "ws-page-subtitle"
|
|
40168
|
-
}, t("Submit an application for a new domestic, commercial, or industrial water/sewerage connection with Delhi Jal Board.")), /*#__PURE__*/React.createElement("div", {
|
|
40169
|
-
className: "ws-guidance-box"
|
|
40170
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
40171
|
-
className: "ws-guidance-icon-wrap"
|
|
40172
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
40173
|
-
width: "24",
|
|
40174
|
-
height: "24",
|
|
40175
|
-
viewBox: "0 0 24 24",
|
|
40176
|
-
fill: "none",
|
|
40177
|
-
stroke: "#1a67a3",
|
|
40178
|
-
strokeWidth: "2",
|
|
40179
|
-
strokeLinecap: "round",
|
|
40180
|
-
strokeLinejoin: "round"
|
|
40181
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
40182
|
-
cx: "12",
|
|
40183
|
-
cy: "12",
|
|
40184
|
-
r: "10"
|
|
40185
|
-
}), /*#__PURE__*/React.createElement("line", {
|
|
40186
|
-
x1: "12",
|
|
40187
|
-
y1: "16",
|
|
40188
|
-
x2: "12",
|
|
40189
|
-
y2: "12"
|
|
40190
|
-
}), /*#__PURE__*/React.createElement("line", {
|
|
40191
|
-
x1: "12",
|
|
40192
|
-
y1: "8",
|
|
40193
|
-
x2: "12.01",
|
|
40194
|
-
y2: "8"
|
|
40195
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
40196
|
-
className: "ws-guidance-text-wrap"
|
|
40197
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
40198
|
-
className: "ws-guidance-title"
|
|
40199
|
-
}, t("Before You Begin: What You Need To Know")), /*#__PURE__*/React.createElement("div", {
|
|
40200
|
-
className: "ws-guidance-desc"
|
|
40201
|
-
}, t("Applying for a new connection takes about 10–20 minutes. Water and sewerage connections are linked to a registered Property ID. Please verify your property below, review the required information checklist, and ensure you have all supporting documents ready before starting.")), /*#__PURE__*/React.createElement("div", {
|
|
40202
|
-
className: "ws-guidance-chips"
|
|
40203
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
40204
|
-
className: "ws-chip"
|
|
40205
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
40206
|
-
width: "14",
|
|
40207
|
-
height: "14",
|
|
40208
|
-
viewBox: "0 0 24 24",
|
|
40209
|
-
fill: "none",
|
|
40210
|
-
stroke: "currentColor",
|
|
40211
|
-
strokeWidth: "2"
|
|
40212
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
40213
|
-
cx: "12",
|
|
40214
|
-
cy: "12",
|
|
40215
|
-
r: "10"
|
|
40216
|
-
}), /*#__PURE__*/React.createElement("polyline", {
|
|
40217
|
-
points: "12 6 12 12 16 14"
|
|
40218
|
-
})), /*#__PURE__*/React.createElement("span", null, t("Estimated time: 10-20 minutes"))), /*#__PURE__*/React.createElement("div", {
|
|
40219
|
-
className: "ws-chip"
|
|
40220
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
40221
|
-
width: "14",
|
|
40222
|
-
height: "14",
|
|
40223
|
-
viewBox: "0 0 24 24",
|
|
40224
|
-
fill: "none",
|
|
40225
|
-
stroke: "currentColor",
|
|
40226
|
-
strokeWidth: "2"
|
|
40227
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
40228
|
-
d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"
|
|
40229
|
-
})), /*#__PURE__*/React.createElement("span", null, t("Requires Registered Property ID"))), /*#__PURE__*/React.createElement("div", {
|
|
40230
|
-
className: "ws-chip"
|
|
40231
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
40232
|
-
width: "14",
|
|
40233
|
-
height: "14",
|
|
40234
|
-
viewBox: "0 0 24 24",
|
|
40235
|
-
fill: "none",
|
|
40236
|
-
stroke: "currentColor",
|
|
40237
|
-
strokeWidth: "2"
|
|
40238
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
40239
|
-
d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
|
|
40240
|
-
}), /*#__PURE__*/React.createElement("polyline", {
|
|
40241
|
-
points: "14 2 14 8 20 8"
|
|
40242
|
-
})), /*#__PURE__*/React.createElement("span", null, t("Keep Scanned Documents Ready (≤ 5MB)"))))))), /*#__PURE__*/React.createElement("div", {
|
|
40187
|
+
}, isEmployee ? t("Employee Portal") : t("Citizen Services"))), /*#__PURE__*/React.createElement("div", {
|
|
40243
40188
|
className: "ws-card"
|
|
40244
40189
|
}, /*#__PURE__*/React.createElement("div", {
|
|
40245
40190
|
className: "ws-step-header"
|
|
@@ -40584,8 +40529,6 @@ const WSInfoPage = () => {
|
|
|
40584
40529
|
className: "ws-tag-item"
|
|
40585
40530
|
}, t("Employee ID")), /*#__PURE__*/React.createElement("span", {
|
|
40586
40531
|
className: "ws-tag-item"
|
|
40587
|
-
}, t("Date of Retirement")), /*#__PURE__*/React.createElement("span", {
|
|
40588
|
-
className: "ws-tag-item"
|
|
40589
40532
|
}, t("Employee Designation")))))), /*#__PURE__*/React.createElement("div", {
|
|
40590
40533
|
className: "ws-checklist-column"
|
|
40591
40534
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -42424,7 +42367,7 @@ const FileUploadField = _ref6 => {
|
|
|
42424
42367
|
})))));
|
|
42425
42368
|
};
|
|
42426
42369
|
const NewApplication = () => {
|
|
42427
|
-
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch4, _watch6, _watch8, _watch0, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$
|
|
42370
|
+
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch4, _watch6, _watch8, _watch0, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$useDetail12, _formValues$useDetail13, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
|
|
42428
42371
|
const {
|
|
42429
42372
|
t
|
|
42430
42373
|
} = useTranslation();
|
|
@@ -42583,6 +42526,8 @@ const NewApplication = () => {
|
|
|
42583
42526
|
const isDjbEmployee = watch("djbEmployee.isDjbEmployee");
|
|
42584
42527
|
const isGovernmentEmployee = watch("governmentEmployee.isGovernmentEmployee");
|
|
42585
42528
|
const selectedPropertyType = watch("useDetails.propertyType");
|
|
42529
|
+
const dwellingPropertyTypes = ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse", "BuiltUp.GroupHousingSociety", "BuiltUp.JJSLUMS", "BuiltUp.IndividualHouse"];
|
|
42530
|
+
const isDwellingUnit = dwellingPropertyTypes.includes(selectedPropertyType === null || selectedPropertyType === void 0 ? void 0 : selectedPropertyType.code);
|
|
42586
42531
|
const selectedLocality = watch("propertyAddress.locality");
|
|
42587
42532
|
const selectedSubLocality = watch("propertyAddress.subLocality");
|
|
42588
42533
|
const pCode = watch("propertyAddress.pinCode");
|
|
@@ -43850,20 +43795,6 @@ const NewApplication = () => {
|
|
|
43850
43795
|
required: isDjbEmployee ? "Employee ID is required." : false
|
|
43851
43796
|
}),
|
|
43852
43797
|
name: "djbEmployee.employeeId"
|
|
43853
|
-
})), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
43854
|
-
error: getFieldError("djbEmployee.retirementDate"),
|
|
43855
|
-
label: t("WS_DATE_OF_RETIREMENT"),
|
|
43856
|
-
required: isDjbEmployee
|
|
43857
|
-
}, /*#__PURE__*/React.createElement(Controller, {
|
|
43858
|
-
control: control,
|
|
43859
|
-
name: "djbEmployee.retirementDate",
|
|
43860
|
-
rules: {
|
|
43861
|
-
required: isDjbEmployee ? "Date of Retirement is required." : false
|
|
43862
|
-
},
|
|
43863
|
-
render: props => /*#__PURE__*/React.createElement(DatePicker, {
|
|
43864
|
-
date: props.value,
|
|
43865
|
-
onChange: props.onChange
|
|
43866
|
-
})
|
|
43867
43798
|
})), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
43868
43799
|
error: getFieldError("djbEmployee.officeNameAndAddress"),
|
|
43869
43800
|
isFullWidth: true,
|
|
@@ -44196,7 +44127,7 @@ const NewApplication = () => {
|
|
|
44196
44127
|
select: props.onChange,
|
|
44197
44128
|
t: t
|
|
44198
44129
|
})
|
|
44199
|
-
})), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
44130
|
+
})), isDwellingUnit ? /*#__PURE__*/React.createElement(FieldBlock, {
|
|
44200
44131
|
error: getFieldError("useDetails.NumberofDwellingUnits"),
|
|
44201
44132
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
44202
44133
|
required: true
|
|
@@ -44207,10 +44138,10 @@ const NewApplication = () => {
|
|
|
44207
44138
|
value: DECIMAL_PATTERN$2,
|
|
44208
44139
|
message: "Enter a valid numeric value."
|
|
44209
44140
|
},
|
|
44210
|
-
required: "
|
|
44141
|
+
required: "Number of Dwelling Units is required."
|
|
44211
44142
|
}),
|
|
44212
44143
|
name: "useDetails.NumberofDwellingUnits"
|
|
44213
|
-
})), /*#__PURE__*/React.createElement(FieldBlock, {
|
|
44144
|
+
})) : null, /*#__PURE__*/React.createElement(FieldBlock, {
|
|
44214
44145
|
error: getFieldError("useDetails.NumberofRooms"),
|
|
44215
44146
|
label: t("WS_NUMBER_OF_ROOMS"),
|
|
44216
44147
|
required: true
|
|
@@ -44403,7 +44334,7 @@ const NewApplication = () => {
|
|
|
44403
44334
|
control: control,
|
|
44404
44335
|
name: "documents.otherDocument",
|
|
44405
44336
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
44406
|
-
option: OTHER_DOCUMENTS_OPTIONS,
|
|
44337
|
+
option: (selectedApplicantType === null || selectedApplicantType === void 0 ? void 0 : selectedApplicantType.code) === "TENANT" ? OTHER_DOCUMENTS_OPTIONS : OTHER_DOCUMENTS_OPTIONS.filter(opt => opt.code !== "NOC_FROM_OWNER"),
|
|
44407
44338
|
optionKey: "name",
|
|
44408
44339
|
selected: props.value,
|
|
44409
44340
|
select: props.onChange,
|
|
@@ -44622,13 +44553,10 @@ const NewApplication = () => {
|
|
|
44622
44553
|
}), formValues !== null && formValues !== void 0 && (_formValues$djbEmploy2 = formValues.djbEmployee) !== null && _formValues$djbEmploy2 !== void 0 && _formValues$djbEmploy2.isDjbEmployee ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44623
44554
|
label: "Employee ID",
|
|
44624
44555
|
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$djbEmploy3 = formValues.djbEmployee) === null || _formValues$djbEmploy3 === void 0 ? void 0 : _formValues$djbEmploy3.employeeId
|
|
44625
|
-
}), /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44626
|
-
label: "Date of Retirement",
|
|
44627
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$djbEmploy4 = formValues.djbEmployee) === null || _formValues$djbEmploy4 === void 0 ? void 0 : _formValues$djbEmploy4.retirementDate
|
|
44628
44556
|
}), /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44629
44557
|
isFullWidth: true,
|
|
44630
44558
|
label: "Office Name & Address",
|
|
44631
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
44559
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$djbEmploy4 = formValues.djbEmployee) === null || _formValues$djbEmploy4 === void 0 ? void 0 : _formValues$djbEmploy4.officeNameAndAddress
|
|
44632
44560
|
})) : null), /*#__PURE__*/React.createElement(SectionCard, {
|
|
44633
44561
|
description: "Divyangjan/Person with Disability declaration.",
|
|
44634
44562
|
isOpen: collapsedSections.disability,
|
|
@@ -44715,18 +44643,18 @@ const NewApplication = () => {
|
|
|
44715
44643
|
}), /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44716
44644
|
label: "Number of Floors",
|
|
44717
44645
|
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail5 = formValues.useDetails) === null || _formValues$useDetail5 === void 0 ? void 0 : _formValues$useDetail5.noOfFloors
|
|
44718
|
-
}), /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44646
|
+
}), dwellingPropertyTypes.includes(formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail6 = formValues.useDetails) === null || _formValues$useDetail6 === void 0 ? void 0 : (_formValues$useDetail7 = _formValues$useDetail6.propertyType) === null || _formValues$useDetail7 === void 0 ? void 0 : _formValues$useDetail7.code) ? /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44719
44647
|
label: "Number of Dwelling Units",
|
|
44720
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
44721
|
-
}), (formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
44648
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail8 = formValues.useDetails) === null || _formValues$useDetail8 === void 0 ? void 0 : _formValues$useDetail8.NumberofDwellingUnits
|
|
44649
|
+
}) : null, (formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail9 = formValues.useDetails) === null || _formValues$useDetail9 === void 0 ? void 0 : (_formValues$useDetail0 = _formValues$useDetail9.propertyType) === null || _formValues$useDetail0 === void 0 ? void 0 : _formValues$useDetail0.code) === "HOSPITAL" || (formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail1 = formValues.useDetails) === null || _formValues$useDetail1 === void 0 ? void 0 : (_formValues$useDetail10 = _formValues$useDetail1.propertyType) === null || _formValues$useDetail10 === void 0 ? void 0 : _formValues$useDetail10.code) === "HOSPITAL_NURSING_HOME" ? /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44722
44650
|
label: "No. of Beds",
|
|
44723
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
44651
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail11 = formValues.useDetails) === null || _formValues$useDetail11 === void 0 ? void 0 : _formValues$useDetail11.hospitalBeds
|
|
44724
44652
|
}) : null, /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44725
44653
|
label: "Year of Construction",
|
|
44726
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
44654
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail12 = formValues.useDetails) === null || _formValues$useDetail12 === void 0 ? void 0 : _formValues$useDetail12.SelectYearofConstruction
|
|
44727
44655
|
}), /*#__PURE__*/React.createElement(PreviewItem, {
|
|
44728
44656
|
label: "Water Connection Usage Type",
|
|
44729
|
-
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$
|
|
44657
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$useDetail13 = formValues.useDetails) === null || _formValues$useDetail13 === void 0 ? void 0 : _formValues$useDetail13.WaterConnectionUsageType
|
|
44730
44658
|
})), /*#__PURE__*/React.createElement(SectionCard, {
|
|
44731
44659
|
description: "Uploaded supporting documents.",
|
|
44732
44660
|
isOpen: collapsedSections.documents,
|
|
@@ -52494,7 +52422,7 @@ const ApplicationDetails = props => {
|
|
|
52494
52422
|
};
|
|
52495
52423
|
|
|
52496
52424
|
const ApplicationDetails$1 = () => {
|
|
52497
|
-
var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$p8, _applicationDetails$p9, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$
|
|
52425
|
+
var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _reciept_data$Payment, _applicationDetails$a0, _applicationDetails$p8, _applicationDetails$p9, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a23, _applicationDetails$a24, _reciept_data$Payment3, _applicationDetails$p17, _applicationDetails$p18, _applicationDetails$p19, _applicationDetails$p20, _applicationDetails$p21, _applicationDetails$p22;
|
|
52498
52426
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
52499
52427
|
try {
|
|
52500
52428
|
let response = null;
|
|
@@ -52538,7 +52466,7 @@ const ApplicationDetails$1 = () => {
|
|
|
52538
52466
|
const [showToast, setShowToast] = useState(null);
|
|
52539
52467
|
const [showWaringToast, setShowWaringToast] = useState(null);
|
|
52540
52468
|
const [showOptions, setShowOptions] = useState(false);
|
|
52541
|
-
let filters = getQueryStringParams(location.search);
|
|
52469
|
+
let filters = getQueryStringParams(window.location.search);
|
|
52542
52470
|
const applicationNumber = filters === null || filters === void 0 ? void 0 : filters.applicationNumber;
|
|
52543
52471
|
const serviceType = filters === null || filters === void 0 ? void 0 : filters.service;
|
|
52544
52472
|
const menuRef = useRef();
|
|
@@ -52655,6 +52583,11 @@ const ApplicationDetails$1 = () => {
|
|
|
52655
52583
|
};
|
|
52656
52584
|
let dowloadOptions = [],
|
|
52657
52585
|
appStatus = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.applicationStatus) || "";
|
|
52586
|
+
const isFeePaid = (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.length) > 0 || appStatus && appStatus !== "INITIATED" && appStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && appStatus !== "PENDING_FOR_CITIZEN_ACTION" && appStatus !== "PENDING_FOR_FIELD_INSPECTION" && appStatus !== "PENDING_FOR_PAYMENT" && appStatus !== "PENDING_FOR_FINAL_PAYMENT" && appStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" && appStatus !== "PENDING_APPROVAL_FOR_MUTATION";
|
|
52587
|
+
const feeEstimationSection = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a0 = applicationDetails.applicationDetails) === null || _applicationDetails$a0 === void 0 ? void 0 : _applicationDetails$a0.find(section => (section === null || section === void 0 ? void 0 : section.title) === "WS_TASK_DETAILS_FEE_ESTIMATE");
|
|
52588
|
+
if (feeEstimationSection !== null && feeEstimationSection !== void 0 && feeEstimationSection.additionalDetails && isFeePaid) {
|
|
52589
|
+
feeEstimationSection.additionalDetails.isPaid = true;
|
|
52590
|
+
}
|
|
52658
52591
|
if (workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.data && (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) === "NewWS1" && appStatus === "PENDING_FOR_BILLING_CLERK_REVIEW") {
|
|
52659
52592
|
var _applicationDetails$p0, _applicationDetails$p1, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3;
|
|
52660
52593
|
const plotArea = Number((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p0 = applicationDetails.propertyDetails) === null || _applicationDetails$p0 === void 0 ? void 0 : (_applicationDetails$p1 = _applicationDetails$p0.additionalDetails) === null || _applicationDetails$p1 === void 0 ? void 0 : _applicationDetails$p1.plotArea) ?? 0);
|
|
@@ -52690,8 +52623,8 @@ const ApplicationDetails$1 = () => {
|
|
|
52690
52623
|
};
|
|
52691
52624
|
}
|
|
52692
52625
|
if ((action === null || action === void 0 ? void 0 : action.action) === "RESUBMIT_APPLICATION") {
|
|
52693
|
-
var _applicationDetails$
|
|
52694
|
-
const isMutation = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
52626
|
+
var _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$p10, _applicationDetails$p11, _servicesMasterData$w, _userConfig$, _userConfig$2;
|
|
52627
|
+
const isMutation = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a1 = applicationDetails.applicationData) === null || _applicationDetails$a1 === void 0 ? void 0 : (_applicationDetails$a10 = _applicationDetails$a1.applicationType) === null || _applicationDetails$a10 === void 0 ? void 0 : _applicationDetails$a10.includes("MUTATION");
|
|
52695
52628
|
let pathName = isMutation ? `/digit-ui/employee/ws/mutation-application?applicationNumber=${applicationNumber}&tenantId=${tenantId}&service=${serviceType}&propertyId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p10 = applicationDetails.propertyDetails) === null || _applicationDetails$p10 === void 0 ? void 0 : _applicationDetails$p10.propertyId}` : `/digit-ui/employee/ws/edit-application?applicationNumber=${applicationNumber}&service=${serviceType}&propertyId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p11 = applicationDetails.propertyDetails) === null || _applicationDetails$p11 === void 0 ? void 0 : _applicationDetails$p11.propertyId}`;
|
|
52696
52629
|
const userConfig = (servicesMasterData === null || servicesMasterData === void 0 ? void 0 : (_servicesMasterData$w = servicesMasterData["ws-services-masters"]) === null || _servicesMasterData$w === void 0 ? void 0 : _servicesMasterData$w.WSEditApplicationByConfigUser) || [];
|
|
52697
52630
|
const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$ = userConfig[0]) === null || _userConfig$ === void 0 ? void 0 : _userConfig$.roles) || [];
|
|
@@ -52725,8 +52658,8 @@ const ApplicationDetails$1 = () => {
|
|
|
52725
52658
|
});
|
|
52726
52659
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.actionState) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.nextActions) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.forEach(action => {
|
|
52727
52660
|
if ((action === null || action === void 0 ? void 0 : action.action) === "EDIT") {
|
|
52728
|
-
var _applicationDetails$
|
|
52729
|
-
const isMutation = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
52661
|
+
var _applicationDetails$a11, _applicationDetails$a12, _applicationDetails$p14, _applicationDetails$p15, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
|
|
52662
|
+
const isMutation = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a11 = applicationDetails.applicationData) === null || _applicationDetails$a11 === void 0 ? void 0 : (_applicationDetails$a12 = _applicationDetails$a11.applicationType) === null || _applicationDetails$a12 === void 0 ? void 0 : _applicationDetails$a12.includes("MUTATION");
|
|
52730
52663
|
let pathName = isMutation ? `/digit-ui/employee/ws/mutation-application?applicationNumber=${applicationNumber}&tenantId=${tenantId}&service=${serviceType}&propertyId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p14 = applicationDetails.propertyDetails) === null || _applicationDetails$p14 === void 0 ? void 0 : _applicationDetails$p14.propertyId}` : `/digit-ui/employee/ws/edit-application?applicationNumber=${applicationNumber}&service=${serviceType}&propertyId=${applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p15 = applicationDetails.propertyDetails) === null || _applicationDetails$p15 === void 0 ? void 0 : _applicationDetails$p15.propertyId}`;
|
|
52731
52664
|
const userConfig = (servicesMasterData === null || servicesMasterData === void 0 ? void 0 : (_servicesMasterData$w2 = servicesMasterData["ws-services-masters"]) === null || _servicesMasterData$w2 === void 0 ? void 0 : _servicesMasterData$w2.WSEditApplicationByConfigUser) || [];
|
|
52732
52665
|
const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$3 = userConfig[0]) === null || _userConfig$3 === void 0 ? void 0 : _userConfig$3.roles) || [];
|
|
@@ -52807,10 +52740,10 @@ const ApplicationDetails$1 = () => {
|
|
|
52807
52740
|
const oldApplication = serviceType === "WATER" ? oldData === null || oldData === void 0 ? void 0 : (_oldData$WaterConnect = oldData.WaterConnection) === null || _oldData$WaterConnect === void 0 ? void 0 : _oldData$WaterConnect[(oldData === null || oldData === void 0 ? void 0 : (_oldData$WaterConnect2 = oldData.WaterConnection) === null || _oldData$WaterConnect2 === void 0 ? void 0 : _oldData$WaterConnect2.length) - 1] : oldData === null || oldData === void 0 ? void 0 : (_oldData$SewerageConn = oldData.SewerageConnections) === null || _oldData$SewerageConn === void 0 ? void 0 : _oldData$SewerageConn[(oldData === null || oldData === void 0 ? void 0 : (_oldData$SewerageConn2 = oldData.SewerageConnections) === null || _oldData$SewerageConn2 === void 0 ? void 0 : _oldData$SewerageConn2.length) - 1];
|
|
52808
52741
|
const handleDownloadPdf = function () {
|
|
52809
52742
|
try {
|
|
52810
|
-
var _applicationDetails$
|
|
52811
|
-
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
52743
|
+
var _applicationDetails$a13, _applicationDetails$a14, _applicationDetails$a15;
|
|
52744
|
+
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a13 = applicationDetails.applicationData) === null || _applicationDetails$a13 === void 0 ? void 0 : _applicationDetails$a13.tenantId;
|
|
52812
52745
|
let result = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
|
|
52813
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
52746
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a14 = applicationDetails.applicationData) !== null && _applicationDetails$a14 !== void 0 && (_applicationDetails$a15 = _applicationDetails$a14.applicationType) !== null && _applicationDetails$a15 !== void 0 && _applicationDetails$a15.includes("MODIFY_")) {
|
|
52814
52747
|
const PDFdata = getWSAcknowledgementData$1({
|
|
52815
52748
|
...result
|
|
52816
52749
|
}, {
|
|
@@ -52832,10 +52765,10 @@ const ApplicationDetails$1 = () => {
|
|
|
52832
52765
|
};
|
|
52833
52766
|
const handleEstimateDownload = function () {
|
|
52834
52767
|
try {
|
|
52835
|
-
const _temp2 = function (_applicationDetails$
|
|
52836
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
52837
|
-
var _applicationDetails$
|
|
52838
|
-
getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
52768
|
+
const _temp2 = function (_applicationDetails$a16, _applicationDetails$a17) {
|
|
52769
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a16 = applicationDetails.applicationData) !== null && _applicationDetails$a16 !== void 0 && (_applicationDetails$a17 = _applicationDetails$a16.additionalDetails) !== null && _applicationDetails$a17 !== void 0 && _applicationDetails$a17.estimationFileStoreId) {
|
|
52770
|
+
var _applicationDetails$a18, _applicationDetails$a19;
|
|
52771
|
+
getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a18 = applicationDetails.applicationData) === null || _applicationDetails$a18 === void 0 ? void 0 : (_applicationDetails$a19 = _applicationDetails$a18.additionalDetails) === null || _applicationDetails$a19 === void 0 ? void 0 : _applicationDetails$a19.estimationFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
|
|
52839
52772
|
} else {
|
|
52840
52773
|
const warningCount = sessionStorage.getItem("WARINIG_COUNT") || "0";
|
|
52841
52774
|
const warningCountDetails = JSON.parse(warningCount);
|
|
@@ -52895,8 +52828,8 @@ const ApplicationDetails$1 = () => {
|
|
|
52895
52828
|
order: 2,
|
|
52896
52829
|
label: t("WS_SANCTION_LETTER"),
|
|
52897
52830
|
onClick: () => {
|
|
52898
|
-
var _applicationDetails$
|
|
52899
|
-
return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
52831
|
+
var _applicationDetails$a20, _applicationDetails$a21;
|
|
52832
|
+
return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a20 = applicationDetails.applicationData) === null || _applicationDetails$a20 === void 0 ? void 0 : (_applicationDetails$a21 = _applicationDetails$a20.additionalDetails) === null || _applicationDetails$a21 === void 0 ? void 0 : _applicationDetails$a21.sanctionFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
|
|
52900
52833
|
}
|
|
52901
52834
|
};
|
|
52902
52835
|
const applicationDownloadObject = {
|
|
@@ -52908,8 +52841,8 @@ const ApplicationDetails$1 = () => {
|
|
|
52908
52841
|
order: 4,
|
|
52909
52842
|
label: t("DOWNLOAD_RECEIPT_HEADER"),
|
|
52910
52843
|
onClick: () => {
|
|
52911
|
-
var _reciept_data$
|
|
52912
|
-
return getRecieptSearch(Digit.ULBService.getStateId(), reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$
|
|
52844
|
+
var _reciept_data$Payment2, _applicationDetails$a22;
|
|
52845
|
+
return getRecieptSearch(Digit.ULBService.getStateId(), reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2[0], applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a22 = applicationDetails.applicationData) === null || _applicationDetails$a22 === void 0 ? void 0 : _applicationDetails$a22.applicationNo, receiptKey);
|
|
52913
52846
|
}
|
|
52914
52847
|
};
|
|
52915
52848
|
switch (appStatus) {
|
|
@@ -52924,7 +52857,7 @@ const ApplicationDetails$1 = () => {
|
|
|
52924
52857
|
break;
|
|
52925
52858
|
case "PENDING_FOR_CONNECTION_ACTIVATION":
|
|
52926
52859
|
case "CONNECTION_ACTIVATED":
|
|
52927
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
52860
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a23 = applicationDetails.applicationData) !== null && _applicationDetails$a23 !== void 0 && (_applicationDetails$a24 = _applicationDetails$a23.applicationType) !== null && _applicationDetails$a24 !== void 0 && _applicationDetails$a24.includes("NEW_") && (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment3 = reciept_data.Payments) === null || _reciept_data$Payment3 === void 0 ? void 0 : _reciept_data$Payment3.length) > 0) dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject, appFeeDownloadReceipt];else dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject];
|
|
52928
52861
|
break;
|
|
52929
52862
|
case "REJECTED":
|
|
52930
52863
|
dowloadOptions = [applicationDownloadObject];
|
|
@@ -53332,15 +53265,53 @@ const GetConnectionDetails = () => {
|
|
|
53332
53265
|
}));
|
|
53333
53266
|
};
|
|
53334
53267
|
|
|
53268
|
+
const newConfig$2 = [{
|
|
53269
|
+
hideInCitizen: true,
|
|
53270
|
+
body: [{
|
|
53271
|
+
body: [{
|
|
53272
|
+
type: "component",
|
|
53273
|
+
key: "connectionDetails",
|
|
53274
|
+
component: "WSActivationConnectionDetails",
|
|
53275
|
+
withoutLabel: true
|
|
53276
|
+
}]
|
|
53277
|
+
}, {
|
|
53278
|
+
body: [{
|
|
53279
|
+
type: "component",
|
|
53280
|
+
key: "plumberDetails",
|
|
53281
|
+
component: "WSActivationPlumberDetails",
|
|
53282
|
+
withoutLabel: true
|
|
53283
|
+
}]
|
|
53284
|
+
}, {
|
|
53285
|
+
body: [{
|
|
53286
|
+
type: "component",
|
|
53287
|
+
key: "activationDetails",
|
|
53288
|
+
component: "WSActivationDetails",
|
|
53289
|
+
withoutLabel: true
|
|
53290
|
+
}]
|
|
53291
|
+
}, {
|
|
53292
|
+
body: [{
|
|
53293
|
+
type: "component",
|
|
53294
|
+
key: "comments",
|
|
53295
|
+
component: "WSActivationCommentsDetails",
|
|
53296
|
+
withoutLabel: true
|
|
53297
|
+
}]
|
|
53298
|
+
}, {
|
|
53299
|
+
body: [{
|
|
53300
|
+
type: "component",
|
|
53301
|
+
key: "supportingDocuments",
|
|
53302
|
+
component: "WSActivationSupportingDocuments",
|
|
53303
|
+
withoutLabel: true
|
|
53304
|
+
}]
|
|
53305
|
+
}]
|
|
53306
|
+
}];
|
|
53307
|
+
|
|
53335
53308
|
const ActivateConnection = () => {
|
|
53336
|
-
var _Digit$SessionStorage, _state, _details, _details2, _state2, _state2$data, _state3, _state3$data, _state4, _state4$data, _state5, _state5$data,
|
|
53309
|
+
var _Digit$SessionStorage, _state, _details, _details2, _state2, _state2$data, _state3, _state3$data, _state4, _state4$data, _state5, _state5$data, _ref, _ref$split$, _state6, _state6$data, _state7, _state7$data, _state8, _state8$data, _state9, _state9$data, _state0, _state0$data, _state1, _state1$data, _state10, _state10$data, _state11, _state11$data, _state12, _state12$data, _state13, _state13$data, _state14, _state14$data, _state15, _state15$data, _state15$data$plumber, _state15$data$plumber2, _state16, _state16$data, _state16$data$plumber, _state16$data$plumber2, _state17, _state17$data, _state17$data$plumber, _state17$data$plumber2, _state18, _state18$data, _state18$data$additio, _state19, _state19$data, _state19$data$additio, _state19$data$additio2, _state20, _state20$data, _state20$data$additio, _state21, _state21$data, _state22, _state22$data, _state23, _state23$data, _state23$data$connect, _state24, _state24$data, _state24$data$connect, _state25, _state25$data, _state25$data$additio, _state25$data$additio2, _state26, _state26$data, _state26$data$additio, _state26$data$additio2, _state27, _state27$data, _state28, _state28$data, _state29, _state29$data, _state30, _state30$data, _state31, _state31$data, _state31$data$additio, _state32, _state32$data, _state33, _state33$data, _state34, _state34$data, _state35, _state35$data;
|
|
53337
53310
|
const {
|
|
53338
53311
|
t
|
|
53339
53312
|
} = useTranslation();
|
|
53340
|
-
|
|
53341
|
-
|
|
53342
|
-
} = useLocation();
|
|
53343
|
-
state = state ? typeof state === "string" ? JSON.parse(state) : state : {};
|
|
53313
|
+
const location = useLocation();
|
|
53314
|
+
let state = location !== null && location !== void 0 && location.state ? typeof location.state === "string" ? JSON.parse(location.state) : location.state : {};
|
|
53344
53315
|
const history = useHistory();
|
|
53345
53316
|
let filters = getQueryStringParams(location.search);
|
|
53346
53317
|
const [canSubmit, setSubmitValve] = useState(false);
|
|
@@ -53352,8 +53323,7 @@ const ActivateConnection = () => {
|
|
|
53352
53323
|
body: []
|
|
53353
53324
|
});
|
|
53354
53325
|
const stateId = Digit.ULBService.getStateId();
|
|
53355
|
-
let tenantId = Digit.ULBService.getCurrentTenantId();
|
|
53356
|
-
tenantId ? tenantId : (_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code;
|
|
53326
|
+
let tenantId = Digit.ULBService.getCurrentTenantId() || ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code);
|
|
53357
53327
|
let {
|
|
53358
53328
|
data: newConfig,
|
|
53359
53329
|
isLoading
|
|
@@ -53384,47 +53354,51 @@ const ActivateConnection = () => {
|
|
|
53384
53354
|
const waterSourceSubDataWithUS = waterSourceSubDataWithClone ? stringReplaceAll(waterSourceSubDataWithClone === null || waterSourceSubDataWithClone === void 0 ? void 0 : waterSourceSubDataWithClone.toUpperCase(), " ", "_") : "";
|
|
53385
53355
|
const waterSourceSubDataWithCma = waterSourceSubDataWithUS ? stringReplaceAll(waterSourceSubDataWithUS === null || waterSourceSubDataWithUS === void 0 ? void 0 : waterSourceSubDataWithUS.toUpperCase(), ".", "_") : "";
|
|
53386
53356
|
const connectionDetails = (filters === null || filters === void 0 ? void 0 : filters.service) === "WATER" ? {
|
|
53387
|
-
connectionType:
|
|
53388
|
-
code:
|
|
53389
|
-
i18nKey:
|
|
53357
|
+
connectionType: {
|
|
53358
|
+
code: "Metered",
|
|
53359
|
+
i18nKey: "WS_CONNECTIONTYPE_METERED",
|
|
53360
|
+
name: "Metered"
|
|
53361
|
+
},
|
|
53362
|
+
waterSource: (_state4 = state) !== null && _state4 !== void 0 && (_state4$data = _state4.data) !== null && _state4$data !== void 0 && _state4$data.waterSource || "GROUND.WELL" ? {
|
|
53363
|
+
code: ((_state5 = state) === null || _state5 === void 0 ? void 0 : (_state5$data = _state5.data) === null || _state5$data === void 0 ? void 0 : _state5$data.waterSource) || "GROUND.WELL",
|
|
53364
|
+
i18nKey: `WS_SERVICES_MASTERS_WATERSOURCE_${stringReplaceAll((_ref = ((_state6 = state) === null || _state6 === void 0 ? void 0 : (_state6$data = _state6.data) === null || _state6$data === void 0 ? void 0 : _state6$data.waterSource) || "GROUND.WELL") === null || _ref === void 0 ? void 0 : (_ref$split$ = _ref.split(".")[0]) === null || _ref$split$ === void 0 ? void 0 : _ref$split$.toUpperCase(), " ", "_")}`
|
|
53390
53365
|
} : "",
|
|
53391
|
-
|
|
53392
|
-
code: (_state8 = state) === null || _state8 === void 0 ? void 0 : (_state8$data = _state8.data) === null || _state8$data === void 0 ? void 0 : _state8$data.waterSource,
|
|
53393
|
-
i18nKey: `WS_SERVICES_MASTERS_WATERSOURCE_${
|
|
53366
|
+
sourceSubData: (_state7 = state) !== null && _state7 !== void 0 && (_state7$data = _state7.data) !== null && _state7$data !== void 0 && _state7$data.waterSource || "GROUND.WELL" ? {
|
|
53367
|
+
code: ((_state8 = state) === null || _state8 === void 0 ? void 0 : (_state8$data = _state8.data) === null || _state8$data === void 0 ? void 0 : _state8$data.waterSource) || "GROUND.WELL",
|
|
53368
|
+
i18nKey: `WS_SERVICES_MASTERS_WATERSOURCE_${waterSourceSubDataWithCma || "GROUND_WELL"}`
|
|
53394
53369
|
} : "",
|
|
53395
|
-
|
|
53396
|
-
code: (
|
|
53397
|
-
i18nKey:
|
|
53398
|
-
} :
|
|
53399
|
-
|
|
53400
|
-
|
|
53401
|
-
|
|
53402
|
-
} : "",
|
|
53403
|
-
noOfTaps: ((_state13 = state) === null || _state13 === void 0 ? void 0 : (_state13$data = _state13.data) === null || _state13$data === void 0 ? void 0 : _state13$data.noOfTaps) || "",
|
|
53370
|
+
pipeSize: (_state9 = state) !== null && _state9 !== void 0 && (_state9$data = _state9.data) !== null && _state9$data !== void 0 && _state9$data.pipeSize ? {
|
|
53371
|
+
code: (_state0 = state) === null || _state0 === void 0 ? void 0 : (_state0$data = _state0.data) === null || _state0$data === void 0 ? void 0 : _state0$data.pipeSize,
|
|
53372
|
+
i18nKey: (_state1 = state) === null || _state1 === void 0 ? void 0 : (_state1$data = _state1.data) === null || _state1$data === void 0 ? void 0 : _state1$data.pipeSize
|
|
53373
|
+
} : 0,
|
|
53374
|
+
noOfTaps: ((_state10 = state) === null || _state10 === void 0 ? void 0 : (_state10$data = _state10.data) === null || _state10$data === void 0 ? void 0 : _state10$data.noOfTaps) !== undefined && ((_state11 = state) === null || _state11 === void 0 ? void 0 : (_state11$data = _state11.data) === null || _state11$data === void 0 ? void 0 : _state11$data.noOfTaps) !== "" ? (_state12 = state) === null || _state12 === void 0 ? void 0 : (_state12$data = _state12.data) === null || _state12$data === void 0 ? void 0 : _state12$data.noOfTaps : 0,
|
|
53375
|
+
proposedPipeSize: 0,
|
|
53376
|
+
proposedTaps: 0,
|
|
53404
53377
|
formDetails: details
|
|
53405
53378
|
} : {
|
|
53406
|
-
noOfWaterClosets: ((
|
|
53407
|
-
noOfToilets: ((
|
|
53379
|
+
noOfWaterClosets: ((_state13 = state) === null || _state13 === void 0 ? void 0 : (_state13$data = _state13.data) === null || _state13$data === void 0 ? void 0 : _state13$data.noOfWaterClosets) || "",
|
|
53380
|
+
noOfToilets: ((_state14 = state) === null || _state14 === void 0 ? void 0 : (_state14$data = _state14.data) === null || _state14$data === void 0 ? void 0 : _state14$data.noOfToilets) || "",
|
|
53408
53381
|
formDetails: details
|
|
53409
53382
|
};
|
|
53410
53383
|
const plumberDetails = [{
|
|
53411
|
-
plumberName: ((
|
|
53412
|
-
plumberMobileNo: ((
|
|
53413
|
-
plumberLicenseNo: ((
|
|
53414
|
-
detailsProvidedBy: (
|
|
53415
|
-
i18nKey: `WS_PLUMBER_${(
|
|
53416
|
-
code: (
|
|
53384
|
+
plumberName: ((_state15 = state) === null || _state15 === void 0 ? void 0 : (_state15$data = _state15.data) === null || _state15$data === void 0 ? void 0 : (_state15$data$plumber = _state15$data.plumberInfo) === null || _state15$data$plumber === void 0 ? void 0 : (_state15$data$plumber2 = _state15$data$plumber[0]) === null || _state15$data$plumber2 === void 0 ? void 0 : _state15$data$plumber2.name) || "",
|
|
53385
|
+
plumberMobileNo: ((_state16 = state) === null || _state16 === void 0 ? void 0 : (_state16$data = _state16.data) === null || _state16$data === void 0 ? void 0 : (_state16$data$plumber = _state16$data.plumberInfo) === null || _state16$data$plumber === void 0 ? void 0 : (_state16$data$plumber2 = _state16$data$plumber[0]) === null || _state16$data$plumber2 === void 0 ? void 0 : _state16$data$plumber2.mobileNumber) || "",
|
|
53386
|
+
plumberLicenseNo: ((_state17 = state) === null || _state17 === void 0 ? void 0 : (_state17$data = _state17.data) === null || _state17$data === void 0 ? void 0 : (_state17$data$plumber = _state17$data.plumberInfo) === null || _state17$data$plumber === void 0 ? void 0 : (_state17$data$plumber2 = _state17$data$plumber[0]) === null || _state17$data$plumber2 === void 0 ? void 0 : _state17$data$plumber2.licenseNo) || "",
|
|
53387
|
+
detailsProvidedBy: (_state18 = state) !== null && _state18 !== void 0 && (_state18$data = _state18.data) !== null && _state18$data !== void 0 && (_state18$data$additio = _state18$data.additionalDetails) !== null && _state18$data$additio !== void 0 && _state18$data$additio.detailsProvidedBy ? {
|
|
53388
|
+
i18nKey: `WS_PLUMBER_${(_state19 = state) === null || _state19 === void 0 ? void 0 : (_state19$data = _state19.data) === null || _state19$data === void 0 ? void 0 : (_state19$data$additio = _state19$data.additionalDetails) === null || _state19$data$additio === void 0 ? void 0 : (_state19$data$additio2 = _state19$data$additio.detailsProvidedBy) === null || _state19$data$additio2 === void 0 ? void 0 : _state19$data$additio2.toUpperCase()}`,
|
|
53389
|
+
code: (_state20 = state) === null || _state20 === void 0 ? void 0 : (_state20$data = _state20.data) === null || _state20$data === void 0 ? void 0 : (_state20$data$additio = _state20$data.additionalDetails) === null || _state20$data$additio === void 0 ? void 0 : _state20$data$additio.detailsProvidedBy
|
|
53417
53390
|
} : "",
|
|
53418
|
-
applicationNo: (
|
|
53391
|
+
applicationNo: (_state21 = state) === null || _state21 === void 0 ? void 0 : (_state21$data = _state21.data) === null || _state21$data === void 0 ? void 0 : _state21$data.applicationNo,
|
|
53419
53392
|
key: Date.now()
|
|
53420
53393
|
}];
|
|
53421
|
-
const
|
|
53422
|
-
|
|
53423
|
-
|
|
53424
|
-
|
|
53425
|
-
|
|
53394
|
+
const isMeteredConn = !((_state22 = state) !== null && _state22 !== void 0 && (_state22$data = _state22.data) !== null && _state22$data !== void 0 && _state22$data.connectionType) || ((_state23 = state) === null || _state23 === void 0 ? void 0 : (_state23$data = _state23.data) === null || _state23$data === void 0 ? void 0 : (_state23$data$connect = _state23$data.connectionType) === null || _state23$data$connect === void 0 ? void 0 : _state23$data$connect.toUpperCase()) === "METERED" || ((_state24 = state) === null || _state24 === void 0 ? void 0 : (_state24$data = _state24.data) === null || _state24$data === void 0 ? void 0 : (_state24$data$connect = _state24$data.connectionType) === null || _state24$data$connect === void 0 ? void 0 : _state24$data$connect.toUpperCase()) === "PERMANENT" || ((_state25 = state) === null || _state25 === void 0 ? void 0 : (_state25$data = _state25.data) === null || _state25$data === void 0 ? void 0 : (_state25$data$additio = _state25$data.additionalDetails) === null || _state25$data$additio === void 0 ? void 0 : (_state25$data$additio2 = _state25$data$additio.connectionType) === null || _state25$data$additio2 === void 0 ? void 0 : _state25$data$additio2.toUpperCase()) === "METERED" || ((_state26 = state) === null || _state26 === void 0 ? void 0 : (_state26$data = _state26.data) === null || _state26$data === void 0 ? void 0 : (_state26$data$additio = _state26$data.additionalDetails) === null || _state26$data$additio === void 0 ? void 0 : (_state26$data$additio2 = _state26$data$additio.connectionType) === null || _state26$data$additio2 === void 0 ? void 0 : _state26$data$additio2.toUpperCase()) === "PERMANENT";
|
|
53395
|
+
const activationDetails = isMeteredConn && ((_state27 = state) === null || _state27 === void 0 ? void 0 : (_state27$data = _state27.data) === null || _state27$data === void 0 ? void 0 : _state27$data.applicationType) !== "WATER_RECONNECTION" ? [{
|
|
53396
|
+
meterId: ((_state28 = state) === null || _state28 === void 0 ? void 0 : (_state28$data = _state28.data) === null || _state28$data === void 0 ? void 0 : _state28$data.meterId) || "",
|
|
53397
|
+
meterInstallationDate: (_state29 = state) !== null && _state29 !== void 0 && (_state29$data = _state29.data) !== null && _state29$data !== void 0 && _state29$data.meterInstallationDate ? convertEpochToDates((_state30 = state) === null || _state30 === void 0 ? void 0 : (_state30$data = _state30.data) === null || _state30$data === void 0 ? void 0 : _state30$data.meterInstallationDate) : null,
|
|
53398
|
+
meterInitialReading: ((_state31 = state) === null || _state31 === void 0 ? void 0 : (_state31$data = _state31.data) === null || _state31$data === void 0 ? void 0 : (_state31$data$additio = _state31$data.additionalDetails) === null || _state31$data$additio === void 0 ? void 0 : _state31$data$additio.initialMeterReading) || "",
|
|
53399
|
+
connectionExecutionDate: (_state32 = state) !== null && _state32 !== void 0 && (_state32$data = _state32.data) !== null && _state32$data !== void 0 && _state32$data.connectionExecutionDate ? convertEpochToDates((_state33 = state) === null || _state33 === void 0 ? void 0 : (_state33$data = _state33.data) === null || _state33$data === void 0 ? void 0 : _state33$data.connectionExecutionDate) : null
|
|
53426
53400
|
}] : [{
|
|
53427
|
-
connectionExecutionDate: (
|
|
53401
|
+
connectionExecutionDate: (_state34 = state) !== null && _state34 !== void 0 && (_state34$data = _state34.data) !== null && _state34$data !== void 0 && _state34$data.connectionExecutionDate ? convertEpochToDates((_state35 = state) === null || _state35 === void 0 ? void 0 : (_state35$data = _state35.data) === null || _state35$data === void 0 ? void 0 : _state35$data.connectionExecutionDate) : null
|
|
53428
53402
|
}];
|
|
53429
53403
|
const defaultValues = {
|
|
53430
53404
|
formDetails: details,
|
|
@@ -53438,13 +53412,25 @@ const ActivateConnection = () => {
|
|
|
53438
53412
|
}
|
|
53439
53413
|
}, []);
|
|
53440
53414
|
useEffect(() => {
|
|
53441
|
-
|
|
53442
|
-
|
|
53415
|
+
const configsToUse = !isLoading && newConfig && Array.isArray(newConfig) && newConfig.length > 0 ? newConfig : newConfig$2;
|
|
53416
|
+
if (configsToUse && Array.isArray(configsToUse)) {
|
|
53417
|
+
var _Digit$UserService$ge, _Digit$UserService$ge2;
|
|
53418
|
+
const isCitizen = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.type) === "CITIZEN" || window.location.href.includes("/citizen");
|
|
53419
|
+
const configObj = configsToUse.find(conf => conf.hideInCitizen) || configsToUse[0];
|
|
53443
53420
|
if (configObj && configObj.body) {
|
|
53444
53421
|
let flattenedBody = [];
|
|
53445
53422
|
configObj.body.forEach(section => {
|
|
53446
53423
|
if (section.body && Array.isArray(section.body)) {
|
|
53447
|
-
|
|
53424
|
+
const mappedSectionBody = section.body.map(item => {
|
|
53425
|
+
if (item.key === "activationDetails" && (isCitizen || item.component === "WSActivationPageDetails")) {
|
|
53426
|
+
return {
|
|
53427
|
+
...item,
|
|
53428
|
+
component: "WSActivationDetails"
|
|
53429
|
+
};
|
|
53430
|
+
}
|
|
53431
|
+
return item;
|
|
53432
|
+
});
|
|
53433
|
+
flattenedBody = [...flattenedBody, ...mappedSectionBody];
|
|
53448
53434
|
}
|
|
53449
53435
|
});
|
|
53450
53436
|
setConfig([{
|
|
@@ -53453,12 +53439,12 @@ const ActivateConnection = () => {
|
|
|
53453
53439
|
}]);
|
|
53454
53440
|
}
|
|
53455
53441
|
}
|
|
53456
|
-
}, [newConfig]);
|
|
53442
|
+
}, [newConfig, isLoading]);
|
|
53457
53443
|
useEffect(() => {
|
|
53458
53444
|
const timer = setTimeout(() => {
|
|
53459
53445
|
if (isAppDetailsPage) {
|
|
53460
|
-
var _Digit$UserService$
|
|
53461
|
-
const isCitizen = ((_Digit$UserService$
|
|
53446
|
+
var _Digit$UserService$ge3, _Digit$UserService$ge4;
|
|
53447
|
+
const isCitizen = ((_Digit$UserService$ge3 = Digit.UserService.getUser()) === null || _Digit$UserService$ge3 === void 0 ? void 0 : (_Digit$UserService$ge4 = _Digit$UserService$ge3.info) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.type) === "CITIZEN";
|
|
53462
53448
|
if (isCitizen) {
|
|
53463
53449
|
window.location.href = `${window.location.origin}/digit-ui/citizen/ws/connection/application/${filters === null || filters === void 0 ? void 0 : filters.applicationNumber}`;
|
|
53464
53450
|
} else {
|
|
@@ -53503,9 +53489,8 @@ const ActivateConnection = () => {
|
|
|
53503
53489
|
setShowToast(false);
|
|
53504
53490
|
}, 3000);
|
|
53505
53491
|
} else {
|
|
53506
|
-
var _Object$keys, _details3, _formDetails$connecti, _formDetails$connecti2, _formDetails$connecti3, _formDetails$connecti4, _formDetails$connecti5, _formDetails$connecti6, _formDetails$connecti7, _formDetails$connecti8, _formDetails$connecti9, _formDetails$connecti0, _formDetails$connecti1, _formDetails$connecti10, _formDetails$connecti11, _formDetails$connecti12, _formDetails$connecti13, _formDetails$connecti14, _formDetails$connecti15, _formDetails$connecti16, _formDetails$connecti17, _formDetails$connecti18, _formDetails$connecti19, _formDetails$connecti20, _formDetails$connecti21, _formDetails$connecti22, _formDetails$connecti23, _formDetails$connecti24, _formDetails$connecti25, _formDetails$connecti26, _formDetails$connecti27, _formDetails$connecti28, _formDetails$plumberD, _formDetails$plumberD2, _formDetails$plumberD3, _formData$plumberInfo, _formDetails$plumberD7, _formDetails$plumberD8, _formDetails$plumberD9, _formDetails$plumberD0, _formDetails$plumberD1, _formDetails$plumberD10, _formDetails$plumberD11, _formDetails$plumberD12, _formDetails$plumberD13, _formDetails$plumberD14, _formDetails$plumberD15, _formDetails$plumberD16, _formDetails$
|
|
53492
|
+
var _Object$keys, _details3, _formDetails$connecti, _formDetails$connecti2, _formDetails$connecti3, _formDetails$connecti4, _formDetails$connecti5, _formDetails$connecti6, _formDetails$connecti7, _formDetails$connecti8, _formDetails$connecti9, _formDetails$connecti0, _formDetails$connecti1, _formDetails$connecti10, _formDetails$connecti11, _formDetails$connecti12, _formDetails$connecti13, _formDetails$connecti14, _formDetails$connecti15, _formDetails$connecti16, _formDetails$connecti17, _formDetails$connecti18, _formDetails$connecti19, _formDetails$connecti20, _formDetails$connecti21, _formDetails$connecti22, _formDetails$connecti23, _formDetails$connecti24, _formDetails$connecti25, _formDetails$connecti26, _formDetails$connecti27, _formDetails$connecti28, _formDetails$plumberD, _formDetails$plumberD2, _formDetails$plumberD3, _formData$plumberInfo, _formDetails$plumberD7, _formDetails$plumberD8, _formDetails$plumberD9, _formDetails$plumberD0, _formDetails$plumberD1, _formDetails$plumberD10, _formDetails$plumberD11, _formDetails$plumberD12, _formDetails$plumberD13, _formDetails$plumberD14, _formDetails$plumberD15, _formDetails$plumberD16, _formDetails$activati;
|
|
53507
53493
|
function _temp4() {
|
|
53508
|
-
var _formDetails$activati, _formDetails$activati2, _formDetails$activati3, _formDetails$activati4;
|
|
53509
53494
|
function _temp2() {
|
|
53510
53495
|
var _formDetails$comments, _data$supportingDocum, _data$supportingDocum2, _data$supportingDocum3, _data$supportingDocum4, _formDetails$comments2, _data$supportingDocum5, _data$supportingDocum6, _data$supportingDocum7, _data$supportingDocum8;
|
|
53511
53496
|
formData.comment = (formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$comments = formDetails.comments) === null || _formDetails$comments === void 0 ? void 0 : _formDetails$comments.comments) || "";
|
|
@@ -53513,7 +53498,8 @@ const ActivateConnection = () => {
|
|
|
53513
53498
|
formData.wfDocuments = data !== null && data !== void 0 && (_data$supportingDocum = data.supportingDocuments) !== null && _data$supportingDocum !== void 0 && (_data$supportingDocum2 = _data$supportingDocum[0]) !== null && _data$supportingDocum2 !== void 0 && _data$supportingDocum2.fileStoreId ? [{
|
|
53514
53499
|
documentType: "Document - 1",
|
|
53515
53500
|
fileStoreId: data === null || data === void 0 ? void 0 : (_data$supportingDocum3 = data.supportingDocuments) === null || _data$supportingDocum3 === void 0 ? void 0 : (_data$supportingDocum4 = _data$supportingDocum3[0]) === null || _data$supportingDocum4 === void 0 ? void 0 : _data$supportingDocum4.fileStoreId
|
|
53516
|
-
}] : []
|
|
53501
|
+
}] : [];
|
|
53502
|
+
formData.processInstance = {
|
|
53517
53503
|
action: filters === null || filters === void 0 ? void 0 : filters.action,
|
|
53518
53504
|
comment: (formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$comments2 = formDetails.comments) === null || _formDetails$comments2 === void 0 ? void 0 : _formDetails$comments2.comments) || "",
|
|
53519
53505
|
documents: data !== null && data !== void 0 && (_data$supportingDocum5 = data.supportingDocuments) !== null && _data$supportingDocum5 !== void 0 && (_data$supportingDocum6 = _data$supportingDocum5[0]) !== null && _data$supportingDocum6 !== void 0 && _data$supportingDocum6.fileStoreId ? [{
|
|
@@ -53521,7 +53507,18 @@ const ActivateConnection = () => {
|
|
|
53521
53507
|
fileStoreId: data === null || data === void 0 ? void 0 : (_data$supportingDocum7 = data.supportingDocuments) === null || _data$supportingDocum7 === void 0 ? void 0 : (_data$supportingDocum8 = _data$supportingDocum7[0]) === null || _data$supportingDocum8 === void 0 ? void 0 : _data$supportingDocum8.fileStoreId
|
|
53522
53508
|
}] : []
|
|
53523
53509
|
};
|
|
53524
|
-
const
|
|
53510
|
+
const isWater = filters !== null && filters !== void 0 && filters.service ? filters.service.toUpperCase() === "WATER" : (formData === null || formData === void 0 ? void 0 : formData.serviceType) === "WATER" || !(formData !== null && formData !== void 0 && formData.serviceType);
|
|
53511
|
+
if (isWater) {
|
|
53512
|
+
formData.waterSource = "GROUND.WELL";
|
|
53513
|
+
formData.proposedPipeSize = 0;
|
|
53514
|
+
formData.proposedTaps = 0;
|
|
53515
|
+
formData.pipeSize = 0;
|
|
53516
|
+
formData.noOfTaps = 0;
|
|
53517
|
+
formData.connectionType = "Metered";
|
|
53518
|
+
if (!formData.additionalDetails) formData.additionalDetails = {};
|
|
53519
|
+
formData.additionalDetails.connectionType = "Permanent";
|
|
53520
|
+
}
|
|
53521
|
+
const reqDetails = isWater ? (formData === null || formData === void 0 ? void 0 : formData.applicationType) === "WATER_RECONNECTION" ? {
|
|
53525
53522
|
WaterConnection: formData,
|
|
53526
53523
|
reconnectRequest: true,
|
|
53527
53524
|
disconnectRequest: false
|
|
@@ -53538,6 +53535,20 @@ const ActivateConnection = () => {
|
|
|
53538
53535
|
reconnectRequest: false,
|
|
53539
53536
|
disconnectRequest: false
|
|
53540
53537
|
};
|
|
53538
|
+
if (reqDetails !== null && reqDetails !== void 0 && reqDetails.WaterConnection) {
|
|
53539
|
+
reqDetails.WaterConnection.waterSource = "GROUND.WELL";
|
|
53540
|
+
reqDetails.WaterConnection.proposedPipeSize = 0;
|
|
53541
|
+
reqDetails.WaterConnection.proposedTaps = 0;
|
|
53542
|
+
reqDetails.WaterConnection.pipeSize = 0;
|
|
53543
|
+
reqDetails.WaterConnection.noOfTaps = 0;
|
|
53544
|
+
reqDetails.WaterConnection.connectionType = "Metered";
|
|
53545
|
+
if (!reqDetails.WaterConnection.additionalDetails) reqDetails.WaterConnection.additionalDetails = {};
|
|
53546
|
+
reqDetails.WaterConnection.additionalDetails.connectionType = "Permanent";
|
|
53547
|
+
}
|
|
53548
|
+
if (reqDetails !== null && reqDetails !== void 0 && reqDetails.SewerageConnection) {
|
|
53549
|
+
if (!reqDetails.SewerageConnection.additionalDetails) reqDetails.SewerageConnection.additionalDetails = {};
|
|
53550
|
+
reqDetails.SewerageConnection.additionalDetails.connectionType = "Permanent";
|
|
53551
|
+
}
|
|
53541
53552
|
if (mutate) {
|
|
53542
53553
|
mutate(reqDetails, {
|
|
53543
53554
|
onError: (error, variables) => {
|
|
@@ -53557,9 +53568,10 @@ const ActivateConnection = () => {
|
|
|
53557
53568
|
});
|
|
53558
53569
|
}
|
|
53559
53570
|
}
|
|
53560
|
-
if (
|
|
53561
|
-
|
|
53562
|
-
|
|
53571
|
+
if (!formData.additionalDetails) formData.additionalDetails = {};
|
|
53572
|
+
formData.additionalDetails.initialMeterReading = (actObj === null || actObj === void 0 ? void 0 : actObj.meterInitialReading) !== undefined && (actObj === null || actObj === void 0 ? void 0 : actObj.meterInitialReading) !== "" ? actObj.meterInitialReading : "0";
|
|
53573
|
+
const _temp = function () {
|
|
53574
|
+
if (actObj !== null && actObj !== void 0 && actObj.connectionExecutionDate) return Promise.resolve(getConvertedDate(actObj === null || actObj === void 0 ? void 0 : actObj.connectionExecutionDate)).then(function (_getConvertedDate2) {
|
|
53563
53575
|
formData.connectionExecutionDate = _getConvertedDate2;
|
|
53564
53576
|
});
|
|
53565
53577
|
}();
|
|
@@ -53586,9 +53598,10 @@ const ActivateConnection = () => {
|
|
|
53586
53598
|
if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD7 = formDetails.plumberDetails) !== null && _formDetails$plumberD7 !== void 0 && (_formDetails$plumberD8 = _formDetails$plumberD7[0]) !== null && _formDetails$plumberD8 !== void 0 && _formDetails$plumberD8.plumberName) formData.plumberInfo[0].name = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD9 = formDetails.plumberDetails) === null || _formDetails$plumberD9 === void 0 ? void 0 : (_formDetails$plumberD0 = _formDetails$plumberD9[0]) === null || _formDetails$plumberD0 === void 0 ? void 0 : _formDetails$plumberD0.plumberName;
|
|
53587
53599
|
if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD1 = formDetails.plumberDetails) !== null && _formDetails$plumberD1 !== void 0 && (_formDetails$plumberD10 = _formDetails$plumberD1[0]) !== null && _formDetails$plumberD10 !== void 0 && _formDetails$plumberD10.plumberLicenseNo) formData.plumberInfo[0].licenseNo = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD11 = formDetails.plumberDetails) === null || _formDetails$plumberD11 === void 0 ? void 0 : (_formDetails$plumberD12 = _formDetails$plumberD11[0]) === null || _formDetails$plumberD12 === void 0 ? void 0 : _formDetails$plumberD12.plumberLicenseNo;
|
|
53588
53600
|
if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD13 = formDetails.plumberDetails) !== null && _formDetails$plumberD13 !== void 0 && (_formDetails$plumberD14 = _formDetails$plumberD13[0]) !== null && _formDetails$plumberD14 !== void 0 && _formDetails$plumberD14.plumberMobileNo) formData.plumberInfo[0].mobileNumber = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD15 = formDetails.plumberDetails) === null || _formDetails$plumberD15 === void 0 ? void 0 : (_formDetails$plumberD16 = _formDetails$plumberD15[0]) === null || _formDetails$plumberD16 === void 0 ? void 0 : _formDetails$plumberD16.plumberMobileNo;
|
|
53589
|
-
|
|
53590
|
-
|
|
53591
|
-
|
|
53601
|
+
const actObj = Array.isArray(formDetails === null || formDetails === void 0 ? void 0 : formDetails.activationDetails) ? formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$activati = formDetails.activationDetails) === null || _formDetails$activati === void 0 ? void 0 : _formDetails$activati[0] : formDetails === null || formDetails === void 0 ? void 0 : formDetails.activationDetails;
|
|
53602
|
+
if (actObj !== null && actObj !== void 0 && actObj.meterId) formData.meterId = actObj === null || actObj === void 0 ? void 0 : actObj.meterId;
|
|
53603
|
+
const _temp3 = function () {
|
|
53604
|
+
if (actObj !== null && actObj !== void 0 && actObj.meterInstallationDate) return Promise.resolve(getConvertedDate(actObj === null || actObj === void 0 ? void 0 : actObj.meterInstallationDate)).then(function (_getConvertedDate) {
|
|
53592
53605
|
formData.meterInstallationDate = _getConvertedDate;
|
|
53593
53606
|
});
|
|
53594
53607
|
}();
|
|
@@ -53622,7 +53635,6 @@ const ActivateConnection = () => {
|
|
|
53622
53635
|
body: config.body
|
|
53623
53636
|
};
|
|
53624
53637
|
}),
|
|
53625
|
-
userType: "employee",
|
|
53626
53638
|
defaultValues: defaultValues,
|
|
53627
53639
|
onSubmit: onSubmit,
|
|
53628
53640
|
label: t("WF_EMPLOYEE_NEWSW1_ACTIVATE_CONNECTION"),
|
|
@@ -60568,7 +60580,7 @@ const openFilePDF = fileId => {
|
|
|
60568
60580
|
}).catch(error => console.error("Error fetching file:", error));
|
|
60569
60581
|
};
|
|
60570
60582
|
const CheckPage$4 = _ref2 => {
|
|
60571
|
-
var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2;
|
|
60583
|
+
var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyT3;
|
|
60572
60584
|
let {
|
|
60573
60585
|
data,
|
|
60574
60586
|
onSubmit,
|
|
@@ -60757,10 +60769,10 @@ const CheckPage$4 = _ref2 => {
|
|
|
60757
60769
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
60758
60770
|
label: t("WS_SELECT_YEAR_OF_CONSTRUCTION"),
|
|
60759
60771
|
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea === void 0 ? void 0 : _useDetails$SelectYea.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea2 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea2 === void 0 ? void 0 : _useDetails$SelectYea2.value) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$SelectYea3 = useDetails.SelectYearofConstruction) === null || _useDetails$SelectYea3 === void 0 ? void 0 : _useDetails$SelectYea3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.SelectYearofConstruction) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct = useDetails.constructionYear) === null || _useDetails$construct === void 0 ? void 0 : _useDetails$construct.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$construct2 = useDetails.constructionYear) === null || _useDetails$construct2 === void 0 ? void 0 : _useDetails$construct2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.constructionYear)))}`
|
|
60760
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
60772
|
+
}), ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse", "BuiltUp.GroupHousingSociety", "BuiltUp.JJSLUMS", "BuiltUp.IndividualHouse"].includes((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT3 = useDetails.propertyType) === null || _useDetails$propertyT3 === void 0 ? void 0 : _useDetails$propertyT3.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType)) ? /*#__PURE__*/React.createElement(Row, {
|
|
60761
60773
|
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
60762
60774
|
text: `${t(checkForNA((useDetails === null || useDetails === void 0 ? void 0 : useDetails.NumberofDwellingUnits) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfDwellingUnits)))}`
|
|
60763
|
-
})), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
60775
|
+
}) : null), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DJB_EMPLOYEE")), /*#__PURE__*/React.createElement(StatusTable, {
|
|
60764
60776
|
style: {
|
|
60765
60777
|
marginTop: "10px",
|
|
60766
60778
|
marginBottom: "30px"
|