@mseva/digit-ui-module-ptr 1.0.42 → 1.0.44
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 +343 -598
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +340 -598
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6675,291 +6675,133 @@ const OwnerForm$1 = _props => {
|
|
|
6675
6675
|
}));
|
|
6676
6676
|
};
|
|
6677
6677
|
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
break;
|
|
6684
|
-
default:
|
|
6685
|
-
actions = ["ES_TITILE_OWNER_DETAILS", "ES_TITILE_PET_DETAILS", "PTR_LOCATION_DETAILS", "ES_TITILE_DOCUMENT_DETAILS", "PTR_SUMMARY"];
|
|
6686
|
-
}
|
|
6687
|
-
};
|
|
6688
|
-
const Timeline = _ref => {
|
|
6689
|
-
let {
|
|
6690
|
-
currentStep = 1,
|
|
6691
|
-
flow = ""
|
|
6692
|
-
} = _ref;
|
|
6693
|
-
const {
|
|
6694
|
-
t
|
|
6695
|
-
} = reactI18next.useTranslation();
|
|
6696
|
-
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
6697
|
-
getAction(flow);
|
|
6698
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
6699
|
-
className: "timeline-container",
|
|
6700
|
-
style: isMobile ? {} : {
|
|
6701
|
-
maxWidth: "960px",
|
|
6702
|
-
minWidth: "640px",
|
|
6703
|
-
marginRight: "auto"
|
|
6704
|
-
}
|
|
6705
|
-
}, actions.map((action, index, arr) => /*#__PURE__*/React__default.createElement("div", {
|
|
6706
|
-
className: "timeline-checkpoint",
|
|
6707
|
-
key: index
|
|
6708
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6709
|
-
className: "timeline-content"
|
|
6710
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
6711
|
-
className: `circle ${index <= currentStep - 1 && "active"}`
|
|
6712
|
-
}, index < currentStep - 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.TickMark, null) : index + 1), /*#__PURE__*/React__default.createElement("span", {
|
|
6713
|
-
className: "secondary-color"
|
|
6714
|
-
}, t(action))), index < arr.length - 1 && /*#__PURE__*/React__default.createElement("span", {
|
|
6715
|
-
className: `line ${index < currentStep - 1 && "active"}`
|
|
6716
|
-
}))));
|
|
6717
|
-
};
|
|
6718
|
-
|
|
6678
|
+
const Breed_Type = [{
|
|
6679
|
+
i18nKey: `PTR_GENDER`,
|
|
6680
|
+
code: `123`,
|
|
6681
|
+
name: `test`
|
|
6682
|
+
}];
|
|
6719
6683
|
const PTRCitizenPet = _ref => {
|
|
6720
|
-
var _formData$pets, _formData$pets2, _formData$pets3, _formData$pets4, _formData$pets5, _formData$pets6, _formData$pets7, _formData$pets8, _formData$pets9, _formData$pets0;
|
|
6721
6684
|
let {
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
formData,
|
|
6727
|
-
ownerIndex
|
|
6685
|
+
onGoBack,
|
|
6686
|
+
goNext,
|
|
6687
|
+
currentStepData,
|
|
6688
|
+
t
|
|
6728
6689
|
} = _ref;
|
|
6729
|
-
const {
|
|
6730
|
-
pathname: url
|
|
6731
|
-
} = reactRouterDom.useLocation();
|
|
6732
|
-
let index = window.location.href.charAt(window.location.href.length - 1);
|
|
6733
|
-
let validation = {};
|
|
6734
|
-
const [petType, setPetType] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].petType || (formData === null || formData === void 0 ? void 0 : (_formData$pets = formData.pets) === null || _formData$pets === void 0 ? void 0 : _formData$pets.petType) || "");
|
|
6735
|
-
const [breedType, setBreedType] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].breedType || (formData === null || formData === void 0 ? void 0 : (_formData$pets2 = formData.pets) === null || _formData$pets2 === void 0 ? void 0 : _formData$pets2.breedType) || "");
|
|
6736
|
-
const [petGender, setPetGender] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].petGender || (formData === null || formData === void 0 ? void 0 : (_formData$pets3 = formData.pets) === null || _formData$pets3 === void 0 ? void 0 : _formData$pets3.petGender) || "");
|
|
6737
|
-
const [petName, setPetName] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].petName || (formData === null || formData === void 0 ? void 0 : (_formData$pets4 = formData.pets) === null || _formData$pets4 === void 0 ? void 0 : _formData$pets4.petName) || "");
|
|
6738
|
-
const [petAge, setPetAge] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].petAge || (formData === null || formData === void 0 ? void 0 : (_formData$pets5 = formData.pets) === null || _formData$pets5 === void 0 ? void 0 : _formData$pets5.petAge) || "");
|
|
6739
|
-
const [doctorName, setDoctorName] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].doctorName || (formData === null || formData === void 0 ? void 0 : (_formData$pets6 = formData.pets) === null || _formData$pets6 === void 0 ? void 0 : _formData$pets6.doctorName) || "");
|
|
6740
|
-
const [clinicName, setClinicName] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].clinicName || (formData === null || formData === void 0 ? void 0 : (_formData$pets7 = formData.pets) === null || _formData$pets7 === void 0 ? void 0 : _formData$pets7.clinicName) || "");
|
|
6741
|
-
const [vaccinationNumber, setVaccinationNumber] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].vaccinationNumber || (formData === null || formData === void 0 ? void 0 : (_formData$pets8 = formData.pets) === null || _formData$pets8 === void 0 ? void 0 : _formData$pets8.vaccinationNumber) || "");
|
|
6742
|
-
const [lastVaccineDate, setVaccinationDate] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].lastVaccineDate || (formData === null || formData === void 0 ? void 0 : (_formData$pets9 = formData.pets) === null || _formData$pets9 === void 0 ? void 0 : _formData$pets9.lastVaccineDate) || "");
|
|
6743
|
-
const [color, setColor] = React.useState(formData.pets && formData.pets[index] && formData.pets[index].color || (formData === null || formData === void 0 ? void 0 : (_formData$pets0 = formData.pets) === null || _formData$pets0 === void 0 ? void 0 : _formData$pets0.color) || "");
|
|
6744
6690
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
6745
6691
|
const stateId = Digit.ULBService.getStateId();
|
|
6746
|
-
const Menu = [{
|
|
6747
|
-
code: "DOG",
|
|
6748
|
-
i18nKey: "Dog"
|
|
6749
|
-
}, {
|
|
6750
|
-
code: "CAT",
|
|
6751
|
-
i18nKey: "Cat"
|
|
6752
|
-
}, {
|
|
6753
|
-
code: "BIRD",
|
|
6754
|
-
i18nKey: "Bird"
|
|
6755
|
-
}];
|
|
6756
|
-
const Breed_Type = [{
|
|
6757
|
-
code: "LABRADOR",
|
|
6758
|
-
name: "Labrador",
|
|
6759
|
-
PetType: "DOG"
|
|
6760
|
-
}, {
|
|
6761
|
-
code: "PERSIAN",
|
|
6762
|
-
name: "Persian",
|
|
6763
|
-
PetType: "CAT"
|
|
6764
|
-
}, {
|
|
6765
|
-
code: "PARROT",
|
|
6766
|
-
name: "Parrot",
|
|
6767
|
-
PetType: "BIRD"
|
|
6768
|
-
}];
|
|
6769
|
-
let menu = [];
|
|
6770
|
-
let breed_type = [];
|
|
6771
|
-
Menu && Menu.map(petone => {
|
|
6772
|
-
menu.push({
|
|
6773
|
-
i18nKey: `PTR_PET_${petone.code}`,
|
|
6774
|
-
code: `${petone.code}`,
|
|
6775
|
-
value: `${petone.name}`
|
|
6776
|
-
});
|
|
6777
|
-
});
|
|
6778
6692
|
const {
|
|
6779
|
-
control
|
|
6693
|
+
control,
|
|
6694
|
+
handleSubmit,
|
|
6695
|
+
setValue
|
|
6780
6696
|
} = reactHookForm.useForm();
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
i18nKey: `PTR_BREED_TYPE_${breedss.code}`,
|
|
6785
|
-
code: `${breedss.code}`,
|
|
6786
|
-
value: `${breedss.name}`
|
|
6787
|
-
});
|
|
6788
|
-
}
|
|
6789
|
-
});
|
|
6790
|
-
const {
|
|
6791
|
-
data: Pet_Sex
|
|
6792
|
-
} = Digit.Hooks.ptr.usePTRGenderMDMS(stateId, "common-masters", "GenderType");
|
|
6793
|
-
let pet_sex = [];
|
|
6794
|
-
Pet_Sex && Pet_Sex.map(ptrgenders => {
|
|
6795
|
-
if (ptrgenders.code !== "TRANSGENDER") pet_sex.push({
|
|
6796
|
-
i18nKey: `PTR_GENDER_${ptrgenders.code}`,
|
|
6797
|
-
code: `${ptrgenders.code}`,
|
|
6798
|
-
name: `${ptrgenders.code}`
|
|
6799
|
-
});
|
|
6800
|
-
});
|
|
6801
|
-
console.log("petFormData", formData);
|
|
6802
|
-
function setColorName(e) {
|
|
6803
|
-
setColor(e.target.value);
|
|
6804
|
-
}
|
|
6805
|
-
function setvaccinationdate(e) {
|
|
6806
|
-
setVaccinationDate(e.target.value);
|
|
6807
|
-
}
|
|
6808
|
-
function setvaccinationnumber(e) {
|
|
6809
|
-
setVaccinationNumber(e.target.value);
|
|
6810
|
-
}
|
|
6811
|
-
function setpetname(e) {
|
|
6812
|
-
setPetName(e.target.value);
|
|
6813
|
-
}
|
|
6814
|
-
const goNext = () => {
|
|
6815
|
-
let owner = formData.pets && formData.pets[index];
|
|
6816
|
-
let ownerStep;
|
|
6817
|
-
if (userType === "citizen") {
|
|
6818
|
-
ownerStep = {
|
|
6819
|
-
...owner,
|
|
6820
|
-
petType,
|
|
6821
|
-
breedType,
|
|
6822
|
-
petGender,
|
|
6823
|
-
petName,
|
|
6824
|
-
color,
|
|
6825
|
-
lastVaccineDate,
|
|
6826
|
-
vaccinationNumber
|
|
6827
|
-
};
|
|
6828
|
-
onSelect(config.key, {
|
|
6829
|
-
...formData[config.key],
|
|
6830
|
-
...ownerStep
|
|
6831
|
-
}, false, index);
|
|
6832
|
-
} else {
|
|
6833
|
-
ownerStep = {
|
|
6834
|
-
...owner,
|
|
6835
|
-
petType,
|
|
6836
|
-
breedType,
|
|
6837
|
-
petGender,
|
|
6838
|
-
petName,
|
|
6839
|
-
color,
|
|
6840
|
-
lastVaccineDate,
|
|
6841
|
-
vaccinationNumber
|
|
6842
|
-
};
|
|
6843
|
-
onSelect(config.key, ownerStep, false, index);
|
|
6844
|
-
}
|
|
6697
|
+
const onSubmit = data => {
|
|
6698
|
+
console.log("data in first step", data);
|
|
6699
|
+
goNext(data);
|
|
6845
6700
|
};
|
|
6846
|
-
const onSkip = () => onSelect();
|
|
6847
6701
|
React.useEffect(() => {
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
},
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6702
|
+
console.log("currentStepData", currentStepData);
|
|
6703
|
+
const formattedData = currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.petDetails;
|
|
6704
|
+
if (formattedData) {
|
|
6705
|
+
console.log("coming here", formattedData);
|
|
6706
|
+
Object.entries(formattedData).forEach(_ref2 => {
|
|
6707
|
+
let [key, value] = _ref2;
|
|
6708
|
+
setValue(key, value);
|
|
6709
|
+
});
|
|
6710
|
+
}
|
|
6711
|
+
}, [currentStepData, setValue]);
|
|
6712
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("form", {
|
|
6713
|
+
onSubmit: handleSubmit(onSubmit)
|
|
6714
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_PET_NAME")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
6715
|
+
control: control,
|
|
6862
6716
|
name: "petName",
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
title: t("PT_NAME_ERROR_MESSAGE")
|
|
6874
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_SEARCH_PET_TYPE")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
6717
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
6718
|
+
value: props.value,
|
|
6719
|
+
onChange: e => {
|
|
6720
|
+
props.onChange(e.target.value);
|
|
6721
|
+
},
|
|
6722
|
+
onBlur: e => {
|
|
6723
|
+
props.onBlur(e);
|
|
6724
|
+
}
|
|
6725
|
+
})
|
|
6726
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_SEARCH_PET_TYPE")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
6875
6727
|
control: control,
|
|
6876
6728
|
name: "petType",
|
|
6877
|
-
defaultValue: petType,
|
|
6878
|
-
rules: {
|
|
6879
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG")
|
|
6880
|
-
},
|
|
6881
6729
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
6882
6730
|
className: "form-field",
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
option:
|
|
6886
|
-
optionKey: "i18nKey"
|
|
6887
|
-
t: t
|
|
6731
|
+
select: props.onChange,
|
|
6732
|
+
selected: props.value,
|
|
6733
|
+
option: Breed_Type,
|
|
6734
|
+
optionKey: "i18nKey"
|
|
6888
6735
|
})
|
|
6889
6736
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_SEARCH_BREED_TYPE")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
6890
6737
|
control: control,
|
|
6891
6738
|
name: "breedType",
|
|
6892
|
-
defaultValue: breedType,
|
|
6893
|
-
rules: {
|
|
6894
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG")
|
|
6895
|
-
},
|
|
6896
6739
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
6897
6740
|
className: "form-field",
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
option:
|
|
6901
|
-
optionKey: "i18nKey"
|
|
6902
|
-
t: t
|
|
6741
|
+
select: props.onChange,
|
|
6742
|
+
selected: props.value,
|
|
6743
|
+
option: Breed_Type,
|
|
6744
|
+
optionKey: "i18nKey"
|
|
6903
6745
|
})
|
|
6904
6746
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_PET_GENDER")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
6905
6747
|
control: control,
|
|
6906
6748
|
name: "petGender",
|
|
6907
|
-
defaultValue: petGender,
|
|
6908
|
-
rules: {
|
|
6909
|
-
required: t("CORE_COMMON_REQUIRED_ERRMSG")
|
|
6910
|
-
},
|
|
6911
6749
|
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
6912
6750
|
className: "form-field",
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
option:
|
|
6916
|
-
optionKey: "i18nKey"
|
|
6917
|
-
t: t
|
|
6751
|
+
select: props.onChange,
|
|
6752
|
+
selected: props.value,
|
|
6753
|
+
option: Breed_Type,
|
|
6754
|
+
optionKey: "i18nKey"
|
|
6918
6755
|
})
|
|
6919
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_COLOR")}`), /*#__PURE__*/React__default.createElement(
|
|
6920
|
-
|
|
6921
|
-
type: "text",
|
|
6922
|
-
isMandatory: false,
|
|
6923
|
-
optionKey: "i18nKey",
|
|
6756
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_COLOR")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
6757
|
+
control: control,
|
|
6924
6758
|
name: "color",
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_VACCINATED_DATE")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
6937
|
-
t: t,
|
|
6938
|
-
type: "date",
|
|
6939
|
-
isMandatory: false,
|
|
6940
|
-
optionKey: "i18nKey",
|
|
6759
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
6760
|
+
value: props.value,
|
|
6761
|
+
onChange: e => {
|
|
6762
|
+
props.onChange(e.target.value);
|
|
6763
|
+
},
|
|
6764
|
+
onBlur: e => {
|
|
6765
|
+
props.onBlur(e);
|
|
6766
|
+
}
|
|
6767
|
+
})
|
|
6768
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_VACCINATED_DATE")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
6769
|
+
control: control,
|
|
6941
6770
|
name: "lastVaccineDate",
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
}
|
|
6952
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_VACCINATION_NUMBER")}`), /*#__PURE__*/React__default.createElement(
|
|
6953
|
-
|
|
6954
|
-
type: "text",
|
|
6955
|
-
isMandatory: false,
|
|
6956
|
-
optionKey: "i18nKey",
|
|
6771
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
6772
|
+
type: "date",
|
|
6773
|
+
value: props.value,
|
|
6774
|
+
onChange: e => {
|
|
6775
|
+
props.onChange(e.target.value);
|
|
6776
|
+
},
|
|
6777
|
+
onBlur: e => {
|
|
6778
|
+
props.onBlur(e);
|
|
6779
|
+
}
|
|
6780
|
+
})
|
|
6781
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PTR_VACCINATION_NUMBER")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
6782
|
+
control: control,
|
|
6957
6783
|
name: "vaccinationNumber",
|
|
6958
|
-
|
|
6959
|
-
|
|
6784
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
6785
|
+
value: props.value,
|
|
6786
|
+
onChange: e => {
|
|
6787
|
+
props.onChange(e.target.value);
|
|
6788
|
+
},
|
|
6789
|
+
onBlur: e => {
|
|
6790
|
+
props.onBlur(e);
|
|
6791
|
+
}
|
|
6792
|
+
})
|
|
6793
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
6960
6794
|
style: {
|
|
6961
|
-
|
|
6962
|
-
|
|
6795
|
+
background: " white",
|
|
6796
|
+
color: "black",
|
|
6797
|
+
border: "1px solid",
|
|
6798
|
+
marginRight: "10px"
|
|
6799
|
+
},
|
|
6800
|
+
label: "Back",
|
|
6801
|
+
onSubmit: onGoBack
|
|
6802
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
6803
|
+
label: "Next",
|
|
6804
|
+
submit: "submit"
|
|
6963
6805
|
}))));
|
|
6964
6806
|
};
|
|
6965
6807
|
|
|
@@ -7240,6 +7082,47 @@ function PTRSelectDocument(_ref2) {
|
|
|
7240
7082
|
}))));
|
|
7241
7083
|
}
|
|
7242
7084
|
|
|
7085
|
+
let actions = [];
|
|
7086
|
+
const getAction = flow => {
|
|
7087
|
+
switch (flow) {
|
|
7088
|
+
case "STAKEHOLDER":
|
|
7089
|
+
actions = [];
|
|
7090
|
+
break;
|
|
7091
|
+
default:
|
|
7092
|
+
actions = ["ES_TITILE_OWNER_DETAILS", "ES_TITILE_PET_DETAILS", "PTR_LOCATION_DETAILS", "ES_TITILE_DOCUMENT_DETAILS", "PTR_SUMMARY"];
|
|
7093
|
+
}
|
|
7094
|
+
};
|
|
7095
|
+
const Timeline = _ref => {
|
|
7096
|
+
let {
|
|
7097
|
+
currentStep = 1,
|
|
7098
|
+
flow = ""
|
|
7099
|
+
} = _ref;
|
|
7100
|
+
const {
|
|
7101
|
+
t
|
|
7102
|
+
} = reactI18next.useTranslation();
|
|
7103
|
+
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
7104
|
+
getAction(flow);
|
|
7105
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
7106
|
+
className: "timeline-container",
|
|
7107
|
+
style: isMobile ? {} : {
|
|
7108
|
+
maxWidth: "960px",
|
|
7109
|
+
minWidth: "640px",
|
|
7110
|
+
marginRight: "auto"
|
|
7111
|
+
}
|
|
7112
|
+
}, actions.map((action, index, arr) => /*#__PURE__*/React__default.createElement("div", {
|
|
7113
|
+
className: "timeline-checkpoint",
|
|
7114
|
+
key: index
|
|
7115
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
7116
|
+
className: "timeline-content"
|
|
7117
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
7118
|
+
className: `circle ${index <= currentStep - 1 && "active"}`
|
|
7119
|
+
}, index < currentStep - 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.TickMark, null) : index + 1), /*#__PURE__*/React__default.createElement("span", {
|
|
7120
|
+
className: "secondary-color"
|
|
7121
|
+
}, t(action))), index < arr.length - 1 && /*#__PURE__*/React__default.createElement("span", {
|
|
7122
|
+
className: `line ${index < currentStep - 1 && "active"}`
|
|
7123
|
+
}))));
|
|
7124
|
+
};
|
|
7125
|
+
|
|
7243
7126
|
const PTRSelectStreet = _ref => {
|
|
7244
7127
|
let {
|
|
7245
7128
|
t,
|
|
@@ -14064,170 +13947,114 @@ const PTRCreate = _ref => {
|
|
|
14064
13947
|
};
|
|
14065
13948
|
|
|
14066
13949
|
const PTRCitizenDetails = _ref => {
|
|
14067
|
-
var _formData$ownerss, _formData$ownerss2, _formData$ownerss3, _formData$ownerss4, _formData$ownerss5, _formData$ownerss6;
|
|
14068
13950
|
let {
|
|
14069
13951
|
t,
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
userType,
|
|
14073
|
-
formData,
|
|
14074
|
-
ownerIndex
|
|
13952
|
+
goNext,
|
|
13953
|
+
currentStepData
|
|
14075
13954
|
} = _ref;
|
|
14076
|
-
const {
|
|
14077
|
-
pathname: url
|
|
14078
|
-
} = reactRouterDom.useLocation();
|
|
14079
|
-
let index = 0;
|
|
14080
|
-
let validation = {};
|
|
14081
|
-
const [firstName, setFirstName] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].firstName || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss = formData.ownerss) === null || _formData$ownerss === void 0 ? void 0 : _formData$ownerss.firstName) || "");
|
|
14082
|
-
const [lastName, setLastName] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].lastName || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss2 = formData.ownerss) === null || _formData$ownerss2 === void 0 ? void 0 : _formData$ownerss2.lastName) || "");
|
|
14083
|
-
const [address, setAddress] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].address || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss3 = formData.ownerss) === null || _formData$ownerss3 === void 0 ? void 0 : _formData$ownerss3.address) || "");
|
|
14084
|
-
const [emailId, setEmail] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].emailId || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss4 = formData.ownerss) === null || _formData$ownerss4 === void 0 ? void 0 : _formData$ownerss4.emailId) || "");
|
|
14085
|
-
const [mobileNumber, setMobileNumber] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].mobileNumber || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss5 = formData.ownerss) === null || _formData$ownerss5 === void 0 ? void 0 : _formData$ownerss5.mobileNumber) || "");
|
|
14086
|
-
const [fatherName, setFatherOrHusbandName] = React.useState(formData.ownerss && formData.ownerss[index] && formData.ownerss[index].fatherName || (formData === null || formData === void 0 ? void 0 : (_formData$ownerss6 = formData.ownerss) === null || _formData$ownerss6 === void 0 ? void 0 : _formData$ownerss6.fatherName) || "");
|
|
14087
13955
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
14088
13956
|
const stateId = Digit.ULBService.getStateId();
|
|
14089
|
-
|
|
14090
|
-
|
|
14091
|
-
|
|
14092
|
-
|
|
14093
|
-
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
}
|
|
14098
|
-
function setOwnerEmail(e) {
|
|
14099
|
-
setEmail(e.target.value);
|
|
14100
|
-
}
|
|
14101
|
-
function setMobileNo(e) {
|
|
14102
|
-
setMobileNumber(e.target.value);
|
|
14103
|
-
}
|
|
14104
|
-
function setGuardiansName(e) {
|
|
14105
|
-
setFatherOrHusbandName(e.target.value);
|
|
14106
|
-
}
|
|
14107
|
-
const goNext = () => {
|
|
14108
|
-
console.log("GoNext Called", formData);
|
|
14109
|
-
let owner = formData.ownerss && formData.ownerss[index];
|
|
14110
|
-
let ownerStep;
|
|
14111
|
-
if (userType === "citizen") {
|
|
14112
|
-
ownerStep = {
|
|
14113
|
-
...owner,
|
|
14114
|
-
mobileNumber,
|
|
14115
|
-
fatherName,
|
|
14116
|
-
emailId,
|
|
14117
|
-
firstName,
|
|
14118
|
-
lastName,
|
|
14119
|
-
address
|
|
14120
|
-
};
|
|
14121
|
-
onSelect(config.key, {
|
|
14122
|
-
...formData[config.key],
|
|
14123
|
-
...ownerStep
|
|
14124
|
-
}, false, index);
|
|
14125
|
-
} else {
|
|
14126
|
-
ownerStep = {
|
|
14127
|
-
...owner,
|
|
14128
|
-
mobileNumber,
|
|
14129
|
-
fatherName,
|
|
14130
|
-
emailId,
|
|
14131
|
-
firstName,
|
|
14132
|
-
lastName,
|
|
14133
|
-
address
|
|
14134
|
-
};
|
|
14135
|
-
onSelect(config.key, ownerStep, false, index);
|
|
14136
|
-
}
|
|
13957
|
+
const {
|
|
13958
|
+
control,
|
|
13959
|
+
handleSubmit,
|
|
13960
|
+
setValue
|
|
13961
|
+
} = reactHookForm.useForm();
|
|
13962
|
+
const onSubmit = data => {
|
|
13963
|
+
console.log("data in first step", data);
|
|
13964
|
+
goNext(data);
|
|
14137
13965
|
};
|
|
14138
|
-
const onSkip = () => onSelect();
|
|
14139
13966
|
React.useEffect(() => {
|
|
14140
|
-
console.log("
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
},
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
13967
|
+
console.log("currentStepData", currentStepData);
|
|
13968
|
+
const formattedData = currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.ownerDetails;
|
|
13969
|
+
if (formattedData) {
|
|
13970
|
+
console.log("coming here", formattedData);
|
|
13971
|
+
Object.entries(formattedData).forEach(_ref2 => {
|
|
13972
|
+
let [key, value] = _ref2;
|
|
13973
|
+
setValue(key, value);
|
|
13974
|
+
});
|
|
13975
|
+
}
|
|
13976
|
+
}, [currentStepData, setValue]);
|
|
13977
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("form", {
|
|
13978
|
+
onSubmit: handleSubmit(onSubmit)
|
|
13979
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NDC_FIRST_NAME")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
13980
|
+
control: control,
|
|
14154
13981
|
name: "firstName",
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
optionKey: "i18nKey",
|
|
13982
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
13983
|
+
value: props.value,
|
|
13984
|
+
onChange: e => {
|
|
13985
|
+
props.onChange(e.target.value);
|
|
13986
|
+
},
|
|
13987
|
+
onBlur: e => {
|
|
13988
|
+
props.onBlur(e);
|
|
13989
|
+
},
|
|
13990
|
+
t: t
|
|
13991
|
+
})
|
|
13992
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NDC_LAST_NAME")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
13993
|
+
control: control,
|
|
14168
13994
|
name: "lastName",
|
|
14169
|
-
|
|
14170
|
-
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
|
|
14175
|
-
|
|
14176
|
-
|
|
14177
|
-
|
|
14178
|
-
|
|
14179
|
-
|
|
14180
|
-
|
|
14181
|
-
optionKey: "i18nKey",
|
|
13995
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
13996
|
+
value: props.value,
|
|
13997
|
+
onChange: e => {
|
|
13998
|
+
props.onChange(e.target.value);
|
|
13999
|
+
},
|
|
14000
|
+
onBlur: e => {
|
|
14001
|
+
props.onBlur(e);
|
|
14002
|
+
},
|
|
14003
|
+
t: t
|
|
14004
|
+
})
|
|
14005
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NOC_APPLICANT_EMAIL_LABEL")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
14006
|
+
control: control,
|
|
14182
14007
|
name: "emailId",
|
|
14183
|
-
|
|
14184
|
-
|
|
14185
|
-
|
|
14186
|
-
|
|
14187
|
-
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14008
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
14009
|
+
value: props.value,
|
|
14010
|
+
onChange: e => {
|
|
14011
|
+
props.onChange(e.target.value);
|
|
14012
|
+
},
|
|
14013
|
+
onBlur: e => {
|
|
14014
|
+
props.onBlur(e);
|
|
14015
|
+
},
|
|
14016
|
+
t: t
|
|
14017
|
+
})
|
|
14018
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("NOC_APPLICANT_MOBILE_NO_LABEL")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
14019
|
+
control: control,
|
|
14193
14020
|
name: "mobileNumber",
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
|
|
14197
|
-
|
|
14198
|
-
|
|
14199
|
-
|
|
14200
|
-
|
|
14201
|
-
|
|
14202
|
-
title: t("CORE_COMMON_APPLICANT_MOBILE_NUMBER_INVALID")
|
|
14203
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_FATHER_HUSBAND")}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, _extends({
|
|
14204
|
-
t: t,
|
|
14205
|
-
type: "text",
|
|
14206
|
-
isMandatory: false,
|
|
14207
|
-
optionKey: "i18nKey",
|
|
14021
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
|
|
14022
|
+
value: props.value,
|
|
14023
|
+
onChange: props.onChange,
|
|
14024
|
+
onBlur: props.onBlur,
|
|
14025
|
+
t: t
|
|
14026
|
+
})
|
|
14027
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_FATHER_HUSBAND")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
14028
|
+
control: control,
|
|
14208
14029
|
name: "fatherName",
|
|
14209
|
-
|
|
14210
|
-
|
|
14211
|
-
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
|
|
14216
|
-
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14220
|
-
|
|
14221
|
-
optionKey: "i18nKey",
|
|
14030
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
14031
|
+
value: props.value,
|
|
14032
|
+
onChange: e => {
|
|
14033
|
+
props.onChange(e.target.value);
|
|
14034
|
+
},
|
|
14035
|
+
onBlur: e => {
|
|
14036
|
+
props.onBlur(e);
|
|
14037
|
+
},
|
|
14038
|
+
t: t
|
|
14039
|
+
})
|
|
14040
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("PT_COMMON_COL_ADDRESS")}`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
14041
|
+
control: control,
|
|
14222
14042
|
name: "address",
|
|
14223
|
-
|
|
14224
|
-
|
|
14225
|
-
|
|
14226
|
-
|
|
14227
|
-
|
|
14228
|
-
|
|
14229
|
-
|
|
14230
|
-
|
|
14043
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextArea, {
|
|
14044
|
+
name: "address",
|
|
14045
|
+
value: props.value,
|
|
14046
|
+
onChange: e => {
|
|
14047
|
+
props.onChange(e.target.value);
|
|
14048
|
+
},
|
|
14049
|
+
onBlur: e => {
|
|
14050
|
+
props.onBlur(e);
|
|
14051
|
+
},
|
|
14052
|
+
t: t
|
|
14053
|
+
})
|
|
14054
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
14055
|
+
label: "Next",
|
|
14056
|
+
submit: "submit"
|
|
14057
|
+
}))));
|
|
14231
14058
|
};
|
|
14232
14059
|
|
|
14233
14060
|
const PTRCitizenAddress = _ref => {
|
|
@@ -19639,7 +19466,7 @@ const ActionModal$3 = _ref => {
|
|
|
19639
19466
|
var _applicationData, _applicationData$land, _applicationData$land2, _applicationData2, _applicationData2$lan, _applicationData2$lan2, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6;
|
|
19640
19467
|
const submit = function (data) {
|
|
19641
19468
|
try {
|
|
19642
|
-
var _applicationData3, _data$comments, _data$comments2, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$
|
|
19469
|
+
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;
|
|
19643
19470
|
let workflow = {
|
|
19644
19471
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
19645
19472
|
comments: data === null || data === void 0 ? void 0 : data.comments,
|
|
@@ -19659,8 +19486,8 @@ const ActionModal$3 = _ref => {
|
|
|
19659
19486
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
19660
19487
|
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,
|
|
19661
19488
|
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,
|
|
19662
|
-
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$
|
|
19663
|
-
assignes: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
19489
|
+
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],
|
|
19490
|
+
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],
|
|
19664
19491
|
varificationDocuments: uploadedFile ? [{
|
|
19665
19492
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
19666
19493
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -19669,7 +19496,7 @@ const ActionModal$3 = _ref => {
|
|
|
19669
19496
|
},
|
|
19670
19497
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
19671
19498
|
comment: data === null || data === void 0 ? void 0 : data.comments,
|
|
19672
|
-
assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
19499
|
+
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],
|
|
19673
19500
|
wfDocuments: uploadedFile ? [{
|
|
19674
19501
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
19675
19502
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -21089,7 +20916,7 @@ const ActionModal$5 = _ref => {
|
|
|
21089
20916
|
})();
|
|
21090
20917
|
}, [file]);
|
|
21091
20918
|
function submit(data) {
|
|
21092
|
-
var _applicationData, _applicationData7, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$pro,
|
|
20919
|
+
var _applicationData, _applicationData7, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$pro, _applicationData10, _applicationData10$pr, _applicationData12, _applicationData13;
|
|
21093
20920
|
if ((_applicationData = applicationData) !== null && _applicationData !== void 0 && _applicationData.isBillAmend) {
|
|
21094
20921
|
var _applicationData2, _applicationData2$bil, _applicationData3, _applicationData4, _applicationData4$bil, _applicationData5, _applicationData5$app, _applicationData6, _applicationData6$app;
|
|
21095
20922
|
const comments = data !== null && data !== void 0 && data.comments ? data.comments : null;
|
|
@@ -21174,38 +21001,38 @@ const ActionModal$5 = _ref => {
|
|
|
21174
21001
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
21175
21002
|
applicationData.connectionExecutionDate = convertDateToEpochNew(connectionExecutionDate);
|
|
21176
21003
|
}
|
|
21177
|
-
if (((_applicationData9 = applicationData) === null || _applicationData9 === void 0 ? void 0 : (_applicationData9$pro = _applicationData9.processInstance) === null || _applicationData9$pro === void 0 ? void 0 : _applicationData9$pro.businessService) == "DisconnectWSConnection" || ((
|
|
21178
|
-
var
|
|
21179
|
-
((
|
|
21004
|
+
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")) {
|
|
21005
|
+
var _applicationData11;
|
|
21006
|
+
((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : _applicationData11.serviceType) == "WATER" ? submitAction({
|
|
21180
21007
|
WaterConnection: applicationData,
|
|
21181
21008
|
disconnectRequest: true
|
|
21182
21009
|
}) : submitAction({
|
|
21183
21010
|
SewerageConnection: applicationData,
|
|
21184
21011
|
disconnectRequest: true
|
|
21185
21012
|
});
|
|
21186
|
-
} else if (((
|
|
21013
|
+
} else if (((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
21187
21014
|
submitAction({
|
|
21188
21015
|
SewerageConnection: applicationData,
|
|
21189
21016
|
disconnectRequest: false,
|
|
21190
21017
|
reconnectRequest: true
|
|
21191
21018
|
});
|
|
21192
|
-
} else if (((
|
|
21019
|
+
} else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "WATER_RECONNECTION") {
|
|
21193
21020
|
submitAction({
|
|
21194
21021
|
WaterConnection: applicationData,
|
|
21195
21022
|
disconnectRequest: false,
|
|
21196
21023
|
reconnectRequest: true
|
|
21197
21024
|
});
|
|
21198
21025
|
} else {
|
|
21199
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9,
|
|
21026
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat10, _parsedAdhocRebateDat11, _parsedAdhocRebateDat12, _applicationData14;
|
|
21200
21027
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
21201
21028
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
21202
21029
|
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) || "";
|
|
21203
21030
|
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) || "";
|
|
21204
21031
|
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) || "";
|
|
21205
21032
|
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) || "";
|
|
21206
|
-
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 : (
|
|
21207
|
-
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (
|
|
21208
|
-
((
|
|
21033
|
+
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) || "";
|
|
21034
|
+
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) || "";
|
|
21035
|
+
((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.serviceType) == "WATER" ? submitAction({
|
|
21209
21036
|
WaterConnection: applicationData,
|
|
21210
21037
|
disconnectRequest: false,
|
|
21211
21038
|
reconnectRequest: false
|
|
@@ -21217,8 +21044,8 @@ const ActionModal$5 = _ref => {
|
|
|
21217
21044
|
}
|
|
21218
21045
|
}
|
|
21219
21046
|
React.useEffect(() => {
|
|
21220
|
-
var
|
|
21221
|
-
if (((
|
|
21047
|
+
var _applicationData15, _applicationData15$pr, _applicationData16, _applicationData16$pr;
|
|
21048
|
+
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") {
|
|
21222
21049
|
if (action) {
|
|
21223
21050
|
setConfig(configWSDisConnectApplication({
|
|
21224
21051
|
t,
|
|
@@ -23214,7 +23041,7 @@ function PropertyOwners(_ref) {
|
|
|
23214
23041
|
}
|
|
23215
23042
|
|
|
23216
23043
|
const ScruntinyDetails = _ref => {
|
|
23217
|
-
var _scrutinyDetails$valu, _scrutinyDetails$perm, _scrutinyDetails$valu2, _scrutinyDetails$valu3, _additionalDetails$
|
|
23044
|
+
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;
|
|
23218
23045
|
let {
|
|
23219
23046
|
scrutinyDetails,
|
|
23220
23047
|
paymentsList = [],
|
|
@@ -23339,8 +23166,8 @@ const ScruntinyDetails = _ref => {
|
|
|
23339
23166
|
}
|
|
23340
23167
|
function setLessAdjusmentVal(value) {
|
|
23341
23168
|
if (/^[0-9]*$/.test(value)) {
|
|
23342
|
-
var _additionalDetails$se7, _additionalDetails$se8, _additionalDetails$se9, _additionalDetails$
|
|
23343
|
-
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$
|
|
23169
|
+
var _additionalDetails$se7, _additionalDetails$se8, _additionalDetails$se9, _additionalDetails$se10;
|
|
23170
|
+
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)) {
|
|
23344
23171
|
alert("Less adjustment fees cannot be grater than Total of other P2 fees");
|
|
23345
23172
|
} else {
|
|
23346
23173
|
setLessAdjusment(value);
|
|
@@ -23454,26 +23281,26 @@ const ScruntinyDetails = _ref => {
|
|
|
23454
23281
|
}, t("HIDE_P2_FEES_DETAILS"))), showSanctionFee && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("BPA_P2_SUMMARY_FEE_EST")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
23455
23282
|
className: "border-none",
|
|
23456
23283
|
label: t(`BPA_COMMON_MALBA_AMT`),
|
|
23457
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
23284
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se11 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se11 === void 0 ? void 0 : _additionalDetails$se11.BPA_MALBA_CHARGES}`
|
|
23458
23285
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
23459
23286
|
className: "border-none",
|
|
23460
23287
|
label: t(`BPA_COMMON_LABOUR_AMT`),
|
|
23461
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
23288
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se12 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se12 === void 0 ? void 0 : _additionalDetails$se12.BPA_LABOUR_CESS}`
|
|
23462
23289
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
23463
23290
|
className: "border-none",
|
|
23464
23291
|
label: t(`BPA_COMMON_WATER_AMT`),
|
|
23465
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
23292
|
+
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se13 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se13 === void 0 ? void 0 : _additionalDetails$se13.BPA_WATER_CHARGES}`
|
|
23466
23293
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
23467
23294
|
className: "border-none",
|
|
23468
23295
|
label: t(`BPA_COMMON_GAUSHALA_AMT`),
|
|
23469
|
-
text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
23296
|
+
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}`
|
|
23470
23297
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("BPA_P2_SUMMARY_FEE_EST_MANUAL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("BPA_COMMON_DEVELOPMENT_AMT")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
23471
23298
|
t: t,
|
|
23472
23299
|
type: "text",
|
|
23473
23300
|
isMandatory: false,
|
|
23474
23301
|
optionKey: "i18nKey",
|
|
23475
23302
|
name: "development",
|
|
23476
|
-
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
23303
|
+
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,
|
|
23477
23304
|
value: development,
|
|
23478
23305
|
disabled: !isEditApplication,
|
|
23479
23306
|
onChange: e => {
|
|
@@ -23488,7 +23315,7 @@ const ScruntinyDetails = _ref => {
|
|
|
23488
23315
|
isMandatory: false,
|
|
23489
23316
|
optionKey: "i18nKey",
|
|
23490
23317
|
name: "otherCharges",
|
|
23491
|
-
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
23318
|
+
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,
|
|
23492
23319
|
value: otherCharges,
|
|
23493
23320
|
disabled: !isEditApplication,
|
|
23494
23321
|
onChange: e => {
|
|
@@ -23501,7 +23328,7 @@ const ScruntinyDetails = _ref => {
|
|
|
23501
23328
|
t: t,
|
|
23502
23329
|
type: "text",
|
|
23503
23330
|
name: "otherChargesDiscription",
|
|
23504
|
-
defaultValue: additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
23331
|
+
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,
|
|
23505
23332
|
value: otherChargesDisc,
|
|
23506
23333
|
disabled: !isEditApplication,
|
|
23507
23334
|
onChange: e => {
|
|
@@ -23514,7 +23341,7 @@ const ScruntinyDetails = _ref => {
|
|
|
23514
23341
|
isMandatory: false,
|
|
23515
23342
|
optionKey: "i18nKey",
|
|
23516
23343
|
name: "lessAdjusment",
|
|
23517
|
-
defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
23344
|
+
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) || "",
|
|
23518
23345
|
value: lessAdjusment,
|
|
23519
23346
|
disabled: !isEditApplication,
|
|
23520
23347
|
onChange: e => {
|
|
@@ -23537,11 +23364,11 @@ const ScruntinyDetails = _ref => {
|
|
|
23537
23364
|
message: uploadedFile ? `1 ${t(`FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
|
|
23538
23365
|
error: errorFile,
|
|
23539
23366
|
uploadMessage: uploadMessage
|
|
23540
|
-
})) : 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$
|
|
23367
|
+
})) : null, (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi === void 0 ? void 0 : _docLessAdjustment$fi.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se19 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se19 === void 0 ? void 0 : _additionalDetails$se19.BPA_LESS_ADJUSMENT_PLOT) > 0 && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
23541
23368
|
style: {
|
|
23542
23369
|
marginTop: "15px"
|
|
23543
23370
|
}
|
|
23544
|
-
}, 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$
|
|
23371
|
+
}, t("BPA_COMMON_LESS_AMT_PREVIOUS_FILE")), (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi2 = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi2 === void 0 ? void 0 : _docLessAdjustment$fi2.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se20 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se20 === void 0 ? void 0 : _additionalDetails$se20.BPA_LESS_ADJUSMENT_PLOT) > 0 && /*#__PURE__*/React__default.createElement("a", {
|
|
23545
23372
|
target: "_blank",
|
|
23546
23373
|
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
|
|
23547
23374
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.PDFSvg, null)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
@@ -23549,7 +23376,7 @@ const ScruntinyDetails = _ref => {
|
|
|
23549
23376
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
23550
23377
|
className: "border-none",
|
|
23551
23378
|
label: t(`BPA_P2_TOTAL_FEE`),
|
|
23552
|
-
text: `₹ ${(parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$
|
|
23379
|
+
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)}`
|
|
23553
23380
|
}))), /*#__PURE__*/React__default.createElement("div", null, scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$scru = scrutinyDetails.scruntinyDetails) === null || _scrutinyDetails$scru === void 0 ? void 0 : _scrutinyDetails$scru.map((report, index) => {
|
|
23554
23381
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
23555
23382
|
className: "border-none",
|
|
@@ -24105,7 +23932,7 @@ const Rebate_menu = [{
|
|
|
24105
23932
|
value: "Others"
|
|
24106
23933
|
}];
|
|
24107
23934
|
const WSFeeEstimation = _ref => {
|
|
24108
|
-
var _wsAdditionalDetails$, _wsAdditionalDetails$
|
|
23935
|
+
var _wsAdditionalDetails$, _wsAdditionalDetails$20, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
24109
23936
|
let {
|
|
24110
23937
|
wsAdditionalDetails,
|
|
24111
23938
|
workflowDetails
|
|
@@ -24189,16 +24016,16 @@ const WSFeeEstimation = _ref => {
|
|
|
24189
24016
|
message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
|
|
24190
24017
|
});
|
|
24191
24018
|
} else {
|
|
24192
|
-
var _wsAdditionalDetails$
|
|
24193
|
-
const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
24194
|
-
const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
24019
|
+
var _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17, _wsAdditionalDetails$18, _wsAdditionalDetails$19;
|
|
24020
|
+
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;
|
|
24021
|
+
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;
|
|
24195
24022
|
const appAdditionalDetails = {
|
|
24196
|
-
...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
24023
|
+
...(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),
|
|
24197
24024
|
...fields
|
|
24198
24025
|
};
|
|
24199
24026
|
wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
|
|
24200
24027
|
const data = {
|
|
24201
|
-
CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
24028
|
+
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" ? [{
|
|
24202
24029
|
applicationNo: applicationNo,
|
|
24203
24030
|
tenantId: tenantId,
|
|
24204
24031
|
waterConnection: wsAdditionalDetails.additionalDetails.appDetails
|
|
@@ -24209,7 +24036,7 @@ const WSFeeEstimation = _ref => {
|
|
|
24209
24036
|
}],
|
|
24210
24037
|
isconnectionCalculation: false
|
|
24211
24038
|
};
|
|
24212
|
-
let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$
|
|
24039
|
+
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";
|
|
24213
24040
|
Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
|
|
24214
24041
|
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;
|
|
24215
24042
|
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) {
|
|
@@ -24315,7 +24142,7 @@ const WSFeeEstimation = _ref => {
|
|
|
24315
24142
|
} : {
|
|
24316
24143
|
color: "#00703C"
|
|
24317
24144
|
}
|
|
24318
|
-
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$
|
|
24145
|
+
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$20 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$20 !== void 0 && _wsAdditionalDetails$20.isAdhocRebate ? /*#__PURE__*/React__default.createElement("div", {
|
|
24319
24146
|
onClick: e => {
|
|
24320
24147
|
showPopUp(true);
|
|
24321
24148
|
}
|
|
@@ -25342,7 +25169,7 @@ const PaymentHistory = _ref => {
|
|
|
25342
25169
|
};
|
|
25343
25170
|
|
|
25344
25171
|
function ApplicationDetailsContent(_ref) {
|
|
25345
|
-
var _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$
|
|
25172
|
+
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;
|
|
25346
25173
|
let {
|
|
25347
25174
|
applicationDetails,
|
|
25348
25175
|
demandData,
|
|
@@ -25513,12 +25340,12 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25513
25340
|
privacy: privacy
|
|
25514
25341
|
});
|
|
25515
25342
|
} else {
|
|
25516
|
-
var _applicationData$audi2, _checkpoint$assignes8, _checkpoint$assignes9, _checkpoint$
|
|
25343
|
+
var _applicationData$audi2, _checkpoint$assignes8, _checkpoint$assignes9, _checkpoint$assignes10, _checkpoint$assignes11;
|
|
25517
25344
|
const caption = {
|
|
25518
25345
|
date: convertEpochToDateDMY(applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$audi2 = applicationData.auditDetails) === null || _applicationData$audi2 === void 0 ? void 0 : _applicationData$audi2.lastModifiedTime),
|
|
25519
25346
|
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,
|
|
25520
25347
|
wfComment: checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.wfComment,
|
|
25521
|
-
mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$
|
|
25348
|
+
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
|
|
25522
25349
|
};
|
|
25523
25350
|
return /*#__PURE__*/React__default.createElement(TLCaption, {
|
|
25524
25351
|
data: caption
|
|
@@ -25695,14 +25522,14 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25695
25522
|
});
|
|
25696
25523
|
}
|
|
25697
25524
|
} else {
|
|
25698
|
-
var _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$
|
|
25525
|
+
var _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a10;
|
|
25699
25526
|
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a8 = applicationDetails.applicationData) === null || _applicationDetails$a8 === void 0 ? void 0 : _applicationDetails$a8.status) === "INACTIVE") {
|
|
25700
25527
|
alert("Property is inactive, cannot edit.");
|
|
25701
25528
|
return;
|
|
25702
25529
|
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.status) === "INWORKFLOW") {
|
|
25703
25530
|
alert("Property is in workflow, cannot edit.");
|
|
25704
25531
|
return;
|
|
25705
|
-
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25532
|
+
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a10 = applicationDetails.applicationData) === null || _applicationDetails$a10 === void 0 ? void 0 : _applicationDetails$a10.status) === "ACTIVE") {
|
|
25706
25533
|
history.push({
|
|
25707
25534
|
pathname: `/digit-ui/citizen/pt/property/edit-application/${pID}`
|
|
25708
25535
|
});
|
|
@@ -25746,8 +25573,8 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25746
25573
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
25747
25574
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
25748
25575
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
25749
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25750
|
-
var _detail$values, _detail$additionalDet, _applicationDetails$
|
|
25576
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a11 = applicationDetails.applicationDetails) === null || _applicationDetails$a11 === void 0 ? void 0 : _applicationDetails$a11.map((detail, index) => {
|
|
25577
|
+
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;
|
|
25751
25578
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
25752
25579
|
key: index
|
|
25753
25580
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -25891,10 +25718,10 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25891
25718
|
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React__default.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
25892
25719
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
25893
25720
|
paymentsList: paymentsList,
|
|
25894
|
-
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25721
|
+
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a12 = applicationDetails.applicationData) === null || _applicationDetails$a12 === void 0 ? void 0 : _applicationDetails$a12.additionalDetails,
|
|
25895
25722
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
25896
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25897
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25723
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a13 = applicationDetails.applicationData) === null || _applicationDetails$a13 === void 0 ? void 0 : (_applicationDetails$a14 = _applicationDetails$a13.additionalDetails) === null || _applicationDetails$a14 === void 0 ? void 0 : (_applicationDetails$a15 = _applicationDetails$a14.fieldinspection_pending) === null || _applicationDetails$a15 === void 0 ? void 0 : _applicationDetails$a15.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React__default.createElement(InspectionReport, {
|
|
25724
|
+
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
|
|
25898
25725
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React__default.createElement(PropertyFloors, {
|
|
25899
25726
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
25900
25727
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.owners) && /*#__PURE__*/React__default.createElement(PropertyOwners, {
|
|
@@ -25902,12 +25729,12 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25902
25729
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.units) && /*#__PURE__*/React__default.createElement(TLTradeUnits, {
|
|
25903
25730
|
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.units
|
|
25904
25731
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.accessories) && /*#__PURE__*/React__default.createElement(TLTradeAccessories, {
|
|
25905
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25906
|
-
}), !isEditApplication && (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25732
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.accessories
|
|
25733
|
+
}), !isEditApplication && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React__default.createElement(PermissionCheck, {
|
|
25907
25734
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
25908
25735
|
t: t,
|
|
25909
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25910
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25736
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.permissions
|
|
25737
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.obpsDocuments) && /*#__PURE__*/React__default.createElement("div", {
|
|
25911
25738
|
style: {
|
|
25912
25739
|
display: "flex"
|
|
25913
25740
|
}
|
|
@@ -25916,29 +25743,29 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25916
25743
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
25917
25744
|
docs: detail.additionalDetails.obpsDocuments,
|
|
25918
25745
|
bpaActionsDetails: workflowDetails
|
|
25919
|
-
})), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25746
|
+
})), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.noc) && /*#__PURE__*/React__default.createElement(NOCDocuments, {
|
|
25920
25747
|
t: t,
|
|
25921
25748
|
isNoc: true,
|
|
25922
25749
|
NOCdata: detail.values,
|
|
25923
25750
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
25924
25751
|
docs: detail.additionalDetails.noc,
|
|
25925
|
-
noc: (_detail$
|
|
25752
|
+
noc: (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.data,
|
|
25926
25753
|
bpaActionsDetails: workflowDetails
|
|
25927
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25754
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.scruntinyDetails) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
25928
25755
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
25929
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25756
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.buildingExtractionDetails) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
25930
25757
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
25931
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25758
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.subOccupancyTableDetails) && /*#__PURE__*/React__default.createElement(SubOccupancyTable, {
|
|
25932
25759
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
25933
25760
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
25934
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25935
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25936
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25937
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25761
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documentsWithUrl) && /*#__PURE__*/React__default.createElement(DocumentsPreview, {
|
|
25762
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documentsWithUrl
|
|
25763
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
|
|
25764
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
25938
25765
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React__default.createElement(WSAdditonalDetails, {
|
|
25939
25766
|
wsAdditionalDetails: detail,
|
|
25940
25767
|
oldValue: oldValue
|
|
25941
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25768
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React__default.createElement("div", {
|
|
25942
25769
|
style: {
|
|
25943
25770
|
fontSize: "16px",
|
|
25944
25771
|
lineHeight: "24px",
|
|
@@ -25946,16 +25773,16 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25946
25773
|
padding: "10px 0px"
|
|
25947
25774
|
}
|
|
25948
25775
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
25949
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25776
|
+
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
|
|
25950
25777
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25951
25778
|
className: "link",
|
|
25952
25779
|
style: {
|
|
25953
25780
|
color: "#a82227"
|
|
25954
25781
|
}
|
|
25955
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25782
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React__default.createElement(WSFeeEstimation, {
|
|
25956
25783
|
wsAdditionalDetails: detail,
|
|
25957
25784
|
workflowDetails: workflowDetails
|
|
25958
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25785
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.estimationDetails) && /*#__PURE__*/React__default.createElement(ViewBreakup, {
|
|
25959
25786
|
wsAdditionalDetails: detail,
|
|
25960
25787
|
workflowDetails: workflowDetails
|
|
25961
25788
|
}));
|
|
@@ -25975,13 +25802,13 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25975
25802
|
}, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data5 = workflowDetails.data) !== null && _workflowDetails$data5 !== void 0 && _workflowDetails$data5.timeline && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.timeline) === null || _workflowDetails$data7 === void 0 ? void 0 : _workflowDetails$data7.length) === 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckPoint, {
|
|
25976
25803
|
isCompleted: true,
|
|
25977
25804
|
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}`),
|
|
25978
|
-
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
25979
|
-
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
25980
|
-
var _workflowDetails$
|
|
25805
|
+
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)
|
|
25806
|
+
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data12 = workflowDetails.data) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data13 = workflowDetails.data) === null || _workflowDetails$data13 === void 0 ? void 0 : _workflowDetails$data13.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).map((checkpoint, index, arr) => {
|
|
25807
|
+
var _workflowDetails$data20;
|
|
25981
25808
|
let timelineStatusPostfix = "";
|
|
25982
25809
|
if (window.location.href.includes("/obps/")) {
|
|
25983
|
-
var _workflowDetails$
|
|
25984
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
25810
|
+
var _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19;
|
|
25811
|
+
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`;
|
|
25985
25812
|
}
|
|
25986
25813
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
25987
25814
|
key: index
|
|
@@ -25990,9 +25817,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25990
25817
|
isCompleted: index === 0,
|
|
25991
25818
|
info: checkpoint.comment,
|
|
25992
25819
|
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}`),
|
|
25993
|
-
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
25820
|
+
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)
|
|
25994
25821
|
}));
|
|
25995
|
-
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
25822
|
+
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.timeline) === null || _workflowDetails$data22 === void 0 ? void 0 : _workflowDetails$data22.length) > 2 && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
25996
25823
|
label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
|
|
25997
25824
|
onClick: toggleTimeline
|
|
25998
25825
|
})))), window.location.href.includes("/pt/") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
|
|
@@ -26033,7 +25860,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26033
25860
|
}
|
|
26034
25861
|
|
|
26035
25862
|
function ApplicationDetailsToast(_ref) {
|
|
26036
|
-
var _showToast$error, _showToast$error2, _showToast$error3, _showToast$error4, _showToast$error5, _showToast$error6, _showToast$error7, _showToast$error8, _showToast$action2, _showToast$error9, _showToast$
|
|
25863
|
+
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;
|
|
26037
25864
|
let {
|
|
26038
25865
|
t,
|
|
26039
25866
|
showToast,
|
|
@@ -26090,26 +25917,26 @@ function ApplicationDetailsToast(_ref) {
|
|
|
26090
25917
|
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"]);
|
|
26091
25918
|
break;
|
|
26092
25919
|
case "VERIFY_AND_FORWARD":
|
|
26093
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25920
|
+
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"]);
|
|
26094
25921
|
break;
|
|
26095
25922
|
case "SEND_BACK_TO_CITIZEN":
|
|
26096
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25923
|
+
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"]);
|
|
26097
25924
|
break;
|
|
26098
25925
|
case "APPROVE":
|
|
26099
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25926
|
+
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"]);
|
|
26100
25927
|
break;
|
|
26101
25928
|
case "REJECT":
|
|
26102
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25929
|
+
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"]);
|
|
26103
25930
|
break;
|
|
26104
25931
|
case "FORWARD":
|
|
26105
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25932
|
+
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"]);
|
|
26106
25933
|
break;
|
|
26107
25934
|
case "SEND_BACK_FOR_DOCUMENT_VERIFICATION":
|
|
26108
25935
|
case "SEND_BACK_FOR_FIELD_INSPECTION":
|
|
26109
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25936
|
+
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"]);
|
|
26110
25937
|
break;
|
|
26111
25938
|
default:
|
|
26112
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25939
|
+
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`);
|
|
26113
25940
|
}
|
|
26114
25941
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
26115
25942
|
error: showToast.key === "error",
|
|
@@ -26117,8 +25944,8 @@ function ApplicationDetailsToast(_ref) {
|
|
|
26117
25944
|
onClose: closeToast
|
|
26118
25945
|
}));
|
|
26119
25946
|
} else {
|
|
26120
|
-
var _showToast$
|
|
26121
|
-
const label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$
|
|
25947
|
+
var _showToast$error17, _showToast$action5;
|
|
25948
|
+
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`;
|
|
26122
25949
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
26123
25950
|
error: showToast.key === "error",
|
|
26124
25951
|
label: t(label),
|
|
@@ -26357,7 +26184,7 @@ const ApplicationDetails = props => {
|
|
|
26357
26184
|
}, [showToast]);
|
|
26358
26185
|
function onActionSelect(action) {
|
|
26359
26186
|
if (action) {
|
|
26360
|
-
var _action$redirectionUr8, _action$redirectionUr9, _action$
|
|
26187
|
+
var _action$redirectionUr8, _action$redirectionUr9, _action$redirectionUr10;
|
|
26361
26188
|
if ((action === null || action === void 0 ? void 0 : action.action) == "EDIT PAY 2" && window.location.href.includes("bpa")) {
|
|
26362
26189
|
window.location.assign(window.location.href.split("bpa")[0] + "editApplication/bpa" + window.location.href.split("bpa")[1]);
|
|
26363
26190
|
} else if (action !== null && action !== void 0 && action.isWarningPopUp) {
|
|
@@ -26381,15 +26208,15 @@ const ApplicationDetails = props => {
|
|
|
26381
26208
|
}
|
|
26382
26209
|
} else if (!(action !== null && action !== void 0 && action.redirectionUrl) && (action === null || action === void 0 ? void 0 : action.action) != "EDIT PAY 2") {
|
|
26383
26210
|
setShowModal(true);
|
|
26384
|
-
} 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$
|
|
26211
|
+
} 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") {
|
|
26385
26212
|
console.log("Got Inside Direct");
|
|
26386
26213
|
setShowModal(true);
|
|
26387
26214
|
} else {
|
|
26388
|
-
var _action$
|
|
26215
|
+
var _action$redirectionUr11, _action$redirectionUr12;
|
|
26389
26216
|
history.push({
|
|
26390
|
-
pathname: (_action$
|
|
26217
|
+
pathname: (_action$redirectionUr11 = action.redirectionUrl) === null || _action$redirectionUr11 === void 0 ? void 0 : _action$redirectionUr11.pathname,
|
|
26391
26218
|
state: {
|
|
26392
|
-
...((_action$
|
|
26219
|
+
...((_action$redirectionUr12 = action.redirectionUrl) === null || _action$redirectionUr12 === void 0 ? void 0 : _action$redirectionUr12.state)
|
|
26393
26220
|
}
|
|
26394
26221
|
});
|
|
26395
26222
|
}
|
|
@@ -27677,7 +27504,7 @@ const createEmployeeConfig = [{
|
|
|
27677
27504
|
isStepEnabled: true,
|
|
27678
27505
|
type: "component",
|
|
27679
27506
|
component: "NewPTRStepFormOne",
|
|
27680
|
-
key: "
|
|
27507
|
+
key: "ownerDetails",
|
|
27681
27508
|
withoutLabel: true,
|
|
27682
27509
|
texts: {
|
|
27683
27510
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
@@ -27689,7 +27516,7 @@ const createEmployeeConfig = [{
|
|
|
27689
27516
|
isStepEnabled: true,
|
|
27690
27517
|
type: "component",
|
|
27691
27518
|
component: "NewPTRStepFormTwo",
|
|
27692
|
-
key: "
|
|
27519
|
+
key: "petDetails",
|
|
27693
27520
|
withoutLabel: true,
|
|
27694
27521
|
texts: {
|
|
27695
27522
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
@@ -27772,83 +27599,33 @@ const NewPTRStepFormOne = _ref => {
|
|
|
27772
27599
|
let {
|
|
27773
27600
|
config,
|
|
27774
27601
|
onGoNext,
|
|
27775
|
-
onBackClick
|
|
27776
|
-
t
|
|
27602
|
+
onBackClick
|
|
27777
27603
|
} = _ref;
|
|
27778
27604
|
const dispatch = reactRedux.useDispatch();
|
|
27605
|
+
const {
|
|
27606
|
+
t
|
|
27607
|
+
} = reactI18next.useTranslation();
|
|
27779
27608
|
const [showToast, setShowToast] = React.useState(false);
|
|
27780
27609
|
const [error, setError] = React.useState("");
|
|
27781
27610
|
const currentStepData = reactRedux.useSelector(function (state) {
|
|
27782
|
-
return state.ptr.PTRNewApplicationFormReducer.formData
|
|
27611
|
+
return state.ptr.PTRNewApplicationFormReducer.formData;
|
|
27783
27612
|
});
|
|
27784
|
-
function validateStepData(data) {
|
|
27785
|
-
const ownerss = (data === null || data === void 0 ? void 0 : data.ownerss) || [];
|
|
27786
|
-
const missingFields = [];
|
|
27787
|
-
const notFormattedFields = [];
|
|
27788
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.firstName)) missingFields.push("FIRST_NAME");
|
|
27789
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.lastName)) missingFields.push("LAST_NAME");
|
|
27790
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.emailId)) missingFields.push("EMAIL_ID");
|
|
27791
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.mobileNumber)) missingFields.push("MOBILE_NUMBER");
|
|
27792
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.fatherName)) missingFields.push("FATHER_NAME");
|
|
27793
|
-
if (!(ownerss !== null && ownerss !== void 0 && ownerss.address)) missingFields.push("ADDRESS");
|
|
27794
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.mobileNumber && !/^[6-9]\d{9}$/.test(ownerss.mobileNumber)) {
|
|
27795
|
-
notFormattedFields.push("MOBILE_NUMBER");
|
|
27796
|
-
}
|
|
27797
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.emailId && !/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(ownerss.emailId)) {
|
|
27798
|
-
notFormattedFields.push("EMAIL_ID");
|
|
27799
|
-
}
|
|
27800
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.firstName && !/^[a-zA-Z ]+$/.test(ownerss.firstName)) {
|
|
27801
|
-
notFormattedFields.push("FIRST_NAME");
|
|
27802
|
-
}
|
|
27803
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.lastName && !/^[a-zA-Z ]+$/.test(ownerss.lastName)) {
|
|
27804
|
-
notFormattedFields.push("LAST_NAME");
|
|
27805
|
-
}
|
|
27806
|
-
if (ownerss !== null && ownerss !== void 0 && ownerss.fatherName && !/^[a-zA-Z ]+$/.test(ownerss.fatherName)) {
|
|
27807
|
-
notFormattedFields.push("FATHER_NAME");
|
|
27808
|
-
}
|
|
27809
|
-
return {
|
|
27810
|
-
missingFields,
|
|
27811
|
-
notFormattedFields
|
|
27812
|
-
};
|
|
27813
|
-
}
|
|
27814
27613
|
function goNext(data) {
|
|
27815
|
-
|
|
27816
|
-
missingFields,
|
|
27817
|
-
notFormattedFields
|
|
27818
|
-
} = validateStepData(currentStepData);
|
|
27819
|
-
if (missingFields.length > 0) {
|
|
27820
|
-
setError(`Please fill the following field: ${missingFields[0]}`);
|
|
27821
|
-
setShowToast(true);
|
|
27822
|
-
return;
|
|
27823
|
-
}
|
|
27824
|
-
if (notFormattedFields.length > 0) {
|
|
27825
|
-
setError(`Please format the following field: ${notFormattedFields[0]}`);
|
|
27826
|
-
setShowToast(true);
|
|
27827
|
-
return;
|
|
27828
|
-
}
|
|
27614
|
+
dispatch(UPDATE_PTRNewApplication_FORM(config.key, data));
|
|
27829
27615
|
onGoNext();
|
|
27830
27616
|
}
|
|
27831
27617
|
function onGoBack(data) {
|
|
27832
27618
|
onBackClick(config.key, data);
|
|
27833
27619
|
}
|
|
27834
|
-
const onFormValueChange = function (setValue, data) {
|
|
27835
|
-
console.log("onFormValueChange data in AdministrativeDetails: ", data, "\n Bool: ", !lodash.isEqual(data, currentStepData));
|
|
27836
|
-
if (!lodash.isEqual(data, currentStepData)) {
|
|
27837
|
-
dispatch(UPDATE_PTRNewApplication_FORM(config.key, data));
|
|
27838
|
-
}
|
|
27839
|
-
};
|
|
27840
27620
|
const closeToast = () => {
|
|
27841
27621
|
setShowToast(false);
|
|
27842
27622
|
setError("");
|
|
27843
27623
|
};
|
|
27844
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
27845
|
-
|
|
27846
|
-
|
|
27847
|
-
|
|
27848
|
-
|
|
27849
|
-
label: t(`${config.texts.submitBarLabel}`),
|
|
27850
|
-
currentStep: config.currStepNumber,
|
|
27851
|
-
onBackClick: onGoBack
|
|
27624
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(PTRCitizenDetails, {
|
|
27625
|
+
onGoBack: onGoBack,
|
|
27626
|
+
goNext: goNext,
|
|
27627
|
+
currentStepData: currentStepData,
|
|
27628
|
+
t: t
|
|
27852
27629
|
}), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
27853
27630
|
isDleteBtn: true,
|
|
27854
27631
|
error: true,
|
|
@@ -27861,65 +27638,33 @@ const NewPTRStepFormTwo = _ref => {
|
|
|
27861
27638
|
let {
|
|
27862
27639
|
config,
|
|
27863
27640
|
onGoNext,
|
|
27864
|
-
onBackClick
|
|
27865
|
-
t
|
|
27641
|
+
onBackClick
|
|
27866
27642
|
} = _ref;
|
|
27867
27643
|
const dispatch = reactRedux.useDispatch();
|
|
27644
|
+
const {
|
|
27645
|
+
t
|
|
27646
|
+
} = reactI18next.useTranslation();
|
|
27868
27647
|
const [showToast, setShowToast] = React.useState(false);
|
|
27869
27648
|
const [error, setError] = React.useState("");
|
|
27870
27649
|
const currentStepData = reactRedux.useSelector(function (state) {
|
|
27871
|
-
return state.ptr.PTRNewApplicationFormReducer.formData
|
|
27650
|
+
return state.ptr.PTRNewApplicationFormReducer.formData;
|
|
27872
27651
|
});
|
|
27873
27652
|
function goNext(data) {
|
|
27874
|
-
|
|
27875
|
-
const {
|
|
27876
|
-
missingFields,
|
|
27877
|
-
notFormattedFields
|
|
27878
|
-
} = validateStepData(currentStepData);
|
|
27879
|
-
if (missingFields.length > 0) {
|
|
27880
|
-
setError(`Please fill the following field: ${missingFields[0]}`);
|
|
27881
|
-
setShowToast(true);
|
|
27882
|
-
return;
|
|
27883
|
-
}
|
|
27653
|
+
dispatch(UPDATE_PTRNewApplication_FORM(config.key, data));
|
|
27884
27654
|
onGoNext();
|
|
27885
27655
|
}
|
|
27886
|
-
function validateStepData(data) {
|
|
27887
|
-
const pets = (data === null || data === void 0 ? void 0 : data.pets) || [];
|
|
27888
|
-
const missingFields = [];
|
|
27889
|
-
const notFormattedFields = [];
|
|
27890
|
-
if (!(pets !== null && pets !== void 0 && pets.petName)) missingFields.push("PET_NAME");
|
|
27891
|
-
if (!(pets !== null && pets !== void 0 && pets.petType)) missingFields.push("PET_TYPE");
|
|
27892
|
-
if (!(pets !== null && pets !== void 0 && pets.breedType)) missingFields.push("BREED_TYPE");
|
|
27893
|
-
if (!(pets !== null && pets !== void 0 && pets.petGender)) missingFields.push("PET_GENDER");
|
|
27894
|
-
if (!(pets !== null && pets !== void 0 && pets.color)) missingFields.push("COLOR");
|
|
27895
|
-
if (!(pets !== null && pets !== void 0 && pets.lastVaccineDate)) missingFields.push("LAST_VACCINE_DATE");
|
|
27896
|
-
if (!(pets !== null && pets !== void 0 && pets.vaccinationNumber)) missingFields.push("VACCINATION_NUMBER");
|
|
27897
|
-
return {
|
|
27898
|
-
missingFields,
|
|
27899
|
-
notFormattedFields
|
|
27900
|
-
};
|
|
27901
|
-
}
|
|
27902
27656
|
function onGoBack(data) {
|
|
27903
27657
|
onBackClick(config.key, data);
|
|
27904
27658
|
}
|
|
27905
|
-
const onFormValueChange = function (setValue, data) {
|
|
27906
|
-
console.log("onFormValueChange data in AdministrativeDetails: ", data, "\n Bool: ", !lodash.isEqual(data, currentStepData));
|
|
27907
|
-
if (!lodash.isEqual(data, currentStepData)) {
|
|
27908
|
-
dispatch(UPDATE_PTRNewApplication_FORM(config.key, data));
|
|
27909
|
-
}
|
|
27910
|
-
};
|
|
27911
27659
|
const closeToast = () => {
|
|
27912
27660
|
setShowToast(false);
|
|
27913
27661
|
setError("");
|
|
27914
27662
|
};
|
|
27915
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
27916
|
-
|
|
27917
|
-
|
|
27918
|
-
|
|
27919
|
-
|
|
27920
|
-
label: t(`${config.texts.submitBarLabel}`),
|
|
27921
|
-
currentStep: config.currStepNumber,
|
|
27922
|
-
onBackClick: onGoBack
|
|
27663
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(PTRCitizenPet, {
|
|
27664
|
+
onGoBack: onGoBack,
|
|
27665
|
+
goNext: goNext,
|
|
27666
|
+
currentStepData: currentStepData,
|
|
27667
|
+
t: t
|
|
27923
27668
|
}), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
27924
27669
|
isDleteBtn: true,
|
|
27925
27670
|
error: true,
|