@bigbinary/neeto-payments-frontend 4.0.7 → 4.0.9

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.
Files changed (115) hide show
  1. package/app/javascript/src/translations/en.json +15 -1
  2. package/dist/AccountsDashboard.js +13 -34
  3. package/dist/AccountsDashboard.js.map +1 -1
  4. package/dist/AdminCancelRecurringPaymentButton.js +1 -1
  5. package/dist/CashPaymentButton.js +2 -2
  6. package/dist/ConfirmCashPaymentButton.js +2 -2
  7. package/dist/CustomerCancelRecurringPaymentForm.js +2 -2
  8. package/dist/{ExportModal-B4zqaXJ1.js → ExportModal-UegCpavy.js} +2 -2
  9. package/dist/{ExportModal-B4zqaXJ1.js.map → ExportModal-UegCpavy.js.map} +1 -1
  10. package/dist/ManualUpiConnect.js +7 -3
  11. package/dist/ManualUpiConnect.js.map +1 -1
  12. package/dist/ManualUpiPayment.js +2 -2
  13. package/dist/ManualUpiPaymentConfirmButton.js +3 -2
  14. package/dist/ManualUpiPaymentConfirmButton.js.map +1 -1
  15. package/dist/ManualUpiPaymentRejectButton.js +2 -2
  16. package/dist/PaymentsDashboard.js +3 -3
  17. package/dist/PayoutsDashboard.js +5 -5
  18. package/dist/PayoutsPage.js +4 -4
  19. package/dist/RazorpayPaymentButton.js +2 -2
  20. package/dist/RecurringPaymentSettings.js +2 -2
  21. package/dist/RefundsDashboard.js +3 -3
  22. package/dist/SplitTransfersDashboard.js +3 -3
  23. package/dist/StripeConnect.js +377 -0
  24. package/dist/StripeConnect.js.map +1 -0
  25. package/dist/TaxesDashboard.js +2 -2
  26. package/dist/buildStripeTransactionLink.js +1 -1
  27. package/dist/cjs/AccountsDashboard.js +14 -35
  28. package/dist/cjs/AccountsDashboard.js.map +1 -1
  29. package/dist/cjs/AdminCancelRecurringPaymentButton.js +1 -1
  30. package/dist/cjs/CashPaymentButton.js +2 -2
  31. package/dist/cjs/ConfirmCashPaymentButton.js +2 -2
  32. package/dist/cjs/CustomerCancelRecurringPaymentForm.js +2 -2
  33. package/dist/cjs/{ExportModal-GI2FElh3.js → ExportModal-DxApGBel.js} +2 -2
  34. package/dist/cjs/{ExportModal-GI2FElh3.js.map → ExportModal-DxApGBel.js.map} +1 -1
  35. package/dist/cjs/ManualUpiConnect.js +7 -3
  36. package/dist/cjs/ManualUpiConnect.js.map +1 -1
  37. package/dist/cjs/ManualUpiPayment.js +2 -2
  38. package/dist/cjs/ManualUpiPaymentConfirmButton.js +3 -2
  39. package/dist/cjs/ManualUpiPaymentConfirmButton.js.map +1 -1
  40. package/dist/cjs/ManualUpiPaymentRejectButton.js +2 -2
  41. package/dist/cjs/PaymentsDashboard.js +3 -3
  42. package/dist/cjs/PayoutsDashboard.js +5 -5
  43. package/dist/cjs/PayoutsPage.js +4 -4
  44. package/dist/cjs/RazorpayPaymentButton.js +2 -2
  45. package/dist/cjs/RecurringPaymentSettings.js +2 -2
  46. package/dist/cjs/RefundsDashboard.js +3 -3
  47. package/dist/cjs/SplitTransfersDashboard.js +3 -3
  48. package/dist/cjs/StripeConnect.js +398 -0
  49. package/dist/cjs/StripeConnect.js.map +1 -0
  50. package/dist/cjs/TaxesDashboard.js +2 -2
  51. package/dist/cjs/buildStripeTransactionLink.js +1 -1
  52. package/dist/cjs/constants.js +2 -1
  53. package/dist/cjs/constants.js.map +1 -1
  54. package/dist/cjs/{dashboard-DDW7FD1Q.js → dashboard-BS8RsSUN.js} +2 -2
  55. package/dist/cjs/{dashboard-DDW7FD1Q.js.map → dashboard-BS8RsSUN.js.map} +1 -1
  56. package/dist/cjs/getAmountInSmallestCurrencyUnit.js +1 -1
  57. package/dist/cjs/getAmountWithAppliedTax.js +1 -1
  58. package/dist/cjs/getFormattedAmount.js +1 -1
  59. package/dist/cjs/getFormattedTaxAmount.js +1 -1
  60. package/dist/cjs/getFormattedTipAmount.js +1 -1
  61. package/dist/cjs/getQrCodeValue.js +1 -1
  62. package/dist/cjs/getTaxAmount.js +1 -1
  63. package/dist/cjs/getTipAmount.js +1 -1
  64. package/dist/cjs/{index-RKMq21yy.js → index-D0lrwfeJ.js} +3 -1
  65. package/dist/cjs/{index-RKMq21yy.js.map → index-D0lrwfeJ.js.map} +1 -1
  66. package/dist/cjs/index.js +16 -9
  67. package/dist/cjs/index.js.map +1 -1
  68. package/dist/cjs/{queryConstants-D2ARfy8-.js → queryConstants-Bnud13rz.js} +4 -2
  69. package/dist/cjs/queryConstants-Bnud13rz.js.map +1 -0
  70. package/dist/cjs/{renderFunctions-9xNgMpUY.js → renderFunctions-pCev76XN.js} +2 -2
  71. package/dist/cjs/{renderFunctions-9xNgMpUY.js.map → renderFunctions-pCev76XN.js.map} +1 -1
  72. package/dist/cjs/useAccountsApi-JFImy9Nr.js +62 -0
  73. package/dist/cjs/useAccountsApi-JFImy9Nr.js.map +1 -0
  74. package/dist/cjs/{usePaymentApi-CMOLq2VR.js → usePaymentApi-CHAcirnx.js} +2 -2
  75. package/dist/cjs/{usePaymentApi-CMOLq2VR.js.map → usePaymentApi-CHAcirnx.js.map} +1 -1
  76. package/dist/cjs/{usePaymentApi-D9rbv9km.js → usePaymentApi-DoMBeLfx.js} +2 -2
  77. package/dist/cjs/{usePaymentApi-D9rbv9km.js.map → usePaymentApi-DoMBeLfx.js.map} +1 -1
  78. package/dist/cjs/{usePaymentApi-DU3yYSX5.js → usePaymentApi-qdh5LN7u.js} +2 -2
  79. package/dist/cjs/{usePaymentApi-DU3yYSX5.js.map → usePaymentApi-qdh5LN7u.js.map} +1 -1
  80. package/dist/cjs/{usePlatformApi-CmetBzFR.js → usePlatformApi-CAYOstUm.js} +3 -3
  81. package/dist/cjs/{usePlatformApi-CmetBzFR.js.map → usePlatformApi-CAYOstUm.js.map} +1 -1
  82. package/dist/cjs/useRazorpayPayment.js +2 -2
  83. package/dist/constants.js +1 -1
  84. package/dist/{dashboard-W7nZb7Nt.js → dashboard-BmgAk7ZF.js} +2 -2
  85. package/dist/{dashboard-W7nZb7Nt.js.map → dashboard-BmgAk7ZF.js.map} +1 -1
  86. package/dist/getAmountInSmallestCurrencyUnit.js +1 -1
  87. package/dist/getAmountWithAppliedTax.js +1 -1
  88. package/dist/getFormattedAmount.js +1 -1
  89. package/dist/getFormattedTaxAmount.js +1 -1
  90. package/dist/getFormattedTipAmount.js +1 -1
  91. package/dist/getQrCodeValue.js +1 -1
  92. package/dist/getTaxAmount.js +1 -1
  93. package/dist/getTipAmount.js +1 -1
  94. package/dist/{index-DrwJCsVB.js → index-P40XHLrP.js} +3 -2
  95. package/dist/{index-DrwJCsVB.js.map → index-P40XHLrP.js.map} +1 -1
  96. package/dist/index.js +15 -9
  97. package/dist/index.js.map +1 -1
  98. package/dist/{queryConstants-jobxv6K1.js → queryConstants-BkIldboJ.js} +4 -2
  99. package/dist/queryConstants-BkIldboJ.js.map +1 -0
  100. package/dist/{renderFunctions-CwG8PO6s.js → renderFunctions-ByiZ0trU.js} +2 -2
  101. package/dist/{renderFunctions-CwG8PO6s.js.map → renderFunctions-ByiZ0trU.js.map} +1 -1
  102. package/dist/useAccountsApi-UO-GFSyi.js +58 -0
  103. package/dist/useAccountsApi-UO-GFSyi.js.map +1 -0
  104. package/dist/{usePaymentApi--FTQFayz.js → usePaymentApi-BEsw6xFl.js} +2 -2
  105. package/dist/{usePaymentApi--FTQFayz.js.map → usePaymentApi-BEsw6xFl.js.map} +1 -1
  106. package/dist/{usePaymentApi-D57hcC0x.js → usePaymentApi-CnjUFTLo.js} +2 -2
  107. package/dist/{usePaymentApi-D57hcC0x.js.map → usePaymentApi-CnjUFTLo.js.map} +1 -1
  108. package/dist/{usePaymentApi-CnXIy7y7.js → usePaymentApi-DTQ8wxiL.js} +2 -2
  109. package/dist/{usePaymentApi-CnXIy7y7.js.map → usePaymentApi-DTQ8wxiL.js.map} +1 -1
  110. package/dist/{usePlatformApi-CG6LhSj3.js → usePlatformApi-CqsxCyY-.js} +3 -3
  111. package/dist/{usePlatformApi-CG6LhSj3.js.map → usePlatformApi-CqsxCyY-.js.map} +1 -1
  112. package/dist/useRazorpayPayment.js +2 -2
  113. package/package.json +10 -10
  114. package/dist/cjs/queryConstants-D2ARfy8-.js.map +0 -1
  115. package/dist/queryConstants-jobxv6K1.js.map +0 -1
@@ -0,0 +1,398 @@
1
+ 'use strict';
2
+
3
+ var neetoCist = require('@bigbinary/neeto-cist');
4
+ var Container = require('@bigbinary/neeto-molecules/Container');
5
+ var Header = require('@bigbinary/neeto-molecules/Header');
6
+ var reactI18next = require('react-i18next');
7
+ var reactRouterDom = require('react-router-dom');
8
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
9
+ var react = require('react');
10
+ var DOMPurify = require('dompurify');
11
+ var utils = require('@bigbinary/neeto-commons-frontend/utils');
12
+ var Stripe = require('@bigbinary/neeto-icons/misc/Stripe');
13
+ var CardLayout = require('@bigbinary/neeto-molecules/CardLayout');
14
+ var Radio = require('@bigbinary/neetoui/Radio');
15
+ var Button = require('@bigbinary/neetoui/Button');
16
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
17
+ var reactQuery = require('@tanstack/react-query');
18
+ var axios = require('axios');
19
+ var constants = require('./index-D0lrwfeJ.js');
20
+ var queryConstants = require('./queryConstants-Bnud13rz.js');
21
+ var i18next = require('i18next');
22
+ var yup = require('yup');
23
+ var jsxRuntime = require('react/jsx-runtime');
24
+ var Spinner = require('@bigbinary/neetoui/Spinner');
25
+ var Select = require('@bigbinary/neetoui/formik/Select');
26
+ var Form = require('@bigbinary/neetoui/formik/Form');
27
+ var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
28
+ var useAccountsApi = require('./useAccountsApi-JFImy9Nr.js');
29
+ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
30
+ var Typography = require('@bigbinary/neetoui/Typography');
31
+ var Callout = require('@bigbinary/neetoui/Callout');
32
+ require('@bigbinary/neeto-commons-frontend/constants');
33
+ require('decimal.js');
34
+ require('ramda');
35
+
36
+ function _interopNamespaceDefault(e) {
37
+ var n = Object.create(null);
38
+ if (e) {
39
+ Object.keys(e).forEach(function (k) {
40
+ if (k !== 'default') {
41
+ var d = Object.getOwnPropertyDescriptor(e, k);
42
+ Object.defineProperty(n, k, d.get ? d : {
43
+ enumerable: true,
44
+ get: function () { return e[k]; }
45
+ });
46
+ }
47
+ });
48
+ }
49
+ n.default = e;
50
+ return Object.freeze(n);
51
+ }
52
+
53
+ var yup__namespace = /*#__PURE__*/_interopNamespaceDefault(yup);
54
+
55
+ var list = function list() {
56
+ return axios.get("".concat(constants.BASE_URL, "/api/v1/integrations"));
57
+ };
58
+ var integrationsApi = {
59
+ list: list
60
+ };
61
+
62
+ 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; }
63
+ 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; }
64
+ var useFetchPaymentIntegrations = function useFetchPaymentIntegrations(options) {
65
+ return reactQuery.useQuery(_objectSpread({
66
+ queryKey: [queryConstants.QUERY_KEYS.PAYMENT_INTEGRATION_LIST],
67
+ queryFn: integrationsApi.list
68
+ }, options));
69
+ };
70
+
71
+ var INTEGRATION_METHOD = {
72
+ useExistingAccount: "use_existing_account",
73
+ createNewAccount: "create_new_account"
74
+ };
75
+ var POLLING_INTERVAL = 5000;
76
+ var MAX_POLLING_TIME = 30000;
77
+ var INITIAL_VALUES = {
78
+ country: "",
79
+ return_url: ""
80
+ };
81
+ var VALIDATION_SCHEMA = yup__namespace.object().shape({
82
+ country: yup__namespace.object().required(i18next.t("neetoPayments.validations.countryRequired"))
83
+ });
84
+
85
+ var sanitize = DOMPurify.sanitize;
86
+ var Account = function Account(_ref) {
87
+ var processingPageRoute = _ref.processingPageRoute,
88
+ countryPageRoute = _ref.countryPageRoute,
89
+ productNameLabel = _ref.productNameLabel,
90
+ getStripeAccount = _ref.getStripeAccount,
91
+ manageRoute = _ref.manageRoute;
92
+ var _useTranslation = reactI18next.useTranslation(),
93
+ t = _useTranslation.t;
94
+ var _useState = react.useState(INTEGRATION_METHOD.createNewAccount),
95
+ _useState2 = _slicedToArray(_useState, 2),
96
+ selectedOption = _useState2[0],
97
+ setSelectedOption = _useState2[1];
98
+ var history = reactRouterDom.useHistory();
99
+ var _useFetchPaymentInteg = useFetchPaymentIntegrations(),
100
+ _useFetchPaymentInteg2 = _useFetchPaymentInteg.data,
101
+ _useFetchPaymentInteg3 = _useFetchPaymentInteg2 === void 0 ? {} : _useFetchPaymentInteg2,
102
+ stripeStandardAccounts = _useFetchPaymentInteg3.stripeStandardAccounts;
103
+ var stripeAccount = getStripeAccount(stripeStandardAccounts);
104
+ var stripeConnectUrl = utils.buildUrl(constants.STRIPE_CONNECT_ENDPOINT, {
105
+ return_url: "".concat(window.location.origin).concat(processingPageRoute)
106
+ });
107
+ var handleSubmit = function handleSubmit() {
108
+ if (selectedOption !== INTEGRATION_METHOD.useExistingAccount) {
109
+ return history.push(countryPageRoute);
110
+ }
111
+ return window.location.href = sanitize(stripeConnectUrl);
112
+ };
113
+ react.useEffect(function () {
114
+ if (stripeAccount !== null && stripeAccount !== void 0 && stripeAccount.isConnected) {
115
+ history.push(manageRoute);
116
+ }
117
+ }, [stripeAccount === null || stripeAccount === void 0 ? void 0 : stripeAccount.isConnected]);
118
+ return /*#__PURE__*/jsxRuntime.jsx(CardLayout, {
119
+ icon: /*#__PURE__*/jsxRuntime.jsx(Stripe, {
120
+ size: 48
121
+ }),
122
+ title: t("neetoPayments.stripeConnect.title"),
123
+ actionBlock: /*#__PURE__*/jsxRuntime.jsx(Button, {
124
+ label: t("neetoPayments.common.continue"),
125
+ onClick: handleSubmit
126
+ }),
127
+ description: t("neetoPayments.stripeConnect.unlinkedDescription", {
128
+ productNameLabel: productNameLabel
129
+ }),
130
+ children: /*#__PURE__*/jsxRuntime.jsxs(Radio, {
131
+ value: selectedOption,
132
+ onChange: function onChange(_ref2) {
133
+ var value = _ref2.target.value;
134
+ return setSelectedOption(value);
135
+ },
136
+ children: [/*#__PURE__*/jsxRuntime.jsx(Radio.Item, {
137
+ label: t("neetoPayments.stripeConnect.createNewAccount"),
138
+ name: "accountMethod",
139
+ value: INTEGRATION_METHOD.createNewAccount
140
+ }), /*#__PURE__*/jsxRuntime.jsx(Radio.Item, {
141
+ label: t("neetoPayments.stripeConnect.useExistingAccount"),
142
+ name: "accountMethod",
143
+ value: INTEGRATION_METHOD.useExistingAccount
144
+ })]
145
+ })
146
+ });
147
+ };
148
+
149
+ var fetchCountries = function fetchCountries() {
150
+ return axios.get("".concat(constants.BASE_URL, "/api/v1/stripe/countries"));
151
+ };
152
+ var countriesApi = {
153
+ fetchCountries: fetchCountries
154
+ };
155
+
156
+ var useFetchStripeCountries = function useFetchStripeCountries() {
157
+ return reactQuery.useQuery({
158
+ queryKey: [queryConstants.QUERY_KEYS.STRIPE_COUNTRIES],
159
+ queryFn: countriesApi.fetchCountries
160
+ });
161
+ };
162
+
163
+ var buildRefreshUrl = function buildRefreshUrl(accountId, returnUrl) {
164
+ return "/payments/api/v1/stripe/callbacks/".concat(accountId, "/refresh?return_url=").concat(returnUrl);
165
+ };
166
+ var buildCountryOptions = function buildCountryOptions(countries) {
167
+ var _Object$entries;
168
+ return (_Object$entries = Object.entries(countries)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(function (country) {
169
+ return {
170
+ label: neetoCist.humanize(country[0]),
171
+ value: country[1]
172
+ };
173
+ });
174
+ };
175
+
176
+ var Country = function Country(_ref) {
177
+ var processingPageRoute = _ref.processingPageRoute,
178
+ productNameLabel = _ref.productNameLabel;
179
+ var _useState = react.useState(false),
180
+ _useState2 = _slicedToArray(_useState, 2),
181
+ isPolling = _useState2[0],
182
+ setIsPolling = _useState2[1];
183
+ var _useTranslation = reactI18next.useTranslation(),
184
+ t = _useTranslation.t;
185
+ var history = reactRouterDom.useHistory();
186
+ var refetchInterval = function refetchInterval(query) {
187
+ var _ref2 = query.state.data || {},
188
+ jobStatus = _ref2.jobStatus,
189
+ onboarding = _ref2.onboarding;
190
+ if (jobStatus === "complete") {
191
+ window.open(onboarding === null || onboarding === void 0 ? void 0 : onboarding.url, "_self");
192
+ return false;
193
+ }
194
+ return POLLING_INTERVAL;
195
+ };
196
+ var _useCreateStripeAccou = useAccountsApi.useCreateStripeAccount({
197
+ onSuccess: function onSuccess() {
198
+ return setIsPolling(true);
199
+ }
200
+ }),
201
+ isCreating = _useCreateStripeAccou.isPending,
202
+ _useCreateStripeAccou2 = _useCreateStripeAccou.data,
203
+ _useCreateStripeAccou3 = _useCreateStripeAccou2 === void 0 ? {} : _useCreateStripeAccou2,
204
+ jobId = _useCreateStripeAccou3.jobId,
205
+ createStripeAccount = _useCreateStripeAccou.mutate;
206
+ var _useFetchStripeCountr = useFetchStripeCountries(),
207
+ isLoading = _useFetchStripeCountr.isLoading,
208
+ _useFetchStripeCountr2 = _useFetchStripeCountr.data,
209
+ _useFetchStripeCountr3 = _useFetchStripeCountr2 === void 0 ? {} : _useFetchStripeCountr2,
210
+ _useFetchStripeCountr4 = _useFetchStripeCountr3.countries,
211
+ countries = _useFetchStripeCountr4 === void 0 ? {} : _useFetchStripeCountr4;
212
+ useAccountsApi.usePollingStripeAccountCreationStatus(jobId, {
213
+ refetchInterval: refetchInterval,
214
+ enabled: neetoCist.isPresent(jobId)
215
+ });
216
+ var handleSubmit = function handleSubmit(values) {
217
+ var payload = {
218
+ returnUrl: "".concat(window.location.origin).concat(processingPageRoute),
219
+ country: values.country.value
220
+ };
221
+ createStripeAccount(payload);
222
+ };
223
+ if (isLoading) {
224
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
225
+ className: "flex items-center justify-center flex-grow w-full",
226
+ children: /*#__PURE__*/jsxRuntime.jsx(Spinner, {})
227
+ });
228
+ }
229
+ return /*#__PURE__*/jsxRuntime.jsx(Form, {
230
+ className: "w-full",
231
+ formikProps: {
232
+ enableReinitialize: true,
233
+ initialValues: INITIAL_VALUES,
234
+ validationSchema: VALIDATION_SCHEMA,
235
+ onSubmit: handleSubmit
236
+ },
237
+ children: /*#__PURE__*/jsxRuntime.jsx(CardLayout, {
238
+ icon: /*#__PURE__*/jsxRuntime.jsx(Stripe, {
239
+ size: 48
240
+ }),
241
+ title: t("neetoPayments.stripeConnect.title"),
242
+ actionBlock: /*#__PURE__*/jsxRuntime.jsx(ActionBlock, {
243
+ cancelButtonProps: {
244
+ onClick: function onClick() {
245
+ return history.goBack();
246
+ }
247
+ },
248
+ isSubmitting: isCreating || isPolling,
249
+ submitButtonProps: {
250
+ label: t("neetoPayments.common.connect")
251
+ }
252
+ }),
253
+ description: t("neetoPayments.stripeConnect.unlinkedDescription", {
254
+ productNameLabel: productNameLabel
255
+ }),
256
+ children: /*#__PURE__*/jsxRuntime.jsx(Select, {
257
+ required: true,
258
+ helpText: t("neetoPayments.stripeConnect.countryHelpText"),
259
+ label: t("neetoPayments.common.country"),
260
+ name: "country",
261
+ options: buildCountryOptions(countries),
262
+ placeholder: t("neetoPayments.stripeConnect.countryPlaceholder")
263
+ })
264
+ })
265
+ });
266
+ };
267
+
268
+ var Processing = function Processing(_ref) {
269
+ var getStripeAccount = _ref.getStripeAccount,
270
+ productNameLabel = _ref.productNameLabel,
271
+ manageRoute = _ref.manageRoute;
272
+ var _useState = react.useState(false),
273
+ _useState2 = _slicedToArray(_useState, 2),
274
+ isPolling = _useState2[0],
275
+ setIsPolling = _useState2[1];
276
+ var _useTranslation = reactI18next.useTranslation(),
277
+ t = _useTranslation.t;
278
+ var history = reactRouterDom.useHistory();
279
+ var _useQueryParams = reactUtils.useQueryParams(),
280
+ error = _useQueryParams.error,
281
+ errorDescription = _useQueryParams.errorDescription;
282
+ var refetchInterval = function refetchInterval(query) {
283
+ var _ref2 = query.state.data || {},
284
+ stripeStandardAccounts = _ref2.stripeStandardAccounts;
285
+ var stripeAccount = getStripeAccount(stripeStandardAccounts);
286
+ if (!(stripeAccount !== null && stripeAccount !== void 0 && stripeAccount.isConnected) && isPolling) {
287
+ return POLLING_INTERVAL;
288
+ }
289
+ if (stripeAccount !== null && stripeAccount !== void 0 && stripeAccount.isConnected) {
290
+ setIsPolling(false);
291
+ history.push(manageRoute);
292
+ }
293
+ return false;
294
+ };
295
+ var _useFetchPaymentInteg = useFetchPaymentIntegrations({
296
+ refetchInterval: refetchInterval,
297
+ enabled: neetoCist.isNotPresent(error)
298
+ }),
299
+ _useFetchPaymentInteg2 = _useFetchPaymentInteg.data,
300
+ _useFetchPaymentInteg3 = _useFetchPaymentInteg2 === void 0 ? {} : _useFetchPaymentInteg2,
301
+ stripeStandardAccounts = _useFetchPaymentInteg3.stripeStandardAccounts;
302
+ var stripeAccount = getStripeAccount(stripeStandardAccounts);
303
+ var isAccountProcessingFailed = neetoCist.isPresent(error) && neetoCist.isPresent(errorDescription) || !isPolling && !(stripeAccount !== null && stripeAccount !== void 0 && stripeAccount.isConnected);
304
+ react.useEffect(function () {
305
+ if (stripeAccount !== null && stripeAccount !== void 0 && stripeAccount.isConnected) {
306
+ history.push(manageRoute);
307
+ }
308
+ if (neetoCist.isNotPresent(error)) {
309
+ setIsPolling(true);
310
+ }
311
+ setInterval(function () {
312
+ setIsPolling(false);
313
+ }, MAX_POLLING_TIME);
314
+ }, []);
315
+ return /*#__PURE__*/jsxRuntime.jsxs(CardLayout, {
316
+ icon: /*#__PURE__*/jsxRuntime.jsx(Stripe, {
317
+ size: 48
318
+ }),
319
+ title: t("neetoPayments.stripeConnect.title"),
320
+ actionBlock: isAccountProcessingFailed && /*#__PURE__*/jsxRuntime.jsx(Button, {
321
+ href: buildRefreshUrl(stripeAccount === null || stripeAccount === void 0 ? void 0 : stripeAccount.id),
322
+ label: t("neetoPayments.common.tryAgain")
323
+ }),
324
+ description: t("neetoPayments.stripeConnect.linkedDescription", {
325
+ productNameLabel: productNameLabel
326
+ }),
327
+ children: [isPolling && /*#__PURE__*/jsxRuntime.jsx(Callout, {
328
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
329
+ className: "flex space-x-4",
330
+ children: [/*#__PURE__*/jsxRuntime.jsx(Spinner, {}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
331
+ style: "body1",
332
+ children: t("neetoPayments.stripeConnect.verifyingMessage")
333
+ })]
334
+ })
335
+ }), isAccountProcessingFailed && /*#__PURE__*/jsxRuntime.jsx(Callout, {
336
+ style: "danger",
337
+ children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
338
+ style: "body1",
339
+ children: neetoCist.isPresent(errorDescription) ? neetoCist._humanize(errorDescription) : t("neetoPayments.stripeConnect.failedProcessing")
340
+ })
341
+ })]
342
+ });
343
+ };
344
+
345
+ var StripeConnect = function StripeConnect(_ref) {
346
+ var baseRoute = _ref.baseRoute,
347
+ manageRoute = _ref.manageRoute,
348
+ breadcrumbs = _ref.breadcrumbs,
349
+ productNameLabel = _ref.productNameLabel,
350
+ _ref$getStripeAccount = _ref.getStripeAccount,
351
+ getStripeAccount = _ref$getStripeAccount === void 0 ? neetoCist.noop : _ref$getStripeAccount;
352
+ var _useTranslation = reactI18next.useTranslation(),
353
+ t = _useTranslation.t;
354
+ var countryPageRoute = "".concat(baseRoute, "/countries");
355
+ var processingPageRoute = "".concat(baseRoute, "/processing");
356
+ return /*#__PURE__*/jsxRuntime.jsxs(Container, {
357
+ children: [/*#__PURE__*/jsxRuntime.jsx(Header, {
358
+ breadcrumbs: breadcrumbs,
359
+ title: t("neetoPayments.common.connect")
360
+ }), /*#__PURE__*/jsxRuntime.jsxs(reactRouterDom.Switch, {
361
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactRouterDom.Route, {
362
+ exact: true,
363
+ path: baseRoute,
364
+ render: function render() {
365
+ return /*#__PURE__*/jsxRuntime.jsx(Account, {
366
+ countryPageRoute: countryPageRoute,
367
+ getStripeAccount: getStripeAccount,
368
+ manageRoute: manageRoute,
369
+ processingPageRoute: processingPageRoute,
370
+ productNameLabel: productNameLabel
371
+ });
372
+ }
373
+ }), /*#__PURE__*/jsxRuntime.jsx(reactRouterDom.Route, {
374
+ exact: true,
375
+ path: countryPageRoute,
376
+ component: function component() {
377
+ return /*#__PURE__*/jsxRuntime.jsx(Country, {
378
+ processingPageRoute: processingPageRoute,
379
+ productNameLabel: productNameLabel
380
+ });
381
+ }
382
+ }), /*#__PURE__*/jsxRuntime.jsx(reactRouterDom.Route, {
383
+ exact: true,
384
+ path: processingPageRoute,
385
+ component: function component() {
386
+ return /*#__PURE__*/jsxRuntime.jsx(Processing, {
387
+ getStripeAccount: getStripeAccount,
388
+ manageRoute: manageRoute,
389
+ productNameLabel: productNameLabel
390
+ });
391
+ }
392
+ })]
393
+ })]
394
+ });
395
+ };
396
+
397
+ module.exports = StripeConnect;
398
+ //# sourceMappingURL=StripeConnect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StripeConnect.js","sources":["../../app/javascript/src/apis/integrations.js","../../app/javascript/src/hooks/reactQuery/useIntegrationsApi.js","../../app/javascript/src/components/StripeConnect/constants.js","../../app/javascript/src/components/StripeConnect/Account.jsx","../../app/javascript/src/apis/countries.js","../../app/javascript/src/hooks/reactQuery/useCountriesApi.js","../../app/javascript/src/components/StripeConnect/utils.js","../../app/javascript/src/components/StripeConnect/Country.jsx","../../app/javascript/src/components/StripeConnect/Processing.jsx","../../app/javascript/src/components/StripeConnect/index.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst list = () => axios.get(`${BASE_URL}/api/v1/integrations`);\n\nconst integrationsApi = { list };\n\nexport default integrationsApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport integrationsApi from \"apis/integrations\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchPaymentIntegrations = options =>\n useQuery({\n queryKey: [QUERY_KEYS.PAYMENT_INTEGRATION_LIST],\n queryFn: integrationsApi.list,\n ...options,\n });\n","import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const VALID_ERROR_CODES = [\n \"account_already_exists\",\n \"account_not_activated\",\n];\n\nexport const INTEGRATION_METHOD = {\n useExistingAccount: \"use_existing_account\",\n createNewAccount: \"create_new_account\",\n};\nexport const POLLING_INTERVAL = 5000;\nexport const MAX_POLLING_TIME = 30000;\nexport const INITIAL_VALUES = { country: \"\", return_url: \"\" };\n\nexport const VALIDATION_SCHEMA = yup.object().shape({\n country: yup\n .object()\n .required(t(\"neetoPayments.validations.countryRequired\")),\n});\n","import { useEffect, useState } from \"react\";\n\nimport DOMPurify from \"dompurify\";\nimport { buildUrl } from \"neetocommons/utils\";\nimport { Stripe } from \"neetoicons/misc\";\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport { Radio, Button } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { useFetchPaymentIntegrations } from \"hooks/reactQuery/useIntegrationsApi\";\nimport { STRIPE_CONNECT_ENDPOINT } from \"src/constants\";\n\nimport { INTEGRATION_METHOD } from \"./constants\";\n\nconst sanitize = DOMPurify.sanitize;\n\nconst Account = ({\n processingPageRoute,\n countryPageRoute,\n productNameLabel,\n getStripeAccount,\n manageRoute,\n}) => {\n const { t } = useTranslation();\n const [selectedOption, setSelectedOption] = useState(\n INTEGRATION_METHOD.createNewAccount\n );\n\n const history = useHistory();\n\n const { data: { stripeStandardAccounts } = {} } =\n useFetchPaymentIntegrations();\n const stripeAccount = getStripeAccount(stripeStandardAccounts);\n\n const stripeConnectUrl = buildUrl(STRIPE_CONNECT_ENDPOINT, {\n return_url: `${window.location.origin}${processingPageRoute}`,\n });\n\n const handleSubmit = () => {\n if (selectedOption !== INTEGRATION_METHOD.useExistingAccount) {\n return history.push(countryPageRoute);\n }\n\n return (window.location.href = sanitize(stripeConnectUrl));\n };\n\n useEffect(() => {\n if (stripeAccount?.isConnected) {\n history.push(manageRoute);\n }\n }, [stripeAccount?.isConnected]);\n\n return (\n <CardLayout\n icon={<Stripe size={48} />}\n title={t(\"neetoPayments.stripeConnect.title\")}\n actionBlock={\n <Button\n label={t(\"neetoPayments.common.continue\")}\n onClick={handleSubmit}\n />\n }\n description={t(\"neetoPayments.stripeConnect.unlinkedDescription\", {\n productNameLabel,\n })}\n >\n <Radio\n value={selectedOption}\n onChange={({ target: { value } }) => setSelectedOption(value)}\n >\n <Radio.Item\n label={t(\"neetoPayments.stripeConnect.createNewAccount\")}\n name=\"accountMethod\"\n value={INTEGRATION_METHOD.createNewAccount}\n />\n <Radio.Item\n label={t(\"neetoPayments.stripeConnect.useExistingAccount\")}\n name=\"accountMethod\"\n value={INTEGRATION_METHOD.useExistingAccount}\n />\n </Radio>\n </CardLayout>\n );\n};\n\nexport default Account;\n","import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst fetchCountries = () => axios.get(`${BASE_URL}/api/v1/stripe/countries`);\n\nconst countriesApi = { fetchCountries };\n\nexport default countriesApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport countriesApi from \"apis/countries\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchStripeCountries = () =>\n useQuery({\n queryKey: [QUERY_KEYS.STRIPE_COUNTRIES],\n queryFn: countriesApi.fetchCountries,\n });\n","import { humanize } from \"neetocist\";\n\nexport const buildRefreshUrl = (accountId, returnUrl) =>\n `/payments/api/v1/stripe/callbacks/${accountId}/refresh?return_url=${returnUrl}`;\n\nexport const buildCountryOptions = countries =>\n Object.entries(countries)?.map(country => ({\n label: humanize(country[0]),\n value: country[1],\n }));\n","import { useState } from \"react\";\n\nimport { isPresent } from \"neetocist\";\nimport { Stripe } from \"neetoicons/misc\";\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport { Spinner } from \"neetoui\";\nimport { Select, Form, ActionBlock } from \"neetoui/formik\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport {\n usePollingStripeAccountCreationStatus,\n useCreateStripeAccount,\n} from \"hooks/reactQuery/stripe/useAccountsApi\";\nimport { useFetchStripeCountries } from \"hooks/reactQuery/useCountriesApi\";\n\nimport {\n INITIAL_VALUES,\n POLLING_INTERVAL,\n VALIDATION_SCHEMA,\n} from \"./constants\";\nimport { buildCountryOptions } from \"./utils\";\n\nconst Country = ({ processingPageRoute, productNameLabel }) => {\n const [isPolling, setIsPolling] = useState(false);\n\n const { t } = useTranslation();\n const history = useHistory();\n\n const refetchInterval = query => {\n const { jobStatus, onboarding } = query.state.data || {};\n if (jobStatus === \"complete\") {\n window.open(onboarding?.url, \"_self\");\n\n return false;\n }\n\n return POLLING_INTERVAL;\n };\n\n const {\n isPending: isCreating,\n data: { jobId } = {},\n mutate: createStripeAccount,\n } = useCreateStripeAccount({ onSuccess: () => setIsPolling(true) });\n\n const { isLoading, data: { countries = {} } = {} } =\n useFetchStripeCountries();\n\n usePollingStripeAccountCreationStatus(jobId, {\n refetchInterval,\n enabled: isPresent(jobId),\n });\n\n const handleSubmit = values => {\n const payload = {\n returnUrl: `${window.location.origin}${processingPageRoute}`,\n country: values.country.value,\n };\n createStripeAccount(payload);\n };\n\n if (isLoading) {\n return (\n <div className=\"flex items-center justify-center flex-grow w-full\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <Form\n className=\"w-full\"\n formikProps={{\n enableReinitialize: true,\n initialValues: INITIAL_VALUES,\n validationSchema: VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n icon={<Stripe size={48} />}\n title={t(\"neetoPayments.stripeConnect.title\")}\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isCreating || isPolling}\n submitButtonProps={{ label: t(\"neetoPayments.common.connect\") }}\n />\n }\n description={t(\"neetoPayments.stripeConnect.unlinkedDescription\", {\n productNameLabel,\n })}\n >\n <Select\n required\n helpText={t(\"neetoPayments.stripeConnect.countryHelpText\")}\n label={t(\"neetoPayments.common.country\")}\n name=\"country\"\n options={buildCountryOptions(countries)}\n placeholder={t(\"neetoPayments.stripeConnect.countryPlaceholder\")}\n />\n </CardLayout>\n </Form>\n );\n};\n\nexport default Country;\n","import { useEffect, useState } from \"react\";\n\nimport { isPresent, _humanize, isNotPresent } from \"neetocist\";\nimport { useQueryParams } from \"neetocommons/react-utils\";\nimport { Stripe } from \"neetoicons/misc\";\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport { Typography, Callout, Spinner, Button } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { useFetchPaymentIntegrations } from \"hooks/reactQuery/useIntegrationsApi\";\n\nimport { MAX_POLLING_TIME, POLLING_INTERVAL } from \"./constants\";\nimport { buildRefreshUrl } from \"./utils\";\n\nconst Processing = ({ getStripeAccount, productNameLabel, manageRoute }) => {\n const [isPolling, setIsPolling] = useState(false);\n const { t } = useTranslation();\n const history = useHistory();\n const { error, errorDescription } = useQueryParams();\n\n const refetchInterval = query => {\n const { stripeStandardAccounts } = query.state.data || {};\n const stripeAccount = getStripeAccount(stripeStandardAccounts);\n if (!stripeAccount?.isConnected && isPolling) {\n return POLLING_INTERVAL;\n }\n\n if (stripeAccount?.isConnected) {\n setIsPolling(false);\n history.push(manageRoute);\n }\n\n return false;\n };\n\n const { data: { stripeStandardAccounts } = {} } = useFetchPaymentIntegrations(\n { refetchInterval, enabled: isNotPresent(error) }\n );\n\n const stripeAccount = getStripeAccount(stripeStandardAccounts);\n const isAccountProcessingFailed =\n (isPresent(error) && isPresent(errorDescription)) ||\n (!isPolling && !stripeAccount?.isConnected);\n\n useEffect(() => {\n if (stripeAccount?.isConnected) {\n history.push(manageRoute);\n }\n\n if (isNotPresent(error)) {\n setIsPolling(true);\n }\n\n setInterval(() => {\n setIsPolling(false);\n }, MAX_POLLING_TIME);\n }, []);\n\n return (\n <CardLayout\n icon={<Stripe size={48} />}\n title={t(\"neetoPayments.stripeConnect.title\")}\n actionBlock={\n isAccountProcessingFailed && (\n <Button\n href={buildRefreshUrl(stripeAccount?.id)}\n label={t(\"neetoPayments.common.tryAgain\")}\n />\n )\n }\n description={t(\"neetoPayments.stripeConnect.linkedDescription\", {\n productNameLabel,\n })}\n >\n {isPolling && (\n <Callout>\n <div className=\"flex space-x-4\">\n <Spinner />\n <Typography style=\"body1\">\n {t(\"neetoPayments.stripeConnect.verifyingMessage\")}\n </Typography>\n </div>\n </Callout>\n )}\n {isAccountProcessingFailed && (\n <Callout style=\"danger\">\n <Typography style=\"body1\">\n {isPresent(errorDescription)\n ? _humanize(errorDescription)\n : t(\"neetoPayments.stripeConnect.failedProcessing\")}\n </Typography>\n </Callout>\n )}\n </CardLayout>\n );\n};\n\nexport default Processing;\n","import { noop } from \"neetocist\";\nimport Container from \"neetomolecules/Container\";\nimport Header from \"neetomolecules/Header\";\nimport { useTranslation } from \"react-i18next\";\nimport { Route, Switch } from \"react-router-dom\";\n\nimport Account from \"./Account\";\nimport Country from \"./Country\";\nimport Processing from \"./Processing\";\n\nconst StripeConnect = ({\n baseRoute,\n manageRoute,\n breadcrumbs,\n productNameLabel,\n getStripeAccount = noop,\n}) => {\n const { t } = useTranslation();\n const countryPageRoute = `${baseRoute}/countries`;\n const processingPageRoute = `${baseRoute}/processing`;\n\n return (\n <Container>\n <Header {...{ breadcrumbs }} title={t(\"neetoPayments.common.connect\")} />\n <Switch>\n <Route\n exact\n path={baseRoute}\n render={() => (\n <Account\n {...{\n countryPageRoute,\n getStripeAccount,\n manageRoute,\n processingPageRoute,\n productNameLabel,\n }}\n />\n )}\n />\n <Route\n exact\n path={countryPageRoute}\n component={() => (\n <Country {...{ processingPageRoute, productNameLabel }} />\n )}\n />\n <Route\n exact\n path={processingPageRoute}\n component={() => (\n <Processing\n {...{ getStripeAccount, manageRoute, productNameLabel }}\n />\n )}\n />\n </Switch>\n </Container>\n );\n};\n\nexport default StripeConnect;\n"],"names":["list","axios","get","concat","BASE_URL","integrationsApi","useFetchPaymentIntegrations","options","useQuery","_objectSpread","queryKey","QUERY_KEYS","PAYMENT_INTEGRATION_LIST","queryFn","INTEGRATION_METHOD","useExistingAccount","createNewAccount","POLLING_INTERVAL","MAX_POLLING_TIME","INITIAL_VALUES","country","return_url","VALIDATION_SCHEMA","yup","object","shape","required","t","sanitize","DOMPurify","Account","_ref","processingPageRoute","countryPageRoute","productNameLabel","getStripeAccount","manageRoute","_useTranslation","useTranslation","_useState","useState","_useState2","_slicedToArray","selectedOption","setSelectedOption","history","useHistory","_useFetchPaymentInteg","_useFetchPaymentInteg2","data","_useFetchPaymentInteg3","stripeStandardAccounts","stripeAccount","stripeConnectUrl","buildUrl","STRIPE_CONNECT_ENDPOINT","window","location","origin","handleSubmit","push","href","useEffect","isConnected","_jsx","CardLayout","icon","Stripe","size","title","actionBlock","Button","label","onClick","description","children","_jsxs","Radio","value","onChange","_ref2","target","Item","name","fetchCountries","countriesApi","useFetchStripeCountries","STRIPE_COUNTRIES","buildRefreshUrl","accountId","returnUrl","buildCountryOptions","countries","_Object$entries","Object","entries","map","humanize","Country","isPolling","setIsPolling","refetchInterval","query","state","jobStatus","onboarding","open","url","_useCreateStripeAccou","useCreateStripeAccount","onSuccess","isCreating","isPending","_useCreateStripeAccou2","_useCreateStripeAccou3","jobId","createStripeAccount","mutate","_useFetchStripeCountr","isLoading","_useFetchStripeCountr2","_useFetchStripeCountr3","_useFetchStripeCountr4","usePollingStripeAccountCreationStatus","enabled","isPresent","values","payload","className","Spinner","Form","formikProps","enableReinitialize","initialValues","validationSchema","onSubmit","ActionBlock","cancelButtonProps","goBack","isSubmitting","submitButtonProps","Select","helpText","placeholder","Processing","_useQueryParams","useQueryParams","error","errorDescription","isNotPresent","isAccountProcessingFailed","setInterval","id","Callout","Typography","style","_humanize","StripeConnect","baseRoute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S,EAAE,SAAXA,SAASA,GAAA;UAAA,oBACPzG,cAAA,CAACkC,OAAO,EAAA;AAAOlE,YAAAA,mBAAmB,EAAnBA,mBAAmB;AAAEE,YAAAA,gBAAgB,EAAhBA;AAAgB,WAAK,CAAC;AAAA;AAC1D,OACH,CAAC,eACF8B,cAAA,CAACqG,oBAAK,EAAA;QACJC,KAAK,EAAA,IAAA;AACLC,QAAAA,IAAI,EAAEvI,mBAAoB;QAC1ByI,SAAS,EAAE,SAAXA,SAASA,GAAA;UAAA,oBACPzG,cAAA,CAACgF,UAAU,EAAA;AACH7G,YAAAA,gBAAgB,EAAhBA,gBAAgB;AAAEC,YAAAA,WAAW,EAAXA,WAAW;AAAEF,YAAAA,gBAAgB,EAAhBA;AAAgB,WACtD,CAAC;AAAA;AACF,OACH,CAAC;AAAA,KACI,CAAC;AAAA,GACA,CAAC;AAEhB;;;;"}
@@ -17,8 +17,8 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
17
17
  var reactQuery = require('@tanstack/react-query');
18
18
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
19
19
  var axios = require('axios');
20
- var constants = require('./index-RKMq21yy.js');
21
- var queryConstants = require('./queryConstants-D2ARfy8-.js');
20
+ var constants = require('./index-D0lrwfeJ.js');
21
+ var queryConstants = require('./queryConstants-Bnud13rz.js');
22
22
  var Label = require('@bigbinary/neetoui/Label');
23
23
  var Typography = require('@bigbinary/neetoui/Typography');
24
24
  var Pane = require('@bigbinary/neetoui/Pane');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var constants = require('./index-RKMq21yy.js');
3
+ var constants = require('./index-D0lrwfeJ.js');
4
4
  require('i18next');
5
5
  require('@bigbinary/neeto-commons-frontend/constants');
6
6
  require('decimal.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('i18next');
4
4
  require('@bigbinary/neeto-commons-frontend/constants');
5
- var constants = require('./index-RKMq21yy.js');
5
+ var constants = require('./index-D0lrwfeJ.js');
6
6
  require('decimal.js');
7
7
  require('@bigbinary/neeto-cist');
8
8
  require('@bigbinary/neeto-commons-frontend/utils');
@@ -25,6 +25,7 @@ exports.RAZORPAY_CURRENCY_OPTIONS = constants.RAZORPAY_CURRENCY_OPTIONS;
25
25
  exports.RAZORPAY_PAYMENT_BUTTON_OPTIONS = constants.RAZORPAY_PAYMENT_BUTTON_OPTIONS;
26
26
  exports.REFUND_STATUS_TYPE = constants.REFUND_STATUS_TYPE;
27
27
  exports.SORT_DIRECTIONS = constants.SORT_DIRECTIONS;
28
+ exports.STRIPE_CONNECT_ENDPOINT = constants.STRIPE_CONNECT_ENDPOINT;
28
29
  exports.STRIPE_CURRENCY_OPTIONS = constants.STRIPE_CURRENCY_OPTIONS;
29
30
  exports.STRIPE_DASHBOARD_LINK = constants.STRIPE_DASHBOARD_LINK;
30
31
  exports.TAG_STYLE = constants.TAG_STYLE;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"constants.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,7 +6,7 @@ var reactQueryDevtools = require('@tanstack/react-query-devtools');
6
6
  var constants = require('@bigbinary/neeto-commons-frontend/constants');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
  var axios = require('axios');
9
- var constants$1 = require('./index-RKMq21yy.js');
9
+ var constants$1 = require('./index-D0lrwfeJ.js');
10
10
  var neetoCist = require('@bigbinary/neeto-cist');
11
11
  var ramda = require('ramda');
12
12
 
@@ -109,4 +109,4 @@ exports.buildPayload = buildPayload;
109
109
  exports.buildRowData = buildRowData;
110
110
  exports.useExportData = useExportData;
111
111
  exports.withReactQuery = withReactQuery;
112
- //# sourceMappingURL=dashboard-DDW7FD1Q.js.map
112
+ //# sourceMappingURL=dashboard-BS8RsSUN.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-DDW7FD1Q.js","sources":["../../app/javascript/src/apis/queryClient.js","../../app/javascript/src/components/Common/withReactQuery.jsx","../../app/javascript/src/apis/stripe/holdables/exports.js","../../app/javascript/src/hooks/reactQuery/stripe/useExportsApi.js","../../app/javascript/src/utils/dashboard.js"],"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 axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst exportData = payload =>\n axios.post(`${BASE_URL}/api/v1/stripe/exports`, payload, {\n showToastr: false,\n });\n\nconst exportsApi = { exportData };\n\nexport default exportsApi;\n","import { useMutation } from \"@tanstack/react-query\";\n\nimport exportsApi from \"apis/stripe/holdables/exports\";\n\nconst useExportData = () => useMutation({ mutationFn: exportsApi.exportData });\n\nexport { useExportData };\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_payments.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"],"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","exportData","payload","axios","post","concat","BASE_URL","showToastr","exportsApi","useExportData","useMutation","mutationFn","processSortProperties","sortProperties","sortBy","assoc","modify","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"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAQA,IAAMA,WAAW,GAAG,IAAIC,sBAAW,CAAC;AAClCC,EAAAA,UAAU,EAAE,IAAIC,qBAAU,EAAE;AAC5BC,EAAAA,cAAc,EAAE;AACdC,IAAAA,OAAO,EAAE;AACPC,MAAAA,SAAS,EAAEC,4BAAkB;AAC7BC,MAAAA,eAAe,EAAEC;AACnB;AACF;AACF,CAAC,CAAC;;;;ACVF,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,SAAS,EAAI;AAClC,EAAA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAGC,KAAK,EAAA;IAAA,oBACxBC,eAAA,CAACC,8BAAmB,EAAA;AAACC,MAAAA,MAAM,EAAEhB,WAAY;AAAAiB,MAAAA,QAAA,EACvCC,cAAAA,cAAA,CAACP,SAAS,EAAAQ,eAAA,CAAKN,EAAAA,EAAAA,KAAK,CAAG,CAAC,eACxBK,cAAA,CAACE,qCAAkB,EAAA;AAACC,QAAAA,aAAa,EAAE,KAAM;AAACC,QAAAA,QAAQ,EAAC;AAAQ,OAAE,CAAC;AAAA,KAC3C,CAAC;GACvB;AAED,EAAA,OAAOV,YAAY;AACrB;;ACZA,IAAMW,UAAU,GAAG,SAAbA,UAAUA,CAAGC,OAAO,EAAA;EAAA,OACxBC,KAAK,CAACC,IAAI,CAAA,EAAA,CAAAC,MAAA,CAAIC,oBAAQ,EAA0BJ,wBAAAA,CAAAA,EAAAA,OAAO,EAAE;AACvDK,IAAAA,UAAU,EAAE;AACd,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMC,UAAU,GAAG;AAAEP,EAAAA,UAAU,EAAVA;AAAW,CAAC;;ACLjC,IAAMQ,aAAa,GAAG,SAAhBA,aAAaA,GAAA;AAAA,EAAA,OAASC,sBAAW,CAAC;IAAEC,UAAU,EAAEH,UAAU,CAACP;AAAW,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AU,EAAEL,OAAO;AACnBM,MAAAA,EAAE,EAAEC,aAAO,CAAC5B,cAAc,CAAC,GACvBsB,KAAK,GAAG,CAAC,GACT,CAAAC,CAAAA,oBAAA,GAAAvB,cAAc,CAACC,GAAG,CAAC,MAAA,IAAA,IAAAsB,oBAAA,KAAnBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,oBAAA,CAAqBT,QAAQ,KAAI,CAAAU,CAAAA,oBAAA,GAAAxB,cAAc,CAACC,GAAG,CAAC,MAAA,IAAA,IAAAuB,oBAAA,KAAnBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,oBAAA,CAAqBX,IAAI,IAAG,CAAC,CAAC,GAC/DS,KAAK,GACL;AAAC,KAAA,CAAA;AAAA,GACL,CAAC;AAAA;;;;;;;;"}
1
+ {"version":3,"file":"dashboard-BS8RsSUN.js","sources":["../../app/javascript/src/apis/queryClient.js","../../app/javascript/src/components/Common/withReactQuery.jsx","../../app/javascript/src/apis/stripe/holdables/exports.js","../../app/javascript/src/hooks/reactQuery/stripe/useExportsApi.js","../../app/javascript/src/utils/dashboard.js"],"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 axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst exportData = payload =>\n axios.post(`${BASE_URL}/api/v1/stripe/exports`, payload, {\n showToastr: false,\n });\n\nconst exportsApi = { exportData };\n\nexport default exportsApi;\n","import { useMutation } from \"@tanstack/react-query\";\n\nimport exportsApi from \"apis/stripe/holdables/exports\";\n\nconst useExportData = () => useMutation({ mutationFn: exportsApi.exportData });\n\nexport { useExportData };\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_payments.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"],"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","exportData","payload","axios","post","concat","BASE_URL","showToastr","exportsApi","useExportData","useMutation","mutationFn","processSortProperties","sortProperties","sortBy","assoc","modify","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"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAQA,IAAMA,WAAW,GAAG,IAAIC,sBAAW,CAAC;AAClCC,EAAAA,UAAU,EAAE,IAAIC,qBAAU,EAAE;AAC5BC,EAAAA,cAAc,EAAE;AACdC,IAAAA,OAAO,EAAE;AACPC,MAAAA,SAAS,EAAEC,4BAAkB;AAC7BC,MAAAA,eAAe,EAAEC;AACnB;AACF;AACF,CAAC,CAAC;;;;ACVF,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,SAAS,EAAI;AAClC,EAAA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAGC,KAAK,EAAA;IAAA,oBACxBC,eAAA,CAACC,8BAAmB,EAAA;AAACC,MAAAA,MAAM,EAAEhB,WAAY;AAAAiB,MAAAA,QAAA,EACvCC,cAAAA,cAAA,CAACP,SAAS,EAAAQ,eAAA,CAAKN,EAAAA,EAAAA,KAAK,CAAG,CAAC,eACxBK,cAAA,CAACE,qCAAkB,EAAA;AAACC,QAAAA,aAAa,EAAE,KAAM;AAACC,QAAAA,QAAQ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AAI;IAAAC,oBAAA,GAAAF,KAAA,CAAEhB,cAAc;AAAdA,IAAAA,cAAc,GAAAkB,oBAAA,KAAA,KAAA,CAAA,GAAG,EAAE,GAAAA,oBAAA;IAAAC,SAAA,GAAAH,KAAA,CAAEf,GAAG;AAAHA,IAAAA,GAAG,GAAAkB,SAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,SAAA;AAAA,EAAA,OACnEF,IAAI,CAACG,GAAG,CAAC,UAACC,OAAO,EAAEC,KAAK,EAAA;IAAA,IAAAC,oBAAA,EAAAC,oBAAA;AAAA,IAAA,OAAA/C,aAAA,CAAAA,aAAA,CAAA,EAAA,EACnB4C,OAAO,CAAA,EAAA,EAAA,EAAA;MACVI,OAAO,EAAEJ,OAAO,CAACI,OAAO;AACxBC,MAAAA,UAAU,EAAEL,OAAO;AACnBM,MAAAA,EAAE,EAAEC,aAAO,CAAC5B,cAAc,CAAC,GACvBsB,KAAK,GAAG,CAAC,GACT,CAAAC,CAAAA,oBAAA,GAAAvB,cAAc,CAACC,GAAG,CAAC,MAAA,IAAA,IAAAsB,oBAAA,KAAnBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,oBAAA,CAAqBT,QAAQ,KAAI,CAAAU,CAAAA,oBAAA,GAAAxB,cAAc,CAACC,GAAG,CAAC,MAAA,IAAA,IAAAuB,oBAAA,KAAnBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,oBAAA,CAAqBX,IAAI,IAAG,CAAC,CAAC,GAC/DS,KAAK,GACL;AAAC,KAAA,CAAA;AAAA,GACL,CAAC;AAAA;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var constants = require('./index-RKMq21yy.js');
3
+ var constants = require('./index-D0lrwfeJ.js');
4
4
  require('i18next');
5
5
  require('@bigbinary/neeto-commons-frontend/constants');
6
6
  require('decimal.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var constants = require('./index-RKMq21yy.js');
3
+ var constants = require('./index-D0lrwfeJ.js');
4
4
  require('i18next');
5
5
  require('@bigbinary/neeto-commons-frontend/constants');
6
6
  require('decimal.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var constants = require('./index-RKMq21yy.js');
3
+ var constants = require('./index-D0lrwfeJ.js');
4
4
  require('i18next');
5
5
  require('@bigbinary/neeto-commons-frontend/constants');
6
6
  require('decimal.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var constants = require('./index-RKMq21yy.js');
3
+ var constants = require('./index-D0lrwfeJ.js');
4
4
  require('i18next');
5
5
  require('@bigbinary/neeto-commons-frontend/constants');
6
6
  require('decimal.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var constants = require('./index-RKMq21yy.js');
3
+ var constants = require('./index-D0lrwfeJ.js');
4
4
  require('i18next');
5
5
  require('@bigbinary/neeto-commons-frontend/constants');
6
6
  require('decimal.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var constants = require('./index-RKMq21yy.js');
3
+ var constants = require('./index-D0lrwfeJ.js');
4
4
  require('i18next');
5
5
  require('@bigbinary/neeto-commons-frontend/constants');
6
6
  require('decimal.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var constants = require('./index-RKMq21yy.js');
3
+ var constants = require('./index-D0lrwfeJ.js');
4
4
  require('i18next');
5
5
  require('@bigbinary/neeto-commons-frontend/constants');
6
6
  require('decimal.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var constants = require('./index-RKMq21yy.js');
3
+ var constants = require('./index-D0lrwfeJ.js');
4
4
  require('i18next');
5
5
  require('@bigbinary/neeto-commons-frontend/constants');
6
6
  require('decimal.js');