@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.modern.js
CHANGED
|
@@ -8419,7 +8419,7 @@ const ADSCitizenDetails = ({
|
|
|
8419
8419
|
formData,
|
|
8420
8420
|
value: _value = formData.adslist
|
|
8421
8421
|
}) => {
|
|
8422
|
-
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$
|
|
8422
|
+
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;
|
|
8423
8423
|
const {
|
|
8424
8424
|
pathname: url
|
|
8425
8425
|
} = useLocation();
|
|
@@ -8523,9 +8523,9 @@ const ADSCitizenDetails = ({
|
|
|
8523
8523
|
right: 0
|
|
8524
8524
|
}
|
|
8525
8525
|
}, /*#__PURE__*/React.createElement(TimerValues, {
|
|
8526
|
-
timerValues: _value === null || _value === void 0 ? void 0 : (_value$existingDataSe9 = _value.existingDataSet) === null || _value$existingDataSe9 === void 0 ? void 0 : (_value$
|
|
8526
|
+
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,
|
|
8527
8527
|
SlotSearchData: _value === null || _value === void 0 ? void 0 : _value.cartDetails,
|
|
8528
|
-
draftId: _value === null || _value === void 0 ? void 0 : (_value$
|
|
8528
|
+
draftId: _value === null || _value === void 0 ? void 0 : (_value$existingDataSe11 = _value.existingDataSet) === null || _value$existingDataSe11 === void 0 ? void 0 : _value$existingDataSe11.draftId
|
|
8529
8529
|
})), /*#__PURE__*/React.createElement(ADSCartAndCancellationPolicyDetails, null))), /*#__PURE__*/React.createElement(FormStep, {
|
|
8530
8530
|
config: config,
|
|
8531
8531
|
onSelect: goNext,
|
|
@@ -8617,7 +8617,7 @@ const ADSAddress = ({
|
|
|
8617
8617
|
formData,
|
|
8618
8618
|
value: _value = formData.adslist
|
|
8619
8619
|
}) => {
|
|
8620
|
-
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$
|
|
8620
|
+
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;
|
|
8621
8621
|
const {
|
|
8622
8622
|
pathname: url
|
|
8623
8623
|
} = useLocation();
|
|
@@ -8634,11 +8634,11 @@ const ADSAddress = ({
|
|
|
8634
8634
|
const [city, setCity] = 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) || "");
|
|
8635
8635
|
const [locality, setLocality] = 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) || "");
|
|
8636
8636
|
const [streetName, setStreetName] = 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) || "");
|
|
8637
|
-
const [houseNo, setHouseNo] = 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$
|
|
8638
|
-
const [landmark, setLandmark] = 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$
|
|
8639
|
-
const [houseName, setHouseName] = 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$
|
|
8640
|
-
const [addressline1, setAddressline1] = 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$
|
|
8641
|
-
const [addressline2, setAddressline2] = 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$
|
|
8637
|
+
const [houseNo, setHouseNo] = 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) || "");
|
|
8638
|
+
const [landmark, setLandmark] = 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) || "");
|
|
8639
|
+
const [houseName, setHouseName] = 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) || "");
|
|
8640
|
+
const [addressline1, setAddressline1] = 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) || "");
|
|
8641
|
+
const [addressline2, setAddressline2] = 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) || "");
|
|
8642
8642
|
const {
|
|
8643
8643
|
data: fetchedLocalities,
|
|
8644
8644
|
isLoading: isLoadingLocalities
|
|
@@ -8758,9 +8758,9 @@ const ADSAddress = ({
|
|
|
8758
8758
|
right: 0
|
|
8759
8759
|
}
|
|
8760
8760
|
}, /*#__PURE__*/React.createElement(TimerValues, {
|
|
8761
|
-
timerValues: _value === null || _value === void 0 ? void 0 : (_value$
|
|
8761
|
+
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,
|
|
8762
8762
|
SlotSearchData: _value === null || _value === void 0 ? void 0 : _value.cartDetails,
|
|
8763
|
-
draftId: _value === null || _value === void 0 ? void 0 : (_value$
|
|
8763
|
+
draftId: _value === null || _value === void 0 ? void 0 : (_value$existingDataSe21 = _value.existingDataSet) === null || _value$existingDataSe21 === void 0 ? void 0 : _value$existingDataSe21.draftId
|
|
8764
8764
|
})), /*#__PURE__*/React.createElement(ADSCartAndCancellationPolicyDetails, null))), /*#__PURE__*/React.createElement(FormStep, {
|
|
8765
8765
|
config: config,
|
|
8766
8766
|
onSelect: goNext,
|
|
@@ -8956,7 +8956,7 @@ const ADSDocumentDetails = ({
|
|
|
8956
8956
|
data
|
|
8957
8957
|
} = Digit.Hooks.ads.useADSDocumentsMDMS(stateId, "Advertisement", "Documents");
|
|
8958
8958
|
const handleSubmit = () => {
|
|
8959
|
-
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$
|
|
8959
|
+
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;
|
|
8960
8960
|
let cartDetails = _value === null || _value === void 0 ? void 0 : _value.cartDetails.map(slot => {
|
|
8961
8961
|
return {
|
|
8962
8962
|
addType: slot.addTypeCode,
|
|
@@ -8989,7 +8989,7 @@ const ADSDocumentDetails = ({
|
|
|
8989
8989
|
addressLine1: formData === null || formData === void 0 ? void 0 : (_formData$address7 = formData.address) === null || _formData$address7 === void 0 ? void 0 : _formData$address7.addressline1,
|
|
8990
8990
|
addressLine2: formData === null || formData === void 0 ? void 0 : (_formData$address8 = formData.address) === null || _formData$address8 === void 0 ? void 0 : _formData$address8.addressline2,
|
|
8991
8991
|
houseNo: formData === null || formData === void 0 ? void 0 : (_formData$address9 = formData.address) === null || _formData$address9 === void 0 ? void 0 : _formData$address9.houseNo,
|
|
8992
|
-
landmark: formData === null || formData === void 0 ? void 0 : (_formData$
|
|
8992
|
+
landmark: formData === null || formData === void 0 ? void 0 : (_formData$address10 = formData.address) === null || _formData$address10 === void 0 ? void 0 : _formData$address10.landmark
|
|
8993
8993
|
},
|
|
8994
8994
|
documents: documents,
|
|
8995
8995
|
cartDetails: cartDetails,
|
|
@@ -18636,7 +18636,7 @@ const ActionModal$3 = ({
|
|
|
18636
18636
|
return result;
|
|
18637
18637
|
};
|
|
18638
18638
|
async function submit(data) {
|
|
18639
|
-
var _applicationData3, _data$comments, _data$comments2, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$
|
|
18639
|
+
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, _applicationData4, _applicationData4$add, _applicationData4$add2, _applicationData5, _applicationData5$add, _applicationData5$add2, _applicationData6, _applicationData6$add, _applicationData6$add2, _applicationData7, _applicationData7$add, _applicationData7$add2;
|
|
18640
18640
|
applicationData = {
|
|
18641
18641
|
...applicationData,
|
|
18642
18642
|
documents: getDocuments(),
|
|
@@ -18650,8 +18650,8 @@ const ActionModal$3 = ({
|
|
|
18650
18650
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
18651
18651
|
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,
|
|
18652
18652
|
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,
|
|
18653
|
-
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$
|
|
18654
|
-
assignes: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
18653
|
+
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],
|
|
18654
|
+
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],
|
|
18655
18655
|
varificationDocuments: uploadedFile ? [{
|
|
18656
18656
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
18657
18657
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -18660,7 +18660,7 @@ const ActionModal$3 = ({
|
|
|
18660
18660
|
},
|
|
18661
18661
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
18662
18662
|
comment: data === null || data === void 0 ? void 0 : data.comments,
|
|
18663
|
-
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
18663
|
+
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],
|
|
18664
18664
|
wfDocuments: uploadedFile ? [{
|
|
18665
18665
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
18666
18666
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -19855,7 +19855,7 @@ const ActionModal$5 = ({
|
|
|
19855
19855
|
})();
|
|
19856
19856
|
}, [file]);
|
|
19857
19857
|
function submit(data) {
|
|
19858
|
-
var _applicationData, _applicationData7, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$pro,
|
|
19858
|
+
var _applicationData, _applicationData7, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$pro, _applicationData10, _applicationData10$pr, _applicationData12, _applicationData13;
|
|
19859
19859
|
if ((_applicationData = applicationData) !== null && _applicationData !== void 0 && _applicationData.isBillAmend) {
|
|
19860
19860
|
var _applicationData2, _applicationData2$bil, _applicationData3, _applicationData4, _applicationData4$bil, _applicationData5, _applicationData5$app, _applicationData6, _applicationData6$app;
|
|
19861
19861
|
const comments = data !== null && data !== void 0 && data.comments ? data.comments : null;
|
|
@@ -19940,38 +19940,38 @@ const ActionModal$5 = ({
|
|
|
19940
19940
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
19941
19941
|
applicationData.connectionExecutionDate = convertDateToEpochNew(connectionExecutionDate);
|
|
19942
19942
|
}
|
|
19943
|
-
if (((_applicationData9 = applicationData) === null || _applicationData9 === void 0 ? void 0 : (_applicationData9$pro = _applicationData9.processInstance) === null || _applicationData9$pro === void 0 ? void 0 : _applicationData9$pro.businessService) == "DisconnectWSConnection" || ((
|
|
19944
|
-
var
|
|
19945
|
-
((
|
|
19943
|
+
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")) {
|
|
19944
|
+
var _applicationData11;
|
|
19945
|
+
((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : _applicationData11.serviceType) == "WATER" ? submitAction({
|
|
19946
19946
|
WaterConnection: applicationData,
|
|
19947
19947
|
disconnectRequest: true
|
|
19948
19948
|
}) : submitAction({
|
|
19949
19949
|
SewerageConnection: applicationData,
|
|
19950
19950
|
disconnectRequest: true
|
|
19951
19951
|
});
|
|
19952
|
-
} else if (((
|
|
19952
|
+
} else if (((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
19953
19953
|
submitAction({
|
|
19954
19954
|
SewerageConnection: applicationData,
|
|
19955
19955
|
disconnectRequest: false,
|
|
19956
19956
|
reconnectRequest: true
|
|
19957
19957
|
});
|
|
19958
|
-
} else if (((
|
|
19958
|
+
} else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "WATER_RECONNECTION") {
|
|
19959
19959
|
submitAction({
|
|
19960
19960
|
WaterConnection: applicationData,
|
|
19961
19961
|
disconnectRequest: false,
|
|
19962
19962
|
reconnectRequest: true
|
|
19963
19963
|
});
|
|
19964
19964
|
} else {
|
|
19965
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9,
|
|
19965
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat10, _parsedAdhocRebateDat11, _parsedAdhocRebateDat12, _applicationData14;
|
|
19966
19966
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
19967
19967
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
19968
19968
|
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) || "";
|
|
19969
19969
|
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) || "";
|
|
19970
19970
|
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) || "";
|
|
19971
19971
|
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) || "";
|
|
19972
|
-
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 : (
|
|
19973
|
-
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (
|
|
19974
|
-
((
|
|
19972
|
+
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) || "";
|
|
19973
|
+
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) || "";
|
|
19974
|
+
((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.serviceType) == "WATER" ? submitAction({
|
|
19975
19975
|
WaterConnection: applicationData,
|
|
19976
19976
|
disconnectRequest: false,
|
|
19977
19977
|
reconnectRequest: false
|
|
@@ -19983,8 +19983,8 @@ const ActionModal$5 = ({
|
|
|
19983
19983
|
}
|
|
19984
19984
|
}
|
|
19985
19985
|
useEffect(() => {
|
|
19986
|
-
var
|
|
19987
|
-
if (((
|
|
19986
|
+
var _applicationData15, _applicationData15$pr, _applicationData16, _applicationData16$pr;
|
|
19987
|
+
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") {
|
|
19988
19988
|
if (action) {
|
|
19989
19989
|
setConfig(configWSDisConnectApplication({
|
|
19990
19990
|
t,
|
|
@@ -21911,7 +21911,7 @@ const ScruntinyDetails = ({
|
|
|
21911
21911
|
additionalDetails,
|
|
21912
21912
|
applicationData
|
|
21913
21913
|
}) => {
|
|
21914
|
-
var _scrutinyDetails$valu, _scrutinyDetails$perm, _scrutinyDetails$valu2, _scrutinyDetails$valu3, _additionalDetails$
|
|
21914
|
+
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;
|
|
21915
21915
|
const isEditApplication = (window.location.href.includes("editApplication") || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) == "FIELDINSPECTION_INPROGRESS") && window.location.href.includes("bpa");
|
|
21916
21916
|
const [development, setDevelopment] = useState();
|
|
21917
21917
|
const [otherCharges, setOtherCharges] = useState();
|
|
@@ -22014,8 +22014,8 @@ const ScruntinyDetails = ({
|
|
|
22014
22014
|
}
|
|
22015
22015
|
function setLessAdjusmentVal(value) {
|
|
22016
22016
|
if (/^[0-9]*$/.test(value)) {
|
|
22017
|
-
var _additionalDetails$se7, _additionalDetails$se8, _additionalDetails$se9, _additionalDetails$
|
|
22018
|
-
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$
|
|
22017
|
+
var _additionalDetails$se7, _additionalDetails$se8, _additionalDetails$se9, _additionalDetails$se10;
|
|
22018
|
+
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)) {
|
|
22019
22019
|
alert("Less adjustment fees cannot be grater than Total of other P2 fees");
|
|
22020
22020
|
} else {
|
|
22021
22021
|
setLessAdjusment(value);
|
|
@@ -22129,26 +22129,26 @@ const ScruntinyDetails = ({
|
|
|
22129
22129
|
}, t("HIDE_P2_FEES_DETAILS"))), showSanctionFee && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_P2_SUMMARY_FEE_EST")), /*#__PURE__*/React.createElement(Row, {
|
|
22130
22130
|
className: "border-none",
|
|
22131
22131
|
label: t(`BPA_COMMON_MALBA_AMT`),
|
|
22132
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22132
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se11 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se11 === void 0 ? void 0 : _additionalDetails$se11.BPA_MALBA_CHARGES}`
|
|
22133
22133
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
22134
22134
|
className: "border-none",
|
|
22135
22135
|
label: t(`BPA_COMMON_LABOUR_AMT`),
|
|
22136
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22136
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se12 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se12 === void 0 ? void 0 : _additionalDetails$se12.BPA_LABOUR_CESS}`
|
|
22137
22137
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
22138
22138
|
className: "border-none",
|
|
22139
22139
|
label: t(`BPA_COMMON_WATER_AMT`),
|
|
22140
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22140
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se13 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se13 === void 0 ? void 0 : _additionalDetails$se13.BPA_WATER_CHARGES}`
|
|
22141
22141
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
22142
22142
|
className: "border-none",
|
|
22143
22143
|
label: t(`BPA_COMMON_GAUSHALA_AMT`),
|
|
22144
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22144
|
+
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}`
|
|
22145
22145
|
}), /*#__PURE__*/React.createElement(CardSubHeader, null, t("BPA_P2_SUMMARY_FEE_EST_MANUAL")), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_COMMON_DEVELOPMENT_AMT")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
22146
22146
|
t: t,
|
|
22147
22147
|
type: "text",
|
|
22148
22148
|
isMandatory: false,
|
|
22149
22149
|
optionKey: "i18nKey",
|
|
22150
22150
|
name: "development",
|
|
22151
|
-
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22151
|
+
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,
|
|
22152
22152
|
value: development,
|
|
22153
22153
|
disabled: !isEditApplication,
|
|
22154
22154
|
onChange: e => {
|
|
@@ -22164,7 +22164,7 @@ const ScruntinyDetails = ({
|
|
|
22164
22164
|
isMandatory: false,
|
|
22165
22165
|
optionKey: "i18nKey",
|
|
22166
22166
|
name: "otherCharges",
|
|
22167
|
-
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22167
|
+
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,
|
|
22168
22168
|
value: otherCharges,
|
|
22169
22169
|
disabled: !isEditApplication,
|
|
22170
22170
|
onChange: e => {
|
|
@@ -22178,7 +22178,7 @@ const ScruntinyDetails = ({
|
|
|
22178
22178
|
t: t,
|
|
22179
22179
|
type: "text",
|
|
22180
22180
|
name: "otherChargesDiscription",
|
|
22181
|
-
defaultValue: additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22181
|
+
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,
|
|
22182
22182
|
value: otherChargesDisc,
|
|
22183
22183
|
disabled: !isEditApplication,
|
|
22184
22184
|
onChange: e => {
|
|
@@ -22192,7 +22192,7 @@ const ScruntinyDetails = ({
|
|
|
22192
22192
|
isMandatory: false,
|
|
22193
22193
|
optionKey: "i18nKey",
|
|
22194
22194
|
name: "lessAdjusment",
|
|
22195
|
-
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22195
|
+
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) || "",
|
|
22196
22196
|
value: lessAdjusment,
|
|
22197
22197
|
disabled: !isEditApplication,
|
|
22198
22198
|
onChange: e => {
|
|
@@ -22216,11 +22216,11 @@ const ScruntinyDetails = ({
|
|
|
22216
22216
|
message: uploadedFile ? `1 ${t(`FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
|
|
22217
22217
|
error: errorFile,
|
|
22218
22218
|
uploadMessage: uploadMessage
|
|
22219
|
-
})) : 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$
|
|
22219
|
+
})) : 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.createElement(CardLabel, {
|
|
22220
22220
|
style: {
|
|
22221
22221
|
marginTop: "15px"
|
|
22222
22222
|
}
|
|
22223
|
-
}, 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$
|
|
22223
|
+
}, 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.createElement("a", {
|
|
22224
22224
|
target: "_blank",
|
|
22225
22225
|
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
|
|
22226
22226
|
}, /*#__PURE__*/React.createElement(PDFSvg, null)), /*#__PURE__*/React.createElement(Row, {
|
|
@@ -22228,7 +22228,7 @@ const ScruntinyDetails = ({
|
|
|
22228
22228
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
22229
22229
|
className: "border-none",
|
|
22230
22230
|
label: t(`BPA_P2_TOTAL_FEE`),
|
|
22231
|
-
text: `₹ ${(parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
22231
|
+
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)}`
|
|
22232
22232
|
}))), /*#__PURE__*/React.createElement("div", null, scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$scru = scrutinyDetails.scruntinyDetails) === null || _scrutinyDetails$scru === void 0 ? void 0 : _scrutinyDetails$scru.map((report, index) => {
|
|
22233
22233
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
22234
22234
|
className: "border-none",
|
|
@@ -22770,7 +22770,7 @@ const WSFeeEstimation = ({
|
|
|
22770
22770
|
wsAdditionalDetails,
|
|
22771
22771
|
workflowDetails
|
|
22772
22772
|
}) => {
|
|
22773
|
-
var _wsAdditionalDetails$, _wsAdditionalDetails$
|
|
22773
|
+
var _wsAdditionalDetails$, _wsAdditionalDetails$20, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
22774
22774
|
const {
|
|
22775
22775
|
t
|
|
22776
22776
|
} = useTranslation();
|
|
@@ -22850,16 +22850,16 @@ const WSFeeEstimation = ({
|
|
|
22850
22850
|
message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
|
|
22851
22851
|
});
|
|
22852
22852
|
} else {
|
|
22853
|
-
var _wsAdditionalDetails$
|
|
22854
|
-
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
22855
|
-
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
22853
|
+
var _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17, _wsAdditionalDetails$18, _wsAdditionalDetails$19;
|
|
22854
|
+
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;
|
|
22855
|
+
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;
|
|
22856
22856
|
const appAdditionalDetails = {
|
|
22857
|
-
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
22857
|
+
...(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),
|
|
22858
22858
|
...fields
|
|
22859
22859
|
};
|
|
22860
22860
|
wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
|
|
22861
22861
|
const data = {
|
|
22862
|
-
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
22862
|
+
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" ? [{
|
|
22863
22863
|
applicationNo: applicationNo,
|
|
22864
22864
|
tenantId: tenantId,
|
|
22865
22865
|
waterConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
@@ -22870,7 +22870,7 @@ const WSFeeEstimation = ({
|
|
|
22870
22870
|
}],
|
|
22871
22871
|
isconnectionCalculation: false
|
|
22872
22872
|
};
|
|
22873
|
-
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
22873
|
+
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";
|
|
22874
22874
|
Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
|
|
22875
22875
|
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;
|
|
22876
22876
|
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) {
|
|
@@ -22973,7 +22973,7 @@ const WSFeeEstimation = ({
|
|
|
22973
22973
|
} : {
|
|
22974
22974
|
color: "#00703C"
|
|
22975
22975
|
}
|
|
22976
|
-
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$
|
|
22976
|
+
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$20 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$20 !== void 0 && _wsAdditionalDetails$20.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
|
|
22977
22977
|
onClick: e => {
|
|
22978
22978
|
showPopUp(true);
|
|
22979
22979
|
}
|
|
@@ -24004,7 +24004,7 @@ function ApplicationDetailsContent({
|
|
|
24004
24004
|
isInfoLabel = false,
|
|
24005
24005
|
propertyId
|
|
24006
24006
|
}) {
|
|
24007
|
-
var _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$
|
|
24007
|
+
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;
|
|
24008
24008
|
const {
|
|
24009
24009
|
t
|
|
24010
24010
|
} = useTranslation();
|
|
@@ -24144,12 +24144,12 @@ function ApplicationDetailsContent({
|
|
|
24144
24144
|
privacy: privacy
|
|
24145
24145
|
});
|
|
24146
24146
|
} else {
|
|
24147
|
-
var _applicationData$audi2, _checkpoint$assignes8, _checkpoint$assignes9, _checkpoint$
|
|
24147
|
+
var _applicationData$audi2, _checkpoint$assignes8, _checkpoint$assignes9, _checkpoint$assignes10, _checkpoint$assignes11;
|
|
24148
24148
|
const caption = {
|
|
24149
24149
|
date: convertEpochToDateDMY(applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$audi2 = applicationData.auditDetails) === null || _applicationData$audi2 === void 0 ? void 0 : _applicationData$audi2.lastModifiedTime),
|
|
24150
24150
|
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,
|
|
24151
24151
|
wfComment: checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.wfComment,
|
|
24152
|
-
mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$
|
|
24152
|
+
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
|
|
24153
24153
|
};
|
|
24154
24154
|
return /*#__PURE__*/React.createElement(TLCaption, {
|
|
24155
24155
|
data: caption
|
|
@@ -24321,14 +24321,14 @@ function ApplicationDetailsContent({
|
|
|
24321
24321
|
});
|
|
24322
24322
|
}
|
|
24323
24323
|
} else {
|
|
24324
|
-
var _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$
|
|
24324
|
+
var _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a10;
|
|
24325
24325
|
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a8 = applicationDetails.applicationData) === null || _applicationDetails$a8 === void 0 ? void 0 : _applicationDetails$a8.status) === "INACTIVE") {
|
|
24326
24326
|
alert("Property is inactive, cannot edit.");
|
|
24327
24327
|
return;
|
|
24328
24328
|
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.status) === "INWORKFLOW") {
|
|
24329
24329
|
alert("Property is in workflow, cannot edit.");
|
|
24330
24330
|
return;
|
|
24331
|
-
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
24331
|
+
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a10 = applicationDetails.applicationData) === null || _applicationDetails$a10 === void 0 ? void 0 : _applicationDetails$a10.status) === "ACTIVE") {
|
|
24332
24332
|
history.push({
|
|
24333
24333
|
pathname: `/digit-ui/citizen/pt/property/edit-application/${pID}`
|
|
24334
24334
|
});
|
|
@@ -24372,8 +24372,8 @@ function ApplicationDetailsContent({
|
|
|
24372
24372
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
24373
24373
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
24374
24374
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
24375
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
24376
|
-
var _detail$values, _detail$additionalDet, _applicationDetails$
|
|
24375
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a11 = applicationDetails.applicationDetails) === null || _applicationDetails$a11 === void 0 ? void 0 : _applicationDetails$a11.map((detail, index) => {
|
|
24376
|
+
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;
|
|
24377
24377
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
24378
24378
|
key: index
|
|
24379
24379
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -24517,10 +24517,10 @@ function ApplicationDetailsContent({
|
|
|
24517
24517
|
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
24518
24518
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
24519
24519
|
paymentsList: paymentsList,
|
|
24520
|
-
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
24520
|
+
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a12 = applicationDetails.applicationData) === null || _applicationDetails$a12 === void 0 ? void 0 : _applicationDetails$a12.additionalDetails,
|
|
24521
24521
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
24522
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
24523
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
24522
|
+
}), (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.createElement(InspectionReport, {
|
|
24523
|
+
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
|
|
24524
24524
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React.createElement(PropertyFloors, {
|
|
24525
24525
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
24526
24526
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.owners) && /*#__PURE__*/React.createElement(PropertyOwners, {
|
|
@@ -24528,12 +24528,12 @@ function ApplicationDetailsContent({
|
|
|
24528
24528
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.units) && /*#__PURE__*/React.createElement(TLTradeUnits, {
|
|
24529
24529
|
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.units
|
|
24530
24530
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.accessories) && /*#__PURE__*/React.createElement(TLTradeAccessories, {
|
|
24531
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24532
|
-
}), !isEditApplication && (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24531
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.accessories
|
|
24532
|
+
}), !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.createElement(PermissionCheck, {
|
|
24533
24533
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
24534
24534
|
t: t,
|
|
24535
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24536
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24535
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.permissions
|
|
24536
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.obpsDocuments) && /*#__PURE__*/React.createElement("div", {
|
|
24537
24537
|
style: {
|
|
24538
24538
|
display: "flex"
|
|
24539
24539
|
}
|
|
@@ -24542,29 +24542,29 @@ function ApplicationDetailsContent({
|
|
|
24542
24542
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
24543
24543
|
docs: detail.additionalDetails.obpsDocuments,
|
|
24544
24544
|
bpaActionsDetails: workflowDetails
|
|
24545
|
-
})), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24545
|
+
})), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.noc) && /*#__PURE__*/React.createElement(NOCDocuments, {
|
|
24546
24546
|
t: t,
|
|
24547
24547
|
isNoc: true,
|
|
24548
24548
|
NOCdata: detail.values,
|
|
24549
24549
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
24550
24550
|
docs: detail.additionalDetails.noc,
|
|
24551
|
-
noc: (_detail$
|
|
24551
|
+
noc: (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.data,
|
|
24552
24552
|
bpaActionsDetails: workflowDetails
|
|
24553
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24553
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.scruntinyDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
24554
24554
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
24555
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24555
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.buildingExtractionDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
24556
24556
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
24557
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24557
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.subOccupancyTableDetails) && /*#__PURE__*/React.createElement(SubOccupancyTable, {
|
|
24558
24558
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
24559
24559
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
24560
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24561
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24562
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24563
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24560
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documentsWithUrl) && /*#__PURE__*/React.createElement(DocumentsPreview, {
|
|
24561
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documentsWithUrl
|
|
24562
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
24563
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
24564
24564
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
24565
24565
|
wsAdditionalDetails: detail,
|
|
24566
24566
|
oldValue: oldValue
|
|
24567
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24567
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement("div", {
|
|
24568
24568
|
style: {
|
|
24569
24569
|
fontSize: "16px",
|
|
24570
24570
|
lineHeight: "24px",
|
|
@@ -24572,16 +24572,16 @@ function ApplicationDetailsContent({
|
|
|
24572
24572
|
padding: "10px 0px"
|
|
24573
24573
|
}
|
|
24574
24574
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
24575
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24575
|
+
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
|
|
24576
24576
|
}, /*#__PURE__*/React.createElement("span", {
|
|
24577
24577
|
className: "link",
|
|
24578
24578
|
style: {
|
|
24579
24579
|
color: "#a82227"
|
|
24580
24580
|
}
|
|
24581
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24581
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
24582
24582
|
wsAdditionalDetails: detail,
|
|
24583
24583
|
workflowDetails: workflowDetails
|
|
24584
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
24584
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
|
|
24585
24585
|
wsAdditionalDetails: detail,
|
|
24586
24586
|
workflowDetails: workflowDetails
|
|
24587
24587
|
}));
|
|
@@ -24601,13 +24601,13 @@ function ApplicationDetailsContent({
|
|
|
24601
24601
|
}, 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.createElement(CheckPoint, {
|
|
24602
24602
|
isCompleted: true,
|
|
24603
24603
|
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}`),
|
|
24604
|
-
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
24605
|
-
}) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
24606
|
-
var _workflowDetails$
|
|
24604
|
+
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)
|
|
24605
|
+
}) : /*#__PURE__*/React.createElement(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) => {
|
|
24606
|
+
var _workflowDetails$data20;
|
|
24607
24607
|
let timelineStatusPostfix = "";
|
|
24608
24608
|
if (window.location.href.includes("/obps/")) {
|
|
24609
|
-
var _workflowDetails$
|
|
24610
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
24609
|
+
var _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19;
|
|
24610
|
+
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`;
|
|
24611
24611
|
}
|
|
24612
24612
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
24613
24613
|
key: index
|
|
@@ -24616,9 +24616,9 @@ function ApplicationDetailsContent({
|
|
|
24616
24616
|
isCompleted: index === 0,
|
|
24617
24617
|
info: checkpoint.comment,
|
|
24618
24618
|
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}`),
|
|
24619
|
-
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
24619
|
+
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)
|
|
24620
24620
|
}));
|
|
24621
|
-
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
24621
|
+
}))), (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.createElement(LinkButton, {
|
|
24622
24622
|
label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
|
|
24623
24623
|
onClick: toggleTimeline
|
|
24624
24624
|
})))), window.location.href.includes("/pt/") ? /*#__PURE__*/React.createElement(ActionBar, {
|
|
@@ -24664,7 +24664,7 @@ function ApplicationDetailsToast({
|
|
|
24664
24664
|
closeToast,
|
|
24665
24665
|
businessService
|
|
24666
24666
|
}) {
|
|
24667
|
-
var _showToast$error, _showToast$error2, _showToast$error3, _showToast$error4, _showToast$error5, _showToast$error6, _showToast$error7, _showToast$error8, _showToast$action2, _showToast$error9, _showToast$
|
|
24667
|
+
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;
|
|
24668
24668
|
if (businessService !== null && businessService !== void 0 && businessService.includes("NewTL") || businessService !== null && businessService !== void 0 && businessService.includes("TL") || businessService !== null && businessService !== void 0 && businessService.includes("EDITRENEWAL")) {
|
|
24669
24669
|
var _showToast$action;
|
|
24670
24670
|
let label = "";
|
|
@@ -24711,26 +24711,26 @@ function ApplicationDetailsToast({
|
|
|
24711
24711
|
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"]);
|
|
24712
24712
|
break;
|
|
24713
24713
|
case "VERIFY_AND_FORWARD":
|
|
24714
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
24714
|
+
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"]);
|
|
24715
24715
|
break;
|
|
24716
24716
|
case "SEND_BACK_TO_CITIZEN":
|
|
24717
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
24717
|
+
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"]);
|
|
24718
24718
|
break;
|
|
24719
24719
|
case "APPROVE":
|
|
24720
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
24720
|
+
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"]);
|
|
24721
24721
|
break;
|
|
24722
24722
|
case "REJECT":
|
|
24723
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
24723
|
+
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"]);
|
|
24724
24724
|
break;
|
|
24725
24725
|
case "FORWARD":
|
|
24726
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
24726
|
+
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"]);
|
|
24727
24727
|
break;
|
|
24728
24728
|
case "SEND_BACK_FOR_DOCUMENT_VERIFICATION":
|
|
24729
24729
|
case "SEND_BACK_FOR_FIELD_INSPECTION":
|
|
24730
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
24730
|
+
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"]);
|
|
24731
24731
|
break;
|
|
24732
24732
|
default:
|
|
24733
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
24733
|
+
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`);
|
|
24734
24734
|
}
|
|
24735
24735
|
return /*#__PURE__*/React.createElement(React.Fragment, null, showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
24736
24736
|
error: showToast.key === "error",
|
|
@@ -24738,8 +24738,8 @@ function ApplicationDetailsToast({
|
|
|
24738
24738
|
onClose: closeToast
|
|
24739
24739
|
}));
|
|
24740
24740
|
} else {
|
|
24741
|
-
var _showToast$
|
|
24742
|
-
const label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
24741
|
+
var _showToast$error17, _showToast$action5;
|
|
24742
|
+
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`;
|
|
24743
24743
|
return /*#__PURE__*/React.createElement(React.Fragment, null, showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
24744
24744
|
error: showToast.key === "error",
|
|
24745
24745
|
label: t(label),
|
|
@@ -24976,7 +24976,7 @@ const ApplicationDetails = props => {
|
|
|
24976
24976
|
}, [showToast]);
|
|
24977
24977
|
function onActionSelect(action) {
|
|
24978
24978
|
if (action) {
|
|
24979
|
-
var _action$redirectionUr8, _action$redirectionUr9, _action$
|
|
24979
|
+
var _action$redirectionUr8, _action$redirectionUr9, _action$redirectionUr10;
|
|
24980
24980
|
if ((action === null || action === void 0 ? void 0 : action.action) == "EDIT PAY 2" && window.location.href.includes("bpa")) {
|
|
24981
24981
|
window.location.assign(window.location.href.split("bpa")[0] + "editApplication/bpa" + window.location.href.split("bpa")[1]);
|
|
24982
24982
|
} else if (action !== null && action !== void 0 && action.isWarningPopUp) {
|
|
@@ -25000,15 +25000,15 @@ const ApplicationDetails = props => {
|
|
|
25000
25000
|
}
|
|
25001
25001
|
} else if (!(action !== null && action !== void 0 && action.redirectionUrl) && (action === null || action === void 0 ? void 0 : action.action) != "EDIT PAY 2") {
|
|
25002
25002
|
setShowModal(true);
|
|
25003
|
-
} 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$
|
|
25003
|
+
} 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") {
|
|
25004
25004
|
console.log("Got Inside Direct");
|
|
25005
25005
|
setShowModal(true);
|
|
25006
25006
|
} else {
|
|
25007
|
-
var _action$
|
|
25007
|
+
var _action$redirectionUr11, _action$redirectionUr12;
|
|
25008
25008
|
history.push({
|
|
25009
|
-
pathname: (_action$
|
|
25009
|
+
pathname: (_action$redirectionUr11 = action.redirectionUrl) === null || _action$redirectionUr11 === void 0 ? void 0 : _action$redirectionUr11.pathname,
|
|
25010
25010
|
state: {
|
|
25011
|
-
...((_action$
|
|
25011
|
+
...((_action$redirectionUr12 = action.redirectionUrl) === null || _action$redirectionUr12 === void 0 ? void 0 : _action$redirectionUr12.state)
|
|
25012
25012
|
}
|
|
25013
25013
|
});
|
|
25014
25014
|
}
|
|
@@ -25719,14 +25719,14 @@ const createEmployeeConfig = [{
|
|
|
25719
25719
|
isStepEnabled: true,
|
|
25720
25720
|
type: "component",
|
|
25721
25721
|
component: "NewADSStepFormOne",
|
|
25722
|
-
key: "
|
|
25722
|
+
key: "ownerDetails",
|
|
25723
25723
|
withoutLabel: true,
|
|
25724
25724
|
texts: {
|
|
25725
25725
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
25726
25726
|
}
|
|
25727
25727
|
}, {
|
|
25728
25728
|
head: "PET DETAILS",
|
|
25729
|
-
stepLabel: "
|
|
25729
|
+
stepLabel: "ADS_DETAILS",
|
|
25730
25730
|
stepNumber: 2,
|
|
25731
25731
|
isStepEnabled: true,
|
|
25732
25732
|
type: "component",
|
|
@@ -25767,7 +25767,6 @@ const updatedCreateEmployeeconfig = createEmployeeConfig.map(item => {
|
|
|
25767
25767
|
currStepConfig: citizenConfig$1.filter(newConfigItem => newConfigItem.stepNumber === item.stepNumber)
|
|
25768
25768
|
};
|
|
25769
25769
|
});
|
|
25770
|
-
console.log("updatedCreateEmployeeconfig: ", updatedCreateEmployeeconfig);
|
|
25771
25770
|
const NewADSStepperForm = () => {
|
|
25772
25771
|
const history = useHistory();
|
|
25773
25772
|
const {
|
|
@@ -25778,14 +25777,15 @@ const NewADSStepperForm = () => {
|
|
|
25778
25777
|
const formState = useSelector(state => state.ads.ADSNewApplicationFormReducer);
|
|
25779
25778
|
const step = formState.step;
|
|
25780
25779
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
25781
|
-
console.log("formStatePTR: ", formState);
|
|
25782
25780
|
const setStep = updatedStepNumber => {
|
|
25783
25781
|
dispatch(SET_ADSNewApplication_STEP(updatedStepNumber));
|
|
25784
25782
|
};
|
|
25785
25783
|
useEffect(() => {
|
|
25786
25784
|
dispatch(RESET_ADS_NEW_APPLICATION_FORM());
|
|
25787
25785
|
}, []);
|
|
25788
|
-
const handleSubmit =
|
|
25786
|
+
const handleSubmit = dataGet => {
|
|
25787
|
+
console.log("dataGet===", dataGet);
|
|
25788
|
+
};
|
|
25789
25789
|
return /*#__PURE__*/React.createElement("div", {
|
|
25790
25790
|
className: "pageCard"
|
|
25791
25791
|
}, /*#__PURE__*/React.createElement(CardHeader, {
|
|
@@ -25795,7 +25795,7 @@ const NewADSStepperForm = () => {
|
|
|
25795
25795
|
color: "#1C1D1F"
|
|
25796
25796
|
},
|
|
25797
25797
|
divider: true
|
|
25798
|
-
}, t("
|
|
25798
|
+
}, t("ADS_REGISTRATION_APPLICATION")), /*#__PURE__*/React.createElement(Stepper, {
|
|
25799
25799
|
stepsList: updatedCreateEmployeeconfig,
|
|
25800
25800
|
onSubmit: handleSubmit,
|
|
25801
25801
|
step: step,
|
|
@@ -25810,88 +25810,180 @@ const NewADSStepperForm = () => {
|
|
|
25810
25810
|
}));
|
|
25811
25811
|
};
|
|
25812
25812
|
|
|
25813
|
+
const ADSCitizenDetailsNew = ({
|
|
25814
|
+
t,
|
|
25815
|
+
goNext,
|
|
25816
|
+
currentStepData
|
|
25817
|
+
}) => {
|
|
25818
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
25819
|
+
const stateId = Digit.ULBService.getStateId();
|
|
25820
|
+
const {
|
|
25821
|
+
control,
|
|
25822
|
+
handleSubmit,
|
|
25823
|
+
setValue
|
|
25824
|
+
} = useForm();
|
|
25825
|
+
const onSubmit = data => {
|
|
25826
|
+
console.log("data in first step", data);
|
|
25827
|
+
goNext(data);
|
|
25828
|
+
};
|
|
25829
|
+
useEffect(() => {
|
|
25830
|
+
console.log("currentStepData", currentStepData);
|
|
25831
|
+
const formattedData = currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.ownerDetails;
|
|
25832
|
+
if (formattedData) {
|
|
25833
|
+
console.log("coming here", formattedData);
|
|
25834
|
+
Object.entries(formattedData).forEach(([key, value]) => {
|
|
25835
|
+
setValue(key, value);
|
|
25836
|
+
});
|
|
25837
|
+
}
|
|
25838
|
+
}, [currentStepData, setValue]);
|
|
25839
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("form", {
|
|
25840
|
+
onSubmit: handleSubmit(onSubmit)
|
|
25841
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("NDC_FIRST_NAME")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
25842
|
+
control: control,
|
|
25843
|
+
name: "firstName",
|
|
25844
|
+
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
25845
|
+
value: props.value,
|
|
25846
|
+
onChange: e => {
|
|
25847
|
+
props.onChange(e.target.value);
|
|
25848
|
+
},
|
|
25849
|
+
onBlur: e => {
|
|
25850
|
+
props.onBlur(e);
|
|
25851
|
+
},
|
|
25852
|
+
t: t
|
|
25853
|
+
})
|
|
25854
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("NDC_LAST_NAME")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
25855
|
+
control: control,
|
|
25856
|
+
name: "lastName",
|
|
25857
|
+
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
25858
|
+
value: props.value,
|
|
25859
|
+
onChange: e => {
|
|
25860
|
+
props.onChange(e.target.value);
|
|
25861
|
+
},
|
|
25862
|
+
onBlur: e => {
|
|
25863
|
+
props.onBlur(e);
|
|
25864
|
+
},
|
|
25865
|
+
t: t
|
|
25866
|
+
})
|
|
25867
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("NOC_APPLICANT_EMAIL_LABEL")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
25868
|
+
control: control,
|
|
25869
|
+
name: "emailId",
|
|
25870
|
+
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
25871
|
+
value: props.value,
|
|
25872
|
+
onChange: e => {
|
|
25873
|
+
props.onChange(e.target.value);
|
|
25874
|
+
},
|
|
25875
|
+
onBlur: e => {
|
|
25876
|
+
props.onBlur(e);
|
|
25877
|
+
},
|
|
25878
|
+
t: t
|
|
25879
|
+
})
|
|
25880
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("NOC_APPLICANT_MOBILE_NO_LABEL")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
25881
|
+
control: control,
|
|
25882
|
+
name: "mobileNumber",
|
|
25883
|
+
render: props => /*#__PURE__*/React.createElement(MobileNumber, {
|
|
25884
|
+
value: props.value,
|
|
25885
|
+
onChange: props.onChange,
|
|
25886
|
+
onBlur: props.onBlur,
|
|
25887
|
+
t: t
|
|
25888
|
+
})
|
|
25889
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("ADVT_CHALLAN_UNDER_SECTION_122_123_SGST")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
25890
|
+
control: control,
|
|
25891
|
+
name: "SGST",
|
|
25892
|
+
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
25893
|
+
value: props.value,
|
|
25894
|
+
onChange: e => {
|
|
25895
|
+
props.onChange(e.target.value);
|
|
25896
|
+
},
|
|
25897
|
+
onBlur: e => {
|
|
25898
|
+
props.onBlur(e);
|
|
25899
|
+
},
|
|
25900
|
+
t: t
|
|
25901
|
+
})
|
|
25902
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_COMMON_COL_ADDRESS")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
25903
|
+
control: control,
|
|
25904
|
+
name: "address",
|
|
25905
|
+
render: props => /*#__PURE__*/React.createElement(TextArea, {
|
|
25906
|
+
name: "address",
|
|
25907
|
+
value: props.value,
|
|
25908
|
+
onChange: e => {
|
|
25909
|
+
props.onChange(e.target.value);
|
|
25910
|
+
},
|
|
25911
|
+
onBlur: e => {
|
|
25912
|
+
props.onBlur(e);
|
|
25913
|
+
},
|
|
25914
|
+
t: t
|
|
25915
|
+
})
|
|
25916
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
25917
|
+
style: {
|
|
25918
|
+
marginTop: "20px"
|
|
25919
|
+
}
|
|
25920
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
25921
|
+
control: control,
|
|
25922
|
+
name: "selfDeclaration",
|
|
25923
|
+
render: field => /*#__PURE__*/React.createElement("div", {
|
|
25924
|
+
style: {
|
|
25925
|
+
display: "flex",
|
|
25926
|
+
alignItems: "center",
|
|
25927
|
+
gap: "8px",
|
|
25928
|
+
marginBottom: "12px"
|
|
25929
|
+
}
|
|
25930
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
25931
|
+
value: field.value,
|
|
25932
|
+
type: "checkbox",
|
|
25933
|
+
id: "selfDeclaration",
|
|
25934
|
+
checked: field.value || false,
|
|
25935
|
+
onChange: e => field.onChange(e.target.checked),
|
|
25936
|
+
onBlur: field.onBlur,
|
|
25937
|
+
style: {
|
|
25938
|
+
width: "18px",
|
|
25939
|
+
height: "18px",
|
|
25940
|
+
cursor: "pointer"
|
|
25941
|
+
}
|
|
25942
|
+
}), /*#__PURE__*/React.createElement("label", {
|
|
25943
|
+
htmlFor: "selfDeclaration",
|
|
25944
|
+
style: {
|
|
25945
|
+
fontSize: "14px",
|
|
25946
|
+
lineHeight: "1.5",
|
|
25947
|
+
cursor: "pointer"
|
|
25948
|
+
}
|
|
25949
|
+
}, t("BILLAMENDMENT_SELFDECLARATION_LABEL")))
|
|
25950
|
+
}))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
25951
|
+
label: "Next",
|
|
25952
|
+
submit: "submit"
|
|
25953
|
+
}))));
|
|
25954
|
+
};
|
|
25955
|
+
|
|
25813
25956
|
const NewADSStepFormOne = ({
|
|
25814
25957
|
config,
|
|
25815
25958
|
onGoNext,
|
|
25816
|
-
onBackClick
|
|
25817
|
-
t
|
|
25959
|
+
onBackClick
|
|
25818
25960
|
}) => {
|
|
25819
25961
|
const dispatch = useDispatch();
|
|
25962
|
+
const {
|
|
25963
|
+
t
|
|
25964
|
+
} = useTranslation();
|
|
25820
25965
|
const [showToast, setShowToast] = useState(false);
|
|
25821
25966
|
const [error, setError] = useState("");
|
|
25822
25967
|
const currentStepData = useSelector(function (state) {
|
|
25823
|
-
return state.ads.ADSNewApplicationFormReducer.formData
|
|
25968
|
+
return state.ads.ADSNewApplicationFormReducer.formData;
|
|
25824
25969
|
});
|
|
25825
|
-
function validateStepData(data) {
|
|
25826
|
-
const ownerss = (data === null || data === void 0 ? void 0 : data.ownerss) || [];
|
|
25827
|
-
const missingFields = [];
|
|
25828
|
-
const notFormattedFields = [];
|
|
25829
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.firstName)) missingFields.push("FIRST_NAME");
|
|
25830
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.lastName)) missingFields.push("LAST_NAME");
|
|
25831
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.emailId)) missingFields.push("EMAIL_ID");
|
|
25832
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.mobileNumber)) missingFields.push("MOBILE_NUMBER");
|
|
25833
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.fatherName)) missingFields.push("FATHER_NAME");
|
|
25834
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.address)) missingFields.push("ADDRESS");
|
|
25835
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.mobileNumber && !/^[6-9]\d{9}$/.test(ownerss.mobileNumber)) {
|
|
25836
|
-
notFormattedFields.push("MOBILE_NUMBER");
|
|
25837
|
-
}
|
|
25838
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.emailId && !/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(ownerss.emailId)) {
|
|
25839
|
-
notFormattedFields.push("EMAIL_ID");
|
|
25840
|
-
}
|
|
25841
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.firstName && !/^[a-zA-Z ]+$/.test(ownerss.firstName)) {
|
|
25842
|
-
notFormattedFields.push("FIRST_NAME");
|
|
25843
|
-
}
|
|
25844
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.lastName && !/^[a-zA-Z ]+$/.test(ownerss.lastName)) {
|
|
25845
|
-
notFormattedFields.push("LAST_NAME");
|
|
25846
|
-
}
|
|
25847
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.fatherName && !/^[a-zA-Z ]+$/.test(ownerss.fatherName)) {
|
|
25848
|
-
notFormattedFields.push("FATHER_NAME");
|
|
25849
|
-
}
|
|
25850
|
-
return {
|
|
25851
|
-
missingFields,
|
|
25852
|
-
notFormattedFields
|
|
25853
|
-
};
|
|
25854
|
-
}
|
|
25855
25970
|
function goNext(data) {
|
|
25856
|
-
|
|
25857
|
-
missingFields,
|
|
25858
|
-
notFormattedFields
|
|
25859
|
-
} = validateStepData(currentStepData);
|
|
25860
|
-
console.log("data===", data);
|
|
25861
|
-
console.log("currentStepData===", currentStepData);
|
|
25862
|
-
if (missingFields.length > 0) {
|
|
25863
|
-
setError(`Please fill the following field: ${missingFields[0]}`);
|
|
25864
|
-
setShowToast(true);
|
|
25865
|
-
return;
|
|
25866
|
-
}
|
|
25867
|
-
if (notFormattedFields.length > 0) {
|
|
25868
|
-
setError(`Please format the following field: ${notFormattedFields[0]}`);
|
|
25869
|
-
setShowToast(true);
|
|
25870
|
-
return;
|
|
25871
|
-
}
|
|
25971
|
+
dispatch(UPDATE_ADSNewApplication_FORM(config.key, data));
|
|
25872
25972
|
onGoNext();
|
|
25973
|
+
return;
|
|
25873
25974
|
}
|
|
25874
25975
|
function onGoBack(data) {
|
|
25875
25976
|
onBackClick(config.key, data);
|
|
25876
25977
|
}
|
|
25877
|
-
const onFormValueChange = (setValue = true, data) => {
|
|
25878
|
-
console.log("onFormValueChange data in AdministrativeDetails: ", data, "\n Bool: ", !lodash.isEqual(data, currentStepData));
|
|
25879
|
-
if (!lodash.isEqual(data, currentStepData)) {
|
|
25880
|
-
dispatch(UPDATE_ADSNewApplication_FORM(config.key, data));
|
|
25881
|
-
}
|
|
25882
|
-
};
|
|
25883
25978
|
const closeToast = () => {
|
|
25884
25979
|
setShowToast(false);
|
|
25885
25980
|
setError("");
|
|
25886
25981
|
};
|
|
25887
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
25888
|
-
|
|
25889
|
-
|
|
25890
|
-
|
|
25891
|
-
|
|
25892
|
-
label: t(`${config.texts.submitBarLabel}`),
|
|
25893
|
-
currentStep: config.currStepNumber,
|
|
25894
|
-
onBackClick: onGoBack
|
|
25982
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ADSCitizenDetailsNew, {
|
|
25983
|
+
onGoBack: onGoBack,
|
|
25984
|
+
goNext: goNext,
|
|
25985
|
+
currentStepData: currentStepData,
|
|
25986
|
+
t: t
|
|
25895
25987
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
25896
25988
|
isDleteBtn: true,
|
|
25897
25989
|
error: true,
|
|
@@ -25900,67 +25992,176 @@ const NewADSStepFormOne = ({
|
|
|
25900
25992
|
}));
|
|
25901
25993
|
};
|
|
25902
25994
|
|
|
25995
|
+
const Breed_Type = [{
|
|
25996
|
+
i18nKey: `PTR_GENDER`,
|
|
25997
|
+
code: `123`,
|
|
25998
|
+
name: `test`
|
|
25999
|
+
}];
|
|
26000
|
+
const ADSCitizenSecond = ({
|
|
26001
|
+
onGoBack,
|
|
26002
|
+
goNext,
|
|
26003
|
+
currentStepData,
|
|
26004
|
+
t
|
|
26005
|
+
}) => {
|
|
26006
|
+
const {
|
|
26007
|
+
control,
|
|
26008
|
+
handleSubmit,
|
|
26009
|
+
setValue
|
|
26010
|
+
} = useForm();
|
|
26011
|
+
const onSubmit = data => {
|
|
26012
|
+
goNext(data);
|
|
26013
|
+
};
|
|
26014
|
+
useEffect(() => {
|
|
26015
|
+
console.log("currentStepData", currentStepData);
|
|
26016
|
+
const formattedData = currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.pets;
|
|
26017
|
+
if (formattedData) {
|
|
26018
|
+
console.log("coming here", formattedData);
|
|
26019
|
+
Object.entries(formattedData).forEach(([key, value]) => {
|
|
26020
|
+
setValue(key, value);
|
|
26021
|
+
});
|
|
26022
|
+
}
|
|
26023
|
+
}, [currentStepData, setValue]);
|
|
26024
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("form", {
|
|
26025
|
+
onSubmit: handleSubmit(onSubmit)
|
|
26026
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, "Search By site id"), /*#__PURE__*/React.createElement(Controller, {
|
|
26027
|
+
control: control,
|
|
26028
|
+
name: "siteId",
|
|
26029
|
+
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
26030
|
+
value: props.value,
|
|
26031
|
+
onChange: e => {
|
|
26032
|
+
props.onChange(e.target.value);
|
|
26033
|
+
},
|
|
26034
|
+
onBlur: e => {
|
|
26035
|
+
props.onBlur(e);
|
|
26036
|
+
}
|
|
26037
|
+
})
|
|
26038
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, "Site Name"), /*#__PURE__*/React.createElement(Controller, {
|
|
26039
|
+
control: control,
|
|
26040
|
+
name: "siteName",
|
|
26041
|
+
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
26042
|
+
className: "form-field",
|
|
26043
|
+
select: props.onChange,
|
|
26044
|
+
selected: props.value,
|
|
26045
|
+
option: Breed_Type,
|
|
26046
|
+
optionKey: "i18nKey"
|
|
26047
|
+
})
|
|
26048
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, "Geo Location"), /*#__PURE__*/React.createElement(Controller, {
|
|
26049
|
+
control: control,
|
|
26050
|
+
name: "geoLocation",
|
|
26051
|
+
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
26052
|
+
className: "form-field",
|
|
26053
|
+
select: props.onChange,
|
|
26054
|
+
selected: props.value,
|
|
26055
|
+
option: Breed_Type,
|
|
26056
|
+
optionKey: "i18nKey"
|
|
26057
|
+
})
|
|
26058
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, "Address"), /*#__PURE__*/React.createElement(Controller, {
|
|
26059
|
+
control: control,
|
|
26060
|
+
name: "address",
|
|
26061
|
+
render: props => /*#__PURE__*/React.createElement(TextArea, {
|
|
26062
|
+
value: props.value,
|
|
26063
|
+
onChange: e => {
|
|
26064
|
+
props.onChange(e.target.value);
|
|
26065
|
+
},
|
|
26066
|
+
onBlur: e => {
|
|
26067
|
+
props.onBlur(e);
|
|
26068
|
+
}
|
|
26069
|
+
})
|
|
26070
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, "Size"), /*#__PURE__*/React.createElement(Controller, {
|
|
26071
|
+
control: control,
|
|
26072
|
+
name: "size",
|
|
26073
|
+
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
26074
|
+
value: props.value,
|
|
26075
|
+
onChange: e => {
|
|
26076
|
+
props.onChange(e.target.value);
|
|
26077
|
+
},
|
|
26078
|
+
onBlur: e => {
|
|
26079
|
+
props.onBlur(e);
|
|
26080
|
+
}
|
|
26081
|
+
})
|
|
26082
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, "Advertisement Type"), /*#__PURE__*/React.createElement(Controller, {
|
|
26083
|
+
control: control,
|
|
26084
|
+
name: "advertisementType",
|
|
26085
|
+
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
26086
|
+
className: "form-field",
|
|
26087
|
+
select: props.onChange,
|
|
26088
|
+
selected: props.value,
|
|
26089
|
+
option: Breed_Type,
|
|
26090
|
+
optionKey: "i18nKey"
|
|
26091
|
+
})
|
|
26092
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, "Start Date"), /*#__PURE__*/React.createElement(Controller, {
|
|
26093
|
+
control: control,
|
|
26094
|
+
name: "startDate",
|
|
26095
|
+
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
26096
|
+
type: "date",
|
|
26097
|
+
value: props.value,
|
|
26098
|
+
onChange: e => {
|
|
26099
|
+
props.onChange(e.target.value);
|
|
26100
|
+
},
|
|
26101
|
+
onBlur: e => {
|
|
26102
|
+
props.onBlur(e);
|
|
26103
|
+
}
|
|
26104
|
+
})
|
|
26105
|
+
}), /*#__PURE__*/React.createElement(CardLabel, null, "End Date"), /*#__PURE__*/React.createElement(Controller, {
|
|
26106
|
+
control: control,
|
|
26107
|
+
name: "endDate",
|
|
26108
|
+
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
26109
|
+
type: "date",
|
|
26110
|
+
value: props.value,
|
|
26111
|
+
onChange: e => {
|
|
26112
|
+
props.onChange(e.target.value);
|
|
26113
|
+
},
|
|
26114
|
+
onBlur: e => {
|
|
26115
|
+
props.onBlur(e);
|
|
26116
|
+
}
|
|
26117
|
+
})
|
|
26118
|
+
})), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
26119
|
+
style: {
|
|
26120
|
+
background: " white",
|
|
26121
|
+
color: "black",
|
|
26122
|
+
border: "1px solid",
|
|
26123
|
+
marginRight: "10px"
|
|
26124
|
+
},
|
|
26125
|
+
label: "Back",
|
|
26126
|
+
submit: "submit",
|
|
26127
|
+
onSubmit: onGoBack
|
|
26128
|
+
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
26129
|
+
label: "Next",
|
|
26130
|
+
submit: "submit"
|
|
26131
|
+
}))));
|
|
26132
|
+
};
|
|
26133
|
+
|
|
25903
26134
|
const NewADSStepFormTwo = ({
|
|
25904
26135
|
config,
|
|
25905
|
-
onGoNext,
|
|
25906
26136
|
onBackClick,
|
|
25907
|
-
|
|
26137
|
+
onGoNext
|
|
25908
26138
|
}) => {
|
|
26139
|
+
const {
|
|
26140
|
+
t
|
|
26141
|
+
} = useTranslation();
|
|
25909
26142
|
const dispatch = useDispatch();
|
|
25910
26143
|
const [showToast, setShowToast] = useState(false);
|
|
25911
26144
|
const [error, setError] = useState("");
|
|
25912
26145
|
const currentStepData = useSelector(function (state) {
|
|
25913
|
-
return state.ads.ADSNewApplicationFormReducer.formData
|
|
26146
|
+
return state.ads.ADSNewApplicationFormReducer.formData;
|
|
25914
26147
|
});
|
|
25915
26148
|
function goNext(data) {
|
|
25916
|
-
|
|
25917
|
-
missingFields,
|
|
25918
|
-
notFormattedFields
|
|
25919
|
-
} = validateStepData(currentStepData);
|
|
25920
|
-
if (missingFields.length > 0) {
|
|
25921
|
-
setError(`Please fill the following field: ${missingFields[0]}`);
|
|
25922
|
-
setShowToast(true);
|
|
25923
|
-
return;
|
|
25924
|
-
}
|
|
26149
|
+
dispatch(UPDATE_ADSNewApplication_FORM(config.key, data));
|
|
25925
26150
|
onGoNext();
|
|
25926
|
-
|
|
25927
|
-
function validateStepData(data) {
|
|
25928
|
-
const pets = (data === null || data === void 0 ? void 0 : data.pets) || [];
|
|
25929
|
-
const missingFields = [];
|
|
25930
|
-
const notFormattedFields = [];
|
|
25931
|
-
if (!(pets !== null && pets !== void 0 && pets.petName)) missingFields.push("PET_NAME");
|
|
25932
|
-
if (!(pets !== null && pets !== void 0 && pets.petType)) missingFields.push("PET_TYPE");
|
|
25933
|
-
if (!(pets !== null && pets !== void 0 && pets.breedType)) missingFields.push("BREED_TYPE");
|
|
25934
|
-
if (!(pets !== null && pets !== void 0 && pets.petGender)) missingFields.push("PET_GENDER");
|
|
25935
|
-
if (!(pets !== null && pets !== void 0 && pets.color)) missingFields.push("COLOR");
|
|
25936
|
-
if (!(pets !== null && pets !== void 0 && pets.lastVaccineDate)) missingFields.push("LAST_VACCINE_DATE");
|
|
25937
|
-
if (!(pets !== null && pets !== void 0 && pets.vaccinationNumber)) missingFields.push("VACCINATION_NUMBER");
|
|
25938
|
-
return {
|
|
25939
|
-
missingFields,
|
|
25940
|
-
notFormattedFields
|
|
25941
|
-
};
|
|
26151
|
+
return;
|
|
25942
26152
|
}
|
|
25943
26153
|
function onGoBack(data) {
|
|
25944
26154
|
onBackClick(config.key, data);
|
|
25945
26155
|
}
|
|
25946
|
-
const onFormValueChange = (setValue = true, data) => {
|
|
25947
|
-
console.log("onFormValueChange data in AdministrativeDetails: ", data, "\n Bool: ", !lodash.isEqual(data, currentStepData));
|
|
25948
|
-
if (!lodash.isEqual(data, currentStepData)) {
|
|
25949
|
-
dispatch(UPDATE_ADSNewApplication_FORM(config.key, data));
|
|
25950
|
-
}
|
|
25951
|
-
};
|
|
25952
26156
|
const closeToast = () => {
|
|
25953
26157
|
setShowToast(false);
|
|
25954
26158
|
setError("");
|
|
25955
26159
|
};
|
|
25956
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
25957
|
-
|
|
25958
|
-
|
|
25959
|
-
|
|
25960
|
-
|
|
25961
|
-
label: t(`${config.texts.submitBarLabel}`),
|
|
25962
|
-
currentStep: config.currStepNumber,
|
|
25963
|
-
onBackClick: onGoBack
|
|
26160
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ADSCitizenSecond, {
|
|
26161
|
+
onGoBack: onGoBack,
|
|
26162
|
+
goNext: goNext,
|
|
26163
|
+
currentStepData: currentStepData,
|
|
26164
|
+
t: t
|
|
25964
26165
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
25965
26166
|
isDleteBtn: true,
|
|
25966
26167
|
error: true,
|
|
@@ -26075,420 +26276,6 @@ const NewADSStepFormFour = ({
|
|
|
26075
26276
|
}));
|
|
26076
26277
|
};
|
|
26077
26278
|
|
|
26078
|
-
const ADSCitizenDetailsNew = ({
|
|
26079
|
-
t,
|
|
26080
|
-
config,
|
|
26081
|
-
onSelect,
|
|
26082
|
-
userType,
|
|
26083
|
-
formData,
|
|
26084
|
-
ownerIndex
|
|
26085
|
-
}) => {
|
|
26086
|
-
var _formData$ownerss, _formData$ownerss2, _formData$ownerss3, _formData$ownerss4, _formData$ownerss5, _formData$ownerss6;
|
|
26087
|
-
const {
|
|
26088
|
-
pathname: url
|
|
26089
|
-
} = useLocation();
|
|
26090
|
-
let index = 0;
|
|
26091
|
-
let validation = {};
|
|
26092
|
-
const [firstName, setFirstName] = 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) || "");
|
|
26093
|
-
const [lastName, setLastName] = 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) || "");
|
|
26094
|
-
const [address, setAddress] = 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) || "");
|
|
26095
|
-
const [emailId, setEmail] = 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) || "");
|
|
26096
|
-
const [mobileNumber, setMobileNumber] = 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) || "");
|
|
26097
|
-
const [fatherName, setFatherOrHusbandName] = 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) || "");
|
|
26098
|
-
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
26099
|
-
const stateId = Digit.ULBService.getStateId();
|
|
26100
|
-
function setOwnerFirstName(e) {
|
|
26101
|
-
console.log("e", e.target.value);
|
|
26102
|
-
setFirstName(e.target.value);
|
|
26103
|
-
}
|
|
26104
|
-
function setOwnerAddress(e) {
|
|
26105
|
-
setAddress(e.target.value);
|
|
26106
|
-
}
|
|
26107
|
-
function setOwnerLastName(e) {
|
|
26108
|
-
setLastName(e.target.value);
|
|
26109
|
-
}
|
|
26110
|
-
function setOwnerEmail(e) {
|
|
26111
|
-
setEmail(e.target.value);
|
|
26112
|
-
}
|
|
26113
|
-
function setMobileNo(e) {
|
|
26114
|
-
setMobileNumber(e.target.value);
|
|
26115
|
-
}
|
|
26116
|
-
function setGuardiansName(e) {
|
|
26117
|
-
setFatherOrHusbandName(e.target.value);
|
|
26118
|
-
}
|
|
26119
|
-
const goNext = () => {
|
|
26120
|
-
console.log("GoNext Called", formData);
|
|
26121
|
-
let owner = formData.ownerss && formData.ownerss[index];
|
|
26122
|
-
let ownerStep;
|
|
26123
|
-
if (userType === "citizen") {
|
|
26124
|
-
ownerStep = {
|
|
26125
|
-
...owner,
|
|
26126
|
-
mobileNumber,
|
|
26127
|
-
fatherName,
|
|
26128
|
-
emailId,
|
|
26129
|
-
firstName,
|
|
26130
|
-
lastName,
|
|
26131
|
-
address
|
|
26132
|
-
};
|
|
26133
|
-
onSelect(config.key, {
|
|
26134
|
-
...formData[config.key],
|
|
26135
|
-
...ownerStep
|
|
26136
|
-
}, false, index);
|
|
26137
|
-
} else {
|
|
26138
|
-
ownerStep = {
|
|
26139
|
-
...owner,
|
|
26140
|
-
mobileNumber,
|
|
26141
|
-
fatherName,
|
|
26142
|
-
emailId,
|
|
26143
|
-
firstName,
|
|
26144
|
-
lastName,
|
|
26145
|
-
address
|
|
26146
|
-
};
|
|
26147
|
-
onSelect(config.key, ownerStep, false, index);
|
|
26148
|
-
}
|
|
26149
|
-
};
|
|
26150
|
-
const onSkip = () => onSelect();
|
|
26151
|
-
useEffect(() => {
|
|
26152
|
-
console.log("useEffect called in PTRCitizenDetails", formData, userType);
|
|
26153
|
-
goNext();
|
|
26154
|
-
}, [mobileNumber, fatherName, emailId, firstName, lastName, address]);
|
|
26155
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormStep, {
|
|
26156
|
-
config: config,
|
|
26157
|
-
onSelect: goNext,
|
|
26158
|
-
onSkip: onSkip,
|
|
26159
|
-
t: t,
|
|
26160
|
-
isDisabled: !mobileNumber || !fatherName || !emailId || !firstName || !lastName || !address
|
|
26161
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("NDC_FIRST_NAME")}`), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
26162
|
-
t: t,
|
|
26163
|
-
type: "text",
|
|
26164
|
-
isMandatory: false,
|
|
26165
|
-
optionKey: "i18nKey",
|
|
26166
|
-
name: "firstName",
|
|
26167
|
-
value: firstName,
|
|
26168
|
-
onChange: setOwnerFirstName,
|
|
26169
|
-
ValidationRequired: true
|
|
26170
|
-
}, validation = {
|
|
26171
|
-
isRequired: true,
|
|
26172
|
-
pattern: "^[a-zA-Z ]+$",
|
|
26173
|
-
type: "tel",
|
|
26174
|
-
title: t("PT_NAME_ERROR_MESSAGE")
|
|
26175
|
-
})), /*#__PURE__*/React.createElement(CardLabel, null, `${t("NDC_LAST_NAME")}`), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
26176
|
-
t: t,
|
|
26177
|
-
type: "text",
|
|
26178
|
-
isMandatory: false,
|
|
26179
|
-
optionKey: "i18nKey",
|
|
26180
|
-
name: "lastName",
|
|
26181
|
-
value: lastName,
|
|
26182
|
-
onChange: setOwnerLastName,
|
|
26183
|
-
ValidationRequired: true
|
|
26184
|
-
}, validation = {
|
|
26185
|
-
isRequired: true,
|
|
26186
|
-
pattern: "^[a-zA-Z ]+$",
|
|
26187
|
-
type: "tel",
|
|
26188
|
-
title: t("PT_NAME_ERROR_MESSAGE")
|
|
26189
|
-
})), /*#__PURE__*/React.createElement(CardLabel, null, `${t("NOC_APPLICANT_EMAIL_LABEL")}`), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
26190
|
-
t: t,
|
|
26191
|
-
type: "text",
|
|
26192
|
-
isMandatory: true,
|
|
26193
|
-
optionKey: "i18nKey",
|
|
26194
|
-
name: "emailId",
|
|
26195
|
-
value: emailId,
|
|
26196
|
-
onChange: setOwnerEmail,
|
|
26197
|
-
ValidationRequired: true
|
|
26198
|
-
}, validation = {
|
|
26199
|
-
isRequired: true,
|
|
26200
|
-
pattern: "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
|
|
26201
|
-
type: "text",
|
|
26202
|
-
title: t("PTR_NAME_ERROR_MESSAGE")
|
|
26203
|
-
})), /*#__PURE__*/React.createElement(CardLabel, null, `${t("NOC_APPLICANT_MOBILE_NO_LABEL")}`), /*#__PURE__*/React.createElement(MobileNumber, Object.assign({
|
|
26204
|
-
value: mobileNumber,
|
|
26205
|
-
name: "mobileNumber",
|
|
26206
|
-
onChange: value => setMobileNo({
|
|
26207
|
-
target: {
|
|
26208
|
-
value
|
|
26209
|
-
}
|
|
26210
|
-
})
|
|
26211
|
-
}, {
|
|
26212
|
-
required: true,
|
|
26213
|
-
pattern: "[6-9]{1}[0-9]{9}",
|
|
26214
|
-
type: "tel",
|
|
26215
|
-
title: t("CORE_COMMON_APPLICANT_MOBILE_NUMBER_INVALID")
|
|
26216
|
-
})), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_FATHER_HUSBAND")}`), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
26217
|
-
t: t,
|
|
26218
|
-
type: "text",
|
|
26219
|
-
isMandatory: false,
|
|
26220
|
-
optionKey: "i18nKey",
|
|
26221
|
-
name: "fatherName",
|
|
26222
|
-
value: fatherName,
|
|
26223
|
-
onChange: setGuardiansName,
|
|
26224
|
-
ValidationRequired: true
|
|
26225
|
-
}, validation = {
|
|
26226
|
-
isRequired: true,
|
|
26227
|
-
pattern: "^[a-zA-Z ]+$",
|
|
26228
|
-
type: "tel",
|
|
26229
|
-
title: t("PTR_NAME_ERROR_MESSAGE")
|
|
26230
|
-
})), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_COMMON_COL_ADDRESS")}`), /*#__PURE__*/React.createElement(TextArea, Object.assign({
|
|
26231
|
-
t: t,
|
|
26232
|
-
type: "text",
|
|
26233
|
-
isMandatory: false,
|
|
26234
|
-
optionKey: "i18nKey",
|
|
26235
|
-
name: "address",
|
|
26236
|
-
value: address,
|
|
26237
|
-
onChange: setOwnerAddress,
|
|
26238
|
-
ValidationRequired: true
|
|
26239
|
-
}, validation = {
|
|
26240
|
-
isRequired: true,
|
|
26241
|
-
type: "text",
|
|
26242
|
-
title: t("PT_ADDRESS_ERROR_MESSAGE")
|
|
26243
|
-
})))));
|
|
26244
|
-
};
|
|
26245
|
-
|
|
26246
|
-
const ADSCitizenSecond = ({
|
|
26247
|
-
t,
|
|
26248
|
-
config,
|
|
26249
|
-
onSelect,
|
|
26250
|
-
userType,
|
|
26251
|
-
formData,
|
|
26252
|
-
ownerIndex
|
|
26253
|
-
}) => {
|
|
26254
|
-
var _formData$pets, _formData$pets2, _formData$pets3, _formData$pets4, _formData$pets5, _formData$pets6, _formData$pets7, _formData$pets8, _formData$pets9, _formData$pets0;
|
|
26255
|
-
const {
|
|
26256
|
-
pathname: url
|
|
26257
|
-
} = useLocation();
|
|
26258
|
-
let index = window.location.href.charAt(window.location.href.length - 1);
|
|
26259
|
-
let validation = {};
|
|
26260
|
-
const [petType, setPetType] = 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) || "");
|
|
26261
|
-
const [breedType, setBreedType] = 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) || "");
|
|
26262
|
-
const [petGender, setPetGender] = 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) || "");
|
|
26263
|
-
const [petName, setPetName] = 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) || "");
|
|
26264
|
-
const [petAge, setPetAge] = 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) || "");
|
|
26265
|
-
const [doctorName, setDoctorName] = 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) || "");
|
|
26266
|
-
const [clinicName, setClinicName] = 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) || "");
|
|
26267
|
-
const [vaccinationNumber, setVaccinationNumber] = 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) || "");
|
|
26268
|
-
const [lastVaccineDate, setVaccinationDate] = 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) || "");
|
|
26269
|
-
const [color, setColor] = 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) || "");
|
|
26270
|
-
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
26271
|
-
const stateId = Digit.ULBService.getStateId();
|
|
26272
|
-
const Menu = [{
|
|
26273
|
-
code: "DOG",
|
|
26274
|
-
i18nKey: "Dog"
|
|
26275
|
-
}, {
|
|
26276
|
-
code: "CAT",
|
|
26277
|
-
i18nKey: "Cat"
|
|
26278
|
-
}, {
|
|
26279
|
-
code: "BIRD",
|
|
26280
|
-
i18nKey: "Bird"
|
|
26281
|
-
}];
|
|
26282
|
-
const Breed_Type = [{
|
|
26283
|
-
code: "LABRADOR",
|
|
26284
|
-
name: "Labrador",
|
|
26285
|
-
PetType: "DOG"
|
|
26286
|
-
}, {
|
|
26287
|
-
code: "PERSIAN",
|
|
26288
|
-
name: "Persian",
|
|
26289
|
-
PetType: "CAT"
|
|
26290
|
-
}, {
|
|
26291
|
-
code: "PARROT",
|
|
26292
|
-
name: "Parrot",
|
|
26293
|
-
PetType: "BIRD"
|
|
26294
|
-
}];
|
|
26295
|
-
let menu = [];
|
|
26296
|
-
let breed_type = [];
|
|
26297
|
-
Menu && Menu.map(petone => {
|
|
26298
|
-
menu.push({
|
|
26299
|
-
i18nKey: `PTR_PET_${petone.code}`,
|
|
26300
|
-
code: `${petone.code}`,
|
|
26301
|
-
value: `${petone.name}`
|
|
26302
|
-
});
|
|
26303
|
-
});
|
|
26304
|
-
const {
|
|
26305
|
-
control
|
|
26306
|
-
} = useForm();
|
|
26307
|
-
Breed_Type && Breed_Type.map(breedss => {
|
|
26308
|
-
if (breedss.PetType == (petType === null || petType === void 0 ? void 0 : petType.code)) {
|
|
26309
|
-
breed_type.push({
|
|
26310
|
-
i18nKey: `PTR_BREED_TYPE_${breedss.code}`,
|
|
26311
|
-
code: `${breedss.code}`,
|
|
26312
|
-
value: `${breedss.name}`
|
|
26313
|
-
});
|
|
26314
|
-
}
|
|
26315
|
-
});
|
|
26316
|
-
const {
|
|
26317
|
-
data: Pet_Sex
|
|
26318
|
-
} = Digit.Hooks.ptr.usePTRGenderMDMS(stateId, "common-masters", "GenderType");
|
|
26319
|
-
let pet_sex = [];
|
|
26320
|
-
Pet_Sex && Pet_Sex.map(ptrgenders => {
|
|
26321
|
-
if (ptrgenders.code !== "TRANSGENDER") pet_sex.push({
|
|
26322
|
-
i18nKey: `PTR_GENDER_${ptrgenders.code}`,
|
|
26323
|
-
code: `${ptrgenders.code}`,
|
|
26324
|
-
name: `${ptrgenders.code}`
|
|
26325
|
-
});
|
|
26326
|
-
});
|
|
26327
|
-
console.log("petFormData", formData);
|
|
26328
|
-
function setColorName(e) {
|
|
26329
|
-
setColor(e.target.value);
|
|
26330
|
-
}
|
|
26331
|
-
function setvaccinationdate(e) {
|
|
26332
|
-
setVaccinationDate(e.target.value);
|
|
26333
|
-
}
|
|
26334
|
-
function setvaccinationnumber(e) {
|
|
26335
|
-
setVaccinationNumber(e.target.value);
|
|
26336
|
-
}
|
|
26337
|
-
function setpetname(e) {
|
|
26338
|
-
setPetName(e.target.value);
|
|
26339
|
-
}
|
|
26340
|
-
const goNext = () => {
|
|
26341
|
-
let owner = formData.pets && formData.pets[index];
|
|
26342
|
-
let ownerStep;
|
|
26343
|
-
if (userType === "citizen") {
|
|
26344
|
-
ownerStep = {
|
|
26345
|
-
...owner,
|
|
26346
|
-
petType,
|
|
26347
|
-
breedType,
|
|
26348
|
-
petGender,
|
|
26349
|
-
petName,
|
|
26350
|
-
color,
|
|
26351
|
-
lastVaccineDate,
|
|
26352
|
-
vaccinationNumber
|
|
26353
|
-
};
|
|
26354
|
-
onSelect(config.key, {
|
|
26355
|
-
...formData[config.key],
|
|
26356
|
-
...ownerStep
|
|
26357
|
-
}, false, index);
|
|
26358
|
-
} else {
|
|
26359
|
-
ownerStep = {
|
|
26360
|
-
...owner,
|
|
26361
|
-
petType,
|
|
26362
|
-
breedType,
|
|
26363
|
-
petGender,
|
|
26364
|
-
petName,
|
|
26365
|
-
color,
|
|
26366
|
-
lastVaccineDate,
|
|
26367
|
-
vaccinationNumber
|
|
26368
|
-
};
|
|
26369
|
-
onSelect(config.key, ownerStep, false, index);
|
|
26370
|
-
}
|
|
26371
|
-
};
|
|
26372
|
-
const onSkip = () => onSelect();
|
|
26373
|
-
useEffect(() => {
|
|
26374
|
-
goNext();
|
|
26375
|
-
}, [petType, breedType, petGender, petName, lastVaccineDate, color, vaccinationNumber]);
|
|
26376
|
-
console.log("ADSCitizenSecond formData", !petType || !breedType || !petGender || !petName || !color || !lastVaccineDate || !vaccinationNumber);
|
|
26377
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormStep, {
|
|
26378
|
-
config: config,
|
|
26379
|
-
onSelect: goNext,
|
|
26380
|
-
onSkip: onSkip,
|
|
26381
|
-
t: t,
|
|
26382
|
-
isDisabled: !petType || !breedType || !petGender || !petName || !color || !lastVaccineDate || !vaccinationNumber
|
|
26383
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PTR_PET_NAME")}`), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
26384
|
-
t: t,
|
|
26385
|
-
type: "text",
|
|
26386
|
-
isMandatory: false,
|
|
26387
|
-
optionKey: "i18nKey",
|
|
26388
|
-
name: "petName",
|
|
26389
|
-
value: petName,
|
|
26390
|
-
onChange: setpetname,
|
|
26391
|
-
style: {
|
|
26392
|
-
width: "86%"
|
|
26393
|
-
},
|
|
26394
|
-
ValidationRequired: false
|
|
26395
|
-
}, validation = {
|
|
26396
|
-
isRequired: true,
|
|
26397
|
-
pattern: "^[a-zA-Z-.`' ]*$",
|
|
26398
|
-
type: "text",
|
|
26399
|
-
title: t("PT_NAME_ERROR_MESSAGE")
|
|
26400
|
-
})), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PTR_SEARCH_PET_TYPE")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
26401
|
-
control: control,
|
|
26402
|
-
name: "petType",
|
|
26403
|
-
defaultValue: petType,
|
|
26404
|
-
rules: {
|
|
26405
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG")
|
|
26406
|
-
},
|
|
26407
|
-
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
26408
|
-
className: "form-field",
|
|
26409
|
-
selected: petType,
|
|
26410
|
-
select: setPetType,
|
|
26411
|
-
option: menu,
|
|
26412
|
-
optionKey: "i18nKey",
|
|
26413
|
-
t: t
|
|
26414
|
-
})
|
|
26415
|
-
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PTR_SEARCH_BREED_TYPE")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
26416
|
-
control: control,
|
|
26417
|
-
name: "breedType",
|
|
26418
|
-
defaultValue: breedType,
|
|
26419
|
-
rules: {
|
|
26420
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG")
|
|
26421
|
-
},
|
|
26422
|
-
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
26423
|
-
className: "form-field",
|
|
26424
|
-
selected: breedType,
|
|
26425
|
-
select: setBreedType,
|
|
26426
|
-
option: breed_type,
|
|
26427
|
-
optionKey: "i18nKey",
|
|
26428
|
-
t: t
|
|
26429
|
-
})
|
|
26430
|
-
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PTR_PET_GENDER")}`), /*#__PURE__*/React.createElement(Controller, {
|
|
26431
|
-
control: control,
|
|
26432
|
-
name: "petGender",
|
|
26433
|
-
defaultValue: petGender,
|
|
26434
|
-
rules: {
|
|
26435
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG")
|
|
26436
|
-
},
|
|
26437
|
-
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
26438
|
-
className: "form-field",
|
|
26439
|
-
selected: petGender,
|
|
26440
|
-
select: setPetGender,
|
|
26441
|
-
option: pet_sex,
|
|
26442
|
-
optionKey: "i18nKey",
|
|
26443
|
-
t: t
|
|
26444
|
-
})
|
|
26445
|
-
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PTR_COLOR")}`), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
26446
|
-
t: t,
|
|
26447
|
-
type: "text",
|
|
26448
|
-
isMandatory: false,
|
|
26449
|
-
optionKey: "i18nKey",
|
|
26450
|
-
name: "color",
|
|
26451
|
-
value: color,
|
|
26452
|
-
onChange: setColorName,
|
|
26453
|
-
style: {
|
|
26454
|
-
width: "86%"
|
|
26455
|
-
},
|
|
26456
|
-
ValidationRequired: false
|
|
26457
|
-
}, validation = {
|
|
26458
|
-
isRequired: true,
|
|
26459
|
-
pattern: "^[a-zA-Z-.`' ]*$",
|
|
26460
|
-
type: "text",
|
|
26461
|
-
title: t("PT_NAME_ERROR_MESSAGE")
|
|
26462
|
-
})), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PTR_VACCINATED_DATE")}`), /*#__PURE__*/React.createElement(TextInput, {
|
|
26463
|
-
t: t,
|
|
26464
|
-
type: "date",
|
|
26465
|
-
isMandatory: false,
|
|
26466
|
-
optionKey: "i18nKey",
|
|
26467
|
-
name: "lastVaccineDate",
|
|
26468
|
-
value: lastVaccineDate,
|
|
26469
|
-
onChange: setvaccinationdate,
|
|
26470
|
-
style: {
|
|
26471
|
-
width: "86%"
|
|
26472
|
-
},
|
|
26473
|
-
max: new Date().toISOString().split("T")[0],
|
|
26474
|
-
rules: {
|
|
26475
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG"),
|
|
26476
|
-
validDate: val => /^\d{4}-\d{2}-\d{2}$/.test(val) ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
26477
|
-
}
|
|
26478
|
-
}), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PTR_VACCINATION_NUMBER")}`), /*#__PURE__*/React.createElement(TextInput, {
|
|
26479
|
-
t: t,
|
|
26480
|
-
type: "text",
|
|
26481
|
-
isMandatory: false,
|
|
26482
|
-
optionKey: "i18nKey",
|
|
26483
|
-
name: "vaccinationNumber",
|
|
26484
|
-
value: vaccinationNumber,
|
|
26485
|
-
onChange: setvaccinationnumber,
|
|
26486
|
-
style: {
|
|
26487
|
-
width: "86%"
|
|
26488
|
-
}
|
|
26489
|
-
}))));
|
|
26490
|
-
};
|
|
26491
|
-
|
|
26492
26279
|
const ADSSelectProofIdentity = ({
|
|
26493
26280
|
t,
|
|
26494
26281
|
config,
|