@mseva/digit-ui-module-ptr 1.0.73 → 1.0.75
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 +76 -106
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -3
package/dist/index.modern.js
CHANGED
|
@@ -6565,7 +6565,7 @@ const OwnerForm$1 = _props => {
|
|
|
6565
6565
|
}
|
|
6566
6566
|
}, "X") : null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
6567
6567
|
className: "card-label-smaller"
|
|
6568
|
-
}, t("
|
|
6568
|
+
}, t("REPORT_FSM_RESULT_APPLICANTNAME") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
6569
6569
|
className: "field"
|
|
6570
6570
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
6571
6571
|
control: control,
|
|
@@ -6631,7 +6631,7 @@ const OwnerForm$1 = _props => {
|
|
|
6631
6631
|
style: errorStyle
|
|
6632
6632
|
}, localFormState.touched.fatherName ? errors === null || errors === void 0 ? void 0 : (_errors$fatherName = errors.fatherName) === null || _errors$fatherName === void 0 ? void 0 : _errors$fatherName.message : ""), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
6633
6633
|
className: "card-label-smaller"
|
|
6634
|
-
}, t("
|
|
6634
|
+
}, t("PT_FORM3_MOBILE_NUMBER") + " *"), /*#__PURE__*/React.createElement("div", {
|
|
6635
6635
|
className: "field"
|
|
6636
6636
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
6637
6637
|
control: control,
|
|
@@ -6699,7 +6699,7 @@ const OwnerForm$1 = _props => {
|
|
|
6699
6699
|
validate: value => {
|
|
6700
6700
|
const normalized = value.trim().toLowerCase();
|
|
6701
6701
|
const emailRegex = /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
|
|
6702
|
-
return emailRegex.test(normalized) ||
|
|
6702
|
+
return emailRegex.test(normalized) || "TL_EMAIL_ID_ERROR_MESSAGE";
|
|
6703
6703
|
}
|
|
6704
6704
|
},
|
|
6705
6705
|
render: props => /*#__PURE__*/React.createElement(TextInput, {
|
|
@@ -6851,9 +6851,9 @@ const PTRCitizenPet = ({
|
|
|
6851
6851
|
});
|
|
6852
6852
|
}
|
|
6853
6853
|
}, [currentStepData, setValue]);
|
|
6854
|
-
const onlyAlphabets = /^[A-Za-z\s]
|
|
6855
|
-
const onlyNumbers = /^[0-9]
|
|
6856
|
-
const alphaNum = /^[A-Za-z0-9]
|
|
6854
|
+
const onlyAlphabets = /^[A-Za-z\s]+$/;
|
|
6855
|
+
const onlyNumbers = /^[0-9]+$/;
|
|
6856
|
+
const alphaNum = /^[A-Za-z0-9]+$/;
|
|
6857
6857
|
const getErrorMessage = fieldName => {
|
|
6858
6858
|
var _errors$fieldName;
|
|
6859
6859
|
if (!errors[fieldName]) return null;
|
|
@@ -6861,9 +6861,8 @@ const PTRCitizenPet = ({
|
|
|
6861
6861
|
};
|
|
6862
6862
|
const errorStyle = {
|
|
6863
6863
|
width: "70%",
|
|
6864
|
-
marginLeft: "2%",
|
|
6865
6864
|
fontSize: "12px",
|
|
6866
|
-
marginTop: "-
|
|
6865
|
+
marginTop: "-18px"
|
|
6867
6866
|
};
|
|
6868
6867
|
return /*#__PURE__*/React.createElement("form", {
|
|
6869
6868
|
onSubmit: handleSubmit(onSubmit)
|
|
@@ -6919,7 +6918,7 @@ const PTRCitizenPet = ({
|
|
|
6919
6918
|
}
|
|
6920
6919
|
}), errors.breedType && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
6921
6920
|
style: errorStyle
|
|
6922
|
-
}, getErrorMessage("breedType")), /*#__PURE__*/React.createElement(CardLabel, null, t("PTR_PET_GENDER"), " *"),
|
|
6921
|
+
}, getErrorMessage("breedType")), /*#__PURE__*/React.createElement(CardLabel, null, t("PTR_PET_GENDER"), " *"), /*#__PURE__*/React.createElement(Controller, {
|
|
6923
6922
|
control: control,
|
|
6924
6923
|
name: "petGender",
|
|
6925
6924
|
rules: {
|
|
@@ -6934,7 +6933,7 @@ const PTRCitizenPet = ({
|
|
|
6934
6933
|
})
|
|
6935
6934
|
}), errors.petGender && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
6936
6935
|
style: errorStyle
|
|
6937
|
-
}, getErrorMessage("petGender")), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PTR_COLOR")}
|
|
6936
|
+
}, getErrorMessage("petGender")), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PTR_COLOR")}`, " *"), /*#__PURE__*/React.createElement(Controller, {
|
|
6938
6937
|
control: control,
|
|
6939
6938
|
name: "petColor",
|
|
6940
6939
|
rules: {
|
|
@@ -14161,11 +14160,17 @@ const PTRCitizenDetails = ({
|
|
|
14161
14160
|
currentStepData,
|
|
14162
14161
|
validateStep
|
|
14163
14162
|
}) => {
|
|
14164
|
-
var _userInfo$info;
|
|
14165
14163
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
14166
14164
|
const stateId = Digit.ULBService.getStateId();
|
|
14167
14165
|
const userInfo = Digit.UserService.getUser();
|
|
14168
|
-
|
|
14166
|
+
console.log("userInfo?.info", userInfo === null || userInfo === void 0 ? void 0 : userInfo.info);
|
|
14167
|
+
const {
|
|
14168
|
+
mobileNumber,
|
|
14169
|
+
emailId,
|
|
14170
|
+
name
|
|
14171
|
+
} = userInfo === null || userInfo === void 0 ? void 0 : userInfo.info;
|
|
14172
|
+
const [firstName, lastName] = [(name || "").trim().split(" ").slice(0, -1).join(" "), (name || "").trim().split(" ").slice(-1).join(" ")];
|
|
14173
|
+
const isCitizen = window.location.href.includes("citizen");
|
|
14169
14174
|
const {
|
|
14170
14175
|
control,
|
|
14171
14176
|
handleSubmit,
|
|
@@ -14175,9 +14180,12 @@ const PTRCitizenDetails = ({
|
|
|
14175
14180
|
},
|
|
14176
14181
|
trigger
|
|
14177
14182
|
} = useForm({
|
|
14178
|
-
defaultValues: {
|
|
14179
|
-
mobileNumber: mobileNumber || ""
|
|
14180
|
-
|
|
14183
|
+
defaultValues: isCitizen ? {
|
|
14184
|
+
mobileNumber: mobileNumber || "",
|
|
14185
|
+
emailId: emailId || "",
|
|
14186
|
+
firstName: firstName || "",
|
|
14187
|
+
lastName: lastName || ""
|
|
14188
|
+
} : {}
|
|
14181
14189
|
});
|
|
14182
14190
|
const onSubmit = data => {
|
|
14183
14191
|
if (validateStep) {
|
|
@@ -14213,9 +14221,8 @@ const PTRCitizenDetails = ({
|
|
|
14213
14221
|
};
|
|
14214
14222
|
const errorStyle = {
|
|
14215
14223
|
width: "70%",
|
|
14216
|
-
marginLeft: "2%",
|
|
14217
14224
|
fontSize: "12px",
|
|
14218
|
-
marginTop: "-
|
|
14225
|
+
marginTop: "-18px"
|
|
14219
14226
|
};
|
|
14220
14227
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("form", {
|
|
14221
14228
|
onSubmit: handleSubmit(onSubmit)
|
|
@@ -14227,14 +14234,6 @@ const PTRCitizenDetails = ({
|
|
|
14227
14234
|
pattern: {
|
|
14228
14235
|
value: /^[A-Za-z]+(?:[ '-][A-Za-z]+)*\s*$/,
|
|
14229
14236
|
message: t("PTR_FIRST_NAME_INVALID")
|
|
14230
|
-
},
|
|
14231
|
-
minLength: {
|
|
14232
|
-
value: 3,
|
|
14233
|
-
message: t("PTR_FIRST_NAME_MIN_LENGTH")
|
|
14234
|
-
},
|
|
14235
|
-
maxLength: {
|
|
14236
|
-
value: 40,
|
|
14237
|
-
message: t("PTR_FIRST_NAME_MAX_LENGTH")
|
|
14238
14237
|
}
|
|
14239
14238
|
},
|
|
14240
14239
|
render: ({
|
|
@@ -14260,14 +14259,6 @@ const PTRCitizenDetails = ({
|
|
|
14260
14259
|
pattern: {
|
|
14261
14260
|
value: /^[A-Za-z]+(?:[ '-][A-Za-z]+)*\s*$/,
|
|
14262
14261
|
message: t("PTR_FIRST_NAME_INVALID")
|
|
14263
|
-
},
|
|
14264
|
-
minLength: {
|
|
14265
|
-
value: 3,
|
|
14266
|
-
message: t("PTR_LAST_NAME_MIN_LENGTH")
|
|
14267
|
-
},
|
|
14268
|
-
maxLength: {
|
|
14269
|
-
value: 40,
|
|
14270
|
-
message: t("PTR_LAST_NAME_MAX_LENGTH")
|
|
14271
14262
|
}
|
|
14272
14263
|
},
|
|
14273
14264
|
render: ({
|
|
@@ -14355,14 +14346,6 @@ const PTRCitizenDetails = ({
|
|
|
14355
14346
|
pattern: {
|
|
14356
14347
|
value: /^[A-Za-z]+(?:[ '-][A-Za-z]+)*\s*$/,
|
|
14357
14348
|
message: t("PTR_FATHER_HUSBAND_NAME_INVALID")
|
|
14358
|
-
},
|
|
14359
|
-
minLength: {
|
|
14360
|
-
value: 1,
|
|
14361
|
-
message: t("PTR_FATHER_HUSBAND_NAME_MIN_LENGTH")
|
|
14362
|
-
},
|
|
14363
|
-
maxLength: {
|
|
14364
|
-
value: 50,
|
|
14365
|
-
message: t("PTR_FATHER_HUSBAND_NAME_MAX_LENGTH")
|
|
14366
14349
|
}
|
|
14367
14350
|
},
|
|
14368
14351
|
render: ({
|
|
@@ -14380,22 +14363,14 @@ const PTRCitizenDetails = ({
|
|
|
14380
14363
|
})
|
|
14381
14364
|
}), errors.fatherOrHusbandName && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
14382
14365
|
style: errorStyle
|
|
14383
|
-
}, getErrorMessage("fatherOrHusbandName")), /*#__PURE__*/React.createElement(CardLabel, null, `${t("
|
|
14366
|
+
}, getErrorMessage("fatherOrHusbandName")), /*#__PURE__*/React.createElement(CardLabel, null, `${t("PROPERTY_ADDRESS")}`, " *"), /*#__PURE__*/React.createElement(Controller, {
|
|
14384
14367
|
control: control,
|
|
14385
14368
|
name: "address",
|
|
14386
14369
|
rules: {
|
|
14387
|
-
required: t("
|
|
14370
|
+
required: t("NDC_MESSAGE_ADDRESS"),
|
|
14388
14371
|
pattern: {
|
|
14389
|
-
value: /^[A-Za-z0-9\s.,'/-]
|
|
14372
|
+
value: /^[A-Za-z0-9\s.,'/-]+$/,
|
|
14390
14373
|
message: t("PTR_ADDRESS_INVALID")
|
|
14391
|
-
},
|
|
14392
|
-
minLength: {
|
|
14393
|
-
value: 10,
|
|
14394
|
-
message: t("PTR_ADDRESS_MIN_LENGTH")
|
|
14395
|
-
},
|
|
14396
|
-
maxLength: {
|
|
14397
|
-
value: 500,
|
|
14398
|
-
message: t("PTR_ADDRESS_MAX_LENGTH")
|
|
14399
14374
|
}
|
|
14400
14375
|
},
|
|
14401
14376
|
render: ({
|
|
@@ -14413,7 +14388,7 @@ const PTRCitizenDetails = ({
|
|
|
14413
14388
|
})
|
|
14414
14389
|
}), errors.address && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
14415
14390
|
style: errorStyle
|
|
14416
|
-
}, getErrorMessage("address")), /*#__PURE__*/React.createElement(CardLabel, null, `${t("
|
|
14391
|
+
}, getErrorMessage("address")), /*#__PURE__*/React.createElement(CardLabel, null, `${t("CORE_COMMON_PINCODE")}`, " *"), /*#__PURE__*/React.createElement(Controller, {
|
|
14417
14392
|
control: control,
|
|
14418
14393
|
name: "pincode",
|
|
14419
14394
|
rules: {
|
|
@@ -15853,7 +15828,7 @@ const CheckPage = ({
|
|
|
15853
15828
|
return /*#__PURE__*/React.createElement(React.Fragment, null, window.location.href.includes("/citizen") ? /*#__PURE__*/React.createElement(Timeline, {
|
|
15854
15829
|
currentStep: 5
|
|
15855
15830
|
}) : null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t("PTR_CHECK_YOUR_DETAILS")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardSubHeader, null, t("ES_TITILE_OWNER_DETAILS")), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
15856
|
-
label: t("
|
|
15831
|
+
label: t("REPORT_FSM_RESULT_APPLICANTNAME"),
|
|
15857
15832
|
text: `${t(checkForNA(ownerss === null || ownerss === void 0 ? void 0 : ownerss.applicantName))}`,
|
|
15858
15833
|
actionButton: /*#__PURE__*/React.createElement(ActionButton, {
|
|
15859
15834
|
jumpTo: `/digit-ui/citizen/ptr/petservice/${typeOfApplication}/owners`
|
|
@@ -15865,7 +15840,7 @@ const CheckPage = ({
|
|
|
15865
15840
|
jumpTo: `/digit-ui/citizen/ptr/petservice/${typeOfApplication}/owners`
|
|
15866
15841
|
})
|
|
15867
15842
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
15868
|
-
label: t("
|
|
15843
|
+
label: t("PT_FORM3_MOBILE_NUMBER"),
|
|
15869
15844
|
text: `${t(checkForNA(ownerss === null || ownerss === void 0 ? void 0 : ownerss.mobileNumber))}`,
|
|
15870
15845
|
actionButton: /*#__PURE__*/React.createElement(ActionButton, {
|
|
15871
15846
|
jumpTo: `/digit-ui/citizen/ptr/petservice/${typeOfApplication}/owners`
|
|
@@ -15968,10 +15943,10 @@ const getAssessmentInfo = (application, t) => {
|
|
|
15968
15943
|
title: t("PTR_PET_NAME"),
|
|
15969
15944
|
value: application === null || application === void 0 ? void 0 : application.petDetails.petName
|
|
15970
15945
|
}, {
|
|
15971
|
-
title: t("
|
|
15946
|
+
title: t("PTR_SEARCH_PET_TYPE"),
|
|
15972
15947
|
value: application === null || application === void 0 ? void 0 : application.petDetails.petType
|
|
15973
15948
|
}, {
|
|
15974
|
-
title: t("
|
|
15949
|
+
title: t("PTR_SEARCH_BREED_TYPE"),
|
|
15975
15950
|
value: application === null || application === void 0 ? void 0 : application.petDetails.breedType
|
|
15976
15951
|
}, {
|
|
15977
15952
|
title: t("PTR_VACCINATED_DATE"),
|
|
@@ -16011,16 +15986,16 @@ const getPetAcknowledgementData = async (application, tenantInfo, t) => {
|
|
|
16011
15986
|
details: [{
|
|
16012
15987
|
title: t("CS_TITLE_APPLICATION_DETAILS"),
|
|
16013
15988
|
values: [{
|
|
16014
|
-
title: t("
|
|
15989
|
+
title: t("REPORT_FSM_RESULT_APPLICATION_NO"),
|
|
16015
15990
|
value: application === null || application === void 0 ? void 0 : application.applicationNumber
|
|
16016
15991
|
}, {
|
|
16017
|
-
title: t("
|
|
15992
|
+
title: t("REPORT_FSM_RESULT_APPLICANTNAME"),
|
|
16018
15993
|
value: application === null || application === void 0 ? void 0 : application.applicantName
|
|
16019
15994
|
}, {
|
|
16020
15995
|
title: t("CS_APPLICATION_DETAILS_APPLICATION_DATE"),
|
|
16021
15996
|
value: Digit.DateUtils.ConvertTimestampToDate(application === null || application === void 0 ? void 0 : (_application$auditDet = application.auditDetails) === null || _application$auditDet === void 0 ? void 0 : _application$auditDet.createdTime, "dd/MM/yyyy")
|
|
16022
15997
|
}, {
|
|
16023
|
-
title: t("
|
|
15998
|
+
title: t("PT_FORM3_MOBILE_NUMBER"),
|
|
16024
15999
|
value: application === null || application === void 0 ? void 0 : application.mobileNumber
|
|
16025
16000
|
}, {
|
|
16026
16001
|
title: t("PTR_EMAIL_ID"),
|
|
@@ -16145,10 +16120,10 @@ const PetApplication = ({
|
|
|
16145
16120
|
console.log("application?.applicationNumber", application === null || application === void 0 ? void 0 : application.applicationNumber);
|
|
16146
16121
|
console.log("application?.status", application === null || application === void 0 ? void 0 : application.status);
|
|
16147
16122
|
return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(KeyNote, {
|
|
16148
|
-
keyValue: t("
|
|
16123
|
+
keyValue: t("PDF_STATIC_LABEL_APPLICATION_NUMBER_LABEL"),
|
|
16149
16124
|
note: application === null || application === void 0 ? void 0 : application.applicationNumber
|
|
16150
16125
|
}), /*#__PURE__*/React.createElement(KeyNote, {
|
|
16151
|
-
keyValue: t("
|
|
16126
|
+
keyValue: t("REPORT_FSM_RESULT_APPLICANTNAME"),
|
|
16152
16127
|
note: application === null || application === void 0 ? void 0 : application.applicantName
|
|
16153
16128
|
}), /*#__PURE__*/React.createElement(KeyNote, {
|
|
16154
16129
|
keyValue: t("PTR_APPLICATION_CATEGORY"),
|
|
@@ -16987,20 +16962,20 @@ const PTRApplicationDetails = () => {
|
|
|
16987
16962
|
styles: {
|
|
16988
16963
|
fontSize: "32px"
|
|
16989
16964
|
}
|
|
16990
|
-
}, t("
|
|
16965
|
+
}, t("CS_APPLICATION_DETAILS")), (PetRegistrationApplications === null || PetRegistrationApplications === void 0 ? void 0 : PetRegistrationApplications.status) == "approved" && dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
|
|
16991
16966
|
className: "multilinkWrapper",
|
|
16992
16967
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
16993
16968
|
displayOptions: showOptions,
|
|
16994
16969
|
options: dowloadOptions
|
|
16995
16970
|
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
16996
16971
|
className: "border-none",
|
|
16997
|
-
label: t("
|
|
16972
|
+
label: t("PDF_STATIC_LABEL_APPLICATION_NUMBER_LABEL"),
|
|
16998
16973
|
text: pet_details === null || pet_details === void 0 ? void 0 : pet_details.applicationNumber
|
|
16999
16974
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
17000
16975
|
style: {
|
|
17001
16976
|
fontSize: "24px"
|
|
17002
16977
|
}
|
|
17003
|
-
}, t("
|
|
16978
|
+
}, t("WS_COMMON_TABLE_COL_ADDRESS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
17004
16979
|
className: "border-none",
|
|
17005
16980
|
label: t("PTR_ADDRESS"),
|
|
17006
16981
|
text: (pet_details === null || pet_details === void 0 ? void 0 : (_pet_details$address = pet_details.address) === null || _pet_details$address === void 0 ? void 0 : _pet_details$address.addressId) || t("CS_NA")
|
|
@@ -17012,33 +16987,33 @@ const PTRApplicationDetails = () => {
|
|
|
17012
16987
|
style: {
|
|
17013
16988
|
fontSize: "24px"
|
|
17014
16989
|
}
|
|
17015
|
-
}, t("
|
|
16990
|
+
}, t("ES_TITLE_APPLICANT_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
17016
16991
|
className: "border-none",
|
|
17017
|
-
label: t("
|
|
16992
|
+
label: t("REPORT_FSM_RESULT_APPLICANTNAME"),
|
|
17018
16993
|
text: (pet_details === null || pet_details === void 0 ? void 0 : pet_details.applicantName) || t("CS_NA")
|
|
17019
16994
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
17020
16995
|
className: "border-none",
|
|
17021
|
-
label: t("
|
|
16996
|
+
label: t("NOC_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
17022
16997
|
text: (pet_details === null || pet_details === void 0 ? void 0 : pet_details.fatherName) || (pet_details === null || pet_details === void 0 ? void 0 : pet_details.fatherOrHusbandName) || t("CS_NA")
|
|
17023
16998
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
17024
16999
|
className: "border-none",
|
|
17025
|
-
label: t("
|
|
17000
|
+
label: t("MOBILE"),
|
|
17026
17001
|
text: (pet_details === null || pet_details === void 0 ? void 0 : pet_details.mobileNumber) || t("CS_NA")
|
|
17027
17002
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
17028
17003
|
className: "border-none",
|
|
17029
|
-
label: t("
|
|
17004
|
+
label: t("CORE_COMMON_PROFILE_EMAIL"),
|
|
17030
17005
|
text: (pet_details === null || pet_details === void 0 ? void 0 : pet_details.emailId) || t("CS_NA")
|
|
17031
17006
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
17032
17007
|
style: {
|
|
17033
17008
|
fontSize: "24px"
|
|
17034
17009
|
}
|
|
17035
|
-
}, t("
|
|
17010
|
+
}, t("ES_TITILE_PET_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
17036
17011
|
className: "border-none",
|
|
17037
|
-
label: t("
|
|
17012
|
+
label: t("PTR_SEARCH_PET_TYPE"),
|
|
17038
17013
|
text: (pet_details === null || pet_details === void 0 ? void 0 : (_pet_details$petDetai = pet_details.petDetails) === null || _pet_details$petDetai === void 0 ? void 0 : _pet_details$petDetai.petType) || t("CS_NA")
|
|
17039
17014
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
17040
17015
|
className: "border-none",
|
|
17041
|
-
label: t("
|
|
17016
|
+
label: t("PTR_SEARCH_BREED_TYPE"),
|
|
17042
17017
|
text: (pet_details === null || pet_details === void 0 ? void 0 : (_pet_details$petDetai2 = pet_details.petDetails) === null || _pet_details$petDetai2 === void 0 ? void 0 : _pet_details$petDetai2.breedType) || t("CS_NA")
|
|
17043
17018
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
17044
17019
|
className: "border-none",
|
|
@@ -17060,7 +17035,7 @@ const PTRApplicationDetails = () => {
|
|
|
17060
17035
|
style: {
|
|
17061
17036
|
fontSize: "24px"
|
|
17062
17037
|
}
|
|
17063
|
-
}, t("
|
|
17038
|
+
}, t("ES_TITLE_DOCS")), /*#__PURE__*/React.createElement("div", null, Array.isArray(application === null || application === void 0 ? void 0 : application.documents) && application.documents.length > 0 ? /*#__PURE__*/React.createElement(PTRDocument, {
|
|
17064
17039
|
petdetail: {
|
|
17065
17040
|
documents: application.documents,
|
|
17066
17041
|
applicationNumber: application.applicationNumber
|
|
@@ -17955,7 +17930,7 @@ const PTRSearchApplication = ({
|
|
|
17955
17930
|
className: "cell-text"
|
|
17956
17931
|
}, value);
|
|
17957
17932
|
const columns = useMemo(() => [{
|
|
17958
|
-
Header: t("
|
|
17933
|
+
Header: t("REPORT_FSM_RESULT_APPLICATION_NO"),
|
|
17959
17934
|
accessor: "applicationNumber",
|
|
17960
17935
|
disableSortBy: true,
|
|
17961
17936
|
Cell: ({
|
|
@@ -17968,14 +17943,14 @@ const PTRSearchApplication = ({
|
|
|
17968
17943
|
}, row.original["applicationNumber"])));
|
|
17969
17944
|
}
|
|
17970
17945
|
}, {
|
|
17971
|
-
Header: t("
|
|
17946
|
+
Header: t("REPORT_FSM_RESULT_APPLICANTNAME"),
|
|
17972
17947
|
Cell: row => {
|
|
17973
17948
|
var _row$row, _row$row$original;
|
|
17974
17949
|
return GetCell(`${row === null || row === void 0 ? void 0 : (_row$row = row.row) === null || _row$row === void 0 ? void 0 : (_row$row$original = _row$row.original) === null || _row$row$original === void 0 ? void 0 : _row$row$original["applicantName"]}`);
|
|
17975
17950
|
},
|
|
17976
17951
|
disableSortBy: true
|
|
17977
17952
|
}, {
|
|
17978
|
-
Header: t("
|
|
17953
|
+
Header: t("PTR_SEARCH_PET_TYPE"),
|
|
17979
17954
|
Cell: ({
|
|
17980
17955
|
row
|
|
17981
17956
|
}) => {
|
|
@@ -17984,7 +17959,7 @@ const PTRSearchApplication = ({
|
|
|
17984
17959
|
},
|
|
17985
17960
|
disableSortBy: true
|
|
17986
17961
|
}, {
|
|
17987
|
-
Header: t("
|
|
17962
|
+
Header: t("PTR_SEARCH_BREED_TYPE"),
|
|
17988
17963
|
Cell: ({
|
|
17989
17964
|
row
|
|
17990
17965
|
}) => {
|
|
@@ -17993,7 +17968,7 @@ const PTRSearchApplication = ({
|
|
|
17993
17968
|
},
|
|
17994
17969
|
disableSortBy: true
|
|
17995
17970
|
}, {
|
|
17996
|
-
Header: t("
|
|
17971
|
+
Header: t("PT_FORM3_MOBILE_NUMBER"),
|
|
17997
17972
|
Cell: ({
|
|
17998
17973
|
row
|
|
17999
17974
|
}) => {
|
|
@@ -18028,7 +18003,7 @@ const PTRSearchApplication = ({
|
|
|
18028
18003
|
}, t("Provide at least one parameter to search for an application"))), /*#__PURE__*/React.createElement(SearchForm, {
|
|
18029
18004
|
onSubmit: onSubmit,
|
|
18030
18005
|
handleSubmit: handleSubmit
|
|
18031
|
-
}, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("
|
|
18006
|
+
}, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("PDF_STATIC_LABEL_APPLICATION_NUMBER_LABEL")), /*#__PURE__*/React.createElement(TextInput, {
|
|
18032
18007
|
name: "applicationNumber",
|
|
18033
18008
|
inputRef: register({})
|
|
18034
18009
|
})), /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("PTR_SEARCH_PET_TYPE")), /*#__PURE__*/React.createElement(Controller, {
|
|
@@ -18557,7 +18532,7 @@ const Filter = ({
|
|
|
18557
18532
|
const applyLocalFilters = () => {
|
|
18558
18533
|
onFilterChange({
|
|
18559
18534
|
..._searchParams,
|
|
18560
|
-
|
|
18535
|
+
wfFilters
|
|
18561
18536
|
});
|
|
18562
18537
|
};
|
|
18563
18538
|
const clearAll = () => {
|
|
@@ -18577,19 +18552,14 @@ const Filter = ({
|
|
|
18577
18552
|
};
|
|
18578
18553
|
const onRadioChange = value => {
|
|
18579
18554
|
setSelectedAssigned(value);
|
|
18580
|
-
const assigneeCode = value.code === "ASSIGNED_TO_ME" ? uuid : "";
|
|
18581
|
-
const updatedAssignee = [{
|
|
18582
|
-
code: assigneeCode
|
|
18583
|
-
}];
|
|
18584
18555
|
setWfFilters({
|
|
18585
|
-
|
|
18556
|
+
uuid: value
|
|
18586
18557
|
});
|
|
18587
18558
|
onFilterChange({
|
|
18588
18559
|
..._searchParams,
|
|
18589
|
-
|
|
18560
|
+
uuid: value
|
|
18590
18561
|
});
|
|
18591
18562
|
};
|
|
18592
|
-
console.log("statusMap", statusMap);
|
|
18593
18563
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
18594
18564
|
className: "filter"
|
|
18595
18565
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -18700,12 +18670,12 @@ const GetMobCell = value => /*#__PURE__*/React.createElement("span", {
|
|
|
18700
18670
|
const TableConfig = t => ({
|
|
18701
18671
|
PTR: {
|
|
18702
18672
|
inboxColumns: props => [{
|
|
18703
|
-
Header: t("
|
|
18673
|
+
Header: t("REPORT_FSM_RESULT_APPLICATION_NO"),
|
|
18704
18674
|
Cell: ({
|
|
18705
18675
|
row
|
|
18706
18676
|
}) => {
|
|
18707
18677
|
var _row$original, _row$original$searchD, _row$original2, _row$original2$search;
|
|
18708
|
-
console.log(
|
|
18678
|
+
console.log("row", row);
|
|
18709
18679
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
18710
18680
|
className: "link"
|
|
18711
18681
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
@@ -18717,7 +18687,7 @@ const TableConfig = t => ({
|
|
|
18717
18687
|
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData = original.searchData) === null || _original$searchData === void 0 ? void 0 : _original$searchData["applicationNumber"]);
|
|
18718
18688
|
}
|
|
18719
18689
|
}, {
|
|
18720
|
-
Header: t("
|
|
18690
|
+
Header: t("REPORT_FSM_RESULT_APPLICANTNAME"),
|
|
18721
18691
|
Cell: row => {
|
|
18722
18692
|
var _row$cell, _row$cell$row, _row$cell$row$origina, _row$cell$row$origina2;
|
|
18723
18693
|
return GetCell(`${row === null || row === void 0 ? void 0 : (_row$cell = row.cell) === null || _row$cell === void 0 ? void 0 : (_row$cell$row = _row$cell.row) === null || _row$cell$row === void 0 ? void 0 : (_row$cell$row$origina = _row$cell$row.original) === null || _row$cell$row$origina === void 0 ? void 0 : (_row$cell$row$origina2 = _row$cell$row$origina.searchData) === null || _row$cell$row$origina2 === void 0 ? void 0 : _row$cell$row$origina2["applicantName"]}`);
|
|
@@ -18727,7 +18697,7 @@ const TableConfig = t => ({
|
|
|
18727
18697
|
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData2 = original.searchData) === null || _original$searchData2 === void 0 ? void 0 : _original$searchData2["applicantName"]);
|
|
18728
18698
|
}
|
|
18729
18699
|
}, {
|
|
18730
|
-
Header: t("
|
|
18700
|
+
Header: t("PTR_SEARCH_PET_TYPE"),
|
|
18731
18701
|
Cell: ({
|
|
18732
18702
|
row
|
|
18733
18703
|
}) => {
|
|
@@ -18739,7 +18709,7 @@ const TableConfig = t => ({
|
|
|
18739
18709
|
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData3 = original.searchData) === null || _original$searchData3 === void 0 ? void 0 : (_original$searchData4 = _original$searchData3.petDetails) === null || _original$searchData4 === void 0 ? void 0 : _original$searchData4["petType"]);
|
|
18740
18710
|
}
|
|
18741
18711
|
}, {
|
|
18742
|
-
Header: t("
|
|
18712
|
+
Header: t("PTR_SEARCH_BREED_TYPE"),
|
|
18743
18713
|
Cell: ({
|
|
18744
18714
|
row
|
|
18745
18715
|
}) => {
|
|
@@ -18751,7 +18721,7 @@ const TableConfig = t => ({
|
|
|
18751
18721
|
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData5 = original.searchData) === null || _original$searchData5 === void 0 ? void 0 : (_original$searchData6 = _original$searchData5.petDetails) === null || _original$searchData6 === void 0 ? void 0 : _original$searchData6["breedType"]);
|
|
18752
18722
|
}
|
|
18753
18723
|
}, {
|
|
18754
|
-
Header: t("
|
|
18724
|
+
Header: t("STATUS"),
|
|
18755
18725
|
Cell: ({
|
|
18756
18726
|
row
|
|
18757
18727
|
}) => {
|
|
@@ -19069,20 +19039,20 @@ const ApplicationDetails = () => {
|
|
|
19069
19039
|
styles: {
|
|
19070
19040
|
fontSize: "32px"
|
|
19071
19041
|
}
|
|
19072
|
-
}, t("
|
|
19042
|
+
}, t("CS_APPLICATION_DETAILS")), (PetRegistrationApplications === null || PetRegistrationApplications === void 0 ? void 0 : PetRegistrationApplications.status) == "approved" && dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
|
|
19073
19043
|
className: "multilinkWrapper",
|
|
19074
19044
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
19075
19045
|
displayOptions: showOptions,
|
|
19076
19046
|
options: dowloadOptions
|
|
19077
19047
|
})), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
19078
19048
|
className: "border-none",
|
|
19079
|
-
label: t("
|
|
19049
|
+
label: t("PDF_STATIC_LABEL_APPLICATION_NUMBER_LABEL"),
|
|
19080
19050
|
text: pet_details === null || pet_details === void 0 ? void 0 : pet_details.applicationNumber
|
|
19081
19051
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
19082
19052
|
style: {
|
|
19083
19053
|
fontSize: "24px"
|
|
19084
19054
|
}
|
|
19085
|
-
}, t("
|
|
19055
|
+
}, t("WS_COMMON_TABLE_COL_ADDRESS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
19086
19056
|
className: "border-none",
|
|
19087
19057
|
label: t("PTR_ADDRESS"),
|
|
19088
19058
|
text: (pet_details === null || pet_details === void 0 ? void 0 : (_pet_details$address = pet_details.address) === null || _pet_details$address === void 0 ? void 0 : _pet_details$address.addressId) || t("CS_NA")
|
|
@@ -19094,33 +19064,33 @@ const ApplicationDetails = () => {
|
|
|
19094
19064
|
style: {
|
|
19095
19065
|
fontSize: "24px"
|
|
19096
19066
|
}
|
|
19097
|
-
}, t("
|
|
19067
|
+
}, t("ES_TITLE_APPLICANT_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
19098
19068
|
className: "border-none",
|
|
19099
|
-
label: t("
|
|
19069
|
+
label: t("REPORT_FSM_RESULT_APPLICANTNAME"),
|
|
19100
19070
|
text: (pet_details === null || pet_details === void 0 ? void 0 : pet_details.applicantName) || t("CS_NA")
|
|
19101
19071
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
19102
19072
|
className: "border-none",
|
|
19103
|
-
label: t("
|
|
19073
|
+
label: t("NOC_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
19104
19074
|
text: (pet_details === null || pet_details === void 0 ? void 0 : pet_details.fatherName) || (pet_details === null || pet_details === void 0 ? void 0 : pet_details.fatherOrHusbandName) || t("CS_NA")
|
|
19105
19075
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
19106
19076
|
className: "border-none",
|
|
19107
|
-
label: t("
|
|
19077
|
+
label: t("MOBILE"),
|
|
19108
19078
|
text: (pet_details === null || pet_details === void 0 ? void 0 : pet_details.mobileNumber) || t("CS_NA")
|
|
19109
19079
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
19110
19080
|
className: "border-none",
|
|
19111
|
-
label: t("
|
|
19081
|
+
label: t("CORE_COMMON_PROFILE_EMAIL"),
|
|
19112
19082
|
text: (pet_details === null || pet_details === void 0 ? void 0 : pet_details.emailId) || t("CS_NA")
|
|
19113
19083
|
})), /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
19114
19084
|
style: {
|
|
19115
19085
|
fontSize: "24px"
|
|
19116
19086
|
}
|
|
19117
|
-
}, t("
|
|
19087
|
+
}, t("ES_TITILE_PET_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
19118
19088
|
className: "border-none",
|
|
19119
|
-
label: t("
|
|
19089
|
+
label: t("PTR_SEARCH_PET_TYPE"),
|
|
19120
19090
|
text: (pet_details === null || pet_details === void 0 ? void 0 : (_pet_details$petDetai = pet_details.petDetails) === null || _pet_details$petDetai === void 0 ? void 0 : _pet_details$petDetai.petType) || t("CS_NA")
|
|
19121
19091
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
19122
19092
|
className: "border-none",
|
|
19123
|
-
label: t("
|
|
19093
|
+
label: t("PTR_SEARCH_BREED_TYPE"),
|
|
19124
19094
|
text: (pet_details === null || pet_details === void 0 ? void 0 : (_pet_details$petDetai2 = pet_details.petDetails) === null || _pet_details$petDetai2 === void 0 ? void 0 : _pet_details$petDetai2.breedType) || t("CS_NA")
|
|
19125
19095
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
19126
19096
|
className: "border-none",
|
|
@@ -19142,7 +19112,7 @@ const ApplicationDetails = () => {
|
|
|
19142
19112
|
style: {
|
|
19143
19113
|
fontSize: "24px"
|
|
19144
19114
|
}
|
|
19145
|
-
}, t("
|
|
19115
|
+
}, t("ES_TITLE_DOCS")), /*#__PURE__*/React.createElement("div", null, Array.isArray(application === null || application === void 0 ? void 0 : application.documents) && application.documents.length > 0 ? /*#__PURE__*/React.createElement(PTRDocument, {
|
|
19146
19116
|
petdetail: {
|
|
19147
19117
|
documents: application.documents,
|
|
19148
19118
|
applicationNumber: application.applicationNumber
|