@mseva/digit-ui-module-ptr 1.1.97 → 1.1.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +157 -106
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LabelFieldPair, CardLabel, Dropdown, CardLabelError, TextInput, Toast, MobileNumber, CardSectionHeader, ActionBar, SubmitBar, Loader as Loader$1, UploadFile, TickMark, FormStep, TextArea, RadioOrSelect, Card, CardHeader, CardText, CardSubHeader, Modal, FormComposer, Menu, AppContainer, BackButton, PrivateRoute, StatusTable, Row, CheckBox, LinkButton, Banner, KeyNote, Header, MultiLink, TelePhone, DisplayPhotos, Table, PropertyHouse, CloseSvg,
|
|
1
|
+
import { LabelFieldPair, CardLabel, Dropdown, CardLabelError, TextInput, Toast, MobileNumber, CardSectionHeader, ActionBar, SubmitBar, Loader as Loader$1, UploadFile, TickMark, FormStep, TextArea, RadioOrSelect, Card, CardHeader, CardText, CardSubHeader, Modal, FormComposer, Menu, AppContainer, BackButton, PrivateRoute, StatusTable, Row, CheckBox, LinkButton, Banner, KeyNote, Header, MultiLink, TelePhone, DisplayPhotos, Table, PropertyHouse, CloseSvg, LinkLabel, DatePicker, RadioButtons, DetailsCard, SearchAction, FilterAction, PopUp, SearchForm, SearchField, BreadCrumb, PTRIcon, EmployeeModuleCard, OTPInput, Rating, CitizenHomeCard } from '@mseva/digit-ui-react-components';
|
|
2
2
|
import React, { useState, useEffect, useMemo, useRef, Fragment as Fragment$1, useCallback } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useLocation, useRouteMatch, useHistory, Switch, Route, Redirect, Link, useParams } from 'react-router-dom';
|
|
@@ -9520,12 +9520,6 @@ const PTRCitizenPet = ({
|
|
|
9520
9520
|
if (!errors[fieldName]) return null;
|
|
9521
9521
|
return ((_errors$fieldName = errors[fieldName]) === null || _errors$fieldName === void 0 ? void 0 : _errors$fieldName.message) || t("PTR_FIELD_REQUIRED");
|
|
9522
9522
|
};
|
|
9523
|
-
const errorStyle = {
|
|
9524
|
-
width: "70%",
|
|
9525
|
-
marginLeft: "30%",
|
|
9526
|
-
fontSize: "12px",
|
|
9527
|
-
marginTop: "-18px"
|
|
9528
|
-
};
|
|
9529
9523
|
const parsePetAge = raw => {
|
|
9530
9524
|
if (!raw) return null;
|
|
9531
9525
|
const v = raw.startsWith(".") ? `0${raw}` : raw;
|
|
@@ -9555,13 +9549,14 @@ const PTRCitizenPet = ({
|
|
|
9555
9549
|
setMaxDate(formatDate(today));
|
|
9556
9550
|
}, [petAgeVal]);
|
|
9557
9551
|
return /*#__PURE__*/React.createElement("form", {
|
|
9552
|
+
className: "card",
|
|
9558
9553
|
onSubmit: handleSubmit(onSubmit)
|
|
9559
9554
|
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
9560
9555
|
className: "card-section-header"
|
|
9561
9556
|
}, t("PTR_PET_DETAILS")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9562
9557
|
className: "card-label-smaller"
|
|
9563
9558
|
}, t("PTR_PET_NAME"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
9564
|
-
className: "field"
|
|
9559
|
+
className: "form-field"
|
|
9565
9560
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9566
9561
|
control: control,
|
|
9567
9562
|
name: "petName",
|
|
@@ -9587,29 +9582,38 @@ const PTRCitizenPet = ({
|
|
|
9587
9582
|
t: t,
|
|
9588
9583
|
disabled: checkForRenew
|
|
9589
9584
|
})
|
|
9590
|
-
})
|
|
9591
|
-
style:
|
|
9592
|
-
|
|
9585
|
+
}), errors.petName && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9586
|
+
style: {
|
|
9587
|
+
fontSize: "12px",
|
|
9588
|
+
marginTop: "4px"
|
|
9589
|
+
}
|
|
9590
|
+
}, getErrorMessage("petName")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9593
9591
|
className: "card-label-smaller"
|
|
9594
|
-
}, t("PTR_SEARCH_PET_TYPE"), " *"), /*#__PURE__*/React.createElement(
|
|
9592
|
+
}, t("PTR_SEARCH_PET_TYPE"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
9593
|
+
className: "form-field"
|
|
9594
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9595
9595
|
control: control,
|
|
9596
9596
|
name: "petType",
|
|
9597
9597
|
rules: {
|
|
9598
9598
|
required: t("PTR_PET_TYPE_REQUIRED")
|
|
9599
9599
|
},
|
|
9600
9600
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
9601
|
-
className: "form-field",
|
|
9602
9601
|
select: props.onChange,
|
|
9603
9602
|
selected: props.value,
|
|
9604
9603
|
option: mdmsPetData === null || mdmsPetData === void 0 ? void 0 : mdmsPetData.petTypes,
|
|
9605
9604
|
optionKey: "name",
|
|
9606
9605
|
disable: checkForRenew
|
|
9607
9606
|
})
|
|
9608
|
-
})
|
|
9609
|
-
style:
|
|
9610
|
-
|
|
9607
|
+
}), errors.petType && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9608
|
+
style: {
|
|
9609
|
+
fontSize: "12px",
|
|
9610
|
+
marginTop: "4px"
|
|
9611
|
+
}
|
|
9612
|
+
}, getErrorMessage("petType")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9611
9613
|
className: "card-label-smaller"
|
|
9612
|
-
}, t("PTR_SEARCH_BREED_TYPE"), " *"), /*#__PURE__*/React.createElement(
|
|
9614
|
+
}, t("PTR_SEARCH_BREED_TYPE"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
9615
|
+
className: "form-field"
|
|
9616
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9613
9617
|
control: control,
|
|
9614
9618
|
name: "breedType",
|
|
9615
9619
|
rules: {
|
|
@@ -9619,7 +9623,6 @@ const PTRCitizenPet = ({
|
|
|
9619
9623
|
var _mdmsPetData$breedTyp2;
|
|
9620
9624
|
const filteredBreeds = selectedPetType ? mdmsPetData === null || mdmsPetData === void 0 ? void 0 : (_mdmsPetData$breedTyp2 = mdmsPetData.breedTypes) === null || _mdmsPetData$breedTyp2 === void 0 ? void 0 : _mdmsPetData$breedTyp2.filter(b => b.petType == selectedPetType.code) : [];
|
|
9621
9625
|
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
9622
|
-
className: "form-field",
|
|
9623
9626
|
select: props.onChange,
|
|
9624
9627
|
selected: props.value,
|
|
9625
9628
|
option: filteredBreeds,
|
|
@@ -9627,30 +9630,37 @@ const PTRCitizenPet = ({
|
|
|
9627
9630
|
disable: checkForRenew
|
|
9628
9631
|
});
|
|
9629
9632
|
}
|
|
9630
|
-
})
|
|
9631
|
-
style:
|
|
9632
|
-
|
|
9633
|
+
}), errors.breedType && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9634
|
+
style: {
|
|
9635
|
+
fontSize: "12px",
|
|
9636
|
+
marginTop: "4px"
|
|
9637
|
+
}
|
|
9638
|
+
}, getErrorMessage("breedType")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9633
9639
|
className: "card-label-smaller"
|
|
9634
|
-
}, t("PTR_PET_GENDER"), " *"), /*#__PURE__*/React.createElement(
|
|
9640
|
+
}, t("PTR_PET_GENDER"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
9641
|
+
className: "form-field"
|
|
9642
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9635
9643
|
control: control,
|
|
9636
9644
|
name: "petGender",
|
|
9637
9645
|
rules: {
|
|
9638
9646
|
required: t("PTR_PET_GENDER_REQUIRED")
|
|
9639
9647
|
},
|
|
9640
9648
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
9641
|
-
className: "form-field",
|
|
9642
9649
|
select: props.onChange,
|
|
9643
9650
|
selected: props.value,
|
|
9644
9651
|
option: mdmsPetData === null || mdmsPetData === void 0 ? void 0 : mdmsPetData.genderTypes,
|
|
9645
9652
|
optionKey: "name",
|
|
9646
9653
|
disable: checkForRenew
|
|
9647
9654
|
})
|
|
9648
|
-
})
|
|
9649
|
-
style:
|
|
9650
|
-
|
|
9655
|
+
}), errors.petGender && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9656
|
+
style: {
|
|
9657
|
+
fontSize: "12px",
|
|
9658
|
+
marginTop: "4px"
|
|
9659
|
+
}
|
|
9660
|
+
}, getErrorMessage("petGender")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9651
9661
|
className: "card-label-smaller"
|
|
9652
9662
|
}, `${t("PTR_COLOR")}`, " *"), /*#__PURE__*/React.createElement("div", {
|
|
9653
|
-
className: "field"
|
|
9663
|
+
className: "form-field"
|
|
9654
9664
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9655
9665
|
control: control,
|
|
9656
9666
|
name: "petColor",
|
|
@@ -9676,12 +9686,15 @@ const PTRCitizenPet = ({
|
|
|
9676
9686
|
t: t,
|
|
9677
9687
|
disabled: checkForRenew
|
|
9678
9688
|
})
|
|
9679
|
-
})
|
|
9680
|
-
style:
|
|
9681
|
-
|
|
9689
|
+
}), errors.petColor && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9690
|
+
style: {
|
|
9691
|
+
fontSize: "12px",
|
|
9692
|
+
marginTop: "4px"
|
|
9693
|
+
}
|
|
9694
|
+
}, getErrorMessage("petColor")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9682
9695
|
className: "card-label-smaller"
|
|
9683
9696
|
}, t("PTR_PET_AGE"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
9684
|
-
className: "field"
|
|
9697
|
+
className: "form-field"
|
|
9685
9698
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9686
9699
|
control: control,
|
|
9687
9700
|
name: "petAge",
|
|
@@ -9716,11 +9729,7 @@ const PTRCitizenPet = ({
|
|
|
9716
9729
|
disabled: checkForRenew
|
|
9717
9730
|
})
|
|
9718
9731
|
}), errors.petAge && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9719
|
-
|
|
9720
|
-
width: "70%",
|
|
9721
|
-
fontSize: "12px",
|
|
9722
|
-
marginTop: "-18px"
|
|
9723
|
-
}
|
|
9732
|
+
className: "ptr-error-label"
|
|
9724
9733
|
}, getErrorMessage("petAge")), /*#__PURE__*/React.createElement("span", {
|
|
9725
9734
|
style: {
|
|
9726
9735
|
fontSize: "12px",
|
|
@@ -9733,7 +9742,7 @@ const PTRCitizenPet = ({
|
|
|
9733
9742
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9734
9743
|
className: "card-label-smaller"
|
|
9735
9744
|
}, t("PTR_VACCINATED_DATE"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
9736
|
-
className: "field"
|
|
9745
|
+
className: "form-field"
|
|
9737
9746
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9738
9747
|
control: control,
|
|
9739
9748
|
name: "lastVaccineDate",
|
|
@@ -9750,16 +9759,19 @@ const PTRCitizenPet = ({
|
|
|
9750
9759
|
},
|
|
9751
9760
|
t: t
|
|
9752
9761
|
})
|
|
9753
|
-
})
|
|
9754
|
-
style:
|
|
9755
|
-
|
|
9762
|
+
}), errors.lastVaccineDate && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9763
|
+
style: {
|
|
9764
|
+
fontSize: "12px",
|
|
9765
|
+
marginTop: "4px"
|
|
9766
|
+
}
|
|
9767
|
+
}, getErrorMessage("lastVaccineDate")))), /*#__PURE__*/React.createElement(LabelFieldPair, {
|
|
9756
9768
|
style: {
|
|
9757
9769
|
marginTop: "15px"
|
|
9758
9770
|
}
|
|
9759
9771
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9760
9772
|
className: "card-label-smaller"
|
|
9761
9773
|
}, t("PTR_VACCINATION_NUMBER"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
9762
|
-
className: "field"
|
|
9774
|
+
className: "form-field"
|
|
9763
9775
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9764
9776
|
control: control,
|
|
9765
9777
|
name: "vaccinationNumber",
|
|
@@ -9781,12 +9793,15 @@ const PTRCitizenPet = ({
|
|
|
9781
9793
|
onBlur: () => trigger("vaccinationNumber"),
|
|
9782
9794
|
t: t
|
|
9783
9795
|
})
|
|
9784
|
-
})
|
|
9785
|
-
style:
|
|
9786
|
-
|
|
9796
|
+
}), errors.vaccinationNumber && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9797
|
+
style: {
|
|
9798
|
+
fontSize: "12px",
|
|
9799
|
+
marginTop: "4px"
|
|
9800
|
+
}
|
|
9801
|
+
}, getErrorMessage("vaccinationNumber")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9787
9802
|
className: "card-label-smaller"
|
|
9788
9803
|
}, t("PTR_DOCTOR_NAME"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
9789
|
-
className: "field"
|
|
9804
|
+
className: "form-field"
|
|
9790
9805
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9791
9806
|
control: control,
|
|
9792
9807
|
name: "doctorName",
|
|
@@ -9811,12 +9826,15 @@ const PTRCitizenPet = ({
|
|
|
9811
9826
|
onBlur: () => trigger("doctorName"),
|
|
9812
9827
|
t: t
|
|
9813
9828
|
})
|
|
9814
|
-
})
|
|
9815
|
-
style:
|
|
9816
|
-
|
|
9829
|
+
}), errors.doctorName && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9830
|
+
style: {
|
|
9831
|
+
fontSize: "12px",
|
|
9832
|
+
marginTop: "4px"
|
|
9833
|
+
}
|
|
9834
|
+
}, getErrorMessage("doctorName")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
9817
9835
|
className: "card-label-smaller"
|
|
9818
9836
|
}, t("PTR_CLINIC_NAME"), " *"), /*#__PURE__*/React.createElement("div", {
|
|
9819
|
-
className: "field"
|
|
9837
|
+
className: "form-field"
|
|
9820
9838
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
9821
9839
|
control: control,
|
|
9822
9840
|
name: "clinicName",
|
|
@@ -9833,9 +9851,12 @@ const PTRCitizenPet = ({
|
|
|
9833
9851
|
onBlur: () => trigger("clinicName"),
|
|
9834
9852
|
t: t
|
|
9835
9853
|
})
|
|
9836
|
-
})
|
|
9837
|
-
style:
|
|
9838
|
-
|
|
9854
|
+
}), errors.clinicName && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
9855
|
+
style: {
|
|
9856
|
+
fontSize: "12px",
|
|
9857
|
+
marginTop: "4px"
|
|
9858
|
+
}
|
|
9859
|
+
}, getErrorMessage("clinicName")))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
9839
9860
|
label: "Back",
|
|
9840
9861
|
style: {
|
|
9841
9862
|
border: "1px solid",
|
|
@@ -17018,12 +17039,6 @@ const PTRCitizenDetails = ({
|
|
|
17018
17039
|
};
|
|
17019
17040
|
return fallbackMessages[fieldName] || t("PTR_FIELD_REQUIRED");
|
|
17020
17041
|
};
|
|
17021
|
-
const errorStyle = {
|
|
17022
|
-
width: "70%",
|
|
17023
|
-
marginLeft: "30%",
|
|
17024
|
-
fontSize: "12px",
|
|
17025
|
-
marginTop: "-18px"
|
|
17026
|
-
};
|
|
17027
17042
|
const handleMobileChange = async value => {
|
|
17028
17043
|
setLoader(true);
|
|
17029
17044
|
try {
|
|
@@ -17046,13 +17061,18 @@ const PTRCitizenDetails = ({
|
|
|
17046
17061
|
}
|
|
17047
17062
|
};
|
|
17048
17063
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("form", {
|
|
17064
|
+
className: "card",
|
|
17049
17065
|
onSubmit: handleSubmit(onSubmit)
|
|
17050
17066
|
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
17051
17067
|
className: "card-section-header"
|
|
17052
17068
|
}, t("PTR_CITIZEN_DETAILS")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
17053
17069
|
className: "card-label-smaller"
|
|
17054
17070
|
}, `${t("NOC_APPLICANT_MOBILE_NO_LABEL")}`, " *"), /*#__PURE__*/React.createElement("div", {
|
|
17055
|
-
className: "field"
|
|
17071
|
+
className: "form-field",
|
|
17072
|
+
style: {
|
|
17073
|
+
display: "flex",
|
|
17074
|
+
alignItems: "center"
|
|
17075
|
+
}
|
|
17056
17076
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17057
17077
|
control: control,
|
|
17058
17078
|
name: "mobileNumber",
|
|
@@ -17070,23 +17090,27 @@ const PTRCitizenDetails = ({
|
|
|
17070
17090
|
}) => /*#__PURE__*/React.createElement(MobileNumber, {
|
|
17071
17091
|
value: value,
|
|
17072
17092
|
onChange: e => {
|
|
17073
|
-
onChange(e);
|
|
17093
|
+
onChange(e.target.value);
|
|
17074
17094
|
setValue("name", "");
|
|
17075
|
-
if (e.length === 10) {
|
|
17076
|
-
handleMobileChange(e);
|
|
17095
|
+
if (e.target.value.length === 10) {
|
|
17096
|
+
handleMobileChange(e.target.value);
|
|
17077
17097
|
}
|
|
17078
17098
|
},
|
|
17079
17099
|
onBlur: e => {
|
|
17080
17100
|
onBlur(e);
|
|
17101
|
+
trigger("mobileNumber");
|
|
17081
17102
|
},
|
|
17082
17103
|
t: t
|
|
17083
17104
|
})
|
|
17084
|
-
})
|
|
17085
|
-
style:
|
|
17086
|
-
|
|
17105
|
+
}), errors.mobileNumber && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17106
|
+
style: {
|
|
17107
|
+
fontSize: "12px",
|
|
17108
|
+
marginTop: "4px"
|
|
17109
|
+
}
|
|
17110
|
+
}, getErrorMessage("mobileNumber")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
17087
17111
|
className: "card-label-smaller"
|
|
17088
17112
|
}, `${t("ES_NEW_APPLICATION_APPLICANT_NAME")}`, " *"), /*#__PURE__*/React.createElement("div", {
|
|
17089
|
-
className: "field"
|
|
17113
|
+
className: "form-field"
|
|
17090
17114
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17091
17115
|
control: control,
|
|
17092
17116
|
name: "name",
|
|
@@ -17118,12 +17142,15 @@ const PTRCitizenDetails = ({
|
|
|
17118
17142
|
},
|
|
17119
17143
|
t: t
|
|
17120
17144
|
})
|
|
17121
|
-
})
|
|
17122
|
-
style:
|
|
17123
|
-
|
|
17145
|
+
}), errors.name && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17146
|
+
style: {
|
|
17147
|
+
fontSize: "12px",
|
|
17148
|
+
marginTop: "4px"
|
|
17149
|
+
}
|
|
17150
|
+
}, getErrorMessage("name")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
17124
17151
|
className: "card-label-smaller"
|
|
17125
17152
|
}, `${t("NOC_APPLICANT_EMAIL_LABEL")}`, " *"), /*#__PURE__*/React.createElement("div", {
|
|
17126
|
-
className: "field"
|
|
17153
|
+
className: "form-field"
|
|
17127
17154
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17128
17155
|
control: control,
|
|
17129
17156
|
name: "emailId",
|
|
@@ -17151,12 +17178,15 @@ const PTRCitizenDetails = ({
|
|
|
17151
17178
|
},
|
|
17152
17179
|
t: t
|
|
17153
17180
|
})
|
|
17154
|
-
})
|
|
17155
|
-
style:
|
|
17156
|
-
|
|
17181
|
+
}), errors.emailId && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17182
|
+
style: {
|
|
17183
|
+
fontSize: "12px",
|
|
17184
|
+
marginTop: "4px"
|
|
17185
|
+
}
|
|
17186
|
+
}, getErrorMessage("emailId")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
17157
17187
|
className: "card-label-smaller"
|
|
17158
17188
|
}, `${t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_FATHER_HUSBAND")}`, " *"), /*#__PURE__*/React.createElement("div", {
|
|
17159
|
-
className: "field"
|
|
17189
|
+
className: "form-field"
|
|
17160
17190
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17161
17191
|
control: control,
|
|
17162
17192
|
name: "fatherOrHusbandName",
|
|
@@ -17188,12 +17218,15 @@ const PTRCitizenDetails = ({
|
|
|
17188
17218
|
},
|
|
17189
17219
|
t: t
|
|
17190
17220
|
})
|
|
17191
|
-
})
|
|
17192
|
-
style:
|
|
17193
|
-
|
|
17221
|
+
}), errors.fatherOrHusbandName && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17222
|
+
style: {
|
|
17223
|
+
fontSize: "12px",
|
|
17224
|
+
marginTop: "4px"
|
|
17225
|
+
}
|
|
17226
|
+
}, getErrorMessage("fatherOrHusbandName")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
17194
17227
|
className: "card-label-smaller"
|
|
17195
17228
|
}, `${t("PT_COMMON_COL_ADDRESS")}`, " *"), /*#__PURE__*/React.createElement("div", {
|
|
17196
|
-
className: "field"
|
|
17229
|
+
className: "form-field"
|
|
17197
17230
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17198
17231
|
control: control,
|
|
17199
17232
|
name: "address",
|
|
@@ -17225,12 +17258,15 @@ const PTRCitizenDetails = ({
|
|
|
17225
17258
|
},
|
|
17226
17259
|
t: t
|
|
17227
17260
|
})
|
|
17228
|
-
})
|
|
17229
|
-
style:
|
|
17230
|
-
|
|
17261
|
+
}), errors.address && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17262
|
+
style: {
|
|
17263
|
+
fontSize: "12px",
|
|
17264
|
+
marginTop: "4px"
|
|
17265
|
+
}
|
|
17266
|
+
}, getErrorMessage("address")))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
17231
17267
|
className: "card-label-smaller"
|
|
17232
17268
|
}, `${t("CORE_COMMON_PINCODE")}`, " *"), /*#__PURE__*/React.createElement("div", {
|
|
17233
|
-
className: "field"
|
|
17269
|
+
className: "form-field"
|
|
17234
17270
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17235
17271
|
control: control,
|
|
17236
17272
|
name: "pincode",
|
|
@@ -17255,9 +17291,12 @@ const PTRCitizenDetails = ({
|
|
|
17255
17291
|
},
|
|
17256
17292
|
t: t
|
|
17257
17293
|
})
|
|
17258
|
-
})
|
|
17259
|
-
style:
|
|
17260
|
-
|
|
17294
|
+
}), errors.pincode && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17295
|
+
style: {
|
|
17296
|
+
fontSize: "12px",
|
|
17297
|
+
marginTop: "4px"
|
|
17298
|
+
}
|
|
17299
|
+
}, getErrorMessage("pincode")))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
17261
17300
|
label: t("Next"),
|
|
17262
17301
|
submit: "submit"
|
|
17263
17302
|
}))), loader && /*#__PURE__*/React.createElement(Loader, {
|
|
@@ -18410,6 +18449,7 @@ const PTRModal = ({
|
|
|
18410
18449
|
formId: "modal-action"
|
|
18411
18450
|
}, /*#__PURE__*/React.createElement(FormComposer, {
|
|
18412
18451
|
config: config.form,
|
|
18452
|
+
className: "BPAemployeeCard bpa-workflow-modal-form",
|
|
18413
18453
|
noBoxShadow: true,
|
|
18414
18454
|
inline: true,
|
|
18415
18455
|
childrenAtTheBottom: true,
|
|
@@ -18522,7 +18562,6 @@ function NewApplicationTimeline({
|
|
|
18522
18562
|
};
|
|
18523
18563
|
const data = useMemo(() => normalizeTimeline(workflowDetails), [workflowDetails]);
|
|
18524
18564
|
const sortedData = (data === null || data === void 0 ? void 0 : data.filter(val => !((val === null || val === void 0 ? void 0 : val.performedAction) === "SAVE_AS_DRAFT"))) || [];
|
|
18525
|
-
console.log("sortedData", sortedData);
|
|
18526
18565
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
18527
18566
|
className: "custom-timeline-container"
|
|
18528
18567
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -19281,10 +19320,7 @@ const PetApplication = ({
|
|
|
19281
19320
|
keyValue: t("PT_COMMON_TABLE_COL_STATUS_LABEL"),
|
|
19282
19321
|
note: t(`PTR_COMMON_${application === null || application === void 0 ? void 0 : application.status}`)
|
|
19283
19322
|
}), /*#__PURE__*/React.createElement("div", {
|
|
19284
|
-
|
|
19285
|
-
display: "flex",
|
|
19286
|
-
gap: "20px"
|
|
19287
|
-
}
|
|
19323
|
+
className: "action-button-myapplication"
|
|
19288
19324
|
}, (application === null || application === void 0 ? void 0 : application.status) == "Pending" ? /*#__PURE__*/React.createElement(Link, {
|
|
19289
19325
|
to: `/digit-ui/citizen/payment/collect/PTR/${application === null || application === void 0 ? void 0 : application.applicationNumber}/${application === null || application === void 0 ? void 0 : application.tenantId}`
|
|
19290
19326
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
@@ -22692,10 +22728,9 @@ const SearchApplication = ({
|
|
|
22692
22728
|
}, /*#__PURE__*/React.createElement("h2", null, t("ES_COMMON_SEARCH_BY")), /*#__PURE__*/React.createElement("span", {
|
|
22693
22729
|
onClick: onClose
|
|
22694
22730
|
}, /*#__PURE__*/React.createElement(CloseSvg, null))), /*#__PURE__*/React.createElement("div", {
|
|
22695
|
-
className: "complaint-input-container
|
|
22731
|
+
className: "complaint-input-container",
|
|
22696
22732
|
style: {
|
|
22697
|
-
|
|
22698
|
-
display: "grid"
|
|
22733
|
+
textAlign: "start"
|
|
22699
22734
|
}
|
|
22700
22735
|
}, searchFields === null || searchFields === void 0 ? void 0 : (_searchFields$filter = searchFields.filter(e => true)) === null || _searchFields$filter === void 0 ? void 0 : _searchFields$filter.map((input, index) => {
|
|
22701
22736
|
var _formState$dirtyField, _formState$errors, _formState$errors$inp;
|
|
@@ -22703,8 +22738,12 @@ const SearchApplication = ({
|
|
|
22703
22738
|
key: input.name,
|
|
22704
22739
|
className: "input-fields"
|
|
22705
22740
|
}, /*#__PURE__*/React.createElement("span", {
|
|
22706
|
-
className: "
|
|
22707
|
-
}, /*#__PURE__*/React.createElement(
|
|
22741
|
+
className: "complaint-input"
|
|
22742
|
+
}, /*#__PURE__*/React.createElement("h4", {
|
|
22743
|
+
className: "h4"
|
|
22744
|
+
}, t(input.label) + ` ${input.isMendatory ? "*" : ""}`), /*#__PURE__*/React.createElement("div", {
|
|
22745
|
+
className: "text-input undefined"
|
|
22746
|
+
}, !input.type ? /*#__PURE__*/React.createElement(Controller, {
|
|
22708
22747
|
render: props => {
|
|
22709
22748
|
return /*#__PURE__*/React.createElement(TextInput, {
|
|
22710
22749
|
onChange: props.onChange,
|
|
@@ -22727,7 +22766,7 @@ const SearchApplication = ({
|
|
|
22727
22766
|
name: input.name,
|
|
22728
22767
|
control: control,
|
|
22729
22768
|
defaultValue: ""
|
|
22730
|
-
})), formState !== null && formState !== void 0 && (_formState$dirtyField = formState.dirtyFields) !== null && _formState$dirtyField !== void 0 && _formState$dirtyField[input.name] ? /*#__PURE__*/React.createElement("span", {
|
|
22769
|
+
}))), formState !== null && formState !== void 0 && (_formState$dirtyField = formState.dirtyFields) !== null && _formState$dirtyField !== void 0 && _formState$dirtyField[input.name] ? /*#__PURE__*/React.createElement("span", {
|
|
22731
22770
|
style: {
|
|
22732
22771
|
fontWeight: "700",
|
|
22733
22772
|
color: "rgba(212, 53, 28)",
|
|
@@ -22738,24 +22777,36 @@ const SearchApplication = ({
|
|
|
22738
22777
|
className: "inbox-search-form-error"
|
|
22739
22778
|
}, formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : (_formState$errors$inp = _formState$errors[input.name]) === null || _formState$errors$inp === void 0 ? void 0 : _formState$errors$inp.message) : null);
|
|
22740
22779
|
}), isInboxPage && /*#__PURE__*/React.createElement("div", {
|
|
22780
|
+
className: "search-action-wrapper",
|
|
22741
22781
|
style: {
|
|
22742
|
-
|
|
22743
|
-
|
|
22744
|
-
|
|
22745
|
-
|
|
22746
|
-
|
|
22747
|
-
|
|
22782
|
+
width: "100%"
|
|
22783
|
+
}
|
|
22784
|
+
}, type === "desktop" && !mobileView && /*#__PURE__*/React.createElement(SubmitBar, {
|
|
22785
|
+
className: "submit-bar-search",
|
|
22786
|
+
label: t("ES_COMMON_SEARCH"),
|
|
22787
|
+
submit: true
|
|
22788
|
+
}), type === "desktop" && !mobileView && /*#__PURE__*/React.createElement("span", {
|
|
22748
22789
|
style: {
|
|
22749
|
-
|
|
22750
|
-
marginLeft: "unset"
|
|
22790
|
+
paddingTop: "9px"
|
|
22751
22791
|
},
|
|
22752
|
-
className: "search
|
|
22792
|
+
className: "clear-search"
|
|
22793
|
+
}, clearAll())), type === "desktop" && !mobileView && !isInboxPage && /*#__PURE__*/React.createElement("div", {
|
|
22794
|
+
className: "search-action-wrapper"
|
|
22753
22795
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
22754
22796
|
className: "submit-bar-search",
|
|
22755
22797
|
label: t("ES_COMMON_SEARCH"),
|
|
22756
22798
|
disabled: !!Object.keys(formState.errors).length || formValueEmpty(),
|
|
22757
22799
|
submit: true
|
|
22758
|
-
}),
|
|
22800
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
22801
|
+
style: {
|
|
22802
|
+
width: "100%",
|
|
22803
|
+
textAlign: "right",
|
|
22804
|
+
width: "240px",
|
|
22805
|
+
textAlign: "right",
|
|
22806
|
+
marginLeft: "96px",
|
|
22807
|
+
marginTop: "8px"
|
|
22808
|
+
}
|
|
22809
|
+
}, clearAll()))))), (type === "mobile" || mobileView) && /*#__PURE__*/React.createElement(ActionBar, {
|
|
22759
22810
|
className: "clear-search-container"
|
|
22760
22811
|
}, /*#__PURE__*/React.createElement("button", {
|
|
22761
22812
|
className: "clear-search",
|