@mseva/upyog-ui-module-ads 1.0.21 → 1.0.23
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 +416 -626
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +412 -625
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8533,7 +8533,7 @@ const TimerValues = _ref => {
|
|
|
8533
8533
|
};
|
|
8534
8534
|
|
|
8535
8535
|
const ADSCitizenDetails = _ref => {
|
|
8536
|
-
var _formData$applicant, _value$existingDataSe, _value$existingDataSe2, _formData$applicant2, _value$existingDataSe3, _value$existingDataSe4, _value$existingDataSe5, _value$existingDataSe6, _formData$applicant3, _formData$applicant4, _value$existingDataSe7, _value$existingDataSe8, _value$existingDataSe9, _value$
|
|
8536
|
+
var _formData$applicant, _value$existingDataSe, _value$existingDataSe2, _formData$applicant2, _value$existingDataSe3, _value$existingDataSe4, _value$existingDataSe5, _value$existingDataSe6, _formData$applicant3, _formData$applicant4, _value$existingDataSe7, _value$existingDataSe8, _value$existingDataSe9, _value$existingDataSe10, _value$existingDataSe11;
|
|
8537
8537
|
let {
|
|
8538
8538
|
t,
|
|
8539
8539
|
config,
|
|
@@ -8645,9 +8645,9 @@ const ADSCitizenDetails = _ref => {
|
|
|
8645
8645
|
right: 0
|
|
8646
8646
|
}
|
|
8647
8647
|
}, /*#__PURE__*/React__default.createElement(TimerValues, {
|
|
8648
|
-
timerValues: value === null || value === void 0 ? void 0 : (_value$existingDataSe9 = value.existingDataSet) === null || _value$existingDataSe9 === void 0 ? void 0 : (_value$
|
|
8648
|
+
timerValues: value === null || value === void 0 ? void 0 : (_value$existingDataSe9 = value.existingDataSet) === null || _value$existingDataSe9 === void 0 ? void 0 : (_value$existingDataSe10 = _value$existingDataSe9.timervalue) === null || _value$existingDataSe10 === void 0 ? void 0 : _value$existingDataSe10.timervalue,
|
|
8649
8649
|
SlotSearchData: value === null || value === void 0 ? void 0 : value.cartDetails,
|
|
8650
|
-
draftId: value === null || value === void 0 ? void 0 : (_value$
|
|
8650
|
+
draftId: value === null || value === void 0 ? void 0 : (_value$existingDataSe11 = value.existingDataSet) === null || _value$existingDataSe11 === void 0 ? void 0 : _value$existingDataSe11.draftId
|
|
8651
8651
|
})), /*#__PURE__*/React__default.createElement(ADSCartAndCancellationPolicyDetails, null))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
8652
8652
|
config: config,
|
|
8653
8653
|
onSelect: goNext,
|
|
@@ -8730,7 +8730,7 @@ const ADSCitizenDetails = _ref => {
|
|
|
8730
8730
|
};
|
|
8731
8731
|
|
|
8732
8732
|
const ADSAddress = _ref => {
|
|
8733
|
-
var _formData$address, _value$existingDataSe, _value$existingDataSe2, _formData$address2, _value$existingDataSe3, _value$existingDataSe4, _formData$address3, _value$existingDataSe5, _value$existingDataSe6, _formData$address4, _value$existingDataSe7, _value$existingDataSe8, _formData$address5, _value$existingDataSe9, _value$
|
|
8733
|
+
var _formData$address, _value$existingDataSe, _value$existingDataSe2, _formData$address2, _value$existingDataSe3, _value$existingDataSe4, _formData$address3, _value$existingDataSe5, _value$existingDataSe6, _formData$address4, _value$existingDataSe7, _value$existingDataSe8, _formData$address5, _value$existingDataSe9, _value$existingDataSe10, _formData$address6, _value$existingDataSe11, _value$existingDataSe12, _formData$address7, _value$existingDataSe13, _value$existingDataSe14, _formData$address8, _value$existingDataSe15, _value$existingDataSe16, _formData$address9, _value$existingDataSe17, _value$existingDataSe18, _value$existingDataSe19, _value$existingDataSe20, _value$existingDataSe21;
|
|
8734
8734
|
let {
|
|
8735
8735
|
t,
|
|
8736
8736
|
config,
|
|
@@ -8755,11 +8755,11 @@ const ADSAddress = _ref => {
|
|
|
8755
8755
|
const [city, setCity] = React.useState(formData.address && formData.address[index] && formData.address[index].city || (formData === null || formData === void 0 ? void 0 : (_formData$address2 = formData.address) === null || _formData$address2 === void 0 ? void 0 : _formData$address2.city) || (value === null || value === void 0 ? void 0 : (_value$existingDataSe3 = value.existingDataSet) === null || _value$existingDataSe3 === void 0 ? void 0 : (_value$existingDataSe4 = _value$existingDataSe3.address) === null || _value$existingDataSe4 === void 0 ? void 0 : _value$existingDataSe4.city) || "");
|
|
8756
8756
|
const [locality, setLocality] = React.useState(formData.address && formData.address[index] && formData.address[index].locality || (formData === null || formData === void 0 ? void 0 : (_formData$address3 = formData.address) === null || _formData$address3 === void 0 ? void 0 : _formData$address3.locality) || (value === null || value === void 0 ? void 0 : (_value$existingDataSe5 = value.existingDataSet) === null || _value$existingDataSe5 === void 0 ? void 0 : (_value$existingDataSe6 = _value$existingDataSe5.address) === null || _value$existingDataSe6 === void 0 ? void 0 : _value$existingDataSe6.locality) || "");
|
|
8757
8757
|
const [streetName, setStreetName] = React.useState(formData.address && formData.address[index] && formData.address[index].streetName || (formData === null || formData === void 0 ? void 0 : (_formData$address4 = formData.address) === null || _formData$address4 === void 0 ? void 0 : _formData$address4.streetName) || (value === null || value === void 0 ? void 0 : (_value$existingDataSe7 = value.existingDataSet) === null || _value$existingDataSe7 === void 0 ? void 0 : (_value$existingDataSe8 = _value$existingDataSe7.address) === null || _value$existingDataSe8 === void 0 ? void 0 : _value$existingDataSe8.streetName) || "");
|
|
8758
|
-
const [houseNo, setHouseNo] = React.useState(formData.address && formData.address[index] && formData.address[index].houseNo || (formData === null || formData === void 0 ? void 0 : (_formData$address5 = formData.address) === null || _formData$address5 === void 0 ? void 0 : _formData$address5.houseNo) || (value === null || value === void 0 ? void 0 : (_value$existingDataSe9 = value.existingDataSet) === null || _value$existingDataSe9 === void 0 ? void 0 : (_value$
|
|
8759
|
-
const [landmark, setLandmark] = React.useState(formData.address && formData.address[index] && formData.address[index].landmark || (formData === null || formData === void 0 ? void 0 : (_formData$address6 = formData.address) === null || _formData$address6 === void 0 ? void 0 : _formData$address6.landmark) || (value === null || value === void 0 ? void 0 : (_value$
|
|
8760
|
-
const [houseName, setHouseName] = React.useState(formData.address && formData.address[index] && formData.address[index].houseName || (formData === null || formData === void 0 ? void 0 : (_formData$address7 = formData.address) === null || _formData$address7 === void 0 ? void 0 : _formData$address7.houseName) || (value === null || value === void 0 ? void 0 : (_value$
|
|
8761
|
-
const [addressline1, setAddressline1] = React.useState(formData.address && formData.address[index] && formData.address[index].addressline1 || (formData === null || formData === void 0 ? void 0 : (_formData$address8 = formData.address) === null || _formData$address8 === void 0 ? void 0 : _formData$address8.addressline1) || (value === null || value === void 0 ? void 0 : (_value$
|
|
8762
|
-
const [addressline2, setAddressline2] = React.useState(formData.address && formData.address[index] && formData.address[index].addressline2 || (formData === null || formData === void 0 ? void 0 : (_formData$address9 = formData.address) === null || _formData$address9 === void 0 ? void 0 : _formData$address9.addressline2) || (value === null || value === void 0 ? void 0 : (_value$
|
|
8758
|
+
const [houseNo, setHouseNo] = React.useState(formData.address && formData.address[index] && formData.address[index].houseNo || (formData === null || formData === void 0 ? void 0 : (_formData$address5 = formData.address) === null || _formData$address5 === void 0 ? void 0 : _formData$address5.houseNo) || (value === null || value === void 0 ? void 0 : (_value$existingDataSe9 = value.existingDataSet) === null || _value$existingDataSe9 === void 0 ? void 0 : (_value$existingDataSe10 = _value$existingDataSe9.address) === null || _value$existingDataSe10 === void 0 ? void 0 : _value$existingDataSe10.houseNo) || "");
|
|
8759
|
+
const [landmark, setLandmark] = React.useState(formData.address && formData.address[index] && formData.address[index].landmark || (formData === null || formData === void 0 ? void 0 : (_formData$address6 = formData.address) === null || _formData$address6 === void 0 ? void 0 : _formData$address6.landmark) || (value === null || value === void 0 ? void 0 : (_value$existingDataSe11 = value.existingDataSet) === null || _value$existingDataSe11 === void 0 ? void 0 : (_value$existingDataSe12 = _value$existingDataSe11.address) === null || _value$existingDataSe12 === void 0 ? void 0 : _value$existingDataSe12.landmark) || "");
|
|
8760
|
+
const [houseName, setHouseName] = React.useState(formData.address && formData.address[index] && formData.address[index].houseName || (formData === null || formData === void 0 ? void 0 : (_formData$address7 = formData.address) === null || _formData$address7 === void 0 ? void 0 : _formData$address7.houseName) || (value === null || value === void 0 ? void 0 : (_value$existingDataSe13 = value.existingDataSet) === null || _value$existingDataSe13 === void 0 ? void 0 : (_value$existingDataSe14 = _value$existingDataSe13.address) === null || _value$existingDataSe14 === void 0 ? void 0 : _value$existingDataSe14.houseName) || "");
|
|
8761
|
+
const [addressline1, setAddressline1] = React.useState(formData.address && formData.address[index] && formData.address[index].addressline1 || (formData === null || formData === void 0 ? void 0 : (_formData$address8 = formData.address) === null || _formData$address8 === void 0 ? void 0 : _formData$address8.addressline1) || (value === null || value === void 0 ? void 0 : (_value$existingDataSe15 = value.existingDataSet) === null || _value$existingDataSe15 === void 0 ? void 0 : (_value$existingDataSe16 = _value$existingDataSe15.address) === null || _value$existingDataSe16 === void 0 ? void 0 : _value$existingDataSe16.addressline1) || "");
|
|
8762
|
+
const [addressline2, setAddressline2] = React.useState(formData.address && formData.address[index] && formData.address[index].addressline2 || (formData === null || formData === void 0 ? void 0 : (_formData$address9 = formData.address) === null || _formData$address9 === void 0 ? void 0 : _formData$address9.addressline2) || (value === null || value === void 0 ? void 0 : (_value$existingDataSe17 = value.existingDataSet) === null || _value$existingDataSe17 === void 0 ? void 0 : (_value$existingDataSe18 = _value$existingDataSe17.address) === null || _value$existingDataSe18 === void 0 ? void 0 : _value$existingDataSe18.addressline2) || "");
|
|
8763
8763
|
const {
|
|
8764
8764
|
data: fetchedLocalities,
|
|
8765
8765
|
isLoading: isLoadingLocalities
|
|
@@ -8879,9 +8879,9 @@ const ADSAddress = _ref => {
|
|
|
8879
8879
|
right: 0
|
|
8880
8880
|
}
|
|
8881
8881
|
}, /*#__PURE__*/React__default.createElement(TimerValues, {
|
|
8882
|
-
timerValues: value === null || value === void 0 ? void 0 : (_value$
|
|
8882
|
+
timerValues: value === null || value === void 0 ? void 0 : (_value$existingDataSe19 = value.existingDataSet) === null || _value$existingDataSe19 === void 0 ? void 0 : (_value$existingDataSe20 = _value$existingDataSe19.timervalue) === null || _value$existingDataSe20 === void 0 ? void 0 : _value$existingDataSe20.timervalue,
|
|
8883
8883
|
SlotSearchData: value === null || value === void 0 ? void 0 : value.cartDetails,
|
|
8884
|
-
draftId: value === null || value === void 0 ? void 0 : (_value$
|
|
8884
|
+
draftId: value === null || value === void 0 ? void 0 : (_value$existingDataSe21 = value.existingDataSet) === null || _value$existingDataSe21 === void 0 ? void 0 : _value$existingDataSe21.draftId
|
|
8885
8885
|
})), /*#__PURE__*/React__default.createElement(ADSCartAndCancellationPolicyDetails, null))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
8886
8886
|
config: config,
|
|
8887
8887
|
onSelect: goNext,
|
|
@@ -9078,7 +9078,7 @@ const ADSDocumentDetails = _ref => {
|
|
|
9078
9078
|
data
|
|
9079
9079
|
} = Digit.Hooks.ads.useADSDocumentsMDMS(stateId, "Advertisement", "Documents");
|
|
9080
9080
|
const handleSubmit = () => {
|
|
9081
|
-
var _formData$applicant, _formData$applicant2, _formData$applicant3, _formData$applicant4, _formData$applicant5, _formData$address, _formData$address2, _formData$address2$ci, _formData$address2$ci2, _formData$address3, _formData$address3$ci, _formData$address3$ci2, _formData$address4, _formData$address4$lo, _formData$address5, _formData$address5$lo, _formData$address6, _formData$address7, _formData$address8, _formData$address9, _formData$
|
|
9081
|
+
var _formData$applicant, _formData$applicant2, _formData$applicant3, _formData$applicant4, _formData$applicant5, _formData$address, _formData$address2, _formData$address2$ci, _formData$address2$ci2, _formData$address3, _formData$address3$ci, _formData$address3$ci2, _formData$address4, _formData$address4$lo, _formData$address5, _formData$address5$lo, _formData$address6, _formData$address7, _formData$address8, _formData$address9, _formData$address10;
|
|
9082
9082
|
let cartDetails = value === null || value === void 0 ? void 0 : value.cartDetails.map(slot => {
|
|
9083
9083
|
return {
|
|
9084
9084
|
addType: slot.addTypeCode,
|
|
@@ -9111,7 +9111,7 @@ const ADSDocumentDetails = _ref => {
|
|
|
9111
9111
|
addressLine1: formData === null || formData === void 0 ? void 0 : (_formData$address7 = formData.address) === null || _formData$address7 === void 0 ? void 0 : _formData$address7.addressline1,
|
|
9112
9112
|
addressLine2: formData === null || formData === void 0 ? void 0 : (_formData$address8 = formData.address) === null || _formData$address8 === void 0 ? void 0 : _formData$address8.addressline2,
|
|
9113
9113
|
houseNo: formData === null || formData === void 0 ? void 0 : (_formData$address9 = formData.address) === null || _formData$address9 === void 0 ? void 0 : _formData$address9.houseNo,
|
|
9114
|
-
landmark: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
9114
|
+
landmark: formData === null || formData === void 0 ? void 0 : (_formData$address10 = formData.address) === null || _formData$address10 === void 0 ? void 0 : _formData$address10.landmark
|
|
9115
9115
|
},
|
|
9116
9116
|
documents: documents,
|
|
9117
9117
|
cartDetails: cartDetails,
|
|
@@ -18750,7 +18750,7 @@ const ActionModal$3 = _ref => {
|
|
|
18750
18750
|
var _applicationData, _applicationData$land, _applicationData$land2, _applicationData2, _applicationData2$lan, _applicationData2$lan2, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6;
|
|
18751
18751
|
const submit = function (data) {
|
|
18752
18752
|
try {
|
|
18753
|
-
var _applicationData3, _data$comments, _data$comments2, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$
|
|
18753
|
+
var _applicationData3, _data$comments, _data$comments2, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30;
|
|
18754
18754
|
let workflow = {
|
|
18755
18755
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
18756
18756
|
comments: data === null || data === void 0 ? void 0 : data.comments,
|
|
@@ -18770,8 +18770,8 @@ const ActionModal$3 = _ref => {
|
|
|
18770
18770
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
18771
18771
|
comment: (data === null || data === void 0 ? void 0 : (_data$comments = data.comments) === null || _data$comments === void 0 ? void 0 : _data$comments.length) > 0 ? data === null || data === void 0 ? void 0 : data.comments : null,
|
|
18772
18772
|
comments: (data === null || data === void 0 ? void 0 : (_data$comments2 = data.comments) === null || _data$comments2 === void 0 ? void 0 : _data$comments2.length) > 0 ? data === null || data === void 0 ? void 0 : data.comments : null,
|
|
18773
|
-
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.processInstances) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8[0]) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$
|
|
18774
|
-
assignes: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
18773
|
+
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.processInstances) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8[0]) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data9.state) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.processInstances) === null || _workflowDetails$data12 === void 0 ? void 0 : (_workflowDetails$data13 = _workflowDetails$data12[0]) === null || _workflowDetails$data13 === void 0 ? void 0 : (_workflowDetails$data14 = _workflowDetails$data13.assigner) === null || _workflowDetails$data14 === void 0 ? void 0 : _workflowDetails$data14.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
18774
|
+
assignes: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data15 = workflowDetails.data) === null || _workflowDetails$data15 === void 0 ? void 0 : (_workflowDetails$data16 = _workflowDetails$data15.processInstances) === null || _workflowDetails$data16 === void 0 ? void 0 : (_workflowDetails$data17 = _workflowDetails$data16[0]) === null || _workflowDetails$data17 === void 0 ? void 0 : (_workflowDetails$data18 = _workflowDetails$data17.state) === null || _workflowDetails$data18 === void 0 ? void 0 : _workflowDetails$data18.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19.processInstances) === null || _workflowDetails$data20 === void 0 ? void 0 : (_workflowDetails$data21 = _workflowDetails$data20[0]) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.assigner) === null || _workflowDetails$data22 === void 0 ? void 0 : _workflowDetails$data22.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
18775
18775
|
varificationDocuments: uploadedFile ? [{
|
|
18776
18776
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
18777
18777
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -18780,7 +18780,7 @@ const ActionModal$3 = _ref => {
|
|
|
18780
18780
|
},
|
|
18781
18781
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
18782
18782
|
comment: data === null || data === void 0 ? void 0 : data.comments,
|
|
18783
|
-
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
18783
|
+
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data23 = workflowDetails.data) === null || _workflowDetails$data23 === void 0 ? void 0 : (_workflowDetails$data24 = _workflowDetails$data23.processInstances) === null || _workflowDetails$data24 === void 0 ? void 0 : (_workflowDetails$data25 = _workflowDetails$data24[0]) === null || _workflowDetails$data25 === void 0 ? void 0 : (_workflowDetails$data26 = _workflowDetails$data25.state) === null || _workflowDetails$data26 === void 0 ? void 0 : _workflowDetails$data26.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data27 = workflowDetails.data) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.processInstances) === null || _workflowDetails$data28 === void 0 ? void 0 : (_workflowDetails$data29 = _workflowDetails$data28[0]) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.assigner) === null || _workflowDetails$data30 === void 0 ? void 0 : _workflowDetails$data30.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
18784
18784
|
wfDocuments: uploadedFile ? [{
|
|
18785
18785
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
18786
18786
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -20200,7 +20200,7 @@ const ActionModal$5 = _ref => {
|
|
|
20200
20200
|
})();
|
|
20201
20201
|
}, [file]);
|
|
20202
20202
|
function submit(data) {
|
|
20203
|
-
var _applicationData, _applicationData7, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$pro,
|
|
20203
|
+
var _applicationData, _applicationData7, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$pro, _applicationData10, _applicationData10$pr, _applicationData12, _applicationData13;
|
|
20204
20204
|
if ((_applicationData = applicationData) !== null && _applicationData !== void 0 && _applicationData.isBillAmend) {
|
|
20205
20205
|
var _applicationData2, _applicationData2$bil, _applicationData3, _applicationData4, _applicationData4$bil, _applicationData5, _applicationData5$app, _applicationData6, _applicationData6$app;
|
|
20206
20206
|
const comments = data !== null && data !== void 0 && data.comments ? data.comments : null;
|
|
@@ -20285,38 +20285,38 @@ const ActionModal$5 = _ref => {
|
|
|
20285
20285
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
20286
20286
|
applicationData.connectionExecutionDate = convertDateToEpochNew(connectionExecutionDate);
|
|
20287
20287
|
}
|
|
20288
|
-
if (((_applicationData9 = applicationData) === null || _applicationData9 === void 0 ? void 0 : (_applicationData9$pro = _applicationData9.processInstance) === null || _applicationData9$pro === void 0 ? void 0 : _applicationData9$pro.businessService) == "DisconnectWSConnection" || ((
|
|
20289
|
-
var
|
|
20290
|
-
((
|
|
20288
|
+
if (((_applicationData9 = applicationData) === null || _applicationData9 === void 0 ? void 0 : (_applicationData9$pro = _applicationData9.processInstance) === null || _applicationData9$pro === void 0 ? void 0 : _applicationData9$pro.businessService) == "DisconnectWSConnection" || ((_applicationData10 = applicationData) === null || _applicationData10 === void 0 ? void 0 : (_applicationData10$pr = _applicationData10.processInstance) === null || _applicationData10$pr === void 0 ? void 0 : _applicationData10$pr.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
|
|
20289
|
+
var _applicationData11;
|
|
20290
|
+
((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : _applicationData11.serviceType) == "WATER" ? submitAction({
|
|
20291
20291
|
WaterConnection: applicationData,
|
|
20292
20292
|
disconnectRequest: true
|
|
20293
20293
|
}) : submitAction({
|
|
20294
20294
|
SewerageConnection: applicationData,
|
|
20295
20295
|
disconnectRequest: true
|
|
20296
20296
|
});
|
|
20297
|
-
} else if (((
|
|
20297
|
+
} else if (((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
20298
20298
|
submitAction({
|
|
20299
20299
|
SewerageConnection: applicationData,
|
|
20300
20300
|
disconnectRequest: false,
|
|
20301
20301
|
reconnectRequest: true
|
|
20302
20302
|
});
|
|
20303
|
-
} else if (((
|
|
20303
|
+
} else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "WATER_RECONNECTION") {
|
|
20304
20304
|
submitAction({
|
|
20305
20305
|
WaterConnection: applicationData,
|
|
20306
20306
|
disconnectRequest: false,
|
|
20307
20307
|
reconnectRequest: true
|
|
20308
20308
|
});
|
|
20309
20309
|
} else {
|
|
20310
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9,
|
|
20310
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat10, _parsedAdhocRebateDat11, _parsedAdhocRebateDat12, _applicationData14;
|
|
20311
20311
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
20312
20312
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
20313
20313
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat !== void 0 && _parsedAdhocRebateDat.adhocPenalty) applicationData.additionalDetails.adhocPenalty = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat2 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat2 === void 0 ? void 0 : _parsedAdhocRebateDat2.adhocPenalty) || "";
|
|
20314
20314
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat3 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat3 !== void 0 && _parsedAdhocRebateDat3.adhocPenaltyComment) applicationData.additionalDetails.adhocPenaltyComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat4 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat4 === void 0 ? void 0 : _parsedAdhocRebateDat4.adhocPenaltyComment) || "";
|
|
20315
20315
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat5 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat5 !== void 0 && _parsedAdhocRebateDat5.adhocPenaltyReason) applicationData.additionalDetails.adhocPenaltyReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat6 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat6 === void 0 ? void 0 : _parsedAdhocRebateDat6.adhocPenaltyReason) || "";
|
|
20316
20316
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
|
|
20317
|
-
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (
|
|
20318
|
-
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (
|
|
20319
|
-
((
|
|
20317
|
+
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateComment) || "";
|
|
20318
|
+
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat11 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat11 !== void 0 && _parsedAdhocRebateDat11.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat12 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat12 === void 0 ? void 0 : _parsedAdhocRebateDat12.adhocRebateReason) || "";
|
|
20319
|
+
((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.serviceType) == "WATER" ? submitAction({
|
|
20320
20320
|
WaterConnection: applicationData,
|
|
20321
20321
|
disconnectRequest: false,
|
|
20322
20322
|
reconnectRequest: false
|
|
@@ -20328,8 +20328,8 @@ const ActionModal$5 = _ref => {
|
|
|
20328
20328
|
}
|
|
20329
20329
|
}
|
|
20330
20330
|
React.useEffect(() => {
|
|
20331
|
-
var
|
|
20332
|
-
if (((
|
|
20331
|
+
var _applicationData15, _applicationData15$pr, _applicationData16, _applicationData16$pr;
|
|
20332
|
+
if (((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : (_applicationData15$pr = _applicationData15.processInstance) === null || _applicationData15$pr === void 0 ? void 0 : _applicationData15$pr.businessService) == "DisconnectWSConnection" || ((_applicationData16 = applicationData) === null || _applicationData16 === void 0 ? void 0 : (_applicationData16$pr = _applicationData16.processInstance) === null || _applicationData16$pr === void 0 ? void 0 : _applicationData16$pr.businessService) == "DisconnectSWConnection") {
|
|
20333
20333
|
if (action) {
|
|
20334
20334
|
setConfig(configWSDisConnectApplication({
|
|
20335
20335
|
t,
|
|
@@ -22325,7 +22325,7 @@ function PropertyOwners(_ref) {
|
|
|
22325
22325
|
}
|
|
22326
22326
|
|
|
22327
22327
|
const ScruntinyDetails = _ref => {
|
|
22328
|
-
var _scrutinyDetails$valu, _scrutinyDetails$perm, _scrutinyDetails$valu2, _scrutinyDetails$valu3, _additionalDetails$
|
|
22328
|
+
var _scrutinyDetails$valu, _scrutinyDetails$perm, _scrutinyDetails$valu2, _scrutinyDetails$valu3, _additionalDetails$se11, _additionalDetails$se12, _additionalDetails$se13, _additionalDetails$se14, _additionalDetails$se15, _additionalDetails$se16, _additionalDetails$se17, _additionalDetails$se18, _docLessAdjustment$fi, _additionalDetails$se19, _docLessAdjustment$fi2, _additionalDetails$se20, _docLessAdjustment$fi3, _docLessAdjustment$fi4, _additionalDetails$se21, _additionalDetails$se22, _additionalDetails$se23, _additionalDetails$se24, _scrutinyDetails$scru;
|
|
22329
22329
|
let {
|
|
22330
22330
|
scrutinyDetails,
|
|
22331
22331
|
paymentsList = [],
|
|
@@ -22450,8 +22450,8 @@ const ScruntinyDetails = _ref => {
|
|
|
22450
22450
|
}
|
|
22451
22451
|
function setLessAdjusmentVal(value) {
|
|
22452
22452
|
if (/^[0-9]*$/.test(value)) {
|
|
22453
|
-
var _additionalDetails$se7, _additionalDetails$se8, _additionalDetails$se9, _additionalDetails$
|
|
22454
|
-
if (parseFloat(value) > (parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se7 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se7 === void 0 ? void 0 : _additionalDetails$se7.BPA_MALBA_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se8 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se8 === void 0 ? void 0 : _additionalDetails$se8.BPA_LABOUR_CESS) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se9 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se9 === void 0 ? void 0 : _additionalDetails$se9.BPA_WATER_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22453
|
+
var _additionalDetails$se7, _additionalDetails$se8, _additionalDetails$se9, _additionalDetails$se10;
|
|
22454
|
+
if (parseFloat(value) > (parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se7 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se7 === void 0 ? void 0 : _additionalDetails$se7.BPA_MALBA_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se8 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se8 === void 0 ? void 0 : _additionalDetails$se8.BPA_LABOUR_CESS) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se9 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se9 === void 0 ? void 0 : _additionalDetails$se9.BPA_WATER_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se10 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se10 === void 0 ? void 0 : _additionalDetails$se10.BPA_GAUSHALA_CHARGES_CESS)) {
|
|
22455
22455
|
alert("Less adjustment fees cannot be grater than Total of other P2 fees");
|
|
22456
22456
|
} else {
|
|
22457
22457
|
setLessAdjusment(value);
|
|
@@ -22565,26 +22565,26 @@ const ScruntinyDetails = _ref => {
|
|
|
22565
22565
|
}, t("HIDE_P2_FEES_DETAILS"))), showSanctionFee && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("BPA_P2_SUMMARY_FEE_EST")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
22566
22566
|
className: "border-none",
|
|
22567
22567
|
label: t(`BPA_COMMON_MALBA_AMT`),
|
|
22568
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22568
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se11 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se11 === void 0 ? void 0 : _additionalDetails$se11.BPA_MALBA_CHARGES}`
|
|
22569
22569
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
22570
22570
|
className: "border-none",
|
|
22571
22571
|
label: t(`BPA_COMMON_LABOUR_AMT`),
|
|
22572
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22572
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se12 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se12 === void 0 ? void 0 : _additionalDetails$se12.BPA_LABOUR_CESS}`
|
|
22573
22573
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
22574
22574
|
className: "border-none",
|
|
22575
22575
|
label: t(`BPA_COMMON_WATER_AMT`),
|
|
22576
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22576
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se13 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se13 === void 0 ? void 0 : _additionalDetails$se13.BPA_WATER_CHARGES}`
|
|
22577
22577
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
22578
22578
|
className: "border-none",
|
|
22579
22579
|
label: t(`BPA_COMMON_GAUSHALA_AMT`),
|
|
22580
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22580
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se14 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se14 === void 0 ? void 0 : _additionalDetails$se14.BPA_GAUSHALA_CHARGES_CESS}`
|
|
22581
22581
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("BPA_P2_SUMMARY_FEE_EST_MANUAL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("BPA_COMMON_DEVELOPMENT_AMT")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
22582
22582
|
t: t,
|
|
22583
22583
|
type: "text",
|
|
22584
22584
|
isMandatory: false,
|
|
22585
22585
|
optionKey: "i18nKey",
|
|
22586
22586
|
name: "development",
|
|
22587
|
-
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22587
|
+
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se15 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se15 === void 0 ? void 0 : _additionalDetails$se15.BPA_DEVELOPMENT_CHARGES) || 0,
|
|
22588
22588
|
value: development,
|
|
22589
22589
|
disabled: !isEditApplication,
|
|
22590
22590
|
onChange: e => {
|
|
@@ -22599,7 +22599,7 @@ const ScruntinyDetails = _ref => {
|
|
|
22599
22599
|
isMandatory: false,
|
|
22600
22600
|
optionKey: "i18nKey",
|
|
22601
22601
|
name: "otherCharges",
|
|
22602
|
-
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22602
|
+
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se16 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se16 === void 0 ? void 0 : _additionalDetails$se16.BPA_OTHER_CHARGES) || 0,
|
|
22603
22603
|
value: otherCharges,
|
|
22604
22604
|
disabled: !isEditApplication,
|
|
22605
22605
|
onChange: e => {
|
|
@@ -22612,7 +22612,7 @@ const ScruntinyDetails = _ref => {
|
|
|
22612
22612
|
t: t,
|
|
22613
22613
|
type: "text",
|
|
22614
22614
|
name: "otherChargesDiscription",
|
|
22615
|
-
defaultValue: additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22615
|
+
defaultValue: additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se17 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se17 === void 0 ? void 0 : _additionalDetails$se17.BPA_COMMON_OTHER_AMT_DISCRIPTION,
|
|
22616
22616
|
value: otherChargesDisc,
|
|
22617
22617
|
disabled: !isEditApplication,
|
|
22618
22618
|
onChange: e => {
|
|
@@ -22625,7 +22625,7 @@ const ScruntinyDetails = _ref => {
|
|
|
22625
22625
|
isMandatory: false,
|
|
22626
22626
|
optionKey: "i18nKey",
|
|
22627
22627
|
name: "lessAdjusment",
|
|
22628
|
-
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22628
|
+
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se18 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se18 === void 0 ? void 0 : _additionalDetails$se18.BPA_LESS_ADJUSMENT_PLOT) || "",
|
|
22629
22629
|
value: lessAdjusment,
|
|
22630
22630
|
disabled: !isEditApplication,
|
|
22631
22631
|
onChange: e => {
|
|
@@ -22648,11 +22648,11 @@ const ScruntinyDetails = _ref => {
|
|
|
22648
22648
|
message: uploadedFile ? `1 ${t(`FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
|
|
22649
22649
|
error: errorFile,
|
|
22650
22650
|
uploadMessage: uploadMessage
|
|
22651
|
-
})) : null, (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi === void 0 ? void 0 : _docLessAdjustment$fi.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22651
|
+
})) : null, (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi === void 0 ? void 0 : _docLessAdjustment$fi.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se19 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se19 === void 0 ? void 0 : _additionalDetails$se19.BPA_LESS_ADJUSMENT_PLOT) > 0 && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
22652
22652
|
style: {
|
|
22653
22653
|
marginTop: "15px"
|
|
22654
22654
|
}
|
|
22655
|
-
}, t("BPA_COMMON_LESS_AMT_PREVIOUS_FILE")), (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi2 = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi2 === void 0 ? void 0 : _docLessAdjustment$fi2.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22655
|
+
}, t("BPA_COMMON_LESS_AMT_PREVIOUS_FILE")), (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi2 = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi2 === void 0 ? void 0 : _docLessAdjustment$fi2.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se20 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se20 === void 0 ? void 0 : _additionalDetails$se20.BPA_LESS_ADJUSMENT_PLOT) > 0 && /*#__PURE__*/React__default.createElement("a", {
|
|
22656
22656
|
target: "_blank",
|
|
22657
22657
|
href: docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi3 = docLessAdjustment.fileStoreIds[(docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi4 = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi4 === void 0 ? void 0 : _docLessAdjustment$fi4.length) - 1]) === null || _docLessAdjustment$fi3 === void 0 ? void 0 : _docLessAdjustment$fi3.url
|
|
22658
22658
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.PDFSvg, null)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -22660,7 +22660,7 @@ const ScruntinyDetails = _ref => {
|
|
|
22660
22660
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
22661
22661
|
className: "border-none",
|
|
22662
22662
|
label: t(`BPA_P2_TOTAL_FEE`),
|
|
22663
|
-
text: `₹ ${(parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22663
|
+
text: `₹ ${(parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se21 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se21 === void 0 ? void 0 : _additionalDetails$se21.BPA_MALBA_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se22 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se22 === void 0 ? void 0 : _additionalDetails$se22.BPA_LABOUR_CESS) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se23 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se23 === void 0 ? void 0 : _additionalDetails$se23.BPA_WATER_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se24 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se24 === void 0 ? void 0 : _additionalDetails$se24.BPA_GAUSHALA_CHARGES_CESS) - (parseFloat(lessAdjusment) ? parseFloat(lessAdjusment) : 0)}`
|
|
22664
22664
|
}))), /*#__PURE__*/React__default.createElement("div", null, scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$scru = scrutinyDetails.scruntinyDetails) === null || _scrutinyDetails$scru === void 0 ? void 0 : _scrutinyDetails$scru.map((report, index) => {
|
|
22665
22665
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
22666
22666
|
className: "border-none",
|
|
@@ -23216,7 +23216,7 @@ const Rebate_menu = [{
|
|
|
23216
23216
|
value: "Others"
|
|
23217
23217
|
}];
|
|
23218
23218
|
const WSFeeEstimation = _ref => {
|
|
23219
|
-
var _wsAdditionalDetails$, _wsAdditionalDetails$
|
|
23219
|
+
var _wsAdditionalDetails$, _wsAdditionalDetails$20, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
23220
23220
|
let {
|
|
23221
23221
|
wsAdditionalDetails,
|
|
23222
23222
|
workflowDetails
|
|
@@ -23300,16 +23300,16 @@ const WSFeeEstimation = _ref => {
|
|
|
23300
23300
|
message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
|
|
23301
23301
|
});
|
|
23302
23302
|
} else {
|
|
23303
|
-
var _wsAdditionalDetails$
|
|
23304
|
-
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
23305
|
-
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
23303
|
+
var _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17, _wsAdditionalDetails$18, _wsAdditionalDetails$19;
|
|
23304
|
+
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$10 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : (_wsAdditionalDetails$11 = _wsAdditionalDetails$10.appDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : _wsAdditionalDetails$11.applicationNo;
|
|
23305
|
+
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$12 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : (_wsAdditionalDetails$13 = _wsAdditionalDetails$12.appDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : _wsAdditionalDetails$13.tenantId;
|
|
23306
23306
|
const appAdditionalDetails = {
|
|
23307
|
-
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
23307
|
+
...(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.additionalDetails),
|
|
23308
23308
|
...fields
|
|
23309
23309
|
};
|
|
23310
23310
|
wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
|
|
23311
23311
|
const data = {
|
|
23312
|
-
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
23312
|
+
CalculationCriteria: (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.service) == "WATER" ? [{
|
|
23313
23313
|
applicationNo: applicationNo,
|
|
23314
23314
|
tenantId: tenantId,
|
|
23315
23315
|
waterConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
@@ -23320,7 +23320,7 @@ const WSFeeEstimation = _ref => {
|
|
|
23320
23320
|
}],
|
|
23321
23321
|
isconnectionCalculation: false
|
|
23322
23322
|
};
|
|
23323
|
-
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
23323
|
+
let businessService = (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.service) == "WATER" ? "WS" : "SW";
|
|
23324
23324
|
Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
|
|
23325
23325
|
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;
|
|
23326
23326
|
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) {
|
|
@@ -23426,7 +23426,7 @@ const WSFeeEstimation = _ref => {
|
|
|
23426
23426
|
} : {
|
|
23427
23427
|
color: "#00703C"
|
|
23428
23428
|
}
|
|
23429
|
-
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$
|
|
23429
|
+
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$20 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$20 !== void 0 && _wsAdditionalDetails$20.isAdhocRebate ? /*#__PURE__*/React__default.createElement("div", {
|
|
23430
23430
|
onClick: e => {
|
|
23431
23431
|
showPopUp(true);
|
|
23432
23432
|
}
|
|
@@ -24453,7 +24453,7 @@ const PaymentHistory = _ref => {
|
|
|
24453
24453
|
};
|
|
24454
24454
|
|
|
24455
24455
|
function ApplicationDetailsContent(_ref) {
|
|
24456
|
-
var _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$
|
|
24456
|
+
var _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a11, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data21, _workflowDetails$data22;
|
|
24457
24457
|
let {
|
|
24458
24458
|
applicationDetails,
|
|
24459
24459
|
demandData,
|
|
@@ -24624,12 +24624,12 @@ function ApplicationDetailsContent(_ref) {
|
|
|
24624
24624
|
privacy: privacy
|
|
24625
24625
|
});
|
|
24626
24626
|
} else {
|
|
24627
|
-
var _applicationData$audi2, _checkpoint$assignes8, _checkpoint$assignes9, _checkpoint$
|
|
24627
|
+
var _applicationData$audi2, _checkpoint$assignes8, _checkpoint$assignes9, _checkpoint$assignes10, _checkpoint$assignes11;
|
|
24628
24628
|
const caption = {
|
|
24629
24629
|
date: convertEpochToDateDMY(applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$audi2 = applicationData.auditDetails) === null || _applicationData$audi2 === void 0 ? void 0 : _applicationData$audi2.lastModifiedTime),
|
|
24630
24630
|
name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes8 = checkpoint.assignes) === null || _checkpoint$assignes8 === void 0 ? void 0 : (_checkpoint$assignes9 = _checkpoint$assignes8[0]) === null || _checkpoint$assignes9 === void 0 ? void 0 : _checkpoint$assignes9.name,
|
|
24631
24631
|
wfComment: checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.wfComment,
|
|
24632
|
-
mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$
|
|
24632
|
+
mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes10 = checkpoint.assignes) === null || _checkpoint$assignes10 === void 0 ? void 0 : (_checkpoint$assignes11 = _checkpoint$assignes10[0]) === null || _checkpoint$assignes11 === void 0 ? void 0 : _checkpoint$assignes11.mobileNumber
|
|
24633
24633
|
};
|
|
24634
24634
|
return /*#__PURE__*/React__default.createElement(TLCaption, {
|
|
24635
24635
|
data: caption
|
|
@@ -24806,14 +24806,14 @@ function ApplicationDetailsContent(_ref) {
|
|
|
24806
24806
|
});
|
|
24807
24807
|
}
|
|
24808
24808
|
} else {
|
|
24809
|
-
var _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$
|
|
24809
|
+
var _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a10;
|
|
24810
24810
|
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a8 = applicationDetails.applicationData) === null || _applicationDetails$a8 === void 0 ? void 0 : _applicationDetails$a8.status) === "INACTIVE") {
|
|
24811
24811
|
alert("Property is inactive, cannot edit.");
|
|
24812
24812
|
return;
|
|
24813
24813
|
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.status) === "INWORKFLOW") {
|
|
24814
24814
|
alert("Property is in workflow, cannot edit.");
|
|
24815
24815
|
return;
|
|
24816
|
-
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
24816
|
+
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a10 = applicationDetails.applicationData) === null || _applicationDetails$a10 === void 0 ? void 0 : _applicationDetails$a10.status) === "ACTIVE") {
|
|
24817
24817
|
history.push({
|
|
24818
24818
|
pathname: `/digit-ui/citizen/pt/property/edit-application/${pID}`
|
|
24819
24819
|
});
|
|
@@ -24857,8 +24857,8 @@ function ApplicationDetailsContent(_ref) {
|
|
|
24857
24857
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
24858
24858
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
24859
24859
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
24860
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
24861
|
-
var _detail$values, _detail$additionalDet, _applicationDetails$
|
|
24860
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a11 = applicationDetails.applicationDetails) === null || _applicationDetails$a11 === void 0 ? void 0 : _applicationDetails$a11.map((detail, index) => {
|
|
24861
|
+
var _detail$values, _detail$additionalDet, _applicationDetails$a12, _applicationDetails$a13, _applicationDetails$a14, _applicationDetails$a15, _detail$additionalDet2, _applicationDetails$a16, _applicationDetails$a17, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet10, _detail$additionalDet11, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
24862
24862
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
24863
24863
|
key: index
|
|
24864
24864
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -25002,10 +25002,10 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25002
25002
|
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React__default.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
25003
25003
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
25004
25004
|
paymentsList: paymentsList,
|
|
25005
|
-
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25005
|
+
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a12 = applicationDetails.applicationData) === null || _applicationDetails$a12 === void 0 ? void 0 : _applicationDetails$a12.additionalDetails,
|
|
25006
25006
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
25007
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25008
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25007
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a13 = applicationDetails.applicationData) === null || _applicationDetails$a13 === void 0 ? void 0 : (_applicationDetails$a14 = _applicationDetails$a13.additionalDetails) === null || _applicationDetails$a14 === void 0 ? void 0 : (_applicationDetails$a15 = _applicationDetails$a14.fieldinspection_pending) === null || _applicationDetails$a15 === void 0 ? void 0 : _applicationDetails$a15.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React__default.createElement(InspectionReport, {
|
|
25008
|
+
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a16 = applicationDetails.applicationData) === null || _applicationDetails$a16 === void 0 ? void 0 : (_applicationDetails$a17 = _applicationDetails$a16.additionalDetails) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.fieldinspection_pending
|
|
25009
25009
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React__default.createElement(PropertyFloors, {
|
|
25010
25010
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
25011
25011
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.owners) && /*#__PURE__*/React__default.createElement(PropertyOwners, {
|
|
@@ -25013,12 +25013,12 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25013
25013
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.units) && /*#__PURE__*/React__default.createElement(TLTradeUnits, {
|
|
25014
25014
|
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.units
|
|
25015
25015
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.accessories) && /*#__PURE__*/React__default.createElement(TLTradeAccessories, {
|
|
25016
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25017
|
-
}), !isEditApplication && (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25016
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.accessories
|
|
25017
|
+
}), !isEditApplication && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React__default.createElement(PermissionCheck, {
|
|
25018
25018
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
25019
25019
|
t: t,
|
|
25020
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25021
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25020
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.permissions
|
|
25021
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.obpsDocuments) && /*#__PURE__*/React__default.createElement("div", {
|
|
25022
25022
|
style: {
|
|
25023
25023
|
display: "flex"
|
|
25024
25024
|
}
|
|
@@ -25027,29 +25027,29 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25027
25027
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
25028
25028
|
docs: detail.additionalDetails.obpsDocuments,
|
|
25029
25029
|
bpaActionsDetails: workflowDetails
|
|
25030
|
-
})), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25030
|
+
})), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.noc) && /*#__PURE__*/React__default.createElement(NOCDocuments, {
|
|
25031
25031
|
t: t,
|
|
25032
25032
|
isNoc: true,
|
|
25033
25033
|
NOCdata: detail.values,
|
|
25034
25034
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
25035
25035
|
docs: detail.additionalDetails.noc,
|
|
25036
|
-
noc: (_detail$
|
|
25036
|
+
noc: (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.data,
|
|
25037
25037
|
bpaActionsDetails: workflowDetails
|
|
25038
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25038
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.scruntinyDetails) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
25039
25039
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
25040
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25040
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.buildingExtractionDetails) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
25041
25041
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
25042
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25042
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.subOccupancyTableDetails) && /*#__PURE__*/React__default.createElement(SubOccupancyTable, {
|
|
25043
25043
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
25044
25044
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
25045
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25046
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25047
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25048
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25045
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documentsWithUrl) && /*#__PURE__*/React__default.createElement(DocumentsPreview, {
|
|
25046
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documentsWithUrl
|
|
25047
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
|
|
25048
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
25049
25049
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React__default.createElement(WSAdditonalDetails, {
|
|
25050
25050
|
wsAdditionalDetails: detail,
|
|
25051
25051
|
oldValue: oldValue
|
|
25052
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25052
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React__default.createElement("div", {
|
|
25053
25053
|
style: {
|
|
25054
25054
|
fontSize: "16px",
|
|
25055
25055
|
lineHeight: "24px",
|
|
@@ -25057,16 +25057,16 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25057
25057
|
padding: "10px 0px"
|
|
25058
25058
|
}
|
|
25059
25059
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
25060
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25060
|
+
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.url
|
|
25061
25061
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25062
25062
|
className: "link",
|
|
25063
25063
|
style: {
|
|
25064
25064
|
color: "#a82227"
|
|
25065
25065
|
}
|
|
25066
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25066
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React__default.createElement(WSFeeEstimation, {
|
|
25067
25067
|
wsAdditionalDetails: detail,
|
|
25068
25068
|
workflowDetails: workflowDetails
|
|
25069
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25069
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.estimationDetails) && /*#__PURE__*/React__default.createElement(ViewBreakup, {
|
|
25070
25070
|
wsAdditionalDetails: detail,
|
|
25071
25071
|
workflowDetails: workflowDetails
|
|
25072
25072
|
}));
|
|
@@ -25086,13 +25086,13 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25086
25086
|
}, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data5 = workflowDetails.data) !== null && _workflowDetails$data5 !== void 0 && _workflowDetails$data5.timeline && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.timeline) === null || _workflowDetails$data7 === void 0 ? void 0 : _workflowDetails$data7.length) === 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckPoint, {
|
|
25087
25087
|
isCompleted: true,
|
|
25088
25088
|
label: t(`${timelineStatusPrefix}${workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data8 = workflowDetails.data) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.timeline[0]) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.state}`),
|
|
25089
|
-
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
25090
|
-
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
25091
|
-
var _workflowDetails$
|
|
25089
|
+
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data10 = workflowDetails.data) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.timeline[0], workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : _workflowDetails$data11.timeline)
|
|
25090
|
+
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data12 = workflowDetails.data) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data13 = workflowDetails.data) === null || _workflowDetails$data13 === void 0 ? void 0 : _workflowDetails$data13.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).map((checkpoint, index, arr) => {
|
|
25091
|
+
var _workflowDetails$data20;
|
|
25092
25092
|
let timelineStatusPostfix = "";
|
|
25093
25093
|
if (window.location.href.includes("/obps/")) {
|
|
25094
|
-
var _workflowDetails$
|
|
25095
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
25094
|
+
var _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19;
|
|
25095
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data14 = workflowDetails.data) !== null && _workflowDetails$data14 !== void 0 && (_workflowDetails$data15 = _workflowDetails$data14.timeline[index - 1]) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.state) !== null && _workflowDetails$data16 !== void 0 && _workflowDetails$data16.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data17 = workflowDetails.data) !== null && _workflowDetails$data17 !== void 0 && (_workflowDetails$data18 = _workflowDetails$data17.timeline[index - 1]) !== null && _workflowDetails$data18 !== void 0 && (_workflowDetails$data19 = _workflowDetails$data18.state) !== null && _workflowDetails$data19 !== void 0 && _workflowDetails$data19.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index == 0 ? "" : `_DONE`;
|
|
25096
25096
|
}
|
|
25097
25097
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
25098
25098
|
key: index
|
|
@@ -25101,9 +25101,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25101
25101
|
isCompleted: index === 0,
|
|
25102
25102
|
info: checkpoint.comment,
|
|
25103
25103
|
label: t(`${timelineStatusPrefix}${(checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "REOPEN" ? checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction : checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint[statusAttribute]}${timelineStatusPostfix}`),
|
|
25104
|
-
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
25104
|
+
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data20 = workflowDetails.data) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.timeline)
|
|
25105
25105
|
}));
|
|
25106
|
-
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
25106
|
+
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.timeline) === null || _workflowDetails$data22 === void 0 ? void 0 : _workflowDetails$data22.length) > 2 && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
25107
25107
|
label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
|
|
25108
25108
|
onClick: toggleTimeline
|
|
25109
25109
|
})))), window.location.href.includes("/pt/") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
|
|
@@ -25144,7 +25144,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25144
25144
|
}
|
|
25145
25145
|
|
|
25146
25146
|
function ApplicationDetailsToast(_ref) {
|
|
25147
|
-
var _showToast$error, _showToast$error2, _showToast$error3, _showToast$error4, _showToast$error5, _showToast$error6, _showToast$error7, _showToast$error8, _showToast$action2, _showToast$error9, _showToast$
|
|
25147
|
+
var _showToast$error, _showToast$error2, _showToast$error3, _showToast$error4, _showToast$error5, _showToast$error6, _showToast$error7, _showToast$error8, _showToast$action2, _showToast$error9, _showToast$error10, _showToast$error11, _showToast$error12, _showToast$error13, _showToast$error14, _showToast$error15, _showToast$error16, _showToast$action4;
|
|
25148
25148
|
let {
|
|
25149
25149
|
t,
|
|
25150
25150
|
showToast,
|
|
@@ -25201,26 +25201,26 @@ function ApplicationDetailsToast(_ref) {
|
|
|
25201
25201
|
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error9 = showToast.error) === null || _showToast$error9 === void 0 ? void 0 : _showToast$error9.message : getMessage(["BPA_APPROVAL_REVOCATED_MESSAGE_HEAD", "BPA_APPROVAL_OC_REVOCATED_MESSAGE_HEAD"]);
|
|
25202
25202
|
break;
|
|
25203
25203
|
case "VERIFY_AND_FORWARD":
|
|
25204
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25204
|
+
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error10 = showToast.error) === null || _showToast$error10 === void 0 ? void 0 : _showToast$error10.message : getMessage(["BPA_FORWARD_SUCCESS_MESSAGE_MAIN"]);
|
|
25205
25205
|
break;
|
|
25206
25206
|
case "SEND_BACK_TO_CITIZEN":
|
|
25207
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25207
|
+
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error11 = showToast.error) === null || _showToast$error11 === void 0 ? void 0 : _showToast$error11.message : getMessage(["BPA_SENDBACK_SUCCESS_MESSAGE_MAIN"]);
|
|
25208
25208
|
break;
|
|
25209
25209
|
case "APPROVE":
|
|
25210
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25210
|
+
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error12 = showToast.error) === null || _showToast$error12 === void 0 ? void 0 : _showToast$error12.message : getMessage(["BPA_APPROVAL_CHECKLIST_MESSAGE_HEAD"]);
|
|
25211
25211
|
break;
|
|
25212
25212
|
case "REJECT":
|
|
25213
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25213
|
+
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error13 = showToast.error) === null || _showToast$error13 === void 0 ? void 0 : _showToast$error13.message : getMessage(["BPA_APPROVAL_REJECTED_MESSAGE_HEAD", "BPA_OC_APPROVAL_REJECTED_MESSAGE_HEAD"]);
|
|
25214
25214
|
break;
|
|
25215
25215
|
case "FORWARD":
|
|
25216
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25216
|
+
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error14 = showToast.error) === null || _showToast$error14 === void 0 ? void 0 : _showToast$error14.message : getMessage(["BPA_FORWARD_SUCCESS_MESSAGE_MAIN"]);
|
|
25217
25217
|
break;
|
|
25218
25218
|
case "SEND_BACK_FOR_DOCUMENT_VERIFICATION":
|
|
25219
25219
|
case "SEND_BACK_FOR_FIELD_INSPECTION":
|
|
25220
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25220
|
+
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error15 = showToast.error) === null || _showToast$error15 === void 0 ? void 0 : _showToast$error15.message : getMessage(["BPA_SENDBACK_SUCCESS_MESSAGE_MAIN"]);
|
|
25221
25221
|
break;
|
|
25222
25222
|
default:
|
|
25223
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25223
|
+
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error16 = showToast.error) === null || _showToast$error16 === void 0 ? void 0 : _showToast$error16.message : t(`ES_${businessService}_${showToast === null || showToast === void 0 ? void 0 : (_showToast$action4 = showToast.action) === null || _showToast$action4 === void 0 ? void 0 : _showToast$action4.action}_UPDATE_SUCCESS`);
|
|
25224
25224
|
}
|
|
25225
25225
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
25226
25226
|
error: showToast.key === "error",
|
|
@@ -25228,8 +25228,8 @@ function ApplicationDetailsToast(_ref) {
|
|
|
25228
25228
|
onClose: closeToast
|
|
25229
25229
|
}));
|
|
25230
25230
|
} else {
|
|
25231
|
-
var _showToast$
|
|
25232
|
-
const label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25231
|
+
var _showToast$error17, _showToast$action5;
|
|
25232
|
+
const label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error17 = showToast.error) === null || _showToast$error17 === void 0 ? void 0 : _showToast$error17.message : `ES_${businessService}_${showToast === null || showToast === void 0 ? void 0 : (_showToast$action5 = showToast.action) === null || _showToast$action5 === void 0 ? void 0 : _showToast$action5.action}_UPDATE_SUCCESS`;
|
|
25233
25233
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
25234
25234
|
error: showToast.key === "error",
|
|
25235
25235
|
label: t(label),
|
|
@@ -25468,7 +25468,7 @@ const ApplicationDetails = props => {
|
|
|
25468
25468
|
}, [showToast]);
|
|
25469
25469
|
function onActionSelect(action) {
|
|
25470
25470
|
if (action) {
|
|
25471
|
-
var _action$redirectionUr8, _action$redirectionUr9, _action$
|
|
25471
|
+
var _action$redirectionUr8, _action$redirectionUr9, _action$redirectionUr10;
|
|
25472
25472
|
if ((action === null || action === void 0 ? void 0 : action.action) == "EDIT PAY 2" && window.location.href.includes("bpa")) {
|
|
25473
25473
|
window.location.assign(window.location.href.split("bpa")[0] + "editApplication/bpa" + window.location.href.split("bpa")[1]);
|
|
25474
25474
|
} else if (action !== null && action !== void 0 && action.isWarningPopUp) {
|
|
@@ -25492,15 +25492,15 @@ const ApplicationDetails = props => {
|
|
|
25492
25492
|
}
|
|
25493
25493
|
} else if (!(action !== null && action !== void 0 && action.redirectionUrl) && (action === null || action === void 0 ? void 0 : action.action) != "EDIT PAY 2") {
|
|
25494
25494
|
setShowModal(true);
|
|
25495
|
-
} else if ((action === null || action === void 0 ? void 0 : (_action$redirectionUr8 = action.redirectionUrl) === null || _action$redirectionUr8 === void 0 ? void 0 : (_action$redirectionUr9 = _action$redirectionUr8.state) === null || _action$redirectionUr9 === void 0 ? void 0 : (_action$
|
|
25495
|
+
} else if ((action === null || action === void 0 ? void 0 : (_action$redirectionUr8 = action.redirectionUrl) === null || _action$redirectionUr8 === void 0 ? void 0 : (_action$redirectionUr9 = _action$redirectionUr8.state) === null || _action$redirectionUr9 === void 0 ? void 0 : (_action$redirectionUr10 = _action$redirectionUr9.applicationData) === null || _action$redirectionUr10 === void 0 ? void 0 : _action$redirectionUr10.workflowCode) === "DIRECTRENEWAL") {
|
|
25496
25496
|
console.log("Got Inside Direct");
|
|
25497
25497
|
setShowModal(true);
|
|
25498
25498
|
} else {
|
|
25499
|
-
var _action$
|
|
25499
|
+
var _action$redirectionUr11, _action$redirectionUr12;
|
|
25500
25500
|
history.push({
|
|
25501
|
-
pathname: (_action$
|
|
25501
|
+
pathname: (_action$redirectionUr11 = action.redirectionUrl) === null || _action$redirectionUr11 === void 0 ? void 0 : _action$redirectionUr11.pathname,
|
|
25502
25502
|
state: {
|
|
25503
|
-
...((_action$
|
|
25503
|
+
...((_action$redirectionUr12 = action.redirectionUrl) === null || _action$redirectionUr12 === void 0 ? void 0 : _action$redirectionUr12.state)
|
|
25504
25504
|
}
|
|
25505
25505
|
});
|
|
25506
25506
|
}
|
|
@@ -26281,14 +26281,14 @@ const createEmployeeConfig = [{
|
|
|
26281
26281
|
isStepEnabled: true,
|
|
26282
26282
|
type: "component",
|
|
26283
26283
|
component: "NewADSStepFormOne",
|
|
26284
|
-
key: "
|
|
26284
|
+
key: "ownerDetails",
|
|
26285
26285
|
withoutLabel: true,
|
|
26286
26286
|
texts: {
|
|
26287
26287
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
26288
26288
|
}
|
|
26289
26289
|
}, {
|
|
26290
26290
|
head: "PET DETAILS",
|
|
26291
|
-
stepLabel: "
|
|
26291
|
+
stepLabel: "ADS_DETAILS",
|
|
26292
26292
|
stepNumber: 2,
|
|
26293
26293
|
isStepEnabled: true,
|
|
26294
26294
|
type: "component",
|
|
@@ -26329,7 +26329,6 @@ const updatedCreateEmployeeconfig = createEmployeeConfig.map(item => {
|
|
|
26329
26329
|
currStepConfig: citizenConfig$1.filter(newConfigItem => newConfigItem.stepNumber === item.stepNumber)
|
|
26330
26330
|
};
|
|
26331
26331
|
});
|
|
26332
|
-
console.log("updatedCreateEmployeeconfig: ", updatedCreateEmployeeconfig);
|
|
26333
26332
|
const NewADSStepperForm = () => {
|
|
26334
26333
|
const history = reactRouterDom.useHistory();
|
|
26335
26334
|
const {
|
|
@@ -26340,14 +26339,15 @@ const NewADSStepperForm = () => {
|
|
|
26340
26339
|
const formState = reactRedux.useSelector(state => state.ads.ADSNewApplicationFormReducer);
|
|
26341
26340
|
const step = formState.step;
|
|
26342
26341
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
26343
|
-
console.log("formStatePTR: ", formState);
|
|
26344
26342
|
const setStep = updatedStepNumber => {
|
|
26345
26343
|
dispatch(SET_ADSNewApplication_STEP(updatedStepNumber));
|
|
26346
26344
|
};
|
|
26347
26345
|
React.useEffect(() => {
|
|
26348
26346
|
dispatch(RESET_ADS_NEW_APPLICATION_FORM());
|
|
26349
26347
|
}, []);
|
|
26350
|
-
const handleSubmit =
|
|
26348
|
+
const handleSubmit = dataGet => {
|
|
26349
|
+
console.log("dataGet===", dataGet);
|
|
26350
|
+
};
|
|
26351
26351
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26352
26352
|
className: "pageCard"
|
|
26353
26353
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
@@ -26357,7 +26357,7 @@ const NewADSStepperForm = () => {
|
|
|
26357
26357
|
color: "#1C1D1F"
|
|
26358
26358
|
},
|
|
26359
26359
|
divider: true
|
|
26360
|
-
}, t("
|
|
26360
|
+
}, t("ADS_REGISTRATION_APPLICATION")), /*#__PURE__*/React__default.createElement(Stepper, {
|
|
26361
26361
|
stepsList: updatedCreateEmployeeconfig,
|
|
26362
26362
|
onSubmit: handleSubmit,
|
|
26363
26363
|
step: step,
|
|
@@ -26372,89 +26372,183 @@ const NewADSStepperForm = () => {
|
|
|
26372
26372
|
}));
|
|
26373
26373
|
};
|
|
26374
26374
|
|
|
26375
|
+
const ADSCitizenDetailsNew = _ref => {
|
|
26376
|
+
let {
|
|
26377
|
+
t,
|
|
26378
|
+
goNext,
|
|
26379
|
+
currentStepData
|
|
26380
|
+
} = _ref;
|
|
26381
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
26382
|
+
const stateId = Digit.ULBService.getStateId();
|
|
26383
|
+
const {
|
|
26384
|
+
control,
|
|
26385
|
+
handleSubmit,
|
|
26386
|
+
setValue
|
|
26387
|
+
} = reactHookForm.useForm();
|
|
26388
|
+
const onSubmit = data => {
|
|
26389
|
+
console.log("data in first step", data);
|
|
26390
|
+
goNext(data);
|
|
26391
|
+
};
|
|
26392
|
+
React.useEffect(() => {
|
|
26393
|
+
console.log("currentStepData", currentStepData);
|
|
26394
|
+
const formattedData = currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.ownerDetails;
|
|
26395
|
+
if (formattedData) {
|
|
26396
|
+
console.log("coming here", formattedData);
|
|
26397
|
+
Object.entries(formattedData).forEach(_ref2 => {
|
|
26398
|
+
let [key, value] = _ref2;
|
|
26399
|
+
setValue(key, value);
|
|
26400
|
+
});
|
|
26401
|
+
}
|
|
26402
|
+
}, [currentStepData, setValue]);
|
|
26403
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("form", {
|
|
26404
|
+
onSubmit: handleSubmit(onSubmit)
|
|
26405
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NDC_FIRST_NAME")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26406
|
+
control: control,
|
|
26407
|
+
name: "firstName",
|
|
26408
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
26409
|
+
value: props.value,
|
|
26410
|
+
onChange: e => {
|
|
26411
|
+
props.onChange(e.target.value);
|
|
26412
|
+
},
|
|
26413
|
+
onBlur: e => {
|
|
26414
|
+
props.onBlur(e);
|
|
26415
|
+
},
|
|
26416
|
+
t: t
|
|
26417
|
+
})
|
|
26418
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NDC_LAST_NAME")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26419
|
+
control: control,
|
|
26420
|
+
name: "lastName",
|
|
26421
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
26422
|
+
value: props.value,
|
|
26423
|
+
onChange: e => {
|
|
26424
|
+
props.onChange(e.target.value);
|
|
26425
|
+
},
|
|
26426
|
+
onBlur: e => {
|
|
26427
|
+
props.onBlur(e);
|
|
26428
|
+
},
|
|
26429
|
+
t: t
|
|
26430
|
+
})
|
|
26431
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NOC_APPLICANT_EMAIL_LABEL")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26432
|
+
control: control,
|
|
26433
|
+
name: "emailId",
|
|
26434
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
26435
|
+
value: props.value,
|
|
26436
|
+
onChange: e => {
|
|
26437
|
+
props.onChange(e.target.value);
|
|
26438
|
+
},
|
|
26439
|
+
onBlur: e => {
|
|
26440
|
+
props.onBlur(e);
|
|
26441
|
+
},
|
|
26442
|
+
t: t
|
|
26443
|
+
})
|
|
26444
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NOC_APPLICANT_MOBILE_NO_LABEL")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26445
|
+
control: control,
|
|
26446
|
+
name: "mobileNumber",
|
|
26447
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
|
|
26448
|
+
value: props.value,
|
|
26449
|
+
onChange: props.onChange,
|
|
26450
|
+
onBlur: props.onBlur,
|
|
26451
|
+
t: t
|
|
26452
|
+
})
|
|
26453
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("ADVT_CHALLAN_UNDER_SECTION_122_123_SGST")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26454
|
+
control: control,
|
|
26455
|
+
name: "SGST",
|
|
26456
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
26457
|
+
value: props.value,
|
|
26458
|
+
onChange: e => {
|
|
26459
|
+
props.onChange(e.target.value);
|
|
26460
|
+
},
|
|
26461
|
+
onBlur: e => {
|
|
26462
|
+
props.onBlur(e);
|
|
26463
|
+
},
|
|
26464
|
+
t: t
|
|
26465
|
+
})
|
|
26466
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PT_COMMON_COL_ADDRESS")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26467
|
+
control: control,
|
|
26468
|
+
name: "address",
|
|
26469
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextArea, {
|
|
26470
|
+
name: "address",
|
|
26471
|
+
value: props.value,
|
|
26472
|
+
onChange: e => {
|
|
26473
|
+
props.onChange(e.target.value);
|
|
26474
|
+
},
|
|
26475
|
+
onBlur: e => {
|
|
26476
|
+
props.onBlur(e);
|
|
26477
|
+
},
|
|
26478
|
+
t: t
|
|
26479
|
+
})
|
|
26480
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
26481
|
+
style: {
|
|
26482
|
+
marginTop: "20px"
|
|
26483
|
+
}
|
|
26484
|
+
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26485
|
+
control: control,
|
|
26486
|
+
name: "selfDeclaration",
|
|
26487
|
+
render: field => /*#__PURE__*/React__default.createElement("div", {
|
|
26488
|
+
style: {
|
|
26489
|
+
display: "flex",
|
|
26490
|
+
alignItems: "center",
|
|
26491
|
+
gap: "8px",
|
|
26492
|
+
marginBottom: "12px"
|
|
26493
|
+
}
|
|
26494
|
+
}, /*#__PURE__*/React__default.createElement("input", {
|
|
26495
|
+
value: field.value,
|
|
26496
|
+
type: "checkbox",
|
|
26497
|
+
id: "selfDeclaration",
|
|
26498
|
+
checked: field.value || false,
|
|
26499
|
+
onChange: e => field.onChange(e.target.checked),
|
|
26500
|
+
onBlur: field.onBlur,
|
|
26501
|
+
style: {
|
|
26502
|
+
width: "18px",
|
|
26503
|
+
height: "18px",
|
|
26504
|
+
cursor: "pointer"
|
|
26505
|
+
}
|
|
26506
|
+
}), /*#__PURE__*/React__default.createElement("label", {
|
|
26507
|
+
htmlFor: "selfDeclaration",
|
|
26508
|
+
style: {
|
|
26509
|
+
fontSize: "14px",
|
|
26510
|
+
lineHeight: "1.5",
|
|
26511
|
+
cursor: "pointer"
|
|
26512
|
+
}
|
|
26513
|
+
}, t("BILLAMENDMENT_SELFDECLARATION_LABEL")))
|
|
26514
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
26515
|
+
label: "Next",
|
|
26516
|
+
submit: "submit"
|
|
26517
|
+
}))));
|
|
26518
|
+
};
|
|
26519
|
+
|
|
26375
26520
|
const NewADSStepFormOne = _ref => {
|
|
26376
26521
|
let {
|
|
26377
26522
|
config,
|
|
26378
26523
|
onGoNext,
|
|
26379
|
-
onBackClick
|
|
26380
|
-
t
|
|
26524
|
+
onBackClick
|
|
26381
26525
|
} = _ref;
|
|
26382
26526
|
const dispatch = reactRedux.useDispatch();
|
|
26527
|
+
const {
|
|
26528
|
+
t
|
|
26529
|
+
} = reactI18next.useTranslation();
|
|
26383
26530
|
const [showToast, setShowToast] = React.useState(false);
|
|
26384
26531
|
const [error, setError] = React.useState("");
|
|
26385
26532
|
const currentStepData = reactRedux.useSelector(function (state) {
|
|
26386
|
-
return state.ads.ADSNewApplicationFormReducer.formData
|
|
26533
|
+
return state.ads.ADSNewApplicationFormReducer.formData;
|
|
26387
26534
|
});
|
|
26388
|
-
function validateStepData(data) {
|
|
26389
|
-
const ownerss = (data === null || data === void 0 ? void 0 : data.ownerss) || [];
|
|
26390
|
-
const missingFields = [];
|
|
26391
|
-
const notFormattedFields = [];
|
|
26392
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.firstName)) missingFields.push("FIRST_NAME");
|
|
26393
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.lastName)) missingFields.push("LAST_NAME");
|
|
26394
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.emailId)) missingFields.push("EMAIL_ID");
|
|
26395
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.mobileNumber)) missingFields.push("MOBILE_NUMBER");
|
|
26396
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.fatherName)) missingFields.push("FATHER_NAME");
|
|
26397
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.address)) missingFields.push("ADDRESS");
|
|
26398
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.mobileNumber && !/^[6-9]\d{9}$/.test(ownerss.mobileNumber)) {
|
|
26399
|
-
notFormattedFields.push("MOBILE_NUMBER");
|
|
26400
|
-
}
|
|
26401
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.emailId && !/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(ownerss.emailId)) {
|
|
26402
|
-
notFormattedFields.push("EMAIL_ID");
|
|
26403
|
-
}
|
|
26404
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.firstName && !/^[a-zA-Z ]+$/.test(ownerss.firstName)) {
|
|
26405
|
-
notFormattedFields.push("FIRST_NAME");
|
|
26406
|
-
}
|
|
26407
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.lastName && !/^[a-zA-Z ]+$/.test(ownerss.lastName)) {
|
|
26408
|
-
notFormattedFields.push("LAST_NAME");
|
|
26409
|
-
}
|
|
26410
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.fatherName && !/^[a-zA-Z ]+$/.test(ownerss.fatherName)) {
|
|
26411
|
-
notFormattedFields.push("FATHER_NAME");
|
|
26412
|
-
}
|
|
26413
|
-
return {
|
|
26414
|
-
missingFields,
|
|
26415
|
-
notFormattedFields
|
|
26416
|
-
};
|
|
26417
|
-
}
|
|
26418
26535
|
function goNext(data) {
|
|
26419
|
-
|
|
26420
|
-
missingFields,
|
|
26421
|
-
notFormattedFields
|
|
26422
|
-
} = validateStepData(currentStepData);
|
|
26423
|
-
console.log("data===", data);
|
|
26424
|
-
console.log("currentStepData===", currentStepData);
|
|
26425
|
-
if (missingFields.length > 0) {
|
|
26426
|
-
setError(`Please fill the following field: ${missingFields[0]}`);
|
|
26427
|
-
setShowToast(true);
|
|
26428
|
-
return;
|
|
26429
|
-
}
|
|
26430
|
-
if (notFormattedFields.length > 0) {
|
|
26431
|
-
setError(`Please format the following field: ${notFormattedFields[0]}`);
|
|
26432
|
-
setShowToast(true);
|
|
26433
|
-
return;
|
|
26434
|
-
}
|
|
26536
|
+
dispatch(UPDATE_ADSNewApplication_FORM(config.key, data));
|
|
26435
26537
|
onGoNext();
|
|
26538
|
+
return;
|
|
26436
26539
|
}
|
|
26437
26540
|
function onGoBack(data) {
|
|
26438
26541
|
onBackClick(config.key, data);
|
|
26439
26542
|
}
|
|
26440
|
-
const onFormValueChange = function (setValue, data) {
|
|
26441
|
-
console.log("onFormValueChange data in AdministrativeDetails: ", data, "\n Bool: ", !lodash.isEqual(data, currentStepData));
|
|
26442
|
-
if (!lodash.isEqual(data, currentStepData)) {
|
|
26443
|
-
dispatch(UPDATE_ADSNewApplication_FORM(config.key, data));
|
|
26444
|
-
}
|
|
26445
|
-
};
|
|
26446
26543
|
const closeToast = () => {
|
|
26447
26544
|
setShowToast(false);
|
|
26448
26545
|
setError("");
|
|
26449
26546
|
};
|
|
26450
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
26451
|
-
|
|
26452
|
-
|
|
26453
|
-
|
|
26454
|
-
|
|
26455
|
-
label: t(`${config.texts.submitBarLabel}`),
|
|
26456
|
-
currentStep: config.currStepNumber,
|
|
26457
|
-
onBackClick: onGoBack
|
|
26547
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ADSCitizenDetailsNew, {
|
|
26548
|
+
onGoBack: onGoBack,
|
|
26549
|
+
goNext: goNext,
|
|
26550
|
+
currentStepData: currentStepData,
|
|
26551
|
+
t: t
|
|
26458
26552
|
}), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
26459
26553
|
isDleteBtn: true,
|
|
26460
26554
|
error: true,
|
|
@@ -26463,68 +26557,179 @@ const NewADSStepFormOne = _ref => {
|
|
|
26463
26557
|
}));
|
|
26464
26558
|
};
|
|
26465
26559
|
|
|
26560
|
+
const Breed_Type = [{
|
|
26561
|
+
i18nKey: `PTR_GENDER`,
|
|
26562
|
+
code: `123`,
|
|
26563
|
+
name: `test`
|
|
26564
|
+
}];
|
|
26565
|
+
const ADSCitizenSecond = _ref => {
|
|
26566
|
+
let {
|
|
26567
|
+
onGoBack,
|
|
26568
|
+
goNext,
|
|
26569
|
+
currentStepData,
|
|
26570
|
+
t
|
|
26571
|
+
} = _ref;
|
|
26572
|
+
const {
|
|
26573
|
+
control,
|
|
26574
|
+
handleSubmit,
|
|
26575
|
+
setValue
|
|
26576
|
+
} = reactHookForm.useForm();
|
|
26577
|
+
const onSubmit = data => {
|
|
26578
|
+
goNext(data);
|
|
26579
|
+
};
|
|
26580
|
+
React.useEffect(() => {
|
|
26581
|
+
console.log("currentStepData", currentStepData);
|
|
26582
|
+
const formattedData = currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.pets;
|
|
26583
|
+
if (formattedData) {
|
|
26584
|
+
console.log("coming here", formattedData);
|
|
26585
|
+
Object.entries(formattedData).forEach(_ref2 => {
|
|
26586
|
+
let [key, value] = _ref2;
|
|
26587
|
+
setValue(key, value);
|
|
26588
|
+
});
|
|
26589
|
+
}
|
|
26590
|
+
}, [currentStepData, setValue]);
|
|
26591
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("form", {
|
|
26592
|
+
onSubmit: handleSubmit(onSubmit)
|
|
26593
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "Search By site id"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26594
|
+
control: control,
|
|
26595
|
+
name: "siteId",
|
|
26596
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
26597
|
+
value: props.value,
|
|
26598
|
+
onChange: e => {
|
|
26599
|
+
props.onChange(e.target.value);
|
|
26600
|
+
},
|
|
26601
|
+
onBlur: e => {
|
|
26602
|
+
props.onBlur(e);
|
|
26603
|
+
}
|
|
26604
|
+
})
|
|
26605
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "Site Name"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26606
|
+
control: control,
|
|
26607
|
+
name: "siteName",
|
|
26608
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
26609
|
+
className: "form-field",
|
|
26610
|
+
select: props.onChange,
|
|
26611
|
+
selected: props.value,
|
|
26612
|
+
option: Breed_Type,
|
|
26613
|
+
optionKey: "i18nKey"
|
|
26614
|
+
})
|
|
26615
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "Geo Location"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26616
|
+
control: control,
|
|
26617
|
+
name: "geoLocation",
|
|
26618
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
26619
|
+
className: "form-field",
|
|
26620
|
+
select: props.onChange,
|
|
26621
|
+
selected: props.value,
|
|
26622
|
+
option: Breed_Type,
|
|
26623
|
+
optionKey: "i18nKey"
|
|
26624
|
+
})
|
|
26625
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "Address"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26626
|
+
control: control,
|
|
26627
|
+
name: "address",
|
|
26628
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextArea, {
|
|
26629
|
+
value: props.value,
|
|
26630
|
+
onChange: e => {
|
|
26631
|
+
props.onChange(e.target.value);
|
|
26632
|
+
},
|
|
26633
|
+
onBlur: e => {
|
|
26634
|
+
props.onBlur(e);
|
|
26635
|
+
}
|
|
26636
|
+
})
|
|
26637
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "Size"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26638
|
+
control: control,
|
|
26639
|
+
name: "size",
|
|
26640
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
26641
|
+
value: props.value,
|
|
26642
|
+
onChange: e => {
|
|
26643
|
+
props.onChange(e.target.value);
|
|
26644
|
+
},
|
|
26645
|
+
onBlur: e => {
|
|
26646
|
+
props.onBlur(e);
|
|
26647
|
+
}
|
|
26648
|
+
})
|
|
26649
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "Advertisement Type"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26650
|
+
control: control,
|
|
26651
|
+
name: "advertisementType",
|
|
26652
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
26653
|
+
className: "form-field",
|
|
26654
|
+
select: props.onChange,
|
|
26655
|
+
selected: props.value,
|
|
26656
|
+
option: Breed_Type,
|
|
26657
|
+
optionKey: "i18nKey"
|
|
26658
|
+
})
|
|
26659
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "Start Date"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26660
|
+
control: control,
|
|
26661
|
+
name: "startDate",
|
|
26662
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
26663
|
+
type: "date",
|
|
26664
|
+
value: props.value,
|
|
26665
|
+
onChange: e => {
|
|
26666
|
+
props.onChange(e.target.value);
|
|
26667
|
+
},
|
|
26668
|
+
onBlur: e => {
|
|
26669
|
+
props.onBlur(e);
|
|
26670
|
+
}
|
|
26671
|
+
})
|
|
26672
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, "End Date"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26673
|
+
control: control,
|
|
26674
|
+
name: "endDate",
|
|
26675
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
26676
|
+
type: "date",
|
|
26677
|
+
value: props.value,
|
|
26678
|
+
onChange: e => {
|
|
26679
|
+
props.onChange(e.target.value);
|
|
26680
|
+
},
|
|
26681
|
+
onBlur: e => {
|
|
26682
|
+
props.onBlur(e);
|
|
26683
|
+
}
|
|
26684
|
+
})
|
|
26685
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
26686
|
+
style: {
|
|
26687
|
+
background: " white",
|
|
26688
|
+
color: "black",
|
|
26689
|
+
border: "1px solid",
|
|
26690
|
+
marginRight: "10px"
|
|
26691
|
+
},
|
|
26692
|
+
label: "Back",
|
|
26693
|
+
submit: "submit",
|
|
26694
|
+
onSubmit: onGoBack
|
|
26695
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
26696
|
+
label: "Next",
|
|
26697
|
+
submit: "submit"
|
|
26698
|
+
}))));
|
|
26699
|
+
};
|
|
26700
|
+
|
|
26466
26701
|
const NewADSStepFormTwo = _ref => {
|
|
26467
26702
|
let {
|
|
26468
26703
|
config,
|
|
26469
|
-
onGoNext,
|
|
26470
26704
|
onBackClick,
|
|
26471
|
-
|
|
26705
|
+
onGoNext
|
|
26472
26706
|
} = _ref;
|
|
26707
|
+
const {
|
|
26708
|
+
t
|
|
26709
|
+
} = reactI18next.useTranslation();
|
|
26473
26710
|
const dispatch = reactRedux.useDispatch();
|
|
26474
26711
|
const [showToast, setShowToast] = React.useState(false);
|
|
26475
26712
|
const [error, setError] = React.useState("");
|
|
26476
26713
|
const currentStepData = reactRedux.useSelector(function (state) {
|
|
26477
|
-
return state.ads.ADSNewApplicationFormReducer.formData
|
|
26714
|
+
return state.ads.ADSNewApplicationFormReducer.formData;
|
|
26478
26715
|
});
|
|
26479
26716
|
function goNext(data) {
|
|
26480
|
-
|
|
26481
|
-
missingFields,
|
|
26482
|
-
notFormattedFields
|
|
26483
|
-
} = validateStepData(currentStepData);
|
|
26484
|
-
if (missingFields.length > 0) {
|
|
26485
|
-
setError(`Please fill the following field: ${missingFields[0]}`);
|
|
26486
|
-
setShowToast(true);
|
|
26487
|
-
return;
|
|
26488
|
-
}
|
|
26717
|
+
dispatch(UPDATE_ADSNewApplication_FORM(config.key, data));
|
|
26489
26718
|
onGoNext();
|
|
26490
|
-
|
|
26491
|
-
function validateStepData(data) {
|
|
26492
|
-
const pets = (data === null || data === void 0 ? void 0 : data.pets) || [];
|
|
26493
|
-
const missingFields = [];
|
|
26494
|
-
const notFormattedFields = [];
|
|
26495
|
-
if (!(pets !== null && pets !== void 0 && pets.petName)) missingFields.push("PET_NAME");
|
|
26496
|
-
if (!(pets !== null && pets !== void 0 && pets.petType)) missingFields.push("PET_TYPE");
|
|
26497
|
-
if (!(pets !== null && pets !== void 0 && pets.breedType)) missingFields.push("BREED_TYPE");
|
|
26498
|
-
if (!(pets !== null && pets !== void 0 && pets.petGender)) missingFields.push("PET_GENDER");
|
|
26499
|
-
if (!(pets !== null && pets !== void 0 && pets.color)) missingFields.push("COLOR");
|
|
26500
|
-
if (!(pets !== null && pets !== void 0 && pets.lastVaccineDate)) missingFields.push("LAST_VACCINE_DATE");
|
|
26501
|
-
if (!(pets !== null && pets !== void 0 && pets.vaccinationNumber)) missingFields.push("VACCINATION_NUMBER");
|
|
26502
|
-
return {
|
|
26503
|
-
missingFields,
|
|
26504
|
-
notFormattedFields
|
|
26505
|
-
};
|
|
26719
|
+
return;
|
|
26506
26720
|
}
|
|
26507
26721
|
function onGoBack(data) {
|
|
26508
26722
|
onBackClick(config.key, data);
|
|
26509
26723
|
}
|
|
26510
|
-
const onFormValueChange = function (setValue, data) {
|
|
26511
|
-
console.log("onFormValueChange data in AdministrativeDetails: ", data, "\n Bool: ", !lodash.isEqual(data, currentStepData));
|
|
26512
|
-
if (!lodash.isEqual(data, currentStepData)) {
|
|
26513
|
-
dispatch(UPDATE_ADSNewApplication_FORM(config.key, data));
|
|
26514
|
-
}
|
|
26515
|
-
};
|
|
26516
26724
|
const closeToast = () => {
|
|
26517
26725
|
setShowToast(false);
|
|
26518
26726
|
setError("");
|
|
26519
26727
|
};
|
|
26520
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
|
-
|
|
26524
|
-
|
|
26525
|
-
label: t(`${config.texts.submitBarLabel}`),
|
|
26526
|
-
currentStep: config.currStepNumber,
|
|
26527
|
-
onBackClick: onGoBack
|
|
26728
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ADSCitizenSecond, {
|
|
26729
|
+
onGoBack: onGoBack,
|
|
26730
|
+
goNext: goNext,
|
|
26731
|
+
currentStepData: currentStepData,
|
|
26732
|
+
t: t
|
|
26528
26733
|
}), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
26529
26734
|
isDleteBtn: true,
|
|
26530
26735
|
error: true,
|
|
@@ -26641,421 +26846,6 @@ const NewADSStepFormFour = _ref => {
|
|
|
26641
26846
|
}));
|
|
26642
26847
|
};
|
|
26643
26848
|
|
|
26644
|
-
const ADSCitizenDetailsNew = _ref => {
|
|
26645
|
-
var _formData$ownerss, _formData$ownerss2, _formData$ownerss3, _formData$ownerss4, _formData$ownerss5, _formData$ownerss6;
|
|
26646
|
-
let {
|
|
26647
|
-
t,
|
|
26648
|
-
config,
|
|
26649
|
-
onSelect,
|
|
26650
|
-
userType,
|
|
26651
|
-
formData,
|
|
26652
|
-
ownerIndex
|
|
26653
|
-
} = _ref;
|
|
26654
|
-
const {
|
|
26655
|
-
pathname: url
|
|
26656
|
-
} = reactRouterDom.useLocation();
|
|
26657
|
-
let index = 0;
|
|
26658
|
-
let validation = {};
|
|
26659
|
-
const [firstName, setFirstName] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].firstName || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss = formData.ownerss) === null || _formData$ownerss === void 0 ? void 0 : _formData$ownerss.firstName) || "");
|
|
26660
|
-
const [lastName, setLastName] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].lastName || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss2 = formData.ownerss) === null || _formData$ownerss2 === void 0 ? void 0 : _formData$ownerss2.lastName) || "");
|
|
26661
|
-
const [address, setAddress] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].address || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss3 = formData.ownerss) === null || _formData$ownerss3 === void 0 ? void 0 : _formData$ownerss3.address) || "");
|
|
26662
|
-
const [emailId, setEmail] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].emailId || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss4 = formData.ownerss) === null || _formData$ownerss4 === void 0 ? void 0 : _formData$ownerss4.emailId) || "");
|
|
26663
|
-
const [mobileNumber, setMobileNumber] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].mobileNumber || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss5 = formData.ownerss) === null || _formData$ownerss5 === void 0 ? void 0 : _formData$ownerss5.mobileNumber) || "");
|
|
26664
|
-
const [fatherName, setFatherOrHusbandName] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].fatherName || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss6 = formData.ownerss) === null || _formData$ownerss6 === void 0 ? void 0 : _formData$ownerss6.fatherName) || "");
|
|
26665
|
-
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
26666
|
-
const stateId = Digit.ULBService.getStateId();
|
|
26667
|
-
function setOwnerFirstName(e) {
|
|
26668
|
-
console.log("e", e.target.value);
|
|
26669
|
-
setFirstName(e.target.value);
|
|
26670
|
-
}
|
|
26671
|
-
function setOwnerAddress(e) {
|
|
26672
|
-
setAddress(e.target.value);
|
|
26673
|
-
}
|
|
26674
|
-
function setOwnerLastName(e) {
|
|
26675
|
-
setLastName(e.target.value);
|
|
26676
|
-
}
|
|
26677
|
-
function setOwnerEmail(e) {
|
|
26678
|
-
setEmail(e.target.value);
|
|
26679
|
-
}
|
|
26680
|
-
function setMobileNo(e) {
|
|
26681
|
-
setMobileNumber(e.target.value);
|
|
26682
|
-
}
|
|
26683
|
-
function setGuardiansName(e) {
|
|
26684
|
-
setFatherOrHusbandName(e.target.value);
|
|
26685
|
-
}
|
|
26686
|
-
const goNext = () => {
|
|
26687
|
-
console.log("GoNext Called", formData);
|
|
26688
|
-
let owner = formData.ownerss && formData.ownerss[index];
|
|
26689
|
-
let ownerStep;
|
|
26690
|
-
if (userType === "citizen") {
|
|
26691
|
-
ownerStep = {
|
|
26692
|
-
...owner,
|
|
26693
|
-
mobileNumber,
|
|
26694
|
-
fatherName,
|
|
26695
|
-
emailId,
|
|
26696
|
-
firstName,
|
|
26697
|
-
lastName,
|
|
26698
|
-
address
|
|
26699
|
-
};
|
|
26700
|
-
onSelect(config.key, {
|
|
26701
|
-
...formData[config.key],
|
|
26702
|
-
...ownerStep
|
|
26703
|
-
}, false, index);
|
|
26704
|
-
} else {
|
|
26705
|
-
ownerStep = {
|
|
26706
|
-
...owner,
|
|
26707
|
-
mobileNumber,
|
|
26708
|
-
fatherName,
|
|
26709
|
-
emailId,
|
|
26710
|
-
firstName,
|
|
26711
|
-
lastName,
|
|
26712
|
-
address
|
|
26713
|
-
};
|
|
26714
|
-
onSelect(config.key, ownerStep, false, index);
|
|
26715
|
-
}
|
|
26716
|
-
};
|
|
26717
|
-
const onSkip = () => onSelect();
|
|
26718
|
-
React.useEffect(() => {
|
|
26719
|
-
console.log("useEffect called in PTRCitizenDetails", formData, userType);
|
|
26720
|
-
goNext();
|
|
26721
|
-
}, [mobileNumber, fatherName, emailId, firstName, lastName, address]);
|
|
26722
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
26723
|
-
config: config,
|
|
26724
|
-
onSelect: goNext,
|
|
26725
|
-
onSkip: onSkip,
|
|
26726
|
-
t: t,
|
|
26727
|
-
isDisabled: !mobileNumber || !fatherName || !emailId || !firstName || !lastName || !address
|
|
26728
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NDC_FIRST_NAME")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
26729
|
-
t: t,
|
|
26730
|
-
type: "text",
|
|
26731
|
-
isMandatory: false,
|
|
26732
|
-
optionKey: "i18nKey",
|
|
26733
|
-
name: "firstName",
|
|
26734
|
-
value: firstName,
|
|
26735
|
-
onChange: setOwnerFirstName,
|
|
26736
|
-
ValidationRequired: true
|
|
26737
|
-
}, validation = {
|
|
26738
|
-
isRequired: true,
|
|
26739
|
-
pattern: "^[a-zA-Z ]+$",
|
|
26740
|
-
type: "tel",
|
|
26741
|
-
title: t("PT_NAME_ERROR_MESSAGE")
|
|
26742
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NDC_LAST_NAME")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
26743
|
-
t: t,
|
|
26744
|
-
type: "text",
|
|
26745
|
-
isMandatory: false,
|
|
26746
|
-
optionKey: "i18nKey",
|
|
26747
|
-
name: "lastName",
|
|
26748
|
-
value: lastName,
|
|
26749
|
-
onChange: setOwnerLastName,
|
|
26750
|
-
ValidationRequired: true
|
|
26751
|
-
}, validation = {
|
|
26752
|
-
isRequired: true,
|
|
26753
|
-
pattern: "^[a-zA-Z ]+$",
|
|
26754
|
-
type: "tel",
|
|
26755
|
-
title: t("PT_NAME_ERROR_MESSAGE")
|
|
26756
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NOC_APPLICANT_EMAIL_LABEL")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
26757
|
-
t: t,
|
|
26758
|
-
type: "text",
|
|
26759
|
-
isMandatory: true,
|
|
26760
|
-
optionKey: "i18nKey",
|
|
26761
|
-
name: "emailId",
|
|
26762
|
-
value: emailId,
|
|
26763
|
-
onChange: setOwnerEmail,
|
|
26764
|
-
ValidationRequired: true
|
|
26765
|
-
}, validation = {
|
|
26766
|
-
isRequired: true,
|
|
26767
|
-
pattern: "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
|
|
26768
|
-
type: "text",
|
|
26769
|
-
title: t("PTR_NAME_ERROR_MESSAGE")
|
|
26770
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NOC_APPLICANT_MOBILE_NO_LABEL")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
|
|
26771
|
-
value: mobileNumber,
|
|
26772
|
-
name: "mobileNumber",
|
|
26773
|
-
onChange: value => setMobileNo({
|
|
26774
|
-
target: {
|
|
26775
|
-
value
|
|
26776
|
-
}
|
|
26777
|
-
}),
|
|
26778
|
-
required: true,
|
|
26779
|
-
pattern: "[6-9]{1}[0-9]{9}",
|
|
26780
|
-
type: "tel",
|
|
26781
|
-
title: t("CORE_COMMON_APPLICANT_MOBILE_NUMBER_INVALID")
|
|
26782
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_FATHER_HUSBAND")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
26783
|
-
t: t,
|
|
26784
|
-
type: "text",
|
|
26785
|
-
isMandatory: false,
|
|
26786
|
-
optionKey: "i18nKey",
|
|
26787
|
-
name: "fatherName",
|
|
26788
|
-
value: fatherName,
|
|
26789
|
-
onChange: setGuardiansName,
|
|
26790
|
-
ValidationRequired: true
|
|
26791
|
-
}, validation = {
|
|
26792
|
-
isRequired: true,
|
|
26793
|
-
pattern: "^[a-zA-Z ]+$",
|
|
26794
|
-
type: "tel",
|
|
26795
|
-
title: t("PTR_NAME_ERROR_MESSAGE")
|
|
26796
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PT_COMMON_COL_ADDRESS")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextArea, _extends({
|
|
26797
|
-
t: t,
|
|
26798
|
-
type: "text",
|
|
26799
|
-
isMandatory: false,
|
|
26800
|
-
optionKey: "i18nKey",
|
|
26801
|
-
name: "address",
|
|
26802
|
-
value: address,
|
|
26803
|
-
onChange: setOwnerAddress,
|
|
26804
|
-
ValidationRequired: true
|
|
26805
|
-
}, validation = {
|
|
26806
|
-
isRequired: true,
|
|
26807
|
-
type: "text",
|
|
26808
|
-
title: t("PT_ADDRESS_ERROR_MESSAGE")
|
|
26809
|
-
})))));
|
|
26810
|
-
};
|
|
26811
|
-
|
|
26812
|
-
const ADSCitizenSecond = _ref => {
|
|
26813
|
-
var _formData$pets, _formData$pets2, _formData$pets3, _formData$pets4, _formData$pets5, _formData$pets6, _formData$pets7, _formData$pets8, _formData$pets9, _formData$pets0;
|
|
26814
|
-
let {
|
|
26815
|
-
t,
|
|
26816
|
-
config,
|
|
26817
|
-
onSelect,
|
|
26818
|
-
userType,
|
|
26819
|
-
formData,
|
|
26820
|
-
ownerIndex
|
|
26821
|
-
} = _ref;
|
|
26822
|
-
const {
|
|
26823
|
-
pathname: url
|
|
26824
|
-
} = reactRouterDom.useLocation();
|
|
26825
|
-
let index = window.location.href.charAt(window.location.href.length - 1);
|
|
26826
|
-
let validation = {};
|
|
26827
|
-
const [petType, setPetType] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].petType || (formData === null || formData === void 0 ? void 0 : (_formData$pets = formData.pets) === null || _formData$pets === void 0 ? void 0 : _formData$pets.petType) || "");
|
|
26828
|
-
const [breedType, setBreedType] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].breedType || (formData === null || formData === void 0 ? void 0 : (_formData$pets2 = formData.pets) === null || _formData$pets2 === void 0 ? void 0 : _formData$pets2.breedType) || "");
|
|
26829
|
-
const [petGender, setPetGender] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].petGender || (formData === null || formData === void 0 ? void 0 : (_formData$pets3 = formData.pets) === null || _formData$pets3 === void 0 ? void 0 : _formData$pets3.petGender) || "");
|
|
26830
|
-
const [petName, setPetName] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].petName || (formData === null || formData === void 0 ? void 0 : (_formData$pets4 = formData.pets) === null || _formData$pets4 === void 0 ? void 0 : _formData$pets4.petName) || "");
|
|
26831
|
-
const [petAge, setPetAge] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].petAge || (formData === null || formData === void 0 ? void 0 : (_formData$pets5 = formData.pets) === null || _formData$pets5 === void 0 ? void 0 : _formData$pets5.petAge) || "");
|
|
26832
|
-
const [doctorName, setDoctorName] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].doctorName || (formData === null || formData === void 0 ? void 0 : (_formData$pets6 = formData.pets) === null || _formData$pets6 === void 0 ? void 0 : _formData$pets6.doctorName) || "");
|
|
26833
|
-
const [clinicName, setClinicName] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].clinicName || (formData === null || formData === void 0 ? void 0 : (_formData$pets7 = formData.pets) === null || _formData$pets7 === void 0 ? void 0 : _formData$pets7.clinicName) || "");
|
|
26834
|
-
const [vaccinationNumber, setVaccinationNumber] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].vaccinationNumber || (formData === null || formData === void 0 ? void 0 : (_formData$pets8 = formData.pets) === null || _formData$pets8 === void 0 ? void 0 : _formData$pets8.vaccinationNumber) || "");
|
|
26835
|
-
const [lastVaccineDate, setVaccinationDate] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].lastVaccineDate || (formData === null || formData === void 0 ? void 0 : (_formData$pets9 = formData.pets) === null || _formData$pets9 === void 0 ? void 0 : _formData$pets9.lastVaccineDate) || "");
|
|
26836
|
-
const [color, setColor] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].color || (formData === null || formData === void 0 ? void 0 : (_formData$pets0 = formData.pets) === null || _formData$pets0 === void 0 ? void 0 : _formData$pets0.color) || "");
|
|
26837
|
-
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
26838
|
-
const stateId = Digit.ULBService.getStateId();
|
|
26839
|
-
const Menu = [{
|
|
26840
|
-
code: "DOG",
|
|
26841
|
-
i18nKey: "Dog"
|
|
26842
|
-
}, {
|
|
26843
|
-
code: "CAT",
|
|
26844
|
-
i18nKey: "Cat"
|
|
26845
|
-
}, {
|
|
26846
|
-
code: "BIRD",
|
|
26847
|
-
i18nKey: "Bird"
|
|
26848
|
-
}];
|
|
26849
|
-
const Breed_Type = [{
|
|
26850
|
-
code: "LABRADOR",
|
|
26851
|
-
name: "Labrador",
|
|
26852
|
-
PetType: "DOG"
|
|
26853
|
-
}, {
|
|
26854
|
-
code: "PERSIAN",
|
|
26855
|
-
name: "Persian",
|
|
26856
|
-
PetType: "CAT"
|
|
26857
|
-
}, {
|
|
26858
|
-
code: "PARROT",
|
|
26859
|
-
name: "Parrot",
|
|
26860
|
-
PetType: "BIRD"
|
|
26861
|
-
}];
|
|
26862
|
-
let menu = [];
|
|
26863
|
-
let breed_type = [];
|
|
26864
|
-
Menu && Menu.map(petone => {
|
|
26865
|
-
menu.push({
|
|
26866
|
-
i18nKey: `PTR_PET_${petone.code}`,
|
|
26867
|
-
code: `${petone.code}`,
|
|
26868
|
-
value: `${petone.name}`
|
|
26869
|
-
});
|
|
26870
|
-
});
|
|
26871
|
-
const {
|
|
26872
|
-
control
|
|
26873
|
-
} = reactHookForm.useForm();
|
|
26874
|
-
Breed_Type && Breed_Type.map(breedss => {
|
|
26875
|
-
if (breedss.PetType == (petType === null || petType === void 0 ? void 0 : petType.code)) {
|
|
26876
|
-
breed_type.push({
|
|
26877
|
-
i18nKey: `PTR_BREED_TYPE_${breedss.code}`,
|
|
26878
|
-
code: `${breedss.code}`,
|
|
26879
|
-
value: `${breedss.name}`
|
|
26880
|
-
});
|
|
26881
|
-
}
|
|
26882
|
-
});
|
|
26883
|
-
const {
|
|
26884
|
-
data: Pet_Sex
|
|
26885
|
-
} = Digit.Hooks.ptr.usePTRGenderMDMS(stateId, "common-masters", "GenderType");
|
|
26886
|
-
let pet_sex = [];
|
|
26887
|
-
Pet_Sex && Pet_Sex.map(ptrgenders => {
|
|
26888
|
-
if (ptrgenders.code !== "TRANSGENDER") pet_sex.push({
|
|
26889
|
-
i18nKey: `PTR_GENDER_${ptrgenders.code}`,
|
|
26890
|
-
code: `${ptrgenders.code}`,
|
|
26891
|
-
name: `${ptrgenders.code}`
|
|
26892
|
-
});
|
|
26893
|
-
});
|
|
26894
|
-
console.log("petFormData", formData);
|
|
26895
|
-
function setColorName(e) {
|
|
26896
|
-
setColor(e.target.value);
|
|
26897
|
-
}
|
|
26898
|
-
function setvaccinationdate(e) {
|
|
26899
|
-
setVaccinationDate(e.target.value);
|
|
26900
|
-
}
|
|
26901
|
-
function setvaccinationnumber(e) {
|
|
26902
|
-
setVaccinationNumber(e.target.value);
|
|
26903
|
-
}
|
|
26904
|
-
function setpetname(e) {
|
|
26905
|
-
setPetName(e.target.value);
|
|
26906
|
-
}
|
|
26907
|
-
const goNext = () => {
|
|
26908
|
-
let owner = formData.pets && formData.pets[index];
|
|
26909
|
-
let ownerStep;
|
|
26910
|
-
if (userType === "citizen") {
|
|
26911
|
-
ownerStep = {
|
|
26912
|
-
...owner,
|
|
26913
|
-
petType,
|
|
26914
|
-
breedType,
|
|
26915
|
-
petGender,
|
|
26916
|
-
petName,
|
|
26917
|
-
color,
|
|
26918
|
-
lastVaccineDate,
|
|
26919
|
-
vaccinationNumber
|
|
26920
|
-
};
|
|
26921
|
-
onSelect(config.key, {
|
|
26922
|
-
...formData[config.key],
|
|
26923
|
-
...ownerStep
|
|
26924
|
-
}, false, index);
|
|
26925
|
-
} else {
|
|
26926
|
-
ownerStep = {
|
|
26927
|
-
...owner,
|
|
26928
|
-
petType,
|
|
26929
|
-
breedType,
|
|
26930
|
-
petGender,
|
|
26931
|
-
petName,
|
|
26932
|
-
color,
|
|
26933
|
-
lastVaccineDate,
|
|
26934
|
-
vaccinationNumber
|
|
26935
|
-
};
|
|
26936
|
-
onSelect(config.key, ownerStep, false, index);
|
|
26937
|
-
}
|
|
26938
|
-
};
|
|
26939
|
-
const onSkip = () => onSelect();
|
|
26940
|
-
React.useEffect(() => {
|
|
26941
|
-
goNext();
|
|
26942
|
-
}, [petType, breedType, petGender, petName, lastVaccineDate, color, vaccinationNumber]);
|
|
26943
|
-
console.log("ADSCitizenSecond formData", !petType || !breedType || !petGender || !petName || !color || !lastVaccineDate || !vaccinationNumber);
|
|
26944
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
26945
|
-
config: config,
|
|
26946
|
-
onSelect: goNext,
|
|
26947
|
-
onSkip: onSkip,
|
|
26948
|
-
t: t,
|
|
26949
|
-
isDisabled: !petType || !breedType || !petGender || !petName || !color || !lastVaccineDate || !vaccinationNumber
|
|
26950
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_PET_NAME")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
26951
|
-
t: t,
|
|
26952
|
-
type: "text",
|
|
26953
|
-
isMandatory: false,
|
|
26954
|
-
optionKey: "i18nKey",
|
|
26955
|
-
name: "petName",
|
|
26956
|
-
value: petName,
|
|
26957
|
-
onChange: setpetname,
|
|
26958
|
-
style: {
|
|
26959
|
-
width: "86%"
|
|
26960
|
-
},
|
|
26961
|
-
ValidationRequired: false
|
|
26962
|
-
}, validation = {
|
|
26963
|
-
isRequired: true,
|
|
26964
|
-
pattern: "^[a-zA-Z-.`' ]*$",
|
|
26965
|
-
type: "text",
|
|
26966
|
-
title: t("PT_NAME_ERROR_MESSAGE")
|
|
26967
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_SEARCH_PET_TYPE")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26968
|
-
control: control,
|
|
26969
|
-
name: "petType",
|
|
26970
|
-
defaultValue: petType,
|
|
26971
|
-
rules: {
|
|
26972
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG")
|
|
26973
|
-
},
|
|
26974
|
-
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
26975
|
-
className: "form-field",
|
|
26976
|
-
selected: petType,
|
|
26977
|
-
select: setPetType,
|
|
26978
|
-
option: menu,
|
|
26979
|
-
optionKey: "i18nKey",
|
|
26980
|
-
t: t
|
|
26981
|
-
})
|
|
26982
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_SEARCH_BREED_TYPE")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26983
|
-
control: control,
|
|
26984
|
-
name: "breedType",
|
|
26985
|
-
defaultValue: breedType,
|
|
26986
|
-
rules: {
|
|
26987
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG")
|
|
26988
|
-
},
|
|
26989
|
-
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
26990
|
-
className: "form-field",
|
|
26991
|
-
selected: breedType,
|
|
26992
|
-
select: setBreedType,
|
|
26993
|
-
option: breed_type,
|
|
26994
|
-
optionKey: "i18nKey",
|
|
26995
|
-
t: t
|
|
26996
|
-
})
|
|
26997
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_PET_GENDER")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
26998
|
-
control: control,
|
|
26999
|
-
name: "petGender",
|
|
27000
|
-
defaultValue: petGender,
|
|
27001
|
-
rules: {
|
|
27002
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG")
|
|
27003
|
-
},
|
|
27004
|
-
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
27005
|
-
className: "form-field",
|
|
27006
|
-
selected: petGender,
|
|
27007
|
-
select: setPetGender,
|
|
27008
|
-
option: pet_sex,
|
|
27009
|
-
optionKey: "i18nKey",
|
|
27010
|
-
t: t
|
|
27011
|
-
})
|
|
27012
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_COLOR")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
27013
|
-
t: t,
|
|
27014
|
-
type: "text",
|
|
27015
|
-
isMandatory: false,
|
|
27016
|
-
optionKey: "i18nKey",
|
|
27017
|
-
name: "color",
|
|
27018
|
-
value: color,
|
|
27019
|
-
onChange: setColorName,
|
|
27020
|
-
style: {
|
|
27021
|
-
width: "86%"
|
|
27022
|
-
},
|
|
27023
|
-
ValidationRequired: false
|
|
27024
|
-
}, validation = {
|
|
27025
|
-
isRequired: true,
|
|
27026
|
-
pattern: "^[a-zA-Z-.`' ]*$",
|
|
27027
|
-
type: "text",
|
|
27028
|
-
title: t("PT_NAME_ERROR_MESSAGE")
|
|
27029
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_VACCINATED_DATE")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
27030
|
-
t: t,
|
|
27031
|
-
type: "date",
|
|
27032
|
-
isMandatory: false,
|
|
27033
|
-
optionKey: "i18nKey",
|
|
27034
|
-
name: "lastVaccineDate",
|
|
27035
|
-
value: lastVaccineDate,
|
|
27036
|
-
onChange: setvaccinationdate,
|
|
27037
|
-
style: {
|
|
27038
|
-
width: "86%"
|
|
27039
|
-
},
|
|
27040
|
-
max: new Date().toISOString().split("T")[0],
|
|
27041
|
-
rules: {
|
|
27042
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG"),
|
|
27043
|
-
validDate: val => /^\d{4}-\d{2}-\d{2}$/.test(val) ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
27044
|
-
}
|
|
27045
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_VACCINATION_NUMBER")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
27046
|
-
t: t,
|
|
27047
|
-
type: "text",
|
|
27048
|
-
isMandatory: false,
|
|
27049
|
-
optionKey: "i18nKey",
|
|
27050
|
-
name: "vaccinationNumber",
|
|
27051
|
-
value: vaccinationNumber,
|
|
27052
|
-
onChange: setvaccinationnumber,
|
|
27053
|
-
style: {
|
|
27054
|
-
width: "86%"
|
|
27055
|
-
}
|
|
27056
|
-
}))));
|
|
27057
|
-
};
|
|
27058
|
-
|
|
27059
26849
|
const ADSSelectProofIdentity = _ref => {
|
|
27060
26850
|
var _formData$documents, _data$NDC, _data$NDC$Documents;
|
|
27061
26851
|
let {
|