@bigbinary/neeto-payments-frontend 2.2.0 → 2.2.1
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 +367 -302
- package/dist/AccountsDashboard.js.map +1 -1
- package/dist/Dashboard.js +531 -440
- package/dist/Dashboard.js.map +1 -1
- package/dist/ExportModal-47096785.js +693 -0
- package/dist/ExportModal-47096785.js.map +1 -0
- package/dist/IdentifierButton-350fcc55.js +19 -0
- package/dist/IdentifierButton-350fcc55.js.map +1 -0
- package/dist/PaymentKindRestrictionAlert.js +18 -12
- package/dist/PaymentKindRestrictionAlert.js.map +1 -1
- package/dist/PayoutsDashboard.js +371 -314
- package/dist/PayoutsDashboard.js.map +1 -1
- package/dist/PayoutsPage.js +134 -111
- package/dist/PayoutsPage.js.map +1 -1
- package/dist/RazorpayDashboard.js +182 -171
- package/dist/RazorpayDashboard.js.map +1 -1
- package/dist/RazorpayPaymentButton.js +92 -66
- package/dist/RazorpayPaymentButton.js.map +1 -1
- package/dist/StripeConnect.js +359 -318
- package/dist/StripeConnect.js.map +1 -1
- package/dist/UpiConnect.js +128 -106
- package/dist/UpiConnect.js.map +1 -1
- package/dist/UpiMarkAsPaidButton.js +22 -21
- package/dist/UpiMarkAsPaidButton.js.map +1 -1
- package/dist/UpiPayment.js +75 -63
- package/dist/UpiPayment.js.map +1 -1
- package/dist/V2PaymentsDashboard.js +183 -175
- package/dist/V2PaymentsDashboard.js.map +1 -1
- package/dist/_commonjsHelpers-ae89b920.js +6 -0
- package/dist/_commonjsHelpers-ae89b920.js.map +1 -0
- package/dist/buildStripeTransactionLink.js +2 -2
- package/dist/cjs/AccountsDashboard.js +368 -303
- package/dist/cjs/AccountsDashboard.js.map +1 -1
- package/dist/cjs/Dashboard.js +532 -441
- package/dist/cjs/Dashboard.js.map +1 -1
- package/dist/cjs/ExportModal-8f61f79a.js +717 -0
- package/dist/cjs/ExportModal-8f61f79a.js.map +1 -0
- package/dist/cjs/IdentifierButton-3162ff10.js +25 -0
- package/dist/cjs/IdentifierButton-3162ff10.js.map +1 -0
- package/dist/cjs/PaymentKindRestrictionAlert.js +18 -12
- package/dist/cjs/PaymentKindRestrictionAlert.js.map +1 -1
- package/dist/cjs/PayoutsDashboard.js +372 -315
- package/dist/cjs/PayoutsDashboard.js.map +1 -1
- package/dist/cjs/PayoutsPage.js +134 -111
- package/dist/cjs/PayoutsPage.js.map +1 -1
- package/dist/cjs/RazorpayDashboard.js +183 -172
- package/dist/cjs/RazorpayDashboard.js.map +1 -1
- package/dist/cjs/RazorpayPaymentButton.js +92 -66
- package/dist/cjs/RazorpayPaymentButton.js.map +1 -1
- package/dist/cjs/StripeConnect.js +356 -315
- package/dist/cjs/StripeConnect.js.map +1 -1
- package/dist/cjs/UpiConnect.js +129 -107
- package/dist/cjs/UpiConnect.js.map +1 -1
- package/dist/cjs/UpiMarkAsPaidButton.js +22 -21
- package/dist/cjs/UpiMarkAsPaidButton.js.map +1 -1
- package/dist/cjs/UpiPayment.js +75 -63
- package/dist/cjs/UpiPayment.js.map +1 -1
- package/dist/cjs/V2PaymentsDashboard.js +184 -176
- package/dist/cjs/V2PaymentsDashboard.js.map +1 -1
- package/dist/cjs/_commonjsHelpers-755157d3.js +8 -0
- package/dist/cjs/_commonjsHelpers-755157d3.js.map +1 -0
- package/dist/cjs/buildStripeTransactionLink.js +1 -1
- package/dist/cjs/constants.js +12 -12
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/defineProperty-f3094d6c.js +45 -0
- package/dist/cjs/defineProperty-f3094d6c.js.map +1 -0
- package/dist/cjs/exportChannel-2d528a51.js +45 -0
- package/dist/cjs/{exportChannel-1c3103ef.js.map → exportChannel-2d528a51.js.map} +1 -1
- package/dist/cjs/{index-b7badf96.js → index-1ce7ebb8.js} +8 -8
- package/dist/cjs/{index-b7badf96.js.map → index-1ce7ebb8.js.map} +1 -1
- package/dist/cjs/index-6f9eb83b.js +387 -0
- package/dist/cjs/index-6f9eb83b.js.map +1 -0
- package/dist/cjs/index-8a575dd1.js +47 -0
- package/dist/cjs/index-8a575dd1.js.map +1 -0
- package/dist/cjs/index.js +19 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/objectWithoutProperties-2fed2d7d.js +33 -0
- package/dist/cjs/objectWithoutProperties-2fed2d7d.js.map +1 -0
- package/dist/cjs/{queryConstants-45f84f3e.js → queryConstants-23a3ce5c.js} +2 -2
- package/dist/cjs/{queryConstants-45f84f3e.js.map → queryConstants-23a3ce5c.js.map} +1 -1
- package/dist/cjs/renderFunctions-c4b0ee83.js +183 -0
- package/dist/cjs/renderFunctions-c4b0ee83.js.map +1 -0
- package/dist/cjs/slicedToArray-f320d9e7.js +61 -0
- package/dist/cjs/slicedToArray-f320d9e7.js.map +1 -0
- package/dist/cjs/toConsumableArray-9abb3858.js +22 -0
- package/dist/cjs/toConsumableArray-9abb3858.js.map +1 -0
- package/dist/cjs/{useConnectApi-a80cbf88.js → useConnectApi-c73ee8f2.js} +106 -85
- package/dist/cjs/useConnectApi-c73ee8f2.js.map +1 -0
- package/dist/cjs/useFiltersAndPagination-16c3be3f.js +315 -0
- package/dist/cjs/useFiltersAndPagination-16c3be3f.js.map +1 -0
- package/dist/cjs/usePaymentApi-e7201415.js +57 -0
- package/dist/cjs/usePaymentApi-e7201415.js.map +1 -0
- package/dist/cjs/usePaymentsApi-f53c5543.js +45 -0
- package/dist/cjs/usePaymentsApi-f53c5543.js.map +1 -0
- package/dist/cjs/usePlatformApi-80d57b24.js +149 -0
- package/dist/cjs/usePlatformApi-80d57b24.js.map +1 -0
- package/dist/cjs/useRazorpayPayment.js +70 -48
- package/dist/cjs/useRazorpayPayment.js.map +1 -1
- package/dist/cjs/useStripePromise.js +41 -16
- package/dist/cjs/useStripePromise.js.map +1 -1
- package/dist/constants.js +12 -12
- package/dist/constants.js.map +1 -1
- package/dist/defineProperty-e90a259c.js +43 -0
- package/dist/defineProperty-e90a259c.js.map +1 -0
- package/dist/exportChannel-e33c4c66.js +38 -0
- package/dist/{exportChannel-23e4628c.js.map → exportChannel-e33c4c66.js.map} +1 -1
- package/dist/index-1fdfa272.js +384 -0
- package/dist/index-1fdfa272.js.map +1 -0
- package/dist/{index-1aedc364.js → index-adf12baa.js} +8 -8
- package/dist/{index-1aedc364.js.map → index-adf12baa.js.map} +1 -1
- package/dist/index-f03e9537.js +38 -0
- package/dist/index-f03e9537.js.map +1 -0
- package/dist/index.js +19 -13
- package/dist/index.js.map +1 -1
- package/dist/objectWithoutProperties-a0edb288.js +31 -0
- package/dist/objectWithoutProperties-a0edb288.js.map +1 -0
- package/dist/{queryConstants-7d91832f.js → queryConstants-4e28efc6.js} +2 -2
- package/dist/{queryConstants-7d91832f.js.map → queryConstants-4e28efc6.js.map} +1 -1
- package/dist/renderFunctions-fa6460fe.js +164 -0
- package/dist/renderFunctions-fa6460fe.js.map +1 -0
- package/dist/slicedToArray-b4278ecd.js +57 -0
- package/dist/slicedToArray-b4278ecd.js.map +1 -0
- package/dist/toConsumableArray-1cc38429.js +20 -0
- package/dist/toConsumableArray-1cc38429.js.map +1 -0
- package/dist/{useConnectApi-36a92bd8.js → useConnectApi-47bd1d50.js} +107 -86
- package/dist/useConnectApi-47bd1d50.js.map +1 -0
- package/dist/useFiltersAndPagination-0f960298.js +301 -0
- package/dist/useFiltersAndPagination-0f960298.js.map +1 -0
- package/dist/usePaymentApi-570b3ae4.js +50 -0
- package/dist/usePaymentApi-570b3ae4.js.map +1 -0
- package/dist/usePaymentsApi-e95b2517.js +38 -0
- package/dist/usePaymentsApi-e95b2517.js.map +1 -0
- package/dist/usePlatformApi-f0fd0171.js +137 -0
- package/dist/usePlatformApi-f0fd0171.js.map +1 -0
- package/dist/useRazorpayPayment.js +70 -48
- package/dist/useRazorpayPayment.js.map +1 -1
- package/dist/useStripePromise.js +41 -16
- package/dist/useStripePromise.js.map +1 -1
- package/package.json +1 -1
- package/dist/ExportModal-23f4fa34.js +0 -645
- package/dist/ExportModal-23f4fa34.js.map +0 -1
- package/dist/IdentifierButton-81450a91.js +0 -20
- package/dist/IdentifierButton-81450a91.js.map +0 -1
- package/dist/cjs/ExportModal-b94a33bf.js +0 -669
- package/dist/cjs/ExportModal-b94a33bf.js.map +0 -1
- package/dist/cjs/IdentifierButton-c5f8ded9.js +0 -26
- package/dist/cjs/IdentifierButton-c5f8ded9.js.map +0 -1
- package/dist/cjs/exportChannel-1c3103ef.js +0 -39
- package/dist/cjs/extends-1b35a664.js +0 -19
- package/dist/cjs/extends-1b35a664.js.map +0 -1
- package/dist/cjs/index-e317e851.js +0 -41
- package/dist/cjs/index-e317e851.js.map +0 -1
- package/dist/cjs/renderFunctions-621282bb.js +0 -165
- package/dist/cjs/renderFunctions-621282bb.js.map +0 -1
- package/dist/cjs/useConnectApi-a80cbf88.js.map +0 -1
- package/dist/cjs/useFiltersAndPagination-98eb45d6.js +0 -276
- package/dist/cjs/useFiltersAndPagination-98eb45d6.js.map +0 -1
- package/dist/cjs/usePaymentApi-77803596.js +0 -48
- package/dist/cjs/usePaymentApi-77803596.js.map +0 -1
- package/dist/cjs/usePaymentsApi-239e8d8a.js +0 -36
- package/dist/cjs/usePaymentsApi-239e8d8a.js.map +0 -1
- package/dist/cjs/usePlatformApi-6740cf80.js +0 -117
- package/dist/cjs/usePlatformApi-6740cf80.js.map +0 -1
- package/dist/exportChannel-23e4628c.js +0 -32
- package/dist/extends-093996c9.js +0 -17
- package/dist/extends-093996c9.js.map +0 -1
- package/dist/index-385083ef.js +0 -32
- package/dist/index-385083ef.js.map +0 -1
- package/dist/renderFunctions-ac5ef9d0.js +0 -146
- package/dist/renderFunctions-ac5ef9d0.js.map +0 -1
- package/dist/useConnectApi-36a92bd8.js.map +0 -1
- package/dist/useFiltersAndPagination-8813cdb2.js +0 -262
- package/dist/useFiltersAndPagination-8813cdb2.js.map +0 -1
- package/dist/usePaymentApi-edc45d99.js +0 -41
- package/dist/usePaymentApi-edc45d99.js.map +0 -1
- package/dist/usePaymentsApi-663c4058.js +0 -29
- package/dist/usePaymentsApi-663c4058.js.map +0 -1
- package/dist/usePlatformApi-3faabc82.js +0 -105
- package/dist/usePlatformApi-3faabc82.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2
|
+
if (source == null) return {};
|
|
3
|
+
var target = {};
|
|
4
|
+
var sourceKeys = Object.keys(source);
|
|
5
|
+
var key, i;
|
|
6
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
7
|
+
key = sourceKeys[i];
|
|
8
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
9
|
+
target[key] = source[key];
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function _objectWithoutProperties(source, excluded) {
|
|
15
|
+
if (source == null) return {};
|
|
16
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
17
|
+
var key, i;
|
|
18
|
+
if (Object.getOwnPropertySymbols) {
|
|
19
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
20
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
21
|
+
key = sourceSymbolKeys[i];
|
|
22
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
23
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
24
|
+
target[key] = source[key];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { _objectWithoutProperties as _ };
|
|
31
|
+
//# sourceMappingURL=objectWithoutProperties-a0edb288.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectWithoutProperties-a0edb288.js","sources":["../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}"],"names":["objectWithoutPropertiesLoose"],"mappings":"AAAe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,IAAI,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvC,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AACb,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC1C,IAAI,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AACxB,IAAI,IAAI,QAAQ,CAAC,OA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 +18,4 @@ const QUERY_KEYS = {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { QUERY_KEYS as Q };
|
|
21
|
-
//# sourceMappingURL=queryConstants-
|
|
21
|
+
//# sourceMappingURL=queryConstants-4e28efc6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryConstants-
|
|
1
|
+
{"version":3,"file":"queryConstants-4e28efc6.js","sources":["../app/javascript/src/common/queryConstants.js"],"sourcesContent":["export const QUERY_KEYS = {\n STRIPE_ACCOUNT_DETAILS: \"stripe-account-details\",\n STRIPE_PLATFORM_ACCOUNT_DETAILS: \"stripe-platform-account-details\",\n TRANSACTIONS_LIST: \"transactions-list\",\n PLATFORM_TRANSACTIONS_LIST: \"platform-transactions-list\",\n PAYMENTS_FILTER_OPTIONS: \"payments-filter-options\",\n REFUNDS_LIST: \"refunds-list\",\n SPLITS_LIST: \"platform-splits-list\",\n CONNECTED_ACCOUNT: \"connected-account\",\n STRIPE_ACCOUNTS_LIST: \"stripe-accounts-list\",\n STRIPE_PLATFORM_TRANSACTION: \"stripe-platform-transaction\",\n STRIPE_REFUNDS_LIST: \"stripe-refunds-list\",\n STRIPE_PAYOUTS_LIST: \"stripe-payouts-list\",\n STRIPE_PAYOUT: \"stripe-payout\",\n RAZORPAY_PAYMENTS_LIST: \"razorpay-payment-list\",\n RAZORPAY_ACCOUNT_DETAILS: \"razorpay-account-details\",\n V2_PAYMENTS: \"v2-payments\",\n};\n"],"names":["QUERY_KEYS","STRIPE_ACCOUNT_DETAILS","STRIPE_PLATFORM_ACCOUNT_DETAILS","TRANSACTIONS_LIST","PLATFORM_TRANSACTIONS_LIST","PAYMENTS_FILTER_OPTIONS","REFUNDS_LIST","SPLITS_LIST","CONNECTED_ACCOUNT","STRIPE_ACCOUNTS_LIST","STRIPE_PLATFORM_TRANSACTION","STRIPE_REFUNDS_LIST","STRIPE_PAYOUTS_LIST","STRIPE_PAYOUT","RAZORPAY_PAYMENTS_LIST","RAZORPAY_ACCOUNT_DETAILS","V2_PAYMENTS"],"mappings":"AAAO,IAAMA,UAAU,GAAG;AACxBC,EAAAA,sBAAsB,EAAE,wBAAwB;AAChDC,EAAAA,+BAA+B,EAAE,iCAAiC;AAClEC,EAAAA,iBAAiB,EAAE,mBAAmB;AACtCC,EAAAA,0BAA0B,EAAE,4BAA4B;AACxDC,EAAAA,uBAAuB,EAAE,yBAAyB;AAClDC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,WAAW,EAAE,sBAAsB;AACnCC,EAAAA,iBAAiB,EAAE,mBAAmB;AACtCC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,2BAA2B,EAAE,6BAA6B;AAC1DC,EAAAA,mBAAmB,EAAE,qBAAqB;AAC1CC,EAAAA,mBAAmB,EAAE,qBAAqB;AAC1CC,EAAAA,aAAa,EAAE,eAAe;AAC9BC,EAAAA,sBAAsB,EAAE,uBAAuB;AAC/CC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,WAAW,EAAE,aAAA;AACf;;;;"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-e90a259c.js';
|
|
2
|
+
import { QueryClient, QueryCache, keepPreviousData, QueryClientProvider } from '@tanstack/react-query';
|
|
3
|
+
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
|
4
|
+
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
import { camelToSnakeCase, isPresent, snakeToCamelCase } from '@bigbinary/neeto-cist';
|
|
7
|
+
import { isEmpty, assoc, modify, concat, curry } from 'ramda';
|
|
8
|
+
import { DEFAULT_PAGE_VALUES, TAG_STYLE, DEFAULT_TAG_STYLE } from './constants.js';
|
|
9
|
+
import { t as t$1 } from 'i18next';
|
|
10
|
+
import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
|
|
11
|
+
import Button from '@bigbinary/neetoui/Button';
|
|
12
|
+
import Tag from '@bigbinary/neetoui/Tag';
|
|
13
|
+
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
14
|
+
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
15
|
+
|
|
16
|
+
/* eslint-disable @bigbinary/neeto/api-connector-name-should-match-filename */
|
|
17
|
+
var queryClient = new QueryClient({
|
|
18
|
+
queryCache: new QueryCache(),
|
|
19
|
+
defaultOptions: {
|
|
20
|
+
queries: {
|
|
21
|
+
staleTime: DEFAULT_STALE_TIME,
|
|
22
|
+
placeholderData: keepPreviousData
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
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; }
|
|
28
|
+
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; }
|
|
29
|
+
var withReactQuery = function withReactQuery(Component) {
|
|
30
|
+
var QueryWrapper = function QueryWrapper(props) {
|
|
31
|
+
return /*#__PURE__*/jsxs(QueryClientProvider, {
|
|
32
|
+
client: queryClient,
|
|
33
|
+
children: [/*#__PURE__*/jsx(Component, _objectSpread$1({}, props)), /*#__PURE__*/jsx(ReactQueryDevtools, {
|
|
34
|
+
initialIsOpen: false,
|
|
35
|
+
position: "bottom"
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
return QueryWrapper;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
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; }
|
|
44
|
+
var processSortProperties = function processSortProperties(sortProperties) {
|
|
45
|
+
if (sortProperties.sortBy === "payment_amount") {
|
|
46
|
+
return assoc("sortBy", "neeto_payments_engine_stripe_transactions.amount", sortProperties);
|
|
47
|
+
}
|
|
48
|
+
if (sortProperties.sortBy === "email" || sortProperties.sortBy === "first_name") {
|
|
49
|
+
return modify("sortBy", concat("users."), sortProperties);
|
|
50
|
+
}
|
|
51
|
+
if (sortProperties.sortBy === "payable,ends_at") {
|
|
52
|
+
return assoc("sortBy", "bookings.ends_at", sortProperties);
|
|
53
|
+
}
|
|
54
|
+
return sortProperties;
|
|
55
|
+
};
|
|
56
|
+
var buildDefaultPageProperties = function buildDefaultPageProperties(tabs) {
|
|
57
|
+
return tabs.reduce(function (pageProperties, tab) {
|
|
58
|
+
return _objectSpread(_objectSpread({}, pageProperties), {}, _defineProperty({}, tab, DEFAULT_PAGE_VALUES));
|
|
59
|
+
}, {});
|
|
60
|
+
};
|
|
61
|
+
var buildPayload = function buildPayload(_ref) {
|
|
62
|
+
var _pageProperties$tab, _pageProperties$tab2;
|
|
63
|
+
var tab = _ref.tab,
|
|
64
|
+
filters = _ref.filters,
|
|
65
|
+
pageProperties = _ref.pageProperties,
|
|
66
|
+
_ref$sortProperties = _ref.sortProperties,
|
|
67
|
+
sortProperties = _ref$sortProperties === void 0 ? {} : _ref$sortProperties,
|
|
68
|
+
_ref$payoutId = _ref.payoutId,
|
|
69
|
+
payoutId = _ref$payoutId === void 0 ? null : _ref$payoutId;
|
|
70
|
+
return _objectSpread({
|
|
71
|
+
tab: camelToSnakeCase(tab),
|
|
72
|
+
payoutId: payoutId,
|
|
73
|
+
page: (_pageProperties$tab = pageProperties[tab]) === null || _pageProperties$tab === void 0 ? void 0 : _pageProperties$tab.page,
|
|
74
|
+
pageSize: (_pageProperties$tab2 = pageProperties[tab]) === null || _pageProperties$tab2 === void 0 ? void 0 : _pageProperties$tab2.pageSize,
|
|
75
|
+
filters: filters
|
|
76
|
+
}, processSortProperties(sortProperties));
|
|
77
|
+
};
|
|
78
|
+
var buildRowData = function buildRowData(_ref2) {
|
|
79
|
+
var data = _ref2.data,
|
|
80
|
+
_ref2$pageProperties = _ref2.pageProperties,
|
|
81
|
+
pageProperties = _ref2$pageProperties === void 0 ? {} : _ref2$pageProperties,
|
|
82
|
+
_ref2$tab = _ref2.tab,
|
|
83
|
+
tab = _ref2$tab === void 0 ? "all" : _ref2$tab;
|
|
84
|
+
return data.map(function (element, index) {
|
|
85
|
+
var _pageProperties$tab3, _pageProperties$tab4;
|
|
86
|
+
return _objectSpread(_objectSpread({}, element), {}, {
|
|
87
|
+
payable: element.payable,
|
|
88
|
+
identifier: element,
|
|
89
|
+
id: isEmpty(pageProperties) ? index + 1 : ((_pageProperties$tab3 = pageProperties[tab]) === null || _pageProperties$tab3 === void 0 ? void 0 : _pageProperties$tab3.pageSize) * (((_pageProperties$tab4 = pageProperties[tab]) === null || _pageProperties$tab4 === void 0 ? void 0 : _pageProperties$tab4.page) - 1) + index + 1
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
95
|
+
|
|
96
|
+
var css = ".ant-table-cell-row-hover .identifier-copy-button{visibility:visible!important}";
|
|
97
|
+
n(css,{});
|
|
98
|
+
|
|
99
|
+
var CopyButtonWrapper = function CopyButtonWrapper(_ref) {
|
|
100
|
+
var content = _ref.content,
|
|
101
|
+
children = _ref.children;
|
|
102
|
+
return /*#__PURE__*/jsxs("div", {
|
|
103
|
+
className: "flex items-center space-x-2",
|
|
104
|
+
children: [children, isPresent(content) && /*#__PURE__*/jsx("div", {
|
|
105
|
+
className: "identifier-copy-button invisible",
|
|
106
|
+
children: /*#__PURE__*/jsx(CopyToClipboardButton, {
|
|
107
|
+
size: "small",
|
|
108
|
+
style: "text",
|
|
109
|
+
value: content
|
|
110
|
+
})
|
|
111
|
+
})]
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
var getTagStyle = function getTagStyle(status) {
|
|
116
|
+
return TAG_STYLE[status] || DEFAULT_TAG_STYLE;
|
|
117
|
+
};
|
|
118
|
+
var preProcessStatus = function preProcessStatus(type, status) {
|
|
119
|
+
var record = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
120
|
+
if (type === "transaction" || type === "payment") {
|
|
121
|
+
return record.isRefunded ? "refunded" : status;
|
|
122
|
+
}
|
|
123
|
+
if (status === "voided") {
|
|
124
|
+
return "incomplete";
|
|
125
|
+
}
|
|
126
|
+
return snakeToCamelCase(status);
|
|
127
|
+
};
|
|
128
|
+
var renderStatus = curry(function (type, status, record) {
|
|
129
|
+
var processedStatus = preProcessStatus(type, status, record);
|
|
130
|
+
return /*#__PURE__*/jsx(Tooltip, {
|
|
131
|
+
content: t$1("neetoPayments.tooltipContent.".concat(type, ".").concat(processedStatus)),
|
|
132
|
+
position: "top",
|
|
133
|
+
children: /*#__PURE__*/jsx("div", {
|
|
134
|
+
className: "w-fit",
|
|
135
|
+
children: /*#__PURE__*/jsx(Tag, {
|
|
136
|
+
label: t$1("neetoPayments.tagLabels.".concat(type, ".").concat(processedStatus)),
|
|
137
|
+
style: getTagStyle(processedStatus)
|
|
138
|
+
})
|
|
139
|
+
})
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
var renderFullName = function renderFullName(_, _ref) {
|
|
143
|
+
var firstName = _ref.firstName,
|
|
144
|
+
lastName = _ref.lastName;
|
|
145
|
+
return "".concat(firstName, " ").concat(lastName);
|
|
146
|
+
};
|
|
147
|
+
var renderEmail = function renderEmail(email) {
|
|
148
|
+
return /*#__PURE__*/jsx(CopyButtonWrapper, {
|
|
149
|
+
content: email,
|
|
150
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
151
|
+
href: "mailto:".concat(email),
|
|
152
|
+
label: email,
|
|
153
|
+
style: "link"
|
|
154
|
+
})
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
var renderDate = function renderDate(date) {
|
|
158
|
+
return /*#__PURE__*/jsx(DateFormat.DateTime, {
|
|
159
|
+
date: date
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export { CopyButtonWrapper as C, renderFullName as a, renderEmail as b, renderDate as c, buildDefaultPageProperties as d, buildPayload as e, buildRowData as f, n, renderStatus as r, withReactQuery as w };
|
|
164
|
+
//# sourceMappingURL=renderFunctions-fa6460fe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderFunctions-fa6460fe.js","sources":["../app/javascript/src/apis/queryClient.js","../app/javascript/src/components/Common/withReactQuery.jsx","../app/javascript/src/utils/dashboard.js","../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../app/javascript/src/components/Common/CopyButtonWrapper.jsx","../app/javascript/src/utils/renderFunctions.jsx"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/api-connector-name-should-match-filename */\n/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */\nimport {\n QueryCache,\n QueryClient,\n keepPreviousData,\n} from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\n\nconst queryClient = new QueryClient({\n queryCache: new QueryCache(),\n defaultOptions: {\n queries: {\n staleTime: DEFAULT_STALE_TIME,\n placeholderData: keepPreviousData,\n },\n },\n});\n\nexport default queryClient;\n","/* eslint-disable sonarjs/prefer-immediate-return */\n/* eslint-disable @bigbinary/neeto/file-name-and-export-name-standards */\nimport { QueryClientProvider } from \"@tanstack/react-query\";\nimport { ReactQueryDevtools } from \"@tanstack/react-query-devtools\";\n\nimport queryClient from \"apis/queryClient\";\n\nconst withReactQuery = Component => {\n const QueryWrapper = props => (\n <QueryClientProvider client={queryClient}>\n <Component {...props} />\n <ReactQueryDevtools initialIsOpen={false} position=\"bottom\" />\n </QueryClientProvider>\n );\n\n return QueryWrapper;\n};\n\nexport default withReactQuery;\n","import { camelToSnakeCase } from \"neetocist\";\nimport { assoc, concat, isEmpty, modify } from \"ramda\";\n\nimport { DEFAULT_PAGE_VALUES } from \"src/constants\";\n\nconst processSortProperties = sortProperties => {\n if (sortProperties.sortBy === \"payment_amount\") {\n return assoc(\n \"sortBy\",\n \"neeto_payments_engine_stripe_transactions.amount\",\n sortProperties\n );\n }\n\n if (\n sortProperties.sortBy === \"email\" ||\n sortProperties.sortBy === \"first_name\"\n ) {\n return modify(\"sortBy\", concat(\"users.\"), sortProperties);\n }\n\n if (sortProperties.sortBy === \"payable,ends_at\") {\n return assoc(\"sortBy\", \"bookings.ends_at\", sortProperties);\n }\n\n return sortProperties;\n};\n\nexport const buildDefaultPageProperties = tabs =>\n tabs.reduce(\n (pageProperties, tab) => ({\n ...pageProperties,\n [tab]: DEFAULT_PAGE_VALUES,\n }),\n {}\n );\n\nexport const buildPayload = ({\n tab,\n filters,\n pageProperties,\n sortProperties = {},\n payoutId = null,\n}) => ({\n tab: camelToSnakeCase(tab),\n payoutId,\n page: pageProperties[tab]?.page,\n pageSize: pageProperties[tab]?.pageSize,\n filters,\n ...processSortProperties(sortProperties),\n});\n\nexport const buildRowData = ({ data, pageProperties = {}, tab = \"all\" }) =>\n data.map((element, index) => ({\n ...element,\n payable: element.payable,\n identifier: element,\n id: isEmpty(pageProperties)\n ? index + 1\n : pageProperties[tab]?.pageSize * (pageProperties[tab]?.page - 1) +\n index +\n 1,\n }));\n","var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n","import { isPresent } from \"neetocist\";\nimport CopyToClipboardButton from \"neetomolecules/CopyToClipboardButton\";\n\n// eslint-disable-next-line import/extensions\nimport \"stylesheets/components/_copy-button.scss\";\n\nconst CopyButtonWrapper = ({ content, children }) => (\n <div className=\"flex items-center space-x-2\">\n {children}\n {isPresent(content) && (\n <div className=\"identifier-copy-button invisible\">\n <CopyToClipboardButton size=\"small\" style=\"text\" value={content} />\n </div>\n )}\n </div>\n);\n\nexport default CopyButtonWrapper;\n","import { t } from \"i18next\";\nimport { snakeToCamelCase } from \"neetocist\";\nimport DateFormat from \"neetomolecules/DateFormat\";\nimport { Button, Tag, Tooltip } from \"neetoui\";\nimport { curry } from \"ramda\";\n\nimport CopyButtonWrapper from \"components/Common/CopyButtonWrapper\";\nimport { DEFAULT_TAG_STYLE, TAG_STYLE } from \"src/constants\";\n\nconst getTagStyle = status => TAG_STYLE[status] || DEFAULT_TAG_STYLE;\n\nconst preProcessStatus = (type, status, record = {}) => {\n if (type === \"transaction\" || type === \"payment\") {\n return record.isRefunded ? \"refunded\" : status;\n }\n\n if (status === \"voided\") {\n return \"incomplete\";\n }\n\n return snakeToCamelCase(status);\n};\n\nexport const renderStatus = curry((type, status, record) => {\n const processedStatus = preProcessStatus(type, status, record);\n\n return (\n <Tooltip\n content={t(`neetoPayments.tooltipContent.${type}.${processedStatus}`)}\n position=\"top\"\n >\n <div className=\"w-fit\">\n <Tag\n label={t(`neetoPayments.tagLabels.${type}.${processedStatus}`)}\n style={getTagStyle(processedStatus)}\n />\n </div>\n </Tooltip>\n );\n});\n\nexport const renderFullName = (_, { firstName, lastName }) =>\n `${firstName} ${lastName}`;\n\nexport const renderEmail = email => (\n <CopyButtonWrapper content={email}>\n <Button href={`mailto:${email}`} label={email} style=\"link\" />\n </CopyButtonWrapper>\n);\n\nexport const renderDate = date => <DateFormat.DateTime {...{ date }} />;\n"],"names":["queryClient","QueryClient","queryCache","QueryCache","defaultOptions","queries","staleTime","DEFAULT_STALE_TIME","placeholderData","keepPreviousData","withReactQuery","Component","QueryWrapper","props","_jsxs","QueryClientProvider","client","children","_jsx","_objectSpread","ReactQueryDevtools","initialIsOpen","position","processSortProperties","sortProperties","sortBy","assoc","modify","concat","buildDefaultPageProperties","tabs","reduce","pageProperties","tab","_defineProperty","DEFAULT_PAGE_VALUES","buildPayload","_ref","_pageProperties$tab","_pageProperties$tab2","filters","_ref$sortProperties","_ref$payoutId","payoutId","camelToSnakeCase","page","pageSize","buildRowData","_ref2","data","_ref2$pageProperties","_ref2$tab","map","element","index","_pageProperties$tab3","_pageProperties$tab4","payable","identifier","id","isEmpty","CopyButtonWrapper","content","className","isPresent","CopyToClipboardButton","size","style","value","getTagStyle","status","TAG_STYLE","DEFAULT_TAG_STYLE","preProcessStatus","type","record","arguments","length","undefined","isRefunded","snakeToCamelCase","renderStatus","curry","processedStatus","Tooltip","t","Tag","label","renderFullName","_","firstName","lastName","renderEmail","email","Button","href","renderDate","date","DateFormat","DateTime"],"mappings":";;;;;;;;;;;;;;;AAAA;AASA,IAAMA,WAAW,GAAG,IAAIC,WAAW,CAAC;AAClCC,EAAAA,UAAU,EAAE,IAAIC,UAAU,EAAE;AAC5BC,EAAAA,cAAc,EAAE;AACdC,IAAAA,OAAO,EAAE;AACPC,MAAAA,SAAS,EAAEC,kBAAkB;AAC7BC,MAAAA,eAAe,EAAEC,gBAAAA;AACnB,KAAA;AACF,GAAA;AACF,CAAC,CAAC;;;;ACVF,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,SAAS,EAAI;AAClC,EAAA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAGC,KAAK,EAAA;IAAA,oBACxBC,IAAA,CAACC,mBAAmB,EAAA;AAACC,MAAAA,MAAM,EAAEhB,WAAY;AAAAiB,MAAAA,QAAA,EACvCC,cAAAA,GAAA,CAACP,SAAS,EAAAQ,eAAA,CAAKN,EAAAA,EAAAA,KAAK,CAAG,CAAC,eACxBK,GAAA,CAACE,kBAAkB,EAAA;AAACC,QAAAA,aAAa,EAAE,KAAM;AAACC,QAAAA,QAAQ,EAAC,QAAA;AAAQ,OAAE,CAAC,CAAA;AAAA,KAC3C,CAAC,CAAA;GACvB,CAAA;AAED,EAAA,OAAOV,YAAY,CAAA;AACrB;;;;ACXA,IAAMW,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EAAAnE,SAAAA,CAAAA,MAAA,CAAYiE,KAAK,CAAG;AAACN,MAAAA,KAAK,EAAEM,KAAM;AAAC1B,MAAAA,KAAK,EAAC,MAAA;KAAQ,CAAA;AAAC,GAC7C,CAAC,CAAA;AAAA,EACrB;IAEY6B,UAAU,GAAG,SAAbA,UAAUA,CAAGC,IAAI,EAAA;AAAA,EAAA,oBAAI/E,GAAA,CAACgF,UAAU,CAACC,QAAQ,EAAA;AAAOF,IAAAA,IAAI,EAAJA,IAAAA;AAAI,GAAK,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function _arrayWithHoles(arr) {
|
|
2
|
+
if (Array.isArray(arr)) return arr;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
function _iterableToArrayLimit(r, l) {
|
|
6
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
|
+
if (null != t) {
|
|
8
|
+
var e,
|
|
9
|
+
n,
|
|
10
|
+
i,
|
|
11
|
+
u,
|
|
12
|
+
a = [],
|
|
13
|
+
f = !0,
|
|
14
|
+
o = !1;
|
|
15
|
+
try {
|
|
16
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
17
|
+
if (Object(t) !== t) return;
|
|
18
|
+
f = !1;
|
|
19
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
20
|
+
} catch (r) {
|
|
21
|
+
o = !0, n = r;
|
|
22
|
+
} finally {
|
|
23
|
+
try {
|
|
24
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
25
|
+
} finally {
|
|
26
|
+
if (o) throw n;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return a;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _arrayLikeToArray(arr, len) {
|
|
34
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
35
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
36
|
+
return arr2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
40
|
+
if (!o) return;
|
|
41
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
42
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
43
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
44
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
45
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function _nonIterableRest() {
|
|
49
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function _slicedToArray(arr, i) {
|
|
53
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { _slicedToArray as _, _arrayLikeToArray as a, _unsupportedIterableToArray as b };
|
|
57
|
+
//# sourceMappingURL=slicedToArray-b4278ecd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slicedToArray-b4278ecd.js","sources":["../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js"],"sourcesContent":["export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}"],"names":["arrayLikeToArray","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest"],"mappings":"AAAe,SAAS,eAAe,CAAC,GAAG,EAAE;AA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ACvD,EAAE,IAAI,CAAC,KAAK,WAAW,IAAI,0CAA0C,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAOA,iBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAClH;;ACRe,SAAS,gBAAgB,GAAG;AAC3C,EAAE,MAAM,IAAI,SAAS,CAAC,2IAA2I,CAAC,CAAC;AACnK;;ACEe,SAAS,cAAc,CAAC,GAAG,EAAE,CAAC,EAAE;AAC/C,EAAE,OAAOC,eAAc,CAAC,GAAG,CAAC,IAAIC,qBAAoB,CAAC,GAAG,EAAE,CAAC,CAAC,IAAIC,2BAA0B,CAAC,GAAG,EAAE,CAAC,CAAC,IAAIC,gBAAe,EAAE,CAAC;AACxH;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { a as _arrayLikeToArray, b as _unsupportedIterableToArray } from './slicedToArray-b4278ecd.js';
|
|
2
|
+
|
|
3
|
+
function _arrayWithoutHoles(arr) {
|
|
4
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function _iterableToArray(iter) {
|
|
8
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function _nonIterableSpread() {
|
|
12
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function _toConsumableArray(arr) {
|
|
16
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { _toConsumableArray as _ };
|
|
20
|
+
//# sourceMappingURL=toConsumableArray-1cc38429.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toConsumableArray-1cc38429.js","sources":["../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"],"sourcesContent":["import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}"],"names":["arrayLikeToArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread"],"mappings":";;AACe,SAAS,kBAAkB,CAAC,GAAG,EAAE;AAChD,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,OAAOA,iBAAgB,CAAC,GAAG,CAAC,CAAC;AACvD;;ACHe,SAAS,gBAAgB,CAAC,IAAI,EAAE;AAC/C,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,EAAE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5H;;ACFe,SAAS,kBAAkB,GAAG;AAC7C,EAAE,MAAM,IAAI,SAAS,CAAC,sIAAsI,CAAC,CAAC;AAC9J;;ACEe,SAAS,kBAAkB,CAAC,GAAG,EAAE;AAChD,EAAE,OAAOC,kBAAiB,CAAC,GAAG,CAAC,IAAIC,gBAAe,CAAC,GAAG,CAAC,IAAIC,2BAA0B,CAAC,GAAG,CAAC,IAAIC,kBAAiB,EAAE,CAAC;AAClH;;;;"}
|
|
@@ -1,35 +1,45 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-e90a259c.js';
|
|
1
2
|
import { useQuery } from '@tanstack/react-query';
|
|
2
3
|
import { isPresent } from '@bigbinary/neeto-cist';
|
|
3
4
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
5
|
import axios from 'axios';
|
|
5
6
|
import { BASE_URL } from './constants.js';
|
|
7
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-ae89b920.js';
|
|
6
8
|
import require$$0 from 'util';
|
|
7
|
-
import { Q as QUERY_KEYS } from './queryConstants-
|
|
9
|
+
import { Q as QUERY_KEYS } from './queryConstants-4e28efc6.js';
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
var show$1 = function show(holdableId) {
|
|
12
|
+
return axios.get("".concat(BASE_URL, "/api/v1/stripe/holdable/").concat(holdableId, "/account"));
|
|
13
|
+
};
|
|
14
|
+
var create = function create(payload) {
|
|
15
|
+
return axios.post("".concat(BASE_URL, "/api/v1/stripe/accounts"), payload);
|
|
16
|
+
};
|
|
17
|
+
var creationStatus = function creationStatus(jobId) {
|
|
18
|
+
return axios.get("".concat(BASE_URL, "/api/v1/stripe/accounts/").concat(jobId, "/creation_status"));
|
|
19
|
+
};
|
|
20
|
+
var destroy = function destroy(accountId) {
|
|
21
|
+
return axios["delete"]("".concat(BASE_URL, "/api/v1/stripe/accounts/").concat(accountId));
|
|
22
|
+
};
|
|
23
|
+
var accountsApi = {
|
|
14
24
|
show: show$1,
|
|
15
|
-
create,
|
|
16
|
-
creationStatus,
|
|
17
|
-
destroy
|
|
25
|
+
create: create,
|
|
26
|
+
creationStatus: creationStatus,
|
|
27
|
+
destroy: destroy
|
|
18
28
|
};
|
|
19
29
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
var list$1 = function list(payload) {
|
|
31
|
+
return axios.get("".concat(BASE_URL, "/api/v1/stripe/holdable/payouts"), {
|
|
32
|
+
params: payload
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
var show = function show(id) {
|
|
36
|
+
return axios.get("".concat(BASE_URL, "/api/v1/stripe/holdable/payouts/").concat(id));
|
|
37
|
+
};
|
|
38
|
+
var payoutsApi = {
|
|
25
39
|
list: list$1,
|
|
26
|
-
show
|
|
40
|
+
show: show
|
|
27
41
|
};
|
|
28
42
|
|
|
29
|
-
function getDefaultExportFromCjs (x) {
|
|
30
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
43
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
34
44
|
var shams = function hasSymbols() {
|
|
35
45
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
@@ -2080,96 +2090,107 @@ var lib = {
|
|
|
2080
2090
|
|
|
2081
2091
|
var qs = /*@__PURE__*/getDefaultExportFromCjs(lib);
|
|
2082
2092
|
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
paramsSerializer: params => qs.stringify(params, {
|
|
2092
|
-
arrayFormat: "brackets"
|
|
2093
|
-
})
|
|
2094
|
-
});
|
|
2095
|
-
const transactionsApi = {
|
|
2096
|
-
defaultList,
|
|
2097
|
-
list
|
|
2098
|
-
};
|
|
2099
|
-
|
|
2100
|
-
const useFetchConnectedStripeAccount = function (holdableId) {
|
|
2101
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2102
|
-
return useQuery({
|
|
2103
|
-
queryKey: [QUERY_KEYS.CONNECTED_ACCOUNT, holdableId],
|
|
2104
|
-
queryFn: () => accountsApi.show(holdableId),
|
|
2105
|
-
...options
|
|
2093
|
+
var defaultList = function defaultList(payload) {
|
|
2094
|
+
return axios.get("".concat(BASE_URL, "/api/v1/stripe/holdable/transactions"), {
|
|
2095
|
+
params: payload,
|
|
2096
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
2097
|
+
return qs.stringify(params, {
|
|
2098
|
+
arrayFormat: "brackets"
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2106
2101
|
});
|
|
2107
2102
|
};
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2103
|
+
var list = function list(holdableId, payload) {
|
|
2104
|
+
return axios.get("".concat(BASE_URL, "/api/v1/stripe/holdables/").concat(holdableId, "/transactions"), {
|
|
2105
|
+
params: payload,
|
|
2106
|
+
paramsSerializer: function paramsSerializer(params) {
|
|
2107
|
+
return qs.stringify(params, {
|
|
2108
|
+
arrayFormat: "brackets"
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
});
|
|
2112
|
+
};
|
|
2113
|
+
var transactionsApi = {
|
|
2114
|
+
defaultList: defaultList,
|
|
2115
|
+
list: list
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2118
|
+
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; }
|
|
2119
|
+
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; }
|
|
2120
|
+
var useFetchConnectedStripeAccount = function useFetchConnectedStripeAccount(holdableId) {
|
|
2121
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2122
|
+
return useQuery(_objectSpread({
|
|
2123
|
+
queryKey: [QUERY_KEYS.CONNECTED_ACCOUNT, holdableId],
|
|
2124
|
+
queryFn: function queryFn() {
|
|
2125
|
+
return accountsApi.show(holdableId);
|
|
2126
|
+
}
|
|
2127
|
+
}, options));
|
|
2128
|
+
};
|
|
2129
|
+
var useFetchStripeTransactions = function useFetchStripeTransactions() {
|
|
2130
|
+
var holdableId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
2131
|
+
var payload = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2132
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
2133
|
+
return useQuery(_objectSpread({
|
|
2113
2134
|
queryKey: [QUERY_KEYS.TRANSACTIONS_LIST, payload],
|
|
2114
|
-
queryFn: ()
|
|
2135
|
+
queryFn: function queryFn() {
|
|
2115
2136
|
if (isPresent(holdableId)) {
|
|
2116
2137
|
return transactionsApi.list(holdableId, payload);
|
|
2117
2138
|
}
|
|
2118
2139
|
return transactionsApi.defaultList(payload);
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
});
|
|
2140
|
+
}
|
|
2141
|
+
}, options));
|
|
2122
2142
|
};
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
return useQuery({
|
|
2143
|
+
var useFetchStripePayouts = function useFetchStripePayouts(payload) {
|
|
2144
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2145
|
+
return useQuery(_objectSpread({
|
|
2126
2146
|
queryKey: [QUERY_KEYS.STRIPE_PAYOUTS_LIST, payload],
|
|
2127
|
-
queryFn: ()
|
|
2128
|
-
|
|
2129
|
-
|
|
2147
|
+
queryFn: function queryFn() {
|
|
2148
|
+
return payoutsApi.list(payload);
|
|
2149
|
+
}
|
|
2150
|
+
}, options));
|
|
2130
2151
|
};
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
return useQuery({
|
|
2152
|
+
var useShowStripePayout = function useShowStripePayout(id) {
|
|
2153
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2154
|
+
return useQuery(_objectSpread({
|
|
2134
2155
|
queryKey: [QUERY_KEYS.STRIPE_PAYOUT, id],
|
|
2135
|
-
queryFn: ()
|
|
2136
|
-
|
|
2137
|
-
|
|
2156
|
+
queryFn: function queryFn() {
|
|
2157
|
+
return payoutsApi.show(id);
|
|
2158
|
+
}
|
|
2159
|
+
}, options));
|
|
2138
2160
|
};
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
refetchInterval
|
|
2142
|
-
} = _ref;
|
|
2161
|
+
var usePollingStripeAccount = function usePollingStripeAccount(holdableId, _ref) {
|
|
2162
|
+
var refetchInterval = _ref.refetchInterval;
|
|
2143
2163
|
return useQuery({
|
|
2144
2164
|
queryKey: [QUERY_KEYS.STRIPE_ACCOUNT_DETAILS],
|
|
2145
|
-
queryFn: ()
|
|
2146
|
-
|
|
2165
|
+
queryFn: function queryFn() {
|
|
2166
|
+
return accountsApi.show(holdableId);
|
|
2167
|
+
},
|
|
2168
|
+
refetchInterval: refetchInterval
|
|
2147
2169
|
});
|
|
2148
2170
|
};
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2171
|
+
var usePollingStripeAccountCreationStatus = function usePollingStripeAccountCreationStatus(jobId, options) {
|
|
2172
|
+
return useQuery(_objectSpread({
|
|
2173
|
+
queryKey: [QUERY_KEYS.STRIPE_ACCOUNT_DETAILS, jobId],
|
|
2174
|
+
queryFn: function queryFn() {
|
|
2175
|
+
return accountsApi.creationStatus(jobId);
|
|
2176
|
+
}
|
|
2177
|
+
}, options));
|
|
2178
|
+
};
|
|
2179
|
+
var useDestroyStripeAccount = function useDestroyStripeAccount(_ref2) {
|
|
2180
|
+
var onSuccess = _ref2.onSuccess,
|
|
2181
|
+
holdableId = _ref2.holdableId;
|
|
2159
2182
|
return useMutationWithInvalidation(accountsApi.destroy, {
|
|
2160
2183
|
keysToInvalidate: [[QUERY_KEYS.STRIPE_ACCOUNT_DETAILS], [QUERY_KEYS.CONNECTED_ACCOUNT, holdableId]],
|
|
2161
|
-
onSuccess
|
|
2184
|
+
onSuccess: onSuccess
|
|
2162
2185
|
});
|
|
2163
2186
|
};
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
onSuccess
|
|
2167
|
-
} = _ref3;
|
|
2187
|
+
var useCreateStripeAccount = function useCreateStripeAccount(_ref3) {
|
|
2188
|
+
var onSuccess = _ref3.onSuccess;
|
|
2168
2189
|
return useMutationWithInvalidation(accountsApi.create, {
|
|
2169
2190
|
keysToInvalidate: [[QUERY_KEYS.STRIPE_ACCOUNT_DETAILS]],
|
|
2170
|
-
onSuccess
|
|
2191
|
+
onSuccess: onSuccess
|
|
2171
2192
|
});
|
|
2172
2193
|
};
|
|
2173
2194
|
|
|
2174
2195
|
export { useFetchConnectedStripeAccount as a, useFetchStripePayouts as b, useShowStripePayout as c, useCreateStripeAccount as d, usePollingStripeAccountCreationStatus as e, useDestroyStripeAccount as f, usePollingStripeAccount as g, qs as q, useFetchStripeTransactions as u };
|
|
2175
|
-
//# sourceMappingURL=useConnectApi-
|
|
2196
|
+
//# sourceMappingURL=useConnectApi-47bd1d50.js.map
|