@justifi/webcomponents 6.4.2 → 6.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/cjs/{check-pkg-version-goSFbVFL.js → check-pkg-version-CnAkXgrN.js} +1 -1
  2. package/dist/cjs/hidden-input_2.cjs.entry.js +18 -4
  3. package/dist/cjs/internal-tokenize-payment-method_7.cjs.entry.js +2 -2
  4. package/dist/cjs/justifi-apple-pay_7.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
  13. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
  19. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  20. package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
  21. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
  22. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
  23. package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
  24. package/dist/cjs/{package-jZDXnKmY.js → package-CfJO8jEa.js} +1 -1
  25. package/dist/collection/ui-components/form/hidden-input.js +17 -3
  26. package/dist/docs.json +1 -1
  27. package/dist/esm/{check-pkg-version-CPDwCVPS.js → check-pkg-version-DrJd3vkn.js} +1 -1
  28. package/dist/esm/hidden-input_2.entry.js +18 -4
  29. package/dist/esm/internal-tokenize-payment-method_7.entry.js +2 -2
  30. package/dist/esm/justifi-apple-pay_7.entry.js +2 -2
  31. package/dist/esm/justifi-business-details.entry.js +2 -2
  32. package/dist/esm/justifi-business-form.entry.js +2 -2
  33. package/dist/esm/justifi-checkout.entry.js +2 -2
  34. package/dist/esm/justifi-checkouts-list.entry.js +2 -2
  35. package/dist/esm/justifi-dispute-management.entry.js +2 -2
  36. package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
  37. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  38. package/dist/esm/justifi-order-terminals.entry.js +2 -2
  39. package/dist/esm/justifi-payment-details.entry.js +2 -2
  40. package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
  41. package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
  42. package/dist/esm/justifi-payments-list.entry.js +2 -2
  43. package/dist/esm/justifi-payout-details.entry.js +2 -2
  44. package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
  45. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  46. package/dist/esm/justifi-refund-payment.entry.js +2 -2
  47. package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
  48. package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
  49. package/dist/esm/justifi-terminals-list.entry.js +2 -2
  50. package/dist/esm/{package-B3SPy-II.js → package-DUwyoa82.js} +1 -1
  51. package/dist/module/hidden-input2.js +17 -3
  52. package/dist/module/package.js +1 -1
  53. package/dist/types/ui-components/form/hidden-input.d.ts +1 -0
  54. package/dist/webcomponents/{p-24c22851.entry.js → p-1242bbf1.entry.js} +1 -1
  55. package/dist/webcomponents/{p-6d06ea25.entry.js → p-170700b1.entry.js} +1 -1
  56. package/dist/webcomponents/{p-d2bb462e.entry.js → p-1939d1e3.entry.js} +1 -1
  57. package/dist/webcomponents/{p-44e021e3.entry.js → p-3b49fc33.entry.js} +1 -1
  58. package/dist/webcomponents/{p-ad8b9fba.entry.js → p-4da3e157.entry.js} +1 -1
  59. package/dist/webcomponents/{p-6550b836.entry.js → p-58dee174.entry.js} +1 -1
  60. package/dist/webcomponents/{p-d3e4697f.entry.js → p-69195676.entry.js} +1 -1
  61. package/dist/webcomponents/{p-e3f6c3c4.entry.js → p-8432a466.entry.js} +1 -1
  62. package/dist/webcomponents/{p-05351f0d.entry.js → p-84a44362.entry.js} +1 -1
  63. package/dist/webcomponents/p-8b2026d3.entry.js +1 -0
  64. package/dist/webcomponents/p-DUwyoa82.js +1 -0
  65. package/dist/webcomponents/{p-BiizzRhw.js → p-XqsvHFg_.js} +1 -1
  66. package/dist/webcomponents/{p-bd10429d.entry.js → p-aa51df2c.entry.js} +1 -1
  67. package/dist/webcomponents/{p-1b94c32d.entry.js → p-bd73fba1.entry.js} +1 -1
  68. package/dist/webcomponents/{p-d89c166f.entry.js → p-c7bfea00.entry.js} +1 -1
  69. package/dist/webcomponents/{p-0389ea61.entry.js → p-c7f2cf51.entry.js} +1 -1
  70. package/dist/webcomponents/{p-8bfd15af.entry.js → p-c988bd84.entry.js} +1 -1
  71. package/dist/webcomponents/p-cef213c3.entry.js +1 -0
  72. package/dist/webcomponents/{p-07e85954.entry.js → p-db651f27.entry.js} +1 -1
  73. package/dist/webcomponents/{p-ebb73921.entry.js → p-def857b8.entry.js} +1 -1
  74. package/dist/webcomponents/p-df0e5377.entry.js +1 -0
  75. package/dist/webcomponents/p-e23219c6.entry.js +1 -0
  76. package/dist/webcomponents/{p-b3e0c981.entry.js → p-e5caab42.entry.js} +1 -1
  77. package/dist/webcomponents/{p-ae62e01d.entry.js → p-ff968ab6.entry.js} +1 -1
  78. package/dist/webcomponents/webcomponents.esm.js +1 -1
  79. package/package.json +1 -1
  80. package/dist/webcomponents/p-01c9c76c.entry.js +0 -1
  81. package/dist/webcomponents/p-4488378e.entry.js +0 -1
  82. package/dist/webcomponents/p-4ed1fc3b.entry.js +0 -1
  83. package/dist/webcomponents/p-B3SPy-II.js +0 -1
  84. package/dist/webcomponents/p-a793d1bd.entry.js +0 -1
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-BX7Rjm1M.js';
3
3
  import { B as BusinessService } from './business.service-CaEVmi4X.js';
4
4
  import { m as makeGetBusiness } from './get-business-Xt7B5dSo.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
6
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
7
7
  import './parts-wtuY7MT2.js';
8
8
  import './Api-DX-IWyBw.js';
9
9
  import './config-state-C2NXATwF.js';
@@ -15,7 +15,7 @@ import './Dispute-BH0Xfn-F.js';
15
15
  import './Pagination-CLHwhyvu.js';
16
16
  import './Business-B5rtFhtR.js';
17
17
  import './utils-BeQLScSm.js';
18
- import './package-B3SPy-II.js';
18
+ import './package-DUwyoa82.js';
19
19
 
20
20
  const BusinessDetails = class {
21
21
  constructor(hostRef) {
@@ -9,7 +9,7 @@ import './Refund-L_muwEAh.js';
9
9
  import './Pagination-CLHwhyvu.js';
10
10
  import { C as CountryCode, B as Business, b as BusinessFormServerErrors } from './Business-B5rtFhtR.js';
11
11
  import './Dispute-BH0Xfn-F.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
13
13
  import { B as Button } from './button-DBmjN7Ra.js';
14
14
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
15
15
  import { H as Header1 } from './header-1-CPF3S2CC.js';
@@ -24,7 +24,7 @@ import './country-config-BQ4D46Lb.js';
24
24
  import './business-form-options-D6s5H4RI.js';
25
25
  import './index-B-fWxE5e.js';
26
26
  import './utils-CIaHqjQt.js';
27
- import './package-B3SPy-II.js';
27
+ import './package-DUwyoa82.js';
28
28
  import './Api-DX-IWyBw.js';
29
29
  import './parts-wtuY7MT2.js';
30
30
  import './utils-BeQLScSm.js';
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
3
3
  import { c as checkoutStore } from './checkout.store-CaS_htQd.js';
4
4
  import { d as checkoutSummary } from './parts-wtuY7MT2.js';
5
5
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
6
6
  import './event-types-CZfYo5-1.js';
7
7
  import { P as PAYMENT_METHODS } from './index-DCIW8z1f.js';
8
- import './package-B3SPy-II.js';
8
+ import './package-DUwyoa82.js';
9
9
  import './Api-DX-IWyBw.js';
10
10
  import './config-state-C2NXATwF.js';
11
11
  import './index-B-fWxE5e.js';
@@ -7,7 +7,7 @@ import './Pagination-CLHwhyvu.js';
7
7
  import './Business-B5rtFhtR.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
10
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
11
11
  import { C as CheckoutService } from './checkout.service-BpaVN1_f.js';
12
12
  import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-Cjz3-2D3.js';
13
13
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
@@ -15,7 +15,7 @@ import './event-types-CZfYo5-1.js';
15
15
  import { d as defaultColumnsKeys } from './checkouts-table-lgbZpF1o.js';
16
16
  import './index-B-fWxE5e.js';
17
17
  import './utils-CIaHqjQt.js';
18
- import './package-B3SPy-II.js';
18
+ import './package-DUwyoa82.js';
19
19
  import './Api-DX-IWyBw.js';
20
20
  import './badge-Bgosx-DC.js';
21
21
  import './parts-wtuY7MT2.js';
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
4
4
  import { D as Dispute } from './Dispute-BH0Xfn-F.js';
5
5
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
6
6
  import { D as DisputeService } from './dispute.service-Dq1SPI2m.js';
7
- import './package-B3SPy-II.js';
7
+ import './package-DUwyoa82.js';
8
8
  import './Api-DX-IWyBw.js';
9
9
  import './config-state-C2NXATwF.js';
10
10
  import './index-B-fWxE5e.js';
@@ -9,7 +9,7 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
9
9
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
10
10
  import { D as DisputeService } from './dispute.service-Dq1SPI2m.js';
11
11
  import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
13
13
  import './dinero-HXpYMWUU.js';
14
14
  import './Api-DX-IWyBw.js';
15
15
  import './config-state-C2NXATwF.js';
@@ -18,7 +18,7 @@ import './Refund-L_muwEAh.js';
18
18
  import './Dispute-BH0Xfn-F.js';
19
19
  import './Pagination-CLHwhyvu.js';
20
20
  import './Business-B5rtFhtR.js';
21
- import './package-B3SPy-II.js';
21
+ import './package-DUwyoa82.js';
22
22
 
23
23
  const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
24
24
  var _a;
@@ -7,13 +7,13 @@ import './Business-B5rtFhtR.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
8
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
9
9
  import { E as ErrorState } from './utils-BX7Rjm1M.js';
10
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
11
11
  import './config-state-C2NXATwF.js';
12
12
  import './index-B-fWxE5e.js';
13
13
  import './utils-CIaHqjQt.js';
14
14
  import './dinero-HXpYMWUU.js';
15
15
  import './parts-wtuY7MT2.js';
16
- import './package-B3SPy-II.js';
16
+ import './package-DUwyoa82.js';
17
17
 
18
18
  const api = Api();
19
19
  class ReportsService {
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-DwYM91AU.js'
2
2
  import { ao as heading5, am as heading4, af as buttonPrimary, D as text } from './parts-wtuY7MT2.js';
3
3
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
4
4
  import './event-types-CZfYo5-1.js';
5
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
7
7
  import { B as BusinessService } from './business.service-CaEVmi4X.js';
8
8
  import { B as Business } from './Business-B5rtFhtR.js';
@@ -16,7 +16,7 @@ import './Dispute-BH0Xfn-F.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
17
17
  import { T as TerminalService } from './terminal.service-RAu777Qf.js';
18
18
  import { k as formatPhoneNumber } from './utils-CIaHqjQt.js';
19
- import './package-B3SPy-II.js';
19
+ import './package-DUwyoa82.js';
20
20
  import './Api-DX-IWyBw.js';
21
21
  import './index-B-fWxE5e.js';
22
22
 
@@ -3,7 +3,7 @@ import { P as PaymentService } from './payment.service-4wGt-zDW.js';
3
3
  import { m as makeGetPaymentDetails } from './get-payment-details-C2YiQBG7.js';
4
4
  import { E as ErrorState } from './utils-BX7Rjm1M.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
6
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
6
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
7
7
  import './Api-DX-IWyBw.js';
8
8
  import './config-state-C2NXATwF.js';
9
9
  import './index-B-fWxE5e.js';
@@ -15,7 +15,7 @@ import './Pagination-CLHwhyvu.js';
15
15
  import './Business-B5rtFhtR.js';
16
16
  import './utils-BeQLScSm.js';
17
17
  import './parts-wtuY7MT2.js';
18
- import './package-B3SPy-II.js';
18
+ import './package-DUwyoa82.js';
19
19
 
20
20
  const PaymentDetails = class {
21
21
  constructor(hostRef) {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
3
3
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
4
4
  import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-ONP8lDnV.js';
5
5
  import { B as BusinessService } from './business.service-CaEVmi4X.js';
@@ -8,7 +8,7 @@ import './Refund-L_muwEAh.js';
8
8
  import './Pagination-CLHwhyvu.js';
9
9
  import './Business-B5rtFhtR.js';
10
10
  import './Dispute-BH0Xfn-F.js';
11
- import './package-B3SPy-II.js';
11
+ import './package-DUwyoa82.js';
12
12
  import './utils-BeQLScSm.js';
13
13
  import './config-state-C2NXATwF.js';
14
14
  import './index-B-fWxE5e.js';
@@ -6,7 +6,7 @@ import { g as PaymentBalanceTransaction } from './Refund-L_muwEAh.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Business-B5rtFhtR.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
11
  import { P as PaymentService } from './payment.service-4wGt-zDW.js';
12
12
  import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-Cjq1A6mO.js';
@@ -15,7 +15,7 @@ import { T as TableClickActions } from './event-types-CZfYo5-1.js';
15
15
  import { a as convertToLocal } from './utils-CIaHqjQt.js';
16
16
  import { S as tableHeadCell, T as getAlternateTableCellPart } from './parts-wtuY7MT2.js';
17
17
  import './index-B-fWxE5e.js';
18
- import './package-B3SPy-II.js';
18
+ import './package-DUwyoa82.js';
19
19
  import './Api-DX-IWyBw.js';
20
20
  import './spinner-tU4D9iak.js';
21
21
 
@@ -8,14 +8,14 @@ import './Pagination-CLHwhyvu.js';
8
8
  import './Business-B5rtFhtR.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
12
12
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
13
13
  import './event-types-CZfYo5-1.js';
14
14
  import { d as defaultColumnsKeys } from './payments-table-CK9BRZEz.js';
15
15
  import './Api-DX-IWyBw.js';
16
16
  import './utils-CIaHqjQt.js';
17
17
  import './index-B-fWxE5e.js';
18
- import './package-B3SPy-II.js';
18
+ import './package-DUwyoa82.js';
19
19
  import './payments-status-Dypl6WFL.js';
20
20
  import './badge-Bgosx-DC.js';
21
21
  import './parts-wtuY7MT2.js';
@@ -9,13 +9,13 @@ import './Business-B5rtFhtR.js';
9
9
  import './Dispute-BH0Xfn-F.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
11
  import { E as ErrorState } from './utils-BX7Rjm1M.js';
12
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
12
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
13
13
  import { m as makeGetPayoutCSV } from './get-payout-csv-D-Lnooki.js';
14
14
  import './Api-DX-IWyBw.js';
15
15
  import './utils-CIaHqjQt.js';
16
16
  import './index-B-fWxE5e.js';
17
17
  import './parts-wtuY7MT2.js';
18
- import './package-B3SPy-II.js';
18
+ import './package-DUwyoa82.js';
19
19
 
20
20
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
21
21
  var _a;
@@ -6,7 +6,7 @@ import { h as PayoutBalanceTransaction } from './Refund-L_muwEAh.js';
6
6
  import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
7
7
  import './Business-B5rtFhtR.js';
8
8
  import './Dispute-BH0Xfn-F.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
10
10
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
11
11
  import { P as PayoutService } from './payout.service-BYigYrQu.js';
12
12
  import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-Cjq1A6mO.js';
@@ -15,7 +15,7 @@ import { T as TableClickActions } from './event-types-CZfYo5-1.js';
15
15
  import { a as convertToLocal } from './utils-CIaHqjQt.js';
16
16
  import { S as tableHeadCell, T as getAlternateTableCellPart } from './parts-wtuY7MT2.js';
17
17
  import './index-B-fWxE5e.js';
18
- import './package-B3SPy-II.js';
18
+ import './package-DUwyoa82.js';
19
19
  import './Api-DX-IWyBw.js';
20
20
  import './spinner-tU4D9iak.js';
21
21
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
4
4
  import { P as PayoutService } from './payout.service-BYigYrQu.js';
5
5
  import './config-state-C2NXATwF.js';
6
6
  import './dinero-HXpYMWUU.js';
@@ -14,7 +14,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
14
14
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
15
15
  import './event-types-CZfYo5-1.js';
16
16
  import { d as defaultColumnsKeys } from './payouts-table-Dd8IDBBX.js';
17
- import './package-B3SPy-II.js';
17
+ import './package-DUwyoa82.js';
18
18
  import './Api-DX-IWyBw.js';
19
19
  import './utils-CIaHqjQt.js';
20
20
  import './index-B-fWxE5e.js';
@@ -12,7 +12,7 @@ import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
12
12
  import './event-types-CZfYo5-1.js';
13
13
  import { P as PaymentService } from './payment.service-4wGt-zDW.js';
14
14
  import { m as makeGetPaymentDetails } from './get-payment-details-C2YiQBG7.js';
15
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
15
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
16
16
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
17
17
  import { A as Api } from './Api-DX-IWyBw.js';
18
18
  import { S as Skeleton } from './skeleton-BmRZRW5K.js';
@@ -20,7 +20,7 @@ import './_commonjsHelpers-BFTU3MAI.js';
20
20
  import './dinero-HXpYMWUU.js';
21
21
  import './index-B-fWxE5e.js';
22
22
  import './parts-wtuY7MT2.js';
23
- import './package-B3SPy-II.js';
23
+ import './package-DUwyoa82.js';
24
24
 
25
25
  const amountValidation = (maxAmount) => {
26
26
  const max = +maxAmount;
@@ -6,7 +6,7 @@ import './Pagination-CLHwhyvu.js';
6
6
  import './Business-B5rtFhtR.js';
7
7
  import './Dispute-BH0Xfn-F.js';
8
8
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
9
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
9
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
10
10
  import { c as checkoutStore } from './checkout.store-CaS_htQd.js';
11
11
  import { p as processHTML, f as formatCurrency, r as removeAttribute, j as addAttribute } from './utils-CIaHqjQt.js';
12
12
  import { v as validateInsuranceValues, i as insuranceValues, a as insuranceErrors, H as Header2 } from './insurance-state-DRe0g_wf.js';
@@ -16,7 +16,7 @@ import './event-types-CZfYo5-1.js';
16
16
  import { S as Skeleton } from './skeleton-BmRZRW5K.js';
17
17
  import './config-state-C2NXATwF.js';
18
18
  import './index-B-fWxE5e.js';
19
- import './package-B3SPy-II.js';
19
+ import './package-DUwyoa82.js';
20
20
  import './index-DCIW8z1f.js';
21
21
  import './dinero-HXpYMWUU.js';
22
22
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
2
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
3
3
  import './event-types-CZfYo5-1.js';
4
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
4
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
5
5
  import { d as defaultColumnsKeys } from './terminal-orders-table-CMWBIr9y.js';
6
6
  import './config-state-C2NXATwF.js';
7
7
  import './dinero-HXpYMWUU.js';
@@ -12,7 +12,7 @@ import './Business-B5rtFhtR.js';
12
12
  import './Dispute-BH0Xfn-F.js';
13
13
  import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
14
14
  import { A as Api } from './Api-DX-IWyBw.js';
15
- import './package-B3SPy-II.js';
15
+ import './package-DUwyoa82.js';
16
16
  import './parts-wtuY7MT2.js';
17
17
  import './utils-CIaHqjQt.js';
18
18
  import './badge-Bgosx-DC.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-DwYM91AU.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-CPDwCVPS.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-DrJd3vkn.js';
4
4
  import { T as TerminalService } from './terminal.service-RAu777Qf.js';
5
5
  import './config-state-C2NXATwF.js';
6
6
  import './dinero-HXpYMWUU.js';
@@ -13,7 +13,7 @@ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccoun
13
13
  import { S as StyledHost } from './styled-host-DhOcKWqZ.js';
14
14
  import './event-types-CZfYo5-1.js';
15
15
  import { d as defaultColumnsKeys } from './terminals-table-D9okETJr.js';
16
- import './package-B3SPy-II.js';
16
+ import './package-DUwyoa82.js';
17
17
  import './Api-DX-IWyBw.js';
18
18
  import './utils-CIaHqjQt.js';
19
19
  import './index-B-fWxE5e.js';
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.4.2";
2
+ const version = "6.4.3";
3
3
  var packageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -11,6 +11,20 @@ const HiddenInput = /*@__PURE__*/ proxyCustomElement(class HiddenInput extends H
11
11
  this.isFocused = false;
12
12
  this.errorText = '';
13
13
  }
14
+ focusWithoutPageScroll(input) {
15
+ if (!input)
16
+ return;
17
+ try {
18
+ // Use preventScroll where supported
19
+ input.focus({ preventScroll: true });
20
+ }
21
+ catch (_e) {
22
+ // Fallback for older browsers
23
+ const { scrollX, scrollY } = window;
24
+ input.focus();
25
+ window.scrollTo(scrollX, scrollY);
26
+ }
27
+ }
14
28
  async componentDidLoad() {
15
29
  const fontStyles = await this.getBaseFontStyles();
16
30
  iframeInputStylesSet('fontStyles', fontStyles);
@@ -39,7 +53,7 @@ const HiddenInput = /*@__PURE__*/ proxyCustomElement(class HiddenInput extends H
39
53
  ;
40
54
  async getFocusedStyles() {
41
55
  return new Promise((resolve, _reject) => {
42
- this.hiddenInput.focus();
56
+ this.focusWithoutPageScroll(this.hiddenInput);
43
57
  setTimeout(() => {
44
58
  this.hiddenInput.blur();
45
59
  let computedStyles = getComputedStyle(this.hiddenInput);
@@ -52,7 +66,7 @@ const HiddenInput = /*@__PURE__*/ proxyCustomElement(class HiddenInput extends H
52
66
  }
53
67
  async getFocusedAndInvalidStyles() {
54
68
  return new Promise((resolve, _reject) => {
55
- this.hiddenInput.focus();
69
+ this.focusWithoutPageScroll(this.hiddenInput);
56
70
  this.errorText = 'Error';
57
71
  setTimeout(() => {
58
72
  const computedStyles = getComputedStyle(this.hiddenInput);
@@ -78,7 +92,7 @@ const HiddenInput = /*@__PURE__*/ proxyCustomElement(class HiddenInput extends H
78
92
  return input;
79
93
  }
80
94
  render() {
81
- return (h(Host, { key: '1058a3fea9276fe3f9eb3158365a839603e06532' }, h("input", { key: '856ad55446d13a3a8d935e90bbdba5a0ea77b706', ref: el => this.hiddenInput = el, type: "text", class: this.errorText ? "form-control is-invalid" : "form-control", onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, part: this.part, tabindex: "-1", style: { height: '0', opacity: '0', pointerEvents: 'none', animation: 'none' } })));
95
+ return (h(Host, { key: '213626f7805ac907a867ccca6fdaf02b9ea3382a' }, h("input", { key: '1f54e360af287b98c49c62687b90fd0a20251c3c', ref: el => this.hiddenInput = el, type: "text", class: this.errorText ? "form-control is-invalid" : "form-control", onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, part: this.part, tabindex: "-1", style: { height: '0', opacity: '0', pointerEvents: 'none', animation: 'none' } })));
82
96
  }
83
97
  }, [256, "hidden-input", {
84
98
  "isFocused": [32],
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "6.4.2";
2
+ const version = "6.4.3";
3
3
  var webcomponentsPackageJson = {
4
4
  name: name,
5
5
  version: version};
@@ -2,6 +2,7 @@ export declare class HiddenInput {
2
2
  private hiddenInput;
3
3
  isFocused: boolean;
4
4
  errorText: string;
5
+ private focusWithoutPageScroll;
5
6
  componentDidLoad(): Promise<void>;
6
7
  private getBaseFontStyles;
7
8
  private getFocusedStyles;
@@ -1 +1 @@
1
- import{r as t,c as s,h as r}from"./p-DwYM91AU.js";import{A as o}from"./p-C8yN3uBj.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{E as p}from"./p-BNqo3kt0.js";import{c as h,J as c}from"./p-BiizzRhw.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-wtuY7MT2.js";import"./p-B3SPy-II.js";const m=o();class u{async fetchGrossVolumeChartData(t,s){return m.get({endpoint:`account/${t}/reports/gross_volume`,authToken:s})}}const d=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:t,authToken:s,service:r})=>async({onSuccess:o,onError:e})=>{var p;try{const h=await r.fetchGrossVolumeChartData(t,s);h.error?e({error:n(h.error),code:a(null===(p=h.error)||void 0===p?void 0:p.code),severity:i.ERROR}):o(h.data)}catch(t){const s=a(null==t?void 0:t.code);e({error:n(t),code:s,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
1
+ import{r as t,c as s,h as r}from"./p-DwYM91AU.js";import{A as o}from"./p-C8yN3uBj.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as a,a as n}from"./p-D2muobcE.js";import{E as p}from"./p-BNqo3kt0.js";import{c as h,J as c}from"./p-XqsvHFg_.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";import"./p-wtuY7MT2.js";import"./p-DUwyoa82.js";const m=o();class u{async fetchGrossVolumeChartData(t,s){return m.get({endpoint:`account/${t}/reports/gross_volume`,authToken:s})}}const d=class{constructor(r){t(this,r),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:t,authToken:s,service:r})=>async({onSuccess:o,onError:e})=>{var p;try{const h=await r.fetchGrossVolumeChartData(t,s);h.error?e({error:n(h.error),code:a(null===(p=h.error)||void 0===p?void 0:p.code),severity:i.ERROR}):o(h.data)}catch(t){const s=a(null==t?void 0:t.code);e({error:n(t),code:s,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?p(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
@@ -1 +1 @@
1
- import{r,c as s,h as t}from"./p-DwYM91AU.js";import{S as i}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as e,J as o}from"./p-BiizzRhw.js";import{d as a}from"./p-jTVpG8Gt.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as n,a as p}from"./p-Cjcsf8ku.js";import{i as c}from"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as m,a as h}from"./p-D2muobcE.js";import{A as d}from"./p-C8yN3uBj.js";import"./p-B3SPy-II.js";import"./p-wtuY7MT2.js";import"./p-BS7OgSQe.js";import"./p-DOLBAxYf.js";import"./p-BYsgavgS.js";const l=d();class u{async fetchTerminalOrders(r,s,t){return l.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const f=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=a,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){e(),this.analytics=new o(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:e,onError:o,final:a})=>{var p,d;try{const a=await t.fetchTerminalOrders(r,s,i);if(a.error)return o({error:h(a.error),code:m(null===(d=a.error)||void 0===d?void 0:d.code),severity:n.ERROR});{const r=Object.assign({},a.page_info);e({terminalOrders:(null===(p=a.data)||void 0===p?void 0:p.map((r=>new c(r))))||[],pagingInfo:r})}}catch(r){const s=m(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return a()}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"f89cb75d014a5d43c6766f0e0e7a572807c3df9f"},t("terminal-orders-list-core",{key:"c38fd6424ebca672c9577255d81b9e97712f3b9b",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{f as justifi_terminal_orders_list}
1
+ import{r,c as s,h as t}from"./p-DwYM91AU.js";import{S as i}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{c as e,J as o}from"./p-XqsvHFg_.js";import{d as a}from"./p-jTVpG8Gt.js";import"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as n,a as p}from"./p-Cjcsf8ku.js";import{i as c}from"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{g as m,a as d}from"./p-D2muobcE.js";import{A as h}from"./p-C8yN3uBj.js";import"./p-DUwyoa82.js";import"./p-wtuY7MT2.js";import"./p-BS7OgSQe.js";import"./p-DOLBAxYf.js";import"./p-BYsgavgS.js";const l=h();class u{async fetchTerminalOrders(r,s,t){return l.get({endpoint:"terminals/orders",params:t,headers:{account:r},authToken:s})}}const f=class{constructor(t){r(this,t),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=a,this.handleErrorEvent=r=>{this.errorMessage=r.detail.message,this.errorEvent.emit(r.detail)}}componentWillLoad(){e(),this.analytics=new o(this),this.initializeGetData()}disconnectedCallback(){var r;null===(r=this.analytics)||void 0===r||r.cleanup()}initializeGetData(){this.accountId&&this.authToken?this.getTerminalOrders=(({id:r,authToken:s,service:t})=>async({params:i,onSuccess:e,onError:o,final:a})=>{var p,h;try{const a=await t.fetchTerminalOrders(r,s,i);if(a.error)return o({error:d(a.error),code:m(null===(h=a.error)||void 0===h?void 0:h.code),severity:n.ERROR});{const r=Object.assign({},a.page_info);e({terminalOrders:(null===(p=a.data)||void 0===p?void 0:p.map((r=>new c(r))))||[],pagingInfo:r})}}catch(r){const s=m(null==r?void 0:r.code);return o({error:r.message||r,code:s,severity:n.ERROR})}finally{return a()}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:p.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return t(i,{key:"f89cb75d014a5d43c6766f0e0e7a572807c3df9f"},t("terminal-orders-list-core",{key:"c38fd6424ebca672c9577255d81b9e97712f3b9b",getTerminalOrders:this.getTerminalOrders,"onError-event":this.handleErrorEvent,columns:this.columns}))}};export{f as justifi_terminal_orders_list}
@@ -1 +1 @@
1
- import{h as t,r as s,c as e}from"./p-DwYM91AU.js";import{c as r,a as i,F as o}from"./p-DiJD6Iqx.js";import{f as n}from"./p-BS7OgSQe.js";import"./p-tGDdRx0W.js";import{C as a,a as u}from"./p-Cjcsf8ku.js";import{R as l,k as h}from"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{B as m}from"./p-Bqlcv3ZV.js";import{S as c}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{P as p}from"./p-C9_8N76_.js";import{m as d}from"./p-Do561C8g.js";import{c as f,J as v}from"./p-BiizzRhw.js";import{g as j,a as y}from"./p-D2muobcE.js";import{A as b}from"./p-C8yN3uBj.js";import{S as w}from"./p-c7MCfTgE.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-BYsgavgS.js";import"./p-wtuY7MT2.js";import"./p-B3SPy-II.js";const g=t=>{const s=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${n(s)}`,(function(t){return+t<=+s})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},C=t=>{if(t)return r({amount:g(t),description:i().optional(),reason:i().optional().oneOf([l.customerRequest,l.duplicate,l.fraudulent],"Select a reason")})},B=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],S=b();class x{async postRefund(t,s,e,r){return S.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":s},body:r,authToken:e})}}const T=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),I=()=>t(c,null,t("div",{class:"row gap-5"},t(T,null),t(T,null),t(T,null))),R=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){f(),this.analytics=new v(this),this.initializeApi(),this.formController=new o(C())}handleError(t,s,e){this.errorEvent.emit({errorCode:t,message:s,severity:e})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}initializeFormController(){const t=this.refundPayload.amount,s=t?t.toString():"0";this.formController=new o(C(s)),this.formController.setInitialValues({amount:s}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?d({id:this.paymentId,authToken:this.authToken,service:new p})({onSuccess:({payment:t})=>{this.refundPayload=new h({amount:t.amount_refundable})},onError:({error:t,code:s,severity:e})=>{this.handleError(s,t,e)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const s=(({authToken:t,accountId:s,paymentId:e,service:r})=>async({refundBody:i,onSuccess:o,onError:n,final:u})=>{var l;try{const u=await r.postRefund(e,s,t,i);if(u.error)return n({error:y(u.error),code:j(null===(l=u.error)||void 0===l?void 0:l.code),severity:a.ERROR});o(u)}catch(t){const s=j(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new x}),e=this.formController.values.getValue();return this.refundLoading=!0,new Promise((t=>{let r;s({refundBody:e,onSuccess:t=>{r=t},onError:({error:t,code:s,severity:e})=>{r=t,this.handleError(t,s,e)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,t(r.data)}})}))}render(){if(this.paymentLoading)return t(I,null);const s=this.formController.getInitialValues(),e=this.refundPayload.amount;return t(c,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:s.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:s.reason,inputHandler:this.inputHandler,options:B,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:s.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(m,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${n(+e)}`))))))}};export{R as justifi_refund_payment}
1
+ import{h as t,r as s,c as e}from"./p-DwYM91AU.js";import{c as r,a as i,F as o}from"./p-DiJD6Iqx.js";import{f as n}from"./p-BS7OgSQe.js";import"./p-tGDdRx0W.js";import{C as a,a as u}from"./p-Cjcsf8ku.js";import{R as l,k as h}from"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{B as m}from"./p-Bqlcv3ZV.js";import{S as c}from"./p-BP2sTIQV.js";import"./p-CZfYo5-1.js";import{P as p}from"./p-C9_8N76_.js";import{m as d}from"./p-Do561C8g.js";import{c as f,J as v}from"./p-XqsvHFg_.js";import{g as j,a as y}from"./p-D2muobcE.js";import{A as b}from"./p-C8yN3uBj.js";import{S as w}from"./p-c7MCfTgE.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-BYsgavgS.js";import"./p-wtuY7MT2.js";import"./p-DUwyoa82.js";const g=t=>{const s=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${n(s)}`,(function(t){return+t<=+s})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},C=t=>{if(t)return r({amount:g(t),description:i().optional(),reason:i().optional().oneOf([l.customerRequest,l.duplicate,l.fraudulent],"Select a reason")})},x=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],S=b();class T{async postRefund(t,s,e,r){return S.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":s},body:r,authToken:e})}}const B=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),A=()=>t(c,null,t("div",{class:"row gap-5"},t(B,null),t(B,null),t(B,null))),R=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){f(),this.analytics=new v(this),this.initializeApi(),this.formController=new o(C())}handleError(t,s,e){this.errorEvent.emit({errorCode:t,message:s,severity:e})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}initializeFormController(){const t=this.refundPayload.amount,s=t?t.toString():"0";this.formController=new o(C(s)),this.formController.setInitialValues({amount:s}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?d({id:this.paymentId,authToken:this.authToken,service:new p})({onSuccess:({payment:t})=>{this.refundPayload=new h({amount:t.amount_refundable})},onError:({error:t,code:s,severity:e})=>{this.handleError(s,t,e)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const s=(({authToken:t,accountId:s,paymentId:e,service:r})=>async({refundBody:i,onSuccess:o,onError:n,final:u})=>{var l;try{const u=await r.postRefund(e,s,t,i);if(u.error)return n({error:y(u.error),code:j(null===(l=u.error)||void 0===l?void 0:l.code),severity:a.ERROR});o(u)}catch(t){const s=j(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new T}),e=this.formController.values.getValue();return this.refundLoading=!0,new Promise((t=>{let r;s({refundBody:e,onSuccess:t=>{r=t},onError:({error:t,code:s,severity:e})=>{r=t,this.handleError(t,s,e)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,t(r.data)}})}))}render(){if(this.paymentLoading)return t(A,null);const s=this.formController.getInitialValues(),e=this.refundPayload.amount;return t(c,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:s.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:s.reason,inputHandler:this.inputHandler,options:x,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:s.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(m,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${n(+e)}`))))))}};export{R as justifi_refund_payment}
@@ -1 +1 @@
1
- import{h as t,r as e,c as a}from"./p-DwYM91AU.js";import{c as i}from"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as s,a as o}from"./p-Cjcsf8ku.js";import{h as r}from"./p-CPKSE7M4.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as n,J as h}from"./p-BiizzRhw.js";import{g as p,a as d}from"./p-D2muobcE.js";import{P as l}from"./p-D0YDz3L6.js";import{T as f,l as u,a as m,b,c as y,d as w,e as _,f as T,g as j,h as g,i as v,j as k,k as D}from"./p-BTzt8N0l.js";import{S as C}from"./p-BP2sTIQV.js";import{T as S}from"./p-CZfYo5-1.js";import{a as P}from"./p-BS7OgSQe.js";import{S as I,T as B}from"./p-wtuY7MT2.js";import"./p-BYsgavgS.js";import"./p-B3SPy-II.js";import"./p-C8yN3uBj.js";import"./p-B-0a8Xqm.js";const q={id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:I,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:I,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:I,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},E={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},O={id:e=>t("td",{part:B(e.id)},e.id),account_id:e=>t("td",{part:B(e.account_id)},e.account_id),payout_id:e=>t("td",{part:B(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:B(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:B(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:B(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:B(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:B(e.currency)},e.currency),description:e=>t("td",{part:B(e.description)},e.description),source_id:e=>t("td",{part:B(e.source_id)},e.source_id),txn_type:e=>t("td",{part:B(e.txn_type)},E[e.txn_type]),created_at:e=>t("td",{part:B(e.created_at)},t("div",{class:"fw-bold"},P(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:B(e.available_on)},t("div",{class:"fw-bold"},P(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:B(e.updated_at)},t("div",{class:"fw-bold"},P(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.updated_at,{showTime:!0})))},x=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:S.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:S.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:S.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,q,O),n(),this.analytics=new h(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:o,onError:c,final:n})=>{var h;try{const n=await a.fetchPayoutTransactions(t,e,i);n.error?c({error:d(n.error),code:p(null===(h=n.error)||void 0===h?void 0:h.code),severity:s.ERROR}):o({balanceTransactions:n.data.map((t=>new r(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=p(null==t?void 0:t.code);c({error:d(t),code:e,severity:s.ERROR})}finally{n()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,s.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(C,{key:"ab6de6bc1bd8b389c3853cc8c9ff0a52ac79e139"},t(u,{key:"3946c0161a51c292e53776df23ef0aa297ab8a24"},t(m,{key:"7f7acd0813a8eb710889d540b6c5b7ae6831e47a"},t(b,{key:"eb0b11273c85116093d119bdbc8984f7c71729f0"},t(y,{key:"5485e54cca61a69a48b4a0eb70ff4cfbf409cfab"},this.transactionsTable.columnData.map((t=>t)))),t(w,{key:"778592bd28c2ed42fcb751f695ef97b75c911c17"},t(_,{key:"2123dc933b4e16f2bc4588a6ec4357d3067a919f",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"e13e4ba98217c4c41cc406d7f6bde34831771952",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"c837011abb597d3811cdc5636a457afab49224f6",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(g,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(v,{key:"a189800b2a36f8880bb7fb2ab60b8b2afd24d760"},t(k,{key:"ae78dbea1986d6c0ee493bf26d8bb01ad294a1e2"},t(D,{key:"2146861e294be47a5c63f3354ff6744ad71b4d70",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"2ab6bfa9a7534c063e603eaf25e4e6f44cbda859",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{x as justifi_payout_transactions_list}
1
+ import{h as t,r as e,c as a}from"./p-DwYM91AU.js";import{c as s}from"./p-tGDdRx0W.js";import"./p-HXpYMWUU.js";import{C as i,a as o}from"./p-Cjcsf8ku.js";import{h as r}from"./p-CPKSE7M4.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as n,J as h}from"./p-XqsvHFg_.js";import{g as p,a as d}from"./p-D2muobcE.js";import{P as l}from"./p-D0YDz3L6.js";import{T as f,l as u,a as m,b,c as y,d as _,e as w,f as T,g as j,h as g,i as v,j as k,k as D}from"./p-BTzt8N0l.js";import{S as C}from"./p-BP2sTIQV.js";import{T as S}from"./p-CZfYo5-1.js";import{a as P}from"./p-BS7OgSQe.js";import{S as I,T as q}from"./p-wtuY7MT2.js";import"./p-BYsgavgS.js";import"./p-DUwyoa82.js";import"./p-C8yN3uBj.js";import"./p-B-0a8Xqm.js";const B={id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:I,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:I,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:I,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},E={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},O={id:e=>t("td",{part:q(e.id)},e.id),account_id:e=>t("td",{part:q(e.account_id)},e.account_id),payout_id:e=>t("td",{part:q(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:q(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:q(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:q(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:q(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:q(e.currency)},e.currency),description:e=>t("td",{part:q(e.description)},e.description),source_id:e=>t("td",{part:q(e.source_id)},e.source_id),txn_type:e=>t("td",{part:q(e.txn_type)},E[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},P(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},P(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},P(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.updated_at,{showTime:!0})))},F=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:S.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:S.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:S.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,B,O),n(),this.analytics=new h(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:s,onSuccess:o,onError:c,final:n})=>{var h;try{const n=await a.fetchPayoutTransactions(t,e,s);n.error?c({error:d(n.error),code:p(null===(h=n.error)||void 0===h?void 0:h.code),severity:i.ERROR}):o({balanceTransactions:n.data.map((t=>new r(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=p(null==t?void 0:t.code);c({error:d(t),code:e,severity:i.ERROR})}finally{n()}})({accountId:s.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(o.MISSING_PROPS,this.errorMessage,i.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(C,{key:"ab6de6bc1bd8b389c3853cc8c9ff0a52ac79e139"},t(u,{key:"3946c0161a51c292e53776df23ef0aa297ab8a24"},t(m,{key:"7f7acd0813a8eb710889d540b6c5b7ae6831e47a"},t(b,{key:"eb0b11273c85116093d119bdbc8984f7c71729f0"},t(y,{key:"5485e54cca61a69a48b4a0eb70ff4cfbf409cfab"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"778592bd28c2ed42fcb751f695ef97b75c911c17"},t(w,{key:"2123dc933b4e16f2bc4588a6ec4357d3067a919f",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"e13e4ba98217c4c41cc406d7f6bde34831771952",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"c837011abb597d3811cdc5636a457afab49224f6",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(g,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(v,{key:"a189800b2a36f8880bb7fb2ab60b8b2afd24d760"},t(k,{key:"ae78dbea1986d6c0ee493bf26d8bb01ad294a1e2"},t(D,{key:"2146861e294be47a5c63f3354ff6744ad71b4d70",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"2ab6bfa9a7534c063e603eaf25e4e6f44cbda859",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{F as justifi_payout_transactions_list}
@@ -1 +1 @@
1
- import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{c as o,J as r}from"./p-BiizzRhw.js";import{C as e,a as n}from"./p-Cjcsf8ku.js";import{m as p,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-wYnnDDuR.js";import{A as m}from"./p-C8yN3uBj.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-B3SPy-II.js";import"./p-D2muobcE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";const u=m();class d{async postProvisioning(s,i,t){return u.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"80baf93d680fd610755fdfb6be030178140568da",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}
1
+ import{r as s,c as i,h as t}from"./p-DwYM91AU.js";import{c as o,J as r}from"./p-XqsvHFg_.js";import{C as e,a as n}from"./p-Cjcsf8ku.js";import{m as p,a}from"./p-5aA7gjr5.js";import{B as h}from"./p-wYnnDDuR.js";import{A as m}from"./p-C8yN3uBj.js";import"./p-CPKSE7M4.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import"./p-DUwyoa82.js";import"./p-D2muobcE.js";import"./p-tGDdRx0W.js";import"./p-BYsgavgS.js";import"./p-BS7OgSQe.js";import"./p-HXpYMWUU.js";const u=m();class d{async postProvisioning(s,i,t){return u.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){o(),this.analytics=new r(this),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new d})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:e.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"80baf93d680fd610755fdfb6be030178140568da",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}