@bigbinary/neeto-payments-frontend 5.0.2 → 5.0.3

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 (56) hide show
  1. package/app/javascript/src/translations/en.json +25 -0
  2. package/dist/AccountsDashboard.js +2 -2
  3. package/dist/CustomerCancelRecurringPaymentForm.js +1 -1
  4. package/dist/ManualUpiConnect.js +1 -1
  5. package/dist/PaymentsDashboard.js +1 -1
  6. package/dist/PayoutsDashboard.js +2 -2
  7. package/dist/PayoutsPage.js +2 -2
  8. package/dist/RazorpayConnect.js +2 -2
  9. package/dist/RazorpayLinkedAccountForm.js +225 -0
  10. package/dist/RazorpayLinkedAccountForm.js.map +1 -0
  11. package/dist/RecurringPaymentSettings.js +1 -1
  12. package/dist/RefundsDashboard.js +1 -1
  13. package/dist/SplitTransfersDashboard.js +1 -1
  14. package/dist/StripeCheckoutSetting.js +1 -1
  15. package/dist/StripeConnect.js +3 -3
  16. package/dist/StripeManage.js +1 -1
  17. package/dist/TaxesDashboard.js +1 -1
  18. package/dist/cjs/AccountsDashboard.js +2 -2
  19. package/dist/cjs/CustomerCancelRecurringPaymentForm.js +1 -1
  20. package/dist/cjs/ManualUpiConnect.js +1 -1
  21. package/dist/cjs/PaymentsDashboard.js +1 -1
  22. package/dist/cjs/PayoutsDashboard.js +2 -2
  23. package/dist/cjs/PayoutsPage.js +2 -2
  24. package/dist/cjs/RazorpayConnect.js +2 -2
  25. package/dist/cjs/RazorpayLinkedAccountForm.js +227 -0
  26. package/dist/cjs/RazorpayLinkedAccountForm.js.map +1 -0
  27. package/dist/cjs/RecurringPaymentSettings.js +1 -1
  28. package/dist/cjs/RefundsDashboard.js +1 -1
  29. package/dist/cjs/SplitTransfersDashboard.js +1 -1
  30. package/dist/cjs/StripeCheckoutSetting.js +1 -1
  31. package/dist/cjs/StripeConnect.js +3 -3
  32. package/dist/cjs/StripeManage.js +1 -1
  33. package/dist/cjs/TaxesDashboard.js +1 -1
  34. package/dist/cjs/index.js +8 -5
  35. package/dist/cjs/index.js.map +1 -1
  36. package/dist/cjs/{queryConstants-DwAnNVdh.js → queryConstants-Cka1X6GX.js} +4 -2
  37. package/dist/cjs/queryConstants-Cka1X6GX.js.map +1 -0
  38. package/dist/cjs/{useAccountsApi-CgULdRoC.js → useAccountsApi-CJf2ILqh.js} +2 -2
  39. package/dist/cjs/{useAccountsApi-CgULdRoC.js.map → useAccountsApi-CJf2ILqh.js.map} +1 -1
  40. package/dist/cjs/{useIntegrationsApi-DW9jhoBZ.js → useIntegrationsApi-BLP7KuIR.js} +2 -2
  41. package/dist/cjs/{useIntegrationsApi-DW9jhoBZ.js.map → useIntegrationsApi-BLP7KuIR.js.map} +1 -1
  42. package/dist/cjs/{usePlatformApi-Bctdu9kJ.js → usePlatformApi-CPdK_K-y.js} +2 -2
  43. package/dist/cjs/{usePlatformApi-Bctdu9kJ.js.map → usePlatformApi-CPdK_K-y.js.map} +1 -1
  44. package/dist/index.js +7 -5
  45. package/dist/index.js.map +1 -1
  46. package/dist/{queryConstants-aYVM1oL2.js → queryConstants-DFKKEEo0.js} +4 -2
  47. package/dist/queryConstants-DFKKEEo0.js.map +1 -0
  48. package/dist/{useAccountsApi-CaI8RHWs.js → useAccountsApi-PGoHDLyL.js} +2 -2
  49. package/dist/{useAccountsApi-CaI8RHWs.js.map → useAccountsApi-PGoHDLyL.js.map} +1 -1
  50. package/dist/{useIntegrationsApi-BjpHElsW.js → useIntegrationsApi-C_P6r2ww.js} +2 -2
  51. package/dist/{useIntegrationsApi-BjpHElsW.js.map → useIntegrationsApi-C_P6r2ww.js.map} +1 -1
  52. package/dist/{usePlatformApi-DsH6LPXK.js → usePlatformApi-DBENGjOP.js} +2 -2
  53. package/dist/{usePlatformApi-DsH6LPXK.js.map → usePlatformApi-DBENGjOP.js.map} +1 -1
  54. package/package.json +5 -5
  55. package/dist/cjs/queryConstants-DwAnNVdh.js.map +0 -1
  56. package/dist/queryConstants-aYVM1oL2.js.map +0 -1
@@ -412,6 +412,31 @@
412
412
  "notesPlaceholder": "Type notes here..."
413
413
  }
414
414
  },
415
+ "linkedAccount": {
416
+ "form": {
417
+ "labels": {
418
+ "email": "Email",
419
+ "phoneNumber": "Phone number",
420
+ "businessName": "Business name",
421
+ "subcategory": "Subcategory",
422
+ "businessType": "Business type",
423
+ "category": "Category",
424
+ "businessLegalInfo": "Business legal info",
425
+ "pan": "PAN",
426
+ "gst": "GST"
427
+ },
428
+ "placeholders": {
429
+ "email": "Enter email",
430
+ "phoneNumber": "Enter phone number",
431
+ "businessName": "Enter business name",
432
+ "subcategory": "Select subcategory",
433
+ "businessType": "Select business type",
434
+ "category": "Select category",
435
+ "pan": "Enter PAN",
436
+ "gst": "Enter GST"
437
+ }
438
+ }
439
+ },
415
440
  "upi": {
416
441
  "confirmModal": {
417
442
  "title": "Confirm UPI payment?",
@@ -30,7 +30,7 @@ import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
30
30
  import Table from '@bigbinary/neetoui/Table';
31
31
  import NoData from '@bigbinary/neetoui/NoData';
32
32
  import Spinner from '@bigbinary/neetoui/Spinner';
33
- import { u as useFetchConnectedAccounts } from './useAccountsApi-CaI8RHWs.js';
33
+ import { u as useFetchConnectedAccounts } from './useAccountsApi-PGoHDLyL.js';
34
34
  import '@tanstack/react-query';
35
35
  import '@tanstack/react-query-devtools';
36
36
  import 'axios';
@@ -39,7 +39,7 @@ import '@bigbinary/neeto-molecules/DateFormat';
39
39
  import '@bigbinary/neetoui/Tag';
40
40
  import '@bigbinary/neetoui/Tooltip';
41
41
  import '@bigbinary/neeto-molecules/CopyToClipboardButton';
42
- import './queryConstants-aYVM1oL2.js';
42
+ import './queryConstants-DFKKEEo0.js';
43
43
 
44
44
  var TAB = {
45
45
  all: "all",
@@ -9,7 +9,7 @@ import axios from 'axios';
9
9
  import { B as BASE_URL } from './index-DWY7rHan.js';
10
10
  import { useQuery } from '@tanstack/react-query';
11
11
  import { isNotNil } from 'ramda';
12
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
12
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
13
13
  import { jsx, jsxs } from 'react/jsx-runtime';
14
14
  import 'i18next';
15
15
  import '@bigbinary/neeto-commons-frontend/constants';
@@ -5,7 +5,7 @@ import { useQuery } from '@tanstack/react-query';
5
5
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
6
6
  import axios from 'axios';
7
7
  import { B as BASE_URL } from './index-DWY7rHan.js';
8
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
8
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
9
9
  import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
10
10
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
11
11
  import Form from '@bigbinary/neetoui/formik/Form';
@@ -12,7 +12,7 @@ import { E as ExportModal } from './ExportModal-DaLJ7KS6.js';
12
12
  import { useQuery } from '@tanstack/react-query';
13
13
  import axios from 'axios';
14
14
  import { B as BASE_URL, r as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE, s as formatAmount, t as formatCurrency, v as getUniquePaymentProviders, w as buildDefaultTableColumns, S as SORT_DIRECTIONS, x as processDataIndex, y as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, o as DEFAULT_PAGE_VALUES, z as DASHBOARD_KIND } from './index-DWY7rHan.js';
15
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
15
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
16
16
  import { t } from 'i18next';
17
17
  import { toLabelAndValue, isNotPresent, snakeToCamelCase, humanize, isPresent, camelToSnakeCase } from '@bigbinary/neeto-cist';
18
18
  import { useTableConfigurations } from '@bigbinary/neeto-molecules/Columns';
@@ -30,7 +30,7 @@ import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
30
30
  import Table from '@bigbinary/neetoui/Table';
31
31
  import NoData from '@bigbinary/neetoui/NoData';
32
32
  import Spinner from '@bigbinary/neetoui/Spinner';
33
- import { b as useFetchStripePayouts, c as useFetchStripePlatformPayouts } from './usePlatformApi-DsH6LPXK.js';
33
+ import { b as useFetchStripePayouts, c as useFetchStripePlatformPayouts } from './usePlatformApi-DBENGjOP.js';
34
34
  import '@tanstack/react-query';
35
35
  import '@tanstack/react-query-devtools';
36
36
  import 'axios';
@@ -40,7 +40,7 @@ import '@bigbinary/neetoui/Tag';
40
40
  import '@bigbinary/neetoui/Tooltip';
41
41
  import '@bigbinary/neeto-molecules/CopyToClipboardButton';
42
42
  import 'qs';
43
- import './queryConstants-aYVM1oL2.js';
43
+ import './queryConstants-DFKKEEo0.js';
44
44
 
45
45
  var TAB = {
46
46
  all: "all",
@@ -5,7 +5,7 @@ import Typography from '@bigbinary/neetoui/Typography';
5
5
  import { useTranslation } from 'react-i18next';
6
6
  import { useParams } from 'react-router-dom/cjs/react-router-dom';
7
7
  import { r as renderStatus, a as renderDate } from './renderFunctions-DeEeLQ1Y.js';
8
- import { u as useShowStripePayout, a as useShowStripePlatformPayout } from './usePlatformApi-DsH6LPXK.js';
8
+ import { u as useShowStripePayout, a as useShowStripePlatformPayout } from './usePlatformApi-DBENGjOP.js';
9
9
  import Button from '@bigbinary/neetoui/Button';
10
10
  import { C as CopyButtonWrapper } from './CopyButtonWrapper-B79WRogM.js';
11
11
  import { n as buildStripePayoutLink } from './index-DWY7rHan.js';
@@ -21,7 +21,7 @@ import '@tanstack/react-query';
21
21
  import '@bigbinary/neeto-commons-frontend/react-utils';
22
22
  import 'axios';
23
23
  import 'qs';
24
- import './queryConstants-aYVM1oL2.js';
24
+ import './queryConstants-DFKKEEo0.js';
25
25
  import '@bigbinary/neeto-commons-frontend/constants';
26
26
  import 'decimal.js';
27
27
  import '@bigbinary/neeto-commons-frontend/utils';
@@ -13,8 +13,8 @@ import Spinner from '@bigbinary/neetoui/Spinner';
13
13
  import Button from '@bigbinary/neetoui/Button';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useHistory } from 'react-router-dom';
16
- import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-BjpHElsW.js';
17
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
16
+ import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-C_P6r2ww.js';
17
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
18
18
  import { E as ERROR_TYPE, M as MAX_POLLING_TIME, P as POLLING_INTERVAL } from './index-DWY7rHan.js';
19
19
  import { jsxs, jsx } from 'react/jsx-runtime';
20
20
  import '@babel/runtime/helpers/defineProperty';
@@ -0,0 +1,225 @@
1
+ import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
2
+ import { PhoneNumberInput } from '@bigbinary/neeto-molecules/PhoneNumber';
3
+ import Spinner from '@bigbinary/neetoui/Spinner';
4
+ import Label from '@bigbinary/neetoui/Label';
5
+ import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
6
+ import Form from '@bigbinary/neetoui/formik/Form';
7
+ import Input from '@bigbinary/neetoui/formik/Input';
8
+ import Select from '@bigbinary/neetoui/formik/Select';
9
+ import { useTranslation } from 'react-i18next';
10
+ import { useHistory } from 'react-router-dom';
11
+ import { useQuery } from '@tanstack/react-query';
12
+ import axios from 'axios';
13
+ import { B as BASE_URL } from './index-DWY7rHan.js';
14
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
15
+ import { humanize } from '@bigbinary/neeto-cist';
16
+ import { jsx, jsxs } from 'react/jsx-runtime';
17
+ import 'i18next';
18
+ import '@bigbinary/neeto-commons-frontend/constants';
19
+ import 'decimal.js';
20
+ import '@bigbinary/neeto-commons-frontend/utils';
21
+ import 'ramda';
22
+
23
+ var list$1 = function list() {
24
+ return axios.get("".concat(BASE_URL, "/api/v1/razorpay/business_categories"));
25
+ };
26
+ var businessCategoriesApi = {
27
+ list: list$1
28
+ };
29
+
30
+ var useFetchBusinessCategories = function useFetchBusinessCategories() {
31
+ return useQuery({
32
+ queryKey: [QUERY_KEYS.BUSINESS_CATEGORIES_LIST],
33
+ queryFn: businessCategoriesApi.list
34
+ });
35
+ };
36
+
37
+ var list = function list() {
38
+ return axios.get("".concat(BASE_URL, "/api/v1/razorpay/business_types"));
39
+ };
40
+ var businessTypesApi = {
41
+ list: list
42
+ };
43
+
44
+ var useFetchBusinessTypes = function useFetchBusinessTypes() {
45
+ return useQuery({
46
+ queryKey: [QUERY_KEYS.BUSINESS_TYPES_LIST],
47
+ queryFn: businessTypesApi.list
48
+ });
49
+ };
50
+
51
+ var INITIAL_VALUES = {
52
+ email: "",
53
+ phone_number: "",
54
+ legal_business_name: "",
55
+ subcategory: "",
56
+ business_type: "",
57
+ category: "",
58
+ business_legal_info: {
59
+ pan: "",
60
+ gst: ""
61
+ }
62
+ };
63
+
64
+ var getBusinessCategoriesOptions = function getBusinessCategoriesOptions(businessCategories) {
65
+ return businessCategories === null || businessCategories === void 0 ? void 0 : businessCategories.map(function (_ref) {
66
+ var id = _ref.id,
67
+ name = _ref.name;
68
+ return {
69
+ label: humanize(name),
70
+ value: id
71
+ };
72
+ });
73
+ };
74
+ var getBusinessSubcategoriesOptions = function getBusinessSubcategoriesOptions(businessCategories, category) {
75
+ var _businessCategories$f;
76
+ return businessCategories === null || businessCategories === void 0 || (_businessCategories$f = businessCategories.find(function (_ref2) {
77
+ var id = _ref2.id;
78
+ return id === category;
79
+ })) === null || _businessCategories$f === void 0 || (_businessCategories$f = _businessCategories$f.subcategories) === null || _businessCategories$f === void 0 ? void 0 : _businessCategories$f.map(function (_ref3) {
80
+ var id = _ref3.id,
81
+ name = _ref3.name;
82
+ return {
83
+ label: humanize(name),
84
+ value: id
85
+ };
86
+ });
87
+ };
88
+ var getBusinessTypesOptions = function getBusinessTypesOptions(businessTypes) {
89
+ return businessTypes === null || businessTypes === void 0 ? void 0 : businessTypes.map(function (_ref4) {
90
+ var id = _ref4.id,
91
+ name = _ref4.name;
92
+ return {
93
+ label: humanize(name),
94
+ value: id
95
+ };
96
+ });
97
+ };
98
+
99
+ var RazorpayLinkedAccountForm = function RazorpayLinkedAccountForm() {
100
+ var _useTranslation = useTranslation(),
101
+ t = _useTranslation.t;
102
+ var history = useHistory();
103
+ var _useFetchBusinessType = useFetchBusinessTypes(),
104
+ isBusinessTypesLoading = _useFetchBusinessType.isLoading,
105
+ _useFetchBusinessType2 = _useFetchBusinessType.data,
106
+ _useFetchBusinessType3 = _useFetchBusinessType2 === void 0 ? {} : _useFetchBusinessType2,
107
+ businessTypes = _useFetchBusinessType3.businessTypes;
108
+ var _useFetchBusinessCate = useFetchBusinessCategories(),
109
+ isLoading = _useFetchBusinessCate.isLoading,
110
+ _useFetchBusinessCate2 = _useFetchBusinessCate.data,
111
+ _useFetchBusinessCate3 = _useFetchBusinessCate2 === void 0 ? {} : _useFetchBusinessCate2,
112
+ businessCategories = _useFetchBusinessCate3.businessCategories;
113
+ if (isLoading || isBusinessTypesLoading) {
114
+ return /*#__PURE__*/jsx("div", {
115
+ className: "flex items-center justify-center w-full h-full",
116
+ children: /*#__PURE__*/jsx(Spinner, {})
117
+ });
118
+ }
119
+ return /*#__PURE__*/jsx(Form, {
120
+ className: "w-full",
121
+ formikProps: {
122
+ initialValues: INITIAL_VALUES,
123
+ onSubmit: function onSubmit() {}
124
+ // validationSchema: VALIDATION_SCHEMA,
125
+ },
126
+ children: function children(_ref) {
127
+ var values = _ref.values,
128
+ dirty = _ref.dirty,
129
+ setFieldValue = _ref.setFieldValue;
130
+ return /*#__PURE__*/jsx(CardLayout, {
131
+ actionBlock: /*#__PURE__*/jsx(ActionBlock, {
132
+ cancelButtonProps: {
133
+ onClick: history.goBack
134
+ }
135
+ // isSubmitting={isCreatingVpa}
136
+ ,
137
+ submitButtonProps: {
138
+ label: t("neetoPayments.common.submit"),
139
+ disabled: !dirty
140
+ }
141
+ }),
142
+ children: /*#__PURE__*/jsxs("div", {
143
+ className: "flex flex-col space-y-4",
144
+ children: [/*#__PURE__*/jsx(Input, {
145
+ required: true,
146
+ className: "w-full",
147
+ label: t("neetoPayments.linkedAccount.form.labels.email"),
148
+ name: "email",
149
+ placeholder: t("neetoPayments.linkedAccount.form.placeholders.email")
150
+ }), /*#__PURE__*/jsx(PhoneNumberInput, {
151
+ required: true,
152
+ showEmoji: true,
153
+ className: "w-full",
154
+ label: t("neetoPayments.linkedAccount.form.labels.phoneNumber"),
155
+ name: "phone_number",
156
+ placeholder: t("neetoPayments.linkedAccount.form.placeholders.phoneNumber")
157
+ }), /*#__PURE__*/jsx(Input, {
158
+ required: true,
159
+ className: "w-full",
160
+ label: t("neetoPayments.linkedAccount.form.labels.businessName"),
161
+ name: "legal_business_name",
162
+ placeholder: t("neetoPayments.linkedAccount.form.placeholders.businessName")
163
+ }), /*#__PURE__*/jsx(Select, {
164
+ required: true,
165
+ className: "w-full",
166
+ label: t("neetoPayments.linkedAccount.form.labels.businessType"),
167
+ name: "business_type",
168
+ options: getBusinessTypesOptions(businessTypes),
169
+ placeholder: t("neetoPayments.linkedAccount.form.placeholders.businessType"),
170
+ onChange: function onChange(_ref2) {
171
+ var value = _ref2.value;
172
+ return setFieldValue("business_type", value);
173
+ }
174
+ }), /*#__PURE__*/jsxs("div", {
175
+ className: "flex space-x-4",
176
+ children: [/*#__PURE__*/jsx(Select, {
177
+ required: true,
178
+ className: "w-full",
179
+ label: t("neetoPayments.linkedAccount.form.labels.category"),
180
+ name: "category",
181
+ options: getBusinessCategoriesOptions(businessCategories),
182
+ placeholder: t("neetoPayments.linkedAccount.form.placeholders.category"),
183
+ onChange: function onChange(_ref3) {
184
+ var value = _ref3.value;
185
+ return setFieldValue("category", value);
186
+ }
187
+ }), /*#__PURE__*/jsx(Select, {
188
+ required: true,
189
+ className: "w-full",
190
+ disabled: !values.category,
191
+ label: t("neetoPayments.linkedAccount.form.labels.subcategory"),
192
+ name: "subcategory",
193
+ options: getBusinessSubcategoriesOptions(businessCategories, values.category),
194
+ placeholder: t("neetoPayments.linkedAccount.form.placeholders.subcategory"),
195
+ onChange: function onChange(_ref4) {
196
+ var value = _ref4.value;
197
+ return setFieldValue("subcategory", value);
198
+ }
199
+ })]
200
+ }), /*#__PURE__*/jsx(Label, {
201
+ children: t("neetoPayments.linkedAccount.form.labels.businessLegalInfo")
202
+ }), /*#__PURE__*/jsxs("div", {
203
+ className: "flex space-x-4",
204
+ children: [/*#__PURE__*/jsx(Input, {
205
+ required: true,
206
+ className: "w-full",
207
+ label: t("neetoPayments.linkedAccount.form.labels.pan"),
208
+ name: "business_legal_info.pan",
209
+ placeholder: t("neetoPayments.linkedAccount.form.placeholders.pan")
210
+ }), /*#__PURE__*/jsx(Input, {
211
+ required: true,
212
+ className: "w-full",
213
+ label: t("neetoPayments.linkedAccount.form.labels.gst"),
214
+ name: "business_legal_info.gst",
215
+ placeholder: t("neetoPayments.linkedAccount.form.placeholders.gst")
216
+ })]
217
+ })]
218
+ })
219
+ });
220
+ }
221
+ });
222
+ };
223
+
224
+ export { RazorpayLinkedAccountForm as default };
225
+ //# sourceMappingURL=RazorpayLinkedAccountForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RazorpayLinkedAccountForm.js","sources":["../app/javascript/src/apis/business_categories.js","../app/javascript/src/hooks/reactQuery/useBusinessCategoriesApi.js","../app/javascript/src/apis/business_types.js","../app/javascript/src/hooks/reactQuery/useBusinessTypesApi.js","../app/javascript/src/components/RazorpayLinkedAccountForm/constants.js","../app/javascript/src/components/RazorpayLinkedAccountForm/utils.js","../app/javascript/src/components/RazorpayLinkedAccountForm/index.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst list = () => axios.get(`${BASE_URL}/api/v1/razorpay/business_categories`);\n\nconst businessCategoriesApi = { list };\n\nexport default businessCategoriesApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport businessCategoriesApi from \"apis/business_categories\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchBusinessCategories = () =>\n useQuery({\n queryKey: [QUERY_KEYS.BUSINESS_CATEGORIES_LIST],\n queryFn: businessCategoriesApi.list,\n });\n","import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst list = () => axios.get(`${BASE_URL}/api/v1/razorpay/business_types`);\n\nconst businessTypesApi = { list };\n\nexport default businessTypesApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport businessTypesApi from \"apis/business_types\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\n\nexport const useFetchBusinessTypes = () =>\n useQuery({\n queryKey: [QUERY_KEYS.BUSINESS_TYPES_LIST],\n queryFn: businessTypesApi.list,\n });\n","export const INITIAL_VALUES = {\n email: \"\",\n phone_number: \"\",\n legal_business_name: \"\",\n subcategory: \"\",\n business_type: \"\",\n category: \"\",\n business_legal_info: { pan: \"\", gst: \"\" },\n};\n","import { humanize } from \"neetocist\";\n\nexport const getBusinessCategoriesOptions = businessCategories =>\n businessCategories?.map(({ id, name }) => ({\n label: humanize(name),\n value: id,\n }));\n\nexport const getBusinessSubcategoriesOptions = (businessCategories, category) =>\n businessCategories\n ?.find(({ id }) => id === category)\n ?.subcategories?.map(({ id, name }) => ({\n label: humanize(name),\n value: id,\n }));\n\nexport const getBusinessTypesOptions = businessTypes =>\n businessTypes?.map(({ id, name }) => ({\n label: humanize(name),\n value: id,\n }));\n","import CardLayout from \"neetomolecules/CardLayout\";\nimport { PhoneNumberInput } from \"neetomolecules/PhoneNumber\";\nimport { Spinner, Label } from \"neetoui\";\nimport { ActionBlock, Form, Input, Select } from \"neetoui/formik\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { useFetchBusinessCategories } from \"hooks/reactQuery/useBusinessCategoriesApi\";\nimport { useFetchBusinessTypes } from \"hooks/reactQuery/useBusinessTypesApi\";\n\nimport { INITIAL_VALUES } from \"./constants\";\nimport {\n getBusinessCategoriesOptions,\n getBusinessSubcategoriesOptions,\n getBusinessTypesOptions,\n} from \"./utils\";\n\nconst RazorpayLinkedAccountForm = () => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const { isLoading: isBusinessTypesLoading, data: { businessTypes } = {} } =\n useFetchBusinessTypes();\n\n const { isLoading, data: { businessCategories } = {} } =\n useFetchBusinessCategories();\n\n if (isLoading || isBusinessTypesLoading) {\n return (\n <div className=\"flex items-center justify-center w-full h-full\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <Form\n className=\"w-full\"\n formikProps={{\n initialValues: INITIAL_VALUES,\n onSubmit: () => {},\n // validationSchema: VALIDATION_SCHEMA,\n }}\n >\n {({ values, dirty, setFieldValue }) => (\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: history.goBack }}\n // isSubmitting={isCreatingVpa}\n submitButtonProps={{\n label: t(\"neetoPayments.common.submit\"),\n disabled: !dirty,\n }}\n />\n }\n >\n <div className=\"flex flex-col space-y-4\">\n <Input\n required\n className=\"w-full\"\n label={t(\"neetoPayments.linkedAccount.form.labels.email\")}\n name=\"email\"\n placeholder={t(\n \"neetoPayments.linkedAccount.form.placeholders.email\"\n )}\n />\n <PhoneNumberInput\n required\n showEmoji\n className=\"w-full\"\n label={t(\"neetoPayments.linkedAccount.form.labels.phoneNumber\")}\n name=\"phone_number\"\n placeholder={t(\n \"neetoPayments.linkedAccount.form.placeholders.phoneNumber\"\n )}\n />\n <Input\n required\n className=\"w-full\"\n label={t(\"neetoPayments.linkedAccount.form.labels.businessName\")}\n name=\"legal_business_name\"\n placeholder={t(\n \"neetoPayments.linkedAccount.form.placeholders.businessName\"\n )}\n />\n <Select\n required\n className=\"w-full\"\n label={t(\"neetoPayments.linkedAccount.form.labels.businessType\")}\n name=\"business_type\"\n options={getBusinessTypesOptions(businessTypes)}\n placeholder={t(\n \"neetoPayments.linkedAccount.form.placeholders.businessType\"\n )}\n onChange={({ value }) => setFieldValue(\"business_type\", value)}\n />\n <div className=\"flex space-x-4\">\n <Select\n required\n className=\"w-full\"\n label={t(\"neetoPayments.linkedAccount.form.labels.category\")}\n name=\"category\"\n options={getBusinessCategoriesOptions(businessCategories)}\n placeholder={t(\n \"neetoPayments.linkedAccount.form.placeholders.category\"\n )}\n onChange={({ value }) => setFieldValue(\"category\", value)}\n />\n <Select\n required\n className=\"w-full\"\n disabled={!values.category}\n label={t(\"neetoPayments.linkedAccount.form.labels.subcategory\")}\n name=\"subcategory\"\n options={getBusinessSubcategoriesOptions(\n businessCategories,\n values.category\n )}\n placeholder={t(\n \"neetoPayments.linkedAccount.form.placeholders.subcategory\"\n )}\n onChange={({ value }) => setFieldValue(\"subcategory\", value)}\n />\n </div>\n <Label>\n {t(\"neetoPayments.linkedAccount.form.labels.businessLegalInfo\")}\n </Label>\n <div className=\"flex space-x-4\">\n <Input\n required\n className=\"w-full\"\n label={t(\"neetoPayments.linkedAccount.form.labels.pan\")}\n name=\"business_legal_info.pan\"\n placeholder={t(\n \"neetoPayments.linkedAccount.form.placeholders.pan\"\n )}\n />\n <Input\n required\n className=\"w-full\"\n label={t(\"neetoPayments.linkedAccount.form.labels.gst\")}\n name=\"business_legal_info.gst\"\n placeholder={t(\n \"neetoPayments.linkedAccount.form.placeholders.gst\"\n )}\n />\n </div>\n </div>\n </CardLayout>\n )}\n </Form>\n );\n};\nexport default RazorpayLinkedAccountForm;\n"],"names":["list","axios","get","concat","BASE_URL","businessCategoriesApi","useFetchBusinessCategories","useQuery","queryKey","QUERY_KEYS","BUSINESS_CATEGORIES_LIST","queryFn","businessTypesApi","useFetchBusinessTypes","BUSINESS_TYPES_LIST","INITIAL_VALUES","email","phone_number","legal_business_name","subcategory","business_type","category","business_legal_info","pan","gst","getBusinessCategoriesOptions","businessCategories","map","_ref","id","name","label","humanize","value","getBusinessSubcategoriesOptions","_businessCategories$f","find","_ref2","subcategories","_ref3","getBusinessTypesOptions","businessTypes","_ref4","RazorpayLinkedAccountForm","_useTranslation","useTranslation","t","history","useHistory","_useFetchBusinessType","isBusinessTypesLoading","isLoading","_useFetchBusinessType2","data","_useFetchBusinessType3","_useFetchBusinessCate","_useFetchBusinessCate2","_useFetchBusinessCate3","_jsx","className","children","Spinner","Form","formikProps","initialValues","onSubmit","values","dirty","setFieldValue","CardLayout","actionBlock","ActionBlock","cancelButtonProps","onClick","goBack","submitButtonProps","disabled","_jsxs","Input","required","placeholder","PhoneNumberInput","showEmoji","Select","options","onChange","Label"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAI,GAAG,SAAPA,IAAIA,GAAA;EAAA,OAASC,KAAK,CAACC,GAAG,CAAA,EAAA,CAAAC,MAAA,CAAIC,QAAQ,yCAAsC,CAAC;AAAA,CAAA;AAE/E,IAAMC,qBAAqB,GAAG;AAAEL,EAAAA,IAAI,EAAJA;AAAK,CAAC;;ACD/B,IAAMM,0BAA0B,GAAG,SAA7BA,0BAA0BA,GAAA;AAAA,EAAA,OACrCC,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,UAAU,CAACC,wBAAwB,CAAC;IAC/CC,OAAO,EAAEN,qBAAqB,CAACL;AACjC,GAAC,CAAC;AAAA,CAAA;;ACLJ,IAAMA,IAAI,GAAG,SAAPA,IAAIA,GAAA;EAAA,OAASC,KAAK,CAACC,GAAG,CAAA,EAAA,CAAAC,MAAA,CAAIC,QAAQ,oCAAiC,CAAC;AAAA,CAAA;AAE1E,IAAMQ,gBAAgB,GAAG;AAAEZ,EAAAA,IAAI,EAAJA;AAAK,CAAC;;ACD1B,IAAMa,qBAAqB,GAAG,SAAxBA,qBAAqBA,GAAA;AAAA,EAAA,OAChCN,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,UAAU,CAACK,mBAAmB,CAAC;IAC1CH,OAAO,EAAEC,gBAAgB,CAACZ;AAC5B,GAAC,CAAC;AAAA,CAAA;;ACTG,IAAMe,cAAc,GAAG;AAC5BC,EAAAA,KAAK,EAAE,EAAE;AACTC,EAAAA,YAAY,EAAE,EAAE;AAChBC,EAAAA,mBAAmB,EAAE,EA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AAA,KAAK,EAAEe,CAAC,CAAC,6CAA6C,CAAE;AACxDhB,cAAAA,IAAI,EAAC,yBAAyB;cAC9BkD,WAAW,EAAElC,CAAC,CACZ,mDACF;AAAE,aACH,CAAC,eACFY,GAAA,CAACoB,KAAK,EAAA;cACJC,QAAQ,EAAA,IAAA;AACRpB,cAAAA,SAAS,EAAC,QAAQ;AAClB5B,cAAAA,KAAK,EAAEe,CAAC,CAAC,6CAA6C,CAAE;AACxDhB,cAAAA,IAAI,EAAC,yBAAyB;cAC9BkD,WAAW,EAAElC,CAAC,CACZ,mDACF;AAAE,aACH,CAAC;AAAA,WACC,CAAC;SACH;AAAC,OACI,CAAC;AAAA;AACd,GACG,CAAC;AAEX;;;;"}
@@ -15,7 +15,7 @@ import { useQuery } from '@tanstack/react-query';
15
15
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
16
16
  import axios from 'axios';
17
17
  import { B as BASE_URL } from './index-DWY7rHan.js';
18
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
18
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
19
19
  import { t } from 'i18next';
20
20
  import * as yup from 'yup';
21
21
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -12,7 +12,7 @@ import { E as ExportModal } from './ExportModal-DaLJ7KS6.js';
12
12
  import { useQuery } from '@tanstack/react-query';
13
13
  import axios from 'axios';
14
14
  import { B as BASE_URL, r as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE, s as formatAmount, t as formatCurrency, w as buildDefaultTableColumns, S as SORT_DIRECTIONS, x as processDataIndex, A as ASSOCIATED_TABLE_COLUMNS, q as DEFAULT_SORT_PROPERTIES, y as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, o as DEFAULT_PAGE_VALUES, z as DASHBOARD_KIND } from './index-DWY7rHan.js';
15
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
15
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
16
16
  import { t } from 'i18next';
17
17
  import { toLabelAndValue, snakeToCamelCase, humanize, isPresent, isNotPresent, camelToSnakeCase } from '@bigbinary/neeto-cist';
18
18
  import { useTableConfigurations } from '@bigbinary/neeto-molecules/Columns';
@@ -13,7 +13,7 @@ import { useQuery } from '@tanstack/react-query';
13
13
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
14
14
  import axios from 'axios';
15
15
  import { B as BASE_URL, G as preProcessStatus, H as getTagStyle, s as formatAmount, t as formatCurrency, I as PAYMENT_KIND, S as SORT_DIRECTIONS, x as processDataIndex, q as DEFAULT_SORT_PROPERTIES, y as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, o as DEFAULT_PAGE_VALUES, z as DASHBOARD_KIND } from './index-DWY7rHan.js';
16
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
16
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
17
17
  import Modal from '@bigbinary/neetoui/Modal';
18
18
  import Typography from '@bigbinary/neetoui/Typography';
19
19
  import Form from '@bigbinary/neetoui/formik/Form';
@@ -7,7 +7,7 @@ import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/r
7
7
  import { isNotNil } from 'ramda';
8
8
  import axios from 'axios';
9
9
  import { B as BASE_URL } from './index-DWY7rHan.js';
10
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
10
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
11
11
  import { jsxs, jsx } from 'react/jsx-runtime';
12
12
  import 'i18next';
13
13
  import '@bigbinary/neeto-commons-frontend/constants';
@@ -11,7 +11,7 @@ import Stripe from '@bigbinary/neeto-icons/misc/Stripe';
11
11
  import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
12
12
  import Radio from '@bigbinary/neetoui/Radio';
13
13
  import Button from '@bigbinary/neetoui/Button';
14
- import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-BjpHElsW.js';
14
+ import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-C_P6r2ww.js';
15
15
  import { F as STRIPE_CONNECT_ENDPOINT, B as BASE_URL, P as POLLING_INTERVAL, E as ERROR_TYPE, M as MAX_POLLING_TIME } from './index-DWY7rHan.js';
16
16
  import { t } from 'i18next';
17
17
  import * as yup from 'yup';
@@ -20,10 +20,10 @@ import Spinner from '@bigbinary/neetoui/Spinner';
20
20
  import Select from '@bigbinary/neetoui/formik/Select';
21
21
  import Form from '@bigbinary/neetoui/formik/Form';
22
22
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
23
- import { a as useCreateStripeAccount, b as usePollingStripeAccountCreationStatus } from './useAccountsApi-CaI8RHWs.js';
23
+ import { a as useCreateStripeAccount, b as usePollingStripeAccountCreationStatus } from './useAccountsApi-PGoHDLyL.js';
24
24
  import { useQuery, useQueryClient } from '@tanstack/react-query';
25
25
  import axios from 'axios';
26
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
26
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
27
27
  import { useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
28
28
  import Typography from '@bigbinary/neetoui/Typography';
29
29
  import Callout from '@bigbinary/neetoui/Callout';
@@ -18,7 +18,7 @@ import '@bigbinary/neeto-commons-frontend/constants';
18
18
  import 'decimal.js';
19
19
  import '@bigbinary/neeto-cist';
20
20
  import '@bigbinary/neeto-commons-frontend/utils';
21
- import './queryConstants-aYVM1oL2.js';
21
+ import './queryConstants-DFKKEEo0.js';
22
22
 
23
23
  var StripeManage = withT(function (_ref) {
24
24
  var t = _ref.t,
@@ -16,7 +16,7 @@ import { useQuery } from '@tanstack/react-query';
16
16
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
17
17
  import axios from 'axios';
18
18
  import { B as BASE_URL } from './index-DWY7rHan.js';
19
- import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
19
+ import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
20
20
  import Label from '@bigbinary/neetoui/Label';
21
21
  import Typography from '@bigbinary/neetoui/Typography';
22
22
  import Pane from '@bigbinary/neetoui/Pane';
@@ -32,7 +32,7 @@ var TableWrapper = require('@bigbinary/neeto-molecules/TableWrapper');
32
32
  var Table = require('@bigbinary/neetoui/Table');
33
33
  var NoData = require('@bigbinary/neetoui/NoData');
34
34
  var Spinner = require('@bigbinary/neetoui/Spinner');
35
- var useAccountsApi = require('./useAccountsApi-CgULdRoC.js');
35
+ var useAccountsApi = require('./useAccountsApi-CJf2ILqh.js');
36
36
  require('@tanstack/react-query');
37
37
  require('@tanstack/react-query-devtools');
38
38
  require('axios');
@@ -41,7 +41,7 @@ require('@bigbinary/neeto-molecules/DateFormat');
41
41
  require('@bigbinary/neetoui/Tag');
42
42
  require('@bigbinary/neetoui/Tooltip');
43
43
  require('@bigbinary/neeto-molecules/CopyToClipboardButton');
44
- require('./queryConstants-DwAnNVdh.js');
44
+ require('./queryConstants-Cka1X6GX.js');
45
45
 
46
46
  var TAB = {
47
47
  all: "all",
@@ -11,7 +11,7 @@ var axios = require('axios');
11
11
  var constants = require('./index-KqkPP267.js');
12
12
  var reactQuery = require('@tanstack/react-query');
13
13
  var ramda = require('ramda');
14
- var queryConstants = require('./queryConstants-DwAnNVdh.js');
14
+ var queryConstants = require('./queryConstants-Cka1X6GX.js');
15
15
  var jsxRuntime = require('react/jsx-runtime');
16
16
  require('i18next');
17
17
  require('@bigbinary/neeto-commons-frontend/constants');
@@ -7,7 +7,7 @@ var reactQuery = require('@tanstack/react-query');
7
7
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
8
8
  var axios = require('axios');
9
9
  var constants = require('./index-KqkPP267.js');
10
- var queryConstants = require('./queryConstants-DwAnNVdh.js');
10
+ var queryConstants = require('./queryConstants-Cka1X6GX.js');
11
11
  var CardLayout = require('@bigbinary/neeto-molecules/CardLayout');
12
12
  var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
13
13
  var Form = require('@bigbinary/neetoui/formik/Form');
@@ -14,7 +14,7 @@ var ExportModal = require('./ExportModal-DUdQLJXl.js');
14
14
  var reactQuery = require('@tanstack/react-query');
15
15
  var axios = require('axios');
16
16
  var constants = require('./index-KqkPP267.js');
17
- var queryConstants = require('./queryConstants-DwAnNVdh.js');
17
+ var queryConstants = require('./queryConstants-Cka1X6GX.js');
18
18
  var i18next = require('i18next');
19
19
  var neetoCist = require('@bigbinary/neeto-cist');
20
20
  var Columns = require('@bigbinary/neeto-molecules/Columns');
@@ -32,7 +32,7 @@ var TableWrapper = require('@bigbinary/neeto-molecules/TableWrapper');
32
32
  var Table = require('@bigbinary/neetoui/Table');
33
33
  var NoData = require('@bigbinary/neetoui/NoData');
34
34
  var Spinner = require('@bigbinary/neetoui/Spinner');
35
- var usePlatformApi = require('./usePlatformApi-Bctdu9kJ.js');
35
+ var usePlatformApi = require('./usePlatformApi-CPdK_K-y.js');
36
36
  require('@tanstack/react-query');
37
37
  require('@tanstack/react-query-devtools');
38
38
  require('axios');
@@ -42,7 +42,7 @@ require('@bigbinary/neetoui/Tag');
42
42
  require('@bigbinary/neetoui/Tooltip');
43
43
  require('@bigbinary/neeto-molecules/CopyToClipboardButton');
44
44
  require('qs');
45
- require('./queryConstants-DwAnNVdh.js');
45
+ require('./queryConstants-Cka1X6GX.js');
46
46
 
47
47
  var TAB = {
48
48
  all: "all",
@@ -7,7 +7,7 @@ var Typography = require('@bigbinary/neetoui/Typography');
7
7
  var reactI18next = require('react-i18next');
8
8
  var reactRouterDom = require('react-router-dom/cjs/react-router-dom');
9
9
  var renderFunctions = require('./renderFunctions-JphAGmIF.js');
10
- var usePlatformApi = require('./usePlatformApi-Bctdu9kJ.js');
10
+ var usePlatformApi = require('./usePlatformApi-CPdK_K-y.js');
11
11
  var Button = require('@bigbinary/neetoui/Button');
12
12
  var CopyButtonWrapper = require('./CopyButtonWrapper-CzQmYDby.js');
13
13
  var constants = require('./index-KqkPP267.js');
@@ -23,7 +23,7 @@ require('@tanstack/react-query');
23
23
  require('@bigbinary/neeto-commons-frontend/react-utils');
24
24
  require('axios');
25
25
  require('qs');
26
- require('./queryConstants-DwAnNVdh.js');
26
+ require('./queryConstants-Cka1X6GX.js');
27
27
  require('@bigbinary/neeto-commons-frontend/constants');
28
28
  require('decimal.js');
29
29
  require('@bigbinary/neeto-commons-frontend/utils');
@@ -15,8 +15,8 @@ var Spinner = require('@bigbinary/neetoui/Spinner');
15
15
  var Button = require('@bigbinary/neetoui/Button');
16
16
  var reactI18next = require('react-i18next');
17
17
  var reactRouterDom = require('react-router-dom');
18
- var useIntegrationsApi = require('./useIntegrationsApi-DW9jhoBZ.js');
19
- var queryConstants = require('./queryConstants-DwAnNVdh.js');
18
+ var useIntegrationsApi = require('./useIntegrationsApi-BLP7KuIR.js');
19
+ var queryConstants = require('./queryConstants-Cka1X6GX.js');
20
20
  var constants = require('./index-KqkPP267.js');
21
21
  var jsxRuntime = require('react/jsx-runtime');
22
22
  require('@babel/runtime/helpers/defineProperty');