@justifi/webcomponents 4.13.0 → 4.14.0

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 (131) hide show
  1. package/dist/cjs/{Api-ab34a402.js → Api-3bc6e43f.js} +7 -2
  2. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +6 -6
  3. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +1 -1
  4. package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
  5. package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
  6. package/dist/cjs/justifi-business-list.cjs.entry.js +2 -2
  7. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -4
  8. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
  9. package/dist/cjs/justifi-owner-form.cjs.entry.js +2 -2
  10. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -2
  11. package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-payment-form.cjs.entry.js +36 -2
  13. package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
  14. package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
  15. package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
  16. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -2
  17. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
  18. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +2 -2
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/{payment.service-336189d3.js → payment.service-019157e9.js} +3 -3
  22. package/dist/cjs/{payout.service-6012d576.js → payout.service-7203762f.js} +3 -3
  23. package/dist/cjs/webcomponents.cjs.js +1 -1
  24. package/dist/collection/api/Api.js +7 -2
  25. package/dist/collection/api/services/business.service.js +1 -1
  26. package/dist/collection/api/services/checkout.service.js +5 -3
  27. package/dist/collection/api/services/payment.service.js +2 -2
  28. package/dist/collection/api/services/payout.service.js +2 -2
  29. package/dist/collection/api/services/reports.service.js +1 -1
  30. package/dist/collection/components/business-forms/business-form/business-form.js +1 -1
  31. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  32. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  33. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  34. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  35. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  36. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  37. package/dist/collection/components/business-list/business-list.js +1 -1
  38. package/dist/collection/components/payment-balance-transactions/payment-balance-transactions.js +1 -1
  39. package/dist/collection/components/payment-form/payment-form.js +54 -3
  40. package/dist/collection/components/payment-form/test/payment-form.spec.js +17 -34
  41. package/dist/collection/components/proceeds-list/proceeds-list.js +1 -1
  42. package/dist/collection/components/refund-form/refund-form.js +1 -1
  43. package/dist/collection/components/subaccount-details/subaccount-details.js +2 -2
  44. package/dist/collection/components/subaccounts-list/subaccounts-list.js +1 -1
  45. package/dist/docs.json +23 -2
  46. package/dist/esm/{Api-e9d568c7.js → Api-b09a2f6a.js} +7 -2
  47. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +6 -6
  48. package/dist/esm/justifi-billing-form_4.entry.js +1 -1
  49. package/dist/esm/justifi-business-details.entry.js +2 -2
  50. package/dist/esm/justifi-business-form.entry.js +2 -2
  51. package/dist/esm/justifi-business-list.entry.js +2 -2
  52. package/dist/esm/justifi-checkout.entry.js +6 -4
  53. package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
  54. package/dist/esm/justifi-owner-form.entry.js +2 -2
  55. package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -2
  56. package/dist/esm/justifi-payment-details.entry.js +2 -2
  57. package/dist/esm/justifi-payment-form.entry.js +36 -2
  58. package/dist/esm/justifi-payments-list.entry.js +2 -2
  59. package/dist/esm/justifi-payout-details.entry.js +2 -2
  60. package/dist/esm/justifi-payouts-list.entry.js +2 -2
  61. package/dist/esm/justifi-proceeds-list.entry.js +2 -2
  62. package/dist/esm/justifi-refund-form.entry.js +2 -2
  63. package/dist/esm/justifi-subaccount-details.entry.js +3 -3
  64. package/dist/esm/justifi-subaccounts-list.entry.js +2 -2
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/{payment.service-2fdc5018.js → payment.service-03e274d7.js} +3 -3
  67. package/dist/esm/{payout.service-15064bcc.js → payout.service-9823d66d.js} +3 -3
  68. package/dist/esm/webcomponents.js +1 -1
  69. package/dist/module/Api.js +7 -2
  70. package/dist/module/business-additional-questions-form-step.js +1 -1
  71. package/dist/module/business-core-info-form-step.js +1 -1
  72. package/dist/module/business-owners-form-step.js +1 -1
  73. package/dist/module/business-representative-form-step.js +1 -1
  74. package/dist/module/justifi-business-details.js +1 -1
  75. package/dist/module/justifi-business-form.js +1 -1
  76. package/dist/module/justifi-business-list.js +1 -1
  77. package/dist/module/justifi-checkout.js +5 -3
  78. package/dist/module/justifi-gross-payment-chart.js +1 -1
  79. package/dist/module/justifi-payment-balance-transactions.js +1 -1
  80. package/dist/module/justifi-payment-form.js +37 -2
  81. package/dist/module/justifi-proceeds-list.js +1 -1
  82. package/dist/module/justifi-refund-form.js +1 -1
  83. package/dist/module/justifi-subaccount-details.js +2 -2
  84. package/dist/module/justifi-subaccounts-list.js +1 -1
  85. package/dist/module/legal-address-form-step.js +1 -1
  86. package/dist/module/owner-form.js +1 -1
  87. package/dist/module/payment-method-form.js +1 -1
  88. package/dist/module/payment.service.js +2 -2
  89. package/dist/module/payout.service.js +2 -2
  90. package/dist/types/api/Api.d.ts +5 -1
  91. package/dist/types/components/payment-form/payment-form.d.ts +7 -1
  92. package/dist/types/components.d.ts +3 -1
  93. package/dist/webcomponents/p-02993072.entry.js +1 -0
  94. package/dist/webcomponents/{p-02b18979.entry.js → p-0b8c1ffc.entry.js} +1 -1
  95. package/dist/webcomponents/p-1b959678.entry.js +1 -0
  96. package/dist/webcomponents/p-28181471.entry.js +1 -0
  97. package/dist/webcomponents/{p-13e2f667.js → p-29c0b182.js} +1 -1
  98. package/dist/webcomponents/{p-d7d40d26.entry.js → p-3d2f2937.entry.js} +1 -1
  99. package/dist/webcomponents/p-3d70b0f1.entry.js +1 -0
  100. package/dist/webcomponents/p-4824018b.entry.js +1 -0
  101. package/dist/webcomponents/p-598bb67c.entry.js +1 -0
  102. package/dist/webcomponents/{p-78b32fb9.entry.js → p-5dac370e.entry.js} +1 -1
  103. package/dist/webcomponents/p-617caf03.entry.js +1 -0
  104. package/dist/webcomponents/p-70d43109.entry.js +1 -0
  105. package/dist/webcomponents/{p-9ba31a6a.entry.js → p-7c5f15f8.entry.js} +1 -1
  106. package/dist/webcomponents/p-96a86f04.entry.js +1 -0
  107. package/dist/webcomponents/p-c211d068.js +1 -0
  108. package/dist/webcomponents/p-c3d5f7de.entry.js +1 -0
  109. package/dist/webcomponents/p-c48a99b9.entry.js +1 -0
  110. package/dist/webcomponents/p-d2fcc58b.entry.js +1 -0
  111. package/dist/webcomponents/p-d57f5f01.entry.js +1 -0
  112. package/dist/webcomponents/p-edb66ae0.js +1 -0
  113. package/dist/webcomponents/p-f5ae07c4.entry.js +1 -0
  114. package/dist/webcomponents/webcomponents.esm.js +1 -1
  115. package/package.json +1 -1
  116. package/dist/webcomponents/p-101b2648.entry.js +0 -1
  117. package/dist/webcomponents/p-1885c478.entry.js +0 -1
  118. package/dist/webcomponents/p-23099f1f.entry.js +0 -1
  119. package/dist/webcomponents/p-41bdee27.entry.js +0 -1
  120. package/dist/webcomponents/p-4c84952f.entry.js +0 -1
  121. package/dist/webcomponents/p-731085e3.js +0 -1
  122. package/dist/webcomponents/p-7e334dce.entry.js +0 -1
  123. package/dist/webcomponents/p-7faacb1e.entry.js +0 -1
  124. package/dist/webcomponents/p-a9af8f40.entry.js +0 -1
  125. package/dist/webcomponents/p-b81afd51.entry.js +0 -1
  126. package/dist/webcomponents/p-bb58e656.entry.js +0 -1
  127. package/dist/webcomponents/p-bc12b8b9.js +0 -1
  128. package/dist/webcomponents/p-bfe7c55c.entry.js +0 -1
  129. package/dist/webcomponents/p-cb31488b.entry.js +0 -1
  130. package/dist/webcomponents/p-d0a8c631.entry.js +0 -1
  131. package/dist/webcomponents/p-efbc8ffc.entry.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-83dcf934.js';
2
2
  import { F as FormController } from './form-5279c05a.js';
3
3
  import { A as AdditionalQuestions, C as CoreBusinessInfo, O as Owner, R as Representative, d as deconstructDate, c as Address } from './Business-d83fbdb4.js';
4
- import { A as Api } from './Api-e9d568c7.js';
4
+ import { A as Api } from './Api-b09a2f6a.js';
5
5
  import './Pagination-afc8f96d.js';
6
6
  import './Payment-ef9fc1ae.js';
7
7
  import './Payout-dfe15b00.js';
@@ -84,7 +84,7 @@ const AdditionalQuestionsFormStep = class {
84
84
  if (!this.businessId)
85
85
  console.error(missingBusinessIdMessage);
86
86
  this.formController = new FormController(additionalQuestionsSchema(this.allowOptionalFields));
87
- this.api = Api(this.authToken, config.proxyApiOrigin);
87
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
88
88
  this.fetchData();
89
89
  }
90
90
  componentDidLoad() {
@@ -168,7 +168,7 @@ const BusinessCoreInfoFormStep = class {
168
168
  if (!this.businessId)
169
169
  console.error(missingBusinessIdMessage);
170
170
  this.formController = new FormController(businessCoreInfoSchema(this.allowOptionalFields));
171
- this.api = Api(this.authToken, config.proxyApiOrigin);
171
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
172
172
  this.fetchData();
173
173
  }
174
174
  componentDidLoad() {
@@ -307,7 +307,7 @@ const BusinessOwnersFormStep = class {
307
307
  console.error(missingAuthTokenMessage);
308
308
  if (!this.businessId)
309
309
  console.error(missingBusinessIdMessage);
310
- this.api = Api(this.authToken, config.proxyApiOrigin);
310
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
311
311
  this.fetchData();
312
312
  }
313
313
  onOwnersUpdated() {
@@ -407,7 +407,7 @@ const BusinessRepresentativeFormStep = class {
407
407
  if (!this.businessId)
408
408
  console.error(missingBusinessIdMessage);
409
409
  this.formController = new FormController(identitySchema('representative', this.allowOptionalFields));
410
- this.api = Api(this.authToken, config.proxyApiOrigin);
410
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
411
411
  this.fetchData();
412
412
  }
413
413
  componentDidLoad() {
@@ -491,7 +491,7 @@ const LegalAddressFormStep = class {
491
491
  if (!this.businessId)
492
492
  console.error(missingBusinessIdMessage);
493
493
  this.formController = new FormController(addressSchema(this.allowOptionalFields));
494
- this.api = Api(this.authToken, config.proxyApiOrigin);
494
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
495
495
  this.fetchData();
496
496
  }
497
497
  componentDidLoad() {
@@ -1563,7 +1563,7 @@ const MessageEventType = {
1563
1563
  };
1564
1564
 
1565
1565
  const name = "@justifi/webcomponents";
1566
- const version = "4.13.0";
1566
+ const version = "4.14.0";
1567
1567
  const description = "JustiFi Web Components";
1568
1568
  const main = "dist/module/index.js";
1569
1569
  const module = "dist/module/index.js";
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-83dcf934.js';
2
2
  import { E as ErrorState } from './utils-210fdf39.js';
3
3
  import { c as config } from './config-476c7241.js';
4
- import { A as Api } from './Api-e9d568c7.js';
4
+ import { A as Api } from './Api-b09a2f6a.js';
5
5
  import { B as Business } from './Business-d83fbdb4.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-2a58dbbc.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-f580d6b7.js';
@@ -10,7 +10,7 @@ import './state-options-a356fb11.js';
10
10
  class BusinessService {
11
11
  async fetchBusiness(businessId, authToken) {
12
12
  const endpoint = `entities/business/${businessId}`;
13
- return Api(authToken, config.proxyApiOrigin).get(endpoint);
13
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
14
14
  }
15
15
  }
16
16
 
@@ -3,7 +3,7 @@ import { F as FormController } from './form-5279c05a.js';
3
3
  import { c as create$3 } from './index.esm-22b47398.js';
4
4
  import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './business-additional-questions-schema-e96b0509.js';
5
5
  import { a as addressSchema, i as identitySchema, p as parseBusiness } from './payload-parsers-32028700.js';
6
- import { A as Api } from './Api-e9d568c7.js';
6
+ import { A as Api } from './Api-b09a2f6a.js';
7
7
  import './Pagination-afc8f96d.js';
8
8
  import './Payment-ef9fc1ae.js';
9
9
  import './Payout-dfe15b00.js';
@@ -94,7 +94,7 @@ const BusinessForm = class {
94
94
  if (!this.businessId)
95
95
  console.error(missingBusinessIdMessage);
96
96
  this.formController = new FormController(businessFormSchema);
97
- this.api = Api(this.authToken, config.proxyApiOrigin);
97
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
98
98
  this.fetchData();
99
99
  }
100
100
  handleReponse(response) {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-83dcf934.js';
2
- import { A as Api } from './Api-e9d568c7.js';
2
+ import { A as Api } from './Api-b09a2f6a.js';
3
3
  import { p as pagingDefaults } from './Pagination-afc8f96d.js';
4
4
  import './Payment-ef9fc1ae.js';
5
5
  import './Payout-dfe15b00.js';
@@ -51,7 +51,7 @@ const BusinessList = class {
51
51
  this.loading = true;
52
52
  const endpoint = `entities/business`;
53
53
  let accountIDParam = { account_id: this.accountId };
54
- const response = await Api(this.authToken, config.proxyApiOrigin)
54
+ const response = await Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin })
55
55
  .get(endpoint, Object.assign(Object.assign({}, accountIDParam), this.params));
56
56
  if (!response.error) {
57
57
  this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-83dcf934.js';
2
2
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-2a58dbbc.js';
3
3
  import { g as getErrorMessage, a as getErrorCode } from './utils-f580d6b7.js';
4
- import { A as Api } from './Api-e9d568c7.js';
4
+ import { A as Api } from './Api-b09a2f6a.js';
5
5
  import './Pagination-afc8f96d.js';
6
6
  import './Payment-ef9fc1ae.js';
7
7
  import './Payout-dfe15b00.js';
@@ -64,15 +64,17 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
64
64
  class CheckoutService {
65
65
  async fetchCheckout(authToken, checkoutId) {
66
66
  const endpoint = `checkouts/${checkoutId}`;
67
- return Api(authToken, config.proxyApiOrigin).get(endpoint);
67
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
68
68
  }
69
69
  async complete(authToken, checkoutId, payment) {
70
70
  const endpoint = `checkouts/${checkoutId}/complete`;
71
- const payload = { payment_mode: payment.payment_mode };
71
+ const payload = {
72
+ payment_mode: payment.payment_mode,
73
+ };
72
74
  if (payment.payment_token) {
73
75
  payload.payment_token = payment.payment_token;
74
76
  }
75
- return Api(authToken, config.proxyApiOrigin).post(endpoint, JSON.stringify(payload));
77
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
76
78
  }
77
79
  }
78
80
 
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-83dcf934.js';
2
2
  import { c as config } from './config-476c7241.js';
3
- import { A as Api } from './Api-e9d568c7.js';
3
+ import { A as Api } from './Api-b09a2f6a.js';
4
4
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-2a58dbbc.js';
5
5
  import { g as getErrorMessage, a as getErrorCode } from './utils-f580d6b7.js';
6
6
  import { E as ErrorState } from './utils-210fdf39.js';
7
7
 
8
8
  class ReportsService {
9
9
  async fetchGrossVolumeChartData(accountId, authToken) {
10
- const api = Api(authToken, config.proxyApiOrigin);
10
+ const api = Api({ authToken: authToken, apiOrigin: config.proxyApiOrigin });
11
11
  const endpoint = `account/${accountId}/reports/gross_volume`;
12
12
  return api.get(endpoint);
13
13
  }
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-83dcf934.js';
2
2
  import { F as FormController } from './form-5279c05a.js';
3
3
  import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks-0e18300f.js';
4
- import { A as Api } from './Api-e9d568c7.js';
4
+ import { A as Api } from './Api-b09a2f6a.js';
5
5
  import './Pagination-afc8f96d.js';
6
6
  import './Payment-ef9fc1ae.js';
7
7
  import './Payout-dfe15b00.js';
@@ -151,7 +151,7 @@ const BusinessOwnerForm = class {
151
151
  if (!this.authToken)
152
152
  console.error(missingAuthTokenMessage);
153
153
  this.formController = new FormController(identitySchema('owner', this.allowOptionalFields));
154
- this.api = Api(this.authToken, config.proxyApiOrigin);
154
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
155
155
  this.fetchData();
156
156
  }
157
157
  componentDidLoad() {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-83dcf934.js';
2
- import { A as Api } from './Api-e9d568c7.js';
2
+ import { A as Api } from './Api-b09a2f6a.js';
3
3
  import { p as pagingDefaults } from './Pagination-afc8f96d.js';
4
4
  import { P as PaymentBalanceTransaction } from './Payment-ef9fc1ae.js';
5
5
  import './Payout-dfe15b00.js';
@@ -44,7 +44,7 @@ const PaymentBalanceTransactions = class {
44
44
  return;
45
45
  }
46
46
  const endpoint = `account/${this.accountId}/payments/${this.paymentId}/payment_balance_transactions`;
47
- const response = await Api(this.authToken, config.proxyApiOrigin).get(endpoint, this.params);
47
+ const response = await Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint, this.params);
48
48
  if (!response.error) {
49
49
  this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
50
50
  this.balanceTransactions = response.data.map(dataItem => new PaymentBalanceTransaction(dataItem));
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-83dcf934.js';
2
- import { P as PaymentService } from './payment.service-2fdc5018.js';
2
+ import { P as PaymentService } from './payment.service-03e274d7.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import { a as Payment } from './Payment-ef9fc1ae.js';
5
5
  import './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-2a58dbbc.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-f580d6b7.js';
8
8
  import { E as ErrorState } from './utils-210fdf39.js';
9
- import './Api-e9d568c7.js';
9
+ import './Api-b09a2f6a.js';
10
10
  import './config-476c7241.js';
11
11
 
12
12
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
@@ -18,12 +18,23 @@ const PaymentForm = class {
18
18
  this.card = true;
19
19
  this.email = undefined;
20
20
  this.clientId = undefined;
21
+ this.authToken = undefined;
21
22
  this.accountId = undefined;
22
23
  this.submitButtonText = undefined;
23
24
  this.submitButtonEnabled = true;
24
25
  this.isLoading = false;
25
26
  this.selectedPaymentMethodType = PaymentMethodTypes.card;
26
27
  }
28
+ componentWillLoad() {
29
+ if (!this.validateProps()) {
30
+ this.errorEvent.emit({
31
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
32
+ message: 'clientId or authToken is required',
33
+ severity: ComponentErrorSeverity.ERROR
34
+ });
35
+ this.submitButtonEnabled = false;
36
+ }
37
+ }
27
38
  connectedCallback() {
28
39
  loadFontsOnParent();
29
40
  }
@@ -36,10 +47,33 @@ const PaymentForm = class {
36
47
  async disableSubmitButton() {
37
48
  this.submitButtonEnabled = false;
38
49
  }
50
+ showPaymentMethodTypeSelector() {
51
+ return this.card && this.bankAccount;
52
+ }
53
+ getSelectedPaymentMethodType() {
54
+ if (this.showPaymentMethodTypeSelector()) {
55
+ return this.selectedPaymentMethodType;
56
+ }
57
+ else if (this.card) {
58
+ return PaymentMethodTypes.card;
59
+ }
60
+ else if (this.bankAccount) {
61
+ return PaymentMethodTypes.bankAccount;
62
+ }
63
+ else {
64
+ return PaymentMethodTypes.card;
65
+ }
66
+ }
39
67
  paymentMethodSelectedHandler(event) {
40
68
  const paymentMethodType = event.detail;
41
69
  this.selectedPaymentMethodType = paymentMethodType;
42
70
  }
71
+ validateProps() {
72
+ return !!(this.clientId || this.authToken);
73
+ }
74
+ getToken() {
75
+ return this.authToken || this.clientId;
76
+ }
43
77
  async submit(event) {
44
78
  event.preventDefault();
45
79
  if (!this.paymentMethodFormRef || !this.billingFormRef)
@@ -52,7 +86,7 @@ const PaymentForm = class {
52
86
  try {
53
87
  const billingFormFieldValues = await this.billingFormRef.getValues();
54
88
  const paymentMethodData = Object.assign({ email: this.email }, billingFormFieldValues);
55
- const tokenizeResponse = await this.paymentMethodFormRef.tokenize(this.clientId, paymentMethodData, this.accountId);
89
+ const tokenizeResponse = await this.paymentMethodFormRef.tokenize(this.getToken(), paymentMethodData, this.accountId);
56
90
  if (tokenizeResponse.error) {
57
91
  this.errorEvent.emit({
58
92
  errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
@@ -74,7 +108,7 @@ const PaymentForm = class {
74
108
  }
75
109
  }
76
110
  render() {
77
- return (h(Host, null, h("form", { class: "row gy-3" }, this.card && this.bankAccount && (h("div", { class: "col-12" }, h("justifi-payment-method-selector", { selectedPaymentMethodType: this.selectedPaymentMethodType, onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { class: "col-12" }, h("justifi-payment-method-form", { "payment-method-form-type": this.selectedPaymentMethodType, iframeOrigin: config.iframeOrigin, ref: el => {
111
+ return (h(Host, null, h("form", { class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { class: "col-12" }, h("justifi-payment-method-selector", { selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { class: "col-12" }, h("justifi-payment-method-form", { "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
78
112
  if (el) {
79
113
  this.paymentMethodFormRef = el;
80
114
  }
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-83dcf934.js';
2
- import { P as PaymentService } from './payment.service-2fdc5018.js';
2
+ import { P as PaymentService } from './payment.service-03e274d7.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import { a as Payment } from './Payment-ef9fc1ae.js';
5
5
  import './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-2a58dbbc.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-f580d6b7.js';
8
8
  import { E as ErrorState } from './utils-210fdf39.js';
9
- import './Api-e9d568c7.js';
9
+ import './Api-b09a2f6a.js';
10
10
  import './config-476c7241.js';
11
11
 
12
12
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-83dcf934.js';
2
- import { P as PayoutService } from './payout.service-15064bcc.js';
2
+ import { P as PayoutService } from './payout.service-9823d66d.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import './Payment-ef9fc1ae.js';
5
5
  import { P as Payout } from './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-2a58dbbc.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-f580d6b7.js';
8
8
  import { E as ErrorState } from './utils-210fdf39.js';
9
- import './Api-e9d568c7.js';
9
+ import './Api-b09a2f6a.js';
10
10
  import './config-476c7241.js';
11
11
 
12
12
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-83dcf934.js';
2
2
  import { t as tableExportedParts } from './exported-parts-abd4c027.js';
3
- import { P as PayoutService } from './payout.service-15064bcc.js';
3
+ import { P as PayoutService } from './payout.service-9823d66d.js';
4
4
  import './Pagination-afc8f96d.js';
5
5
  import './Payment-ef9fc1ae.js';
6
6
  import { P as Payout } from './Payout-dfe15b00.js';
7
7
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-2a58dbbc.js';
8
8
  import { g as getErrorMessage, a as getErrorCode } from './utils-f580d6b7.js';
9
9
  import { E as ErrorState } from './utils-210fdf39.js';
10
- import './Api-e9d568c7.js';
10
+ import './Api-b09a2f6a.js';
11
11
  import './config-476c7241.js';
12
12
 
13
13
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-83dcf934.js';
2
- import { A as Api } from './Api-e9d568c7.js';
2
+ import { A as Api } from './Api-b09a2f6a.js';
3
3
  import { p as pagingDefaults } from './Pagination-afc8f96d.js';
4
4
  import './Payment-ef9fc1ae.js';
5
5
  import './Payout-dfe15b00.js';
@@ -103,7 +103,7 @@ const ProceedsList = class {
103
103
  }
104
104
  this.loading = true;
105
105
  const endpoint = `account/${this.accountId}/proceeds`;
106
- const response = await Api(this.authToken, config.privateApiOrigin)
106
+ const response = await Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin })
107
107
  .get(endpoint, this.params);
108
108
  if (!response.error) {
109
109
  this.paging = Object.assign(Object.assign({}, this.paging), response.page_info);
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-83dcf934.js';
2
2
  import { c as create$3, b as create$5 } from './index.esm-22b47398.js';
3
- import { A as Api } from './Api-e9d568c7.js';
3
+ import { A as Api } from './Api-b09a2f6a.js';
4
4
  import './Pagination-afc8f96d.js';
5
5
  import './Payment-ef9fc1ae.js';
6
6
  import './Payout-dfe15b00.js';
@@ -89,7 +89,7 @@ const RefundForm = class {
89
89
  if (!this.authToken) {
90
90
  console.warn('Warning: Missing auth-token.');
91
91
  }
92
- this.api = Api(this.authToken, config.proxyApiOrigin);
92
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
93
93
  }
94
94
  render() {
95
95
  var _a;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-83dcf934.js';
2
- import { A as Api } from './Api-e9d568c7.js';
2
+ import { A as Api } from './Api-b09a2f6a.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import './Payment-ef9fc1ae.js';
5
5
  import './Payout-dfe15b00.js';
@@ -28,7 +28,7 @@ const SubaccountDetails = class {
28
28
  this.fetchData();
29
29
  }
30
30
  async fetchOnboardingData() {
31
- const api = Api(this.authToken, '');
31
+ const api = Api({ authToken: this.authToken, apiOrigin: '' });
32
32
  const endpoint = `onboarding/${this.subaccountId}`;
33
33
  const response = await api.get(endpoint);
34
34
  if (!response.error) {
@@ -39,7 +39,7 @@ const SubaccountDetails = class {
39
39
  }
40
40
  }
41
41
  async fetchSubAccountData() {
42
- const api = Api(this.authToken, config.privateApiOrigin);
42
+ const api = Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin });
43
43
  const endpoint = `account/${this.accountId}/seller_accounts/${this.subaccountId}`;
44
44
  const response = await api.get(endpoint);
45
45
  if (!response.error) {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-83dcf934.js';
2
2
  import { S as SubAccount } from './SubAccount-f4ae9809.js';
3
3
  import { M as MapSubAccountStatusToBadge } from './utils-243abdb4.js';
4
- import { A as Api } from './Api-e9d568c7.js';
4
+ import { A as Api } from './Api-b09a2f6a.js';
5
5
  import { p as pagingDefaults } from './Pagination-afc8f96d.js';
6
6
  import './Payment-ef9fc1ae.js';
7
7
  import './Payout-dfe15b00.js';
@@ -44,7 +44,7 @@ const SubaccountsList = class {
44
44
  return;
45
45
  }
46
46
  this.loading = true;
47
- const api = Api(this.authToken, config.privateApiOrigin);
47
+ const api = Api({ authToken: this.authToken, apiOrigin: config.privateApiOrigin });
48
48
  const endpoint = `account/${this.accountId}/seller_accounts`;
49
49
  const response = await api.get(endpoint, this.params);
50
50
  if (!response.error) {
@@ -3,7 +3,7 @@ export { s as setNonce } from './index-83dcf934.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
- return bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout\",[[0,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"gross-payment-chart-core\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-gross-payment-chart\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"form-control-file\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"subaccount-bank-details\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"creatingNewPaymentMethod\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"justifi-payment-method-selector\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"form-control-datepart_2\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions_4\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}]]],[\"subaccount-account-details_4\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"maskOptions\":[8,\"mask-options\"]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-table_2\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"justifi-billing-form_4\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"paymentAmount\":[1,\"payment-amount\"],\"selectedPaymentMethodId\":[32],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzel-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]],[\"form-control-select_2\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]]]"), options);
6
+ return bootstrapLazy(JSON.parse("[[\"justifi-payment-provisioning\",[[0,\"justifi-payment-provisioning\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"testMode\":[4,\"test-mode\"],\"hideErrors\":[4,\"hide-errors\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"formLoading\":[32],\"errorMessage\":[32],\"currentStep\":[32],\"totalSteps\":[32]}]]],[\"justifi-business-form\",[[0,\"justifi-business-form\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"hideErrors\":[4,\"hide-errors\"],\"formTitle\":[1,\"form-title\"],\"removeTitle\":[4,\"remove-title\"],\"isLoading\":[32],\"errorMessage\":[32]}]]],[\"justifi-checkout\",[[0,\"justifi-checkout\",{\"iframeOrigin\":[1,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"checkoutId\":[1,\"checkout-id\"],\"getCheckout\":[32],\"complete\":[32],\"errorMessage\":[32]},null,{\"authToken\":[\"propChanged\"],\"checkoutId\":[\"propChanged\"]}]]],[\"justifi-business-details\",[[1,\"justifi-business-details\",{\"businessId\":[1,\"business-id\"],\"authToken\":[1,\"auth-token\"],\"errorMessage\":[32],\"getBusiness\":[32]}]]],[\"justifi-payment-form\",[[1,\"justifi-payment-form\",{\"bankAccount\":[4,\"bank-account\"],\"card\":[4],\"email\":[1],\"clientId\":[1,\"client-id\"],\"authToken\":[1,\"auth-token\"],\"accountId\":[1,\"account-id\"],\"submitButtonText\":[1,\"submit-button-text\"],\"submitButtonEnabled\":[32],\"isLoading\":[32],\"selectedPaymentMethodType\":[32],\"fillBillingForm\":[64],\"enableSubmitButton\":[64],\"disableSubmitButton\":[64]}]]],[\"justifi-subaccount-details\",[[1,\"justifi-subaccount-details\",{\"accountId\":[1,\"account-id\"],\"subaccountId\":[1,\"subaccount-id\"],\"authToken\":[1,\"auth-token\"],\"onboardingData\":[32],\"subaccount\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"subaccountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"]}]]],[\"justifi-business-owners\",[[0,\"justifi-business-owners\",{\"formController\":[16],\"errors\":[32],\"owners\":[32]}]]],[\"justifi-payments-list\",[[1,\"justifi-payments-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayments\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payouts-list\",[[1,\"justifi-payouts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getPayouts\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-business-list\",[[1,\"justifi-business-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"businesses\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-balance-transactions\",[[1,\"justifi-payment-balance-transactions\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"balanceTransactions\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-payment-details\",[[1,\"justifi-payment-details\",{\"paymentId\":[1,\"payment-id\"],\"authToken\":[1,\"auth-token\"],\"getPaymentDetails\":[32],\"errorMessage\":[32]},null,{\"paymentId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-payout-details\",[[1,\"justifi-payout-details\",{\"payoutId\":[1,\"payout-id\"],\"authToken\":[1,\"auth-token\"],\"getPayout\":[32],\"errorMessage\":[32]},null,{\"payoutId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"justifi-proceeds-list\",[[1,\"justifi-proceeds-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"proceeds\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-refund-form\",[[1,\"justifi-refund-form\",{\"authToken\":[1,\"auth-token\"],\"paymentId\":[1,\"payment-id\"],\"amount\":[2],\"submitButtonText\":[1,\"submit-button-text\"],\"withButton\":[4,\"with-button\"],\"refundInfoText\":[1,\"refund-info-text\"],\"errors\":[32],\"isSubmitting\":[32]}]]],[\"justifi-subaccounts-list\",[[1,\"justifi-subaccounts-list\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"subaccounts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"accountId\":[\"updateOnPropChange\"],\"authToken\":[\"updateOnPropChange\"],\"params\":[\"updateOnPropChange\"]}]]],[\"justifi-bank-account-form\",[[0,\"justifi-bank-account-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"justifi-card-form\",[[0,\"justifi-card-form\",{\"validationMode\":[1025,\"validation-mode\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"internalStyleOverrides\":[32],\"tokenize\":[64],\"validate\":[64],\"resize\":[64]},[[0,\"paymentMethodFormReady\",\"readyHandler\"],[0,\"paymentMethodFormTokenized\",\"tokenizeHandler\"],[0,\"paymentMethodFormValidated\",\"validateHandler\"]]]]],[\"gross-payment-chart-core\",[[0,\"gross-payment-chart-core\",{\"getGrossPayment\":[16],\"grossVolumeReport\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getGrossPayment\":[\"propChanged\"],\"grossVolumeReport\":[\"grossVolumeReportChanged\"]}]]],[\"justifi-gross-payment-chart\",[[1,\"justifi-gross-payment-chart\",{\"accountId\":[1,\"account-id\"],\"authToken\":[1,\"auth-token\"],\"getGrossPayment\":[32],\"errorMessage\":[32]},null,{\"accountId\":[\"propChanged\"],\"authToken\":[\"propChanged\"]}]]],[\"form-control-file\",[[1,\"form-control-file\",{\"label\":[1],\"name\":[8],\"error\":[1],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32],\"file\":[32]}]]],[\"subaccount-bank-details\",[[1,\"subaccount-bank-details\",{\"data\":[16]}]]],[\"subaccount-terms-details\",[[1,\"subaccount-terms-details\",{\"data\":[16]}]]],[\"justifi-checkout-core\",[[1,\"justifi-checkout-core\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"authToken\":[1,\"auth-token\"],\"getCheckout\":[16],\"complete\":[16],\"checkoutId\":[1,\"checkout-id\"],\"hasLoadedFonts\":[32],\"isLoading\":[32],\"checkout\":[32],\"serverError\":[32],\"creatingNewPaymentMethod\":[32],\"loadFontsOnParent\":[64]}]]],[\"business-details-core\",[[0,\"business-details-core\",{\"getBusiness\":[16],\"business\":[32],\"renderState\":[32],\"errorMessage\":[32]}]]],[\"payments-list-core\",[[0,\"payments-list-core\",{\"getPayments\":[16],\"payments\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayments\":[\"updateOnPropChange\"]}]]],[\"payouts-list-core\",[[0,\"payouts-list-core\",{\"getPayouts\":[16],\"payouts\":[32],\"loading\":[32],\"errorMessage\":[32],\"paging\":[32],\"params\":[32]},null,{\"params\":[\"updateOnPropChange\"],\"getPayouts\":[\"updateOnPropChange\"]}]]],[\"payment-details-core\",[[0,\"payment-details-core\",{\"getPaymentDetails\":[16],\"payment\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPaymentDetails\":[\"updateOnPropChange\"]}]]],[\"payout-details-core\",[[0,\"payout-details-core\",{\"getPayout\":[16],\"payout\":[32],\"loading\":[32],\"errorMessage\":[32]},null,{\"getPayout\":[\"getPayoutWatcher\"]}]]],[\"justifi-payment-method-selector\",[[1,\"justifi-payment-method-selector\",{\"selectedPaymentMethodType\":[1,\"selected-payment-method-type\"]}]]],[\"form-control-date_3\",[[1,\"justifi-identity-address-form\",{\"handleFormUpdate\":[16],\"errors\":[8],\"defaultValues\":[8,\"default-values\"],\"address\":[32]},null,{\"address\":[\"handleAddressChange\"]}],[1,\"form-control-date\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[8,\"input-handler\"],\"disabled\":[4],\"date\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number-masked\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"mask\":[1],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-owner-form\",[[1,\"justifi-owner-form\",{\"authToken\":[1,\"auth-token\"],\"ownerId\":[1,\"owner-id\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"removeOwner\":[16],\"newFormOpen\":[4,\"new-form-open\"],\"ownersLength\":[2,\"owners-length\"],\"isLoading\":[32],\"formController\":[32],\"errors\":[32],\"owner\":[32],\"validate\":[64],\"submit\":[64]},null,{\"isLoading\":[\"loadingWatcher\"]}]]],[\"form-control-datepart_2\",[[1,\"form-control-datepart\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"type\":[1],\"inputHandler\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-number\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"disabled\":[4],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions_4\",[[0,\"justifi-business-representative\",{\"formController\":[16],\"errors\":[32],\"representative\":[32]}],[0,\"justifi-business-core-info\",{\"formController\":[16],\"errors\":[32],\"coreInfo\":[32]}],[0,\"justifi-additional-questions\",{\"formController\":[16],\"errors\":[32],\"additional_questions\":[32]}],[0,\"justifi-legal-address-form\",{\"formController\":[16],\"errors\":[32],\"legal_address\":[32]}]]],[\"subaccount-account-details_4\",[[1,\"subaccount-account-details\",{\"subaccount\":[16],\"onboardingData\":[16]}],[1,\"subaccount-merchant-details\",{\"onboardingData\":[16]}],[1,\"subaccount-owners-details\",{\"data\":[16]}],[1,\"subaccount-representative-details\",{\"data\":[16]}]]],[\"form-control-monetary\",[[1,\"form-control-monetary\",{\"label\":[1],\"name\":[1],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"maskOptions\":[8,\"mask-options\"]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]],[\"justifi-additional-questions-form-step_5\",[[0,\"justifi-business-owners-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"owners\":[32],\"newFormOpen\":[32],\"refs\":[32],\"validateAndSubmit\":[64]},null,{\"owners\":[\"onOwnersUpdated\"]}],[0,\"justifi-business-representative-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"representative\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-business-core-info-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"coreInfo\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-additional-questions-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"additional_questions\":[32],\"validateAndSubmit\":[64]}],[0,\"justifi-legal-address-form-step\",{\"authToken\":[1,\"auth-token\"],\"businessId\":[1,\"business-id\"],\"allowOptionalFields\":[4,\"allow-optional-fields\"],\"formController\":[32],\"errors\":[32],\"legal_address\":[32],\"validateAndSubmit\":[64]}]]],[\"justifi-details\",[[1,\"justifi-details\",{\"errorMessage\":[1,\"error-message\"]}]]],[\"additional-questions-details_5\",[[1,\"additional-questions-details\",{\"additionalQuestions\":[16]}],[1,\"generic-info-details\",{\"business\":[16]}],[1,\"legal-address-details\",{\"legalAddress\":[16]}],[1,\"owner-details\",{\"owners\":[16]}],[1,\"representative-details\",{\"representative\":[16]}]]],[\"justifi-table_2\",[[1,\"justifi-table\",{\"loading\":[4],\"errorMessage\":[1,\"error-message\"],\"rowData\":[16],\"columnData\":[16],\"paging\":[16],\"params\":[8],\"entityId\":[16],\"rowClickHandler\":[16]}],[1,\"pagination-menu\",{\"paging\":[16],\"params\":[16]}]]],[\"justifi-billing-form_4\",[[1,\"justifi-billing-form\",{\"legend\":[1025],\"billingFields\":[32],\"billingFieldsErrors\":[32],\"fill\":[64],\"validate\":[64],\"getValues\":[64]},[[0,\"fieldReceivedInput\",\"setFormValue\"]]],[1,\"select-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"options\":[16],\"internalValue\":[32]}],[1,\"text-input\",{\"name\":[1],\"label\":[1],\"defaultValue\":[1,\"default-value\"],\"error\":[1],\"internalValue\":[32]}],[0,\"justifi-payment-method-form\",{\"paymentMethodFormType\":[1,\"payment-method-form-type\"],\"paymentMethodFormValidationMode\":[1025,\"payment-method-form-validation-mode\"],\"iframeOrigin\":[1,\"iframe-origin\"],\"singleLine\":[4,\"single-line\"],\"resize\":[64],\"tokenize\":[64],\"validate\":[64]}]]],[\"justifi-new-payment-method_4\",[[0,\"justifi-payment-method-options\",{\"showCard\":[4,\"show-card\"],\"showAch\":[4,\"show-ach\"],\"bnpl\":[16],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"iframeOrigin\":[1025,\"iframe-origin\"],\"savedPaymentMethods\":[16],\"paymentAmount\":[1,\"payment-amount\"],\"selectedPaymentMethodId\":[32],\"paymentMethodOptions\":[32],\"resolvePaymentMethod\":[64]},[[0,\"paymentMethodOptionSelected\",\"paymentMethodOptionSelected\"]],{\"savedPaymentMethods\":[\"paymentMethodsChanged\"]}],[0,\"justifi-new-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-saved-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"resolvePaymentMethod\":[64]}],[0,\"justifi-sezzel-payment-method\",{\"iframeOrigin\":[1025,\"iframe-origin\"],\"bnpl\":[8],\"clientId\":[1,\"client-id\"],\"accountId\":[1,\"account-id\"],\"paymentMethodOption\":[16],\"isSelected\":[4,\"is-selected\"],\"paymentAmount\":[1,\"payment-amount\"],\"installmentPlan\":[32],\"sezzleCheckout\":[32],\"sezzlePromise\":[32],\"resolvePaymentMethod\":[64]}]]],[\"form-control-select_2\",[[1,\"form-control-select\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"inputHandler\":[16],\"options\":[16],\"disabled\":[4]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}],[1,\"form-control-text\",{\"label\":[1],\"name\":[8],\"error\":[1],\"defaultValue\":[1,\"default-value\"],\"keyDownHandler\":[16],\"maxLength\":[2,\"max-length\"],\"disabled\":[4],\"inputHandler\":[16],\"input\":[32]},null,{\"defaultValue\":[\"handleDefaultValueChange\"]}]]]]"), options);
7
7
  };
8
8
 
9
9
  export { defineCustomElements };
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-e9d568c7.js';
1
+ import { A as Api } from './Api-b09a2f6a.js';
2
2
  import './Pagination-afc8f96d.js';
3
3
  import './Payment-ef9fc1ae.js';
4
4
  import './Payout-dfe15b00.js';
@@ -6,13 +6,13 @@ import { c as config } from './config-476c7241.js';
6
6
 
7
7
  class PaymentService {
8
8
  async fetchPayments(accountId, authToken, params) {
9
- const api = Api(authToken, config.proxyApiOrigin);
9
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
10
10
  const endpoint = `account/${accountId}/payments`;
11
11
  return api.get(endpoint, params);
12
12
  }
13
13
  async fetchPayment(paymentId, authToken) {
14
14
  const endpoint = `payments/${paymentId}`;
15
- return Api(authToken, config.proxyApiOrigin).get(endpoint);
15
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
16
16
  }
17
17
  }
18
18
 
@@ -1,4 +1,4 @@
1
- import { A as Api } from './Api-e9d568c7.js';
1
+ import { A as Api } from './Api-b09a2f6a.js';
2
2
  import './Pagination-afc8f96d.js';
3
3
  import './Payment-ef9fc1ae.js';
4
4
  import './Payout-dfe15b00.js';
@@ -6,12 +6,12 @@ import { c as config } from './config-476c7241.js';
6
6
 
7
7
  class PayoutService {
8
8
  async fetchPayouts(accountId, authToken, params) {
9
- const api = Api(authToken, config.proxyApiOrigin);
9
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
10
10
  const endpoint = `account/${accountId}/payouts`;
11
11
  return api.get(endpoint, params);
12
12
  }
13
13
  async fetchPayout(payoutId, authToken) {
14
- const api = Api(authToken, config.proxyApiOrigin);
14
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
15
15
  const endpoint = `payouts/${payoutId}`;
16
16
  return api.get(endpoint);
17
17
  }