@djb25/digit-ui-module-ekyc 1.0.41 → 1.0.42

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
@@ -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,92 @@ 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
+ const _useTranslation = reactI18next.useTranslation(),
2827
+ t = _useTranslation.t;
2828
+ const history = reactRouterDom.useHistory();
2829
+ const _useState = React.useState(""),
2830
+ selectedKno = _useState[0],
2831
+ setSelectedKno = _useState[1];
2832
+ const _Digit$Hooks$ekyc$use = Digit.Hooks.ekyc.useEkycAPI("review", tenantId),
2833
+ reviewData = _Digit$Hooks$ekyc$use.data,
2834
+ getReview = _Digit$Hooks$ekyc$use.getReview;
2835
+ 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";
2836
+ React__default.useEffect(() => {
2837
+ if (reviewData) {
2838
+ history.push("/digit-ui/" + userType + "/ekyc/review/" + selectedKno, {
2839
+ aadhaarData: reviewData === null || reviewData === void 0 ? void 0 : reviewData.aadhaarData,
2840
+ reviewData
2841
+ });
2842
+ }
2843
+ }, [reviewData]);
2844
+ const handleReview = kno => {
2845
+ setSelectedKno(kno);
2846
+ getReview({
2847
+ kno
2848
+ });
2849
+ };
2850
+ const dataForMobileInboxCards = table === null || table === void 0 ? void 0 : table.map(item => {
2851
+ const kno = item.kno || item.applicationNumber || "NA";
2852
+ const status = (item.status || "DEFAULT").toUpperCase();
2853
+ const ekycStatus = (item.ekycStatus || item.ekycstatus || "NA").toUpperCase();
2854
+ return {
2855
+ [t("EKYC_APPLICATION_NO")]: /*#__PURE__*/React__default.createElement("span", {
2856
+ className: "link",
2857
+ onClick: () => handleReview(kno)
2858
+ }, kno),
2859
+ [t("EKYC_CITIZEN_NAME")]: item.citizenName || "NA",
2860
+ [t("EKYC_STATUS")]: /*#__PURE__*/React__default.createElement("span", {
2861
+ className: "ekyc-status-tag " + status
2862
+ }, t("" + status)),
2863
+ [t("SUBMITTED_AT")]: item.submittedAt ? Digit.DateUtils.ConvertEpochToDate(item.submittedAt) : "-",
2864
+ [t("ASSIGNED_AT")]: item.assignedAt ? Digit.DateUtils.ConvertEpochToDate(item.assignedAt) : "-",
2865
+ [t("EKYC_EKYC_STATUS")]: /*#__PURE__*/React__default.createElement("span", {
2866
+ className: "ekyc-status-tag " + ekycStatus
2867
+ }, t("" + ekycStatus))
2868
+ };
2869
+ });
2870
+ const MobileSortFormValues = () => {
2871
+ const sortOrderOptions = [{
2872
+ code: "DESC",
2873
+ i18nKey: "ES_INBOX_DATE_LATEST_FIRST"
2874
+ }, {
2875
+ code: "ASC",
2876
+ i18nKey: "ES_INBOX_DATE_LATEST_LAST"
2877
+ }];
2878
+ const _useFormContext = useFormContext(),
2879
+ controlSortForm = _useFormContext.control;
2880
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, null, /*#__PURE__*/React__default.createElement(Controller, {
2881
+ name: "sortOrder",
2882
+ control: controlSortForm,
2883
+ render: _ref2 => {
2884
+ let onChange = _ref2.onChange,
2885
+ value = _ref2.value;
2886
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
2887
+ onSelect: e => {
2888
+ onChange(e.code);
2889
+ },
2890
+ selectedOption: sortOrderOptions.filter(option => option.code === value)[0],
2891
+ optionsKey: "i18nKey",
2892
+ name: "sortOrder",
2893
+ options: sortOrderOptions
2894
+ });
2895
+ }
2896
+ }));
2897
+ };
2898
+ return {
2899
+ data: dataForMobileInboxCards,
2900
+ isTwoDynamicPrefix: true,
2901
+ getRedirectionLink: () => {},
2902
+ handleClickEnabled: false,
2903
+ serviceRequestIdKey: "applicationNo",
2904
+ MobileSortFormValues
2905
+ };
2906
+ };
2907
+
2822
2908
  const Inbox = _ref => {
2823
2909
  var _formState$tableForm3, _formState$tableForm4, _formState$searchForm3, _formState$searchForm4;
2824
2910
  let parentRoute = _ref.parentRoute;
@@ -3042,13 +3128,39 @@ const Inbox = _ref => {
3042
3128
  width: "70%"
3043
3129
  }
3044
3130
  }));
3131
+ const onMobileSortOrderData = data => {
3132
+ const sortOrder = data.sortOrder;
3133
+ dispatch({
3134
+ action: "mutateTableForm",
3135
+ data: _extends({}, formState.tableForm, {
3136
+ sortOrder
3137
+ })
3138
+ });
3139
+ };
3140
+ const onSortFormReset = setSortFormValue => {
3141
+ setSortFormValue("sortOrder", "DESC");
3142
+ dispatch({
3143
+ action: "mutateTableForm",
3144
+ data: tableOrderFormDefaultValues
3145
+ });
3146
+ };
3147
+ const propsForMobileSortForm = {
3148
+ onMobileSortOrderData,
3149
+ sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
3150
+ onSortFormReset
3151
+ };
3152
+ const propsForInboxMobileCards = useInboxMobileCardsData({
3153
+ table: filteredData,
3154
+ tenantId
3155
+ });
3045
3156
  const isInboxLoading = isListLoading || isSearchLoading;
3046
3157
  return /*#__PURE__*/React__default.createElement("div", {
3047
3158
  className: "app-container"
3048
3159
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.InboxComposer, _extends({
3049
3160
  isInboxLoading
3050
- }, propsForSearchForm, {
3161
+ }, propsForSearchForm, propsForMobileSortForm, {
3051
3162
  propsForInboxTable,
3163
+ propsForInboxMobileCards,
3052
3164
  formState,
3053
3165
  countData: listData
3054
3166
  })));
@@ -5539,6 +5651,70 @@ const SupervisorInboxTableConfig = _ref => {
5539
5651
  };
5540
5652
  };
5541
5653
 
5654
+ const useSupervisorInboxMobileCardsData = _ref => {
5655
+ var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3;
5656
+ let table = _ref.table;
5657
+ const _useTranslation = reactI18next.useTranslation(),
5658
+ t = _useTranslation.t;
5659
+ const history = reactRouterDom.useHistory();
5660
+ 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";
5661
+ const handleReview = id => {
5662
+ history.push("/digit-ui/" + userType + "/ekyc/assign/surveyor-details/" + id);
5663
+ };
5664
+ const dataForMobileInboxCards = table === null || table === void 0 ? void 0 : table.map(item => {
5665
+ var _item$owner;
5666
+ const id = item.id;
5667
+ const status = item.status || "DEFAULT";
5668
+ return {
5669
+ [t("SURVEYOR_NAME")]: /*#__PURE__*/React__default.createElement("span", {
5670
+ className: "link",
5671
+ onClick: () => handleReview(id)
5672
+ }, item.surveyorName || item.name || "NA"),
5673
+ [t("MOBILE_NUMBER")]: item.mobileNo || ((_item$owner = item.owner) === null || _item$owner === void 0 ? void 0 : _item$owner.mobileNumber) || "NA",
5674
+ [t("STATUS")]: /*#__PURE__*/React__default.createElement("span", {
5675
+ className: "ekyc-status-tag " + status
5676
+ }, t(status)),
5677
+ [t("SERVICE_TYPE")]: item.serviceType || "NA"
5678
+ };
5679
+ });
5680
+ const MobileSortFormValues = () => {
5681
+ const sortOrderOptions = [{
5682
+ code: "DESC",
5683
+ i18nKey: "ES_INBOX_DATE_LATEST_FIRST"
5684
+ }, {
5685
+ code: "ASC",
5686
+ i18nKey: "ES_INBOX_DATE_LATEST_LAST"
5687
+ }];
5688
+ const _useFormContext = useFormContext(),
5689
+ controlSortForm = _useFormContext.control;
5690
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, null, /*#__PURE__*/React__default.createElement(Controller, {
5691
+ name: "sortOrder",
5692
+ control: controlSortForm,
5693
+ render: _ref2 => {
5694
+ let onChange = _ref2.onChange,
5695
+ value = _ref2.value;
5696
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
5697
+ onSelect: e => {
5698
+ onChange(e.code);
5699
+ },
5700
+ selectedOption: sortOrderOptions.filter(option => option.code === value)[0],
5701
+ optionsKey: "i18nKey",
5702
+ name: "sortOrder",
5703
+ options: sortOrderOptions
5704
+ });
5705
+ }
5706
+ }));
5707
+ };
5708
+ return {
5709
+ data: dataForMobileInboxCards,
5710
+ isTwoDynamicPrefix: true,
5711
+ getRedirectionLink: () => {},
5712
+ handleClickEnabled: false,
5713
+ serviceRequestIdKey: "id",
5714
+ MobileSortFormValues
5715
+ };
5716
+ };
5717
+
5542
5718
  const AssignEkyc = () => {
5543
5719
  var _formState$tableForm, _formState$tableForm2, _formState$tableForm3, _formState$tableForm4, _formState$searchForm, _dashboardData$dashbo;
5544
5720
  let tenantId = Digit.ULBService.getCurrentTenantId();
@@ -5696,12 +5872,37 @@ const AssignEkyc = () => {
5696
5872
  }
5697
5873
  }));
5698
5874
  const isInboxLoading = isLoading;
5875
+ const onMobileSortOrderData = data => {
5876
+ const sortOrder = data.sortOrder;
5877
+ dispatch({
5878
+ action: "mutateTableForm",
5879
+ data: _extends({}, formState.tableForm, {
5880
+ sortOrder
5881
+ })
5882
+ });
5883
+ };
5884
+ const onSortFormReset = setSortFormValue => {
5885
+ setSortFormValue("sortOrder", "DESC");
5886
+ dispatch({
5887
+ action: "mutateTableForm",
5888
+ data: tableOrderFormDefaultValues
5889
+ });
5890
+ };
5891
+ const propsForMobileSortForm = {
5892
+ onMobileSortOrderData,
5893
+ sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
5894
+ onSortFormReset
5895
+ };
5896
+ const propsForInboxMobileCards = useSupervisorInboxMobileCardsData({
5897
+ table: filteredData
5898
+ });
5699
5899
  return /*#__PURE__*/React__default.createElement("div", {
5700
5900
  className: "app-container"
5701
5901
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.InboxComposer, _extends({
5702
5902
  isInboxLoading
5703
- }, propsForSearchForm, {
5903
+ }, propsForSearchForm, propsForMobileSortForm, {
5704
5904
  propsForInboxTable,
5905
+ propsForInboxMobileCards,
5705
5906
  formState,
5706
5907
  countData: dashboardData === null || dashboardData === void 0 ? void 0 : dashboardData.dashboardInfo,
5707
5908
  isCardLoading: isDataSearchLoading
@@ -5869,14 +6070,7 @@ const AdminDashboard = () => {
5869
6070
  }, mobileNumber))), /*#__PURE__*/React__default.createElement("button", {
5870
6071
  className: "download-excel-btn",
5871
6072
  disabled: ekycDownloadLoading,
5872
- onClick: handleDownloadEkycData,
5873
- style: {
5874
- margin: 0,
5875
- padding: "8px 16px",
5876
- height: "auto",
5877
- minHeight: "36px",
5878
- width: "auto"
5879
- }
6073
+ onClick: handleDownloadEkycData
5880
6074
  }, /*#__PURE__*/React__default.createElement("svg", {
5881
6075
  width: "16",
5882
6076
  height: "16",
@@ -5885,10 +6079,7 @@ const AdminDashboard = () => {
5885
6079
  stroke: "currentColor",
5886
6080
  strokeWidth: "2.5",
5887
6081
  strokeLinecap: "round",
5888
- strokeLinejoin: "round",
5889
- style: {
5890
- marginRight: "8px"
5891
- }
6082
+ strokeLinejoin: "round"
5892
6083
  }, /*#__PURE__*/React__default.createElement("path", {
5893
6084
  d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
5894
6085
  }), /*#__PURE__*/React__default.createElement("polyline", {
@@ -5899,189 +6090,56 @@ const AdminDashboard = () => {
5899
6090
  x2: "12",
5900
6091
  y2: "3"
5901
6092
  })), ekycDownloadLoading ? t("DOWNLOADING") || "Downloading..." : t("DOWNLOAD_EXCEL") || "Download Excel")), /*#__PURE__*/React__default.createElement("div", {
5902
- style: {
5903
- marginTop: "32px"
5904
- }
6093
+ className: "admin-performance-section"
5905
6094
  }, /*#__PURE__*/React__default.createElement("h3", {
5906
- style: {
5907
- fontSize: "20px",
5908
- fontWeight: "700",
5909
- color: "#101828",
5910
- marginBottom: "20px"
5911
- }
6095
+ className: "section-title"
5912
6096
  }, 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
- }
6097
+ className: "vendors-grid"
5919
6098
  }, 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
- }
6099
+ className: "no-vendors"
5927
6100
  }, t("NO_VENDORS_FOUND") || "No vendors found.") : vendorsList.map(vendor => /*#__PURE__*/React__default.createElement("div", {
5928
6101
  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
- }
6102
+ className: "vendor-perf-card",
6103
+ onClick: () => history.push("/digit-ui/employee/ekyc/vendors/" + vendor.id)
5953
6104
  }, /*#__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
- }
6105
+ className: "card-header"
6106
+ }, /*#__PURE__*/React__default.createElement("div", {
6107
+ className: "vendor-info"
6108
+ }, /*#__PURE__*/React__default.createElement("h4", null, vendor.name), /*#__PURE__*/React__default.createElement("p", null, t("MOBILE") || "Mobile", ": ", vendor.mobileNumber)), /*#__PURE__*/React__default.createElement("span", {
6109
+ className: "progress-badge"
5982
6110
  }, 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
- }
6111
+ className: "progress-bar-container"
5990
6112
  }, /*#__PURE__*/React__default.createElement("div", {
6113
+ className: "progress-bar-fill",
5991
6114
  style: {
5992
- width: vendor.progress + "%",
5993
- height: "100%",
5994
- background: "linear-gradient(90deg, #3B82F6 0%, #10B981 100%)",
5995
- borderRadius: "999px"
6115
+ width: vendor.progress + "%"
5996
6116
  }
5997
6117
  })), /*#__PURE__*/React__default.createElement("div", {
5998
- style: {
5999
- display: "grid",
6000
- gridTemplateColumns: "repeat(3, 1fr)",
6001
- gap: "12px"
6002
- }
6118
+ className: "stats-grid"
6003
6119
  }, /*#__PURE__*/React__default.createElement("div", {
6004
- style: {
6005
- background: "#F8FAFC",
6006
- padding: "12px 8px",
6007
- borderRadius: "10px",
6008
- textAlign: "center"
6009
- }
6120
+ className: "stat-item"
6010
6121
  }, /*#__PURE__*/React__default.createElement("div", {
6011
- style: {
6012
- fontSize: "16px",
6013
- fontWeight: "700",
6014
- color: "#1E293B"
6015
- }
6122
+ className: "value"
6016
6123
  }, 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
- }
6124
+ className: "label"
6024
6125
  }, t("SUPERVISORS") || "Supervisors")), /*#__PURE__*/React__default.createElement("div", {
6025
- style: {
6026
- background: "#F8FAFC",
6027
- padding: "12px 8px",
6028
- borderRadius: "10px",
6029
- textAlign: "center"
6030
- }
6126
+ className: "stat-item"
6031
6127
  }, /*#__PURE__*/React__default.createElement("div", {
6032
- style: {
6033
- fontSize: "16px",
6034
- fontWeight: "700",
6035
- color: "#1E293B"
6036
- }
6128
+ className: "value"
6037
6129
  }, 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
- }
6130
+ className: "label"
6045
6131
  }, t("SURVEYORS") || "Surveyors")), /*#__PURE__*/React__default.createElement("div", {
6046
- style: {
6047
- background: "#F8FAFC",
6048
- padding: "12px 8px",
6049
- borderRadius: "10px",
6050
- textAlign: "center"
6051
- }
6132
+ className: "stat-item"
6052
6133
  }, /*#__PURE__*/React__default.createElement("div", {
6053
- style: {
6054
- fontSize: "16px",
6055
- fontWeight: "700",
6056
- color: "#10B981"
6057
- }
6134
+ className: "value completed-val"
6058
6135
  }, 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
- }
6136
+ className: "label"
6066
6137
  }, 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
- }
6138
+ className: "card-footer"
6075
6139
  }, /*#__PURE__*/React__default.createElement("span", null, t("PENDING") || "Pending", ": ", /*#__PURE__*/React__default.createElement("span", {
6076
- style: {
6077
- fontWeight: "700",
6078
- color: "#F59E0B"
6079
- }
6140
+ className: "pending-count"
6080
6141
  }, 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
- }
6142
+ className: "rejected-count"
6085
6143
  }, vendor.rejected))))))));
6086
6144
  };
6087
6145
 
@@ -6965,7 +7023,10 @@ const AssignEkycModal = _ref => {
6965
7023
  accessor: "ekycStatus",
6966
7024
  Cell: _ref5 => {
6967
7025
  let value = _ref5.value;
6968
- return value || "-";
7026
+ const status = (value || "NA").toUpperCase();
7027
+ return value ? /*#__PURE__*/React__default.createElement("span", {
7028
+ className: "ekyc-status-tag " + status
7029
+ }, t(status)) : "-";
6969
7030
  }
6970
7031
  }], [selectedKnos, tableData]);
6971
7032
  const handleSelect = kno => {
@@ -7200,7 +7261,10 @@ const SurveyorDetailsDashboard = () => {
7200
7261
  accessor: "ekycStatus",
7201
7262
  Cell: _ref => {
7202
7263
  let value = _ref.value;
7203
- return value || "-";
7264
+ const status = (value || "NA").toUpperCase();
7265
+ return value ? /*#__PURE__*/React__default.createElement("span", {
7266
+ className: "ekyc-status-tag " + status
7267
+ }, t(status)) : "-";
7204
7268
  }
7205
7269
  }, {
7206
7270
  Header: t("SUBMITTED_AT") || "Submitted At",
@@ -9395,13 +9459,39 @@ const Inbox$1 = _ref => {
9395
9459
  width: "70%"
9396
9460
  }
9397
9461
  }));
9462
+ const onMobileSortOrderData = data => {
9463
+ const sortOrder = data.sortOrder;
9464
+ dispatch({
9465
+ action: "mutateTableForm",
9466
+ data: _extends({}, formState.tableForm, {
9467
+ sortOrder
9468
+ })
9469
+ });
9470
+ };
9471
+ const onSortFormReset = setSortFormValue => {
9472
+ setSortFormValue("sortOrder", "DESC");
9473
+ dispatch({
9474
+ action: "mutateTableForm",
9475
+ data: tableOrderFormDefaultValues
9476
+ });
9477
+ };
9478
+ const propsForMobileSortForm = {
9479
+ onMobileSortOrderData,
9480
+ sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
9481
+ onSortFormReset
9482
+ };
9483
+ const propsForInboxMobileCards = useInboxMobileCardsData({
9484
+ table: filteredData,
9485
+ tenantId
9486
+ });
9398
9487
  const isInboxLoading = isLoading || isSearchLoading;
9399
9488
  return /*#__PURE__*/React__default.createElement("div", {
9400
9489
  className: "app-container"
9401
9490
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.InboxComposer, _extends({
9402
9491
  isInboxLoading
9403
- }, propsForSearchForm, {
9492
+ }, propsForSearchForm, propsForMobileSortForm, {
9404
9493
  propsForInboxTable,
9494
+ propsForInboxMobileCards,
9405
9495
  formState
9406
9496
  })));
9407
9497
  };