@bigbinary/neeto-payments-frontend 4.0.14 → 4.0.15

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 (117) hide show
  1. package/app/javascript/src/translations/en.json +6 -1
  2. package/dist/AccountsDashboard.js +4 -4
  3. package/dist/AdminCancelRecurringPaymentButton.js +1 -1
  4. package/dist/CashPaymentButton.js +2 -2
  5. package/dist/ConfirmCashPaymentButton.js +2 -2
  6. package/dist/CustomerCancelRecurringPaymentForm.js +1 -1
  7. package/dist/{ExportModal-De0800d-.js → ExportModal-BpfgeWqd.js} +2 -2
  8. package/dist/{ExportModal-De0800d-.js.map → ExportModal-BpfgeWqd.js.map} +1 -1
  9. package/dist/ManualUpiConnect.js +1 -1
  10. package/dist/ManualUpiPayment.js +2 -2
  11. package/dist/ManualUpiPaymentConfirmButton.js +2 -2
  12. package/dist/ManualUpiPaymentRejectButton.js +2 -2
  13. package/dist/PaymentsDashboard.js +2 -2
  14. package/dist/PayoutsDashboard.js +4 -4
  15. package/dist/PayoutsPage.js +3 -3
  16. package/dist/RazorpayConnect.js +118 -0
  17. package/dist/RazorpayConnect.js.map +1 -0
  18. package/dist/RazorpayPaymentButton.js +2 -2
  19. package/dist/RecurringPaymentSettings.js +1 -1
  20. package/dist/RefundsDashboard.js +2 -2
  21. package/dist/SplitTransfersDashboard.js +2 -2
  22. package/dist/StripeCheckoutSetting.js +1 -1
  23. package/dist/StripeConnect.js +36 -33
  24. package/dist/StripeConnect.js.map +1 -1
  25. package/dist/StripeManage.js +1 -1
  26. package/dist/TaxesDashboard.js +1 -1
  27. package/dist/buildStripeTransactionLink.js +1 -1
  28. package/dist/cjs/AccountsDashboard.js +4 -4
  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 +1 -1
  33. package/dist/cjs/{ExportModal-Cf1lT3Sz.js → ExportModal-Bp4g8_8E.js} +2 -2
  34. package/dist/cjs/{ExportModal-Cf1lT3Sz.js.map → ExportModal-Bp4g8_8E.js.map} +1 -1
  35. package/dist/cjs/ManualUpiConnect.js +1 -1
  36. package/dist/cjs/ManualUpiPayment.js +2 -2
  37. package/dist/cjs/ManualUpiPaymentConfirmButton.js +2 -2
  38. package/dist/cjs/ManualUpiPaymentRejectButton.js +2 -2
  39. package/dist/cjs/PaymentsDashboard.js +2 -2
  40. package/dist/cjs/PayoutsDashboard.js +4 -4
  41. package/dist/cjs/PayoutsPage.js +3 -3
  42. package/dist/cjs/RazorpayConnect.js +120 -0
  43. package/dist/cjs/RazorpayConnect.js.map +1 -0
  44. package/dist/cjs/RazorpayPaymentButton.js +2 -2
  45. package/dist/cjs/RecurringPaymentSettings.js +1 -1
  46. package/dist/cjs/RefundsDashboard.js +2 -2
  47. package/dist/cjs/SplitTransfersDashboard.js +2 -2
  48. package/dist/cjs/StripeCheckoutSetting.js +1 -1
  49. package/dist/cjs/StripeConnect.js +40 -37
  50. package/dist/cjs/StripeConnect.js.map +1 -1
  51. package/dist/cjs/StripeManage.js +1 -1
  52. package/dist/cjs/TaxesDashboard.js +1 -1
  53. package/dist/cjs/buildStripeTransactionLink.js +1 -1
  54. package/dist/cjs/constants.js +4 -1
  55. package/dist/cjs/constants.js.map +1 -1
  56. package/dist/cjs/{dashboard-CI6hWjt7.js → dashboard-BTXVWygp.js} +2 -2
  57. package/dist/cjs/{dashboard-CI6hWjt7.js.map → dashboard-BTXVWygp.js.map} +1 -1
  58. package/dist/cjs/getAddressElementOptions.js +1 -1
  59. package/dist/cjs/getAmountInSmallestCurrencyUnit.js +1 -1
  60. package/dist/cjs/getAmountWithAppliedTax.js +1 -1
  61. package/dist/cjs/getFormattedAmount.js +1 -1
  62. package/dist/cjs/getFormattedTaxAmount.js +1 -1
  63. package/dist/cjs/getFormattedTipAmount.js +1 -1
  64. package/dist/cjs/getQrCodeValue.js +1 -1
  65. package/dist/cjs/getTaxAmount.js +1 -1
  66. package/dist/cjs/getTipAmount.js +1 -1
  67. package/dist/cjs/{index-ClFYh1ea.js → index-1L4yyXWD.js} +9 -1
  68. package/dist/cjs/{index-ClFYh1ea.js.map → index-1L4yyXWD.js.map} +1 -1
  69. package/dist/cjs/index.js +15 -11
  70. package/dist/cjs/index.js.map +1 -1
  71. package/dist/cjs/{renderFunctions-CVEyRDPb.js → renderFunctions-B2zEhpSO.js} +2 -2
  72. package/dist/cjs/{renderFunctions-CVEyRDPb.js.map → renderFunctions-B2zEhpSO.js.map} +1 -1
  73. package/dist/cjs/{useAccountsApi-DKvGpToi.js → useAccountsApi-BucNBXKk.js} +2 -2
  74. package/dist/cjs/{useAccountsApi-DKvGpToi.js.map → useAccountsApi-BucNBXKk.js.map} +1 -1
  75. package/dist/cjs/useIntegrationsApi-BHszs-M2.js +26 -0
  76. package/dist/cjs/useIntegrationsApi-BHszs-M2.js.map +1 -0
  77. package/dist/cjs/{usePaymentApi-C9guUEzI.js → usePaymentApi-BSULbCh8.js} +2 -2
  78. package/dist/cjs/{usePaymentApi-C9guUEzI.js.map → usePaymentApi-BSULbCh8.js.map} +1 -1
  79. package/dist/cjs/{usePaymentApi-CVIDI82X.js → usePaymentApi-CnBeDZo6.js} +2 -2
  80. package/dist/cjs/{usePaymentApi-CVIDI82X.js.map → usePaymentApi-CnBeDZo6.js.map} +1 -1
  81. package/dist/cjs/{usePaymentApi-dx2faIuU.js → usePaymentApi-kQnd_kt3.js} +2 -2
  82. package/dist/cjs/{usePaymentApi-dx2faIuU.js.map → usePaymentApi-kQnd_kt3.js.map} +1 -1
  83. package/dist/cjs/{usePlatformApi-Dq4kyldq.js → usePlatformApi-BhaBAUO9.js} +2 -2
  84. package/dist/cjs/{usePlatformApi-Dq4kyldq.js.map → usePlatformApi-BhaBAUO9.js.map} +1 -1
  85. package/dist/cjs/useRazorpayPayment.js +2 -2
  86. package/dist/constants.js +1 -1
  87. package/dist/{dashboard-CPslgqQz.js → dashboard-CLd-BWPH.js} +2 -2
  88. package/dist/{dashboard-CPslgqQz.js.map → dashboard-CLd-BWPH.js.map} +1 -1
  89. package/dist/getAddressElementOptions.js +1 -1
  90. package/dist/getAmountInSmallestCurrencyUnit.js +1 -1
  91. package/dist/getAmountWithAppliedTax.js +1 -1
  92. package/dist/getFormattedAmount.js +1 -1
  93. package/dist/getFormattedTaxAmount.js +1 -1
  94. package/dist/getFormattedTipAmount.js +1 -1
  95. package/dist/getQrCodeValue.js +1 -1
  96. package/dist/getTaxAmount.js +1 -1
  97. package/dist/getTipAmount.js +1 -1
  98. package/dist/{index-DYTssO0F.js → index-DP5UOpg-.js} +7 -2
  99. package/dist/{index-DYTssO0F.js.map → index-DP5UOpg-.js.map} +1 -1
  100. package/dist/index.js +14 -11
  101. package/dist/index.js.map +1 -1
  102. package/dist/{renderFunctions-b8vt6qyF.js → renderFunctions-BQohRlkO.js} +2 -2
  103. package/dist/{renderFunctions-b8vt6qyF.js.map → renderFunctions-BQohRlkO.js.map} +1 -1
  104. package/dist/{useAccountsApi-B_Wa7LFK.js → useAccountsApi-BtfqlOGM.js} +2 -2
  105. package/dist/{useAccountsApi-B_Wa7LFK.js.map → useAccountsApi-BtfqlOGM.js.map} +1 -1
  106. package/dist/useIntegrationsApi-BFnLyjT4.js +24 -0
  107. package/dist/useIntegrationsApi-BFnLyjT4.js.map +1 -0
  108. package/dist/{usePaymentApi-DUuETNIO.js → usePaymentApi-CIuiVkKG.js} +2 -2
  109. package/dist/{usePaymentApi-DUuETNIO.js.map → usePaymentApi-CIuiVkKG.js.map} +1 -1
  110. package/dist/{usePaymentApi-P2Ngyc4T.js → usePaymentApi-Cc_n0glW.js} +2 -2
  111. package/dist/{usePaymentApi-P2Ngyc4T.js.map → usePaymentApi-Cc_n0glW.js.map} +1 -1
  112. package/dist/{usePaymentApi-Bzm6iQEJ.js → usePaymentApi-DPSc1ubf.js} +2 -2
  113. package/dist/{usePaymentApi-Bzm6iQEJ.js.map → usePaymentApi-DPSc1ubf.js.map} +1 -1
  114. package/dist/{usePlatformApi-DDjX65Do.js → usePlatformApi--E27mv8k.js} +2 -2
  115. package/dist/{usePlatformApi-DDjX65Do.js.map → usePlatformApi--E27mv8k.js.map} +1 -1
  116. package/dist/useRazorpayPayment.js +2 -2
  117. package/package.json +14 -12
@@ -84,7 +84,8 @@
84
84
  "confirmPayment": "Confirm payment",
85
85
  "tipAmount": "Tip amount",
86
86
  "reject": "Reject",
87
- "tryAgain": "Try again"
87
+ "tryAgain": "Try again",
88
+ "processingFailed": "Processing failed"
88
89
  },
89
90
  "alert": {
90
91
  "stripe": {
@@ -554,6 +555,10 @@
554
555
  "failedProcessing": "Failed to verify your account. Please try again.",
555
556
  "accountNotActivated": "Your account is not activated. Please activate it to continue."
556
557
  },
558
+ "razorpayConnect": {
559
+ "title": "Connect your Razorpay account",
560
+ "failedButton": "Try again"
561
+ },
557
562
  "stripeManage": {
558
563
  "viewStripeDashboard": "View Stripe dashboard",
559
564
  "checkoutSettings": {
@@ -9,20 +9,20 @@ import SubHeader from '@bigbinary/neeto-molecules/SubHeader';
9
9
  import Tab from '@bigbinary/neetoui/Tab';
10
10
  import Typography from '@bigbinary/neetoui/Typography';
11
11
  import { useTranslation } from 'react-i18next';
12
- import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard-CPslgqQz.js';
12
+ import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard-CLd-BWPH.js';
13
13
  import { e as exportChannel, T as TABLE_KEYS } from './exportChannel-h2JJKPT1.js';
14
14
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
15
15
  import Download from '@bigbinary/neeto-icons/Download';
16
16
  import Button from '@bigbinary/neetoui/Button';
17
17
  import Modal from '@bigbinary/neetoui/Modal';
18
- import { u as uuidV4, m as buildStripeAccountLink, n as DEFAULT_SORT_PROPERTIES, S as SORT_DIRECTIONS } from './index-DYTssO0F.js';
18
+ import { u as uuidV4, m as buildStripeAccountLink, n as DEFAULT_SORT_PROPERTIES, S as SORT_DIRECTIONS } from './index-DP5UOpg-.js';
19
19
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
20
20
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
21
21
  import { getQueryParams, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
22
22
  import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
23
23
  import { pipe, split, map, join, mergeLeft, assoc } from 'ramda';
24
24
  import { useHistory } from 'react-router-dom';
25
- import { r as renderStatus, b as renderFullName, a as renderDate } from './renderFunctions-b8vt6qyF.js';
25
+ import { r as renderStatus, b as renderFullName, a as renderDate } from './renderFunctions-BQohRlkO.js';
26
26
  import { C as CopyButtonWrapper } from './CopyButtonWrapper-B79WRogM.js';
27
27
  import { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from '@bigbinary/neeto-commons-frontend/constants';
28
28
  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 { u as useFetchConnectedAccounts } from './useAccountsApi-B_Wa7LFK.js';
33
+ import { u as useFetchConnectedAccounts } from './useAccountsApi-BtfqlOGM.js';
34
34
  import '@tanstack/react-query';
35
35
  import '@tanstack/react-query-devtools';
36
36
  import 'axios';
@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';
6
6
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
7
7
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
8
8
  import axios from 'axios';
9
- import { B as BASE_URL } from './index-DYTssO0F.js';
9
+ import { B as BASE_URL } from './index-DP5UOpg-.js';
10
10
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
11
11
  import 'i18next';
12
12
  import '@bigbinary/neeto-commons-frontend/constants';
@@ -1,12 +1,12 @@
1
1
  import { noop } from '@bigbinary/neeto-cist';
2
2
  import Button from '@bigbinary/neetoui/Button';
3
3
  import { useTranslation } from 'react-i18next';
4
- import { u as useCreateCashPayment } from './usePaymentApi-P2Ngyc4T.js';
4
+ import { u as useCreateCashPayment } from './usePaymentApi-Cc_n0glW.js';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
  import '@babel/runtime/helpers/defineProperty';
7
7
  import '@tanstack/react-query';
8
8
  import 'axios';
9
- import './index-DYTssO0F.js';
9
+ import './index-DP5UOpg-.js';
10
10
  import 'i18next';
11
11
  import '@bigbinary/neeto-commons-frontend/constants';
12
12
  import 'decimal.js';
@@ -8,12 +8,12 @@ import Form from '@bigbinary/neetoui/formik/Form';
8
8
  import Textarea from '@bigbinary/neetoui/formik/Textarea';
9
9
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
10
10
  import { useTranslation } from 'react-i18next';
11
- import { a as useUpdateCashPayment } from './usePaymentApi-P2Ngyc4T.js';
11
+ import { a as useUpdateCashPayment } from './usePaymentApi-Cc_n0glW.js';
12
12
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
13
13
  import '@babel/runtime/helpers/defineProperty';
14
14
  import '@tanstack/react-query';
15
15
  import 'axios';
16
- import './index-DYTssO0F.js';
16
+ import './index-DP5UOpg-.js';
17
17
  import 'i18next';
18
18
  import '@bigbinary/neeto-commons-frontend/constants';
19
19
  import 'decimal.js';
@@ -6,7 +6,7 @@ import Button from '@bigbinary/neetoui/formik/Button';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
8
8
  import axios from 'axios';
9
- import { B as BASE_URL } from './index-DYTssO0F.js';
9
+ import { B as BASE_URL } from './index-DP5UOpg-.js';
10
10
  import { useQuery } from '@tanstack/react-query';
11
11
  import { isNotNil } from 'ramda';
12
12
  import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
@@ -10,7 +10,7 @@ import { mergeLeft } from 'ramda';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import { useMutation } from '@tanstack/react-query';
12
12
  import axios from 'axios';
13
- import { B as BASE_URL, u as uuidV4 } from './index-DYTssO0F.js';
13
+ import { B as BASE_URL, u as uuidV4 } from './index-DP5UOpg-.js';
14
14
  import { e as exportChannel } from './exportChannel-h2JJKPT1.js';
15
15
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
16
16
 
@@ -128,4 +128,4 @@ var ExportModal = function ExportModal(_ref) {
128
128
  };
129
129
 
130
130
  export { ExportModal as E };
131
- //# sourceMappingURL=ExportModal-De0800d-.js.map
131
+ //# sourceMappingURL=ExportModal-BpfgeWqd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExportModal-De0800d-.js","sources":["../app/javascript/src/apis/exports.js","../app/javascript/src/hooks/reactQuery/useExportsApi.js","../app/javascript/src/components/Common/ExportModal.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst create = payload =>\n axios.post(\n `${BASE_URL}/api/v1/exports`,\n { export: payload },\n { showToastr: false }\n );\n\nconst exportsApi = { create };\n\nexport default exportsApi;\n","import { useMutation } from \"@tanstack/react-query\";\n\nimport exportsApi from \"apis/exports\";\n\nexport const useExportsData = () =>\n useMutation({ mutationFn: exportsApi.create });\n","import { useEffect, useMemo, useState } from \"react\";\n\nimport { isPresent, camelToSnakeCase } from \"neetocist\";\nimport { getQueryParams } from \"neetocommons/utils\";\nimport { Download } from \"neetoicons\";\nimport { Button, Modal, Typography } from \"neetoui\";\nimport { mergeLeft } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useExportsData } from \"hooks/reactQuery/useExportsApi\";\nimport exportChannel from \"src/channels/exportChannel\";\nimport { uuidV4 } from \"utils\";\n\nconst ExportModal = ({\n filters,\n dashboardKind,\n holdableIds,\n sortProperties,\n isExportModalOpen,\n setIsExportModalOpen,\n}) => {\n const { t } = useTranslation();\n const [downloadUrl, setDownloadUrl] = useState(\"\");\n const [isGenerating, setIsGenerating] = useState(false);\n\n const { tab = \"all\" } = getQueryParams();\n\n const { mutate: exportsData } = useExportsData();\n\n const token = useMemo(\n () => `${dashboardKind}-report-${uuidV4()}`,\n [dashboardKind]\n );\n\n const receivedCallback = data => {\n if (!data.download_url) return;\n setDownloadUrl(data.download_url);\n setIsGenerating(false);\n };\n\n useEffect(() => {\n if (isExportModalOpen) {\n const channel = exportChannel(token, receivedCallback);\n setDownloadUrl(\"\");\n setIsGenerating(false);\n\n return () => {\n channel.disconnected();\n };\n }\n\n return undefined;\n }, [isExportModalOpen, token]);\n\n const onClose = () => setIsExportModalOpen(false);\n\n const handleExport = () => {\n setDownloadUrl(\"\");\n setIsGenerating(true);\n const payload = mergeLeft(sortProperties, {\n token,\n filters,\n tab,\n holdableIds,\n dashboard: camelToSnakeCase(dashboardKind),\n });\n\n exportsData(payload);\n };\n\n return (\n <Modal {...{ onClose }} isOpen={isExportModalOpen}>\n <Modal.Header>\n <Typography style=\"h2\">\n {t(`neetoPayments.export.title.${dashboardKind}`)}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n {isGenerating ? (\n <Typography style=\"body2\">\n {t(\"neetoPayments.export.pleaseWait\")}\n </Typography>\n ) : (\n <Typography style=\"body2\">\n {isPresent(downloadUrl)\n ? t(\"neetoPayments.export.fileReady\")\n : t(`neetoPayments.export.download.${dashboardKind}`)}\n </Typography>\n )}\n </Modal.Body>\n <Modal.Footer className=\"space-x-2\">\n {isPresent(downloadUrl) ? (\n <Button\n href={downloadUrl}\n icon={Download}\n label={t(\"neetoPayments.common.download\")}\n onClick={onClose}\n />\n ) : (\n <>\n <Button\n disabled={isGenerating}\n label={t(\"neetoPayments.common.cancel\")}\n style=\"tertiary\"\n onClick={onClose}\n />\n <Button\n disabled={isGenerating}\n label={t(\"neetoPayments.common.export\")}\n loading={isGenerating}\n onClick={handleExport}\n />\n </>\n )}\n </Modal.Footer>\n </Modal>\n );\n};\n\nexport default ExportModal;\n"],"names":["create","payload","axios","post","concat","BASE_URL","showToastr","exportsApi","useExportsData","useMutation","mutationFn","ExportModal","_ref","filters","dashboardKind","holdableIds","sortProperties","isExportModalOpen","setIsExportModalOpen","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","downloadUrl","setDownloadUrl","_useState3","_useState4","isGenerating","setIsGenerating","_getQueryParams","getQueryParams","_getQueryParams$tab","tab","_useExportsData","exportsData","mutate","token","useMemo","uuidV4","receivedCallback","data","download_url","useEffect","channel","exportChannel","disconnected","undefined","onClose","handleExport","mergeLeft","dashboard","camelToSnakeCase","_jsxs","Modal","isOpen","children","_jsx","Header","Typography","style","Body","isPresent","Footer","className","Button","href","icon","Download","label","onClick","_Fragment","disabled","loading"],"mappings":";;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,IAAAC,MAAA,CACLC,QAAQ,EACX,iBAAA,CAAA,EAAA;IAAE,QAAQJ,EAAAA;AAAQ,GAAC,EACnB;AAAEK,IAAAA,UAAU,EAAE;AAAM,GACtB,CAAC;AAAA,CAAA;AAEH,IAAMC,UAAU,GAAG;AAAEP,EAAAA,MAAM,EAANA;AAAO,CAAC;;ACPtB,IAAMQ,cAAc,GAAG,SAAjBA,cAAcA,GAAA;AAAA,EAAA,OACzBC,WAAW,CAAC;IAAEC,UAAU,EAAEH,UAAU,CAACP;AAAO,GAAC,CAAC;AAAA,CAAA;;ACQhD,IAAMW,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAOX;AAAA,EAAA,IANJC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IACPC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IACbC,WAAW,GAAAH,IAAA,CA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AA6B,CAAE;AACxCsD,UAAAA,OAAO,EAAE7C,YAAa;AACtB0C,UAAAA,OAAO,EAAErB;AAAa,SACvB,CAAC;OACF;AACH,KACW,CAAC;AAAA,GACV,CAAC;AAEZ;;;;"}
1
+ {"version":3,"file":"ExportModal-BpfgeWqd.js","sources":["../app/javascript/src/apis/exports.js","../app/javascript/src/hooks/reactQuery/useExportsApi.js","../app/javascript/src/components/Common/ExportModal.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { BASE_URL } from \"src/constants\";\n\nconst create = payload =>\n axios.post(\n `${BASE_URL}/api/v1/exports`,\n { export: payload },\n { showToastr: false }\n );\n\nconst exportsApi = { create };\n\nexport default exportsApi;\n","import { useMutation } from \"@tanstack/react-query\";\n\nimport exportsApi from \"apis/exports\";\n\nexport const useExportsData = () =>\n useMutation({ mutationFn: exportsApi.create });\n","import { useEffect, useMemo, useState } from \"react\";\n\nimport { isPresent, camelToSnakeCase } from \"neetocist\";\nimport { getQueryParams } from \"neetocommons/utils\";\nimport { Download } from \"neetoicons\";\nimport { Button, Modal, Typography } from \"neetoui\";\nimport { mergeLeft } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useExportsData } from \"hooks/reactQuery/useExportsApi\";\nimport exportChannel from \"src/channels/exportChannel\";\nimport { uuidV4 } from \"utils\";\n\nconst ExportModal = ({\n filters,\n dashboardKind,\n holdableIds,\n sortProperties,\n isExportModalOpen,\n setIsExportModalOpen,\n}) => {\n const { t } = useTranslation();\n const [downloadUrl, setDownloadUrl] = useState(\"\");\n const [isGenerating, setIsGenerating] = useState(false);\n\n const { tab = \"all\" } = getQueryParams();\n\n const { mutate: exportsData } = useExportsData();\n\n const token = useMemo(\n () => `${dashboardKind}-report-${uuidV4()}`,\n [dashboardKind]\n );\n\n const receivedCallback = data => {\n if (!data.download_url) return;\n setDownloadUrl(data.download_url);\n setIsGenerating(false);\n };\n\n useEffect(() => {\n if (isExportModalOpen) {\n const channel = exportChannel(token, receivedCallback);\n setDownloadUrl(\"\");\n setIsGenerating(false);\n\n return () => {\n channel.disconnected();\n };\n }\n\n return undefined;\n }, [isExportModalOpen, token]);\n\n const onClose = () => setIsExportModalOpen(false);\n\n const handleExport = () => {\n setDownloadUrl(\"\");\n setIsGenerating(true);\n const payload = mergeLeft(sortProperties, {\n token,\n filters,\n tab,\n holdableIds,\n dashboard: camelToSnakeCase(dashboardKind),\n });\n\n exportsData(payload);\n };\n\n return (\n <Modal {...{ onClose }} isOpen={isExportModalOpen}>\n <Modal.Header>\n <Typography style=\"h2\">\n {t(`neetoPayments.export.title.${dashboardKind}`)}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n {isGenerating ? (\n <Typography style=\"body2\">\n {t(\"neetoPayments.export.pleaseWait\")}\n </Typography>\n ) : (\n <Typography style=\"body2\">\n {isPresent(downloadUrl)\n ? t(\"neetoPayments.export.fileReady\")\n : t(`neetoPayments.export.download.${dashboardKind}`)}\n </Typography>\n )}\n </Modal.Body>\n <Modal.Footer className=\"space-x-2\">\n {isPresent(downloadUrl) ? (\n <Button\n href={downloadUrl}\n icon={Download}\n label={t(\"neetoPayments.common.download\")}\n onClick={onClose}\n />\n ) : (\n <>\n <Button\n disabled={isGenerating}\n label={t(\"neetoPayments.common.cancel\")}\n style=\"tertiary\"\n onClick={onClose}\n />\n <Button\n disabled={isGenerating}\n label={t(\"neetoPayments.common.export\")}\n loading={isGenerating}\n onClick={handleExport}\n />\n </>\n )}\n </Modal.Footer>\n </Modal>\n );\n};\n\nexport default ExportModal;\n"],"names":["create","payload","axios","post","concat","BASE_URL","showToastr","exportsApi","useExportsData","useMutation","mutationFn","ExportModal","_ref","filters","dashboardKind","holdableIds","sortProperties","isExportModalOpen","setIsExportModalOpen","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","downloadUrl","setDownloadUrl","_useState3","_useState4","isGenerating","setIsGenerating","_getQueryParams","getQueryParams","_getQueryParams$tab","tab","_useExportsData","exportsData","mutate","token","useMemo","uuidV4","receivedCallback","data","download_url","useEffect","channel","exportChannel","disconnected","undefined","onClose","handleExport","mergeLeft","dashboard","camelToSnakeCase","_jsxs","Modal","isOpen","children","_jsx","Header","Typography","style","Body","isPresent","Footer","className","Button","href","icon","Download","label","onClick","_Fragment","disabled","loading"],"mappings":";;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,IAAAC,MAAA,CACLC,QAAQ,EACX,iBAAA,CAAA,EAAA;IAAE,QAAQJ,EAAAA;AAAQ,GAAC,EACnB;AAAEK,IAAAA,UAAU,EAAE;AAAM,GACtB,CAAC;AAAA,CAAA;AAEH,IAAMC,UAAU,GAAG;AAAEP,EAAAA,MAAM,EAANA;AAAO,CAAC;;ACPtB,IAAMQ,cAAc,GAAG,SAAjBA,cAAcA,GAAA;AAAA,EAAA,OACzBC,WAAW,CAAC;IAAEC,UAAU,EAAEH,UAAU,CAACP;AAAO,GAAC,CAAC;AAAA,CAAA;;ACQhD,IAAMW,WAAW,GAAG,SAAdA,WAAWA,CAAAC,IAAA,EAOX;AAAA,EAAA,IANJC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IACPC,aAAa,GAAAF,IAAA,CAAbE,aAAa;IACbC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,cAAc,GAAAJ,IAAA,CAAdI,cAAc;IACdC,iBAAiB,GAAAL,IAAA,CAAjBK,iBAAiB;IACjBC,oBAAoB,GAAAN,IAAA,CAApBM,oBAAoB;AAEpB,EAAA,IAAAC,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;AACT,EAAA,IAAAC,SAAA,GAAsCC,QAAQ,CAAC,EAAE,CAAC;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA3CI,IAAAA,WAAW,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAA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AACtC,WAAW,CAAC,GACnBL,CAAC,CAAC,gCAAgC,CAAC,GACnCA,CAAC,CAAA,gCAAA,CAAAjB,MAAA,CAAkCU,aAAa,CAAE;OAC5C;AACb,KACS,CAAC,eACb6C,GAAA,CAACH,KAAK,CAACS,MAAM,EAAA;AAACC,MAAAA,SAAS,EAAC,WAAW;MAAAR,QAAA,EAChCM,SAAS,CAACtC,WAAW,CAAC,gBACrBiC,GAAA,CAACQ,MAAM,EAAA;AACLC,QAAAA,IAAI,EAAE1C,WAAY;AAClB2C,QAAAA,IAAI,EAAEC,QAAS;AACfC,QAAAA,KAAK,EAAElD,CAAC,CAAC,+BAA+B,CAAE;AAC1CmD,QAAAA,OAAO,EAAEtB;AAAQ,OAClB,CAAC,gBAEFK,IAAA,CAAAkB,QAAA,EAAA;QAAAf,QAAA,EAAA,cACEC,GAAA,CAACQ,MAAM,EAAA;AACLO,UAAAA,QAAQ,EAAE5C,YAAa;AACvByC,UAAAA,KAAK,EAAElD,CAAC,CAAC,6BAA6B,CAAE;AACxCyC,UAAAA,KAAK,EAAC,UAAU;AAChBU,UAAAA,OAAO,EAAEtB;AAAQ,SAClB,CAAC,eACFS,GAAA,CAACQ,MAAM,EAAA;AACLO,UAAAA,QAAQ,EAAE5C,YAAa;AACvByC,UAAAA,KAAK,EAAElD,CAAC,CAAC,6BAA6B,CAAE;AACxCsD,UAAAA,OAAO,EAAE7C,YAAa;AACtB0C,UAAAA,OAAO,EAAErB;AAAa,SACvB,CAAC;OACF;AACH,KACW,CAAC;AAAA,GACV,CAAC;AAEZ;;;;"}
@@ -4,7 +4,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
6
6
  import axios from 'axios';
7
- import { B as BASE_URL } from './index-DYTssO0F.js';
7
+ import { B as BASE_URL } from './index-DP5UOpg-.js';
8
8
  import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
9
9
  import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
10
10
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
@@ -7,8 +7,8 @@ import Input from '@bigbinary/neetoui/formik/Input';
7
7
  import QRCodeImage from 'qrcode.react';
8
8
  import { pluck } from 'ramda';
9
9
  import { useTranslation } from 'react-i18next';
10
- import { u as useCreateUpiPayment } from './usePaymentApi-DUuETNIO.js';
11
- import { i as getQrCodeValue } from './index-DYTssO0F.js';
10
+ import { u as useCreateUpiPayment } from './usePaymentApi-CIuiVkKG.js';
11
+ import { i as getQrCodeValue } from './index-DP5UOpg-.js';
12
12
  import { t } from 'i18next';
13
13
  import * as yup from 'yup';
14
14
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -10,7 +10,7 @@ import Select from '@bigbinary/neetoui/formik/Select';
10
10
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
11
11
  import { mergeLeft } from 'ramda';
12
12
  import { useTranslation } from 'react-i18next';
13
- import { a as useUpdateUpiPayment } from './usePaymentApi-DUuETNIO.js';
13
+ import { a as useUpdateUpiPayment } from './usePaymentApi-CIuiVkKG.js';
14
14
  import { t } from 'i18next';
15
15
  import * as yup from 'yup';
16
16
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -19,7 +19,7 @@ import '@babel/runtime/helpers/defineProperty';
19
19
  import '@tanstack/react-query';
20
20
  import '@bigbinary/neeto-commons-frontend/react-utils';
21
21
  import 'axios';
22
- import './index-DYTssO0F.js';
22
+ import './index-DP5UOpg-.js';
23
23
  import '@bigbinary/neeto-commons-frontend/constants';
24
24
  import 'decimal.js';
25
25
  import '@bigbinary/neeto-commons-frontend/utils';
@@ -8,14 +8,14 @@ import Form from '@bigbinary/neetoui/formik/Form';
8
8
  import Textarea from '@bigbinary/neetoui/formik/Textarea';
9
9
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
10
10
  import { useTranslation } from 'react-i18next';
11
- import { a as useUpdateUpiPayment } from './usePaymentApi-DUuETNIO.js';
11
+ import { a as useUpdateUpiPayment } from './usePaymentApi-CIuiVkKG.js';
12
12
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
13
13
  import '@babel/runtime/helpers/toConsumableArray';
14
14
  import '@babel/runtime/helpers/defineProperty';
15
15
  import '@tanstack/react-query';
16
16
  import '@bigbinary/neeto-commons-frontend/react-utils';
17
17
  import 'axios';
18
- import './index-DYTssO0F.js';
18
+ import './index-DP5UOpg-.js';
19
19
  import 'i18next';
20
20
  import '@bigbinary/neeto-commons-frontend/constants';
21
21
  import 'decimal.js';
@@ -8,10 +8,10 @@ import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
8
8
  import Spinner from '@bigbinary/neetoui/Spinner';
9
9
  import { map, curry, concat, mergeDeepWith, mergeLeft, reject, isNil, prop, isEmpty, modify } from 'ramda';
10
10
  import { useHistory } from 'react-router-dom';
11
- import { E as ExportModal } from './ExportModal-De0800d-.js';
11
+ import { E as ExportModal } from './ExportModal-BpfgeWqd.js';
12
12
  import { useQuery } from '@tanstack/react-query';
13
13
  import axios from 'axios';
14
- import { B as BASE_URL, P as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE, o as formatAmount, p as formatCurrency, q as getUniquePaymentProviders, r as buildDefaultTableColumns, S as SORT_DIRECTIONS, s as processDataIndex, t as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, l as DEFAULT_PAGE_VALUES, v as DASHBOARD_KIND } from './index-DYTssO0F.js';
14
+ import { B as BASE_URL, o as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE, p as formatAmount, q as formatCurrency, r as getUniquePaymentProviders, s as buildDefaultTableColumns, S as SORT_DIRECTIONS, t as processDataIndex, v as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, l as DEFAULT_PAGE_VALUES, w as DASHBOARD_KIND } from './index-DP5UOpg-.js';
15
15
  import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
16
16
  import { t } from 'i18next';
17
17
  import { toLabelAndValue, isNotPresent, snakeToCamelCase, humanize, isPresent, camelToSnakeCase } from '@bigbinary/neeto-cist';
@@ -8,13 +8,13 @@ import SubHeader from '@bigbinary/neeto-molecules/SubHeader';
8
8
  import Tab from '@bigbinary/neetoui/Tab';
9
9
  import Typography from '@bigbinary/neetoui/Typography';
10
10
  import { useTranslation } from 'react-i18next';
11
- import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard-CPslgqQz.js';
11
+ import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard-CLd-BWPH.js';
12
12
  import { e as exportChannel, T as TABLE_KEYS } from './exportChannel-h2JJKPT1.js';
13
13
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
14
14
  import Download from '@bigbinary/neeto-icons/Download';
15
15
  import Button from '@bigbinary/neetoui/Button';
16
16
  import Modal from '@bigbinary/neetoui/Modal';
17
- import { u as uuidV4, n as DEFAULT_SORT_PROPERTIES$1, S as SORT_DIRECTIONS } from './index-DYTssO0F.js';
17
+ import { u as uuidV4, n as DEFAULT_SORT_PROPERTIES$1, S as SORT_DIRECTIONS } from './index-DP5UOpg-.js';
18
18
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
19
19
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
20
20
  import { camelToSnakeCase, removeBy, snakeToCamelCase, isPresent } from '@bigbinary/neeto-cist';
@@ -22,7 +22,7 @@ import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/util
22
22
  import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
23
23
  import { curry, assoc, insert, mergeLeft } from 'ramda';
24
24
  import { useHistory } from 'react-router-dom';
25
- import { r as renderStatus, a as renderDate } from './renderFunctions-b8vt6qyF.js';
25
+ import { r as renderStatus, a as renderDate } from './renderFunctions-BQohRlkO.js';
26
26
  import { C as CopyButtonWrapper } from './CopyButtonWrapper-B79WRogM.js';
27
27
  import { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from '@bigbinary/neeto-commons-frontend/constants';
28
28
  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-DDjX65Do.js';
33
+ import { b as useFetchStripePayouts, c as useFetchStripePlatformPayouts } from './usePlatformApi--E27mv8k.js';
34
34
  import '@tanstack/react-query';
35
35
  import '@tanstack/react-query-devtools';
36
36
  import 'axios';
@@ -4,11 +4,11 @@ import Spinner from '@bigbinary/neetoui/Spinner';
4
4
  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
- import { r as renderStatus, a as renderDate } from './renderFunctions-b8vt6qyF.js';
8
- import { u as useShowStripePayout, a as useShowStripePlatformPayout } from './usePlatformApi-DDjX65Do.js';
7
+ import { r as renderStatus, a as renderDate } from './renderFunctions-BQohRlkO.js';
8
+ import { u as useShowStripePayout, a as useShowStripePlatformPayout } from './usePlatformApi--E27mv8k.js';
9
9
  import Button from '@bigbinary/neetoui/Button';
10
10
  import { C as CopyButtonWrapper } from './CopyButtonWrapper-B79WRogM.js';
11
- import { k as buildStripePayoutLink } from './index-DYTssO0F.js';
11
+ import { k as buildStripePayoutLink } from './index-DP5UOpg-.js';
12
12
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
13
13
  import 'i18next';
14
14
  import '@bigbinary/neeto-molecules/DateFormat';
@@ -0,0 +1,118 @@
1
+ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
+ import { useState, useEffect } from 'react';
3
+ import { useQueryClient } from '@tanstack/react-query';
4
+ import { isNotPresent, humanize, isPresent } from '@bigbinary/neeto-cist';
5
+ import { useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
6
+ import RazorpayIcon from '@bigbinary/neeto-icons/misc/Razorpay';
7
+ import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
8
+ import Container from '@bigbinary/neeto-molecules/Container';
9
+ import Header from '@bigbinary/neeto-molecules/Header';
10
+ import Typography from '@bigbinary/neetoui/Typography';
11
+ import Callout from '@bigbinary/neetoui/Callout';
12
+ import Spinner from '@bigbinary/neetoui/Spinner';
13
+ import Button from '@bigbinary/neetoui/Button';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { useHistory } from 'react-router-dom';
16
+ import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-BFnLyjT4.js';
17
+ import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
18
+ import { E as ERROR_TYPE, M as MAX_POLLING_TIME, P as POLLING_INTERVAL } from './index-DP5UOpg-.js';
19
+ import { jsxs, jsx } from 'react/jsx-runtime';
20
+ import '@babel/runtime/helpers/defineProperty';
21
+ import 'axios';
22
+ import 'i18next';
23
+ import '@bigbinary/neeto-commons-frontend/constants';
24
+ import 'decimal.js';
25
+ import '@bigbinary/neeto-commons-frontend/utils';
26
+ import 'ramda';
27
+
28
+ var RazorpayConnect = function RazorpayConnect(_ref) {
29
+ var baseRoute = _ref.baseRoute,
30
+ manageRoute = _ref.manageRoute,
31
+ breadcrumbs = _ref.breadcrumbs;
32
+ var queryClient = useQueryClient();
33
+ var _useState = useState(false),
34
+ _useState2 = _slicedToArray(_useState, 2),
35
+ isPolling = _useState2[0],
36
+ setIsPolling = _useState2[1];
37
+ var _useTranslation = useTranslation(),
38
+ t = _useTranslation.t;
39
+ var history = useHistory();
40
+ var _useQueryParams = useQueryParams(),
41
+ error = _useQueryParams.error,
42
+ errorDescription = _useQueryParams.errorDescription;
43
+ var refetchInterval = function refetchInterval(query) {
44
+ var _ref2 = query.state.data || {},
45
+ razorpayAccount = _ref2.razorpayAccount;
46
+ if (!(razorpayAccount !== null && razorpayAccount !== void 0 && razorpayAccount.isConnected) && isPolling) {
47
+ return POLLING_INTERVAL;
48
+ }
49
+ if (razorpayAccount !== null && razorpayAccount !== void 0 && razorpayAccount.isConnected) {
50
+ setIsPolling(false);
51
+ history.push(manageRoute);
52
+ }
53
+ return false;
54
+ };
55
+ var _useFetchPaymentInteg = useFetchPaymentIntegrations({
56
+ refetchInterval: refetchInterval,
57
+ enabled: isNotPresent(error)
58
+ }),
59
+ _useFetchPaymentInteg2 = _useFetchPaymentInteg.data,
60
+ _useFetchPaymentInteg3 = _useFetchPaymentInteg2 === void 0 ? {} : _useFetchPaymentInteg2,
61
+ razorpayAccount = _useFetchPaymentInteg3.razorpayAccount;
62
+ var errorMessage = error === ERROR_TYPE.processing_error ? errorDescription : humanize(errorDescription);
63
+ var isAccountProcessingFailed = isPresent(error) && isPresent(errorDescription) || !isPolling && !(razorpayAccount !== null && razorpayAccount !== void 0 && razorpayAccount.isConnected);
64
+ var handleRetry = function handleRetry() {
65
+ queryClient.invalidateQueries({
66
+ queryKey: [QUERY_KEYS.PAYMENT_INTEGRATION_LIST]
67
+ });
68
+ history.push(baseRoute);
69
+ };
70
+ useEffect(function () {
71
+ if (razorpayAccount !== null && razorpayAccount !== void 0 && razorpayAccount.isConnected) {
72
+ history.push(manageRoute);
73
+ }
74
+ if (isNotPresent(error)) {
75
+ setIsPolling(true);
76
+ }
77
+ var pollingTimeoutId = setTimeout(function () {
78
+ setIsPolling(false);
79
+ }, MAX_POLLING_TIME);
80
+ return function () {
81
+ clearTimeout(pollingTimeoutId);
82
+ };
83
+ }, []);
84
+ return /*#__PURE__*/jsxs(Container, {
85
+ children: [/*#__PURE__*/jsx(Header, {
86
+ breadcrumbs: breadcrumbs,
87
+ title: t("neetoPayments.common.connect")
88
+ }), /*#__PURE__*/jsxs(CardLayout, {
89
+ icon: /*#__PURE__*/jsx(RazorpayIcon, {
90
+ size: 48
91
+ }),
92
+ title: t("neetoPayments.razorpayConnect.title"),
93
+ actionBlock: isAccountProcessingFailed && /*#__PURE__*/jsx(Button, {
94
+ label: t("neetoPayments.common.tryAgain"),
95
+ onClick: handleRetry
96
+ }),
97
+ description: isAccountProcessingFailed && t("neetoPayments.common.processingFailed"),
98
+ children: [isPolling && /*#__PURE__*/jsx(Callout, {
99
+ children: /*#__PURE__*/jsxs("div", {
100
+ className: "flex space-x-4",
101
+ children: [/*#__PURE__*/jsx(Spinner, {}), /*#__PURE__*/jsx(Typography, {
102
+ style: "body1",
103
+ children: t("neetoPayments.stripeConnect.verifyingMessage")
104
+ })]
105
+ })
106
+ }), isAccountProcessingFailed && /*#__PURE__*/jsx(Callout, {
107
+ style: "danger",
108
+ children: /*#__PURE__*/jsx(Typography, {
109
+ style: "body1",
110
+ children: isPresent(errorDescription) ? errorMessage : t("neetoPayments.stripeConnect.failedProcessing")
111
+ })
112
+ })]
113
+ })]
114
+ });
115
+ };
116
+
117
+ export { RazorpayConnect as default };
118
+ //# sourceMappingURL=RazorpayConnect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RazorpayConnect.js","sources":["../app/javascript/src/components/RazorpayConnect.jsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport { useQueryClient } from \"@tanstack/react-query\";\nimport { isPresent, humanize, isNotPresent } from \"neetocist\";\nimport { useQueryParams } from \"neetocommons/react-utils\";\nimport { Razorpay as RazorpayIcon } from \"neetoicons/misc\";\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport Container from \"neetomolecules/Container\";\nimport Header from \"neetomolecules/Header\";\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\";\nimport { QUERY_KEYS } from \"src/common/queryConstants\";\nimport { ERROR_TYPE, POLLING_INTERVAL, MAX_POLLING_TIME } from \"src/constants\";\n\nconst RazorpayConnect = ({ baseRoute, manageRoute, breadcrumbs }) => {\n const queryClient = useQueryClient();\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 { razorpayAccount } = query.state.data || {};\n\n if (!razorpayAccount?.isConnected && isPolling) {\n return POLLING_INTERVAL;\n }\n\n if (razorpayAccount?.isConnected) {\n setIsPolling(false);\n history.push(manageRoute);\n }\n\n return false;\n };\n\n const { data: { razorpayAccount } = {} } = useFetchPaymentIntegrations({\n refetchInterval,\n enabled: isNotPresent(error),\n });\n\n const errorMessage =\n error === ERROR_TYPE.processing_error\n ? errorDescription\n : humanize(errorDescription);\n\n const isAccountProcessingFailed =\n (isPresent(error) && isPresent(errorDescription)) ||\n (!isPolling && !razorpayAccount?.isConnected);\n\n const handleRetry = () => {\n queryClient.invalidateQueries({\n queryKey: [QUERY_KEYS.PAYMENT_INTEGRATION_LIST],\n });\n history.push(baseRoute);\n };\n\n useEffect(() => {\n if (razorpayAccount?.isConnected) {\n history.push(manageRoute);\n }\n\n if (isNotPresent(error)) {\n setIsPolling(true);\n }\n\n const pollingTimeoutId = setTimeout(() => {\n setIsPolling(false);\n }, MAX_POLLING_TIME);\n\n return () => {\n clearTimeout(pollingTimeoutId);\n };\n }, []);\n\n return (\n <Container>\n <Header {...{ breadcrumbs }} title={t(\"neetoPayments.common.connect\")} />\n <CardLayout\n icon={<RazorpayIcon size={48} />}\n title={t(\"neetoPayments.razorpayConnect.title\")}\n actionBlock={\n isAccountProcessingFailed && (\n <Button\n label={t(\"neetoPayments.common.tryAgain\")}\n onClick={handleRetry}\n />\n )\n }\n description={\n isAccountProcessingFailed &&\n t(\"neetoPayments.common.processingFailed\")\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 ? errorMessage\n : t(\"neetoPayments.stripeConnect.failedProcessing\")}\n </Typography>\n </Callout>\n )}\n </CardLayout>\n </Container>\n );\n};\n\nexport default RazorpayConnect;\n"],"names":["RazorpayConnect","_ref","baseRoute","manageRoute","breadcrumbs","queryClient","useQueryClient","_useState","useState","_useState2","_slicedToArray","isPolling","setIsPolling","_useTranslation","useTranslation","t","history","useHistory","_useQueryParams","useQueryParams","error","errorDescription","refetchInterval","query","_ref2","state","data","razorpayAccount","isConnected","POLLING_INTERVAL","push","_useFetchPaymentInteg","useFetchPaymentIntegrations","enabled","isNotPresent","_useFetchPaymentInteg2","_useFetchPaymentInteg3","errorMessage","ERROR_TYPE","processing_error","humanize","isAccountProcessingFailed","isPresent","handleRetry","invalidateQueries","queryKey","QUERY_KEYS","PAYMENT_INTEGRATION_LIST","useEffect","pollingTimeoutId","setTimeout","MAX_POLLING_TIME","clearTimeout","_jsxs","Container","children","_jsx","Header","title","CardLayout","icon","RazorpayIcon","size","actionBlock","Button","label","onClick","description","Callout","className","Spinner","Typography","style"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAgD;AAAA,EAAA,IAA1CC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAEC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAEC,WAAW,GAAAH,IAAA,CAAXG,WAAW;AAC5D,EAAA,IAAMC,WAAW,GAAGC,cAAc,EAAE;AACpC,EAAA,IAAAC,SAAA,GAAkCC,QAAQ,CAAC,KAAK,CAAC;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA1CI,IAAAA,SAAS,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,YAAY,GAAAH,UAAA,C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A,KAAK,EAAE3C,CAAC,CAAC,qCAAqC,CAAE;AAChDgD,MAAAA,WAAW,EACTtB,yBAAyB,iBACvBe,GAAA,CAACQ,MAAM,EAAA;AACLC,QAAAA,KAAK,EAAElD,CAAC,CAAC,+BAA+B,CAAE;AAC1CmD,QAAAA,OAAO,EAAEvB;AAAY,OACtB,CAEJ;AACDwB,MAAAA,WAAW,EACT1B,yBAAyB,IACzB1B,CAAC,CAAC,uCAAuC,CAC1C;AAAAwC,MAAAA,QAAA,EAEA5C,CAAAA,SAAS,iBACR6C,GAAA,CAACY,OAAO,EAAA;AAAAb,QAAAA,QAAA,eACNF,IAAA,CAAA,KAAA,EAAA;AAAKgB,UAAAA,SAAS,EAAC,gBAAgB;UAAAd,QAAA,EAAA,cAC7BC,GAAA,CAACc,OAAO,IAAE,CAAC,eACXd,GAAA,CAACe,UAAU,EAAA;AAACC,YAAAA,KAAK,EAAC,OAAO;YAAAjB,QAAA,EACtBxC,CAAC,CAAC,8CAA8C;AAAC,WACxC,CAAC;SACV;AAAC,OACC,CACV,EACA0B,yBAAyB,iBACxBe,GAAA,CAACY,OAAO,EAAA;AAACI,QAAAA,KAAK,EAAC,QAAQ;QAAAjB,QAAA,eACrBC,GAAA,CAACe,UAAU,EAAA;AAACC,UAAAA,KAAK,EAAC,OAAO;UAAAjB,QAAA,EACtBb,SAAS,CAACrB,gBAAgB,CAAC,GACxBgB,YAAY,GACZtB,CAAC,CAAC,8CAA8C;SAC1C;AAAC,OACN,CACV;AAAA,KACS,CAAC;AAAA,GACJ,CAAC;AAEhB;;;;"}
@@ -4,8 +4,8 @@ import { noop, findBy, isNotPresent } from '@bigbinary/neeto-cist';
4
4
  import Button from '@bigbinary/neetoui/Button';
5
5
  import { mergeDeepLeft } from 'ramda';
6
6
  import { useTranslation } from 'react-i18next';
7
- import { u as useCreateRazorpayPayment } from './usePaymentApi-Bzm6iQEJ.js';
8
- import { R as RAZORPAY_PAYMENT_BUTTON_OPTIONS } from './index-DYTssO0F.js';
7
+ import { u as useCreateRazorpayPayment } from './usePaymentApi-DPSc1ubf.js';
8
+ import { R as RAZORPAY_PAYMENT_BUTTON_OPTIONS } from './index-DP5UOpg-.js';
9
9
  import { jsx } from 'react/jsx-runtime';
10
10
  import '@babel/runtime/helpers/defineProperty';
11
11
  import '@tanstack/react-query';
@@ -14,7 +14,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
14
14
  import { useQuery } from '@tanstack/react-query';
15
15
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
16
16
  import axios from 'axios';
17
- import { B as BASE_URL } from './index-DYTssO0F.js';
17
+ import { B as BASE_URL } from './index-DP5UOpg-.js';
18
18
  import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
19
19
  import { t } from 'i18next';
20
20
  import * as yup from 'yup';
@@ -8,10 +8,10 @@ import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
8
8
  import Spinner from '@bigbinary/neetoui/Spinner';
9
9
  import { map, curry, mergeDeepWith, concat, mergeLeft, reject, isNil, prop, isEmpty, modify } from 'ramda';
10
10
  import { useHistory } from 'react-router-dom';
11
- import { E as ExportModal } from './ExportModal-De0800d-.js';
11
+ import { E as ExportModal } from './ExportModal-BpfgeWqd.js';
12
12
  import { useQuery } from '@tanstack/react-query';
13
13
  import axios from 'axios';
14
- import { B as BASE_URL, P as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE, o as formatAmount, p as formatCurrency, r as buildDefaultTableColumns, S as SORT_DIRECTIONS, s as processDataIndex, A as ASSOCIATED_TABLE_COLUMNS, n as DEFAULT_SORT_PROPERTIES, t as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, l as DEFAULT_PAGE_VALUES, v as DASHBOARD_KIND } from './index-DYTssO0F.js';
14
+ import { B as BASE_URL, o as PAYMENT_PROVIDERS, D as DEFAULT_TAG_STYLE, p as formatAmount, q as formatCurrency, s as buildDefaultTableColumns, S as SORT_DIRECTIONS, t as processDataIndex, A as ASSOCIATED_TABLE_COLUMNS, n as DEFAULT_SORT_PROPERTIES, v as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, l as DEFAULT_PAGE_VALUES, w as DASHBOARD_KIND } from './index-DP5UOpg-.js';
15
15
  import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
16
16
  import { t } from 'i18next';
17
17
  import { toLabelAndValue, snakeToCamelCase, humanize, isPresent, isNotPresent, camelToSnakeCase } from '@bigbinary/neeto-cist';
@@ -8,11 +8,11 @@ import { buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend/utils';
8
8
  import Spinner from '@bigbinary/neetoui/Spinner';
9
9
  import { mergeLeft, curry, mergeDeepWith, concat, reject, isNil, map, prop, sortBy, isEmpty, modify, pluck } from 'ramda';
10
10
  import { useHistory } from 'react-router-dom';
11
- import { E as ExportModal } from './ExportModal-De0800d-.js';
11
+ import { E as ExportModal } from './ExportModal-BpfgeWqd.js';
12
12
  import { useQuery } from '@tanstack/react-query';
13
13
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
14
14
  import axios from 'axios';
15
- import { B as BASE_URL, x as preProcessStatus, y as getTagStyle, o as formatAmount, p as formatCurrency, z as PAYMENT_KIND, S as SORT_DIRECTIONS, s as processDataIndex, n as DEFAULT_SORT_PROPERTIES, t as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, l as DEFAULT_PAGE_VALUES, v as DASHBOARD_KIND } from './index-DYTssO0F.js';
15
+ import { B as BASE_URL, y as preProcessStatus, z as getTagStyle, p as formatAmount, q as formatCurrency, F as PAYMENT_KIND, S as SORT_DIRECTIONS, t as processDataIndex, n as DEFAULT_SORT_PROPERTIES, v as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, l as DEFAULT_PAGE_VALUES, w as DASHBOARD_KIND } from './index-DP5UOpg-.js';
16
16
  import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
17
17
  import Modal from '@bigbinary/neetoui/Modal';
18
18
  import Typography from '@bigbinary/neetoui/Typography';
@@ -6,7 +6,7 @@ import { useQuery } from '@tanstack/react-query';
6
6
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
7
7
  import { isNotNil } from 'ramda';
8
8
  import axios from 'axios';
9
- import { B as BASE_URL } from './index-DYTssO0F.js';
9
+ import { B as BASE_URL } from './index-DP5UOpg-.js';
10
10
  import { Q as QUERY_KEYS } from './queryConstants-aYVM1oL2.js';
11
11
  import { jsxs, jsx } from 'react/jsx-runtime';
12
12
  import 'i18next';