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