@djb25/digit-ui-module-ekyc 1.0.41 → 1.0.43
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 +230 -181
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +232 -183
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { useRef, useEffect, useMemo, useState, createContext, isValidElement, cloneElement, createElement,
|
|
1
|
+
import React, { useRef, useEffect, useMemo, useState, createContext, useContext, isValidElement, cloneElement, createElement, useCallback, useReducer, Fragment } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { useHistory, Link, useLocation, useParams, useRouteMatch, Switch, Route, Redirect } from 'react-router-dom';
|
|
4
|
-
import { PersonIcon, EmployeeModuleCard, Loader, Card, InboxLinks, Table, HomeIcon, TextInput, Header, SubmitBar, DetailsCard, FilterForm, FilterFormField, Dropdown, Label, CustomTooltip, CardLabelError, InboxComposer, EditIcon, DeleteIcon, CardHeader, CardText, LabelFieldPair, CardLabel, ActionBar, Modal, Toast,
|
|
4
|
+
import { PersonIcon, EmployeeModuleCard, Loader, Card, InboxLinks, Table, HomeIcon, TextInput, Header, SubmitBar, DetailsCard, FilterForm, FilterFormField, Dropdown, Label, CustomTooltip, CardLabelError, SearchField, RadioButtons, InboxComposer, EditIcon, DeleteIcon, CardHeader, CardText, LabelFieldPair, CardLabel, ActionBar, Modal, Toast, CardSubHeader, StatusTable, Row, GenericFileIcon, CheckBox, Menu, LinkButton, UploadFile, FormComposer, VerticalTimeline, Close, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, CitizenHomeCard, DocumentIcon, BackButton } from '@djb25/digit-ui-react-components';
|
|
5
5
|
import * as Chartjs from 'chart.js/auto';
|
|
6
6
|
import Chartjs__default, { Chart } from 'chart.js/auto';
|
|
7
7
|
import { FaUsers, FaCheckCircle, FaClock, FaExclamationTriangle, FaUserTie, FaChartLine, FaSearch, FaArrowRight, FaMapMarkedAlt } from 'react-icons/fa';
|
|
@@ -29,7 +29,7 @@ const EKYCCard = () => {
|
|
|
29
29
|
kpis: [{
|
|
30
30
|
count: totalCount,
|
|
31
31
|
label: t("TOTAL_EKYC"),
|
|
32
|
-
link: "/digit-ui/employee/ekyc/dashboard"
|
|
32
|
+
link: "/digit-ui/employee/ekyc/admin-dashboard"
|
|
33
33
|
}],
|
|
34
34
|
links: [{
|
|
35
35
|
label: t("CEO_M.F_DOR_FINANCE_VIEW"),
|
|
@@ -329,7 +329,7 @@ const DesktopInbox = _ref => {
|
|
|
329
329
|
Cell: _ref4 => {
|
|
330
330
|
var _row$original4;
|
|
331
331
|
let row = _ref4.row;
|
|
332
|
-
const status = ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.status) || "DEFAULT";
|
|
332
|
+
const status = (((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.status) || "DEFAULT").toUpperCase();
|
|
333
333
|
return /*#__PURE__*/React.createElement("span", {
|
|
334
334
|
className: "ekyc-status-tag " + status
|
|
335
335
|
}, t("" + status));
|
|
@@ -2442,7 +2442,7 @@ const useInboxTableConfig = _ref => {
|
|
|
2442
2442
|
Cell: _ref4 => {
|
|
2443
2443
|
var _row$original4;
|
|
2444
2444
|
let row = _ref4.row;
|
|
2445
|
-
const status = ((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.status) || "DEFAULT";
|
|
2445
|
+
const status = (((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.status) || "DEFAULT").toUpperCase();
|
|
2446
2446
|
return /*#__PURE__*/React.createElement("span", {
|
|
2447
2447
|
className: "ekyc-status-tag " + status
|
|
2448
2448
|
}, t("" + status));
|
|
@@ -2816,6 +2816,114 @@ const SearchFormFieldsComponents = _ref => {
|
|
|
2816
2816
|
}), (errors === null || errors === void 0 ? void 0 : errors.kNumber) && /*#__PURE__*/React.createElement(CardLabelError, null, errors.kNumber.message)));
|
|
2817
2817
|
};
|
|
2818
2818
|
|
|
2819
|
+
const useInboxMobileCardsData = _ref => {
|
|
2820
|
+
var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3;
|
|
2821
|
+
let table = _ref.table,
|
|
2822
|
+
tenantId = _ref.tenantId,
|
|
2823
|
+
_ref$isSupervisor = _ref.isSupervisor,
|
|
2824
|
+
isSupervisor = _ref$isSupervisor === void 0 ? false : _ref$isSupervisor;
|
|
2825
|
+
const _useTranslation = useTranslation(),
|
|
2826
|
+
t = _useTranslation.t;
|
|
2827
|
+
const history = useHistory();
|
|
2828
|
+
const _useState = useState(""),
|
|
2829
|
+
selectedKno = _useState[0],
|
|
2830
|
+
setSelectedKno = _useState[1];
|
|
2831
|
+
const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycAPI("review", tenantId),
|
|
2832
|
+
reviewData = _Digit$Hooks$ekyc$use.data,
|
|
2833
|
+
getReview = _Digit$Hooks$ekyc$use.getReview;
|
|
2834
|
+
const userType = ((_Digit$SessionStorage = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage === void 0 ? void 0 : (_Digit$SessionStorage2 = _Digit$SessionStorage.info) === null || _Digit$SessionStorage2 === void 0 ? void 0 : (_Digit$SessionStorage3 = _Digit$SessionStorage2.type) === null || _Digit$SessionStorage3 === void 0 ? void 0 : _Digit$SessionStorage3.toLowerCase()) || "citizen";
|
|
2835
|
+
React.useEffect(() => {
|
|
2836
|
+
if (!isSupervisor && reviewData) {
|
|
2837
|
+
history.push("/digit-ui/" + userType + "/ekyc/review/" + selectedKno, {
|
|
2838
|
+
aadhaarData: reviewData === null || reviewData === void 0 ? void 0 : reviewData.aadhaarData,
|
|
2839
|
+
reviewData
|
|
2840
|
+
});
|
|
2841
|
+
}
|
|
2842
|
+
}, [reviewData, isSupervisor]);
|
|
2843
|
+
const handleReview = kno => {
|
|
2844
|
+
setSelectedKno(kno);
|
|
2845
|
+
getReview({
|
|
2846
|
+
kno
|
|
2847
|
+
});
|
|
2848
|
+
};
|
|
2849
|
+
const handleSupervisorReview = id => {
|
|
2850
|
+
history.push("/digit-ui/" + userType + "/ekyc/assign/surveyor-details/" + id);
|
|
2851
|
+
};
|
|
2852
|
+
const dataForMobileInboxCards = table === null || table === void 0 ? void 0 : table.map(item => {
|
|
2853
|
+
if (isSupervisor) {
|
|
2854
|
+
var _item$owner;
|
|
2855
|
+
const id = item.id;
|
|
2856
|
+
const status = item.status || "DEFAULT";
|
|
2857
|
+
return {
|
|
2858
|
+
[t("SURVEYOR_NAME")]: /*#__PURE__*/React.createElement("span", {
|
|
2859
|
+
className: "link",
|
|
2860
|
+
onClick: () => handleSupervisorReview(id)
|
|
2861
|
+
}, item.surveyorName || item.name || "NA"),
|
|
2862
|
+
[t("MOBILE_NUMBER")]: item.mobileNo || ((_item$owner = item.owner) === null || _item$owner === void 0 ? void 0 : _item$owner.mobileNumber) || "NA",
|
|
2863
|
+
[t("STATUS")]: /*#__PURE__*/React.createElement("span", {
|
|
2864
|
+
className: "ekyc-status-tag " + status
|
|
2865
|
+
}, t(status)),
|
|
2866
|
+
[t("SERVICE_TYPE")]: item.serviceType || "NA"
|
|
2867
|
+
};
|
|
2868
|
+
} else {
|
|
2869
|
+
const kno = item.kno || item.applicationNumber || "NA";
|
|
2870
|
+
const status = (item.status || "DEFAULT").toUpperCase();
|
|
2871
|
+
const ekycStatus = (item.ekycStatus || item.ekycstatus || "NA").toUpperCase();
|
|
2872
|
+
return {
|
|
2873
|
+
[t("EKYC_APPLICATION_NO")]: /*#__PURE__*/React.createElement("span", {
|
|
2874
|
+
className: "link",
|
|
2875
|
+
onClick: () => handleReview(kno)
|
|
2876
|
+
}, kno),
|
|
2877
|
+
[t("EKYC_CITIZEN_NAME")]: item.citizenName || "NA",
|
|
2878
|
+
[t("EKYC_STATUS")]: /*#__PURE__*/React.createElement("span", {
|
|
2879
|
+
className: "ekyc-status-tag " + status
|
|
2880
|
+
}, t("" + status)),
|
|
2881
|
+
[t("SUBMITTED_AT")]: item.submittedAt ? Digit.DateUtils.ConvertEpochToDate(item.submittedAt) : "-",
|
|
2882
|
+
[t("ASSIGNED_AT")]: item.assignedAt ? Digit.DateUtils.ConvertEpochToDate(item.assignedAt) : "-",
|
|
2883
|
+
[t("EKYC_EKYC_STATUS")]: /*#__PURE__*/React.createElement("span", {
|
|
2884
|
+
className: "ekyc-status-tag " + ekycStatus
|
|
2885
|
+
}, t("" + ekycStatus))
|
|
2886
|
+
};
|
|
2887
|
+
}
|
|
2888
|
+
});
|
|
2889
|
+
const MobileSortFormValues = () => {
|
|
2890
|
+
const sortOrderOptions = [{
|
|
2891
|
+
code: "DESC",
|
|
2892
|
+
i18nKey: "ES_INBOX_DATE_LATEST_FIRST"
|
|
2893
|
+
}, {
|
|
2894
|
+
code: "ASC",
|
|
2895
|
+
i18nKey: "ES_INBOX_DATE_LATEST_LAST"
|
|
2896
|
+
}];
|
|
2897
|
+
const _useFormContext = useFormContext(),
|
|
2898
|
+
controlSortForm = _useFormContext.control;
|
|
2899
|
+
return /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement(Controller, {
|
|
2900
|
+
name: "sortOrder",
|
|
2901
|
+
control: controlSortForm,
|
|
2902
|
+
render: _ref2 => {
|
|
2903
|
+
let onChange = _ref2.onChange,
|
|
2904
|
+
value = _ref2.value;
|
|
2905
|
+
return /*#__PURE__*/React.createElement(RadioButtons, {
|
|
2906
|
+
onSelect: e => {
|
|
2907
|
+
onChange(e.code);
|
|
2908
|
+
},
|
|
2909
|
+
selectedOption: sortOrderOptions.filter(option => option.code === value)[0],
|
|
2910
|
+
optionsKey: "i18nKey",
|
|
2911
|
+
name: "sortOrder",
|
|
2912
|
+
options: sortOrderOptions
|
|
2913
|
+
});
|
|
2914
|
+
}
|
|
2915
|
+
}));
|
|
2916
|
+
};
|
|
2917
|
+
return {
|
|
2918
|
+
data: dataForMobileInboxCards,
|
|
2919
|
+
isTwoDynamicPrefix: true,
|
|
2920
|
+
getRedirectionLink: () => {},
|
|
2921
|
+
handleClickEnabled: false,
|
|
2922
|
+
serviceRequestIdKey: isSupervisor ? "id" : "applicationNo",
|
|
2923
|
+
MobileSortFormValues
|
|
2924
|
+
};
|
|
2925
|
+
};
|
|
2926
|
+
|
|
2819
2927
|
const Inbox = _ref => {
|
|
2820
2928
|
var _formState$tableForm3, _formState$tableForm4, _formState$searchForm3, _formState$searchForm4;
|
|
2821
2929
|
let parentRoute = _ref.parentRoute;
|
|
@@ -3039,13 +3147,39 @@ const Inbox = _ref => {
|
|
|
3039
3147
|
width: "70%"
|
|
3040
3148
|
}
|
|
3041
3149
|
}));
|
|
3150
|
+
const onMobileSortOrderData = data => {
|
|
3151
|
+
const sortOrder = data.sortOrder;
|
|
3152
|
+
dispatch({
|
|
3153
|
+
action: "mutateTableForm",
|
|
3154
|
+
data: _extends({}, formState.tableForm, {
|
|
3155
|
+
sortOrder
|
|
3156
|
+
})
|
|
3157
|
+
});
|
|
3158
|
+
};
|
|
3159
|
+
const onSortFormReset = setSortFormValue => {
|
|
3160
|
+
setSortFormValue("sortOrder", "DESC");
|
|
3161
|
+
dispatch({
|
|
3162
|
+
action: "mutateTableForm",
|
|
3163
|
+
data: tableOrderFormDefaultValues
|
|
3164
|
+
});
|
|
3165
|
+
};
|
|
3166
|
+
const propsForMobileSortForm = {
|
|
3167
|
+
onMobileSortOrderData,
|
|
3168
|
+
sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
|
|
3169
|
+
onSortFormReset
|
|
3170
|
+
};
|
|
3171
|
+
const propsForInboxMobileCards = useInboxMobileCardsData({
|
|
3172
|
+
table: filteredData,
|
|
3173
|
+
tenantId
|
|
3174
|
+
});
|
|
3042
3175
|
const isInboxLoading = isListLoading || isSearchLoading;
|
|
3043
3176
|
return /*#__PURE__*/React.createElement("div", {
|
|
3044
3177
|
className: "app-container"
|
|
3045
3178
|
}, /*#__PURE__*/React.createElement(InboxComposer, _extends({
|
|
3046
3179
|
isInboxLoading
|
|
3047
|
-
}, propsForSearchForm, {
|
|
3180
|
+
}, propsForSearchForm, propsForMobileSortForm, {
|
|
3048
3181
|
propsForInboxTable,
|
|
3182
|
+
propsForInboxMobileCards,
|
|
3049
3183
|
formState,
|
|
3050
3184
|
countData: listData
|
|
3051
3185
|
})));
|
|
@@ -5693,12 +5827,38 @@ const AssignEkyc = () => {
|
|
|
5693
5827
|
}
|
|
5694
5828
|
}));
|
|
5695
5829
|
const isInboxLoading = isLoading;
|
|
5830
|
+
const onMobileSortOrderData = data => {
|
|
5831
|
+
const sortOrder = data.sortOrder;
|
|
5832
|
+
dispatch({
|
|
5833
|
+
action: "mutateTableForm",
|
|
5834
|
+
data: _extends({}, formState.tableForm, {
|
|
5835
|
+
sortOrder
|
|
5836
|
+
})
|
|
5837
|
+
});
|
|
5838
|
+
};
|
|
5839
|
+
const onSortFormReset = setSortFormValue => {
|
|
5840
|
+
setSortFormValue("sortOrder", "DESC");
|
|
5841
|
+
dispatch({
|
|
5842
|
+
action: "mutateTableForm",
|
|
5843
|
+
data: tableOrderFormDefaultValues
|
|
5844
|
+
});
|
|
5845
|
+
};
|
|
5846
|
+
const propsForMobileSortForm = {
|
|
5847
|
+
onMobileSortOrderData,
|
|
5848
|
+
sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
|
|
5849
|
+
onSortFormReset
|
|
5850
|
+
};
|
|
5851
|
+
const propsForInboxMobileCards = useInboxMobileCardsData({
|
|
5852
|
+
table: filteredData,
|
|
5853
|
+
isSupervisor: true
|
|
5854
|
+
});
|
|
5696
5855
|
return /*#__PURE__*/React.createElement("div", {
|
|
5697
5856
|
className: "app-container"
|
|
5698
5857
|
}, /*#__PURE__*/React.createElement(InboxComposer, _extends({
|
|
5699
5858
|
isInboxLoading
|
|
5700
|
-
}, propsForSearchForm, {
|
|
5859
|
+
}, propsForSearchForm, propsForMobileSortForm, {
|
|
5701
5860
|
propsForInboxTable,
|
|
5861
|
+
propsForInboxMobileCards,
|
|
5702
5862
|
formState,
|
|
5703
5863
|
countData: dashboardData === null || dashboardData === void 0 ? void 0 : dashboardData.dashboardInfo,
|
|
5704
5864
|
isCardLoading: isDataSearchLoading
|
|
@@ -5866,14 +6026,7 @@ const AdminDashboard = () => {
|
|
|
5866
6026
|
}, mobileNumber))), /*#__PURE__*/React.createElement("button", {
|
|
5867
6027
|
className: "download-excel-btn",
|
|
5868
6028
|
disabled: ekycDownloadLoading,
|
|
5869
|
-
onClick: handleDownloadEkycData
|
|
5870
|
-
style: {
|
|
5871
|
-
margin: 0,
|
|
5872
|
-
padding: "8px 16px",
|
|
5873
|
-
height: "auto",
|
|
5874
|
-
minHeight: "36px",
|
|
5875
|
-
width: "auto"
|
|
5876
|
-
}
|
|
6029
|
+
onClick: handleDownloadEkycData
|
|
5877
6030
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
5878
6031
|
width: "16",
|
|
5879
6032
|
height: "16",
|
|
@@ -5882,10 +6035,7 @@ const AdminDashboard = () => {
|
|
|
5882
6035
|
stroke: "currentColor",
|
|
5883
6036
|
strokeWidth: "2.5",
|
|
5884
6037
|
strokeLinecap: "round",
|
|
5885
|
-
strokeLinejoin: "round"
|
|
5886
|
-
style: {
|
|
5887
|
-
marginRight: "8px"
|
|
5888
|
-
}
|
|
6038
|
+
strokeLinejoin: "round"
|
|
5889
6039
|
}, /*#__PURE__*/React.createElement("path", {
|
|
5890
6040
|
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
|
|
5891
6041
|
}), /*#__PURE__*/React.createElement("polyline", {
|
|
@@ -5895,190 +6045,57 @@ const AdminDashboard = () => {
|
|
|
5895
6045
|
y1: "15",
|
|
5896
6046
|
x2: "12",
|
|
5897
6047
|
y2: "3"
|
|
5898
|
-
})), ekycDownloadLoading ? t("DOWNLOADING") || "Downloading..." : t("DOWNLOAD_EXCEL") || "Download Excel")), /*#__PURE__*/React.createElement("div", {
|
|
5899
|
-
|
|
5900
|
-
marginTop: "32px"
|
|
5901
|
-
}
|
|
6048
|
+
})), ekycDownloadLoading ? t("DOWNLOADING") || "Downloading..." : t("DOWNLOAD_EXCEL") || "Download Excel")), /*#__PURE__*/React.createElement(Dashboard, null), /*#__PURE__*/React.createElement("div", {
|
|
6049
|
+
className: "admin-performance-section"
|
|
5902
6050
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
5903
|
-
|
|
5904
|
-
fontSize: "20px",
|
|
5905
|
-
fontWeight: "700",
|
|
5906
|
-
color: "#101828",
|
|
5907
|
-
marginBottom: "20px"
|
|
5908
|
-
}
|
|
6051
|
+
className: "section-title"
|
|
5909
6052
|
}, t("EKYC_VENDORS_PERFORMANCE") || "eKYC Vendors Performance"), isVendorSearchLoading || isProgressLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", {
|
|
5910
|
-
|
|
5911
|
-
display: "grid",
|
|
5912
|
-
gridTemplateColumns: "repeat(3, 1fr)",
|
|
5913
|
-
gap: "24px",
|
|
5914
|
-
width: "100%"
|
|
5915
|
-
}
|
|
6053
|
+
className: "vendors-grid"
|
|
5916
6054
|
}, vendorsList.length === 0 ? /*#__PURE__*/React.createElement("div", {
|
|
5917
|
-
|
|
5918
|
-
gridColumn: "span 3",
|
|
5919
|
-
textAlign: "center",
|
|
5920
|
-
padding: "40px",
|
|
5921
|
-
color: "#64748B",
|
|
5922
|
-
fontSize: "16px"
|
|
5923
|
-
}
|
|
6055
|
+
className: "no-vendors"
|
|
5924
6056
|
}, t("NO_VENDORS_FOUND") || "No vendors found.") : vendorsList.map(vendor => /*#__PURE__*/React.createElement("div", {
|
|
5925
6057
|
key: vendor.id,
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
background: "#ffffff",
|
|
5929
|
-
border: "1px solid #E2E8F0",
|
|
5930
|
-
borderRadius: "16px",
|
|
5931
|
-
padding: "24px",
|
|
5932
|
-
boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03)",
|
|
5933
|
-
cursor: "pointer",
|
|
5934
|
-
transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
5935
|
-
display: "flex",
|
|
5936
|
-
flexDirection: "column",
|
|
5937
|
-
justifyContent: "space-between",
|
|
5938
|
-
gap: "16px"
|
|
5939
|
-
},
|
|
5940
|
-
onMouseEnter: e => {
|
|
5941
|
-
e.currentTarget.style.transform = "translateY(-4px)";
|
|
5942
|
-
e.currentTarget.style.boxShadow = "0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04)";
|
|
5943
|
-
e.currentTarget.style.borderColor = "#CBD5E1";
|
|
5944
|
-
},
|
|
5945
|
-
onMouseLeave: e => {
|
|
5946
|
-
e.currentTarget.style.transform = "translateY(0)";
|
|
5947
|
-
e.currentTarget.style.boxShadow = "0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03)";
|
|
5948
|
-
e.currentTarget.style.borderColor = "#E2E8F0";
|
|
5949
|
-
}
|
|
6058
|
+
className: "vendor-perf-card",
|
|
6059
|
+
onClick: () => history.push("/digit-ui/employee/ekyc/vendors/" + vendor.id)
|
|
5950
6060
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h4", {
|
|
5957
|
-
style: {
|
|
5958
|
-
fontSize: "18px",
|
|
5959
|
-
fontWeight: "700",
|
|
5960
|
-
color: "#0B2559",
|
|
5961
|
-
margin: 0
|
|
5962
|
-
}
|
|
5963
|
-
}, vendor.name), /*#__PURE__*/React.createElement("p", {
|
|
5964
|
-
style: {
|
|
5965
|
-
fontSize: "12px",
|
|
5966
|
-
color: "#64748B",
|
|
5967
|
-
marginTop: "2px",
|
|
5968
|
-
marginBottom: 0
|
|
5969
|
-
}
|
|
5970
|
-
}, t("MOBILE") || "Mobile", ": ", vendor.mobileNumber)), /*#__PURE__*/React.createElement("span", {
|
|
5971
|
-
style: {
|
|
5972
|
-
background: "#E0F2FE",
|
|
5973
|
-
color: "#0369A1",
|
|
5974
|
-
padding: "6px 12px",
|
|
5975
|
-
borderRadius: "999px",
|
|
5976
|
-
fontSize: "13px",
|
|
5977
|
-
fontWeight: "700"
|
|
5978
|
-
}
|
|
6061
|
+
className: "card-header"
|
|
6062
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6063
|
+
className: "vendor-info"
|
|
6064
|
+
}, /*#__PURE__*/React.createElement("h4", null, vendor.name), /*#__PURE__*/React.createElement("p", null, t("MOBILE") || "Mobile", ": ", vendor.mobileNumber)), /*#__PURE__*/React.createElement("span", {
|
|
6065
|
+
className: "progress-badge"
|
|
5979
6066
|
}, vendor.progress, "%")), /*#__PURE__*/React.createElement("div", {
|
|
5980
|
-
|
|
5981
|
-
width: "100%",
|
|
5982
|
-
height: "8px",
|
|
5983
|
-
background: "#F1F5F9",
|
|
5984
|
-
borderRadius: "999px",
|
|
5985
|
-
overflow: "hidden"
|
|
5986
|
-
}
|
|
6067
|
+
className: "progress-bar-container"
|
|
5987
6068
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6069
|
+
className: "progress-bar-fill",
|
|
5988
6070
|
style: {
|
|
5989
|
-
width: vendor.progress + "%"
|
|
5990
|
-
height: "100%",
|
|
5991
|
-
background: "linear-gradient(90deg, #3B82F6 0%, #10B981 100%)",
|
|
5992
|
-
borderRadius: "999px"
|
|
6071
|
+
width: vendor.progress + "%"
|
|
5993
6072
|
}
|
|
5994
6073
|
})), /*#__PURE__*/React.createElement("div", {
|
|
5995
|
-
|
|
5996
|
-
display: "grid",
|
|
5997
|
-
gridTemplateColumns: "repeat(3, 1fr)",
|
|
5998
|
-
gap: "12px"
|
|
5999
|
-
}
|
|
6074
|
+
className: "stats-grid"
|
|
6000
6075
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6001
|
-
|
|
6002
|
-
background: "#F8FAFC",
|
|
6003
|
-
padding: "12px 8px",
|
|
6004
|
-
borderRadius: "10px",
|
|
6005
|
-
textAlign: "center"
|
|
6006
|
-
}
|
|
6076
|
+
className: "stat-item"
|
|
6007
6077
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6008
|
-
|
|
6009
|
-
fontSize: "16px",
|
|
6010
|
-
fontWeight: "700",
|
|
6011
|
-
color: "#1E293B"
|
|
6012
|
-
}
|
|
6078
|
+
className: "value"
|
|
6013
6079
|
}, vendor.supervisors), /*#__PURE__*/React.createElement("div", {
|
|
6014
|
-
|
|
6015
|
-
fontSize: "10px",
|
|
6016
|
-
fontWeight: "600",
|
|
6017
|
-
color: "#64748B",
|
|
6018
|
-
textTransform: "uppercase",
|
|
6019
|
-
marginTop: "4px"
|
|
6020
|
-
}
|
|
6080
|
+
className: "label"
|
|
6021
6081
|
}, t("SUPERVISORS") || "Supervisors")), /*#__PURE__*/React.createElement("div", {
|
|
6022
|
-
|
|
6023
|
-
background: "#F8FAFC",
|
|
6024
|
-
padding: "12px 8px",
|
|
6025
|
-
borderRadius: "10px",
|
|
6026
|
-
textAlign: "center"
|
|
6027
|
-
}
|
|
6082
|
+
className: "stat-item"
|
|
6028
6083
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6029
|
-
|
|
6030
|
-
fontSize: "16px",
|
|
6031
|
-
fontWeight: "700",
|
|
6032
|
-
color: "#1E293B"
|
|
6033
|
-
}
|
|
6084
|
+
className: "value"
|
|
6034
6085
|
}, vendor.surveyors), /*#__PURE__*/React.createElement("div", {
|
|
6035
|
-
|
|
6036
|
-
fontSize: "10px",
|
|
6037
|
-
fontWeight: "600",
|
|
6038
|
-
color: "#64748B",
|
|
6039
|
-
textTransform: "uppercase",
|
|
6040
|
-
marginTop: "4px"
|
|
6041
|
-
}
|
|
6086
|
+
className: "label"
|
|
6042
6087
|
}, t("SURVEYORS") || "Surveyors")), /*#__PURE__*/React.createElement("div", {
|
|
6043
|
-
|
|
6044
|
-
background: "#F8FAFC",
|
|
6045
|
-
padding: "12px 8px",
|
|
6046
|
-
borderRadius: "10px",
|
|
6047
|
-
textAlign: "center"
|
|
6048
|
-
}
|
|
6088
|
+
className: "stat-item"
|
|
6049
6089
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6050
|
-
|
|
6051
|
-
fontSize: "16px",
|
|
6052
|
-
fontWeight: "700",
|
|
6053
|
-
color: "#10B981"
|
|
6054
|
-
}
|
|
6090
|
+
className: "value completed-val"
|
|
6055
6091
|
}, vendor.completed), /*#__PURE__*/React.createElement("div", {
|
|
6056
|
-
|
|
6057
|
-
fontSize: "10px",
|
|
6058
|
-
fontWeight: "600",
|
|
6059
|
-
color: "#64748B",
|
|
6060
|
-
textTransform: "uppercase",
|
|
6061
|
-
marginTop: "4px"
|
|
6062
|
-
}
|
|
6092
|
+
className: "label"
|
|
6063
6093
|
}, t("COMPLETED") || "Completed"))), /*#__PURE__*/React.createElement("div", {
|
|
6064
|
-
|
|
6065
|
-
display: "flex",
|
|
6066
|
-
justifyContent: "space-between",
|
|
6067
|
-
fontSize: "12px",
|
|
6068
|
-
color: "#64748B",
|
|
6069
|
-
borderTop: "1px solid #F1F5F9",
|
|
6070
|
-
paddingTop: "12px"
|
|
6071
|
-
}
|
|
6094
|
+
className: "card-footer"
|
|
6072
6095
|
}, /*#__PURE__*/React.createElement("span", null, t("PENDING") || "Pending", ": ", /*#__PURE__*/React.createElement("span", {
|
|
6073
|
-
|
|
6074
|
-
fontWeight: "700",
|
|
6075
|
-
color: "#F59E0B"
|
|
6076
|
-
}
|
|
6096
|
+
className: "pending-count"
|
|
6077
6097
|
}, vendor.pending)), /*#__PURE__*/React.createElement("span", null, t("REJECTED") || "Rejected", ": ", /*#__PURE__*/React.createElement("span", {
|
|
6078
|
-
|
|
6079
|
-
fontWeight: "700",
|
|
6080
|
-
color: "#EF4444"
|
|
6081
|
-
}
|
|
6098
|
+
className: "rejected-count"
|
|
6082
6099
|
}, vendor.rejected))))))));
|
|
6083
6100
|
};
|
|
6084
6101
|
|
|
@@ -6962,7 +6979,10 @@ const AssignEkycModal = _ref => {
|
|
|
6962
6979
|
accessor: "ekycStatus",
|
|
6963
6980
|
Cell: _ref5 => {
|
|
6964
6981
|
let value = _ref5.value;
|
|
6965
|
-
|
|
6982
|
+
const status = (value || "NA").toUpperCase();
|
|
6983
|
+
return value ? /*#__PURE__*/React.createElement("span", {
|
|
6984
|
+
className: "ekyc-status-tag " + status
|
|
6985
|
+
}, t(status)) : "-";
|
|
6966
6986
|
}
|
|
6967
6987
|
}], [selectedKnos, tableData]);
|
|
6968
6988
|
const handleSelect = kno => {
|
|
@@ -7197,7 +7217,10 @@ const SurveyorDetailsDashboard = () => {
|
|
|
7197
7217
|
accessor: "ekycStatus",
|
|
7198
7218
|
Cell: _ref => {
|
|
7199
7219
|
let value = _ref.value;
|
|
7200
|
-
|
|
7220
|
+
const status = (value || "NA").toUpperCase();
|
|
7221
|
+
return value ? /*#__PURE__*/React.createElement("span", {
|
|
7222
|
+
className: "ekyc-status-tag " + status
|
|
7223
|
+
}, t(status)) : "-";
|
|
7201
7224
|
}
|
|
7202
7225
|
}, {
|
|
7203
7226
|
Header: t("SUBMITTED_AT") || "Submitted At",
|
|
@@ -9392,13 +9415,39 @@ const Inbox$1 = _ref => {
|
|
|
9392
9415
|
width: "70%"
|
|
9393
9416
|
}
|
|
9394
9417
|
}));
|
|
9418
|
+
const onMobileSortOrderData = data => {
|
|
9419
|
+
const sortOrder = data.sortOrder;
|
|
9420
|
+
dispatch({
|
|
9421
|
+
action: "mutateTableForm",
|
|
9422
|
+
data: _extends({}, formState.tableForm, {
|
|
9423
|
+
sortOrder
|
|
9424
|
+
})
|
|
9425
|
+
});
|
|
9426
|
+
};
|
|
9427
|
+
const onSortFormReset = setSortFormValue => {
|
|
9428
|
+
setSortFormValue("sortOrder", "DESC");
|
|
9429
|
+
dispatch({
|
|
9430
|
+
action: "mutateTableForm",
|
|
9431
|
+
data: tableOrderFormDefaultValues
|
|
9432
|
+
});
|
|
9433
|
+
};
|
|
9434
|
+
const propsForMobileSortForm = {
|
|
9435
|
+
onMobileSortOrderData,
|
|
9436
|
+
sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
|
|
9437
|
+
onSortFormReset
|
|
9438
|
+
};
|
|
9439
|
+
const propsForInboxMobileCards = useInboxMobileCardsData({
|
|
9440
|
+
table: filteredData,
|
|
9441
|
+
tenantId
|
|
9442
|
+
});
|
|
9395
9443
|
const isInboxLoading = isLoading || isSearchLoading;
|
|
9396
9444
|
return /*#__PURE__*/React.createElement("div", {
|
|
9397
9445
|
className: "app-container"
|
|
9398
9446
|
}, /*#__PURE__*/React.createElement(InboxComposer, _extends({
|
|
9399
9447
|
isInboxLoading
|
|
9400
|
-
}, propsForSearchForm, {
|
|
9448
|
+
}, propsForSearchForm, propsForMobileSortForm, {
|
|
9401
9449
|
propsForInboxTable,
|
|
9450
|
+
propsForInboxMobileCards,
|
|
9402
9451
|
formState
|
|
9403
9452
|
})));
|
|
9404
9453
|
};
|