@bigbinary/neeto-payments-frontend 6.1.10 → 6.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AccountsDashboard.js +4 -4
- package/dist/AdminCancelRecurringPaymentButton.js +1 -1
- package/dist/CashPaymentButton.js +2 -2
- package/dist/ConfirmCashPaymentButton.js +2 -2
- package/dist/CustomerCancelRecurringPaymentForm.js +1 -1
- package/dist/{ExportModal-xSog6P5o.js → ExportModal-CxKyrlwf.js} +2 -2
- package/dist/{ExportModal-xSog6P5o.js.map → ExportModal-CxKyrlwf.js.map} +1 -1
- package/dist/ManualUpiConnect.js +1 -1
- package/dist/ManualUpiPayment.js +2 -2
- package/dist/ManualUpiPaymentConfirmButton.js +2 -2
- package/dist/ManualUpiPaymentRejectButton.js +2 -2
- package/dist/PaymentsDashboard.js +2 -2
- package/dist/PayoutsDashboard.js +4 -4
- package/dist/PayoutsPage.js +3 -3
- package/dist/RazorpayConnect.js +2 -2
- package/dist/RazorpayLinkedAccountForm.js +1 -1
- package/dist/RazorpayPaymentButton.js +2 -2
- package/dist/RecurringPaymentSettings.js +1 -1
- package/dist/RefundsDashboard.js +2 -2
- package/dist/SplitTransfersDashboard.js +2 -2
- package/dist/StripeCheckoutSetting.js +1 -1
- package/dist/StripeConnect.js +3 -3
- package/dist/StripeManage.js +1 -1
- package/dist/TaxesDashboard.js +1 -1
- package/dist/buildStripeTransactionLink.js +1 -1
- package/dist/cjs/getAmountInLargestCurrencyUnit.js +14 -0
- package/dist/cjs/getAmountInLargestCurrencyUnit.js.map +1 -0
- package/dist/constants.js +1 -1
- package/dist/{dashboard-BDaEfYC6.js → dashboard-ClEN2ygs.js} +2 -2
- package/dist/{dashboard-BDaEfYC6.js.map → dashboard-ClEN2ygs.js.map} +1 -1
- package/dist/getAddressElementOptions.js +1 -1
- package/dist/getAmountInLargestCurrencyUnit.js +12 -0
- package/dist/getAmountInLargestCurrencyUnit.js.map +1 -0
- package/dist/getAmountInSmallestCurrencyUnit.js +1 -1
- package/dist/getAmountWithAppliedTax.js +1 -1
- package/dist/getFormattedAmount.js +1 -1
- package/dist/getFormattedDiscountedAmount.js +1 -1
- package/dist/getFormattedDiscountedPercentage.js +1 -1
- package/dist/getFormattedTaxAmount.js +1 -1
- package/dist/getFormattedTipAmount.js +1 -1
- package/dist/getQrCodeValue.js +1 -1
- package/dist/getTaxAmount.js +1 -1
- package/dist/getTipAmount.js +1 -1
- package/dist/hasAmountToPay.js +1 -1
- package/dist/{index-Bb6ocLKy.js → index-C7irWceQ.js} +2 -2
- package/dist/{index-Bb6ocLKy.js.map → index-C7irWceQ.js.map} +1 -1
- package/dist/index.js +10 -10
- package/dist/{renderFunctions-B8oUIx0q.js → renderFunctions-D9sAy3V_.js} +2 -2
- package/dist/{renderFunctions-B8oUIx0q.js.map → renderFunctions-D9sAy3V_.js.map} +1 -1
- package/dist/{useAccountsApi-B_6TV0t1.js → useAccountsApi-DPem_UA-.js} +2 -2
- package/dist/{useAccountsApi-B_6TV0t1.js.map → useAccountsApi-DPem_UA-.js.map} +1 -1
- package/dist/{useIntegrationsApi-C_bLZLOS.js → useIntegrationsApi-D1bkKtoy.js} +2 -2
- package/dist/{useIntegrationsApi-C_bLZLOS.js.map → useIntegrationsApi-D1bkKtoy.js.map} +1 -1
- package/dist/{usePaymentApi-DPX5vrFy.js → usePaymentApi-BV0jXF-6.js} +2 -2
- package/dist/{usePaymentApi-DPX5vrFy.js.map → usePaymentApi-BV0jXF-6.js.map} +1 -1
- package/dist/{usePaymentApi-BIKTym0K.js → usePaymentApi-DHARy-kC.js} +2 -2
- package/dist/{usePaymentApi-BIKTym0K.js.map → usePaymentApi-DHARy-kC.js.map} +1 -1
- package/dist/{usePaymentApi-CqDykYv8.js → usePaymentApi-DcMNbOMk.js} +2 -2
- package/dist/{usePaymentApi-CqDykYv8.js.map → usePaymentApi-DcMNbOMk.js.map} +1 -1
- package/dist/{usePlatformApi-haL6t3zF.js → usePlatformApi-Di7Dg-Gn.js} +2 -2
- package/dist/{usePlatformApi-haL6t3zF.js.map → usePlatformApi-Di7Dg-Gn.js.map} +1 -1
- package/dist/useRazorpayPayment.js +2 -2
- package/package.json +1 -1
|
@@ -8,21 +8,21 @@ import Header from '@bigbinary/neeto-molecules/Header';
|
|
|
8
8
|
import SubHeader from '@bigbinary/neeto-molecules/SubHeader';
|
|
9
9
|
import { Modal, Typography, Button, Spinner, NoData, Table, Tab } from '@bigbinary/neetoui';
|
|
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-
|
|
11
|
+
import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard-ClEN2ygs.js';
|
|
12
12
|
import { e as exportChannel, T as TABLE_KEYS } from './exportChannel-DAxJ44QB.js';
|
|
13
13
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
14
14
|
import { Download } from '@bigbinary/neeto-icons';
|
|
15
|
-
import { u as uuidV4, h as buildStripeAccountLink, D as DEFAULT_SORT_PROPERTIES, S as SORT_DIRECTIONS } from './index-
|
|
15
|
+
import { u as uuidV4, h as buildStripeAccountLink, D as DEFAULT_SORT_PROPERTIES, S as SORT_DIRECTIONS } from './index-C7irWceQ.js';
|
|
16
16
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
17
17
|
import { getQueryParams, buildUrl } from 'neetocommons/utils';
|
|
18
18
|
import { pipe, split, map, join, mergeLeft, assoc } from 'ramda';
|
|
19
19
|
import { useHistory } from 'react-router-dom';
|
|
20
|
-
import { r as renderStatus, a as renderFullName, b as renderDate } from './renderFunctions-
|
|
20
|
+
import { r as renderStatus, a as renderFullName, b as renderDate } from './renderFunctions-D9sAy3V_.js';
|
|
21
21
|
import { C as CopyButtonWrapper } from './CopyButtonWrapper-rv-OaINx.js';
|
|
22
22
|
import { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from 'neetocommons/constants';
|
|
23
23
|
import { useTableConfigurations } from '@bigbinary/neeto-molecules/Columns';
|
|
24
24
|
import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
25
|
-
import { u as useFetchConnectedAccounts } from './useAccountsApi-
|
|
25
|
+
import { u as useFetchConnectedAccounts } from './useAccountsApi-DPem_UA-.js';
|
|
26
26
|
import '@tanstack/react-query';
|
|
27
27
|
import '@tanstack/react-query-devtools';
|
|
28
28
|
import 'axios';
|
|
@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
5
5
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
6
6
|
import { useMutationWithInvalidation } from 'neetocommons/react-utils';
|
|
7
7
|
import axios from 'axios';
|
|
8
|
-
import { B as BASE_URL } from './index-
|
|
8
|
+
import { B as BASE_URL } from './index-C7irWceQ.js';
|
|
9
9
|
import 'i18next';
|
|
10
10
|
import 'neetocommons/constants';
|
|
11
11
|
import 'decimal.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { noop } from 'neetocist';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { u as useCreateCashPayment } from './usePaymentApi-
|
|
3
|
+
import { u as useCreateCashPayment } from './usePaymentApi-BV0jXF-6.js';
|
|
4
4
|
import { Button } from '@bigbinary/neetoui';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@tanstack/react-query';
|
|
7
7
|
import 'axios';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-C7irWceQ.js';
|
|
9
9
|
import 'i18next';
|
|
10
10
|
import 'neetocommons/constants';
|
|
11
11
|
import 'decimal.js';
|
|
@@ -2,13 +2,13 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { noop } from 'neetocist';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { a as useUpdateCashPayment } from './usePaymentApi-
|
|
5
|
+
import { a as useUpdateCashPayment } from './usePaymentApi-BV0jXF-6.js';
|
|
6
6
|
import { Button, Modal, Typography } from '@bigbinary/neetoui';
|
|
7
7
|
import { Form, Textarea, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
8
8
|
import '@babel/runtime/helpers/defineProperty';
|
|
9
9
|
import '@tanstack/react-query';
|
|
10
10
|
import 'axios';
|
|
11
|
-
import './index-
|
|
11
|
+
import './index-C7irWceQ.js';
|
|
12
12
|
import 'i18next';
|
|
13
13
|
import 'neetocommons/constants';
|
|
14
14
|
import 'decimal.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useTranslation } from 'react-i18next';
|
|
2
2
|
import { useMutationWithInvalidation } from 'neetocommons/react-utils';
|
|
3
3
|
import axios from 'axios';
|
|
4
|
-
import { B as BASE_URL } from './index-
|
|
4
|
+
import { B as BASE_URL } from './index-C7irWceQ.js';
|
|
5
5
|
import { useQuery } from '@tanstack/react-query';
|
|
6
6
|
import { isNotNil } from 'ramda';
|
|
7
7
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
|
@@ -6,7 +6,7 @@ import { mergeLeft } from 'ramda';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { useMutation } from '@tanstack/react-query';
|
|
8
8
|
import axios from 'axios';
|
|
9
|
-
import { B as BASE_URL, u as uuidV4 } from './index-
|
|
9
|
+
import { B as BASE_URL, u as uuidV4 } from './index-C7irWceQ.js';
|
|
10
10
|
import { getQueryParams } from 'neetocommons/utils';
|
|
11
11
|
import { Modal, Typography, Button } from '@bigbinary/neetoui';
|
|
12
12
|
import { e as exportChannel } from './exportChannel-DAxJ44QB.js';
|
|
@@ -117,4 +117,4 @@ var ExportModal = function ExportModal(_ref) {
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
export { ExportModal as E };
|
|
120
|
-
//# sourceMappingURL=ExportModal-
|
|
120
|
+
//# sourceMappingURL=ExportModal-CxKyrlwf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportModal-
|
|
1
|
+
{"version":3,"file":"ExportModal-CxKyrlwf.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 { Download } from \"neetoicons\";\nimport { mergeLeft } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { useExportsData } from \"hooks/reactQuery/useExportsApi\";\nimport { getQueryParams } from \"neetocommons/utils\";\nimport { Button, Modal, Typography } from \"neetoui\";\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 data-testid=\"neeto-payments-download-button\"\n href={downloadUrl}\n icon={Download}\n label={t(\"neetoPayments.common.download\")}\n onClick={onClose}\n />\n ) : (\n <>\n <Button\n data-testid=\"cancel-button\"\n disabled={isGenerating}\n label={t(\"neetoPayments.common.cancel\")}\n style=\"tertiary\"\n onClick={onClose}\n />\n <Button\n data-testid=\"neeto-payments-export-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","React","createElement","Modal","isOpen","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,CAA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AAS,CAACrC,WAAW,CAAC,GACnBL,CAAC,CAAC,gCAAgC,CAAC,GACnCA,CAAC,CAAAjB,gCAAAA,CAAAA,MAAA,CAAkCU,aAAa,CAAE,CAC5C,CAEJ,CAAC,eACbyC,KAAA,CAAAC,aAAA,CAACC,KAAK,CAACO,MAAM,EAAA;AAACC,IAAAA,SAAS,EAAC;GACrBF,EAAAA,SAAS,CAACrC,WAAW,CAAC,gBACrB6B,KAAA,CAAAC,aAAA,CAACU,MAAM,EAAA;AACL,IAAA,aAAA,EAAY,gCAAgC;AAC5CC,IAAAA,IAAI,EAAEzC,WAAY;AAClB0C,IAAAA,IAAI,EAAEC,QAAS;AACfC,IAAAA,KAAK,EAAEjD,CAAC,CAAC,+BAA+B,CAAE;AAC1CkD,IAAAA,OAAO,EAAErB;AAAQ,GAClB,CAAC,gBAEFK,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAiB,QAAA,EACEjB,IAAAA,eAAAA,KAAA,CAAAC,aAAA,CAACU,MAAM,EAAA;AACL,IAAA,aAAA,EAAY,eAAe;AAC3BO,IAAAA,QAAQ,EAAE3C,YAAa;AACvBwC,IAAAA,KAAK,EAAEjD,CAAC,CAAC,6BAA6B,CAAE;AACxCwC,IAAAA,KAAK,EAAC,UAAU;AAChBU,IAAAA,OAAO,EAAErB;AAAQ,GAClB,CAAC,eACFK,KAAA,CAAAC,aAAA,CAACU,MAAM,EAAA;AACL,IAAA,aAAA,EAAY,8BAA8B;AAC1CO,IAAAA,QAAQ,EAAE3C,YAAa;AACvBwC,IAAAA,KAAK,EAAEjD,CAAC,CAAC,6BAA6B,CAAE;AACxCqD,IAAAA,OAAO,EAAE5C,YAAa;AACtByC,IAAAA,OAAO,EAAEpB;GACV,CACD,CAEQ,CACT,CAAC;AAEZ;;;;"}
|
package/dist/ManualUpiConnect.js
CHANGED
|
@@ -4,7 +4,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { useMutationWithInvalidation } from 'neetocommons/react-utils';
|
|
6
6
|
import axios from 'axios';
|
|
7
|
-
import { B as BASE_URL } from './index-
|
|
7
|
+
import { B as BASE_URL } from './index-C7irWceQ.js';
|
|
8
8
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
|
9
9
|
import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
|
|
10
10
|
import { Form, ActionBlock, Input } from '@bigbinary/neetoui/formik';
|
package/dist/ManualUpiPayment.js
CHANGED
|
@@ -5,8 +5,8 @@ import { Form, Input, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
|
5
5
|
import QRCodeImage from 'qrcode.react';
|
|
6
6
|
import { pluck } from 'ramda';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
|
-
import { u as useCreateUpiPayment } from './usePaymentApi-
|
|
9
|
-
import { k as getQrCodeValue } from './index-
|
|
8
|
+
import { u as useCreateUpiPayment } from './usePaymentApi-DHARy-kC.js';
|
|
9
|
+
import { k as getQrCodeValue } from './index-C7irWceQ.js';
|
|
10
10
|
import { t } from 'i18next';
|
|
11
11
|
import * as yup from 'yup';
|
|
12
12
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { findBy, noop } from 'neetocist';
|
|
4
4
|
import { mergeLeft } from 'ramda';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { a as useUpdateUpiPayment } from './usePaymentApi-
|
|
6
|
+
import { a as useUpdateUpiPayment } from './usePaymentApi-DHARy-kC.js';
|
|
7
7
|
import { Button, Modal, Typography } from '@bigbinary/neetoui';
|
|
8
8
|
import { Form, Select, Textarea, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
9
9
|
import { t } from 'i18next';
|
|
@@ -13,7 +13,7 @@ import '@babel/runtime/helpers/defineProperty';
|
|
|
13
13
|
import '@tanstack/react-query';
|
|
14
14
|
import 'neetocommons/react-utils';
|
|
15
15
|
import 'axios';
|
|
16
|
-
import './index-
|
|
16
|
+
import './index-C7irWceQ.js';
|
|
17
17
|
import 'neetocommons/constants';
|
|
18
18
|
import 'decimal.js';
|
|
19
19
|
import 'neetocommons/utils';
|
|
@@ -2,7 +2,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { noop } from 'neetocist';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { a as useUpdateUpiPayment } from './usePaymentApi-
|
|
5
|
+
import { a as useUpdateUpiPayment } from './usePaymentApi-DHARy-kC.js';
|
|
6
6
|
import { Button, Modal, Typography } from '@bigbinary/neetoui';
|
|
7
7
|
import { Form, Textarea, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
8
8
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -10,7 +10,7 @@ import '@babel/runtime/helpers/defineProperty';
|
|
|
10
10
|
import '@tanstack/react-query';
|
|
11
11
|
import 'neetocommons/react-utils';
|
|
12
12
|
import 'axios';
|
|
13
|
-
import './index-
|
|
13
|
+
import './index-C7irWceQ.js';
|
|
14
14
|
import 'i18next';
|
|
15
15
|
import 'neetocommons/constants';
|
|
16
16
|
import 'decimal.js';
|
|
@@ -8,10 +8,10 @@ import { Bar, buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend';
|
|
|
8
8
|
import { Typography, Tooltip, Tag, Button, NoData, Table, Tab, Spinner } from '@bigbinary/neetoui';
|
|
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-
|
|
11
|
+
import { E as ExportModal } from './ExportModal-CxKyrlwf.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, j as DEFAULT_TAG_STYLE, l as formatAmount, m as formatCurrency, n as getUniquePaymentProviders, o as buildDefaultTableColumns, p as processDataIndex, S as SORT_DIRECTIONS, s as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, i as DEFAULT_PAGE_VALUES, q as DASHBOARD_KIND } from './index-
|
|
14
|
+
import { B as BASE_URL, P as PAYMENT_PROVIDERS, j as DEFAULT_TAG_STYLE, l as formatAmount, m as formatCurrency, n as getUniquePaymentProviders, o as buildDefaultTableColumns, p as processDataIndex, S as SORT_DIRECTIONS, s as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, i as DEFAULT_PAGE_VALUES, q as DASHBOARD_KIND } from './index-C7irWceQ.js';
|
|
15
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 'neetocist';
|
package/dist/PayoutsDashboard.js
CHANGED
|
@@ -7,22 +7,22 @@ import Header from '@bigbinary/neeto-molecules/Header';
|
|
|
7
7
|
import SubHeader from '@bigbinary/neeto-molecules/SubHeader';
|
|
8
8
|
import { Modal, Typography, Button, Spinner, NoData, Table, Tab } from '@bigbinary/neetoui';
|
|
9
9
|
import { useTranslation } from 'react-i18next';
|
|
10
|
-
import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard-
|
|
10
|
+
import { u as useExportData, b as buildDefaultPageProperties, a as buildPayload, c as buildRowData, w as withReactQuery } from './dashboard-ClEN2ygs.js';
|
|
11
11
|
import { e as exportChannel, T as TABLE_KEYS } from './exportChannel-DAxJ44QB.js';
|
|
12
12
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
13
13
|
import { Download } from '@bigbinary/neeto-icons';
|
|
14
|
-
import { u as uuidV4, D as DEFAULT_SORT_PROPERTIES$1, S as SORT_DIRECTIONS } from './index-
|
|
14
|
+
import { u as uuidV4, D as DEFAULT_SORT_PROPERTIES$1, S as SORT_DIRECTIONS } from './index-C7irWceQ.js';
|
|
15
15
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
16
16
|
import { camelToSnakeCase, removeBy, snakeToCamelCase, isPresent } from 'neetocist';
|
|
17
17
|
import { buildUrl, getQueryParams } from 'neetocommons/utils';
|
|
18
18
|
import { curry, assoc, insert, mergeLeft } from 'ramda';
|
|
19
19
|
import { useHistory } from 'react-router-dom';
|
|
20
|
-
import { r as renderStatus, b as renderDate } from './renderFunctions-
|
|
20
|
+
import { r as renderStatus, b as renderDate } from './renderFunctions-D9sAy3V_.js';
|
|
21
21
|
import { C as CopyButtonWrapper } from './CopyButtonWrapper-rv-OaINx.js';
|
|
22
22
|
import { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from 'neetocommons/constants';
|
|
23
23
|
import { useTableConfigurations } from '@bigbinary/neeto-molecules/Columns';
|
|
24
24
|
import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
25
|
-
import { u as useFetchStripePayouts, a as useFetchStripePlatformPayouts } from './usePlatformApi-
|
|
25
|
+
import { u as useFetchStripePayouts, a as useFetchStripePlatformPayouts } from './usePlatformApi-Di7Dg-Gn.js';
|
|
26
26
|
import '@tanstack/react-query';
|
|
27
27
|
import '@tanstack/react-query-devtools';
|
|
28
28
|
import 'axios';
|
package/dist/PayoutsPage.js
CHANGED
|
@@ -3,10 +3,10 @@ import Header from '@bigbinary/neeto-molecules/Header';
|
|
|
3
3
|
import { Button, Spinner, Typography } from '@bigbinary/neetoui';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { useParams } from 'react-router-dom/cjs/react-router-dom';
|
|
6
|
-
import { r as renderStatus, b as renderDate } from './renderFunctions-
|
|
7
|
-
import { b as useShowStripePayout, c as useShowStripePlatformPayout } from './usePlatformApi-
|
|
6
|
+
import { r as renderStatus, b as renderDate } from './renderFunctions-D9sAy3V_.js';
|
|
7
|
+
import { b as useShowStripePayout, c as useShowStripePlatformPayout } from './usePlatformApi-Di7Dg-Gn.js';
|
|
8
8
|
import { C as CopyButtonWrapper } from './CopyButtonWrapper-rv-OaINx.js';
|
|
9
|
-
import { r as buildStripePayoutLink } from './index-
|
|
9
|
+
import { r as buildStripePayoutLink } from './index-C7irWceQ.js';
|
|
10
10
|
import 'i18next';
|
|
11
11
|
import '@bigbinary/neeto-molecules/DateFormat';
|
|
12
12
|
import 'ramda';
|
package/dist/RazorpayConnect.js
CHANGED
|
@@ -10,9 +10,9 @@ import Header from '@bigbinary/neeto-molecules/Header';
|
|
|
10
10
|
import { Button, Callout, Spinner, Typography } from '@bigbinary/neetoui';
|
|
11
11
|
import { useTranslation } from 'react-i18next';
|
|
12
12
|
import { useHistory } from 'react-router-dom';
|
|
13
|
-
import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-
|
|
13
|
+
import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-D1bkKtoy.js';
|
|
14
14
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
|
15
|
-
import { E as ERROR_TYPE, M as MAX_POLLING_TIME, t as POLLING_INTERVAL } from './index-
|
|
15
|
+
import { E as ERROR_TYPE, M as MAX_POLLING_TIME, t as POLLING_INTERVAL } from './index-C7irWceQ.js';
|
|
16
16
|
import '@babel/runtime/helpers/defineProperty';
|
|
17
17
|
import 'axios';
|
|
18
18
|
import 'i18next';
|
|
@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
6
6
|
import { useHistory } from 'react-router-dom';
|
|
7
7
|
import { useQuery } from '@tanstack/react-query';
|
|
8
8
|
import axios from 'axios';
|
|
9
|
-
import { B as BASE_URL } from './index-
|
|
9
|
+
import { B as BASE_URL } from './index-C7irWceQ.js';
|
|
10
10
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
|
11
11
|
import { humanize } from 'neetocist';
|
|
12
12
|
import 'i18next';
|
|
@@ -3,9 +3,9 @@ import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
|
3
3
|
import { noop, findBy, isNotPresent } from 'neetocist';
|
|
4
4
|
import { mergeDeepLeft } from 'ramda';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { u as useCreateRazorpayPayment } from './usePaymentApi-
|
|
6
|
+
import { u as useCreateRazorpayPayment } from './usePaymentApi-DcMNbOMk.js';
|
|
7
7
|
import { Button } from '@bigbinary/neetoui';
|
|
8
|
-
import { R as RAZORPAY_PAYMENT_BUTTON_OPTIONS } from './index-
|
|
8
|
+
import { R as RAZORPAY_PAYMENT_BUTTON_OPTIONS } from './index-C7irWceQ.js';
|
|
9
9
|
import '@babel/runtime/helpers/defineProperty';
|
|
10
10
|
import '@tanstack/react-query';
|
|
11
11
|
import 'axios';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
5
5
|
import { useQuery } from '@tanstack/react-query';
|
|
6
6
|
import { useMutationWithInvalidation } from 'neetocommons/react-utils';
|
|
7
7
|
import axios from 'axios';
|
|
8
|
-
import { B as BASE_URL } from './index-
|
|
8
|
+
import { B as BASE_URL } from './index-C7irWceQ.js';
|
|
9
9
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
|
10
10
|
import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
|
|
11
11
|
import Container from '@bigbinary/neeto-molecules/Container';
|
package/dist/RefundsDashboard.js
CHANGED
|
@@ -8,10 +8,10 @@ import { Bar, buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend';
|
|
|
8
8
|
import { Tooltip, Tag, Typography, Button, NoData, Table, Tab, Spinner } from '@bigbinary/neetoui';
|
|
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-
|
|
11
|
+
import { E as ExportModal } from './ExportModal-CxKyrlwf.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, j as DEFAULT_TAG_STYLE, l as formatAmount, m as formatCurrency, o as buildDefaultTableColumns, S as SORT_DIRECTIONS, p as processDataIndex, A as ASSOCIATED_TABLE_COLUMNS, D as DEFAULT_SORT_PROPERTIES, s as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, i as DEFAULT_PAGE_VALUES, q as DASHBOARD_KIND } from './index-
|
|
14
|
+
import { B as BASE_URL, P as PAYMENT_PROVIDERS, j as DEFAULT_TAG_STYLE, l as formatAmount, m as formatCurrency, o as buildDefaultTableColumns, S as SORT_DIRECTIONS, p as processDataIndex, A as ASSOCIATED_TABLE_COLUMNS, D as DEFAULT_SORT_PROPERTIES, s as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, i as DEFAULT_PAGE_VALUES, q as DASHBOARD_KIND } from './index-C7irWceQ.js';
|
|
15
15
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
|
16
16
|
import { t } from 'i18next';
|
|
17
17
|
import { toLabelAndValue, humanize, snakeToCamelCase, isPresent, isNotPresent, camelToSnakeCase } from 'neetocist';
|
|
@@ -8,11 +8,11 @@ import { Bar, buildFiltersFromURL } from '@bigbinary/neeto-filters-frontend';
|
|
|
8
8
|
import { Modal, Typography, Tooltip, Tag, Pane, Spinner, Button, NoData, Table, Dropdown, Tab } from '@bigbinary/neetoui';
|
|
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-
|
|
11
|
+
import { E as ExportModal } from './ExportModal-CxKyrlwf.js';
|
|
12
12
|
import { useQuery } from '@tanstack/react-query';
|
|
13
13
|
import { useMutationWithInvalidation } from 'neetocommons/react-utils';
|
|
14
14
|
import axios from 'axios';
|
|
15
|
-
import { B as BASE_URL, v as preProcessStatus, w as getTagStyle, l as formatAmount, m as formatCurrency, x as PAYMENT_KIND, S as SORT_DIRECTIONS, p as processDataIndex, D as DEFAULT_SORT_PROPERTIES, s as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, i as DEFAULT_PAGE_VALUES, q as DASHBOARD_KIND } from './index-
|
|
15
|
+
import { B as BASE_URL, v as preProcessStatus, w as getTagStyle, l as formatAmount, m as formatCurrency, x as PAYMENT_KIND, S as SORT_DIRECTIONS, p as processDataIndex, D as DEFAULT_SORT_PROPERTIES, s as shouldTabsVisible, U as UN_HIDEABLE_COLUMNS, i as DEFAULT_PAGE_VALUES, q as DASHBOARD_KIND } from './index-C7irWceQ.js';
|
|
16
16
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
|
17
17
|
import { Form, Textarea, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
18
18
|
import { useTranslation, Trans } from 'react-i18next';
|
|
@@ -5,7 +5,7 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
5
5
|
import { useMutationWithInvalidation } from 'neetocommons/react-utils';
|
|
6
6
|
import { isNotNil } from 'ramda';
|
|
7
7
|
import axios from 'axios';
|
|
8
|
-
import { B as BASE_URL } from './index-
|
|
8
|
+
import { B as BASE_URL } from './index-C7irWceQ.js';
|
|
9
9
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
|
10
10
|
import 'i18next';
|
|
11
11
|
import 'neetocommons/constants';
|
package/dist/StripeConnect.js
CHANGED
|
@@ -10,12 +10,12 @@ import { buildUrl } from 'neetocommons/utils';
|
|
|
10
10
|
import { Stripe } from '@bigbinary/neeto-icons/misc';
|
|
11
11
|
import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
|
|
12
12
|
import { Button, Radio, Spinner, Callout, Typography } from '@bigbinary/neetoui';
|
|
13
|
-
import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-
|
|
14
|
-
import { y as STRIPE_CONNECT_ENDPOINT, B as BASE_URL, t as POLLING_INTERVAL, E as ERROR_TYPE, M as MAX_POLLING_TIME } from './index-
|
|
13
|
+
import { u as useFetchPaymentIntegrations } from './useIntegrationsApi-D1bkKtoy.js';
|
|
14
|
+
import { y as STRIPE_CONNECT_ENDPOINT, B as BASE_URL, t as POLLING_INTERVAL, E as ERROR_TYPE, M as MAX_POLLING_TIME } from './index-C7irWceQ.js';
|
|
15
15
|
import { t } from 'i18next';
|
|
16
16
|
import * as yup from 'yup';
|
|
17
17
|
import { Form, ActionBlock, Select } from '@bigbinary/neetoui/formik';
|
|
18
|
-
import { a as useCreateStripeAccount, b as usePollingStripeAccountCreationStatus } from './useAccountsApi-
|
|
18
|
+
import { a as useCreateStripeAccount, b as usePollingStripeAccountCreationStatus } from './useAccountsApi-DPem_UA-.js';
|
|
19
19
|
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
|
20
20
|
import axios from 'axios';
|
|
21
21
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
package/dist/StripeManage.js
CHANGED
|
@@ -8,7 +8,7 @@ import '@babel/runtime/helpers/defineProperty';
|
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import 'ramda';
|
|
10
10
|
import 'axios';
|
|
11
|
-
import './index-
|
|
11
|
+
import './index-C7irWceQ.js';
|
|
12
12
|
import 'i18next';
|
|
13
13
|
import 'neetocommons/constants';
|
|
14
14
|
import 'decimal.js';
|
package/dist/TaxesDashboard.js
CHANGED
|
@@ -7,7 +7,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
7
7
|
import { useQuery } from '@tanstack/react-query';
|
|
8
8
|
import { useMutationWithInvalidation } from 'neetocommons/react-utils';
|
|
9
9
|
import axios from 'axios';
|
|
10
|
-
import { B as BASE_URL } from './index-
|
|
10
|
+
import { B as BASE_URL } from './index-C7irWceQ.js';
|
|
11
11
|
import { Q as QUERY_KEYS } from './queryConstants-DFKKEEo0.js';
|
|
12
12
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
13
13
|
import Header$1 from '@bigbinary/neeto-molecules/Header';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var constants = require('./index-CZ_VFGNj.js');
|
|
4
|
+
require('i18next');
|
|
5
|
+
require('neetocommons/constants');
|
|
6
|
+
require('decimal.js');
|
|
7
|
+
require('neetocist');
|
|
8
|
+
require('neetocommons/utils');
|
|
9
|
+
require('ramda');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
module.exports = constants.getAmountInLargestCurrencyUnit;
|
|
14
|
+
//# sourceMappingURL=getAmountInLargestCurrencyUnit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAmountInLargestCurrencyUnit.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'i18next';
|
|
2
2
|
import 'neetocommons/constants';
|
|
3
|
-
export { A as ASSOCIATED_TABLE_COLUMNS, B as BASE_URL, J as CURRENCY_OPTIONS, q as DASHBOARD_KIND, i as DEFAULT_PAGE_VALUES, D as DEFAULT_SORT_PROPERTIES, j as DEFAULT_TAG_STYLE, E as ERROR_TYPE, V as FILTER_COLUMNS, M as MAX_POLLING_TIME, x as PAYMENT_KIND, P as PAYMENT_PROVIDERS, K as PAYMENT_STATUS_TYPE, t as POLLING_INTERVAL, Q as RAZORPAY_CURRENCY_OPTIONS, R as RAZORPAY_PAYMENT_BUTTON_OPTIONS, L as REFUND_STATUS_TYPE, S as SORT_DIRECTIONS, y as STRIPE_CONNECT_ENDPOINT, O as STRIPE_CURRENCY_OPTIONS, N as STRIPE_DASHBOARD_LINK, T as TAG_STYLE, W as TIP_KIND, U as UN_HIDEABLE_COLUMNS, Z as ZERO_DECIMAL_CURRENCIES } from './index-
|
|
3
|
+
export { A as ASSOCIATED_TABLE_COLUMNS, B as BASE_URL, J as CURRENCY_OPTIONS, q as DASHBOARD_KIND, i as DEFAULT_PAGE_VALUES, D as DEFAULT_SORT_PROPERTIES, j as DEFAULT_TAG_STYLE, E as ERROR_TYPE, V as FILTER_COLUMNS, M as MAX_POLLING_TIME, x as PAYMENT_KIND, P as PAYMENT_PROVIDERS, K as PAYMENT_STATUS_TYPE, t as POLLING_INTERVAL, Q as RAZORPAY_CURRENCY_OPTIONS, R as RAZORPAY_PAYMENT_BUTTON_OPTIONS, L as REFUND_STATUS_TYPE, S as SORT_DIRECTIONS, y as STRIPE_CONNECT_ENDPOINT, O as STRIPE_CURRENCY_OPTIONS, N as STRIPE_DASHBOARD_LINK, T as TAG_STYLE, W as TIP_KIND, U as UN_HIDEABLE_COLUMNS, Z as ZERO_DECIMAL_CURRENCIES } from './index-C7irWceQ.js';
|
|
4
4
|
import 'decimal.js';
|
|
5
5
|
import 'neetocist';
|
|
6
6
|
import 'neetocommons/utils';
|
|
@@ -2,7 +2,7 @@ import { QueryClient, QueryCache, keepPreviousData, QueryClientProvider, useMuta
|
|
|
2
2
|
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
|
3
3
|
import { DEFAULT_STALE_TIME } from 'neetocommons/constants';
|
|
4
4
|
import axios from 'axios';
|
|
5
|
-
import { B as BASE_URL, i as DEFAULT_PAGE_VALUES } from './index-
|
|
5
|
+
import { B as BASE_URL, i as DEFAULT_PAGE_VALUES } from './index-C7irWceQ.js';
|
|
6
6
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
7
7
|
import { camelToSnakeCase } from 'neetocist';
|
|
8
8
|
import { isEmpty, assoc, modify, concat } from 'ramda';
|
|
@@ -101,4 +101,4 @@ var buildRowData = function buildRowData(_ref2) {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
export { buildPayload as a, buildDefaultPageProperties as b, buildRowData as c, useExportData as u, withReactQuery as w };
|
|
104
|
-
//# sourceMappingURL=dashboard-
|
|
104
|
+
//# sourceMappingURL=dashboard-ClEN2ygs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-
|
|
1
|
+
{"version":3,"file":"dashboard-ClEN2ygs.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","React","createElement","QueryClientProvider","client","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","_objectSpread","_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,WAAW,CAAC;AAClCC,EAAAA,UAAU,EAAE,IAAIC,UAAU,EAAE;AAC5BC,EAAAA,cAAc,EAAE;AACdC,IAAAA,OAAO,EAAE;AACPC,MAAAA,SAAS,EAAEC,kBAAkB;AAC7BC,MAAAA,eAAe,EAAEC;AACnB;AACF;AACF,CAAC,CAAC;;ACjBF;AACA;AAMA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,SAAS,EAAI;AAClC,EAAA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAGC,KAAK,EAAA;AAAA,IAAA,oBACxBC,KAAA,CAAAC,aAAA,CAACC,mBAAmB,EAAA;AAACC,MAAAA,MAAM,EAAEjB;AAAY,KAAA,eACvCc,KAAA,CAAAC,aAAA,CAACJ,SAAS,EAAKE,KAAQ,CAAC,eACxBC,KAAA,CAAAC,aAAA,CAACG,kBAAkB,EAAA;AAACC,MAAAA,aAAa,EAAE,KAAM;AAACC,MAAAA,QAAQ,EAAC;AAAQ,KAAE,CAC1C,CAAC;GACvB;AAED,EAAA,OAAOR,YAAY;AACrB;;ACZA,IAAMS,UAAU,GAAG,SAAbA,UAAUA,CAAGC,OAAO,EAAA;EAAA,OACxBC,KAAK,CAACC,IAAI,CAAA,EAAA,CAAAC,MAAA,CAAIC,QAAQ,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;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A,aAAA,CAAA,EAAA,EACnBoB,OAAO,CAAA,EAAA,EAAA,EAAA;MACVI,OAAO,EAAEJ,OAAO,CAACI,OAAO;AACxBC,MAAAA,UAAU,EAAEL,OAAO;AACnBM,MAAAA,EAAE,EAAEC,OAAO,CAAC7B,cAAc,CAAC,GACvBuB,KAAK,GAAG,CAAC,GACT,CAAAC,CAAAA,oBAAA,GAAAxB,cAAc,CAACC,GAAG,CAAC,MAAA,IAAA,IAAAuB,oBAAA,KAAnBA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA,GAAAA,oBAAA,CAAqBT,QAAQ,KAAI,CAAAU,CAAAA,oBAAA,GAAAzB,cAAc,CAACC,GAAG,CAAC,MAAA,IAAA,IAAAwB,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;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { a as getAmountInLargestCurrencyUnit } from './index-C7irWceQ.js';
|
|
2
|
+
import 'i18next';
|
|
3
|
+
import 'neetocommons/constants';
|
|
4
|
+
import 'decimal.js';
|
|
5
|
+
import 'neetocist';
|
|
6
|
+
import 'neetocommons/utils';
|
|
7
|
+
import 'ramda';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export { getAmountInLargestCurrencyUnit as default };
|
|
12
|
+
//# sourceMappingURL=getAmountInLargestCurrencyUnit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAmountInLargestCurrencyUnit.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/getQrCodeValue.js
CHANGED
package/dist/getTaxAmount.js
CHANGED
package/dist/getTipAmount.js
CHANGED
package/dist/hasAmountToPay.js
CHANGED