@mseva/digit-ui-module-noc 1.0.78-dev.2.2 → 1.0.79-dev.2
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 +30 -77
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7941,20 +7941,7 @@ const configTLApproverApplication = ({
|
|
|
7941
7941
|
populators: {
|
|
7942
7942
|
name: "comments"
|
|
7943
7943
|
}
|
|
7944
|
-
}, ...(checkCondtions ? [{
|
|
7945
|
-
label: t("TL_FORWARD_NAME_LABEL"),
|
|
7946
|
-
type: "text",
|
|
7947
|
-
populators: {
|
|
7948
|
-
name: "name",
|
|
7949
|
-
placeholder: t("TL_FORWARD_NAME_PLACEHOLDER")
|
|
7950
|
-
}
|
|
7951
7944
|
}, {
|
|
7952
|
-
label: t("TL_FORWARD_DATE_LABEL"),
|
|
7953
|
-
type: "date",
|
|
7954
|
-
populators: {
|
|
7955
|
-
name: "date"
|
|
7956
|
-
}
|
|
7957
|
-
}] : []), {
|
|
7958
7945
|
label: t("TL_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
|
|
7959
7946
|
populators: /*#__PURE__*/React.createElement(UploadFile, {
|
|
7960
7947
|
id: "workflow-doc",
|
|
@@ -9072,19 +9059,11 @@ const ActionModal$1 = ({
|
|
|
9072
9059
|
})();
|
|
9073
9060
|
}, [file]);
|
|
9074
9061
|
function submit(data) {
|
|
9075
|
-
var _applicationData;
|
|
9076
9062
|
applicationData = {
|
|
9077
9063
|
...applicationData,
|
|
9078
9064
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
9079
9065
|
comment: data === null || data === void 0 ? void 0 : data.comments,
|
|
9080
9066
|
assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
9081
|
-
additionalDetails: {
|
|
9082
|
-
...(((_applicationData = applicationData) === null || _applicationData === void 0 ? void 0 : _applicationData.additionalDetails) || {}),
|
|
9083
|
-
...(data !== null && data !== void 0 && data.name || data !== null && data !== void 0 && data.date ? {
|
|
9084
|
-
forwardedBy: (data === null || data === void 0 ? void 0 : data.name) || "",
|
|
9085
|
-
forwardedDate: (data === null || data === void 0 ? void 0 : data.date) || ""
|
|
9086
|
-
} : {})
|
|
9087
|
-
},
|
|
9088
9067
|
wfDocuments: uploadedFile ? [{
|
|
9089
9068
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
9090
9069
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -14559,22 +14538,6 @@ function ApplicationDetailsContent({
|
|
|
14559
14538
|
if (isWSModule) {
|
|
14560
14539
|
return;
|
|
14561
14540
|
}
|
|
14562
|
-
if (moduleCode === "TL") {
|
|
14563
|
-
const appNo = applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNumber;
|
|
14564
|
-
if (!appNo) return;
|
|
14565
|
-
Digit.PaymentService.recieptSearch(tenantId, "TL", {
|
|
14566
|
-
consumerCodes: appNo
|
|
14567
|
-
}).then(response => {
|
|
14568
|
-
var _response$Payments;
|
|
14569
|
-
console.log("TL Payment History response:", response);
|
|
14570
|
-
if ((response === null || response === void 0 ? void 0 : (_response$Payments = response.Payments) === null || _response$Payments === void 0 ? void 0 : _response$Payments.length) > 0) {
|
|
14571
|
-
setPayments(response.Payments);
|
|
14572
|
-
}
|
|
14573
|
-
}).catch(error => {
|
|
14574
|
-
console.error("TL Payment search error:", error);
|
|
14575
|
-
});
|
|
14576
|
-
return;
|
|
14577
|
-
}
|
|
14578
14541
|
if (!propertyId) {
|
|
14579
14542
|
return;
|
|
14580
14543
|
}
|
|
@@ -14603,7 +14566,7 @@ function ApplicationDetailsContent({
|
|
|
14603
14566
|
} catch (error) {
|
|
14604
14567
|
console.error("❌ Payment search error for PT/BPREG:", error);
|
|
14605
14568
|
}
|
|
14606
|
-
}, [moduleCode, propertyId, tenantId
|
|
14569
|
+
}, [moduleCode, propertyId, tenantId]);
|
|
14607
14570
|
return /*#__PURE__*/React.createElement(Card, {
|
|
14608
14571
|
style: {
|
|
14609
14572
|
position: "relative"
|
|
@@ -14938,7 +14901,7 @@ function ApplicationDetailsToast({
|
|
|
14938
14901
|
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error7 = showToast.error) === null || _showToast$error7 === void 0 ? void 0 : _showToast$error7.message : t("TL_TL_CANCELLED_MESSAGE_HEAD");
|
|
14939
14902
|
break;
|
|
14940
14903
|
default:
|
|
14941
|
-
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ?
|
|
14904
|
+
label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error8 = showToast.error) === null || _showToast$error8 === void 0 ? void 0 : _showToast$error8.message : t(`ES_${businessService}_${showToast === null || showToast === void 0 ? void 0 : (_showToast$action2 = showToast.action) === null || _showToast$action2 === void 0 ? void 0 : _showToast$action2.action}_UPDATE_SUCCESS`);
|
|
14942
14905
|
}
|
|
14943
14906
|
return /*#__PURE__*/React.createElement(React.Fragment, null, showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
14944
14907
|
error: showToast.key === "error",
|
|
@@ -18441,7 +18404,6 @@ const InspectionReport$1 = ({
|
|
|
18441
18404
|
sessionStorage.setItem("INSPECTION_DATA", JSON.stringify(data));
|
|
18442
18405
|
}, [FieldReports]);
|
|
18443
18406
|
useEffect$1(() => {
|
|
18444
|
-
console.log("useffect 2INSPECTION_REPORT_PENDING");
|
|
18445
18407
|
let ques = [];
|
|
18446
18408
|
let documentlist = [];
|
|
18447
18409
|
bpaDocs && bpaDocs.BPA.CheckList.map(ob => {
|
|
@@ -18856,7 +18818,7 @@ const getApplicantDetails = (appData, t) => {
|
|
|
18856
18818
|
var _appData$nocDetails7, _appData$nocDetails7$, _appData$nocDetails7$2;
|
|
18857
18819
|
const owners = (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails7 = appData.nocDetails) === null || _appData$nocDetails7 === void 0 ? void 0 : (_appData$nocDetails7$ = _appData$nocDetails7.additionalDetails) === null || _appData$nocDetails7$ === void 0 ? void 0 : (_appData$nocDetails7$2 = _appData$nocDetails7$.applicationDetails) === null || _appData$nocDetails7$2 === void 0 ? void 0 : _appData$nocDetails7$2.owners) ?? [];
|
|
18858
18820
|
const ownerDetailsArray = owners.map((owner, index) => {
|
|
18859
|
-
var _owner$ownerType, _owner$ownerType2, _owner$gender;
|
|
18821
|
+
var _owner$ownerType, _owner$ownerType2, _owner$ownerType3, _owner$gender;
|
|
18860
18822
|
return {
|
|
18861
18823
|
title: index === 0 ? "Primary Owner" : `Owner ${index + 1} Details`,
|
|
18862
18824
|
values: [(owner === null || owner === void 0 ? void 0 : (_owner$ownerType = owner.ownerType) === null || _owner$ownerType === void 0 ? void 0 : _owner$ownerType.code) && {
|
|
@@ -18866,7 +18828,10 @@ const getApplicantDetails = (appData, t) => {
|
|
|
18866
18828
|
title: t("NOC_FIRM_NAME"),
|
|
18867
18829
|
value: owner === null || owner === void 0 ? void 0 : owner.firmName
|
|
18868
18830
|
}, {
|
|
18869
|
-
title: t("
|
|
18831
|
+
title: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
18832
|
+
value: (owner === null || owner === void 0 ? void 0 : owner.mobileNumber) || "NA"
|
|
18833
|
+
}, {
|
|
18834
|
+
title: (typeof (owner === null || owner === void 0 ? void 0 : owner.ownerType) === "string" ? owner === null || owner === void 0 ? void 0 : owner.ownerType : owner === null || owner === void 0 ? void 0 : (_owner$ownerType3 = owner.ownerType) === null || _owner$ownerType3 === void 0 ? void 0 : _owner$ownerType3.code) === "Firm" ? t("APPLICANT_NAME_OR_AUTHORISED_PERSON") : t("APPLICANT_NAME"),
|
|
18870
18835
|
value: (owner === null || owner === void 0 ? void 0 : owner.ownerOrFirmName) || "NA"
|
|
18871
18836
|
}, {
|
|
18872
18837
|
title: t("NOC_APPLICANT_EMAIL_LABEL"),
|
|
@@ -18874,9 +18839,6 @@ const getApplicantDetails = (appData, t) => {
|
|
|
18874
18839
|
}, {
|
|
18875
18840
|
title: t("NOC_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
18876
18841
|
value: (owner === null || owner === void 0 ? void 0 : owner.fatherOrHusbandName) || "NA"
|
|
18877
|
-
}, {
|
|
18878
|
-
title: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
18879
|
-
value: (owner === null || owner === void 0 ? void 0 : owner.mobileNumber) || "NA"
|
|
18880
18842
|
}, {
|
|
18881
18843
|
title: t("NOC_APPLICANT_DOB_LABEL"),
|
|
18882
18844
|
value: owner !== null && owner !== void 0 && owner.dateOfBirth ? new Date(owner.dateOfBirth).toLocaleDateString("en-GB") : "NA"
|
|
@@ -19153,7 +19115,6 @@ const getJESiteImages = async (appData, t, stateCode) => {
|
|
|
19153
19115
|
const documentLink = pdfDownloadLink(res === null || res === void 0 ? void 0 : res.data, img === null || img === void 0 ? void 0 : img.filestoreId);
|
|
19154
19116
|
const exiflink = `${window.origin}/filestore/v1/files/id?fileStoreId=${img === null || img === void 0 ? void 0 : img.filestoreId}&tenantId=${stateCode}`;
|
|
19155
19117
|
const exifData = await getExifDataFromUrl(exiflink);
|
|
19156
|
-
console.log("exifData in siteImages", exifData);
|
|
19157
19118
|
if ([3, 6, 8].includes(exifData === null || exifData === void 0 ? void 0 : exifData.Orientation)) {
|
|
19158
19119
|
exifData.Orientation = 1;
|
|
19159
19120
|
}
|
|
@@ -19632,10 +19593,7 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
19632
19593
|
if (!receiptUrl) throw new Error("Could not resolve filestore URL");
|
|
19633
19594
|
const urlObj = new URL(receiptUrl);
|
|
19634
19595
|
const downloadUrl = `${window.origin}${urlObj.pathname}${urlObj.search}`;
|
|
19635
|
-
|
|
19636
|
-
const blob = await res.blob();
|
|
19637
|
-
const blobUrl = URL.createObjectURL(blob);
|
|
19638
|
-
setPdfUrl(blobUrl);
|
|
19596
|
+
setPdfUrl(downloadUrl);
|
|
19639
19597
|
setShowPdfModal(true);
|
|
19640
19598
|
} catch (error) {
|
|
19641
19599
|
console.error("Sanction Letter popup error:", error);
|
|
@@ -20336,7 +20294,7 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
20336
20294
|
label: t("APPLICATIONNO"),
|
|
20337
20295
|
text: id || "N/A"
|
|
20338
20296
|
}))))), displayData === null || displayData === void 0 ? void 0 : (_displayData$applican10 = displayData.applicantDetails) === null || _displayData$applican10 === void 0 ? void 0 : (_displayData$applican11 = _displayData$applican10[0]) === null || _displayData$applican11 === void 0 ? void 0 : (_displayData$applican12 = _displayData$applican11.owners) === null || _displayData$applican12 === void 0 ? void 0 : _displayData$applican12.map((detail, index) => {
|
|
20339
|
-
var _detail$ownerType, _detail$ownerType2, _detail$gender;
|
|
20297
|
+
var _detail$ownerType, _detail$ownerType2, _detail$ownerType3, _detail$gender;
|
|
20340
20298
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, index === 0 ? t("NOC_PRIMARY_OWNER") : `OWNER ${index + 1}`), /*#__PURE__*/React.createElement("div", {
|
|
20341
20299
|
key: index,
|
|
20342
20300
|
style: {
|
|
@@ -20352,7 +20310,10 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
20352
20310
|
label: t("NOC_FIRM_NAME"),
|
|
20353
20311
|
text: detail === null || detail === void 0 ? void 0 : detail.firmName
|
|
20354
20312
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
20355
|
-
label: t("
|
|
20313
|
+
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
20314
|
+
text: (detail === null || detail === void 0 ? void 0 : detail.mobileNumber) || "N/A"
|
|
20315
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
20316
|
+
label: (typeof (detail === null || detail === void 0 ? void 0 : detail.ownerType) === "string" ? detail === null || detail === void 0 ? void 0 : detail.ownerType : detail === null || detail === void 0 ? void 0 : (_detail$ownerType3 = detail.ownerType) === null || _detail$ownerType3 === void 0 ? void 0 : _detail$ownerType3.code) === "Firm" ? t("APPLICANT_NAME_OR_AUTHORISED_PERSON") : t("APPLICANT_NAME"),
|
|
20356
20317
|
text: (detail === null || detail === void 0 ? void 0 : detail.ownerOrFirmName) || "N/A"
|
|
20357
20318
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
20358
20319
|
label: t("NOC_APPLICANT_EMAIL_LABEL"),
|
|
@@ -20360,9 +20321,6 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
20360
20321
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
20361
20322
|
label: t("NOC_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
20362
20323
|
text: (detail === null || detail === void 0 ? void 0 : detail.fatherOrHusbandName) || "N/A"
|
|
20363
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
20364
|
-
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
20365
|
-
text: (detail === null || detail === void 0 ? void 0 : detail.mobileNumber) || "N/A"
|
|
20366
20324
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
20367
20325
|
label: t("NOC_APPLICANT_DOB_LABEL"),
|
|
20368
20326
|
text: formatDate(detail === null || detail === void 0 ? void 0 : detail.dateOfBirth) || "N/A"
|
|
@@ -27855,7 +27813,7 @@ function NOCSummary({
|
|
|
27855
27813
|
ownerFileStoreId: ownerPhotos === null || ownerPhotos === void 0 ? void 0 : (_ownerPhotos$ownerPho = ownerPhotos.ownerPhotoList) === null || _ownerPhotos$ownerPho === void 0 ? void 0 : (_ownerPhotos$ownerPho2 = _ownerPhotos$ownerPho[0]) === null || _ownerPhotos$ownerPho2 === void 0 ? void 0 : _ownerPhotos$ownerPho2.filestoreId,
|
|
27856
27814
|
ownerName: formData === null || formData === void 0 ? void 0 : (_formData$application6 = formData.applicationDetails) === null || _formData$application6 === void 0 ? void 0 : (_formData$application7 = _formData$application6.owners) === null || _formData$application7 === void 0 ? void 0 : (_formData$application8 = _formData$application7[0]) === null || _formData$application8 === void 0 ? void 0 : _formData$application8.ownerOrFirmName
|
|
27857
27815
|
}))), (_ref = (formData === null || formData === void 0 ? void 0 : (_formData$application9 = formData.applicationDetails) === null || _formData$application9 === void 0 ? void 0 : _formData$application9.owners) ?? []) === null || _ref === void 0 ? void 0 : _ref.map((owner, index) => {
|
|
27858
|
-
var _owner$ownerType, _owner$ownerType2, _owner$gender;
|
|
27816
|
+
var _owner$ownerType, _owner$ownerType2, _owner$ownerType3, _owner$gender;
|
|
27859
27817
|
return /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, index === 0 ? t("NOC_PRIMARY_OWNER") : `Owner ${index + 1}`), /*#__PURE__*/React.createElement(StatusTable, null, (owner === null || owner === void 0 ? void 0 : (_owner$ownerType = owner.ownerType) === null || _owner$ownerType === void 0 ? void 0 : _owner$ownerType.code) && /*#__PURE__*/React.createElement(Row, {
|
|
27860
27818
|
label: t("NOC_OWNER_TYPE_LABEL"),
|
|
27861
27819
|
text: t(owner === null || owner === void 0 ? void 0 : (_owner$ownerType2 = owner.ownerType) === null || _owner$ownerType2 === void 0 ? void 0 : _owner$ownerType2.code)
|
|
@@ -27863,7 +27821,10 @@ function NOCSummary({
|
|
|
27863
27821
|
label: t("NOC_FIRM_NAME"),
|
|
27864
27822
|
text: owner === null || owner === void 0 ? void 0 : owner.firmName
|
|
27865
27823
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27866
|
-
label: t("
|
|
27824
|
+
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
27825
|
+
text: (owner === null || owner === void 0 ? void 0 : owner.mobileNumber) || "N/A"
|
|
27826
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
27827
|
+
label: (typeof (owner === null || owner === void 0 ? void 0 : owner.ownerType) === "string" ? owner === null || owner === void 0 ? void 0 : owner.ownerType : owner === null || owner === void 0 ? void 0 : (_owner$ownerType3 = owner.ownerType) === null || _owner$ownerType3 === void 0 ? void 0 : _owner$ownerType3.code) === "Firm" ? t("APPLICANT_NAME_OR_AUTHORISED_PERSON") : t("APPLICANT_NAME"),
|
|
27867
27828
|
text: (owner === null || owner === void 0 ? void 0 : owner.ownerOrFirmName) || "N/A"
|
|
27868
27829
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27869
27830
|
label: t("NOC_APPLICANT_EMAIL_LABEL"),
|
|
@@ -27871,9 +27832,6 @@ function NOCSummary({
|
|
|
27871
27832
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27872
27833
|
label: t("BPA_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
27873
27834
|
text: (owner === null || owner === void 0 ? void 0 : owner.fatherOrHusbandName) || "N/A"
|
|
27874
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
27875
|
-
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
27876
|
-
text: (owner === null || owner === void 0 ? void 0 : owner.mobileNumber) || "N/A"
|
|
27877
27835
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27878
27836
|
label: t("NOC_APPLICANT_DOB_LABEL"),
|
|
27879
27837
|
text: formatDate(owner === null || owner === void 0 ? void 0 : owner.dateOfBirth) || "N/A"
|
|
@@ -28017,7 +27975,7 @@ const NewNOCStepFormFour = ({
|
|
|
28017
27975
|
onBackClick,
|
|
28018
27976
|
t
|
|
28019
27977
|
}) => {
|
|
28020
|
-
var _user$info, _user$info$roles, _currentStepData$apiD0, _currentStepData$apiD1, _currentStepData$apiD10, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$
|
|
27978
|
+
var _user$info, _user$info$roles, _currentStepData$apiD0, _currentStepData$apiD1, _currentStepData$apiD10, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$appl, _applicantDetails$, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
|
|
28021
27979
|
const dispatch = useDispatch();
|
|
28022
27980
|
const [showToast, setShowToast] = useState(null);
|
|
28023
27981
|
const [error, setError] = useState("");
|
|
@@ -28334,8 +28292,9 @@ const NewNOCStepFormFour = ({
|
|
|
28334
28292
|
goNext(action);
|
|
28335
28293
|
}
|
|
28336
28294
|
if (nocCalculatorLoading) return /*#__PURE__*/React.createElement(Loader$2, null);
|
|
28337
|
-
const
|
|
28338
|
-
const
|
|
28295
|
+
const applicantDetails = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$appl = currentStepData.applicationDetails) === null || _currentStepData$appl === void 0 ? void 0 : _currentStepData$appl.owners;
|
|
28296
|
+
const ownersList = applicantDetails === null || applicantDetails === void 0 ? void 0 : applicantDetails.map(item => item.ownerOrFirmName);
|
|
28297
|
+
const firmName = applicantDetails === null || applicantDetails === void 0 ? void 0 : (_applicantDetails$ = applicantDetails[0]) === null || _applicantDetails$ === void 0 ? void 0 : _applicantDetails$.firmName;
|
|
28339
28298
|
const combinedOwnersName = (firmName === null || firmName === void 0 ? void 0 : firmName.trim()) || (ownersList === null || ownersList === void 0 ? void 0 : ownersList.join(", "));
|
|
28340
28299
|
return /*#__PURE__*/React.createElement(React.Fragment, null, nocCalculatorLoading && /*#__PURE__*/React.createElement(Loader$2, null), /*#__PURE__*/React.createElement(NOCSummary, {
|
|
28341
28300
|
onGoBack: onGoBack,
|
|
@@ -29754,9 +29713,7 @@ const CitizenApplicationOverview = () => {
|
|
|
29754
29713
|
setTimeout(() => {
|
|
29755
29714
|
Digit.Utils.pdf.generateFormattedNOC(acknowledgementData);
|
|
29756
29715
|
}, 0);
|
|
29757
|
-
} catch (error) {
|
|
29758
|
-
console.error("Error generating acknowledgement:", error);
|
|
29759
|
-
} finally {
|
|
29716
|
+
} catch (error) {} finally {
|
|
29760
29717
|
setLoading(false);
|
|
29761
29718
|
}
|
|
29762
29719
|
};
|
|
@@ -29789,9 +29746,7 @@ const CitizenApplicationOverview = () => {
|
|
|
29789
29746
|
});
|
|
29790
29747
|
const receiptUrl = fileStore[response.filestoreIds[0]];
|
|
29791
29748
|
await downloadPdfFromURL(receiptUrl);
|
|
29792
|
-
} catch (error) {
|
|
29793
|
-
console.error("Sanction Letter download error:", error);
|
|
29794
|
-
} finally {
|
|
29749
|
+
} catch (error) {} finally {
|
|
29795
29750
|
setLoading(false);
|
|
29796
29751
|
}
|
|
29797
29752
|
}
|
|
@@ -29840,9 +29795,7 @@ const CitizenApplicationOverview = () => {
|
|
|
29840
29795
|
});
|
|
29841
29796
|
const receiptUrl = fileStore[fileStoreId];
|
|
29842
29797
|
await downloadPdfFromURL(receiptUrl);
|
|
29843
|
-
} catch (error) {
|
|
29844
|
-
console.error("Sanction Letter download error:", error);
|
|
29845
|
-
} finally {
|
|
29798
|
+
} catch (error) {} finally {
|
|
29846
29799
|
setLoading(false);
|
|
29847
29800
|
}
|
|
29848
29801
|
}
|
|
@@ -30115,7 +30068,7 @@ const CitizenApplicationOverview = () => {
|
|
|
30115
30068
|
label: t("APPLICATIONNO"),
|
|
30116
30069
|
text: id || "N/A"
|
|
30117
30070
|
})))), displayData === null || displayData === void 0 ? void 0 : (_displayData$applican10 = displayData.applicantDetails) === null || _displayData$applican10 === void 0 ? void 0 : (_displayData$applican11 = _displayData$applican10[0]) === null || _displayData$applican11 === void 0 ? void 0 : (_displayData$applican12 = _displayData$applican11.owners) === null || _displayData$applican12 === void 0 ? void 0 : _displayData$applican12.map((detail, index) => {
|
|
30118
|
-
var _detail$ownerType, _detail$ownerType2, _detail$gender;
|
|
30071
|
+
var _detail$ownerType, _detail$ownerType2, _detail$ownerType3, _detail$gender;
|
|
30119
30072
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, index === 0 ? t("NOC_PRIMARY_OWNER") : `OWNER ${index + 1}`), /*#__PURE__*/React.createElement("div", {
|
|
30120
30073
|
key: index,
|
|
30121
30074
|
style: {
|
|
@@ -30131,7 +30084,10 @@ const CitizenApplicationOverview = () => {
|
|
|
30131
30084
|
label: t("NOC_FIRM_NAME"),
|
|
30132
30085
|
text: detail === null || detail === void 0 ? void 0 : detail.firmName
|
|
30133
30086
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30134
|
-
label: t("
|
|
30087
|
+
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
30088
|
+
text: (detail === null || detail === void 0 ? void 0 : detail.mobileNumber) || "N/A"
|
|
30089
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
30090
|
+
label: (typeof (detail === null || detail === void 0 ? void 0 : detail.ownerType) === "string" ? detail === null || detail === void 0 ? void 0 : detail.ownerType : detail === null || detail === void 0 ? void 0 : (_detail$ownerType3 = detail.ownerType) === null || _detail$ownerType3 === void 0 ? void 0 : _detail$ownerType3.code) === "Firm" ? t("APPLICANT_NAME_OR_AUTHORISED_PERSON") : t("APPLICANT_NAME"),
|
|
30135
30091
|
text: (detail === null || detail === void 0 ? void 0 : detail.ownerOrFirmName) || "N/A"
|
|
30136
30092
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30137
30093
|
label: t("NOC_APPLICANT_EMAIL_LABEL"),
|
|
@@ -30139,9 +30095,6 @@ const CitizenApplicationOverview = () => {
|
|
|
30139
30095
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30140
30096
|
label: t("NOC_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
30141
30097
|
text: (detail === null || detail === void 0 ? void 0 : detail.fatherOrHusbandName) || "N/A"
|
|
30142
|
-
}), /*#__PURE__*/React.createElement(Row, {
|
|
30143
|
-
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
30144
|
-
text: (detail === null || detail === void 0 ? void 0 : detail.mobileNumber) || "N/A"
|
|
30145
30098
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30146
30099
|
label: t("NOC_APPLICANT_DOB_LABEL"),
|
|
30147
30100
|
text: formatDate(detail === null || detail === void 0 ? void 0 : detail.dateOfBirth) || "N/A"
|