@mseva/digit-ui-module-noc 1.0.78-dev.2.2 → 1.0.79
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 +58 -115
- 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"
|
|
@@ -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
|
}
|
|
@@ -20336,7 +20297,7 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
20336
20297
|
label: t("APPLICATIONNO"),
|
|
20337
20298
|
text: id || "N/A"
|
|
20338
20299
|
}))))), 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;
|
|
20300
|
+
var _detail$ownerType, _detail$ownerType2, _detail$ownerType3, _detail$gender;
|
|
20340
20301
|
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
20302
|
key: index,
|
|
20342
20303
|
style: {
|
|
@@ -20352,7 +20313,10 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
20352
20313
|
label: t("NOC_FIRM_NAME"),
|
|
20353
20314
|
text: detail === null || detail === void 0 ? void 0 : detail.firmName
|
|
20354
20315
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
20355
|
-
label: t("
|
|
20316
|
+
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
20317
|
+
text: (detail === null || detail === void 0 ? void 0 : detail.mobileNumber) || "N/A"
|
|
20318
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
20319
|
+
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
20320
|
text: (detail === null || detail === void 0 ? void 0 : detail.ownerOrFirmName) || "N/A"
|
|
20357
20321
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
20358
20322
|
label: t("NOC_APPLICANT_EMAIL_LABEL"),
|
|
@@ -20360,9 +20324,6 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
20360
20324
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
20361
20325
|
label: t("NOC_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
20362
20326
|
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
20327
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
20367
20328
|
label: t("NOC_APPLICANT_DOB_LABEL"),
|
|
20368
20329
|
text: formatDate(detail === null || detail === void 0 ? void 0 : detail.dateOfBirth) || "N/A"
|
|
@@ -22896,41 +22857,30 @@ const NOCBreadCrumbs$1 = ({
|
|
|
22896
22857
|
const {
|
|
22897
22858
|
t
|
|
22898
22859
|
} = 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());
|
|
22860
|
+
const crumbs = [{
|
|
22861
|
+
path: "/digit-ui/citizen",
|
|
22862
|
+
content: t("ES_COMMON_HOME"),
|
|
22863
|
+
show: true
|
|
22864
|
+
}, {
|
|
22865
|
+
path: "/digit-ui/citizen/noc-home",
|
|
22866
|
+
content: `NOC Home`,
|
|
22867
|
+
show: location.pathname.includes("/noc/new-application") ? true : false
|
|
22868
|
+
}, {
|
|
22869
|
+
path: "/digit-ui/citizen/noc-home",
|
|
22870
|
+
content: `NOC Home`,
|
|
22871
|
+
show: location.pathname.includes("noc/my-application") ? true : false
|
|
22872
|
+
}, {
|
|
22873
|
+
path: "/digit-ui/citizen/noc-home",
|
|
22874
|
+
content: `NOC Home`,
|
|
22875
|
+
show: location.pathname.includes("noc/search/application-overview/") ? true : false
|
|
22876
|
+
}, {
|
|
22877
|
+
path: "/digit-ui/citizen/noc-home",
|
|
22878
|
+
content: `NOC Home`,
|
|
22879
|
+
show: location.pathname.includes("noc/search-application") ? true : false
|
|
22880
|
+
}];
|
|
22881
|
+
return /*#__PURE__*/React.createElement(BreadCrumb, {
|
|
22882
|
+
crumbs: crumbs
|
|
22883
|
+
});
|
|
22934
22884
|
};
|
|
22935
22885
|
const App = () => {
|
|
22936
22886
|
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi;
|
|
@@ -22939,7 +22889,6 @@ const App = () => {
|
|
|
22939
22889
|
url,
|
|
22940
22890
|
...match
|
|
22941
22891
|
} = useRouteMatch();
|
|
22942
|
-
const location = useLocation();
|
|
22943
22892
|
const {
|
|
22944
22893
|
t
|
|
22945
22894
|
} = useTranslation();
|
|
@@ -27855,7 +27804,7 @@ function NOCSummary({
|
|
|
27855
27804
|
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
27805
|
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
27806
|
}))), (_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;
|
|
27807
|
+
var _owner$ownerType, _owner$ownerType2, _owner$ownerType3, _owner$gender;
|
|
27859
27808
|
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
27809
|
label: t("NOC_OWNER_TYPE_LABEL"),
|
|
27861
27810
|
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 +27812,10 @@ function NOCSummary({
|
|
|
27863
27812
|
label: t("NOC_FIRM_NAME"),
|
|
27864
27813
|
text: owner === null || owner === void 0 ? void 0 : owner.firmName
|
|
27865
27814
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27866
|
-
label: t("
|
|
27815
|
+
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
27816
|
+
text: (owner === null || owner === void 0 ? void 0 : owner.mobileNumber) || "N/A"
|
|
27817
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
27818
|
+
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
27819
|
text: (owner === null || owner === void 0 ? void 0 : owner.ownerOrFirmName) || "N/A"
|
|
27868
27820
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27869
27821
|
label: t("NOC_APPLICANT_EMAIL_LABEL"),
|
|
@@ -27871,9 +27823,6 @@ function NOCSummary({
|
|
|
27871
27823
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27872
27824
|
label: t("BPA_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
27873
27825
|
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
27826
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
27878
27827
|
label: t("NOC_APPLICANT_DOB_LABEL"),
|
|
27879
27828
|
text: formatDate(owner === null || owner === void 0 ? void 0 : owner.dateOfBirth) || "N/A"
|
|
@@ -28017,7 +27966,7 @@ const NewNOCStepFormFour = ({
|
|
|
28017
27966
|
onBackClick,
|
|
28018
27967
|
t
|
|
28019
27968
|
}) => {
|
|
28020
|
-
var _user$info, _user$info$roles, _currentStepData$apiD0, _currentStepData$apiD1, _currentStepData$apiD10, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$
|
|
27969
|
+
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
27970
|
const dispatch = useDispatch();
|
|
28022
27971
|
const [showToast, setShowToast] = useState(null);
|
|
28023
27972
|
const [error, setError] = useState("");
|
|
@@ -28334,8 +28283,9 @@ const NewNOCStepFormFour = ({
|
|
|
28334
28283
|
goNext(action);
|
|
28335
28284
|
}
|
|
28336
28285
|
if (nocCalculatorLoading) return /*#__PURE__*/React.createElement(Loader$2, null);
|
|
28337
|
-
const
|
|
28338
|
-
const
|
|
28286
|
+
const applicantDetails = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$appl = currentStepData.applicationDetails) === null || _currentStepData$appl === void 0 ? void 0 : _currentStepData$appl.owners;
|
|
28287
|
+
const ownersList = applicantDetails === null || applicantDetails === void 0 ? void 0 : applicantDetails.map(item => item.ownerOrFirmName);
|
|
28288
|
+
const firmName = applicantDetails === null || applicantDetails === void 0 ? void 0 : (_applicantDetails$ = applicantDetails[0]) === null || _applicantDetails$ === void 0 ? void 0 : _applicantDetails$.firmName;
|
|
28339
28289
|
const combinedOwnersName = (firmName === null || firmName === void 0 ? void 0 : firmName.trim()) || (ownersList === null || ownersList === void 0 ? void 0 : ownersList.join(", "));
|
|
28340
28290
|
return /*#__PURE__*/React.createElement(React.Fragment, null, nocCalculatorLoading && /*#__PURE__*/React.createElement(Loader$2, null), /*#__PURE__*/React.createElement(NOCSummary, {
|
|
28341
28291
|
onGoBack: onGoBack,
|
|
@@ -28426,7 +28376,6 @@ const NOCDocumentsRequired = ({
|
|
|
28426
28376
|
} : doc);
|
|
28427
28377
|
}
|
|
28428
28378
|
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
28379
|
useEffect$1(() => {
|
|
28431
28380
|
setDocuments(prev => {
|
|
28432
28381
|
const arr = Array.isArray(prev) ? prev : [];
|
|
@@ -29754,9 +29703,7 @@ const CitizenApplicationOverview = () => {
|
|
|
29754
29703
|
setTimeout(() => {
|
|
29755
29704
|
Digit.Utils.pdf.generateFormattedNOC(acknowledgementData);
|
|
29756
29705
|
}, 0);
|
|
29757
|
-
} catch (error) {
|
|
29758
|
-
console.error("Error generating acknowledgement:", error);
|
|
29759
|
-
} finally {
|
|
29706
|
+
} catch (error) {} finally {
|
|
29760
29707
|
setLoading(false);
|
|
29761
29708
|
}
|
|
29762
29709
|
};
|
|
@@ -29789,9 +29736,7 @@ const CitizenApplicationOverview = () => {
|
|
|
29789
29736
|
});
|
|
29790
29737
|
const receiptUrl = fileStore[response.filestoreIds[0]];
|
|
29791
29738
|
await downloadPdfFromURL(receiptUrl);
|
|
29792
|
-
} catch (error) {
|
|
29793
|
-
console.error("Sanction Letter download error:", error);
|
|
29794
|
-
} finally {
|
|
29739
|
+
} catch (error) {} finally {
|
|
29795
29740
|
setLoading(false);
|
|
29796
29741
|
}
|
|
29797
29742
|
}
|
|
@@ -29840,9 +29785,7 @@ const CitizenApplicationOverview = () => {
|
|
|
29840
29785
|
});
|
|
29841
29786
|
const receiptUrl = fileStore[fileStoreId];
|
|
29842
29787
|
await downloadPdfFromURL(receiptUrl);
|
|
29843
|
-
} catch (error) {
|
|
29844
|
-
console.error("Sanction Letter download error:", error);
|
|
29845
|
-
} finally {
|
|
29788
|
+
} catch (error) {} finally {
|
|
29846
29789
|
setLoading(false);
|
|
29847
29790
|
}
|
|
29848
29791
|
}
|
|
@@ -30115,7 +30058,7 @@ const CitizenApplicationOverview = () => {
|
|
|
30115
30058
|
label: t("APPLICATIONNO"),
|
|
30116
30059
|
text: id || "N/A"
|
|
30117
30060
|
})))), 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;
|
|
30061
|
+
var _detail$ownerType, _detail$ownerType2, _detail$ownerType3, _detail$gender;
|
|
30119
30062
|
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
30063
|
key: index,
|
|
30121
30064
|
style: {
|
|
@@ -30131,7 +30074,10 @@ const CitizenApplicationOverview = () => {
|
|
|
30131
30074
|
label: t("NOC_FIRM_NAME"),
|
|
30132
30075
|
text: detail === null || detail === void 0 ? void 0 : detail.firmName
|
|
30133
30076
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30134
|
-
label: t("
|
|
30077
|
+
label: t("NOC_APPLICANT_MOBILE_NO_LABEL"),
|
|
30078
|
+
text: (detail === null || detail === void 0 ? void 0 : detail.mobileNumber) || "N/A"
|
|
30079
|
+
}), /*#__PURE__*/React.createElement(Row, {
|
|
30080
|
+
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
30081
|
text: (detail === null || detail === void 0 ? void 0 : detail.ownerOrFirmName) || "N/A"
|
|
30136
30082
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30137
30083
|
label: t("NOC_APPLICANT_EMAIL_LABEL"),
|
|
@@ -30139,9 +30085,6 @@ const CitizenApplicationOverview = () => {
|
|
|
30139
30085
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30140
30086
|
label: t("NOC_APPLICANT_FATHER_HUSBAND_NAME_LABEL"),
|
|
30141
30087
|
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
30088
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
30146
30089
|
label: t("NOC_APPLICANT_DOB_LABEL"),
|
|
30147
30090
|
text: formatDate(detail === null || detail === void 0 ? void 0 : detail.dateOfBirth) || "N/A"
|