@djb25/digit-ui-module-wt 1.0.66 → 1.0.67
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 +278 -219
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3376,20 +3376,38 @@ const WTDesktopInbox = ({
|
|
|
3376
3376
|
return row !== null && row !== void 0 && (_row$workflowData2 = row.workflowData) !== null && _row$workflowData2 !== void 0 && (_row$workflowData2$st = _row$workflowData2.state) !== null && _row$workflowData2$st !== void 0 && _row$workflowData2$st.applicationStatus ? t(row.workflowData.state.applicationStatus) : "";
|
|
3377
3377
|
}
|
|
3378
3378
|
});
|
|
3379
|
-
if (columns !== null && columns !== void 0 && columns.some(column => (column === null || column === void 0 ? void 0 : column.id) === "
|
|
3379
|
+
if (columns !== null && columns !== void 0 && columns.some(column => (column === null || column === void 0 ? void 0 : column.id) === "deliveryDateTime")) {
|
|
3380
3380
|
var _columns$find4;
|
|
3381
3381
|
csvColumns.push({
|
|
3382
|
-
Header: (columns === null || columns === void 0 ? void 0 : (_columns$find4 = columns.find(column => (column === null || column === void 0 ? void 0 : column.id) === "
|
|
3382
|
+
Header: (columns === null || columns === void 0 ? void 0 : (_columns$find4 = columns.find(column => (column === null || column === void 0 ? void 0 : column.id) === "deliveryDateTime")) === null || _columns$find4 === void 0 ? void 0 : _columns$find4.Header) || t("WT_DELIVERY_DATE_TIME"),
|
|
3383
3383
|
exportAccessor: row => {
|
|
3384
|
-
var _row$searchData9
|
|
3385
|
-
|
|
3384
|
+
var _row$searchData9;
|
|
3385
|
+
const driverTripReport = row === null || row === void 0 ? void 0 : (_row$searchData9 = row.searchData) === null || _row$searchData9 === void 0 ? void 0 : _row$searchData9.driverTripReport;
|
|
3386
|
+
if (Array.isArray(driverTripReport) && driverTripReport.length > 0) {
|
|
3387
|
+
var _driverTripReport$, _driverTripReport$$au;
|
|
3388
|
+
const lastModifiedTime = (_driverTripReport$ = driverTripReport[0]) === null || _driverTripReport$ === void 0 ? void 0 : (_driverTripReport$$au = _driverTripReport$.auditDetails) === null || _driverTripReport$$au === void 0 ? void 0 : _driverTripReport$$au.lastModifiedTime;
|
|
3389
|
+
if (lastModifiedTime) {
|
|
3390
|
+
return `${Digit.DateUtils.ConvertEpochToDate(lastModifiedTime)} ${Digit.DateUtils.ConvertEpochToTimeInHours(lastModifiedTime)}`;
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
return "-";
|
|
3386
3394
|
}
|
|
3387
3395
|
});
|
|
3388
3396
|
}
|
|
3389
|
-
if (columns !== null && columns !== void 0 && columns.some(column => (column === null || column === void 0 ? void 0 : column.id) === "
|
|
3397
|
+
if (columns !== null && columns !== void 0 && columns.some(column => (column === null || column === void 0 ? void 0 : column.id) === "vendorName")) {
|
|
3390
3398
|
var _columns$find5;
|
|
3391
3399
|
csvColumns.push({
|
|
3392
|
-
Header: (columns === null || columns === void 0 ? void 0 : (_columns$find5 = columns.find(column => (column === null || column === void 0 ? void 0 : column.id) === "
|
|
3400
|
+
Header: (columns === null || columns === void 0 ? void 0 : (_columns$find5 = columns.find(column => (column === null || column === void 0 ? void 0 : column.id) === "vendorName")) === null || _columns$find5 === void 0 ? void 0 : _columns$find5.Header) || t("WT_VENDOR_NAME"),
|
|
3401
|
+
exportAccessor: row => {
|
|
3402
|
+
var _row$searchData0, _row$searchData0$vend, _row$searchData1;
|
|
3403
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData0 = row.searchData) === null || _row$searchData0 === void 0 ? void 0 : (_row$searchData0$vend = _row$searchData0.vendor) === null || _row$searchData0$vend === void 0 ? void 0 : _row$searchData0$vend.name) || (row === null || row === void 0 ? void 0 : (_row$searchData1 = row.searchData) === null || _row$searchData1 === void 0 ? void 0 : _row$searchData1.vendorName) || "-";
|
|
3404
|
+
}
|
|
3405
|
+
});
|
|
3406
|
+
}
|
|
3407
|
+
if (columns !== null && columns !== void 0 && columns.some(column => (column === null || column === void 0 ? void 0 : column.id) === "vehicleNumber")) {
|
|
3408
|
+
var _columns$find6;
|
|
3409
|
+
csvColumns.push({
|
|
3410
|
+
Header: (columns === null || columns === void 0 ? void 0 : (_columns$find6 = columns.find(column => (column === null || column === void 0 ? void 0 : column.id) === "vehicleNumber")) === null || _columns$find6 === void 0 ? void 0 : _columns$find6.Header) || t("WT_VEHICLE_NO"),
|
|
3393
3411
|
exportAccessor: row => {
|
|
3394
3412
|
var _searchData$vendor, _searchData$vendor$ve;
|
|
3395
3413
|
const searchData = row === null || row === void 0 ? void 0 : row.searchData;
|
|
@@ -3399,9 +3417,9 @@ const WTDesktopInbox = ({
|
|
|
3399
3417
|
});
|
|
3400
3418
|
}
|
|
3401
3419
|
if (columns !== null && columns !== void 0 && columns.some(column => (column === null || column === void 0 ? void 0 : column.id) === "driverName")) {
|
|
3402
|
-
var _columns$
|
|
3420
|
+
var _columns$find7;
|
|
3403
3421
|
csvColumns.push({
|
|
3404
|
-
Header: (columns === null || columns === void 0 ? void 0 : (_columns$
|
|
3422
|
+
Header: (columns === null || columns === void 0 ? void 0 : (_columns$find7 = columns.find(column => (column === null || column === void 0 ? void 0 : column.id) === "driverName")) === null || _columns$find7 === void 0 ? void 0 : _columns$find7.Header) || t("WT_DRIVER_NAME"),
|
|
3405
3423
|
exportAccessor: row => {
|
|
3406
3424
|
var _searchData$vendor2, _searchData$vendor2$d, _mappedDriver$owner;
|
|
3407
3425
|
const searchData = row === null || row === void 0 ? void 0 : row.searchData;
|
|
@@ -17239,6 +17257,18 @@ const getFormattedCreatedAt = row => {
|
|
|
17239
17257
|
if (!createdTime) return "";
|
|
17240
17258
|
return `${Digit.DateUtils.ConvertEpochToDate(createdTime)} ${Digit.DateUtils.ConvertEpochToTimeInHours(createdTime)}`;
|
|
17241
17259
|
};
|
|
17260
|
+
const getDeliveryDateTime = row => {
|
|
17261
|
+
var _row$searchData2;
|
|
17262
|
+
const driverTripReport = row === null || row === void 0 ? void 0 : (_row$searchData2 = row.searchData) === null || _row$searchData2 === void 0 ? void 0 : _row$searchData2.driverTripReport;
|
|
17263
|
+
if (Array.isArray(driverTripReport) && driverTripReport.length > 0) {
|
|
17264
|
+
var _driverTripReport$, _driverTripReport$$au;
|
|
17265
|
+
const lastModifiedTime = (_driverTripReport$ = driverTripReport[0]) === null || _driverTripReport$ === void 0 ? void 0 : (_driverTripReport$$au = _driverTripReport$.auditDetails) === null || _driverTripReport$$au === void 0 ? void 0 : _driverTripReport$$au.lastModifiedTime;
|
|
17266
|
+
if (lastModifiedTime) {
|
|
17267
|
+
return `${Digit.DateUtils.ConvertEpochToDate(lastModifiedTime)} ${Digit.DateUtils.ConvertEpochToTimeInHours(lastModifiedTime)}`;
|
|
17268
|
+
}
|
|
17269
|
+
}
|
|
17270
|
+
return "-";
|
|
17271
|
+
};
|
|
17242
17272
|
const GetMobCell = value => /*#__PURE__*/React.createElement("span", {
|
|
17243
17273
|
className: "sla-cell"
|
|
17244
17274
|
}, value);
|
|
@@ -17271,8 +17301,8 @@ const TableConfig = t => ({
|
|
|
17271
17301
|
Header: t("WT_BOOKING_NO"),
|
|
17272
17302
|
id: "bookingNo",
|
|
17273
17303
|
accessor: row => {
|
|
17274
|
-
var _row$
|
|
17275
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17304
|
+
var _row$searchData3;
|
|
17305
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData3 = row.searchData) === null || _row$searchData3 === void 0 ? void 0 : _row$searchData3["bookingNo"]) || "";
|
|
17276
17306
|
},
|
|
17277
17307
|
Cell: ({
|
|
17278
17308
|
row
|
|
@@ -17292,8 +17322,8 @@ const TableConfig = t => ({
|
|
|
17292
17322
|
Header: window.location.href.includes("fixed-point") ? t("WT_FIXED_POINT_NAME") : t("WT_APPLICANT_NAME"),
|
|
17293
17323
|
id: "applicantName",
|
|
17294
17324
|
accessor: row => {
|
|
17295
|
-
var _row$
|
|
17296
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17325
|
+
var _row$searchData4, _row$searchData4$appl;
|
|
17326
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData4 = row.searchData) === null || _row$searchData4 === void 0 ? void 0 : (_row$searchData4$appl = _row$searchData4.applicantDetail) === null || _row$searchData4$appl === void 0 ? void 0 : _row$searchData4$appl["name"]) || "";
|
|
17297
17327
|
},
|
|
17298
17328
|
Cell: row => {
|
|
17299
17329
|
var _row$cell, _row$cell$row, _row$cell$row$origina, _row$cell$row$origina2, _row$cell$row$origina3;
|
|
@@ -17307,8 +17337,8 @@ const TableConfig = t => ({
|
|
|
17307
17337
|
Header: t("WT_MOBILE_NUMBER"),
|
|
17308
17338
|
id: "mobileNumber",
|
|
17309
17339
|
accessor: row => {
|
|
17310
|
-
var _row$
|
|
17311
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17340
|
+
var _row$searchData5, _row$searchData5$appl;
|
|
17341
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData5 = row.searchData) === null || _row$searchData5 === void 0 ? void 0 : (_row$searchData5$appl = _row$searchData5.applicantDetail) === null || _row$searchData5$appl === void 0 ? void 0 : _row$searchData5$appl["mobileNumber"]) || "";
|
|
17312
17342
|
},
|
|
17313
17343
|
Cell: row => {
|
|
17314
17344
|
var _row$cell2, _row$cell2$row, _row$cell2$row$origin, _row$cell2$row$origin2, _row$cell2$row$origin3;
|
|
@@ -17322,8 +17352,8 @@ const TableConfig = t => ({
|
|
|
17322
17352
|
Header: t("LOCALITY"),
|
|
17323
17353
|
id: "localityCode",
|
|
17324
17354
|
accessor: row => {
|
|
17325
|
-
var _row$
|
|
17326
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17355
|
+
var _row$searchData6;
|
|
17356
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData6 = row.searchData) === null || _row$searchData6 === void 0 ? void 0 : _row$searchData6["localityCode"]) || "";
|
|
17327
17357
|
},
|
|
17328
17358
|
Cell: ({
|
|
17329
17359
|
row
|
|
@@ -17339,8 +17369,8 @@ const TableConfig = t => ({
|
|
|
17339
17369
|
Header: t("Filling Point"),
|
|
17340
17370
|
id: "fillingPoint",
|
|
17341
17371
|
accessor: row => {
|
|
17342
|
-
var _row$
|
|
17343
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17372
|
+
var _row$searchData7, _row$searchData7$fill, _row$searchData8;
|
|
17373
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData7 = row.searchData) === null || _row$searchData7 === void 0 ? void 0 : (_row$searchData7$fill = _row$searchData7.fillingPointMetadata) === null || _row$searchData7$fill === void 0 ? void 0 : _row$searchData7$fill.name) || (row === null || row === void 0 ? void 0 : (_row$searchData8 = row.searchData) === null || _row$searchData8 === void 0 ? void 0 : _row$searchData8.fillingPointName) || "-";
|
|
17344
17374
|
},
|
|
17345
17375
|
Cell: ({
|
|
17346
17376
|
row
|
|
@@ -17381,6 +17411,14 @@ const TableConfig = t => ({
|
|
|
17381
17411
|
return GetMobCell(t(`ES_WT_COMMON_STATUS_${original === null || original === void 0 ? void 0 : (_original$workflowDat = original.workflowData) === null || _original$workflowDat === void 0 ? void 0 : (_original$workflowDat2 = _original$workflowDat.state) === null || _original$workflowDat2 === void 0 ? void 0 : _original$workflowDat2["applicationStatus"]}`));
|
|
17382
17412
|
}
|
|
17383
17413
|
}, ...(window.location.href.includes("fixed-point") ? [{
|
|
17414
|
+
Header: t("WT_DELIVERY_DATE_TIME"),
|
|
17415
|
+
id: "deliveryDateTime",
|
|
17416
|
+
accessor: row => getDeliveryDateTime(row),
|
|
17417
|
+
Cell: ({
|
|
17418
|
+
row
|
|
17419
|
+
}) => GetCell(getDeliveryDateTime(row === null || row === void 0 ? void 0 : row.original)),
|
|
17420
|
+
mobileCell: original => GetMobCell(getDeliveryDateTime(original))
|
|
17421
|
+
}, {
|
|
17384
17422
|
Header: t("WT_VENDOR_NAME"),
|
|
17385
17423
|
id: "vendorName",
|
|
17386
17424
|
accessor: row => getVendorNameFromSearchData(row === null || row === void 0 ? void 0 : row.searchData),
|
|
@@ -17424,8 +17462,8 @@ const TableConfig = t => ({
|
|
|
17424
17462
|
Header: t("MT_BOOKING_NO"),
|
|
17425
17463
|
id: "bookingNo",
|
|
17426
17464
|
accessor: row => {
|
|
17427
|
-
var _row$
|
|
17428
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17465
|
+
var _row$searchData9;
|
|
17466
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData9 = row.searchData) === null || _row$searchData9 === void 0 ? void 0 : _row$searchData9["bookingNo"]) || "";
|
|
17429
17467
|
},
|
|
17430
17468
|
Cell: ({
|
|
17431
17469
|
row
|
|
@@ -17445,8 +17483,8 @@ const TableConfig = t => ({
|
|
|
17445
17483
|
Header: t("MT_APPLICANT_NAME"),
|
|
17446
17484
|
id: "applicantName",
|
|
17447
17485
|
accessor: row => {
|
|
17448
|
-
var _row$
|
|
17449
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17486
|
+
var _row$searchData0, _row$searchData0$appl;
|
|
17487
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData0 = row.searchData) === null || _row$searchData0 === void 0 ? void 0 : (_row$searchData0$appl = _row$searchData0.applicantDetail) === null || _row$searchData0$appl === void 0 ? void 0 : _row$searchData0$appl["name"]) || "";
|
|
17450
17488
|
},
|
|
17451
17489
|
Cell: row => {
|
|
17452
17490
|
var _row$cell3, _row$cell3$row, _row$cell3$row$origin, _row$cell3$row$origin2, _row$cell3$row$origin3;
|
|
@@ -17460,8 +17498,8 @@ const TableConfig = t => ({
|
|
|
17460
17498
|
Header: t("MT_MOBILE_NUMBER"),
|
|
17461
17499
|
id: "mobileNumber",
|
|
17462
17500
|
accessor: row => {
|
|
17463
|
-
var _row$
|
|
17464
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17501
|
+
var _row$searchData1, _row$searchData1$appl;
|
|
17502
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData1 = row.searchData) === null || _row$searchData1 === void 0 ? void 0 : (_row$searchData1$appl = _row$searchData1.applicantDetail) === null || _row$searchData1$appl === void 0 ? void 0 : _row$searchData1$appl["mobileNumber"]) || "";
|
|
17465
17503
|
},
|
|
17466
17504
|
Cell: row => {
|
|
17467
17505
|
var _row$cell4, _row$cell4$row, _row$cell4$row$origin, _row$cell4$row$origin2, _row$cell4$row$origin3;
|
|
@@ -17475,8 +17513,8 @@ const TableConfig = t => ({
|
|
|
17475
17513
|
Header: t("LOCALITY"),
|
|
17476
17514
|
id: "localityCode",
|
|
17477
17515
|
accessor: row => {
|
|
17478
|
-
var _row$
|
|
17479
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17516
|
+
var _row$searchData10;
|
|
17517
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData10 = row.searchData) === null || _row$searchData10 === void 0 ? void 0 : _row$searchData10["localityCode"]) || "";
|
|
17480
17518
|
},
|
|
17481
17519
|
Cell: ({
|
|
17482
17520
|
row
|
|
@@ -17516,8 +17554,8 @@ const TableConfig = t => ({
|
|
|
17516
17554
|
Header: t("MT_BOOKING_NO"),
|
|
17517
17555
|
id: "bookingNo",
|
|
17518
17556
|
accessor: row => {
|
|
17519
|
-
var _row$
|
|
17520
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17557
|
+
var _row$searchData11;
|
|
17558
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData11 = row.searchData) === null || _row$searchData11 === void 0 ? void 0 : _row$searchData11["bookingNo"]) || "";
|
|
17521
17559
|
},
|
|
17522
17560
|
Cell: ({
|
|
17523
17561
|
row
|
|
@@ -17537,8 +17575,8 @@ const TableConfig = t => ({
|
|
|
17537
17575
|
Header: t("MT_APPLICANT_NAME"),
|
|
17538
17576
|
id: "applicantName",
|
|
17539
17577
|
accessor: row => {
|
|
17540
|
-
var _row$
|
|
17541
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17578
|
+
var _row$searchData12, _row$searchData12$app;
|
|
17579
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData12 = row.searchData) === null || _row$searchData12 === void 0 ? void 0 : (_row$searchData12$app = _row$searchData12.applicantDetail) === null || _row$searchData12$app === void 0 ? void 0 : _row$searchData12$app["name"]) || "";
|
|
17542
17580
|
},
|
|
17543
17581
|
Cell: row => {
|
|
17544
17582
|
var _row$cell5, _row$cell5$row, _row$cell5$row$origin, _row$cell5$row$origin2, _row$cell5$row$origin3;
|
|
@@ -17552,8 +17590,8 @@ const TableConfig = t => ({
|
|
|
17552
17590
|
Header: t("MT_MOBILE_NUMBER"),
|
|
17553
17591
|
id: "mobileNumber",
|
|
17554
17592
|
accessor: row => {
|
|
17555
|
-
var _row$
|
|
17556
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17593
|
+
var _row$searchData13, _row$searchData13$app;
|
|
17594
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData13 = row.searchData) === null || _row$searchData13 === void 0 ? void 0 : (_row$searchData13$app = _row$searchData13.applicantDetail) === null || _row$searchData13$app === void 0 ? void 0 : _row$searchData13$app["mobileNumber"]) || "";
|
|
17557
17595
|
},
|
|
17558
17596
|
Cell: row => {
|
|
17559
17597
|
var _row$cell6, _row$cell6$row, _row$cell6$row$origin, _row$cell6$row$origin2, _row$cell6$row$origin3;
|
|
@@ -17567,8 +17605,8 @@ const TableConfig = t => ({
|
|
|
17567
17605
|
Header: t("LOCALITY"),
|
|
17568
17606
|
id: "localityCode",
|
|
17569
17607
|
accessor: row => {
|
|
17570
|
-
var _row$
|
|
17571
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
17608
|
+
var _row$searchData14;
|
|
17609
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData14 = row.searchData) === null || _row$searchData14 === void 0 ? void 0 : _row$searchData14["localityCode"]) || "";
|
|
17572
17610
|
},
|
|
17573
17611
|
Cell: ({
|
|
17574
17612
|
row
|
|
@@ -23503,7 +23541,8 @@ const PermissionCheck = ({
|
|
|
23503
23541
|
function PropertyDocuments({
|
|
23504
23542
|
documents,
|
|
23505
23543
|
svgStyles = {},
|
|
23506
|
-
isSendBackFlow = false
|
|
23544
|
+
isSendBackFlow = false,
|
|
23545
|
+
applicationStatus
|
|
23507
23546
|
}) {
|
|
23508
23547
|
const {
|
|
23509
23548
|
t
|
|
@@ -23512,6 +23551,29 @@ function PropertyDocuments({
|
|
|
23512
23551
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
23513
23552
|
const [pdfFiles, setPdfFiles] = useState({});
|
|
23514
23553
|
const [modalFile, setModalFile] = useState(null);
|
|
23554
|
+
const [checkedMap, setCheckedMap] = useState({});
|
|
23555
|
+
useEffect(() => {
|
|
23556
|
+
let requiredDocsCount = 0;
|
|
23557
|
+
let checkedCount = 0;
|
|
23558
|
+
documents === null || documents === void 0 ? void 0 : documents.forEach(document => {
|
|
23559
|
+
var _document$values;
|
|
23560
|
+
document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.forEach(value => {
|
|
23561
|
+
if (!value.isPhoto) {
|
|
23562
|
+
var _value$originalDoc, _value$originalDoc2;
|
|
23563
|
+
requiredDocsCount++;
|
|
23564
|
+
const isChecked = checkedMap[value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.id] ?? (value === null || value === void 0 ? void 0 : (_value$originalDoc2 = value.originalDoc) === null || _value$originalDoc2 === void 0 ? void 0 : _value$originalDoc2.isVerified) ?? false;
|
|
23565
|
+
if (isChecked) {
|
|
23566
|
+
checkedCount++;
|
|
23567
|
+
}
|
|
23568
|
+
}
|
|
23569
|
+
});
|
|
23570
|
+
});
|
|
23571
|
+
const allChecked = requiredDocsCount === 0 || checkedCount === requiredDocsCount;
|
|
23572
|
+
window.isDocumentsVerified = allChecked;
|
|
23573
|
+
window.dispatchEvent(new CustomEvent("DOCUMENTS_VERIFIED", {
|
|
23574
|
+
detail: allChecked
|
|
23575
|
+
}));
|
|
23576
|
+
}, [checkedMap, documents]);
|
|
23515
23577
|
useEffect(() => {
|
|
23516
23578
|
var _acc;
|
|
23517
23579
|
let acc = [];
|
|
@@ -23541,6 +23603,32 @@ function PropertyDocuments({
|
|
|
23541
23603
|
const last = parts[parts.length - 1] || "";
|
|
23542
23604
|
return last.replace(/_/g, " ").replace(/\b\w/g, c => c.toUpperCase());
|
|
23543
23605
|
};
|
|
23606
|
+
const forceDownload = async (url, fileName) => {
|
|
23607
|
+
try {
|
|
23608
|
+
const response = await fetch(url);
|
|
23609
|
+
if (!response.ok) {
|
|
23610
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
23611
|
+
}
|
|
23612
|
+
const blob = await response.blob();
|
|
23613
|
+
const contentType = response.headers.get("content-type") || blob.type;
|
|
23614
|
+
const blobUrl = window.URL.createObjectURL(blob);
|
|
23615
|
+
const baseFileName = fileName.replace(/\.[^/.]+$/, "");
|
|
23616
|
+
let extension = "pdf";
|
|
23617
|
+
if (contentType) {
|
|
23618
|
+
if (contentType.includes("image/jpeg")) extension = "jpg";else if (contentType.includes("image/png")) extension = "png";else if (contentType.includes("image/webp")) extension = "webp";else if (contentType.includes("application/pdf")) extension = "pdf";else if (contentType.includes("text/plain")) extension = "txt";
|
|
23619
|
+
}
|
|
23620
|
+
const link = document.createElement("a");
|
|
23621
|
+
link.href = blobUrl;
|
|
23622
|
+
link.setAttribute("download", `${baseFileName}.${extension}`);
|
|
23623
|
+
document.body.appendChild(link);
|
|
23624
|
+
link.click();
|
|
23625
|
+
link.parentNode.removeChild(link);
|
|
23626
|
+
setTimeout(() => window.URL.revokeObjectURL(blobUrl), 100);
|
|
23627
|
+
} catch (err) {
|
|
23628
|
+
console.error("Error downloading file", err);
|
|
23629
|
+
window.open(url, "_blank");
|
|
23630
|
+
}
|
|
23631
|
+
};
|
|
23544
23632
|
const renderModal = () => {
|
|
23545
23633
|
if (!modalFile) return null;
|
|
23546
23634
|
const isPdf = modalFile.toLowerCase().includes(".pdf") || modalFile.toLowerCase().includes("pdf");
|
|
@@ -23549,11 +23637,47 @@ function PropertyDocuments({
|
|
|
23549
23637
|
className: "heading-m"
|
|
23550
23638
|
}, "Document Preview"),
|
|
23551
23639
|
headerBarEnd: /*#__PURE__*/React.createElement("div", {
|
|
23640
|
+
style: {
|
|
23641
|
+
display: "flex",
|
|
23642
|
+
gap: "15px",
|
|
23643
|
+
alignItems: "center",
|
|
23644
|
+
paddingRight: "10px"
|
|
23645
|
+
}
|
|
23646
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23647
|
+
onClick: () => {
|
|
23648
|
+
forceDownload(modalFile, "Document.pdf");
|
|
23649
|
+
},
|
|
23650
|
+
style: {
|
|
23651
|
+
cursor: "pointer",
|
|
23652
|
+
display: "flex",
|
|
23653
|
+
alignItems: "center"
|
|
23654
|
+
},
|
|
23655
|
+
title: "Download Document"
|
|
23656
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
23657
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23658
|
+
width: "20",
|
|
23659
|
+
height: "20",
|
|
23660
|
+
viewBox: "0 0 24 24",
|
|
23661
|
+
fill: "none",
|
|
23662
|
+
stroke: "currentColor",
|
|
23663
|
+
strokeWidth: "2",
|
|
23664
|
+
strokeLinecap: "round",
|
|
23665
|
+
strokeLinejoin: "round"
|
|
23666
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
23667
|
+
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
|
|
23668
|
+
}), /*#__PURE__*/React.createElement("polyline", {
|
|
23669
|
+
points: "7 10 12 15 17 10"
|
|
23670
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
23671
|
+
x1: "12",
|
|
23672
|
+
y1: "15",
|
|
23673
|
+
x2: "12",
|
|
23674
|
+
y2: "3"
|
|
23675
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
23552
23676
|
onClick: () => setModalFile(null),
|
|
23553
23677
|
style: {
|
|
23554
23678
|
cursor: "pointer",
|
|
23555
|
-
|
|
23556
|
-
|
|
23679
|
+
display: "flex",
|
|
23680
|
+
alignItems: "center"
|
|
23557
23681
|
}
|
|
23558
23682
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
23559
23683
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -23566,7 +23690,7 @@ function PropertyDocuments({
|
|
|
23566
23690
|
fill: "none"
|
|
23567
23691
|
}), /*#__PURE__*/React.createElement("path", {
|
|
23568
23692
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
23569
|
-
}))),
|
|
23693
|
+
})))),
|
|
23570
23694
|
hideSubmit: true,
|
|
23571
23695
|
popupStyles: {
|
|
23572
23696
|
maxWidth: "80vw",
|
|
@@ -23600,7 +23724,7 @@ function PropertyDocuments({
|
|
|
23600
23724
|
}));
|
|
23601
23725
|
};
|
|
23602
23726
|
const renderDocumentRow = (value, index) => {
|
|
23603
|
-
var _pdfFiles$value$fileS
|
|
23727
|
+
var _pdfFiles$value$fileS;
|
|
23604
23728
|
const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
|
|
23605
23729
|
const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
|
|
23606
23730
|
const docUid = (value === null || value === void 0 ? void 0 : value.documentUid) || "";
|
|
@@ -23673,30 +23797,74 @@ function PropertyDocuments({
|
|
|
23673
23797
|
style: {
|
|
23674
23798
|
cursor: "pointer"
|
|
23675
23799
|
}
|
|
23676
|
-
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto &&
|
|
23677
|
-
|
|
23678
|
-
|
|
23679
|
-
|
|
23680
|
-
|
|
23681
|
-
|
|
23682
|
-
|
|
23683
|
-
|
|
23684
|
-
|
|
23685
|
-
|
|
23686
|
-
|
|
23687
|
-
|
|
23688
|
-
style: {
|
|
23689
|
-
width: "18px",
|
|
23690
|
-
height: "18px",
|
|
23691
|
-
accentColor: "#F47738"
|
|
23692
|
-
},
|
|
23693
|
-
defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified,
|
|
23694
|
-
onChange: e => {
|
|
23695
|
-
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
23696
|
-
value.originalDoc.isVerified = e.target.checked;
|
|
23800
|
+
}, /*#__PURE__*/React.createElement(ViewsIcon, null)), !isPhoto && ((_value$originalDoc3, _value$originalDoc4, _value$originalDoc5, _value$originalDoc6, _value$originalDoc7) => {
|
|
23801
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
23802
|
+
onClick: () => {
|
|
23803
|
+
if (fileUrl) {
|
|
23804
|
+
forceDownload(fileUrl, `${docSubType || "Document"}.pdf`);
|
|
23805
|
+
}
|
|
23806
|
+
},
|
|
23807
|
+
title: "Download Document",
|
|
23808
|
+
style: {
|
|
23809
|
+
cursor: "pointer",
|
|
23810
|
+
display: "flex",
|
|
23811
|
+
alignItems: "center"
|
|
23697
23812
|
}
|
|
23698
|
-
}
|
|
23699
|
-
|
|
23813
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
23814
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23815
|
+
width: "24",
|
|
23816
|
+
height: "24",
|
|
23817
|
+
viewBox: "0 0 24 24",
|
|
23818
|
+
fill: "none",
|
|
23819
|
+
stroke: "currentColor",
|
|
23820
|
+
strokeWidth: "2",
|
|
23821
|
+
strokeLinecap: "round",
|
|
23822
|
+
strokeLinejoin: "round"
|
|
23823
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
23824
|
+
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
|
|
23825
|
+
}), /*#__PURE__*/React.createElement("polyline", {
|
|
23826
|
+
points: "7 10 12 15 17 10"
|
|
23827
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
23828
|
+
x1: "12",
|
|
23829
|
+
y1: "15",
|
|
23830
|
+
x2: "12",
|
|
23831
|
+
y2: "3"
|
|
23832
|
+
}))), /*#__PURE__*/React.createElement("label", {
|
|
23833
|
+
style: {
|
|
23834
|
+
display: "flex",
|
|
23835
|
+
alignItems: "center",
|
|
23836
|
+
gap: "8px",
|
|
23837
|
+
fontSize: "14px",
|
|
23838
|
+
color: "#0B0C0C",
|
|
23839
|
+
margin: 0
|
|
23840
|
+
}
|
|
23841
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
23842
|
+
key: `chk-${value === null || value === void 0 ? void 0 : (_value$originalDoc5 = value.originalDoc) === null || _value$originalDoc5 === void 0 ? void 0 : _value$originalDoc5.id}-${value === null || value === void 0 ? void 0 : (_value$originalDoc6 = value.originalDoc) === null || _value$originalDoc6 === void 0 ? void 0 : _value$originalDoc6.isVerified}`,
|
|
23843
|
+
type: "checkbox",
|
|
23844
|
+
className: "verify-doc-checkbox",
|
|
23845
|
+
style: {
|
|
23846
|
+
width: "18px",
|
|
23847
|
+
height: "18px",
|
|
23848
|
+
accentColor: "#F47738",
|
|
23849
|
+
cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" ? "not-allowed" : "pointer"
|
|
23850
|
+
},
|
|
23851
|
+
disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION",
|
|
23852
|
+
defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc7 = value.originalDoc) === null || _value$originalDoc7 === void 0 ? void 0 : _value$originalDoc7.isVerified,
|
|
23853
|
+
onChange: e => {
|
|
23854
|
+
var _value$originalDoc8;
|
|
23855
|
+
const checked = e.target.checked;
|
|
23856
|
+
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
23857
|
+
value.originalDoc.isVerified = checked;
|
|
23858
|
+
}
|
|
23859
|
+
if (value !== null && value !== void 0 && (_value$originalDoc8 = value.originalDoc) !== null && _value$originalDoc8 !== void 0 && _value$originalDoc8.id) {
|
|
23860
|
+
setCheckedMap(prev => ({
|
|
23861
|
+
...prev,
|
|
23862
|
+
[value.originalDoc.id]: checked
|
|
23863
|
+
}));
|
|
23864
|
+
}
|
|
23865
|
+
}
|
|
23866
|
+
}), "Check Verified"));
|
|
23867
|
+
})())
|
|
23700
23868
|
})));
|
|
23701
23869
|
};
|
|
23702
23870
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -23704,7 +23872,7 @@ function PropertyDocuments({
|
|
|
23704
23872
|
marginTop: "19px"
|
|
23705
23873
|
}
|
|
23706
23874
|
}, renderModal(), !isStakeholderApplication && (documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
|
|
23707
|
-
var _document$
|
|
23875
|
+
var _document$values2;
|
|
23708
23876
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
23709
23877
|
key: index
|
|
23710
23878
|
}, document !== null && document !== void 0 && document.title ? /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
@@ -23730,7 +23898,7 @@ function PropertyDocuments({
|
|
|
23730
23898
|
flexWrap: "wrap",
|
|
23731
23899
|
justifyContent: "flex-start"
|
|
23732
23900
|
}
|
|
23733
|
-
}, document !== null && document !== void 0 && document.values && (document === null || document === void 0 ? void 0 : document.values.length) > 0 ? document === null || document === void 0 ? void 0 : (_document$
|
|
23901
|
+
}, document !== null && document !== void 0 && document.values && (document === null || document === void 0 ? void 0 : document.values.length) > 0 ? document === null || document === void 0 ? void 0 : (_document$values2 = document.values) === null || _document$values2 === void 0 ? void 0 : _document$values2.map((value, index) => {
|
|
23734
23902
|
var _pdfFiles$value$fileS2, _value$documentType;
|
|
23735
23903
|
return /*#__PURE__*/React.createElement("a", {
|
|
23736
23904
|
target: "_",
|
|
@@ -23770,7 +23938,7 @@ function PropertyDocuments({
|
|
|
23770
23938
|
}, t(value === null || value === void 0 ? void 0 : value.documentType)) : "");
|
|
23771
23939
|
}) : !window.location.href.includes("citizen") && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")))));
|
|
23772
23940
|
})), isStakeholderApplication && (documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
|
|
23773
|
-
var _document$
|
|
23941
|
+
var _document$values3;
|
|
23774
23942
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
23775
23943
|
key: index
|
|
23776
23944
|
}, document !== null && document !== void 0 && document.title ? /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
@@ -23780,7 +23948,7 @@ function PropertyDocuments({
|
|
|
23780
23948
|
color: "#505A5F",
|
|
23781
23949
|
fontSize: "24px"
|
|
23782
23950
|
}
|
|
23783
|
-
}, t(document === null || document === void 0 ? void 0 : document.title)) : null, /*#__PURE__*/React.createElement("div", null, document !== null && document !== void 0 && document.values && (document === null || document === void 0 ? void 0 : document.values.length) > 0 ? document === null || document === void 0 ? void 0 : (_document$
|
|
23951
|
+
}, t(document === null || document === void 0 ? void 0 : document.title)) : null, /*#__PURE__*/React.createElement("div", null, document !== null && document !== void 0 && document.values && (document === null || document === void 0 ? void 0 : document.values.length) > 0 ? document === null || document === void 0 ? void 0 : (_document$values3 = document.values) === null || _document$values3 === void 0 ? void 0 : _document$values3.map((value, index) => {
|
|
23784
23952
|
var _pdfFiles$value$fileS3;
|
|
23785
23953
|
return /*#__PURE__*/React.createElement("a", {
|
|
23786
23954
|
target: "_",
|
|
@@ -23949,131 +24117,6 @@ function PropertyFloors({
|
|
|
23949
24117
|
}));
|
|
23950
24118
|
}
|
|
23951
24119
|
|
|
23952
|
-
function PropertyOwners({
|
|
23953
|
-
owners
|
|
23954
|
-
}) {
|
|
23955
|
-
let ownerSequences = {};
|
|
23956
|
-
if (window.location.href.includes("/employee/pt/")) {
|
|
23957
|
-
ownerSequences = owners.slice().reverse();
|
|
23958
|
-
} else {
|
|
23959
|
-
ownerSequences = owners;
|
|
23960
|
-
}
|
|
23961
|
-
const {
|
|
23962
|
-
t
|
|
23963
|
-
} = useTranslation();
|
|
23964
|
-
const checkOwnerLength = (owners === null || owners === void 0 ? void 0 : owners.length) || 1;
|
|
23965
|
-
let cardStyles = {
|
|
23966
|
-
marginTop: "19px"
|
|
23967
|
-
};
|
|
23968
|
-
let statusTableStyles = {
|
|
23969
|
-
position: "relative",
|
|
23970
|
-
padding: "8px"
|
|
23971
|
-
};
|
|
23972
|
-
let rowContainerStyle = {
|
|
23973
|
-
justifyContent: "space-between",
|
|
23974
|
-
fontSize: "16px",
|
|
23975
|
-
lineHeight: "19px",
|
|
23976
|
-
color: "#0B0C0C"
|
|
23977
|
-
};
|
|
23978
|
-
if ( Number(checkOwnerLength) > 1) {
|
|
23979
|
-
cardStyles = {
|
|
23980
|
-
marginTop: "19px",
|
|
23981
|
-
background: "#FAFAFA",
|
|
23982
|
-
border: "1px solid #D6D5D4",
|
|
23983
|
-
borderRadius: "4px",
|
|
23984
|
-
padding: "8px",
|
|
23985
|
-
lineHeight: "19px",
|
|
23986
|
-
maxWidth: "600px",
|
|
23987
|
-
minWidth: "280px"
|
|
23988
|
-
};
|
|
23989
|
-
} else if ( !(Number(checkOwnerLength) > 1)) {
|
|
23990
|
-
cardStyles = {
|
|
23991
|
-
marginTop: "19px",
|
|
23992
|
-
lineHeight: "19px",
|
|
23993
|
-
maxWidth: "600px",
|
|
23994
|
-
minWidth: "280px"
|
|
23995
|
-
};
|
|
23996
|
-
statusTableStyles = {
|
|
23997
|
-
position: "relative",
|
|
23998
|
-
marginTop: "19px"
|
|
23999
|
-
};
|
|
24000
|
-
}
|
|
24001
|
-
if (window.location.href.includes("obps")) {
|
|
24002
|
-
cardStyles = {
|
|
24003
|
-
...cardStyles,
|
|
24004
|
-
maxWidth: "950px"
|
|
24005
|
-
};
|
|
24006
|
-
cardStyles = {
|
|
24007
|
-
...cardStyles,
|
|
24008
|
-
maxWidth: "950px"
|
|
24009
|
-
};
|
|
24010
|
-
rowContainerStyle = {};
|
|
24011
|
-
}
|
|
24012
|
-
let owners1 = owners.sort((item, item2) => {
|
|
24013
|
-
var _item$additionalDetai, _item2$additionalDeta;
|
|
24014
|
-
return (item === null || item === void 0 ? void 0 : (_item$additionalDetai = item.additionalDetails) === null || _item$additionalDetai === void 0 ? void 0 : _item$additionalDetai.ownerSequence) - (item2 === null || item2 === void 0 ? void 0 : (_item2$additionalDeta = item2.additionalDetails) === null || _item2$additionalDeta === void 0 ? void 0 : _item2$additionalDeta.ownerSequence);
|
|
24015
|
-
});
|
|
24016
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
24017
|
-
className: "owner-details"
|
|
24018
|
-
}, ownerSequences.map((owner, index) => {
|
|
24019
|
-
var _owner$values;
|
|
24020
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
24021
|
-
key: t(owner === null || owner === void 0 ? void 0 : owner.title),
|
|
24022
|
-
style: cardStyles,
|
|
24023
|
-
className: "owner-details-child"
|
|
24024
|
-
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
24025
|
-
style: Number(checkOwnerLength) > 1 ? {
|
|
24026
|
-
marginBottom: "8px",
|
|
24027
|
-
paddingBottom: "9px",
|
|
24028
|
-
color: "#0B0C0C",
|
|
24029
|
-
fontSize: "16px",
|
|
24030
|
-
lineHeight: "19px"
|
|
24031
|
-
} : {
|
|
24032
|
-
marginBottom: "8px",
|
|
24033
|
-
color: "#505A5F",
|
|
24034
|
-
fontSize: "24px"
|
|
24035
|
-
}
|
|
24036
|
-
}, Number(checkOwnerLength) > 1 ? `${t(owner === null || owner === void 0 ? void 0 : owner.title)} ${index + 1}` : t(owner === null || owner === void 0 ? void 0 : owner.title)), /*#__PURE__*/React.createElement(React.Fragment, {
|
|
24037
|
-
key: index
|
|
24038
|
-
}, /*#__PURE__*/React.createElement(StatusTable, {
|
|
24039
|
-
style: statusTableStyles
|
|
24040
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
24041
|
-
style: {
|
|
24042
|
-
maxWidth: "640px",
|
|
24043
|
-
top: 0,
|
|
24044
|
-
left: 0,
|
|
24045
|
-
bottom: 0,
|
|
24046
|
-
right: 0,
|
|
24047
|
-
width: "auto"
|
|
24048
|
-
}
|
|
24049
|
-
}), owner === null || owner === void 0 ? void 0 : (_owner$values = owner.values) === null || _owner$values === void 0 ? void 0 : _owner$values.map((value, index) => {
|
|
24050
|
-
var _value$values;
|
|
24051
|
-
if (value.map === true && value.value !== "N/A") {
|
|
24052
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
24053
|
-
key: t(value.title),
|
|
24054
|
-
label: t(value.title),
|
|
24055
|
-
text: /*#__PURE__*/React.createElement("img", {
|
|
24056
|
-
src: t(value.value),
|
|
24057
|
-
alt: "",
|
|
24058
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy
|
|
24059
|
-
})
|
|
24060
|
-
});
|
|
24061
|
-
}
|
|
24062
|
-
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Row, {
|
|
24063
|
-
key: t(value.title),
|
|
24064
|
-
label: `${t(value.title)}`,
|
|
24065
|
-
text: t(value.value) || "N/A",
|
|
24066
|
-
last: index === (value === null || value === void 0 ? void 0 : (_value$values = value.values) === null || _value$values === void 0 ? void 0 : _value$values.length) - 1,
|
|
24067
|
-
caption: value.caption,
|
|
24068
|
-
className: "border-none",
|
|
24069
|
-
textStyle: value.textStyle,
|
|
24070
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy,
|
|
24071
|
-
rowContainerStyle: rowContainerStyle
|
|
24072
|
-
}));
|
|
24073
|
-
}))));
|
|
24074
|
-
})));
|
|
24075
|
-
}
|
|
24076
|
-
|
|
24077
24120
|
const ScruntinyDetails = ({
|
|
24078
24121
|
scrutinyDetails,
|
|
24079
24122
|
paymentsList: _paymentsList = []
|
|
@@ -25875,7 +25918,7 @@ function ApplicationDetailsContent({
|
|
|
25875
25918
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
25876
25919
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
25877
25920
|
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
|
|
25878
|
-
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9,
|
|
25921
|
+
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27;
|
|
25879
25922
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
25880
25923
|
key: index
|
|
25881
25924
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -26073,53 +26116,52 @@ function ApplicationDetailsContent({
|
|
|
26073
26116
|
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : (_applicationDetails$a6 = _applicationDetails$a5.additionalDetails) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.fieldinspection_pending
|
|
26074
26117
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React.createElement(PropertyFloors, {
|
|
26075
26118
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
26076
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.
|
|
26077
|
-
|
|
26078
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.
|
|
26079
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.
|
|
26080
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.
|
|
26081
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.accessories
|
|
26082
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React.createElement(PermissionCheck, {
|
|
26119
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.units) && /*#__PURE__*/React.createElement(TLTradeUnits, {
|
|
26120
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet6 = detail.additionalDetails) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.units
|
|
26121
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.accessories) && /*#__PURE__*/React.createElement(TLTradeAccessories, {
|
|
26122
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.accessories
|
|
26123
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React.createElement(PermissionCheck, {
|
|
26083
26124
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
26084
26125
|
t: t,
|
|
26085
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26086
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26126
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.permissions
|
|
26127
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.obpsDocuments) && /*#__PURE__*/React.createElement(BPADocuments, {
|
|
26087
26128
|
t: t,
|
|
26088
26129
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
26089
26130
|
docs: detail.additionalDetails.obpsDocuments,
|
|
26090
26131
|
bpaActionsDetails: workflowDetails
|
|
26091
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26132
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.noc) && /*#__PURE__*/React.createElement(NOCDocuments, {
|
|
26092
26133
|
t: t,
|
|
26093
26134
|
isNoc: true,
|
|
26094
26135
|
NOCdata: detail.values,
|
|
26095
26136
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
26096
26137
|
docs: detail.additionalDetails.noc,
|
|
26097
|
-
noc: (_detail$
|
|
26138
|
+
noc: (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.data,
|
|
26098
26139
|
bpaActionsDetails: workflowDetails
|
|
26099
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26140
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.scruntinyDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
26100
26141
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
26101
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26142
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.buildingExtractionDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
26102
26143
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
26103
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26144
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.subOccupancyTableDetails) && /*#__PURE__*/React.createElement(SubOccupancyTable, {
|
|
26104
26145
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
26105
26146
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
26106
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26107
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26108
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26109
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26110
|
-
|
|
26111
|
-
|
|
26147
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.documentsWithUrl) && /*#__PURE__*/React.createElement(DocumentsPreview, {
|
|
26148
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.documentsWithUrl
|
|
26149
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
|
|
26150
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
26151
|
+
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
26152
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
26153
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.taxHeadEstimatesCalculation
|
|
26112
26154
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
26113
26155
|
wsAdditionalDetails: detail,
|
|
26114
26156
|
oldValue: oldValue
|
|
26115
|
-
}), (detail === null || detail === void 0 ? void 0 : detail.isDueVerification) && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" && /*#__PURE__*/React.createElement(DueVerification, null), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26116
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26157
|
+
}), (detail === null || detail === void 0 ? void 0 : detail.isDueVerification) && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" && /*#__PURE__*/React.createElement(DueVerification, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
26158
|
+
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : (_detail$additionalDet23 = _detail$additionalDet22.redirectUrl) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.url
|
|
26117
26159
|
}, /*#__PURE__*/React.createElement("span", {
|
|
26118
26160
|
className: "add-details-link hover-button"
|
|
26119
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26161
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.title)), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : _detail$additionalDet26.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
26120
26162
|
wsAdditionalDetails: detail,
|
|
26121
26163
|
workflowDetails: workflowDetails
|
|
26122
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
26164
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet27 = detail.additionalDetails) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
|
|
26123
26165
|
wsAdditionalDetails: detail,
|
|
26124
26166
|
workflowDetails: workflowDetails
|
|
26125
26167
|
}));
|
|
@@ -26268,7 +26310,22 @@ function ApplicationDetailsActionBar({
|
|
|
26268
26310
|
t
|
|
26269
26311
|
} = useTranslation();
|
|
26270
26312
|
let user = Digit.UserService.getUser();
|
|
26271
|
-
const menuRef = useRef();
|
|
26313
|
+
const menuRef = React.useRef();
|
|
26314
|
+
const [isSubmitDisabled, setIsSubmitDisabled] = React.useState(() => {
|
|
26315
|
+
if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
|
|
26316
|
+
return !window.isDocumentsVerified;
|
|
26317
|
+
}
|
|
26318
|
+
return false;
|
|
26319
|
+
});
|
|
26320
|
+
React.useEffect(() => {
|
|
26321
|
+
const handleDocVerification = e => {
|
|
26322
|
+
setIsSubmitDisabled(!e.detail);
|
|
26323
|
+
};
|
|
26324
|
+
if (typeof window !== "undefined") {
|
|
26325
|
+
window.addEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
26326
|
+
return () => window.removeEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
26327
|
+
}
|
|
26328
|
+
}, []);
|
|
26272
26329
|
if (window.location.href.includes("/obps") || window.location.href.includes("/noc")) {
|
|
26273
26330
|
const userInfos = sessionStorage.getItem("Digit.citizen.userRequestObject");
|
|
26274
26331
|
const userInfo = userInfos ? JSON.parse(userInfos) : {};
|
|
@@ -26316,7 +26373,8 @@ function ApplicationDetailsActionBar({
|
|
|
26316
26373
|
}) : null, businessService === "ewst" ? modified === uuid || modified == null ? /*#__PURE__*/React.createElement(SubmitBar, {
|
|
26317
26374
|
ref: menuRef,
|
|
26318
26375
|
label: t("WF_TAKE_ACTION"),
|
|
26319
|
-
onSubmit: () => setDisplayMenu(!displayMenu)
|
|
26376
|
+
onSubmit: () => setDisplayMenu(!displayMenu),
|
|
26377
|
+
disabled: isSubmitDisabled
|
|
26320
26378
|
}) : /*#__PURE__*/React.createElement(CardLabel, {
|
|
26321
26379
|
style: {
|
|
26322
26380
|
color: "red",
|
|
@@ -26326,7 +26384,8 @@ function ApplicationDetailsActionBar({
|
|
|
26326
26384
|
}, `${t("EW_ALERT_ANOTHER_VENDOR")}`) : /*#__PURE__*/React.createElement(SubmitBar, {
|
|
26327
26385
|
ref: menuRef,
|
|
26328
26386
|
label: t("WF_TAKE_ACTION"),
|
|
26329
|
-
onSubmit: () => setDisplayMenu(!displayMenu)
|
|
26387
|
+
onSubmit: () => setDisplayMenu(!displayMenu),
|
|
26388
|
+
disabled: isSubmitDisabled
|
|
26330
26389
|
})), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isMenuBotton && isSingleButton && !isAction && /*#__PURE__*/React.createElement(ActionBar, {
|
|
26331
26390
|
style: {
|
|
26332
26391
|
...ActionBarStyle
|