@bigbinary/neeto-payments-frontend 3.0.10 → 3.0.11
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/AccountsDashboard.js +7 -7
- package/dist/{CopyButtonWrapper-54c5e270.js → CopyButtonWrapper-SoJkwX-d.js} +1 -1
- package/dist/{CopyButtonWrapper-54c5e270.js.map → CopyButtonWrapper-SoJkwX-d.js.map} +1 -1
- package/dist/Dashboard.js +11 -11
- package/dist/{ExportModal-88dc71cb.js → ExportModal-Bghgk5Fq.js} +8 -8
- package/dist/{ExportModal-88dc71cb.js.map → ExportModal-Bghgk5Fq.js.map} +1 -1
- package/dist/{ExportModal-2b9e06d1.js → ExportModal-yvMMuguW.js} +3 -3
- package/dist/{ExportModal-2b9e06d1.js.map → ExportModal-yvMMuguW.js.map} +1 -1
- package/dist/{IdentifierButton-350fcc55.js → IdentifierButton-DdXIkdI0.js} +1 -1
- package/dist/{IdentifierButton-350fcc55.js.map → IdentifierButton-DdXIkdI0.js.map} +1 -1
- package/dist/PaymentsDashboard.js +5 -5
- package/dist/PayoutsDashboard.js +8 -8
- package/dist/PayoutsPage.js +11 -11
- package/dist/RazorpayDashboard.js +11 -11
- package/dist/RazorpayPaymentButton.js +3 -3
- package/dist/RefundsDashboard.js +5 -5
- package/dist/SplitTransfersDashboard.js +5 -5
- package/dist/StripeConnect.js +3 -3
- package/dist/UpiMarkAsPaidButton.js +2 -2
- package/dist/UpiPayment.js +2 -2
- package/dist/UpiPayment.js.map +1 -1
- package/dist/V2PaymentsDashboard.js +6 -6
- package/dist/buildStripeTransactionLink.js +5 -2
- package/dist/buildStripeTransactionLink.js.map +1 -1
- package/dist/cjs/AccountsDashboard.js +44 -63
- package/dist/cjs/AccountsDashboard.js.map +1 -1
- package/dist/cjs/{CopyButtonWrapper-57331e1c.js → CopyButtonWrapper-Ds1k64E0.js} +2 -6
- package/dist/cjs/CopyButtonWrapper-Ds1k64E0.js.map +1 -0
- package/dist/cjs/Dashboard.js +59 -78
- package/dist/cjs/Dashboard.js.map +1 -1
- package/dist/cjs/{ExportModal-6b0ed8ca.js → ExportModal-BsYl_TMG.js} +32 -44
- package/dist/cjs/ExportModal-BsYl_TMG.js.map +1 -0
- package/dist/cjs/{ExportModal-0e9788c0.js → ExportModal-sbljriiC.js} +17 -26
- package/dist/cjs/{ExportModal-0e9788c0.js.map → ExportModal-sbljriiC.js.map} +1 -1
- package/dist/cjs/{IdentifierButton-3162ff10.js → IdentifierButton-C0gz-cb3.js} +2 -6
- package/dist/cjs/IdentifierButton-C0gz-cb3.js.map +1 -0
- package/dist/cjs/PaymentKindRestrictionAlert.js +3 -9
- package/dist/cjs/PaymentKindRestrictionAlert.js.map +1 -1
- package/dist/cjs/PaymentsDashboard.js +32 -52
- package/dist/cjs/PaymentsDashboard.js.map +1 -1
- package/dist/cjs/PayoutsDashboard.js +44 -62
- package/dist/cjs/PayoutsDashboard.js.map +1 -1
- package/dist/cjs/PayoutsPage.js +26 -34
- package/dist/cjs/PayoutsPage.js.map +1 -1
- package/dist/cjs/RazorpayDashboard.js +20 -30
- package/dist/cjs/RazorpayDashboard.js.map +1 -1
- package/dist/cjs/RazorpayPaymentButton.js +6 -12
- package/dist/cjs/RazorpayPaymentButton.js.map +1 -1
- package/dist/cjs/RefundsDashboard.js +32 -52
- package/dist/cjs/RefundsDashboard.js.map +1 -1
- package/dist/cjs/SplitTransfersDashboard.js +74 -96
- package/dist/cjs/SplitTransfersDashboard.js.map +1 -1
- package/dist/cjs/StripeConnect.js +41 -60
- package/dist/cjs/StripeConnect.js.map +1 -1
- package/dist/cjs/UpiConnect.js +13 -25
- package/dist/cjs/UpiConnect.js.map +1 -1
- package/dist/cjs/UpiMarkAsPaidButton.js +3 -7
- package/dist/cjs/UpiMarkAsPaidButton.js.map +1 -1
- package/dist/cjs/UpiPayment.js +24 -33
- package/dist/cjs/UpiPayment.js.map +1 -1
- package/dist/cjs/V2PaymentsDashboard.js +14 -23
- package/dist/cjs/V2PaymentsDashboard.js.map +1 -1
- package/dist/cjs/buildStripeTransactionLink.js +1 -1
- package/dist/cjs/constants.js +1 -3
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/{exportChannel-2a51d2d8.js → exportChannel-BsZ3fusx.js} +1 -1
- package/dist/cjs/{exportChannel-2a51d2d8.js.map → exportChannel-BsZ3fusx.js.map} +1 -1
- package/dist/cjs/{index-60a3da61.js → index-BuNTaf1f.js} +1 -1
- package/dist/cjs/{index-60a3da61.js.map → index-BuNTaf1f.js.map} +1 -1
- package/dist/cjs/{index-e932b434.js → index-BzFcR-7l.js} +1 -1
- package/dist/cjs/{index-e932b434.js.map → index-BzFcR-7l.js.map} +1 -1
- package/dist/cjs/index.js +16 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{queryConstants-cee3a25c.js → queryConstants-DjUfvjMz.js} +1 -1
- package/dist/cjs/{queryConstants-cee3a25c.js.map → queryConstants-DjUfvjMz.js.map} +1 -1
- package/dist/cjs/{renderFunctions-da7fff5c.js → renderFunctions-BbjAoGRq.js} +11 -18
- package/dist/cjs/{renderFunctions-da7fff5c.js.map → renderFunctions-BbjAoGRq.js.map} +1 -1
- package/dist/cjs/{stripe.esm-4218a1e9.js → stripe.esm-CrNYjPcC.js} +2 -2
- package/dist/cjs/{stripe.esm-4218a1e9.js.map → stripe.esm-CrNYjPcC.js.map} +1 -1
- package/dist/cjs/{useConnectApi-824f118b.js → useConnectApi-DbI3O5hP.js} +14 -20
- package/dist/cjs/useConnectApi-DbI3O5hP.js.map +1 -0
- package/dist/cjs/useExportsApi-BvTb7f1O.js +21 -0
- package/dist/cjs/{useExportsApi-bc3e12c4.js.map → useExportsApi-BvTb7f1O.js.map} +1 -1
- package/dist/cjs/{useFiltersAndPagination-403f9e71.js → useFiltersAndPagination-V5BaNCxh.js} +23 -35
- package/dist/cjs/{useFiltersAndPagination-403f9e71.js.map → useFiltersAndPagination-V5BaNCxh.js.map} +1 -1
- package/dist/cjs/{usePaymentApi-aea849ba.js → usePaymentApi-BeIaTmh7.js} +7 -12
- package/dist/cjs/{usePaymentApi-aea849ba.js.map → usePaymentApi-BeIaTmh7.js.map} +1 -1
- package/dist/cjs/{usePaymentsApi-4620b0ad.js → usePaymentsApi-DN_TGkBj.js} +5 -10
- package/dist/cjs/usePaymentsApi-DN_TGkBj.js.map +1 -0
- package/dist/cjs/{usePlatformApi-bdc12852.js → usePlatformApi-KU7JBwud.js} +14 -20
- package/dist/cjs/usePlatformApi-KU7JBwud.js.map +1 -0
- package/dist/cjs/useRazorpayPayment.js +5 -10
- package/dist/cjs/useRazorpayPayment.js.map +1 -1
- package/dist/cjs/useStripePromise.js +3 -8
- package/dist/cjs/useStripePromise.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/{exportChannel-1da3d27c.js → exportChannel-CViICC6x.js} +1 -1
- package/dist/{exportChannel-1da3d27c.js.map → exportChannel-CViICC6x.js.map} +1 -1
- package/dist/{index-d7d0cd82.js → index-BBpYcMdz.js} +2 -2
- package/dist/{index-d7d0cd82.js.map → index-BBpYcMdz.js.map} +1 -1
- package/dist/{index-d1905044.js → index-DFxMGqOe.js} +2 -2
- package/dist/{index-d1905044.js.map → index-DFxMGqOe.js.map} +1 -1
- package/dist/index.js +16 -16
- package/dist/{queryConstants-27871137.js → queryConstants-BCx5cEmf.js} +1 -1
- package/dist/{queryConstants-27871137.js.map → queryConstants-BCx5cEmf.js.map} +1 -1
- package/dist/{renderFunctions-4121a580.js → renderFunctions-bOPznQKN.js} +4 -3
- package/dist/{renderFunctions-4121a580.js.map → renderFunctions-bOPznQKN.js.map} +1 -1
- package/dist/{stripe.esm-115c767d.js → stripe.esm-DuZ_gsAa.js} +2 -2
- package/dist/{stripe.esm-115c767d.js.map → stripe.esm-DuZ_gsAa.js.map} +1 -1
- package/dist/{useConnectApi-3b633e99.js → useConnectApi-TCfWHhy0.js} +4 -4
- package/dist/{useConnectApi-3b633e99.js.map → useConnectApi-TCfWHhy0.js.map} +1 -1
- package/dist/{useExportsApi-3880c7ab.js → useExportsApi-CpVle5L6.js} +2 -2
- package/dist/{useExportsApi-3880c7ab.js.map → useExportsApi-CpVle5L6.js.map} +1 -1
- package/dist/{useFiltersAndPagination-c5080589.js → useFiltersAndPagination-B6p5IbXe.js} +5 -5
- package/dist/{useFiltersAndPagination-c5080589.js.map → useFiltersAndPagination-B6p5IbXe.js.map} +1 -1
- package/dist/{usePaymentApi-6531ee2b.js → usePaymentApi-DSmvjrJD.js} +3 -3
- package/dist/{usePaymentApi-6531ee2b.js.map → usePaymentApi-DSmvjrJD.js.map} +1 -1
- package/dist/{usePaymentsApi-b1f975e0.js → usePaymentsApi-DXILYads.js} +2 -2
- package/dist/{usePaymentsApi-b1f975e0.js.map → usePaymentsApi-DXILYads.js.map} +1 -1
- package/dist/{usePlatformApi-4b15706f.js → usePlatformApi-Cvjvckp_.js} +4 -4
- package/dist/{usePlatformApi-4b15706f.js.map → usePlatformApi-Cvjvckp_.js.map} +1 -1
- package/dist/useRazorpayPayment.js +3 -3
- package/dist/useStripePromise.js +1 -1
- package/package.json +11 -11
- package/dist/cjs/CopyButtonWrapper-57331e1c.js.map +0 -1
- package/dist/cjs/ExportModal-6b0ed8ca.js.map +0 -1
- package/dist/cjs/IdentifierButton-3162ff10.js.map +0 -1
- package/dist/cjs/useConnectApi-824f118b.js.map +0 -1
- package/dist/cjs/useExportsApi-bc3e12c4.js +0 -25
- package/dist/cjs/usePaymentsApi-4620b0ad.js.map +0 -1
- package/dist/cjs/usePlatformApi-bdc12852.js.map +0 -1
|
@@ -10,11 +10,11 @@ var utils$1 = require('@bigbinary/neeto-filters-frontend/utils');
|
|
|
10
10
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
11
11
|
var ramda = require('ramda');
|
|
12
12
|
var reactRouterDom = require('react-router-dom');
|
|
13
|
-
var ExportModal = require('./ExportModal-
|
|
13
|
+
var ExportModal = require('./ExportModal-sbljriiC.js');
|
|
14
14
|
var reactQuery = require('@tanstack/react-query');
|
|
15
15
|
var axios = require('axios');
|
|
16
|
-
var constants = require('./index-
|
|
17
|
-
var queryConstants = require('./queryConstants-
|
|
16
|
+
var constants = require('./index-BzFcR-7l.js');
|
|
17
|
+
var queryConstants = require('./queryConstants-DjUfvjMz.js');
|
|
18
18
|
var i18next = require('i18next');
|
|
19
19
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
20
20
|
var Columns = require('@bigbinary/neeto-molecules/Columns');
|
|
@@ -30,45 +30,23 @@ var Tag = require('@bigbinary/neetoui/Tag');
|
|
|
30
30
|
var Tooltip = require('@bigbinary/neetoui/Tooltip');
|
|
31
31
|
var jsxRuntime = require('react/jsx-runtime');
|
|
32
32
|
var DateFormat = require('@bigbinary/neeto-molecules/DateFormat');
|
|
33
|
-
var CopyButtonWrapper = require('./CopyButtonWrapper-
|
|
33
|
+
var CopyButtonWrapper = require('./CopyButtonWrapper-Ds1k64E0.js');
|
|
34
34
|
var FiltersBar = require('@bigbinary/neeto-filters-frontend/Bar');
|
|
35
35
|
var Header = require('@bigbinary/neeto-molecules/Header');
|
|
36
36
|
var SubHeader = require('@bigbinary/neeto-molecules/SubHeader');
|
|
37
37
|
var Tab = require('@bigbinary/neetoui/Tab');
|
|
38
38
|
require('@bigbinary/neeto-icons/Download');
|
|
39
39
|
require('@bigbinary/neetoui/Modal');
|
|
40
|
-
require('./exportChannel-
|
|
40
|
+
require('./exportChannel-BsZ3fusx.js');
|
|
41
41
|
require('@bigbinary/neeto-molecules/CopyToClipboardButton');
|
|
42
42
|
|
|
43
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
44
|
-
|
|
45
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
46
|
-
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
47
|
-
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
48
|
-
var Spinner__default = /*#__PURE__*/_interopDefaultLegacy(Spinner);
|
|
49
|
-
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
50
|
-
var TableWrapper__default = /*#__PURE__*/_interopDefaultLegacy(TableWrapper);
|
|
51
|
-
var Table__default = /*#__PURE__*/_interopDefaultLegacy(Table);
|
|
52
|
-
var NoData__default = /*#__PURE__*/_interopDefaultLegacy(NoData);
|
|
53
|
-
var HelpPopover__default = /*#__PURE__*/_interopDefaultLegacy(HelpPopover);
|
|
54
|
-
var Pane__default = /*#__PURE__*/_interopDefaultLegacy(Pane);
|
|
55
|
-
var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
|
|
56
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
57
|
-
var Tag__default = /*#__PURE__*/_interopDefaultLegacy(Tag);
|
|
58
|
-
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
59
|
-
var DateFormat__default = /*#__PURE__*/_interopDefaultLegacy(DateFormat);
|
|
60
|
-
var FiltersBar__default = /*#__PURE__*/_interopDefaultLegacy(FiltersBar);
|
|
61
|
-
var Header__default = /*#__PURE__*/_interopDefaultLegacy(Header);
|
|
62
|
-
var SubHeader__default = /*#__PURE__*/_interopDefaultLegacy(SubHeader);
|
|
63
|
-
var Tab__default = /*#__PURE__*/_interopDefaultLegacy(Tab);
|
|
64
|
-
|
|
65
43
|
var list = function list(payload) {
|
|
66
|
-
return
|
|
44
|
+
return axios.get("".concat(constants.BASE_URL, "/api/v1/split_transfers"), {
|
|
67
45
|
params: payload
|
|
68
46
|
});
|
|
69
47
|
};
|
|
70
48
|
var show = function show(id) {
|
|
71
|
-
return
|
|
49
|
+
return axios.get("".concat(constants.BASE_URL, "/api/v1/split_transfers/").concat(id));
|
|
72
50
|
};
|
|
73
51
|
var splitTransfersApi = {
|
|
74
52
|
list: list,
|
|
@@ -76,7 +54,7 @@ var splitTransfersApi = {
|
|
|
76
54
|
};
|
|
77
55
|
|
|
78
56
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
79
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) {
|
|
57
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
80
58
|
var useFetchSplitTransfers = function useFetchSplitTransfers() {
|
|
81
59
|
var payload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
82
60
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -131,12 +109,12 @@ var Status = function Status(_ref) {
|
|
|
131
109
|
var _useTranslation = reactI18next.useTranslation(),
|
|
132
110
|
t = _useTranslation.t;
|
|
133
111
|
var processedStatus = constants.preProcessStatus(type, status);
|
|
134
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
112
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tooltip, {
|
|
135
113
|
content: t("neetoPayments.tooltipContent.".concat(type, ".").concat(processedStatus)),
|
|
136
114
|
position: "top",
|
|
137
115
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
138
116
|
className: "w-fit",
|
|
139
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
117
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Tag, {
|
|
140
118
|
label: t("neetoPayments.tagLabels.".concat(type, ".").concat(processedStatus)),
|
|
141
119
|
style: constants.getTagStyle(processedStatus)
|
|
142
120
|
})
|
|
@@ -151,7 +129,7 @@ var Date = function Date(_ref) {
|
|
|
151
129
|
var _useTranslation = reactI18next.useTranslation(),
|
|
152
130
|
t = _useTranslation.t;
|
|
153
131
|
if (neetoCist.isNotPresent(date)) {
|
|
154
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
132
|
+
return /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
155
133
|
style: "body2",
|
|
156
134
|
children: t("neetoPayments.common.notAvailable")
|
|
157
135
|
});
|
|
@@ -159,14 +137,14 @@ var Date = function Date(_ref) {
|
|
|
159
137
|
if (isTimeVisible) {
|
|
160
138
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
161
139
|
className: "flex items-center",
|
|
162
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
140
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DateFormat.DateTime, {
|
|
163
141
|
date: date
|
|
164
142
|
})
|
|
165
143
|
});
|
|
166
144
|
}
|
|
167
145
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
168
146
|
className: "flex items-center",
|
|
169
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
147
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DateFormat.Date, {
|
|
170
148
|
date: date
|
|
171
149
|
})
|
|
172
150
|
});
|
|
@@ -180,7 +158,7 @@ var DiscountCode = function DiscountCode(_ref) {
|
|
|
180
158
|
var code = discountCode.code,
|
|
181
159
|
value = discountCode.value,
|
|
182
160
|
kind = discountCode.kind;
|
|
183
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
161
|
+
return /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
184
162
|
style: "body2",
|
|
185
163
|
children: kind === "percentage" ? t("neetoPayments.splitTransferDetails.discountCodeOfPercentageApplied", {
|
|
186
164
|
code: code,
|
|
@@ -208,7 +186,7 @@ var Details = function Details(_ref) {
|
|
|
208
186
|
_useShowSplitTransfer2 = _useShowSplitTransfer.data,
|
|
209
187
|
_useShowSplitTransfer3 = _useShowSplitTransfer2 === void 0 ? {} : _useShowSplitTransfer2,
|
|
210
188
|
splitTransfer = _useShowSplitTransfer3.splitTransfer;
|
|
211
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
189
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Pane, {
|
|
212
190
|
isOpen: selectedTransfer["isPaneOpen"],
|
|
213
191
|
size: "large",
|
|
214
192
|
onClose: function onClose() {
|
|
@@ -216,68 +194,68 @@ var Details = function Details(_ref) {
|
|
|
216
194
|
isPaneOpen: false
|
|
217
195
|
}, selectedTransfer));
|
|
218
196
|
},
|
|
219
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
220
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
197
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Pane.Header, {
|
|
198
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
221
199
|
style: "h2",
|
|
222
200
|
children: t("neetoPayments.splitTransferDetails.title")
|
|
223
201
|
})
|
|
224
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
202
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Pane.Body, {
|
|
225
203
|
children: isPending ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
226
204
|
className: "flex h-full w-full items-center justify-center",
|
|
227
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
205
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
|
|
228
206
|
}) : /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
229
207
|
className: "space-y-4 p-3",
|
|
230
208
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
231
209
|
className: "flex grid-cols-2 flex-col gap-3 lg:grid",
|
|
232
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
210
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
233
211
|
style: "body1",
|
|
234
212
|
weight: "medium",
|
|
235
213
|
children: t("neetoPayments.common.identifier")
|
|
236
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
214
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
237
215
|
href: splitTransfer.transferUrl,
|
|
238
216
|
label: splitTransfer.identifier,
|
|
239
217
|
size: "small",
|
|
240
218
|
style: "link",
|
|
241
219
|
target: "_blank"
|
|
242
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
220
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
243
221
|
style: "body1",
|
|
244
222
|
weight: "medium",
|
|
245
223
|
children: t("neetoPayments.common.status")
|
|
246
224
|
}), /*#__PURE__*/jsxRuntime.jsx(Status, {
|
|
247
225
|
status: splitTransfer.status,
|
|
248
226
|
type: "splitTransfers"
|
|
249
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
227
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
250
228
|
style: "body1",
|
|
251
229
|
weight: "medium",
|
|
252
230
|
children: t("neetoPayments.common.transferTime")
|
|
253
231
|
}), /*#__PURE__*/jsxRuntime.jsx(Date, {
|
|
254
232
|
isTimeVisible: true,
|
|
255
233
|
date: splitTransfer.paymentAt
|
|
256
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
234
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
257
235
|
style: "body1",
|
|
258
236
|
weight: "medium",
|
|
259
237
|
children: t("neetoPayments.common.paymentAmount")
|
|
260
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
238
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
261
239
|
style: "body2",
|
|
262
240
|
children: utils.currencyFormat.withCode((_splitTransfer$source = splitTransfer.sourcePayment) === null || _splitTransfer$source === void 0 ? void 0 : _splitTransfer$source.amount, (_splitTransfer$curren = splitTransfer.currency) === null || _splitTransfer$curren === void 0 ? void 0 : _splitTransfer$curren.toUpperCase())
|
|
263
241
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
264
242
|
className: "flex items-center space-x-1",
|
|
265
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
243
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
266
244
|
style: "body1",
|
|
267
245
|
weight: "medium",
|
|
268
246
|
children: t("neetoPayments.common.netAmount")
|
|
269
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
247
|
+
}), /*#__PURE__*/jsxRuntime.jsx(HelpPopover, {
|
|
270
248
|
popoverProps: {
|
|
271
249
|
position: "right"
|
|
272
250
|
},
|
|
273
251
|
description: t("neetoPayments.splitTransferDetails.netAmountDescription"),
|
|
274
252
|
title: t("neetoPayments.splitTransferDetails.netAmountHelpTitle")
|
|
275
253
|
})]
|
|
276
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
254
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
277
255
|
style: "body2",
|
|
278
256
|
children: utils.currencyFormat.withCode((_splitTransfer$source2 = splitTransfer.sourcePayment) === null || _splitTransfer$source2 === void 0 ? void 0 : _splitTransfer$source2.netAmount, (_splitTransfer$curren2 = splitTransfer.currency) === null || _splitTransfer$curren2 === void 0 ? void 0 : _splitTransfer$curren2.toUpperCase())
|
|
279
257
|
}), neetoCist.isPresent(splitTransfer.discountCode) && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
280
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
258
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
281
259
|
style: "body1",
|
|
282
260
|
weight: "medium",
|
|
283
261
|
children: t("neetoPayments.common.discountCode")
|
|
@@ -285,73 +263,73 @@ var Details = function Details(_ref) {
|
|
|
285
263
|
currency: splitTransfer.currency,
|
|
286
264
|
discountCode: splitTransfer.discountCode
|
|
287
265
|
})]
|
|
288
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
266
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
289
267
|
style: "body1",
|
|
290
268
|
weight: "medium",
|
|
291
269
|
children: t("neetoPayments.common.transferredAmount")
|
|
292
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
270
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
293
271
|
style: "body2",
|
|
294
272
|
children: utils.currencyFormat.withCode(splitTransfer.amount, (_splitTransfer$curren3 = splitTransfer.currency) === null || _splitTransfer$curren3 === void 0 ? void 0 : _splitTransfer$curren3.toUpperCase())
|
|
295
273
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
296
274
|
className: "flex space-x-1",
|
|
297
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
275
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
298
276
|
style: "body1",
|
|
299
277
|
weight: "medium",
|
|
300
278
|
children: t("neetoPayments.common.platformShare")
|
|
301
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
279
|
+
}), /*#__PURE__*/jsxRuntime.jsx(HelpPopover, {
|
|
302
280
|
popoverProps: {
|
|
303
281
|
position: "right"
|
|
304
282
|
},
|
|
305
283
|
description: t("neetoPayments.splitTransferDetails.platformShareDescription"),
|
|
306
284
|
title: t("neetoPayments.splitTransferDetails.platformShareHelpTitle")
|
|
307
285
|
})]
|
|
308
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
286
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
309
287
|
style: "body2",
|
|
310
288
|
children: utils.currencyFormat.withCode(splitTransfer.platformShare, (_splitTransfer$curren4 = splitTransfer.currency) === null || _splitTransfer$curren4 === void 0 ? void 0 : _splitTransfer$curren4.toUpperCase())
|
|
311
289
|
})]
|
|
312
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
290
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
313
291
|
style: "h3",
|
|
314
292
|
children: t("neetoPayments.splitTransferDetails.destinationDetails")
|
|
315
293
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
316
294
|
className: "flex grid-cols-2 flex-col gap-3 lg:grid",
|
|
317
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
295
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
318
296
|
style: "body1",
|
|
319
297
|
weight: "medium",
|
|
320
298
|
children: t("neetoPayments.common.destinationAccountIdentifier")
|
|
321
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
299
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
322
300
|
href: splitTransfer.destinationAccount.dashboardUrl,
|
|
323
301
|
label: splitTransfer.destinationAccount.identifier,
|
|
324
302
|
size: "small",
|
|
325
303
|
style: "link",
|
|
326
304
|
target: "_blank"
|
|
327
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
305
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
328
306
|
style: "body1",
|
|
329
307
|
weight: "medium",
|
|
330
308
|
children: t("neetoPayments.common.destinationAccountName")
|
|
331
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
309
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
332
310
|
style: "body2",
|
|
333
311
|
children: splitTransfer.destinationAccount.userName
|
|
334
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
312
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
335
313
|
style: "body1",
|
|
336
314
|
weight: "medium",
|
|
337
315
|
children: t("neetoPayments.common.destinationAccountEmail")
|
|
338
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
316
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
339
317
|
style: "body2",
|
|
340
318
|
children: splitTransfer.destinationAccount.userEmail
|
|
341
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
319
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
342
320
|
style: "body1",
|
|
343
321
|
weight: "medium",
|
|
344
322
|
children: t("neetoPayments.common.payoutStatus")
|
|
345
323
|
}), /*#__PURE__*/jsxRuntime.jsx(Status, {
|
|
346
324
|
status: (_splitTransfer$destin = splitTransfer.destinationPayout) === null || _splitTransfer$destin === void 0 ? void 0 : _splitTransfer$destin.status,
|
|
347
325
|
type: "payout"
|
|
348
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
326
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
349
327
|
style: "body1",
|
|
350
328
|
weight: "medium",
|
|
351
329
|
children: t("neetoPayments.splitTransferDetails.payoutInitiatedDate")
|
|
352
330
|
}), /*#__PURE__*/jsxRuntime.jsx(Date, {
|
|
353
331
|
date: (_splitTransfer$destin2 = splitTransfer.destinationPayout) === null || _splitTransfer$destin2 === void 0 ? void 0 : _splitTransfer$destin2.createdAt
|
|
354
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
332
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
355
333
|
style: "body1",
|
|
356
334
|
weight: "medium",
|
|
357
335
|
children: t("neetoPayments.splitTransferDetails.payoutArrivalDate")
|
|
@@ -367,12 +345,12 @@ var Details = function Details(_ref) {
|
|
|
367
345
|
var renderIdentifier = ramda.curry(function (setSelectedTransfer, identifier, _ref) {
|
|
368
346
|
var id = _ref.id;
|
|
369
347
|
if (neetoCist.isNotPresent(identifier)) {
|
|
370
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
348
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tooltip, {
|
|
371
349
|
content: i18next.t("neetoPayments.tooltipContent.identifierUnavailable"),
|
|
372
350
|
position: "top",
|
|
373
351
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
374
352
|
className: "text-center",
|
|
375
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
353
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
376
354
|
style: "body2",
|
|
377
355
|
children: i18next.t("neetoPayments.common.notAvailable")
|
|
378
356
|
})
|
|
@@ -381,7 +359,7 @@ var renderIdentifier = ramda.curry(function (setSelectedTransfer, identifier, _r
|
|
|
381
359
|
}
|
|
382
360
|
return /*#__PURE__*/jsxRuntime.jsx(CopyButtonWrapper.CopyButtonWrapper, {
|
|
383
361
|
content: identifier,
|
|
384
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
362
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
385
363
|
label: identifier,
|
|
386
364
|
size: "small",
|
|
387
365
|
style: "link",
|
|
@@ -406,7 +384,7 @@ var renderPlatformPaymentIdentifier = function renderPlatformPaymentIdentifier(_
|
|
|
406
384
|
}
|
|
407
385
|
return /*#__PURE__*/jsxRuntime.jsx(CopyButtonWrapper.CopyButtonWrapper, {
|
|
408
386
|
content: identifier,
|
|
409
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
387
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
410
388
|
href: receiptUrl,
|
|
411
389
|
label: identifier,
|
|
412
390
|
size: "small",
|
|
@@ -420,7 +398,7 @@ var renderDestinationAccountIdentifier = function renderDestinationAccountIdenti
|
|
|
420
398
|
dashboardUrl = _ref3.dashboardUrl;
|
|
421
399
|
return /*#__PURE__*/jsxRuntime.jsx(CopyButtonWrapper.CopyButtonWrapper, {
|
|
422
400
|
content: identifier,
|
|
423
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
401
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
424
402
|
href: dashboardUrl,
|
|
425
403
|
label: identifier,
|
|
426
404
|
size: "small",
|
|
@@ -437,28 +415,28 @@ var renderStatus = ramda.curry(function (type, status) {
|
|
|
437
415
|
});
|
|
438
416
|
var renderDate = function renderDate(date) {
|
|
439
417
|
if (neetoCist.isNotPresent(date)) {
|
|
440
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
418
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tooltip, {
|
|
441
419
|
content: i18next.t("neetoPayments.tooltipContent.dateUnavailable"),
|
|
442
420
|
position: "top",
|
|
443
421
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
444
422
|
className: "text-center",
|
|
445
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
423
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
446
424
|
style: "body2",
|
|
447
425
|
children: i18next.t("neetoPayments.common.notAvailable")
|
|
448
426
|
})
|
|
449
427
|
})
|
|
450
428
|
});
|
|
451
429
|
}
|
|
452
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
430
|
+
return /*#__PURE__*/jsxRuntime.jsx(DateFormat.DateTime, {
|
|
453
431
|
date: date
|
|
454
432
|
});
|
|
455
433
|
};
|
|
456
434
|
var renderPlatformShare = function renderPlatformShare(amount) {
|
|
457
435
|
if (neetoCist.isNotPresent(amount)) {
|
|
458
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
436
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tooltip, {
|
|
459
437
|
content: i18next.t("neetoPayments.tooltipContent.platformShareUnavailable"),
|
|
460
438
|
position: "top",
|
|
461
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
439
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
462
440
|
style: "body2",
|
|
463
441
|
children: i18next.t("neetoPayments.common.notCalculated")
|
|
464
442
|
})
|
|
@@ -541,7 +519,7 @@ var getDefaultColumns = function getDefaultColumns(setSelectedTransfer) {
|
|
|
541
519
|
};
|
|
542
520
|
|
|
543
521
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
544
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) {
|
|
522
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
545
523
|
var buildSearchProps = function buildSearchProps(searchProps, searchTerm) {
|
|
546
524
|
return ramda.mergeDeepWith(ramda.concat, SEARCH_PROPS, ramda.mergeLeft({
|
|
547
525
|
value: searchTerm.trim()
|
|
@@ -586,7 +564,7 @@ var List = function List(_ref) {
|
|
|
586
564
|
pageProperties = _ref.pageProperties,
|
|
587
565
|
handleTablePagination = _ref.handleTablePagination;
|
|
588
566
|
var _useState = React.useState(INITIAL_TRANSFER_DETAILS),
|
|
589
|
-
_useState2 =
|
|
567
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
590
568
|
selectedTransfer = _useState2[0],
|
|
591
569
|
setSelectedTransfer = _useState2[1];
|
|
592
570
|
var _useTranslation = reactI18next.useTranslation(),
|
|
@@ -617,7 +595,7 @@ var List = function List(_ref) {
|
|
|
617
595
|
if (neetoCist.isNotPresent(splitTransfers)) {
|
|
618
596
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
619
597
|
className: "flex h-full w-full items-center justify-center",
|
|
620
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
598
|
+
children: /*#__PURE__*/jsxRuntime.jsx(NoData, {
|
|
621
599
|
title: tab === SPLIT_TRANSFERS_DASHBOARD_TAB.all ? t("neetoPayments.emptyState.splitTransfers") : t("neetoPayments.emptyState.splitTransfersWithStatus", {
|
|
622
600
|
status: tab
|
|
623
601
|
})
|
|
@@ -625,9 +603,9 @@ var List = function List(_ref) {
|
|
|
625
603
|
});
|
|
626
604
|
}
|
|
627
605
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
628
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
606
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(TableWrapper, {
|
|
629
607
|
hasPagination: splitTransfersCount > (pageProperties === null || pageProperties === void 0 ? void 0 : pageProperties.pageSize),
|
|
630
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
608
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Table, {
|
|
631
609
|
fixedHeight: true,
|
|
632
610
|
allowRowClick: false,
|
|
633
611
|
columnData: visibleColumns,
|
|
@@ -667,7 +645,7 @@ var TopSection = function TopSection(_ref) {
|
|
|
667
645
|
payableEntityColumns = _ref.payableEntityColumns,
|
|
668
646
|
setIsExportModalOpen = _ref.setIsExportModalOpen;
|
|
669
647
|
var _useState = React.useState(false),
|
|
670
|
-
_useState2 =
|
|
648
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
671
649
|
isFilterPaneOpen = _useState2[0],
|
|
672
650
|
setIsFilterPaneOpen = _useState2[1];
|
|
673
651
|
var _useTranslation = reactI18next.useTranslation(),
|
|
@@ -696,15 +674,15 @@ var TopSection = function TopSection(_ref) {
|
|
|
696
674
|
history.push(utils.buildUrl(window.location.pathname, ramda.mergeLeft(newParams, queryParams)));
|
|
697
675
|
};
|
|
698
676
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
699
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
677
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Header, {
|
|
700
678
|
title: t("neetoPayments.title.splitTransfers"),
|
|
701
679
|
searchProps: isFilterButtonVisible && {
|
|
702
680
|
placeholder: searchKeywordProps.placeholder,
|
|
703
681
|
className: "w-80"
|
|
704
682
|
}
|
|
705
|
-
}), constants.shouldTabsVisible(views) && /*#__PURE__*/jsxRuntime.jsx(
|
|
683
|
+
}), constants.shouldTabsVisible(views) && /*#__PURE__*/jsxRuntime.jsx(Tab, {
|
|
706
684
|
children: Object.keys(SPLIT_TRANSFERS_DASHBOARD_TAB).map(function (item) {
|
|
707
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
685
|
+
return /*#__PURE__*/jsxRuntime.jsx(Tab.Item, {
|
|
708
686
|
active: tab === item,
|
|
709
687
|
onClick: function onClick() {
|
|
710
688
|
return handleTabChange(item);
|
|
@@ -712,9 +690,9 @@ var TopSection = function TopSection(_ref) {
|
|
|
712
690
|
children: t("neetoPayments.common.".concat(item))
|
|
713
691
|
}, item);
|
|
714
692
|
})
|
|
715
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
693
|
+
}), /*#__PURE__*/jsxRuntime.jsx(SubHeader, {
|
|
716
694
|
className: "mt-4",
|
|
717
|
-
leftActionBlock: splitTransfersCountVisible && /*#__PURE__*/jsxRuntime.jsx(
|
|
695
|
+
leftActionBlock: splitTransfersCountVisible && /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
718
696
|
className: "neeto-ui-gray-800 mr-2 font-semibold",
|
|
719
697
|
component: "h4",
|
|
720
698
|
children: tab === SPLIT_TRANSFERS_DASHBOARD_TAB.all ? t("neetoPayments.countOf.splitTransfer", {
|
|
@@ -725,12 +703,12 @@ var TopSection = function TopSection(_ref) {
|
|
|
725
703
|
})
|
|
726
704
|
}),
|
|
727
705
|
rightActionBlock: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
728
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
706
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(FiltersBar, {
|
|
729
707
|
columns: filterableColumns,
|
|
730
708
|
keyword: searchKeywordProps,
|
|
731
709
|
setIsPaneOpen: setIsFilterPaneOpen,
|
|
732
710
|
onChange: handleFiltersChange
|
|
733
|
-
}), isFilterButtonVisible && /*#__PURE__*/jsxRuntime.jsx(
|
|
711
|
+
}), isFilterButtonVisible && /*#__PURE__*/jsxRuntime.jsx(SubHeader.RightBlock, {
|
|
734
712
|
columnsButtonProps: {
|
|
735
713
|
columnData: ramda.concat(getDefaultColumns(), payableEntityColumns).map(ramda.modify("dataIndex", constants.processDataIndex)),
|
|
736
714
|
fixedColumns: constants.UN_HIDEABLE_COLUMNS,
|
|
@@ -755,7 +733,7 @@ var TopSection = function TopSection(_ref) {
|
|
|
755
733
|
};
|
|
756
734
|
|
|
757
735
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
758
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
736
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
759
737
|
var SplitTransfersDashboard = function SplitTransfersDashboard(_ref) {
|
|
760
738
|
var searchProps = _ref.searchProps,
|
|
761
739
|
payableEntityColumns = _ref.payableEntityColumns;
|
|
@@ -765,19 +743,19 @@ var SplitTransfersDashboard = function SplitTransfersDashboard(_ref) {
|
|
|
765
743
|
var filterableColumns = buildFilterColumns(payableEntityColumns);
|
|
766
744
|
var searchKeywordProps = buildSearchProps(searchProps, searchTerm);
|
|
767
745
|
var _useState = React.useState(constants.DEFAULT_SORT_PROPERTIES),
|
|
768
|
-
_useState2 =
|
|
746
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
769
747
|
sortProperties = _useState2[0],
|
|
770
748
|
setSortProperties = _useState2[1];
|
|
771
749
|
var _useState3 = React.useState(constants.DEFAULT_PAGE_VALUES),
|
|
772
|
-
_useState4 =
|
|
750
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
773
751
|
pageProperties = _useState4[0],
|
|
774
752
|
setPageProperties = _useState4[1];
|
|
775
753
|
var _useState5 = React.useState(false),
|
|
776
|
-
_useState6 =
|
|
754
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
777
755
|
isExportModalOpen = _useState6[0],
|
|
778
756
|
setIsExportModalOpen = _useState6[1];
|
|
779
|
-
var _useState7 = React.useState(utils$1.buildFiltersFromURL([].concat(
|
|
780
|
-
_useState8 =
|
|
757
|
+
var _useState7 = React.useState(utils$1.buildFiltersFromURL([].concat(_toConsumableArray(filterableColumns), [searchKeywordProps]))),
|
|
758
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
781
759
|
filters = _useState8[0],
|
|
782
760
|
setFilters = _useState8[1];
|
|
783
761
|
var history = reactRouterDom.useHistory();
|
|
@@ -815,7 +793,7 @@ var SplitTransfersDashboard = function SplitTransfersDashboard(_ref) {
|
|
|
815
793
|
if (isSplitTransfersLoading) {
|
|
816
794
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
817
795
|
className: "flex h-full w-full items-center justify-center",
|
|
818
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
796
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
|
|
819
797
|
});
|
|
820
798
|
}
|
|
821
799
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|