@mseva/digit-ui-module-noc 1.0.78-dev.2.2 → 1.0.79-dev.1
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 +59 -119
- package/dist/index.modern.js.map +1 -1
- package/package.json +38 -38
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"
|
|
@@ -18917,15 +18879,15 @@ const getSiteDetails = (appData, t) => {
|
|
|
18917
18879
|
}, {
|
|
18918
18880
|
title: t("NOC_ROAD_TYPE_LABEL"),
|
|
18919
18881
|
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails19 = appData.nocDetails) === null || _appData$nocDetails19 === void 0 ? void 0 : (_appData$nocDetails20 = _appData$nocDetails19.additionalDetails) === null || _appData$nocDetails20 === void 0 ? void 0 : (_appData$nocDetails21 = _appData$nocDetails20.siteDetails) === null || _appData$nocDetails21 === void 0 ? void 0 : (_appData$nocDetails22 = _appData$nocDetails21.roadType) === null || _appData$nocDetails22 === void 0 ? void 0 : _appData$nocDetails22.name) || (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails23 = appData.nocDetails) === null || _appData$nocDetails23 === void 0 ? void 0 : (_appData$nocDetails24 = _appData$nocDetails23.additionalDetails) === null || _appData$nocDetails24 === void 0 ? void 0 : (_appData$nocDetails25 = _appData$nocDetails24.siteDetails) === null || _appData$nocDetails25 === void 0 ? void 0 : _appData$nocDetails25.roadType) || "N/A"
|
|
18882
|
+
}, {
|
|
18883
|
+
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
18884
|
+
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails26 = appData.nocDetails) === null || _appData$nocDetails26 === void 0 ? void 0 : (_appData$nocDetails27 = _appData$nocDetails26.additionalDetails) === null || _appData$nocDetails27 === void 0 ? void 0 : (_appData$nocDetails28 = _appData$nocDetails27.siteDetails) === null || _appData$nocDetails28 === void 0 ? void 0 : _appData$nocDetails28.netTotalArea) || "N/A"
|
|
18920
18885
|
}, {
|
|
18921
18886
|
title: t("NOC_AREA_LEFT_FOR_ROAD_WIDENING_LABEL"),
|
|
18922
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
18887
|
+
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails29 = appData.nocDetails) === null || _appData$nocDetails29 === void 0 ? void 0 : (_appData$nocDetails30 = _appData$nocDetails29.additionalDetails) === null || _appData$nocDetails30 === void 0 ? void 0 : (_appData$nocDetails31 = _appData$nocDetails30.siteDetails) === null || _appData$nocDetails31 === void 0 ? void 0 : _appData$nocDetails31.areaLeftForRoadWidening) || "N/A"
|
|
18923
18888
|
}, {
|
|
18924
18889
|
title: t("NOC_NET_PLOT_AREA_AFTER_WIDENING_LABEL"),
|
|
18925
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
18926
|
-
}, {
|
|
18927
|
-
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
18928
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails32 = appData.nocDetails) === null || _appData$nocDetails32 === void 0 ? void 0 : (_appData$nocDetails33 = _appData$nocDetails32.additionalDetails) === null || _appData$nocDetails33 === void 0 ? void 0 : (_appData$nocDetails34 = _appData$nocDetails33.siteDetails) === null || _appData$nocDetails34 === void 0 ? void 0 : _appData$nocDetails34.netTotalArea) || "N/A"
|
|
18890
|
+
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails32 = appData.nocDetails) === null || _appData$nocDetails32 === void 0 ? void 0 : (_appData$nocDetails33 = _appData$nocDetails32.additionalDetails) === null || _appData$nocDetails33 === void 0 ? void 0 : (_appData$nocDetails34 = _appData$nocDetails33.siteDetails) === null || _appData$nocDetails34 === void 0 ? void 0 : _appData$nocDetails34.netPlotAreaAfterWidening) || "N/A"
|
|
18929
18891
|
}, {
|
|
18930
18892
|
title: t("NOC_ROAD_WIDTH_AT_SITE_LABEL"),
|
|
18931
18893
|
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails35 = appData.nocDetails) === null || _appData$nocDetails35 === void 0 ? void 0 : (_appData$nocDetails36 = _appData$nocDetails35.additionalDetails) === null || _appData$nocDetails36 === void 0 ? void 0 : (_appData$nocDetails37 = _appData$nocDetails36.siteDetails) === null || _appData$nocDetails37 === void 0 ? void 0 : _appData$nocDetails37.roadWidthAtSite) || "N/A"
|
|
@@ -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"
|
|
@@ -22896,41 +22854,30 @@ const NOCBreadCrumbs$1 = ({
|
|
|
22896
22854
|
const {
|
|
22897
22855
|
t
|
|
22898
22856
|
} = useTranslation();
|
|
22899
|
-
const
|
|
22900
|
-
|
|
22901
|
-
|
|
22902
|
-
|
|
22903
|
-
|
|
22904
|
-
|
|
22905
|
-
|
|
22906
|
-
|
|
22907
|
-
|
|
22908
|
-
|
|
22909
|
-
|
|
22910
|
-
|
|
22911
|
-
|
|
22912
|
-
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22919
|
-
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
|
|
22923
|
-
}, "NOC Home")));
|
|
22924
|
-
}
|
|
22925
|
-
return breadcrumbs;
|
|
22926
|
-
};
|
|
22927
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
22928
|
-
style: {
|
|
22929
|
-
marginBottom: "16px",
|
|
22930
|
-
display: "flex",
|
|
22931
|
-
alignItems: "center"
|
|
22932
|
-
}
|
|
22933
|
-
}, getBreadcrumbs());
|
|
22857
|
+
const crumbs = [{
|
|
22858
|
+
path: "/digit-ui/citizen",
|
|
22859
|
+
content: t("ES_COMMON_HOME"),
|
|
22860
|
+
show: true
|
|
22861
|
+
}, {
|
|
22862
|
+
path: "/digit-ui/citizen/noc-home",
|
|
22863
|
+
content: `NOC Home`,
|
|
22864
|
+
show: location.pathname.includes("/noc/new-application") ? true : false
|
|
22865
|
+
}, {
|
|
22866
|
+
path: "/digit-ui/citizen/noc-home",
|
|
22867
|
+
content: `NOC Home`,
|
|
22868
|
+
show: location.pathname.includes("noc/my-application") ? true : false
|
|
22869
|
+
}, {
|
|
22870
|
+
path: "/digit-ui/citizen/noc-home",
|
|
22871
|
+
content: `NOC Home`,
|
|
22872
|
+
show: location.pathname.includes("noc/search/application-overview/") ? true : false
|
|
22873
|
+
}, {
|
|
22874
|
+
path: "/digit-ui/citizen/noc-home",
|
|
22875
|
+
content: `NOC Home`,
|
|
22876
|
+
show: location.pathname.includes("noc/search-application") ? true : false
|
|
22877
|
+
}];
|
|
22878
|
+
return /*#__PURE__*/React.createElement(BreadCrumb, {
|
|
22879
|
+
crumbs: crumbs
|
|
22880
|
+
});
|
|
22934
22881
|
};
|
|
22935
22882
|
const App = () => {
|
|
22936
22883
|
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi;
|
|
@@ -22939,7 +22886,6 @@ const App = () => {
|
|
|
22939
22886
|
url,
|
|
22940
22887
|
...match
|
|
22941
22888
|
} = useRouteMatch();
|
|
22942
|
-
const location = useLocation();
|
|
22943
22889
|
const {
|
|
22944
22890
|
t
|
|
22945
22891
|
} = useTranslation();
|
|
@@ -27855,7 +27801,7 @@ function NOCSummary({
|
|
|
27855
27801
|
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
27802
|
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
27803
|
}))), (_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;
|
|
27804
|
+
var _owner$ownerType, _owner$ownerType2, _owner$ownerType3, _owner$gender;
|
|
27859
27805
|
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
27806
|
label: t("NOC_OWNER_TYPE_LABEL"),
|
|
27861
27807
|
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 +27809,10 @@ function NOCSummary({
|
|
|
27863
27809
|
label: t("NOC_FIRM_NAME"),
|
|
27864
27810
|
text: owner === null || owner === void 0 ? void 0 : owner.firmName
|
|
27865
27811
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27866
|
-
label: t("
|
|
27812
|
+
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
27813
|
+
text: (owner === null || owner === void 0 ? void 0 : owner.mobileNumber) || "N/A"
|
|
27814
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
27815
|
+
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
27816
|
text: (owner === null || owner === void 0 ? void 0 : owner.ownerOrFirmName) || "N/A"
|
|
27868
27817
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27869
27818
|
label: t("NOC_APPLICANT_EMAIL_LABEL"),
|
|
@@ -27871,9 +27820,6 @@ function NOCSummary({
|
|
|
27871
27820
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27872
27821
|
label: t("BPA_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
27873
27822
|
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
27823
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27878
27824
|
label: t("NOC_APPLICANT_DOB_LABEL"),
|
|
27879
27825
|
text: formatDate(owner === null || owner === void 0 ? void 0 : owner.dateOfBirth) || "N/A"
|
|
@@ -28017,7 +27963,7 @@ const NewNOCStepFormFour = ({
|
|
|
28017
27963
|
onBackClick,
|
|
28018
27964
|
t
|
|
28019
27965
|
}) => {
|
|
28020
|
-
var _user$info, _user$info$roles, _currentStepData$apiD0, _currentStepData$apiD1, _currentStepData$apiD10, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$
|
|
27966
|
+
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
27967
|
const dispatch = useDispatch();
|
|
28022
27968
|
const [showToast, setShowToast] = useState(null);
|
|
28023
27969
|
const [error, setError] = useState("");
|
|
@@ -28334,8 +28280,9 @@ const NewNOCStepFormFour = ({
|
|
|
28334
28280
|
goNext(action);
|
|
28335
28281
|
}
|
|
28336
28282
|
if (nocCalculatorLoading) return /*#__PURE__*/React.createElement(Loader$2, null);
|
|
28337
|
-
const
|
|
28338
|
-
const
|
|
28283
|
+
const applicantDetails = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$appl = currentStepData.applicationDetails) === null || _currentStepData$appl === void 0 ? void 0 : _currentStepData$appl.owners;
|
|
28284
|
+
const ownersList = applicantDetails === null || applicantDetails === void 0 ? void 0 : applicantDetails.map(item => item.ownerOrFirmName);
|
|
28285
|
+
const firmName = applicantDetails === null || applicantDetails === void 0 ? void 0 : (_applicantDetails$ = applicantDetails[0]) === null || _applicantDetails$ === void 0 ? void 0 : _applicantDetails$.firmName;
|
|
28339
28286
|
const combinedOwnersName = (firmName === null || firmName === void 0 ? void 0 : firmName.trim()) || (ownersList === null || ownersList === void 0 ? void 0 : ownersList.join(", "));
|
|
28340
28287
|
return /*#__PURE__*/React.createElement(React.Fragment, null, nocCalculatorLoading && /*#__PURE__*/React.createElement(Loader$2, null), /*#__PURE__*/React.createElement(NOCSummary, {
|
|
28341
28288
|
onGoBack: onGoBack,
|
|
@@ -28426,7 +28373,6 @@ const NOCDocumentsRequired = ({
|
|
|
28426
28373
|
} : doc);
|
|
28427
28374
|
}
|
|
28428
28375
|
filteredDocuments = (_filteredDocuments2 = filteredDocuments) === null || _filteredDocuments2 === void 0 ? void 0 : _filteredDocuments2.sort((a, b) => (a.order || 0) - (b.order || 0));
|
|
28429
|
-
console.log("filteredDocuments", filteredDocuments);
|
|
28430
28376
|
useEffect$1(() => {
|
|
28431
28377
|
setDocuments(prev => {
|
|
28432
28378
|
const arr = Array.isArray(prev) ? prev : [];
|
|
@@ -29754,9 +29700,7 @@ const CitizenApplicationOverview = () => {
|
|
|
29754
29700
|
setTimeout(() => {
|
|
29755
29701
|
Digit.Utils.pdf.generateFormattedNOC(acknowledgementData);
|
|
29756
29702
|
}, 0);
|
|
29757
|
-
} catch (error) {
|
|
29758
|
-
console.error("Error generating acknowledgement:", error);
|
|
29759
|
-
} finally {
|
|
29703
|
+
} catch (error) {} finally {
|
|
29760
29704
|
setLoading(false);
|
|
29761
29705
|
}
|
|
29762
29706
|
};
|
|
@@ -29789,9 +29733,7 @@ const CitizenApplicationOverview = () => {
|
|
|
29789
29733
|
});
|
|
29790
29734
|
const receiptUrl = fileStore[response.filestoreIds[0]];
|
|
29791
29735
|
await downloadPdfFromURL(receiptUrl);
|
|
29792
|
-
} catch (error) {
|
|
29793
|
-
console.error("Sanction Letter download error:", error);
|
|
29794
|
-
} finally {
|
|
29736
|
+
} catch (error) {} finally {
|
|
29795
29737
|
setLoading(false);
|
|
29796
29738
|
}
|
|
29797
29739
|
}
|
|
@@ -29840,9 +29782,7 @@ const CitizenApplicationOverview = () => {
|
|
|
29840
29782
|
});
|
|
29841
29783
|
const receiptUrl = fileStore[fileStoreId];
|
|
29842
29784
|
await downloadPdfFromURL(receiptUrl);
|
|
29843
|
-
} catch (error) {
|
|
29844
|
-
console.error("Sanction Letter download error:", error);
|
|
29845
|
-
} finally {
|
|
29785
|
+
} catch (error) {} finally {
|
|
29846
29786
|
setLoading(false);
|
|
29847
29787
|
}
|
|
29848
29788
|
}
|
|
@@ -30115,7 +30055,7 @@ const CitizenApplicationOverview = () => {
|
|
|
30115
30055
|
label: t("APPLICATIONNO"),
|
|
30116
30056
|
text: id || "N/A"
|
|
30117
30057
|
})))), 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;
|
|
30058
|
+
var _detail$ownerType, _detail$ownerType2, _detail$ownerType3, _detail$gender;
|
|
30119
30059
|
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
30060
|
key: index,
|
|
30121
30061
|
style: {
|
|
@@ -30131,7 +30071,10 @@ const CitizenApplicationOverview = () => {
|
|
|
30131
30071
|
label: t("NOC_FIRM_NAME"),
|
|
30132
30072
|
text: detail === null || detail === void 0 ? void 0 : detail.firmName
|
|
30133
30073
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30134
|
-
label: t("
|
|
30074
|
+
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
30075
|
+
text: (detail === null || detail === void 0 ? void 0 : detail.mobileNumber) || "N/A"
|
|
30076
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
30077
|
+
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
30078
|
text: (detail === null || detail === void 0 ? void 0 : detail.ownerOrFirmName) || "N/A"
|
|
30136
30079
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30137
30080
|
label: t("NOC_APPLICANT_EMAIL_LABEL"),
|
|
@@ -30139,9 +30082,6 @@ const CitizenApplicationOverview = () => {
|
|
|
30139
30082
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30140
30083
|
label: t("NOC_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
30141
30084
|
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
30085
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30146
30086
|
label: t("NOC_APPLICANT_DOB_LABEL"),
|
|
30147
30087
|
text: formatDate(detail === null || detail === void 0 ? void 0 : detail.dateOfBirth) || "N/A"
|