@djb25/digit-ui-module-ekyc 1.0.53 → 1.0.54
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 +319 -204
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +319 -204
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3150,25 +3150,10 @@ const Inbox = _ref2 => {
|
|
|
3150
3150
|
targetVendorId: matchedId,
|
|
3151
3151
|
allVendorIds: allIds
|
|
3152
3152
|
};
|
|
3153
|
-
}, [vendorSearchResponse])
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
if (targetVendorId) {
|
|
3158
|
-
return {
|
|
3159
|
-
vendorId: targetVendorId,
|
|
3160
|
-
vendorIds: [targetVendorId]
|
|
3161
|
-
};
|
|
3162
|
-
}
|
|
3163
|
-
if (allVendorIds && allVendorIds.length > 0) {
|
|
3164
|
-
return {
|
|
3165
|
-
vendorId: allVendorIds[0],
|
|
3166
|
-
vendorIds: allVendorIds
|
|
3167
|
-
};
|
|
3168
|
-
}
|
|
3169
|
-
return {};
|
|
3170
|
-
}, [targetVendorId, allVendorIds]);
|
|
3171
|
-
const _Digit$Hooks$ekyc$use3 = Digit.Hooks.ekyc.useEkycAssignmentProgress(progressParams, {
|
|
3153
|
+
}, [vendorSearchResponse]);
|
|
3154
|
+
const _Digit$Hooks$ekyc$use3 = Digit.Hooks.ekyc.useEkycAssignmentProgress({
|
|
3155
|
+
tenantId
|
|
3156
|
+
}, {
|
|
3172
3157
|
enabled: !!tenantId,
|
|
3173
3158
|
keepPreviousData: true
|
|
3174
3159
|
}),
|
|
@@ -3230,65 +3215,56 @@ const Inbox = _ref2 => {
|
|
|
3230
3215
|
}, [sourceData]);
|
|
3231
3216
|
const _useTranslation = reactI18next.useTranslation(),
|
|
3232
3217
|
t = _useTranslation.t;
|
|
3233
|
-
const
|
|
3234
|
-
var
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
const progressPercent = totalKnos > 0 ? Math.round(submittedKnos / totalKnos * 100) : 0;
|
|
3252
|
-
return {
|
|
3253
|
-
totalKnos,
|
|
3254
|
-
submittedKnos,
|
|
3255
|
-
pendingKnos,
|
|
3256
|
-
progressPercent
|
|
3257
|
-
};
|
|
3258
|
-
}
|
|
3259
|
-
return null;
|
|
3218
|
+
const progressMetrics = React.useMemo(() => {
|
|
3219
|
+
var _ref3, _progressData$totalKn, _ref4, _progressData$complet, _progressData$pending, _ref5, _progressData$overall;
|
|
3220
|
+
if (!progressData) return {
|
|
3221
|
+
totalKnos: 0,
|
|
3222
|
+
submittedKnos: 0,
|
|
3223
|
+
pendingKnos: 0,
|
|
3224
|
+
progressPercent: 0
|
|
3225
|
+
};
|
|
3226
|
+
const totalKnos = (_ref3 = (_progressData$totalKn = progressData === null || progressData === void 0 ? void 0 : progressData.totalKnos) != null ? _progressData$totalKn : progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) != null ? _ref3 : 0;
|
|
3227
|
+
const submittedKnos = (_ref4 = (_progressData$complet = progressData === null || progressData === void 0 ? void 0 : progressData.completedKnos) != null ? _progressData$complet : progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnos) != null ? _ref4 : 0;
|
|
3228
|
+
const pendingKnos = (_progressData$pending = progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnos) != null ? _progressData$pending : totalKnos >= submittedKnos ? totalKnos - submittedKnos : 0;
|
|
3229
|
+
const progressPercent = (_ref5 = (_progressData$overall = progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) != null ? _progressData$overall : progressData === null || progressData === void 0 ? void 0 : progressData.progressPercent) != null ? _ref5 : totalKnos > 0 ? (submittedKnos / totalKnos * 100).toFixed(1) : 0;
|
|
3230
|
+
return {
|
|
3231
|
+
totalKnos,
|
|
3232
|
+
submittedKnos,
|
|
3233
|
+
pendingKnos,
|
|
3234
|
+
progressPercent
|
|
3235
|
+
};
|
|
3260
3236
|
}, [progressData]);
|
|
3261
3237
|
const cards = React.useMemo(() => [{
|
|
3262
3238
|
label: t("TOTAL_EKYC_APPLICATIONS"),
|
|
3263
|
-
count: (
|
|
3239
|
+
count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.totalKnos) || 0,
|
|
3264
3240
|
color: "#0B2559",
|
|
3265
3241
|
type: "today",
|
|
3266
3242
|
icon: /*#__PURE__*/React__default.createElement(fa.FaUsers, null)
|
|
3267
3243
|
}, {
|
|
3268
3244
|
label: t("EKYC_COMPLETED"),
|
|
3269
|
-
count: (
|
|
3245
|
+
count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.submittedKnos) || 0,
|
|
3270
3246
|
color: "#10B981",
|
|
3271
3247
|
type: "month",
|
|
3272
3248
|
icon: /*#__PURE__*/React__default.createElement(fa.FaCheckCircle, null)
|
|
3273
3249
|
}, {
|
|
3274
3250
|
label: t("PENDING_APPLICATIONS"),
|
|
3275
|
-
count: (
|
|
3251
|
+
count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.pendingKnos) || 0,
|
|
3276
3252
|
color: "#F59E0B",
|
|
3277
3253
|
type: "pending",
|
|
3278
3254
|
icon: /*#__PURE__*/React__default.createElement(fa.FaClock, null)
|
|
3279
3255
|
}, {
|
|
3280
3256
|
label: t("OVERALL_PROGRESS"),
|
|
3281
|
-
count: ((
|
|
3257
|
+
count: ((progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.progressPercent) || 0) + "%",
|
|
3282
3258
|
color: "#A855F7",
|
|
3283
3259
|
type: "progress",
|
|
3284
3260
|
icon: /*#__PURE__*/React__default.createElement(fa.FaChartLine, null)
|
|
3285
|
-
}], [
|
|
3261
|
+
}], [progressMetrics, t]);
|
|
3286
3262
|
const totalRecords = (listData === null || listData === void 0 ? void 0 : listData.totalCount) || 0;
|
|
3287
3263
|
const checkPathName = location.pathname.includes("ekyc/inbox");
|
|
3288
|
-
const SearchFormFields = React.useCallback(
|
|
3289
|
-
let registerRef =
|
|
3290
|
-
searchFormState =
|
|
3291
|
-
controlSearchForm =
|
|
3264
|
+
const SearchFormFields = React.useCallback(_ref6 => {
|
|
3265
|
+
let registerRef = _ref6.registerRef,
|
|
3266
|
+
searchFormState = _ref6.searchFormState,
|
|
3267
|
+
controlSearchForm = _ref6.controlSearchForm;
|
|
3292
3268
|
return /*#__PURE__*/React__default.createElement(SearchFormFieldsComponents, {
|
|
3293
3269
|
registerRef,
|
|
3294
3270
|
searchFormState,
|
|
@@ -3593,7 +3569,8 @@ const ReviewSection = _ref2 => {
|
|
|
3593
3569
|
}, t("EKYC_PROPOSED_UPDATES")))), /*#__PURE__*/React__default.createElement("tbody", null, fields.map((field, idx) => {
|
|
3594
3570
|
const valNew = newData === null || newData === void 0 ? void 0 : newData[field.key];
|
|
3595
3571
|
const valOld = oldData === null || oldData === void 0 ? void 0 : oldData[field.key];
|
|
3596
|
-
const
|
|
3572
|
+
const normalizeVal = v => v === null || v === undefined || v === "" ? "" : String(v);
|
|
3573
|
+
const isChanged = oldData && valOld !== undefined && normalizeVal(valNew) !== normalizeVal(valOld);
|
|
3597
3574
|
return /*#__PURE__*/React__default.createElement("tr", {
|
|
3598
3575
|
key: idx,
|
|
3599
3576
|
style: {
|
|
@@ -3606,7 +3583,7 @@ const ReviewSection = _ref2 => {
|
|
|
3606
3583
|
color: "#344054",
|
|
3607
3584
|
fontWeight: "500"
|
|
3608
3585
|
}
|
|
3609
|
-
}, t(field.label)), /*#__PURE__*/React__default.createElement("td", {
|
|
3586
|
+
}, field.preTranslated ? field.label : t(field.label)), /*#__PURE__*/React__default.createElement("td", {
|
|
3610
3587
|
style: {
|
|
3611
3588
|
padding: "16px 0",
|
|
3612
3589
|
fontSize: "14px",
|
|
@@ -3705,6 +3682,8 @@ const Review = () => {
|
|
|
3705
3682
|
const _extractReviewData = extractReviewData(searchData, flowState),
|
|
3706
3683
|
apiNewData = _extractReviewData.newData,
|
|
3707
3684
|
apiOldData = _extractReviewData.oldData;
|
|
3685
|
+
const flatNewData = apiNewData ? _extends({}, apiNewData || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.connectionDetails) || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.addressDetails) || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.propertyInfo) || {}, (apiNewData === null || apiNewData === void 0 ? void 0 : apiNewData.meterDetails) || {}) : null;
|
|
3686
|
+
const flatOldData = apiOldData ? _extends({}, apiOldData || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.connectionDetails) || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.addressDetails) || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.propertyInfo) || {}, (apiOldData === null || apiOldData === void 0 ? void 0 : apiOldData.meterDetails) || {}) : null;
|
|
3708
3687
|
const prepareConsolidatedData = data => {
|
|
3709
3688
|
if (!data) return null;
|
|
3710
3689
|
const apiConn = (data === null || data === void 0 ? void 0 : data.connectionDetails) || data || {};
|
|
@@ -3739,7 +3718,7 @@ const Review = () => {
|
|
|
3739
3718
|
email: apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.email,
|
|
3740
3719
|
noOfPerson: (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.noOfPerson) || (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.noOfPersons),
|
|
3741
3720
|
knumber: (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.knumber) || (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.kno),
|
|
3742
|
-
doorPhotoFilestoreId: apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.doorPhotoFilestoreId
|
|
3721
|
+
doorPhotoFilestoreId: (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.doorPhotoFileStoreId) || (apiAddr === null || apiAddr === void 0 ? void 0 : apiAddr.doorPhotoFilestoreId)
|
|
3743
3722
|
},
|
|
3744
3723
|
property: {
|
|
3745
3724
|
kno: apiProp === null || apiProp === void 0 ? void 0 : apiProp.kno,
|
|
@@ -3752,7 +3731,7 @@ const Review = () => {
|
|
|
3752
3731
|
tenantMobile: apiProp === null || apiProp === void 0 ? void 0 : apiProp.tenantMobile,
|
|
3753
3732
|
ekycStatus: apiProp === null || apiProp === void 0 ? void 0 : apiProp.ekycStatus,
|
|
3754
3733
|
propertyDocumentFileStoreId: apiProp === null || apiProp === void 0 ? void 0 : apiProp.propertyDocumentFileStoreId,
|
|
3755
|
-
buildingImageFileStoreId: apiProp === null || apiProp === void 0 ? void 0 : apiProp.buildingImageFileStoreId
|
|
3734
|
+
buildingImageFileStoreId: (apiProp === null || apiProp === void 0 ? void 0 : apiProp.buildingImageFileStoreId) || (apiProp === null || apiProp === void 0 ? void 0 : apiProp.buildingImageFilestoreId)
|
|
3756
3735
|
},
|
|
3757
3736
|
meter: {
|
|
3758
3737
|
kno: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.kno,
|
|
@@ -3765,12 +3744,11 @@ const Review = () => {
|
|
|
3765
3744
|
workingStatus: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.workingStatus,
|
|
3766
3745
|
lastBillRaised: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.lastBillRaised,
|
|
3767
3746
|
systemMeterId: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.systemMeterId,
|
|
3768
|
-
meterPhotoFileStoreId: apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.meterPhotoFileStoreId
|
|
3747
|
+
meterPhotoFileStoreId: (apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.meterPhotoFileStoreId) || (apiMeter === null || apiMeter === void 0 ? void 0 : apiMeter.meterPhotoFilestoreId)
|
|
3769
3748
|
}
|
|
3770
3749
|
};
|
|
3771
3750
|
};
|
|
3772
3751
|
const newDataRaw = prepareConsolidatedData(apiNewData);
|
|
3773
|
-
const oldDataRaw = prepareConsolidatedData(apiOldData);
|
|
3774
3752
|
const connectionData = _extends({}, newDataRaw === null || newDataRaw === void 0 ? void 0 : newDataRaw.connection, {
|
|
3775
3753
|
consumerName: (aadhaarData === null || aadhaarData === void 0 ? void 0 : aadhaarData.name) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$connectio = newDataRaw.connection) === null || _newDataRaw$connectio === void 0 ? void 0 : _newDataRaw$connectio.consumerName),
|
|
3776
3754
|
phoneNumber: (aadhaarData === null || aadhaarData === void 0 ? void 0 : aadhaarData.mobileNumber) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$connectio2 = newDataRaw.connection) === null || _newDataRaw$connectio2 === void 0 ? void 0 : _newDataRaw$connectio2.phoneNumber),
|
|
@@ -3813,136 +3791,323 @@ const Review = () => {
|
|
|
3813
3791
|
lastBillRaised: (editedMeter === null || editedMeter === void 0 ? void 0 : (_editedMeter$lastBill = editedMeter.lastBillRaisedData) === null || _editedMeter$lastBill === void 0 ? void 0 : _editedMeter$lastBill.value) === "Yes" || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$meter7 = newDataRaw.meter) === null || _newDataRaw$meter7 === void 0 ? void 0 : _newDataRaw$meter7.lastBillRaised),
|
|
3814
3792
|
meterPhotoFileStoreId: (editedMeter === null || editedMeter === void 0 ? void 0 : editedMeter.meterPhotoFileStoreId) || (newDataRaw === null || newDataRaw === void 0 ? void 0 : (_newDataRaw$meter8 = newDataRaw.meter) === null || _newDataRaw$meter8 === void 0 ? void 0 : _newDataRaw$meter8.meterPhotoFileStoreId)
|
|
3815
3793
|
});
|
|
3816
|
-
const
|
|
3817
|
-
|
|
3818
|
-
|
|
3794
|
+
const headerMapping = [{
|
|
3795
|
+
key: "kno",
|
|
3796
|
+
label: "KNO"
|
|
3819
3797
|
}, {
|
|
3820
|
-
|
|
3821
|
-
|
|
3798
|
+
key: "firstName",
|
|
3799
|
+
label: "FIRST_NAME"
|
|
3822
3800
|
}, {
|
|
3823
|
-
|
|
3824
|
-
|
|
3801
|
+
key: "middleName",
|
|
3802
|
+
label: "MIDDLE_NAME"
|
|
3825
3803
|
}, {
|
|
3826
|
-
|
|
3827
|
-
|
|
3804
|
+
key: "lastName",
|
|
3805
|
+
label: "LAST_NAME"
|
|
3828
3806
|
}, {
|
|
3829
|
-
|
|
3830
|
-
|
|
3807
|
+
key: "status",
|
|
3808
|
+
label: "STATUS"
|
|
3831
3809
|
}, {
|
|
3832
|
-
|
|
3833
|
-
|
|
3810
|
+
key: "ekycStatus",
|
|
3811
|
+
label: "EKYC_STATUS"
|
|
3834
3812
|
}, {
|
|
3835
|
-
|
|
3836
|
-
|
|
3813
|
+
key: "zoneName",
|
|
3814
|
+
label: "ZONE"
|
|
3837
3815
|
}, {
|
|
3838
|
-
|
|
3839
|
-
|
|
3816
|
+
key: "zoneCode",
|
|
3817
|
+
label: "ZONE_CODE"
|
|
3840
3818
|
}, {
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
}];
|
|
3844
|
-
const addressFields = [{
|
|
3845
|
-
label: "EKYC_FULL_ADDRESS",
|
|
3846
|
-
key: "fullAddress"
|
|
3819
|
+
key: "assembly",
|
|
3820
|
+
label: "EKYC_ASSEMBLY"
|
|
3847
3821
|
}, {
|
|
3848
|
-
|
|
3849
|
-
|
|
3822
|
+
key: "ward",
|
|
3823
|
+
label: "WARD"
|
|
3850
3824
|
}, {
|
|
3851
|
-
|
|
3852
|
-
|
|
3825
|
+
key: "pincode",
|
|
3826
|
+
label: "EKYC_PINCODE"
|
|
3853
3827
|
}, {
|
|
3854
|
-
|
|
3855
|
-
|
|
3828
|
+
key: "addressRaw",
|
|
3829
|
+
label: "ADDRESS_RAW"
|
|
3856
3830
|
}, {
|
|
3857
|
-
|
|
3858
|
-
|
|
3831
|
+
key: "locality",
|
|
3832
|
+
label: "EKYC_LOCALITY"
|
|
3859
3833
|
}, {
|
|
3860
|
-
|
|
3861
|
-
|
|
3834
|
+
key: "subLocality",
|
|
3835
|
+
label: "SUB_LOCALITY"
|
|
3862
3836
|
}, {
|
|
3863
|
-
|
|
3864
|
-
|
|
3837
|
+
key: "flatHouseNumber",
|
|
3838
|
+
label: "FLAT_HOUSE_NUMBER"
|
|
3865
3839
|
}, {
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
isBool: true
|
|
3840
|
+
key: "streetName",
|
|
3841
|
+
label: "STREET_NAME"
|
|
3869
3842
|
}, {
|
|
3870
|
-
|
|
3871
|
-
|
|
3843
|
+
key: "landmark",
|
|
3844
|
+
label: "EKYC_LANDMARK"
|
|
3872
3845
|
}, {
|
|
3873
|
-
|
|
3874
|
-
|
|
3846
|
+
key: "city",
|
|
3847
|
+
label: "CITY"
|
|
3875
3848
|
}, {
|
|
3876
|
-
|
|
3877
|
-
|
|
3849
|
+
key: "state",
|
|
3850
|
+
label: "STATE"
|
|
3878
3851
|
}, {
|
|
3879
|
-
|
|
3880
|
-
|
|
3852
|
+
key: "addressType",
|
|
3853
|
+
label: "ADDRESS_TYPE"
|
|
3881
3854
|
}, {
|
|
3882
|
-
|
|
3883
|
-
|
|
3855
|
+
key: "addressProofType",
|
|
3856
|
+
label: "ADDRESS_PROOF_TYPE"
|
|
3884
3857
|
}, {
|
|
3885
|
-
|
|
3886
|
-
|
|
3858
|
+
key: "mobileNo",
|
|
3859
|
+
label: "MOBILE_NUMBER"
|
|
3887
3860
|
}, {
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
}];
|
|
3891
|
-
const propertyFields = [{
|
|
3892
|
-
label: "EKYC_CONNECTION_CATEGORY",
|
|
3893
|
-
key: "connectionCategory"
|
|
3861
|
+
key: "alternateMobileNo",
|
|
3862
|
+
label: "ALTERNATE_MOBILE_NUMBER"
|
|
3894
3863
|
}, {
|
|
3895
|
-
|
|
3896
|
-
|
|
3864
|
+
key: "whatsappNo",
|
|
3865
|
+
label: "WHATSAPP_NO"
|
|
3897
3866
|
}, {
|
|
3898
|
-
|
|
3899
|
-
|
|
3867
|
+
key: "email",
|
|
3868
|
+
label: "EMAIL"
|
|
3900
3869
|
}, {
|
|
3901
|
-
|
|
3902
|
-
|
|
3870
|
+
key: "landlineNo",
|
|
3871
|
+
label: "LANDLINE_NO"
|
|
3903
3872
|
}, {
|
|
3904
|
-
|
|
3905
|
-
|
|
3873
|
+
key: "mrkey",
|
|
3874
|
+
label: "MR_KEY"
|
|
3906
3875
|
}, {
|
|
3907
|
-
|
|
3908
|
-
|
|
3876
|
+
key: "mrcode",
|
|
3877
|
+
label: "MR_CODE"
|
|
3909
3878
|
}, {
|
|
3910
|
-
|
|
3911
|
-
|
|
3879
|
+
key: "areacode",
|
|
3880
|
+
label: "AREA_CODE"
|
|
3912
3881
|
}, {
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
}
|
|
3916
|
-
|
|
3917
|
-
label: "
|
|
3918
|
-
|
|
3882
|
+
key: "source",
|
|
3883
|
+
label: "SOURCE"
|
|
3884
|
+
}, {
|
|
3885
|
+
key: "submittedAt",
|
|
3886
|
+
label: "SUBMITTED_AT"
|
|
3887
|
+
}, {
|
|
3888
|
+
key: "assignedAt",
|
|
3889
|
+
label: "ASSIGNED_AT"
|
|
3890
|
+
}, {
|
|
3891
|
+
key: "connectionType",
|
|
3892
|
+
label: "CONNECTION_TYPE"
|
|
3893
|
+
}, {
|
|
3894
|
+
key: "Type",
|
|
3895
|
+
label: "CONSUMER_TYPE"
|
|
3896
|
+
}, {
|
|
3897
|
+
key: "occupantType",
|
|
3898
|
+
label: "OCCUPANT_TYPE"
|
|
3899
|
+
}, {
|
|
3900
|
+
key: "knoCategory",
|
|
3901
|
+
label: "KNO_CATEGORY"
|
|
3902
|
+
}, {
|
|
3903
|
+
key: "approvedAt",
|
|
3904
|
+
label: "APPROVED_AT"
|
|
3905
|
+
}, {
|
|
3906
|
+
key: "gender",
|
|
3907
|
+
label: "GENDER"
|
|
3908
|
+
}, {
|
|
3909
|
+
key: "parentSpouse",
|
|
3910
|
+
label: "PARENT_SPOUSE"
|
|
3911
|
+
}, {
|
|
3912
|
+
key: "fatherOrHusbandName",
|
|
3913
|
+
label: "FATHER_HUSBUND_NAME"
|
|
3914
|
+
}, {
|
|
3915
|
+
key: "relationship",
|
|
3916
|
+
label: "RELATIONSHIP"
|
|
3917
|
+
}, {
|
|
3918
|
+
key: "informantName",
|
|
3919
|
+
label: "INFORMANT_NAME"
|
|
3920
|
+
}, {
|
|
3921
|
+
key: "informantRelation",
|
|
3922
|
+
label: "INFORMANT_RELATION"
|
|
3923
|
+
}, {
|
|
3924
|
+
key: "informantIs",
|
|
3925
|
+
label: "INFORMANT_IS"
|
|
3926
|
+
}, {
|
|
3927
|
+
key: "contactPerson",
|
|
3928
|
+
label: "CONTACT_PERSON"
|
|
3929
|
+
}, {
|
|
3930
|
+
key: "relation",
|
|
3931
|
+
label: "RELATION"
|
|
3932
|
+
}, {
|
|
3933
|
+
key: "entityName",
|
|
3934
|
+
label: "ENTITY_NAME"
|
|
3935
|
+
}, {
|
|
3936
|
+
key: "designation",
|
|
3937
|
+
label: "DESIGNATION"
|
|
3938
|
+
}, {
|
|
3939
|
+
key: "department",
|
|
3940
|
+
label: "DEPARTMENT"
|
|
3941
|
+
}, {
|
|
3942
|
+
key: "employeeId",
|
|
3943
|
+
label: "EMPLOYEE_ID"
|
|
3944
|
+
}, {
|
|
3945
|
+
key: "ownerMobile",
|
|
3946
|
+
label: "OWNER_MOBILE"
|
|
3947
|
+
}, {
|
|
3948
|
+
key: "ownerVerificationDone",
|
|
3949
|
+
label: "OWNER_VERIFICATION_DONE",
|
|
3950
|
+
isBool: true
|
|
3951
|
+
}, {
|
|
3952
|
+
key: "consentGiven",
|
|
3953
|
+
label: "CONSENT_GIVEN",
|
|
3919
3954
|
isBool: true
|
|
3920
3955
|
}, {
|
|
3921
|
-
|
|
3922
|
-
|
|
3956
|
+
key: "proofOfIdentityType",
|
|
3957
|
+
label: "PROOF_OF_IDENTITY_TYPE"
|
|
3923
3958
|
}, {
|
|
3924
|
-
|
|
3925
|
-
|
|
3959
|
+
key: "documentNumber",
|
|
3960
|
+
label: "DOCUMENT_NUMBER"
|
|
3926
3961
|
}, {
|
|
3927
|
-
|
|
3928
|
-
|
|
3962
|
+
key: "noOfPerson",
|
|
3963
|
+
label: "NUMBER_OF_PERSON"
|
|
3929
3964
|
}, {
|
|
3930
|
-
|
|
3931
|
-
|
|
3965
|
+
key: "latitude",
|
|
3966
|
+
label: "LATITUDE"
|
|
3932
3967
|
}, {
|
|
3933
|
-
|
|
3934
|
-
|
|
3968
|
+
key: "longitude",
|
|
3969
|
+
label: "LONGITUDE"
|
|
3970
|
+
}, {
|
|
3971
|
+
key: "gpsValid",
|
|
3972
|
+
label: "GPS_VALID",
|
|
3973
|
+
isBool: true
|
|
3974
|
+
}, {
|
|
3975
|
+
key: "meterNumber",
|
|
3976
|
+
label: "METER_NUMBER"
|
|
3977
|
+
}, {
|
|
3978
|
+
key: "meterMake",
|
|
3979
|
+
label: "METER_MAKE"
|
|
3980
|
+
}, {
|
|
3981
|
+
key: "meterStatus",
|
|
3982
|
+
label: "METER_STATUS"
|
|
3983
|
+
}, {
|
|
3984
|
+
key: "meterCondition",
|
|
3985
|
+
label: "METER_CONDITION"
|
|
3986
|
+
}, {
|
|
3987
|
+
key: "meterLocation",
|
|
3988
|
+
label: "METER_LOCATION"
|
|
3989
|
+
}, {
|
|
3990
|
+
key: "meterLocationAddress",
|
|
3991
|
+
label: "METER_LOCATION_ADDRESS"
|
|
3935
3992
|
}, {
|
|
3936
|
-
label: "EKYC_WORKING_STATUS",
|
|
3937
3993
|
key: "workingStatus",
|
|
3994
|
+
label: "WORKING_STATUS"
|
|
3995
|
+
}, {
|
|
3996
|
+
key: "sewerConnection",
|
|
3997
|
+
label: "SEWER_CONNECTION",
|
|
3998
|
+
isBool: true
|
|
3999
|
+
}, {
|
|
4000
|
+
key: "septicTank",
|
|
4001
|
+
label: "SEPTIC_TANK",
|
|
3938
4002
|
isBool: true
|
|
3939
4003
|
}, {
|
|
3940
|
-
label: "EKYC_LAST_BILL_RAISED",
|
|
3941
4004
|
key: "lastBillRaised",
|
|
4005
|
+
label: "LAST_BILL_RAISED",
|
|
4006
|
+
isBool: true
|
|
4007
|
+
}, {
|
|
4008
|
+
key: "lastBillReceivedDate",
|
|
4009
|
+
label: "LAST_BILL_RECEIVED_DATE"
|
|
4010
|
+
}, {
|
|
4011
|
+
key: "accessToMeter",
|
|
4012
|
+
label: "ACCESS_TO_METER",
|
|
4013
|
+
isBool: true
|
|
4014
|
+
}, {
|
|
4015
|
+
key: "systemMeterId",
|
|
4016
|
+
label: "SYSTEM_METER_ID"
|
|
4017
|
+
}, {
|
|
4018
|
+
key: "lastBillNotRaisedReason",
|
|
4019
|
+
label: "LAST_BILL_NOT_RAISED_REASON"
|
|
4020
|
+
}, {
|
|
4021
|
+
key: "waterConnectionYears",
|
|
4022
|
+
label: "WATER_CONNECTION_YEARS"
|
|
4023
|
+
}, {
|
|
4024
|
+
key: "sewerConnectionYears",
|
|
4025
|
+
label: "SEWER_CONNECTION_YEARS"
|
|
4026
|
+
}, {
|
|
4027
|
+
key: "pidNumber",
|
|
4028
|
+
label: "PID_NUMBER"
|
|
4029
|
+
}, {
|
|
4030
|
+
key: "propertyType",
|
|
4031
|
+
label: "PROPERTY_TYPE"
|
|
4032
|
+
}, {
|
|
4033
|
+
key: "subPropertyCategory",
|
|
4034
|
+
label: "SUB_PROPERTY_CATEGORY"
|
|
4035
|
+
}, {
|
|
4036
|
+
key: "noOfFloor",
|
|
4037
|
+
label: "NO_OF_FLOOR"
|
|
4038
|
+
}, {
|
|
4039
|
+
key: "noOfRooms",
|
|
4040
|
+
label: "NO_OF_ROOMS"
|
|
4041
|
+
}, {
|
|
4042
|
+
key: "noOfBeds",
|
|
4043
|
+
label: "NO_OF_BEDS"
|
|
4044
|
+
}, {
|
|
4045
|
+
key: "numberOfDwellingUnits",
|
|
4046
|
+
label: "NUMBER_OF_DWELLING_UNITS"
|
|
4047
|
+
}, {
|
|
4048
|
+
key: "floorNo",
|
|
4049
|
+
label: "FLOOR_NO"
|
|
4050
|
+
}, {
|
|
4051
|
+
key: "userType",
|
|
4052
|
+
label: "USER_TYPE"
|
|
4053
|
+
}, {
|
|
4054
|
+
key: "tenantName",
|
|
4055
|
+
label: "TENANT_NAME"
|
|
4056
|
+
}, {
|
|
4057
|
+
key: "tenantMobile",
|
|
4058
|
+
label: "TENANT_MOBILE"
|
|
4059
|
+
}, {
|
|
4060
|
+
key: "verificationStatus",
|
|
4061
|
+
label: "VERIFICATION_STATUS"
|
|
4062
|
+
}, {
|
|
4063
|
+
key: "houseBuiltDuration",
|
|
4064
|
+
label: "HOUSE_BUILT_DURATION"
|
|
4065
|
+
}, {
|
|
4066
|
+
key: "surveyorId",
|
|
4067
|
+
label: "SURVEYOR_ID"
|
|
4068
|
+
}, {
|
|
4069
|
+
key: "supervisorId",
|
|
4070
|
+
label: "SUPERVISOR_ID"
|
|
4071
|
+
}, {
|
|
4072
|
+
key: "vendorId",
|
|
4073
|
+
label: "VENDOR_ID"
|
|
4074
|
+
}, {
|
|
4075
|
+
key: "assignmentType",
|
|
4076
|
+
label: "ASSIGNMENT_TYPE"
|
|
4077
|
+
}, {
|
|
4078
|
+
key: "assignmentValue",
|
|
4079
|
+
label: "ASSIGNMENT_VALUE"
|
|
4080
|
+
}, {
|
|
4081
|
+
key: "assignedTime",
|
|
4082
|
+
label: "ASSIGNED_TIME"
|
|
4083
|
+
}, {
|
|
4084
|
+
key: "isSelfAssigned",
|
|
4085
|
+
label: "IS_SELF_ASSIGNED",
|
|
3942
4086
|
isBool: true
|
|
3943
4087
|
}, {
|
|
3944
|
-
|
|
3945
|
-
|
|
4088
|
+
key: "modifiedBy",
|
|
4089
|
+
label: "MODIFIED_BY"
|
|
4090
|
+
}, {
|
|
4091
|
+
key: "emailId",
|
|
4092
|
+
label: "EMAIL_ID"
|
|
4093
|
+
}, {
|
|
4094
|
+
key: "dob",
|
|
4095
|
+
label: "DOB"
|
|
4096
|
+
}, {
|
|
4097
|
+
key: "consumerType",
|
|
4098
|
+
label: "CONSUMER_TYPE"
|
|
4099
|
+
}, {
|
|
4100
|
+
key: "createdTime",
|
|
4101
|
+
label: "CREATED_TIME"
|
|
4102
|
+
}, {
|
|
4103
|
+
key: "lastModifiedTime",
|
|
4104
|
+
label: "LAST_MODIFIED_TIME"
|
|
4105
|
+
}, {
|
|
4106
|
+
key: "meterLatitude",
|
|
4107
|
+
label: "EKYC_METER_LATITUDE1"
|
|
4108
|
+
}, {
|
|
4109
|
+
key: "meterLongitude",
|
|
4110
|
+
label: "EKYC_METER_LONGITUDE1"
|
|
3946
4111
|
}];
|
|
3947
4112
|
const handleDeclaration = () => setAgree(!agree);
|
|
3948
4113
|
const handleReject = function () {
|
|
@@ -4051,65 +4216,15 @@ const Review = () => {
|
|
|
4051
4216
|
}
|
|
4052
4217
|
};
|
|
4053
4218
|
if (isSearchLoading || isSubmitting) return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
4054
|
-
const baseUrl = "/digit-ui/employee/ekyc";
|
|
4055
4219
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
4056
4220
|
className: "overflow-y-scroll"
|
|
4057
4221
|
}, /*#__PURE__*/React__default.createElement(ReviewSection, {
|
|
4058
|
-
title: t("
|
|
4059
|
-
fields:
|
|
4060
|
-
newData:
|
|
4061
|
-
oldData:
|
|
4222
|
+
title: t("EKYC_ALL_DETAILS") || "All Details",
|
|
4223
|
+
fields: headerMapping,
|
|
4224
|
+
newData: flatNewData,
|
|
4225
|
+
oldData: flatOldData,
|
|
4062
4226
|
t: t,
|
|
4063
|
-
|
|
4064
|
-
state: _extends({}, flowState, {
|
|
4065
|
-
kNumber: activeKno,
|
|
4066
|
-
kno: activeKno,
|
|
4067
|
-
reviewData: searchData,
|
|
4068
|
-
edits
|
|
4069
|
-
}),
|
|
4070
|
-
hideEditButton: hideEditButton
|
|
4071
|
-
}), /*#__PURE__*/React__default.createElement(ReviewSection, {
|
|
4072
|
-
title: t("EKYC_ADDRESS_DETAILS"),
|
|
4073
|
-
fields: addressFields,
|
|
4074
|
-
newData: addressData,
|
|
4075
|
-
oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.address,
|
|
4076
|
-
t: t,
|
|
4077
|
-
jumpTo: baseUrl + "/address-details?kno=" + activeKno,
|
|
4078
|
-
state: _extends({}, flowState, {
|
|
4079
|
-
kNumber: activeKno,
|
|
4080
|
-
kno: activeKno,
|
|
4081
|
-
reviewData: searchData,
|
|
4082
|
-
edits
|
|
4083
|
-
}),
|
|
4084
|
-
hideEditButton: hideEditButton
|
|
4085
|
-
}), /*#__PURE__*/React__default.createElement(ReviewSection, {
|
|
4086
|
-
title: t("EKYC_PROPERTY_INFO"),
|
|
4087
|
-
fields: propertyFields,
|
|
4088
|
-
newData: propertyData,
|
|
4089
|
-
oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.property,
|
|
4090
|
-
t: t,
|
|
4091
|
-
jumpTo: baseUrl + "/property-info?kno=" + activeKno,
|
|
4092
|
-
state: _extends({}, flowState, {
|
|
4093
|
-
kNumber: activeKno,
|
|
4094
|
-
kno: activeKno,
|
|
4095
|
-
reviewData: searchData,
|
|
4096
|
-
edits
|
|
4097
|
-
}),
|
|
4098
|
-
hideEditButton: hideEditButton
|
|
4099
|
-
}), /*#__PURE__*/React__default.createElement(ReviewSection, {
|
|
4100
|
-
title: t("EKYC_METER_DETAILS"),
|
|
4101
|
-
fields: meterFields,
|
|
4102
|
-
newData: meterData,
|
|
4103
|
-
oldData: oldDataRaw === null || oldDataRaw === void 0 ? void 0 : oldDataRaw.meter,
|
|
4104
|
-
t: t,
|
|
4105
|
-
jumpTo: baseUrl + "/meter-details?kno=" + activeKno,
|
|
4106
|
-
state: _extends({}, flowState, {
|
|
4107
|
-
kNumber: activeKno,
|
|
4108
|
-
kno: activeKno,
|
|
4109
|
-
reviewData: searchData,
|
|
4110
|
-
edits
|
|
4111
|
-
}),
|
|
4112
|
-
hideEditButton: hideEditButton
|
|
4227
|
+
hideEditButton: true
|
|
4113
4228
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
4114
4229
|
style: {
|
|
4115
4230
|
marginTop: "40px"
|